skeleton-ghost-loader 2.6.0 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +1,1023 @@
1
- (function(w,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(w=typeof globalThis<"u"?globalThis:w||self,P(w.SkeletonGhostLoader={},w.React))})(this,function(w,P){"use strict";function De(f){const y=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(f){for(const E in f)if(E!=="default"){const s=Object.getOwnPropertyDescriptor(f,E);Object.defineProperty(y,E,s.get?s:{enumerable:!0,get:()=>f[E]})}}return y.default=f,Object.freeze(y)}const N=De(P);var q={exports:{}},$={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ne;function Fe(){if(ne)return $;ne=1;var f=P,y=Symbol.for("react.element"),E=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function S(g,p,T){var h,O={},x=null,L=null;T!==void 0&&(x=""+T),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(L=p.ref);for(h in p)s.call(p,h)&&!u.hasOwnProperty(h)&&(O[h]=p[h]);if(g&&g.defaultProps)for(h in p=g.defaultProps,p)O[h]===void 0&&(O[h]=p[h]);return{$$typeof:y,type:g,key:x,ref:L,props:O,_owner:c.current}}return $.Fragment=E,$.jsx=S,$.jsxs=S,$}var I={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var ae;function Ae(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var f=P,y=Symbol.for("react.element"),E=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),g=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),oe=Symbol.iterator,Ie="@@iterator";function We(e){if(e===null||typeof e!="object")return null;var r=oe&&e[oe]||e[Ie];return typeof r=="function"?r:null}var D=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ye("error",e,t)}}function Ye(e,r,t){{var n=D.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var l=t.map(function(i){return String(i)});l.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,l)}}var Ne=!1,Me=!1,Le=!1,Ve=!1,Ue=!1,ue;ue=Symbol.for("react.module.reference");function ze(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===u||Ue||e===c||e===T||e===h||Ve||e===L||Ne||Me||Le||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===O||e.$$typeof===S||e.$$typeof===g||e.$$typeof===p||e.$$typeof===ue||e.getModuleId!==void 0))}function Be(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function se(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&m("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 s:return"Fragment";case E:return"Portal";case u:return"Profiler";case c:return"StrictMode";case T:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return se(r)+".Consumer";case S:var t=e;return se(t._context)+".Provider";case p:return Be(e,e.render,"ForwardRef");case O:var n=e.displayName||null;return n!==null?n:C(e.type)||"Memo";case x:{var o=e,l=o._payload,i=o._init;try{return C(i(l))}catch{return null}}}return null}var j=Object.assign,W=0,le,fe,ce,de,ve,pe,ge;function he(){}he.__reactDisabledLog=!0;function qe(){{if(W===0){le=console.log,fe=console.info,ce=console.warn,de=console.error,ve=console.group,pe=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Je(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:le}),info:j({},e,{value:fe}),warn:j({},e,{value:ce}),error:j({},e,{value:de}),group:j({},e,{value:ve}),groupCollapsed:j({},e,{value:pe}),groupEnd:j({},e,{value:ge})})}W<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,X;function V(e,r,t){{if(X===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);X=n&&n[1]||""}return`
18
- `+X+e}}var H=!1,U;{var Ke=typeof WeakMap=="function"?WeakMap:Map;U=new Ke}function ye(e,r){if(!e||H)return"";{var t=U.get(e);if(t!==void 0)return t}var n;H=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=G.current,G.current=null,qe();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(_){n=_}Reflect.construct(e,[],i)}else{try{i.call()}catch(_){n=_}e.call(i.prototype)}}else{try{throw Error()}catch(_){n=_}e()}}catch(_){if(_&&n&&typeof _.stack=="string"){for(var a=_.stack.split(`
19
- `),b=n.stack.split(`
20
- `),d=a.length-1,v=b.length-1;d>=1&&v>=0&&a[d]!==b[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==b[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==b[v]){var R=`
21
- `+a[d].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,R),R}while(d>=1&&v>=0);break}}}finally{H=!1,G.current=l,Je(),Error.prepareStackTrace=o}var A=e?e.displayName||e.name:"",k=A?V(A):"";return typeof e=="function"&&U.set(e,k),k}function Ge(e,r,t){return ye(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function z(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Xe(e));if(typeof e=="string")return V(e);switch(e){case T:return V("Suspense");case h:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Ge(e.render);case O:return z(e.type,r,t);case x:{var n=e,o=n._payload,l=n._init;try{return z(l(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,me={},be=D.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function He(e,r,t,n,o){{var l=Function.call.bind(Y);for(var i in e)if(l(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var b=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 b.name="Invariant Violation",b}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(B(o),m("%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),B(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,B(o),m("Failed %s type: %s",t,a.message),B(null))}}}var Ze=Array.isArray;function Z(e){return Ze(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function er(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function _e(e){if(er(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),Ee(e)}var Re=D.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Se,Te;function tr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){typeof e.ref=="string"&&Re.current}function ir(e,r){{var t=function(){Se||(Se=!0,m("%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 or(e,r){{var t=function(){Te||(Te=!0,m("%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 ur=function(e,r,t,n,o,l,i){var a={$$typeof:y,type:e,key:r,ref:t,props:i,_owner:l};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 sr(e,r,t,n,o){{var l,i={},a=null,b=null;t!==void 0&&(_e(t),a=""+t),nr(r)&&(_e(r.key),a=""+r.key),tr(r)&&(b=r.ref,ar(r,o));for(l in r)Y.call(r,l)&&!rr.hasOwnProperty(l)&&(i[l]=r[l]);if(e&&e.defaultProps){var d=e.defaultProps;for(l in d)i[l]===void 0&&(i[l]=d[l])}if(a||b){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(i,v),b&&or(i,v)}return ur(e,a,b,o,n,Re.current,i)}}var Q=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=z(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function we(){{if(Q.current){var e=C(Q.current.type);if(e)return`
22
-
23
- Check the render method of \``+e+"`."}return""}}function lr(e){return""}var Ce={};function fr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
-
25
- Check the top-level render call using <`+t+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==Q.current&&(n=" It was passed a child from "+C(e._owner.type)+"."),F(e),m('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),F(null)}}function xe(e,r){{if(typeof e!="object")return;if(Z(e))for(var t=0;t<e.length;t++){var n=e[t];re(n)&&Pe(n,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var o=We(e);if(typeof o=="function"&&o!==e.entries)for(var l=o.call(e),i;!(i=l.next()).done;)re(i.value)&&Pe(i.value,r)}}}function cr(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===p||r.$$typeof===O))t=r.propTypes;else return;if(t){var n=C(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var o=C(r);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){F(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),F(null);break}}e.ref!==null&&(F(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var je={};function ke(e,r,t,n,o,l){{var i=ze(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 b=lr();b?a+=b:a+=we();var d;e===null?d="null":Z(e)?d="array":e!==void 0&&e.$$typeof===y?(d="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var v=sr(e,r,t,o,l);if(v==null)return v;if(i){var R=r.children;if(R!==void 0)if(n)if(Z(R)){for(var A=0;A<R.length;A++)xe(R[A],e);Object.freeze&&Object.freeze(R)}else m("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 xe(R,e)}if(Y.call(r,"key")){var k=C(e),_=Object.keys(r).filter(function(mr){return mr!=="key"}),te=_.length>0?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}";if(!je[k+te]){var yr=_.length>0?"{"+_.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
26
- let props = %s;
27
- <%s {...props} />
28
- React keys must be passed directly to JSX without using spread:
29
- let props = %s;
30
- <%s key={someKey} {...props} />`,te,k,yr,k),je[k+te]=!0}}return e===s?dr(v):cr(v),v}}function vr(e,r,t){return ke(e,r,t,!0)}function pr(e,r,t){return ke(e,r,t,!1)}var gr=pr,hr=vr;I.Fragment=s,I.jsx=gr,I.jsxs=hr}()),I}process.env.NODE_ENV==="production"?q.exports=Fe():q.exports=Ae();var J=q.exports;const M={text:"#ccc",box:"#e0e0e0"},K={};function $e(f){if(typeof document>"u")return{};const y=typeof f.type=="string"?f.type:"div",E=`${y}-${f.props.id||""}-${f.props.className||""}`;if(K[E])return K[E];const s=document.createElement(y);f.props.id&&(s.id=f.props.id),f.props.className&&(s.className=f.props.className),f.props.style&&Object.entries(f.props.style).forEach(([S,g])=>{s.style[S]=g}),s.style.display="none",document.body.appendChild(s);const c=window.getComputedStyle(s),u={height:c.height||void 0,width:c.width||"100%",fontSize:c.fontSize||void 0,margin:c.margin||"0",padding:c.padding||"0",borderRadius:c.borderRadius||"4px"};return document.body.removeChild(s),K[E]=u,u}const ie=({children:f})=>{function y(s){if(!N.isValidElement(s))return s;if(typeof s.type=="string"){const c={...s.props};let u={...c.style};if(c.skeletonrequired==="y"){const g=$e(s);u.height=u.height||c.height||g.height||"20px",u.width=u.width||c.width||g.width||"100%",u.fontSize=u.fontSize||c.fontSize||g.fontSize||"16px",u.margin=u.margin||c.margin||g.margin||"0",u.padding=u.padding||c.padding||g.padding||"0",u.borderRadius=u.borderRadius||g.borderRadius||"4px";const p=s.type,T=["p","span","h1","h2","h3","h4","h5","h6"].includes(p);u.backgroundColor=T?M.text:M.box,u.color="transparent",u.position="relative",u.overflow="hidden";const h=T?M.text:M.box;u.backgroundImage=`linear-gradient(90deg, ${h} 0%, #f5f5f5 50%, ${h} 100%)`,u.backgroundSize="200% 100%",u.animation="shimmer 1.5s infinite",delete c.skeletonrequired,c.style=u}const S=N.Children.map(s.props.children,y);return N.cloneElement(s,c,S)}return s}const E=N.Children.map(f,y);return J.jsxs(J.Fragment,{children:[J.jsx("style",{children:`
1
+ (function(global, factory) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react")) : typeof define === "function" && define.amd ? define(["exports", "react"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.SkeletonGhostLoader = {}, global.React));
3
+ })(this, function(exports2, React) {
4
+ "use strict";
5
+ function _interopNamespaceDefault(e) {
6
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
7
+ if (e) {
8
+ for (const k in e) {
9
+ if (k !== "default") {
10
+ const d = Object.getOwnPropertyDescriptor(e, k);
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: () => e[k]
14
+ });
15
+ }
16
+ }
17
+ }
18
+ n.default = e;
19
+ return Object.freeze(n);
20
+ }
21
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
22
+ var jsxRuntime = { exports: {} };
23
+ var reactJsxRuntime_production_min = {};
24
+ /**
25
+ * @license React
26
+ * react-jsx-runtime.production.min.js
27
+ *
28
+ * Copyright (c) Facebook, Inc. and its affiliates.
29
+ *
30
+ * This source code is licensed under the MIT license found in the
31
+ * LICENSE file in the root directory of this source tree.
32
+ */
33
+ var hasRequiredReactJsxRuntime_production_min;
34
+ function requireReactJsxRuntime_production_min() {
35
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
36
+ hasRequiredReactJsxRuntime_production_min = 1;
37
+ var f = React, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
38
+ function q(c, a, g) {
39
+ var b, d = {}, e = null, h = null;
40
+ void 0 !== g && (e = "" + g);
41
+ void 0 !== a.key && (e = "" + a.key);
42
+ void 0 !== a.ref && (h = a.ref);
43
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
44
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
45
+ return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
46
+ }
47
+ reactJsxRuntime_production_min.Fragment = l;
48
+ reactJsxRuntime_production_min.jsx = q;
49
+ reactJsxRuntime_production_min.jsxs = q;
50
+ return reactJsxRuntime_production_min;
51
+ }
52
+ var reactJsxRuntime_development = {};
53
+ /**
54
+ * @license React
55
+ * react-jsx-runtime.development.js
56
+ *
57
+ * Copyright (c) Facebook, Inc. and its affiliates.
58
+ *
59
+ * This source code is licensed under the MIT license found in the
60
+ * LICENSE file in the root directory of this source tree.
61
+ */
62
+ var hasRequiredReactJsxRuntime_development;
63
+ function requireReactJsxRuntime_development() {
64
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
65
+ hasRequiredReactJsxRuntime_development = 1;
66
+ if (process.env.NODE_ENV !== "production") {
67
+ (function() {
68
+ var React$1 = React;
69
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
70
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
71
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
72
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
73
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
74
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
75
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
76
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
77
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
78
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
79
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
80
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
81
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
82
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
83
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
84
+ function getIteratorFn(maybeIterable) {
85
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
86
+ return null;
87
+ }
88
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
89
+ if (typeof maybeIterator === "function") {
90
+ return maybeIterator;
91
+ }
92
+ return null;
93
+ }
94
+ var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
95
+ function error(format) {
96
+ {
97
+ {
98
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
99
+ args[_key2 - 1] = arguments[_key2];
100
+ }
101
+ printWarning("error", format, args);
102
+ }
103
+ }
104
+ }
105
+ function printWarning(level, format, args) {
106
+ {
107
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
108
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
109
+ if (stack !== "") {
110
+ format += "%s";
111
+ args = args.concat([stack]);
112
+ }
113
+ var argsWithFormat = args.map(function(item) {
114
+ return String(item);
115
+ });
116
+ argsWithFormat.unshift("Warning: " + format);
117
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
118
+ }
119
+ }
120
+ var enableScopeAPI = false;
121
+ var enableCacheElement = false;
122
+ var enableTransitionTracing = false;
123
+ var enableLegacyHidden = false;
124
+ var enableDebugTracing = false;
125
+ var REACT_MODULE_REFERENCE;
126
+ {
127
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
128
+ }
129
+ function isValidElementType(type) {
130
+ if (typeof type === "string" || typeof type === "function") {
131
+ return true;
132
+ }
133
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
134
+ return true;
135
+ }
136
+ if (typeof type === "object" && type !== null) {
137
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
138
+ // types supported by any Flight configuration anywhere since
139
+ // we don't know which Flight build this will end up being used
140
+ // with.
141
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
142
+ return true;
143
+ }
144
+ }
145
+ return false;
146
+ }
147
+ function getWrappedName(outerType, innerType, wrapperName) {
148
+ var displayName = outerType.displayName;
149
+ if (displayName) {
150
+ return displayName;
151
+ }
152
+ var functionName = innerType.displayName || innerType.name || "";
153
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
154
+ }
155
+ function getContextName(type) {
156
+ return type.displayName || "Context";
157
+ }
158
+ function getComponentNameFromType(type) {
159
+ if (type == null) {
160
+ return null;
161
+ }
162
+ {
163
+ if (typeof type.tag === "number") {
164
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
165
+ }
166
+ }
167
+ if (typeof type === "function") {
168
+ return type.displayName || type.name || null;
169
+ }
170
+ if (typeof type === "string") {
171
+ return type;
172
+ }
173
+ switch (type) {
174
+ case REACT_FRAGMENT_TYPE:
175
+ return "Fragment";
176
+ case REACT_PORTAL_TYPE:
177
+ return "Portal";
178
+ case REACT_PROFILER_TYPE:
179
+ return "Profiler";
180
+ case REACT_STRICT_MODE_TYPE:
181
+ return "StrictMode";
182
+ case REACT_SUSPENSE_TYPE:
183
+ return "Suspense";
184
+ case REACT_SUSPENSE_LIST_TYPE:
185
+ return "SuspenseList";
186
+ }
187
+ if (typeof type === "object") {
188
+ switch (type.$$typeof) {
189
+ case REACT_CONTEXT_TYPE:
190
+ var context = type;
191
+ return getContextName(context) + ".Consumer";
192
+ case REACT_PROVIDER_TYPE:
193
+ var provider = type;
194
+ return getContextName(provider._context) + ".Provider";
195
+ case REACT_FORWARD_REF_TYPE:
196
+ return getWrappedName(type, type.render, "ForwardRef");
197
+ case REACT_MEMO_TYPE:
198
+ var outerName = type.displayName || null;
199
+ if (outerName !== null) {
200
+ return outerName;
201
+ }
202
+ return getComponentNameFromType(type.type) || "Memo";
203
+ case REACT_LAZY_TYPE: {
204
+ var lazyComponent = type;
205
+ var payload = lazyComponent._payload;
206
+ var init = lazyComponent._init;
207
+ try {
208
+ return getComponentNameFromType(init(payload));
209
+ } catch (x) {
210
+ return null;
211
+ }
212
+ }
213
+ }
214
+ }
215
+ return null;
216
+ }
217
+ var assign = Object.assign;
218
+ var disabledDepth = 0;
219
+ var prevLog;
220
+ var prevInfo;
221
+ var prevWarn;
222
+ var prevError;
223
+ var prevGroup;
224
+ var prevGroupCollapsed;
225
+ var prevGroupEnd;
226
+ function disabledLog() {
227
+ }
228
+ disabledLog.__reactDisabledLog = true;
229
+ function disableLogs() {
230
+ {
231
+ if (disabledDepth === 0) {
232
+ prevLog = console.log;
233
+ prevInfo = console.info;
234
+ prevWarn = console.warn;
235
+ prevError = console.error;
236
+ prevGroup = console.group;
237
+ prevGroupCollapsed = console.groupCollapsed;
238
+ prevGroupEnd = console.groupEnd;
239
+ var props = {
240
+ configurable: true,
241
+ enumerable: true,
242
+ value: disabledLog,
243
+ writable: true
244
+ };
245
+ Object.defineProperties(console, {
246
+ info: props,
247
+ log: props,
248
+ warn: props,
249
+ error: props,
250
+ group: props,
251
+ groupCollapsed: props,
252
+ groupEnd: props
253
+ });
254
+ }
255
+ disabledDepth++;
256
+ }
257
+ }
258
+ function reenableLogs() {
259
+ {
260
+ disabledDepth--;
261
+ if (disabledDepth === 0) {
262
+ var props = {
263
+ configurable: true,
264
+ enumerable: true,
265
+ writable: true
266
+ };
267
+ Object.defineProperties(console, {
268
+ log: assign({}, props, {
269
+ value: prevLog
270
+ }),
271
+ info: assign({}, props, {
272
+ value: prevInfo
273
+ }),
274
+ warn: assign({}, props, {
275
+ value: prevWarn
276
+ }),
277
+ error: assign({}, props, {
278
+ value: prevError
279
+ }),
280
+ group: assign({}, props, {
281
+ value: prevGroup
282
+ }),
283
+ groupCollapsed: assign({}, props, {
284
+ value: prevGroupCollapsed
285
+ }),
286
+ groupEnd: assign({}, props, {
287
+ value: prevGroupEnd
288
+ })
289
+ });
290
+ }
291
+ if (disabledDepth < 0) {
292
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
293
+ }
294
+ }
295
+ }
296
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
297
+ var prefix;
298
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
299
+ {
300
+ if (prefix === void 0) {
301
+ try {
302
+ throw Error();
303
+ } catch (x) {
304
+ var match = x.stack.trim().match(/\n( *(at )?)/);
305
+ prefix = match && match[1] || "";
306
+ }
307
+ }
308
+ return "\n" + prefix + name;
309
+ }
310
+ }
311
+ var reentry = false;
312
+ var componentFrameCache;
313
+ {
314
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
315
+ componentFrameCache = new PossiblyWeakMap();
316
+ }
317
+ function describeNativeComponentFrame(fn, construct) {
318
+ if (!fn || reentry) {
319
+ return "";
320
+ }
321
+ {
322
+ var frame = componentFrameCache.get(fn);
323
+ if (frame !== void 0) {
324
+ return frame;
325
+ }
326
+ }
327
+ var control;
328
+ reentry = true;
329
+ var previousPrepareStackTrace = Error.prepareStackTrace;
330
+ Error.prepareStackTrace = void 0;
331
+ var previousDispatcher;
332
+ {
333
+ previousDispatcher = ReactCurrentDispatcher.current;
334
+ ReactCurrentDispatcher.current = null;
335
+ disableLogs();
336
+ }
337
+ try {
338
+ if (construct) {
339
+ var Fake = function() {
340
+ throw Error();
341
+ };
342
+ Object.defineProperty(Fake.prototype, "props", {
343
+ set: function() {
344
+ throw Error();
345
+ }
346
+ });
347
+ if (typeof Reflect === "object" && Reflect.construct) {
348
+ try {
349
+ Reflect.construct(Fake, []);
350
+ } catch (x) {
351
+ control = x;
352
+ }
353
+ Reflect.construct(fn, [], Fake);
354
+ } else {
355
+ try {
356
+ Fake.call();
357
+ } catch (x) {
358
+ control = x;
359
+ }
360
+ fn.call(Fake.prototype);
361
+ }
362
+ } else {
363
+ try {
364
+ throw Error();
365
+ } catch (x) {
366
+ control = x;
367
+ }
368
+ fn();
369
+ }
370
+ } catch (sample) {
371
+ if (sample && control && typeof sample.stack === "string") {
372
+ var sampleLines = sample.stack.split("\n");
373
+ var controlLines = control.stack.split("\n");
374
+ var s = sampleLines.length - 1;
375
+ var c = controlLines.length - 1;
376
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
377
+ c--;
378
+ }
379
+ for (; s >= 1 && c >= 0; s--, c--) {
380
+ if (sampleLines[s] !== controlLines[c]) {
381
+ if (s !== 1 || c !== 1) {
382
+ do {
383
+ s--;
384
+ c--;
385
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
386
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
387
+ if (fn.displayName && _frame.includes("<anonymous>")) {
388
+ _frame = _frame.replace("<anonymous>", fn.displayName);
389
+ }
390
+ {
391
+ if (typeof fn === "function") {
392
+ componentFrameCache.set(fn, _frame);
393
+ }
394
+ }
395
+ return _frame;
396
+ }
397
+ } while (s >= 1 && c >= 0);
398
+ }
399
+ break;
400
+ }
401
+ }
402
+ }
403
+ } finally {
404
+ reentry = false;
405
+ {
406
+ ReactCurrentDispatcher.current = previousDispatcher;
407
+ reenableLogs();
408
+ }
409
+ Error.prepareStackTrace = previousPrepareStackTrace;
410
+ }
411
+ var name = fn ? fn.displayName || fn.name : "";
412
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
413
+ {
414
+ if (typeof fn === "function") {
415
+ componentFrameCache.set(fn, syntheticFrame);
416
+ }
417
+ }
418
+ return syntheticFrame;
419
+ }
420
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
421
+ {
422
+ return describeNativeComponentFrame(fn, false);
423
+ }
424
+ }
425
+ function shouldConstruct(Component) {
426
+ var prototype = Component.prototype;
427
+ return !!(prototype && prototype.isReactComponent);
428
+ }
429
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
430
+ if (type == null) {
431
+ return "";
432
+ }
433
+ if (typeof type === "function") {
434
+ {
435
+ return describeNativeComponentFrame(type, shouldConstruct(type));
436
+ }
437
+ }
438
+ if (typeof type === "string") {
439
+ return describeBuiltInComponentFrame(type);
440
+ }
441
+ switch (type) {
442
+ case REACT_SUSPENSE_TYPE:
443
+ return describeBuiltInComponentFrame("Suspense");
444
+ case REACT_SUSPENSE_LIST_TYPE:
445
+ return describeBuiltInComponentFrame("SuspenseList");
446
+ }
447
+ if (typeof type === "object") {
448
+ switch (type.$$typeof) {
449
+ case REACT_FORWARD_REF_TYPE:
450
+ return describeFunctionComponentFrame(type.render);
451
+ case REACT_MEMO_TYPE:
452
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
453
+ case REACT_LAZY_TYPE: {
454
+ var lazyComponent = type;
455
+ var payload = lazyComponent._payload;
456
+ var init = lazyComponent._init;
457
+ try {
458
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
459
+ } catch (x) {
460
+ }
461
+ }
462
+ }
463
+ }
464
+ return "";
465
+ }
466
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
467
+ var loggedTypeFailures = {};
468
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
469
+ function setCurrentlyValidatingElement(element) {
470
+ {
471
+ if (element) {
472
+ var owner = element._owner;
473
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
474
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
475
+ } else {
476
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
477
+ }
478
+ }
479
+ }
480
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
481
+ {
482
+ var has = Function.call.bind(hasOwnProperty);
483
+ for (var typeSpecName in typeSpecs) {
484
+ if (has(typeSpecs, typeSpecName)) {
485
+ var error$1 = void 0;
486
+ try {
487
+ if (typeof typeSpecs[typeSpecName] !== "function") {
488
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
489
+ err.name = "Invariant Violation";
490
+ throw err;
491
+ }
492
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
493
+ } catch (ex) {
494
+ error$1 = ex;
495
+ }
496
+ if (error$1 && !(error$1 instanceof Error)) {
497
+ setCurrentlyValidatingElement(element);
498
+ error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
499
+ setCurrentlyValidatingElement(null);
500
+ }
501
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
502
+ loggedTypeFailures[error$1.message] = true;
503
+ setCurrentlyValidatingElement(element);
504
+ error("Failed %s type: %s", location, error$1.message);
505
+ setCurrentlyValidatingElement(null);
506
+ }
507
+ }
508
+ }
509
+ }
510
+ }
511
+ var isArrayImpl = Array.isArray;
512
+ function isArray(a) {
513
+ return isArrayImpl(a);
514
+ }
515
+ function typeName(value) {
516
+ {
517
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
518
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
519
+ return type;
520
+ }
521
+ }
522
+ function willCoercionThrow(value) {
523
+ {
524
+ try {
525
+ testStringCoercion(value);
526
+ return false;
527
+ } catch (e) {
528
+ return true;
529
+ }
530
+ }
531
+ }
532
+ function testStringCoercion(value) {
533
+ return "" + value;
534
+ }
535
+ function checkKeyStringCoercion(value) {
536
+ {
537
+ if (willCoercionThrow(value)) {
538
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
539
+ return testStringCoercion(value);
540
+ }
541
+ }
542
+ }
543
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
544
+ var RESERVED_PROPS = {
545
+ key: true,
546
+ ref: true,
547
+ __self: true,
548
+ __source: true
549
+ };
550
+ var specialPropKeyWarningShown;
551
+ var specialPropRefWarningShown;
552
+ function hasValidRef(config) {
553
+ {
554
+ if (hasOwnProperty.call(config, "ref")) {
555
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
556
+ if (getter && getter.isReactWarning) {
557
+ return false;
558
+ }
559
+ }
560
+ }
561
+ return config.ref !== void 0;
562
+ }
563
+ function hasValidKey(config) {
564
+ {
565
+ if (hasOwnProperty.call(config, "key")) {
566
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
567
+ if (getter && getter.isReactWarning) {
568
+ return false;
569
+ }
570
+ }
571
+ }
572
+ return config.key !== void 0;
573
+ }
574
+ function warnIfStringRefCannotBeAutoConverted(config, self2) {
575
+ {
576
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self2) ;
577
+ }
578
+ }
579
+ function defineKeyPropWarningGetter(props, displayName) {
580
+ {
581
+ var warnAboutAccessingKey = function() {
582
+ if (!specialPropKeyWarningShown) {
583
+ specialPropKeyWarningShown = true;
584
+ error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
585
+ }
586
+ };
587
+ warnAboutAccessingKey.isReactWarning = true;
588
+ Object.defineProperty(props, "key", {
589
+ get: warnAboutAccessingKey,
590
+ configurable: true
591
+ });
592
+ }
593
+ }
594
+ function defineRefPropWarningGetter(props, displayName) {
595
+ {
596
+ var warnAboutAccessingRef = function() {
597
+ if (!specialPropRefWarningShown) {
598
+ specialPropRefWarningShown = true;
599
+ error("%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)", displayName);
600
+ }
601
+ };
602
+ warnAboutAccessingRef.isReactWarning = true;
603
+ Object.defineProperty(props, "ref", {
604
+ get: warnAboutAccessingRef,
605
+ configurable: true
606
+ });
607
+ }
608
+ }
609
+ var ReactElement = function(type, key, ref, self2, source, owner, props) {
610
+ var element = {
611
+ // This tag allows us to uniquely identify this as a React Element
612
+ $$typeof: REACT_ELEMENT_TYPE,
613
+ // Built-in properties that belong on the element
614
+ type,
615
+ key,
616
+ ref,
617
+ props,
618
+ // Record the component responsible for creating this element.
619
+ _owner: owner
620
+ };
621
+ {
622
+ element._store = {};
623
+ Object.defineProperty(element._store, "validated", {
624
+ configurable: false,
625
+ enumerable: false,
626
+ writable: true,
627
+ value: false
628
+ });
629
+ Object.defineProperty(element, "_self", {
630
+ configurable: false,
631
+ enumerable: false,
632
+ writable: false,
633
+ value: self2
634
+ });
635
+ Object.defineProperty(element, "_source", {
636
+ configurable: false,
637
+ enumerable: false,
638
+ writable: false,
639
+ value: source
640
+ });
641
+ if (Object.freeze) {
642
+ Object.freeze(element.props);
643
+ Object.freeze(element);
644
+ }
645
+ }
646
+ return element;
647
+ };
648
+ function jsxDEV(type, config, maybeKey, source, self2) {
649
+ {
650
+ var propName;
651
+ var props = {};
652
+ var key = null;
653
+ var ref = null;
654
+ if (maybeKey !== void 0) {
655
+ {
656
+ checkKeyStringCoercion(maybeKey);
657
+ }
658
+ key = "" + maybeKey;
659
+ }
660
+ if (hasValidKey(config)) {
661
+ {
662
+ checkKeyStringCoercion(config.key);
663
+ }
664
+ key = "" + config.key;
665
+ }
666
+ if (hasValidRef(config)) {
667
+ ref = config.ref;
668
+ warnIfStringRefCannotBeAutoConverted(config, self2);
669
+ }
670
+ for (propName in config) {
671
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
672
+ props[propName] = config[propName];
673
+ }
674
+ }
675
+ if (type && type.defaultProps) {
676
+ var defaultProps = type.defaultProps;
677
+ for (propName in defaultProps) {
678
+ if (props[propName] === void 0) {
679
+ props[propName] = defaultProps[propName];
680
+ }
681
+ }
682
+ }
683
+ if (key || ref) {
684
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
685
+ if (key) {
686
+ defineKeyPropWarningGetter(props, displayName);
687
+ }
688
+ if (ref) {
689
+ defineRefPropWarningGetter(props, displayName);
690
+ }
691
+ }
692
+ return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
693
+ }
694
+ }
695
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
696
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
697
+ function setCurrentlyValidatingElement$1(element) {
698
+ {
699
+ if (element) {
700
+ var owner = element._owner;
701
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
702
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
703
+ } else {
704
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
705
+ }
706
+ }
707
+ }
708
+ var propTypesMisspellWarningShown;
709
+ {
710
+ propTypesMisspellWarningShown = false;
711
+ }
712
+ function isValidElement(object) {
713
+ {
714
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
715
+ }
716
+ }
717
+ function getDeclarationErrorAddendum() {
718
+ {
719
+ if (ReactCurrentOwner$1.current) {
720
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
721
+ if (name) {
722
+ return "\n\nCheck the render method of `" + name + "`.";
723
+ }
724
+ }
725
+ return "";
726
+ }
727
+ }
728
+ function getSourceInfoErrorAddendum(source) {
729
+ {
730
+ return "";
731
+ }
732
+ }
733
+ var ownerHasKeyUseWarning = {};
734
+ function getCurrentComponentErrorInfo(parentType) {
735
+ {
736
+ var info = getDeclarationErrorAddendum();
737
+ if (!info) {
738
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
739
+ if (parentName) {
740
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
741
+ }
742
+ }
743
+ return info;
744
+ }
745
+ }
746
+ function validateExplicitKey(element, parentType) {
747
+ {
748
+ if (!element._store || element._store.validated || element.key != null) {
749
+ return;
750
+ }
751
+ element._store.validated = true;
752
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
753
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
754
+ return;
755
+ }
756
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
757
+ var childOwner = "";
758
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
759
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
760
+ }
761
+ setCurrentlyValidatingElement$1(element);
762
+ error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
763
+ setCurrentlyValidatingElement$1(null);
764
+ }
765
+ }
766
+ function validateChildKeys(node, parentType) {
767
+ {
768
+ if (typeof node !== "object") {
769
+ return;
770
+ }
771
+ if (isArray(node)) {
772
+ for (var i = 0; i < node.length; i++) {
773
+ var child = node[i];
774
+ if (isValidElement(child)) {
775
+ validateExplicitKey(child, parentType);
776
+ }
777
+ }
778
+ } else if (isValidElement(node)) {
779
+ if (node._store) {
780
+ node._store.validated = true;
781
+ }
782
+ } else if (node) {
783
+ var iteratorFn = getIteratorFn(node);
784
+ if (typeof iteratorFn === "function") {
785
+ if (iteratorFn !== node.entries) {
786
+ var iterator = iteratorFn.call(node);
787
+ var step;
788
+ while (!(step = iterator.next()).done) {
789
+ if (isValidElement(step.value)) {
790
+ validateExplicitKey(step.value, parentType);
791
+ }
792
+ }
793
+ }
794
+ }
795
+ }
796
+ }
797
+ }
798
+ function validatePropTypes(element) {
799
+ {
800
+ var type = element.type;
801
+ if (type === null || type === void 0 || typeof type === "string") {
802
+ return;
803
+ }
804
+ var propTypes;
805
+ if (typeof type === "function") {
806
+ propTypes = type.propTypes;
807
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
808
+ // Inner props are checked in the reconciler.
809
+ type.$$typeof === REACT_MEMO_TYPE)) {
810
+ propTypes = type.propTypes;
811
+ } else {
812
+ return;
813
+ }
814
+ if (propTypes) {
815
+ var name = getComponentNameFromType(type);
816
+ checkPropTypes(propTypes, element.props, "prop", name, element);
817
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
818
+ propTypesMisspellWarningShown = true;
819
+ var _name = getComponentNameFromType(type);
820
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
821
+ }
822
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
823
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
824
+ }
825
+ }
826
+ }
827
+ function validateFragmentProps(fragment) {
828
+ {
829
+ var keys = Object.keys(fragment.props);
830
+ for (var i = 0; i < keys.length; i++) {
831
+ var key = keys[i];
832
+ if (key !== "children" && key !== "key") {
833
+ setCurrentlyValidatingElement$1(fragment);
834
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
835
+ setCurrentlyValidatingElement$1(null);
836
+ break;
837
+ }
838
+ }
839
+ if (fragment.ref !== null) {
840
+ setCurrentlyValidatingElement$1(fragment);
841
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
842
+ setCurrentlyValidatingElement$1(null);
843
+ }
844
+ }
845
+ }
846
+ var didWarnAboutKeySpread = {};
847
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
848
+ {
849
+ var validType = isValidElementType(type);
850
+ if (!validType) {
851
+ var info = "";
852
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
853
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
854
+ }
855
+ var sourceInfo = getSourceInfoErrorAddendum();
856
+ if (sourceInfo) {
857
+ info += sourceInfo;
858
+ } else {
859
+ info += getDeclarationErrorAddendum();
860
+ }
861
+ var typeString;
862
+ if (type === null) {
863
+ typeString = "null";
864
+ } else if (isArray(type)) {
865
+ typeString = "array";
866
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
867
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
868
+ info = " Did you accidentally export a JSX literal instead of a component?";
869
+ } else {
870
+ typeString = typeof type;
871
+ }
872
+ error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
873
+ }
874
+ var element = jsxDEV(type, props, key, source, self2);
875
+ if (element == null) {
876
+ return element;
877
+ }
878
+ if (validType) {
879
+ var children = props.children;
880
+ if (children !== void 0) {
881
+ if (isStaticChildren) {
882
+ if (isArray(children)) {
883
+ for (var i = 0; i < children.length; i++) {
884
+ validateChildKeys(children[i], type);
885
+ }
886
+ if (Object.freeze) {
887
+ Object.freeze(children);
888
+ }
889
+ } else {
890
+ error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
891
+ }
892
+ } else {
893
+ validateChildKeys(children, type);
894
+ }
895
+ }
896
+ }
897
+ {
898
+ if (hasOwnProperty.call(props, "key")) {
899
+ var componentName = getComponentNameFromType(type);
900
+ var keys = Object.keys(props).filter(function(k) {
901
+ return k !== "key";
902
+ });
903
+ var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
904
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
905
+ var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
906
+ error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
907
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
908
+ }
909
+ }
910
+ }
911
+ if (type === REACT_FRAGMENT_TYPE) {
912
+ validateFragmentProps(element);
913
+ } else {
914
+ validatePropTypes(element);
915
+ }
916
+ return element;
917
+ }
918
+ }
919
+ function jsxWithValidationStatic(type, props, key) {
920
+ {
921
+ return jsxWithValidation(type, props, key, true);
922
+ }
923
+ }
924
+ function jsxWithValidationDynamic(type, props, key) {
925
+ {
926
+ return jsxWithValidation(type, props, key, false);
927
+ }
928
+ }
929
+ var jsx = jsxWithValidationDynamic;
930
+ var jsxs = jsxWithValidationStatic;
931
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
932
+ reactJsxRuntime_development.jsx = jsx;
933
+ reactJsxRuntime_development.jsxs = jsxs;
934
+ })();
935
+ }
936
+ return reactJsxRuntime_development;
937
+ }
938
+ if (process.env.NODE_ENV === "production") {
939
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
940
+ } else {
941
+ jsxRuntime.exports = requireReactJsxRuntime_development();
942
+ }
943
+ var jsxRuntimeExports = jsxRuntime.exports;
944
+ const skeletonBgColors = {
945
+ text: "#ccc",
946
+ box: "#e0e0e0"
947
+ };
948
+ const styleCache = {};
949
+ function getComputedStyleFromNode(node) {
950
+ if (typeof document === "undefined") return {};
951
+ const type = typeof node.type === "string" ? node.type : "div";
952
+ const key = `${type}-${node.props.id || ""}-${node.props.className || ""}`;
953
+ if (styleCache[key]) return styleCache[key];
954
+ const el = document.createElement(type);
955
+ if (node.props.id) el.id = node.props.id;
956
+ if (node.props.className) el.className = node.props.className;
957
+ if (node.props.style) {
958
+ Object.entries(node.props.style).forEach(([k, v]) => {
959
+ el.style[k] = v;
960
+ });
961
+ }
962
+ el.style.display = "none";
963
+ document.body.appendChild(el);
964
+ const cs = window.getComputedStyle(el);
965
+ const computed = {
966
+ height: cs.height || void 0,
967
+ width: cs.width || "100%",
968
+ fontSize: cs.fontSize || void 0,
969
+ margin: cs.margin || "0",
970
+ padding: cs.padding || "0",
971
+ borderRadius: cs.borderRadius || "4px"
972
+ };
973
+ document.body.removeChild(el);
974
+ styleCache[key] = computed;
975
+ return computed;
976
+ }
977
+ const SkeletonBlock = ({ children }) => {
978
+ function traverse(node) {
979
+ if (!React__namespace.isValidElement(node)) return node;
980
+ if (typeof node.type === "string") {
981
+ const newProps = { ...node.props };
982
+ let style = { ...newProps.style };
983
+ if (newProps.skeletonrequired === "y") {
984
+ const defaults = getComputedStyleFromNode(node);
985
+ style.height = style.height || newProps.height || defaults.height || "20px";
986
+ style.width = style.width || newProps.width || defaults.width || "100%";
987
+ style.fontSize = style.fontSize || newProps.fontSize || defaults.fontSize || "16px";
988
+ style.margin = style.margin || newProps.margin || defaults.margin || "0";
989
+ style.padding = style.padding || newProps.padding || defaults.padding || "0";
990
+ style.borderRadius = style.borderRadius || defaults.borderRadius || "4px";
991
+ const type = node.type;
992
+ const isText = ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6"].includes(type);
993
+ style.backgroundColor = isText ? skeletonBgColors.text : skeletonBgColors.box;
994
+ style.color = "transparent";
995
+ style.position = "relative";
996
+ style.overflow = "hidden";
997
+ const shimmerBase = isText ? skeletonBgColors.text : skeletonBgColors.box;
998
+ style.backgroundImage = `linear-gradient(90deg, ${shimmerBase} 0%, #f5f5f5 50%, ${shimmerBase} 100%)`;
999
+ style.backgroundSize = "200% 100%";
1000
+ style.animation = "shimmer 1.5s infinite";
1001
+ delete newProps.skeletonrequired;
1002
+ newProps.style = style;
1003
+ }
1004
+ const childrenNodes = React__namespace.Children.map(node.props.children, traverse);
1005
+ return React__namespace.cloneElement(node, newProps, childrenNodes);
1006
+ }
1007
+ return node;
1008
+ }
1009
+ const result = React__namespace.Children.map(children, traverse);
1010
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1011
+ /* @__PURE__ */ jsxRuntimeExports.jsx("style", { children: `
31
1012
  @keyframes shimmer {
32
1013
  0% { background-position: -200% 0; }
33
1014
  100% { background-position: 200% 0; }
34
1015
  }
35
- `}),E]})};w.SkeletonBlock=ie,w.default=ie,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1016
+ ` }),
1017
+ result
1018
+ ] });
1019
+ };
1020
+ exports2.SkeletonBlock = SkeletonBlock;
1021
+ exports2.default = SkeletonBlock;
1022
+ Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
1023
+ });