@machinemetrics/mm-react-embeddable 0.1.0

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.
@@ -0,0 +1,120 @@
1
+ (function(Oe,De){typeof exports=="object"&&typeof module<"u"?De(exports):typeof define=="function"&&define.amd?define(["exports"],De):(Oe=typeof globalThis<"u"?globalThis:Oe||self,De(Oe["mm-react-embeddable"]={}))})(this,function(Oe){"use strict";function De(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It={exports:{}},q={};/**
2
+ * @license React
3
+ * react.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 mr;function io(){if(mr)return q;mr=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),_=Symbol.iterator;function x(i){return i===null||typeof i!="object"?null:(i=_&&i[_]||i["@@iterator"],typeof i=="function"?i:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W=Object.assign,N={};function V(i,f,w){this.props=i,this.context=f,this.refs=N,this.updater=w||O}V.prototype.isReactComponent={},V.prototype.setState=function(i,f){if(typeof i!="object"&&typeof i!="function"&&i!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,i,f,"setState")},V.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function Y(){}Y.prototype=V.prototype;function B(i,f,w){this.props=i,this.context=f,this.refs=N,this.updater=w||O}var L=B.prototype=new Y;L.constructor=B,W(L,V.prototype),L.isPureReactComponent=!0;var $=Array.isArray,p=Object.prototype.hasOwnProperty,j={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function se(i,f,w){var E,R={},C=null,T=null;if(f!=null)for(E in f.ref!==void 0&&(T=f.ref),f.key!==void 0&&(C=""+f.key),f)p.call(f,E)&&!D.hasOwnProperty(E)&&(R[E]=f[E]);var P=arguments.length-2;if(P===1)R.children=w;else if(1<P){for(var k=Array(P),M=0;M<P;M++)k[M]=arguments[M+2];R.children=k}if(i&&i.defaultProps)for(E in P=i.defaultProps,P)R[E]===void 0&&(R[E]=P[E]);return{$$typeof:e,type:i,key:C,ref:T,props:R,_owner:j.current}}function de(i,f){return{$$typeof:e,type:i.type,key:f,ref:i.ref,props:i.props,_owner:i._owner}}function we(i){return typeof i=="object"&&i!==null&&i.$$typeof===e}function _e(i){var f={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(w){return f[w]})}var Re=/\/+/g;function be(i,f){return typeof i=="object"&&i!==null&&i.key!=null?_e(""+i.key):f.toString(36)}function pe(i,f,w,E,R){var C=typeof i;(C==="undefined"||C==="boolean")&&(i=null);var T=!1;if(i===null)T=!0;else switch(C){case"string":case"number":T=!0;break;case"object":switch(i.$$typeof){case e:case r:T=!0}}if(T)return T=i,R=R(T),i=E===""?"."+be(T,0):E,$(R)?(w="",i!=null&&(w=i.replace(Re,"$&/")+"/"),pe(R,f,w,"",function(M){return M})):R!=null&&(we(R)&&(R=de(R,w+(!R.key||T&&T.key===R.key?"":(""+R.key).replace(Re,"$&/")+"/")+i)),f.push(R)),1;if(T=0,E=E===""?".":E+":",$(i))for(var P=0;P<i.length;P++){C=i[P];var k=E+be(C,P);T+=pe(C,f,w,k,R)}else if(k=x(i),typeof k=="function")for(i=k.call(i),P=0;!(C=i.next()).done;)C=C.value,k=E+be(C,P++),T+=pe(C,f,w,k,R);else if(C==="object")throw f=String(i),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.");return T}function fe(i,f,w){if(i==null)return i;var E=[],R=0;return pe(i,E,"","",function(C){return f.call(w,C,R++)}),E}function ne(i){if(i._status===-1){var f=i._result;f=f(),f.then(function(w){(i._status===0||i._status===-1)&&(i._status=1,i._result=w)},function(w){(i._status===0||i._status===-1)&&(i._status=2,i._result=w)}),i._status===-1&&(i._status=0,i._result=f)}if(i._status===1)return i._result.default;throw i._result}var I={current:null},he={transition:null},ue={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:he,ReactCurrentOwner:j};function v(){throw Error("act(...) is not supported in production builds of React.")}return q.Children={map:fe,forEach:function(i,f,w){fe(i,function(){f.apply(this,arguments)},w)},count:function(i){var f=0;return fe(i,function(){f++}),f},toArray:function(i){return fe(i,function(f){return f})||[]},only:function(i){if(!we(i))throw Error("React.Children.only expected to receive a single React element child.");return i}},q.Component=V,q.Fragment=n,q.Profiler=s,q.PureComponent=B,q.StrictMode=o,q.Suspense=y,q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,q.act=v,q.cloneElement=function(i,f,w){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var E=W({},i.props),R=i.key,C=i.ref,T=i._owner;if(f!=null){if(f.ref!==void 0&&(C=f.ref,T=j.current),f.key!==void 0&&(R=""+f.key),i.type&&i.type.defaultProps)var P=i.type.defaultProps;for(k in f)p.call(f,k)&&!D.hasOwnProperty(k)&&(E[k]=f[k]===void 0&&P!==void 0?P[k]:f[k])}var k=arguments.length-2;if(k===1)E.children=w;else if(1<k){P=Array(k);for(var M=0;M<k;M++)P[M]=arguments[M+2];E.children=P}return{$$typeof:e,type:i.type,key:R,ref:C,props:E,_owner:T}},q.createContext=function(i){return i={$$typeof:d,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},i.Provider={$$typeof:u,_context:i},i.Consumer=i},q.createElement=se,q.createFactory=function(i){var f=se.bind(null,i);return f.type=i,f},q.createRef=function(){return{current:null}},q.forwardRef=function(i){return{$$typeof:h,render:i}},q.isValidElement=we,q.lazy=function(i){return{$$typeof:g,_payload:{_status:-1,_result:i},_init:ne}},q.memo=function(i,f){return{$$typeof:S,type:i,compare:f===void 0?null:f}},q.startTransition=function(i){var f=he.transition;he.transition={};try{i()}finally{he.transition=f}},q.unstable_act=v,q.useCallback=function(i,f){return I.current.useCallback(i,f)},q.useContext=function(i){return I.current.useContext(i)},q.useDebugValue=function(){},q.useDeferredValue=function(i){return I.current.useDeferredValue(i)},q.useEffect=function(i,f){return I.current.useEffect(i,f)},q.useId=function(){return I.current.useId()},q.useImperativeHandle=function(i,f,w){return I.current.useImperativeHandle(i,f,w)},q.useInsertionEffect=function(i,f){return I.current.useInsertionEffect(i,f)},q.useLayoutEffect=function(i,f){return I.current.useLayoutEffect(i,f)},q.useMemo=function(i,f){return I.current.useMemo(i,f)},q.useReducer=function(i,f,w){return I.current.useReducer(i,f,w)},q.useRef=function(i){return I.current.useRef(i)},q.useState=function(i){return I.current.useState(i)},q.useSyncExternalStore=function(i,f,w){return I.current.useSyncExternalStore(i,f,w)},q.useTransition=function(){return I.current.useTransition()},q.version="18.3.1",q}var Xe={exports:{}};/**
10
+ * @license React
11
+ * react.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
+ */Xe.exports;var gr;function so(){return gr||(gr=1,function(e,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.3.1",o=Symbol.for("react.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),S=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),V=Symbol.iterator,Y="@@iterator";function B(t){if(t===null||typeof t!="object")return null;var a=V&&t[V]||t[Y];return typeof a=="function"?a:null}var L={current:null},$={transition:null},p={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},j={current:null},D={},se=null;function de(t){se=t}D.setExtraStackFrame=function(t){se=t},D.getCurrentStack=null,D.getStackAddendum=function(){var t="";se&&(t+=se);var a=D.getCurrentStack;return a&&(t+=a()||""),t};var we=!1,_e=!1,Re=!1,be=!1,pe=!1,fe={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:$,ReactCurrentOwner:j};fe.ReactDebugCurrentFrame=D,fe.ReactCurrentActQueue=p;function ne(t){{for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l<a;l++)c[l-1]=arguments[l];he("warn",t,c)}}function I(t){{for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l<a;l++)c[l-1]=arguments[l];he("error",t,c)}}function he(t,a,c){{var l=fe.ReactDebugCurrentFrame,m=l.getStackAddendum();m!==""&&(a+="%s",c=c.concat([m]));var F=c.map(function(A){return String(A)});F.unshift("Warning: "+a),Function.prototype.apply.call(console[t],console,F)}}var ue={};function v(t,a){{var c=t.constructor,l=c&&(c.displayName||c.name)||"ReactClass",m=l+"."+a;if(ue[m])return;I("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",a,l),ue[m]=!0}}var i={isMounted:function(t){return!1},enqueueForceUpdate:function(t,a,c){v(t,"forceUpdate")},enqueueReplaceState:function(t,a,c,l){v(t,"replaceState")},enqueueSetState:function(t,a,c,l){v(t,"setState")}},f=Object.assign,w={};Object.freeze(w);function E(t,a,c){this.props=t,this.context=a,this.refs=w,this.updater=c||i}E.prototype.isReactComponent={},E.prototype.setState=function(t,a){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,a,"setState")},E.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};{var R={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},C=function(t,a){Object.defineProperty(E.prototype,t,{get:function(){ne("%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})};for(var T in R)R.hasOwnProperty(T)&&C(T,R[T])}function P(){}P.prototype=E.prototype;function k(t,a,c){this.props=t,this.context=a,this.refs=w,this.updater=c||i}var M=k.prototype=new P;M.constructor=k,f(M,E.prototype),M.isPureReactComponent=!0;function oe(){var t={current:null};return Object.seal(t),t}var b=Array.isArray;function ye(t){return b(t)}function Be(t){{var a=typeof Symbol=="function"&&Symbol.toStringTag,c=a&&t[Symbol.toStringTag]||t.constructor.name||"Object";return c}}function wt(t){try{return _n(t),!1}catch{return!0}}function _n(t){return""+t}function St(t){if(wt(t))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(t)),_n(t)}function Ta(t,a,c){var l=t.displayName;if(l)return l;var m=a.displayName||a.name||"";return m!==""?c+"("+m+")":c}function Rn(t){return t.displayName||"Context"}function ke(t){if(t==null)return null;if(typeof t.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case u:return"Fragment";case s:return"Portal";case h:return"Profiler";case d:return"StrictMode";case _:return"Suspense";case x:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case S:var a=t;return Rn(a)+".Consumer";case y:var c=t;return Rn(c._context)+".Provider";case g:return Ta(t,t.render,"ForwardRef");case O:var l=t.displayName||null;return l!==null?l:ke(t.type)||"Memo";case W:{var m=t,F=m._payload,A=m._init;try{return ke(A(F))}catch{return null}}}return null}var Ze=Object.prototype.hasOwnProperty,Cn={key:!0,ref:!0,__self:!0,__source:!0},Tn,On,ar;ar={};function Pn(t){if(Ze.call(t,"ref")){var a=Object.getOwnPropertyDescriptor(t,"ref").get;if(a&&a.isReactWarning)return!1}return t.ref!==void 0}function kn(t){if(Ze.call(t,"key")){var a=Object.getOwnPropertyDescriptor(t,"key").get;if(a&&a.isReactWarning)return!1}return t.key!==void 0}function Oa(t,a){var c=function(){Tn||(Tn=!0,I("%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)",a))};c.isReactWarning=!0,Object.defineProperty(t,"key",{get:c,configurable:!0})}function Pa(t,a){var c=function(){On||(On=!0,I("%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)",a))};c.isReactWarning=!0,Object.defineProperty(t,"ref",{get:c,configurable:!0})}function ka(t){if(typeof t.ref=="string"&&j.current&&t.__self&&j.current.stateNode!==t.__self){var a=ke(j.current.type);ar[a]||(I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',a,t.ref),ar[a]=!0)}}var ir=function(t,a,c,l,m,F,A){var z={$$typeof:o,type:t,key:a,ref:c,props:A,_owner:F};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function Aa(t,a,c){var l,m={},F=null,A=null,z=null,H=null;if(a!=null){Pn(a)&&(A=a.ref,ka(a)),kn(a)&&(St(a.key),F=""+a.key),z=a.__self===void 0?null:a.__self,H=a.__source===void 0?null:a.__source;for(l in a)Ze.call(a,l)&&!Cn.hasOwnProperty(l)&&(m[l]=a[l])}var J=arguments.length-2;if(J===1)m.children=c;else if(J>1){for(var ee=Array(J),te=0;te<J;te++)ee[te]=arguments[te+2];Object.freeze&&Object.freeze(ee),m.children=ee}if(t&&t.defaultProps){var re=t.defaultProps;for(l in re)m[l]===void 0&&(m[l]=re[l])}if(F||A){var ie=typeof t=="function"?t.displayName||t.name||"Unknown":t;F&&Oa(m,ie),A&&Pa(m,ie)}return ir(t,F,A,z,H,j.current,m)}function xa(t,a){var c=ir(t.type,a,t.ref,t._self,t._source,t._owner,t.props);return c}function Ia(t,a,c){if(t==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var l,m=f({},t.props),F=t.key,A=t.ref,z=t._self,H=t._source,J=t._owner;if(a!=null){Pn(a)&&(A=a.ref,J=j.current),kn(a)&&(St(a.key),F=""+a.key);var ee;t.type&&t.type.defaultProps&&(ee=t.type.defaultProps);for(l in a)Ze.call(a,l)&&!Cn.hasOwnProperty(l)&&(a[l]===void 0&&ee!==void 0?m[l]=ee[l]:m[l]=a[l])}var te=arguments.length-2;if(te===1)m.children=c;else if(te>1){for(var re=Array(te),ie=0;ie<te;ie++)re[ie]=arguments[ie+2];m.children=re}return ir(t.type,F,A,z,H,J,m)}function He(t){return typeof t=="object"&&t!==null&&t.$$typeof===o}var An=".",ja=":";function $a(t){var a=/[=:]/g,c={"=":"=0",":":"=2"},l=t.replace(a,function(m){return c[m]});return"$"+l}var xn=!1,Da=/\/+/g;function In(t){return t.replace(Da,"$&/")}function sr(t,a){return typeof t=="object"&&t!==null&&t.key!=null?(St(t.key),$a(""+t.key)):a.toString(36)}function _t(t,a,c,l,m){var F=typeof t;(F==="undefined"||F==="boolean")&&(t=null);var A=!1;if(t===null)A=!0;else switch(F){case"string":case"number":A=!0;break;case"object":switch(t.$$typeof){case o:case s:A=!0}}if(A){var z=t,H=m(z),J=l===""?An+sr(z,0):l;if(ye(H)){var ee="";J!=null&&(ee=In(J)+"/"),_t(H,a,ee,"",function(Oi){return Oi})}else H!=null&&(He(H)&&(H.key&&(!z||z.key!==H.key)&&St(H.key),H=xa(H,c+(H.key&&(!z||z.key!==H.key)?In(""+H.key)+"/":"")+J)),a.push(H));return 1}var te,re,ie=0,le=l===""?An:l+ja;if(ye(t))for(var xt=0;xt<t.length;xt++)te=t[xt],re=le+sr(te,xt),ie+=_t(te,a,c,re,m);else{var vr=B(t);if(typeof vr=="function"){var no=t;vr===no.entries&&(xn||ne("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),xn=!0);for(var Ci=vr.call(no),oo,Ti=0;!(oo=Ci.next()).done;)te=oo.value,re=le+sr(te,Ti++),ie+=_t(te,a,c,re,m)}else if(F==="object"){var ao=String(t);throw new Error("Objects are not valid as a React child (found: "+(ao==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":ao)+"). If you meant to render a collection of children, use an array instead.")}}return ie}function Rt(t,a,c){if(t==null)return t;var l=[],m=0;return _t(t,l,"","",function(F){return a.call(c,F,m++)}),l}function Ma(t){var a=0;return Rt(t,function(){a++}),a}function Na(t,a,c){Rt(t,function(){a.apply(this,arguments)},c)}function La(t){return Rt(t,function(a){return a})||[]}function Fa(t){if(!He(t))throw new Error("React.Children.only expected to receive a single React element child.");return t}function Wa(t){var a={$$typeof:S,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:y,_context:a};var c=!1,l=!1,m=!1;{var F={$$typeof:S,_context:a};Object.defineProperties(F,{Provider:{get:function(){return l||(l=!0,I("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),a.Provider},set:function(A){a.Provider=A}},_currentValue:{get:function(){return a._currentValue},set:function(A){a._currentValue=A}},_currentValue2:{get:function(){return a._currentValue2},set:function(A){a._currentValue2=A}},_threadCount:{get:function(){return a._threadCount},set:function(A){a._threadCount=A}},Consumer:{get:function(){return c||(c=!0,I("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),a.Consumer}},displayName:{get:function(){return a.displayName},set:function(A){m||(ne("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",A),m=!0)}}}),a.Consumer=F}return a._currentRenderer=null,a._currentRenderer2=null,a}var et=-1,cr=0,jn=1,Ya=2;function za(t){if(t._status===et){var a=t._result,c=a();if(c.then(function(F){if(t._status===cr||t._status===et){var A=t;A._status=jn,A._result=F}},function(F){if(t._status===cr||t._status===et){var A=t;A._status=Ya,A._result=F}}),t._status===et){var l=t;l._status=cr,l._result=c}}if(t._status===jn){var m=t._result;return m===void 0&&I(`lazy: Expected the result of a dynamic import() call. Instead received: %s
18
+
19
+ Your code should look like:
20
+ const MyComponent = lazy(() => import('./MyComponent'))
21
+
22
+ Did you accidentally put curly braces around the import?`,m),"default"in m||I(`lazy: Expected the result of a dynamic import() call. Instead received: %s
23
+
24
+ Your code should look like:
25
+ const MyComponent = lazy(() => import('./MyComponent'))`,m),m.default}else throw t._result}function Va(t){var a={_status:et,_result:t},c={$$typeof:W,_payload:a,_init:za};{var l,m;Object.defineProperties(c,{defaultProps:{configurable:!0,get:function(){return l},set:function(F){I("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),l=F,Object.defineProperty(c,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return m},set:function(F){I("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),m=F,Object.defineProperty(c,"propTypes",{enumerable:!0})}}})}return c}function Ua(t){t!=null&&t.$$typeof===O?I("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof t!="function"?I("forwardRef requires a render function but was given %s.",t===null?"null":typeof t):t.length!==0&&t.length!==2&&I("forwardRef render functions accept exactly two parameters: props and ref. %s",t.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),t!=null&&(t.defaultProps!=null||t.propTypes!=null)&&I("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var a={$$typeof:g,render:t};{var c;Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return c},set:function(l){c=l,!t.name&&!t.displayName&&(t.displayName=l)}})}return a}var $n;$n=Symbol.for("react.module.reference");function Dn(t){return!!(typeof t=="string"||typeof t=="function"||t===u||t===h||pe||t===d||t===_||t===x||be||t===N||we||_e||Re||typeof t=="object"&&t!==null&&(t.$$typeof===W||t.$$typeof===O||t.$$typeof===y||t.$$typeof===S||t.$$typeof===g||t.$$typeof===$n||t.getModuleId!==void 0))}function qa(t,a){Dn(t)||I("memo: The first argument must be a component. Instead received: %s",t===null?"null":typeof t);var c={$$typeof:O,type:t,compare:a===void 0?null:a};{var l;Object.defineProperty(c,"displayName",{enumerable:!1,configurable:!0,get:function(){return l},set:function(m){l=m,!t.name&&!t.displayName&&(t.displayName=m)}})}return c}function ve(){var t=L.current;return t===null&&I(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
26
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
27
+ 2. You might be breaking the Rules of Hooks
28
+ 3. You might have more than one copy of React in the same app
29
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),t}function Ba(t){var a=ve();if(t._context!==void 0){var c=t._context;c.Consumer===t?I("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):c.Provider===t&&I("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return a.useContext(t)}function Ha(t){var a=ve();return a.useState(t)}function Ga(t,a,c){var l=ve();return l.useReducer(t,a,c)}function Ka(t){var a=ve();return a.useRef(t)}function Xa(t,a){var c=ve();return c.useEffect(t,a)}function Ja(t,a){var c=ve();return c.useInsertionEffect(t,a)}function Qa(t,a){var c=ve();return c.useLayoutEffect(t,a)}function Za(t,a){var c=ve();return c.useCallback(t,a)}function ei(t,a){var c=ve();return c.useMemo(t,a)}function ti(t,a,c){var l=ve();return l.useImperativeHandle(t,a,c)}function ri(t,a){{var c=ve();return c.useDebugValue(t,a)}}function ni(){var t=ve();return t.useTransition()}function oi(t){var a=ve();return a.useDeferredValue(t)}function ai(){var t=ve();return t.useId()}function ii(t,a,c){var l=ve();return l.useSyncExternalStore(t,a,c)}var tt=0,Mn,Nn,Ln,Fn,Wn,Yn,zn;function Vn(){}Vn.__reactDisabledLog=!0;function si(){{if(tt===0){Mn=console.log,Nn=console.info,Ln=console.warn,Fn=console.error,Wn=console.group,Yn=console.groupCollapsed,zn=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Vn,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}tt++}}function ci(){{if(tt--,tt===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:f({},t,{value:Mn}),info:f({},t,{value:Nn}),warn:f({},t,{value:Ln}),error:f({},t,{value:Fn}),group:f({},t,{value:Wn}),groupCollapsed:f({},t,{value:Yn}),groupEnd:f({},t,{value:zn})})}tt<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ur=fe.ReactCurrentDispatcher,fr;function Ct(t,a,c){{if(fr===void 0)try{throw Error()}catch(m){var l=m.stack.trim().match(/\n( *(at )?)/);fr=l&&l[1]||""}return`
30
+ `+fr+t}}var lr=!1,Tt;{var ui=typeof WeakMap=="function"?WeakMap:Map;Tt=new ui}function Un(t,a){if(!t||lr)return"";{var c=Tt.get(t);if(c!==void 0)return c}var l;lr=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=ur.current,ur.current=null,si();try{if(a){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(le){l=le}Reflect.construct(t,[],A)}else{try{A.call()}catch(le){l=le}t.call(A.prototype)}}else{try{throw Error()}catch(le){l=le}t()}}catch(le){if(le&&l&&typeof le.stack=="string"){for(var z=le.stack.split(`
31
+ `),H=l.stack.split(`
32
+ `),J=z.length-1,ee=H.length-1;J>=1&&ee>=0&&z[J]!==H[ee];)ee--;for(;J>=1&&ee>=0;J--,ee--)if(z[J]!==H[ee]){if(J!==1||ee!==1)do if(J--,ee--,ee<0||z[J]!==H[ee]){var te=`
33
+ `+z[J].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),typeof t=="function"&&Tt.set(t,te),te}while(J>=1&&ee>=0);break}}}finally{lr=!1,ur.current=F,ci(),Error.prepareStackTrace=m}var re=t?t.displayName||t.name:"",ie=re?Ct(re):"";return typeof t=="function"&&Tt.set(t,ie),ie}function fi(t,a,c){return Un(t,!1)}function li(t){var a=t.prototype;return!!(a&&a.isReactComponent)}function Ot(t,a,c){if(t==null)return"";if(typeof t=="function")return Un(t,li(t));if(typeof t=="string")return Ct(t);switch(t){case _:return Ct("Suspense");case x:return Ct("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case g:return fi(t.render);case O:return Ot(t.type,a,c);case W:{var l=t,m=l._payload,F=l._init;try{return Ot(F(m),a,c)}catch{}}}return""}var qn={},Bn=fe.ReactDebugCurrentFrame;function Pt(t){if(t){var a=t._owner,c=Ot(t.type,t._source,a?a.type:null);Bn.setExtraStackFrame(c)}else Bn.setExtraStackFrame(null)}function di(t,a,c,l,m){{var F=Function.call.bind(Ze);for(var A in t)if(F(t,A)){var z=void 0;try{if(typeof t[A]!="function"){var H=Error((l||"React class")+": "+c+" type `"+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[A]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw H.name="Invariant Violation",H}z=t[A](a,A,l,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){z=J}z&&!(z instanceof Error)&&(Pt(m),I("%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).",l||"React class",c,A,typeof z),Pt(null)),z instanceof Error&&!(z.message in qn)&&(qn[z.message]=!0,Pt(m),I("Failed %s type: %s",c,z.message),Pt(null))}}}function Ge(t){if(t){var a=t._owner,c=Ot(t.type,t._source,a?a.type:null);de(c)}else de(null)}var dr;dr=!1;function Hn(){if(j.current){var t=ke(j.current.type);if(t)return`
34
+
35
+ Check the render method of \``+t+"`."}return""}function pi(t){if(t!==void 0){var a=t.fileName.replace(/^.*[\\\/]/,""),c=t.lineNumber;return`
36
+
37
+ Check your code at `+a+":"+c+"."}return""}function hi(t){return t!=null?pi(t.__source):""}var Gn={};function yi(t){var a=Hn();if(!a){var c=typeof t=="string"?t:t.displayName||t.name;c&&(a=`
38
+
39
+ Check the top-level render call using <`+c+">.")}return a}function Kn(t,a){if(!(!t._store||t._store.validated||t.key!=null)){t._store.validated=!0;var c=yi(a);if(!Gn[c]){Gn[c]=!0;var l="";t&&t._owner&&t._owner!==j.current&&(l=" It was passed a child from "+ke(t._owner.type)+"."),Ge(t),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,l),Ge(null)}}}function Xn(t,a){if(typeof t=="object"){if(ye(t))for(var c=0;c<t.length;c++){var l=t[c];He(l)&&Kn(l,a)}else if(He(t))t._store&&(t._store.validated=!0);else if(t){var m=B(t);if(typeof m=="function"&&m!==t.entries)for(var F=m.call(t),A;!(A=F.next()).done;)He(A.value)&&Kn(A.value,a)}}}function Jn(t){{var a=t.type;if(a==null||typeof a=="string")return;var c;if(typeof a=="function")c=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===g||a.$$typeof===O))c=a.propTypes;else return;if(c){var l=ke(a);di(c,t.props,"prop",l,t)}else if(a.PropTypes!==void 0&&!dr){dr=!0;var m=ke(a);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vi(t){{for(var a=Object.keys(t.props),c=0;c<a.length;c++){var l=a[c];if(l!=="children"&&l!=="key"){Ge(t),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),Ge(null);break}}t.ref!==null&&(Ge(t),I("Invalid attribute `ref` supplied to `React.Fragment`."),Ge(null))}}function Qn(t,a,c){var l=Dn(t);if(!l){var m="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(m+=" 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 F=hi(a);F?m+=F:m+=Hn();var A;t===null?A="null":ye(t)?A="array":t!==void 0&&t.$$typeof===o?(A="<"+(ke(t.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):A=typeof t,I("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,m)}var z=Aa.apply(this,arguments);if(z==null)return z;if(l)for(var H=2;H<arguments.length;H++)Xn(arguments[H],t);return t===u?vi(z):Jn(z),z}var Zn=!1;function mi(t){var a=Qn.bind(null,t);return a.type=t,Zn||(Zn=!0,ne("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(a,"type",{enumerable:!1,get:function(){return ne("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),a}function gi(t,a,c){for(var l=Ia.apply(this,arguments),m=2;m<arguments.length;m++)Xn(arguments[m],l.type);return Jn(l),l}function bi(t,a){var c=$.transition;$.transition={};var l=$.transition;$.transition._updatedFibers=new Set;try{t()}finally{if($.transition=c,c===null&&l._updatedFibers){var m=l._updatedFibers.size;m>10&&ne("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),l._updatedFibers.clear()}}}var eo=!1,kt=null;function Ei(t){if(kt===null)try{var a=("require"+Math.random()).slice(0,7),c=e&&e[a];kt=c.call(e,"timers").setImmediate}catch{kt=function(m){eo===!1&&(eo=!0,typeof MessageChannel>"u"&&I("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var F=new MessageChannel;F.port1.onmessage=m,F.port2.postMessage(void 0)}}return kt(t)}var Ke=0,to=!1;function ro(t){{var a=Ke;Ke++,p.current===null&&(p.current=[]);var c=p.isBatchingLegacy,l;try{if(p.isBatchingLegacy=!0,l=t(),!c&&p.didScheduleLegacyUpdate){var m=p.current;m!==null&&(p.didScheduleLegacyUpdate=!1,yr(m))}}catch(re){throw At(a),re}finally{p.isBatchingLegacy=c}if(l!==null&&typeof l=="object"&&typeof l.then=="function"){var F=l,A=!1,z={then:function(re,ie){A=!0,F.then(function(le){At(a),Ke===0?pr(le,re,ie):re(le)},function(le){At(a),ie(le)})}};return!to&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){A||(to=!0,I("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),z}else{var H=l;if(At(a),Ke===0){var J=p.current;J!==null&&(yr(J),p.current=null);var ee={then:function(re,ie){p.current===null?(p.current=[],pr(H,re,ie)):re(H)}};return ee}else{var te={then:function(re,ie){re(H)}};return te}}}}function At(t){t!==Ke-1&&I("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ke=t}function pr(t,a,c){{var l=p.current;if(l!==null)try{yr(l),Ei(function(){l.length===0?(p.current=null,a(t)):pr(t,a,c)})}catch(m){c(m)}else a(t)}}var hr=!1;function yr(t){if(!hr){hr=!0;var a=0;try{for(;a<t.length;a++){var c=t[a];do c=c(!0);while(c!==null)}t.length=0}catch(l){throw t=t.slice(a+1),l}finally{hr=!1}}}var wi=Qn,Si=gi,_i=mi,Ri={map:Rt,forEach:Na,count:Ma,toArray:La,only:Fa};r.Children=Ri,r.Component=E,r.Fragment=u,r.Profiler=h,r.PureComponent=k,r.StrictMode=d,r.Suspense=_,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fe,r.act=ro,r.cloneElement=Si,r.createContext=Wa,r.createElement=wi,r.createFactory=_i,r.createRef=oe,r.forwardRef=Ua,r.isValidElement=He,r.lazy=Va,r.memo=qa,r.startTransition=bi,r.unstable_act=ro,r.useCallback=Za,r.useContext=Ba,r.useDebugValue=ri,r.useDeferredValue=oi,r.useEffect=Xa,r.useId=ai,r.useImperativeHandle=ti,r.useInsertionEffect=Ja,r.useLayoutEffect=Qa,r.useMemo=ei,r.useReducer=Ga,r.useRef=Ka,r.useState=Ha,r.useSyncExternalStore=ii,r.useTransition=ni,r.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Xe,Xe.exports)),Xe.exports}process.env.NODE_ENV==="production"?It.exports=io():It.exports=so();var Q=It.exports;const Ce=De(Q);var jt={exports:{}},rt={exports:{}},G={};/** @license React v16.13.1
40
+ * react-is.production.min.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var br;function co(){if(br)return G;br=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,O=e?Symbol.for("react.memo"):60115,W=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,V=e?Symbol.for("react.fundamental"):60117,Y=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function L(p){if(typeof p=="object"&&p!==null){var j=p.$$typeof;switch(j){case r:switch(p=p.type,p){case y:case S:case o:case u:case s:case _:return p;default:switch(p=p&&p.$$typeof,p){case h:case g:case W:case O:case d:return p;default:return j}}case n:return j}}}function $(p){return L(p)===S}return G.AsyncMode=y,G.ConcurrentMode=S,G.ContextConsumer=h,G.ContextProvider=d,G.Element=r,G.ForwardRef=g,G.Fragment=o,G.Lazy=W,G.Memo=O,G.Portal=n,G.Profiler=u,G.StrictMode=s,G.Suspense=_,G.isAsyncMode=function(p){return $(p)||L(p)===y},G.isConcurrentMode=$,G.isContextConsumer=function(p){return L(p)===h},G.isContextProvider=function(p){return L(p)===d},G.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===r},G.isForwardRef=function(p){return L(p)===g},G.isFragment=function(p){return L(p)===o},G.isLazy=function(p){return L(p)===W},G.isMemo=function(p){return L(p)===O},G.isPortal=function(p){return L(p)===n},G.isProfiler=function(p){return L(p)===u},G.isStrictMode=function(p){return L(p)===s},G.isSuspense=function(p){return L(p)===_},G.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===S||p===u||p===s||p===_||p===x||typeof p=="object"&&p!==null&&(p.$$typeof===W||p.$$typeof===O||p.$$typeof===d||p.$$typeof===h||p.$$typeof===g||p.$$typeof===V||p.$$typeof===Y||p.$$typeof===B||p.$$typeof===N)},G.typeOf=L,G}var K={};/** @license React v16.13.1
47
+ * react-is.development.js
48
+ *
49
+ * Copyright (c) Facebook, Inc. and its affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */var Er;function uo(){return Er||(Er=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,y=e?Symbol.for("react.async_mode"):60111,S=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,O=e?Symbol.for("react.memo"):60115,W=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,V=e?Symbol.for("react.fundamental"):60117,Y=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function L(b){return typeof b=="string"||typeof b=="function"||b===o||b===S||b===u||b===s||b===_||b===x||typeof b=="object"&&b!==null&&(b.$$typeof===W||b.$$typeof===O||b.$$typeof===d||b.$$typeof===h||b.$$typeof===g||b.$$typeof===V||b.$$typeof===Y||b.$$typeof===B||b.$$typeof===N)}function $(b){if(typeof b=="object"&&b!==null){var ye=b.$$typeof;switch(ye){case r:var Be=b.type;switch(Be){case y:case S:case o:case u:case s:case _:return Be;default:var wt=Be&&Be.$$typeof;switch(wt){case h:case g:case W:case O:case d:return wt;default:return ye}}case n:return ye}}}var p=y,j=S,D=h,se=d,de=r,we=g,_e=o,Re=W,be=O,pe=n,fe=u,ne=s,I=_,he=!1;function ue(b){return he||(he=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),v(b)||$(b)===y}function v(b){return $(b)===S}function i(b){return $(b)===h}function f(b){return $(b)===d}function w(b){return typeof b=="object"&&b!==null&&b.$$typeof===r}function E(b){return $(b)===g}function R(b){return $(b)===o}function C(b){return $(b)===W}function T(b){return $(b)===O}function P(b){return $(b)===n}function k(b){return $(b)===u}function M(b){return $(b)===s}function oe(b){return $(b)===_}K.AsyncMode=p,K.ConcurrentMode=j,K.ContextConsumer=D,K.ContextProvider=se,K.Element=de,K.ForwardRef=we,K.Fragment=_e,K.Lazy=Re,K.Memo=be,K.Portal=pe,K.Profiler=fe,K.StrictMode=ne,K.Suspense=I,K.isAsyncMode=ue,K.isConcurrentMode=v,K.isContextConsumer=i,K.isContextProvider=f,K.isElement=w,K.isForwardRef=E,K.isFragment=R,K.isLazy=C,K.isMemo=T,K.isPortal=P,K.isProfiler=k,K.isStrictMode=M,K.isSuspense=oe,K.isValidElementType=L,K.typeOf=$}()),K}var wr;function Sr(){return wr||(wr=1,process.env.NODE_ENV==="production"?rt.exports=co():rt.exports=uo()),rt.exports}/*
54
+ object-assign
55
+ (c) Sindre Sorhus
56
+ @license MIT
57
+ */var $t,_r;function fo(){if(_r)return $t;_r=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function s(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var d={},h=0;h<10;h++)d["_"+String.fromCharCode(h)]=h;var y=Object.getOwnPropertyNames(d).map(function(g){return d[g]});if(y.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(g){S[g]=g}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $t=s()?Object.assign:function(u,d){for(var h,y=o(u),S,g=1;g<arguments.length;g++){h=Object(arguments[g]);for(var _ in h)r.call(h,_)&&(y[_]=h[_]);if(e){S=e(h);for(var x=0;x<S.length;x++)n.call(h,S[x])&&(y[S[x]]=h[S[x]])}}return y},$t}var Dt,Rr;function Mt(){if(Rr)return Dt;Rr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dt=e,Dt}var Nt,Cr;function Tr(){return Cr||(Cr=1,Nt=Function.call.bind(Object.prototype.hasOwnProperty)),Nt}var Lt,Or;function lo(){if(Or)return Lt;Or=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Mt(),n={},o=Tr();e=function(u){var d="Warning: "+u;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function s(u,d,h,y,S){if(process.env.NODE_ENV!=="production"){for(var g in u)if(o(u,g)){var _;try{if(typeof u[g]!="function"){var x=Error((y||"React class")+": "+h+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}_=u[g](d,g,y,h,null,r)}catch(W){_=W}if(_&&!(_ instanceof Error)&&e((y||"React class")+": type specification of "+h+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in n)){n[_.message]=!0;var O=S?S():"";e("Failed "+h+" type: "+_.message+(O??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Lt=s,Lt}var Ft,Pr;function po(){if(Pr)return Ft;Pr=1;var e=Sr(),r=fo(),n=Mt(),o=Tr(),s=lo(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(h){var y="Warning: "+h;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return Ft=function(h,y){var S=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function _(v){var i=v&&(S&&v[S]||v[g]);if(typeof i=="function")return i}var x="<<anonymous>>",O={array:Y("array"),bigint:Y("bigint"),bool:Y("boolean"),func:Y("function"),number:Y("number"),object:Y("object"),string:Y("string"),symbol:Y("symbol"),any:B(),arrayOf:L,element:$(),elementType:p(),instanceOf:j,node:we(),objectOf:se,oneOf:D,oneOfType:de,shape:Re,exact:be};function W(v,i){return v===i?v!==0||1/v===1/i:v!==v&&i!==i}function N(v,i){this.message=v,this.data=i&&typeof i=="object"?i:{},this.stack=""}N.prototype=Error.prototype;function V(v){if(process.env.NODE_ENV!=="production")var i={},f=0;function w(R,C,T,P,k,M,oe){if(P=P||x,M=M||T,oe!==n){if(y){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=P+":"+T;!i[ye]&&f<3&&(u("You are manually calling a React.PropTypes validation function for the `"+M+"` prop on `"+P+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),i[ye]=!0,f++)}}return C[T]==null?R?C[T]===null?new N("The "+k+" `"+M+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new N("The "+k+" `"+M+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:v(C,T,P,k,M)}var E=w.bind(null,!1);return E.isRequired=w.bind(null,!0),E}function Y(v){function i(f,w,E,R,C,T){var P=f[w],k=ne(P);if(k!==v){var M=I(P);return new N("Invalid "+R+" `"+C+"` of type "+("`"+M+"` supplied to `"+E+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return V(i)}function B(){return V(d)}function L(v){function i(f,w,E,R,C){if(typeof v!="function")return new N("Property `"+C+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var T=f[w];if(!Array.isArray(T)){var P=ne(T);return new N("Invalid "+R+" `"+C+"` of type "+("`"+P+"` supplied to `"+E+"`, expected an array."))}for(var k=0;k<T.length;k++){var M=v(T,k,E,R,C+"["+k+"]",n);if(M instanceof Error)return M}return null}return V(i)}function $(){function v(i,f,w,E,R){var C=i[f];if(!h(C)){var T=ne(C);return new N("Invalid "+E+" `"+R+"` of type "+("`"+T+"` supplied to `"+w+"`, expected a single ReactElement."))}return null}return V(v)}function p(){function v(i,f,w,E,R){var C=i[f];if(!e.isValidElementType(C)){var T=ne(C);return new N("Invalid "+E+" `"+R+"` of type "+("`"+T+"` supplied to `"+w+"`, expected a single ReactElement type."))}return null}return V(v)}function j(v){function i(f,w,E,R,C){if(!(f[w]instanceof v)){var T=v.name||x,P=ue(f[w]);return new N("Invalid "+R+" `"+C+"` of type "+("`"+P+"` supplied to `"+E+"`, expected ")+("instance of `"+T+"`."))}return null}return V(i)}function D(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):u("Invalid argument supplied to oneOf, expected an array.")),d;function i(f,w,E,R,C){for(var T=f[w],P=0;P<v.length;P++)if(W(T,v[P]))return null;var k=JSON.stringify(v,function(oe,b){var ye=I(b);return ye==="symbol"?String(b):b});return new N("Invalid "+R+" `"+C+"` of value `"+String(T)+"` "+("supplied to `"+E+"`, expected one of "+k+"."))}return V(i)}function se(v){function i(f,w,E,R,C){if(typeof v!="function")return new N("Property `"+C+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var T=f[w],P=ne(T);if(P!=="object")return new N("Invalid "+R+" `"+C+"` of type "+("`"+P+"` supplied to `"+E+"`, expected an object."));for(var k in T)if(o(T,k)){var M=v(T,k,E,R,C+"."+k,n);if(M instanceof Error)return M}return null}return V(i)}function de(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var i=0;i<v.length;i++){var f=v[i];if(typeof f!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+he(f)+" at index "+i+"."),d}function w(E,R,C,T,P){for(var k=[],M=0;M<v.length;M++){var oe=v[M],b=oe(E,R,C,T,P,n);if(b==null)return null;b.data&&o(b.data,"expectedType")&&k.push(b.data.expectedType)}var ye=k.length>0?", expected one of type ["+k.join(", ")+"]":"";return new N("Invalid "+T+" `"+P+"` supplied to "+("`"+C+"`"+ye+"."))}return V(w)}function we(){function v(i,f,w,E,R){return pe(i[f])?null:new N("Invalid "+E+" `"+R+"` supplied to "+("`"+w+"`, expected a ReactNode."))}return V(v)}function _e(v,i,f,w,E){return new N((v||"React class")+": "+i+" type `"+f+"."+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function Re(v){function i(f,w,E,R,C){var T=f[w],P=ne(T);if(P!=="object")return new N("Invalid "+R+" `"+C+"` of type `"+P+"` "+("supplied to `"+E+"`, expected `object`."));for(var k in v){var M=v[k];if(typeof M!="function")return _e(E,R,C,k,I(M));var oe=M(T,k,E,R,C+"."+k,n);if(oe)return oe}return null}return V(i)}function be(v){function i(f,w,E,R,C){var T=f[w],P=ne(T);if(P!=="object")return new N("Invalid "+R+" `"+C+"` of type `"+P+"` "+("supplied to `"+E+"`, expected `object`."));var k=r({},f[w],v);for(var M in k){var oe=v[M];if(o(v,M)&&typeof oe!="function")return _e(E,R,C,M,I(oe));if(!oe)return new N("Invalid "+R+" `"+C+"` key `"+M+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(f[w],null," ")+`
58
+ Valid keys: `+JSON.stringify(Object.keys(v),null," "));var b=oe(T,M,E,R,C+"."+M,n);if(b)return b}return null}return V(i)}function pe(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(pe);if(v===null||h(v))return!0;var i=_(v);if(i){var f=i.call(v),w;if(i!==v.entries){for(;!(w=f.next()).done;)if(!pe(w.value))return!1}else for(;!(w=f.next()).done;){var E=w.value;if(E&&!pe(E[1]))return!1}}else return!1;return!0;default:return!1}}function fe(v,i){return v==="symbol"?!0:i?i["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&i instanceof Symbol:!1}function ne(v){var i=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":fe(i,v)?"symbol":i}function I(v){if(typeof v>"u"||v===null)return""+v;var i=ne(v);if(i==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return i}function he(v){var i=I(v);switch(i){case"array":case"object":return"an "+i;case"boolean":case"date":case"regexp":return"a "+i;default:return i}}function ue(v){return!v.constructor||!v.constructor.name?x:v.constructor.name}return O.checkPropTypes=s,O.resetWarningCache=s.resetWarningCache,O.PropTypes=O,O},Ft}var Wt,kr;function ho(){if(kr)return Wt;kr=1;var e=Mt();function r(){}function n(){}return n.resetWarningCache=r,Wt=function(){function o(d,h,y,S,g,_){if(_!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function s(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Wt}if(process.env.NODE_ENV!=="production"){var yo=Sr(),vo=!0;jt.exports=po()(yo.isElement,vo)}else jt.exports=ho()();var mo=jt.exports;const Me=De(mo);var me=function(){return me=Object.assign||function(r){for(var n,o=1,s=arguments.length;o<s;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},me.apply(this,arguments)};function Ne(e,r,n){if(n||arguments.length===2)for(var o=0,s=r.length,u;o<s;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;function go(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var bo=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Eo=go(function(e){return bo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Z="-ms-",Je="-moz-",X="-webkit-",Ar="comm",nt="rule",Yt="decl",wo="@import",xr="@keyframes",So="@layer",Ir=Math.abs,zt=String.fromCharCode,Vt=Object.assign;function _o(e,r){return ce(e,0)^45?(((r<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3):0}function jr(e){return e.trim()}function Te(e,r){return(e=r.exec(e))?e[0]:e}function U(e,r,n){return e.replace(r,n)}function ot(e,r,n){return e.indexOf(r,n)}function ce(e,r){return e.charCodeAt(r)|0}function Le(e,r,n){return e.slice(r,n)}function Se(e){return e.length}function $r(e){return e.length}function Qe(e,r){return r.push(e),e}function Ro(e,r){return e.map(r).join("")}function Dr(e,r){return e.filter(function(n){return!Te(n,r)})}var at=1,Fe=1,Mr=0,ge=0,ae=0,We="";function it(e,r,n,o,s,u,d,h){return{value:e,root:r,parent:n,type:o,props:s,children:u,line:at,column:Fe,length:d,return:"",siblings:h}}function Pe(e,r){return Vt(it("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function Ye(e){for(;e.root;)e=Pe(e.root,{children:[e]});Qe(e,e.siblings)}function Co(){return ae}function To(){return ae=ge>0?ce(We,--ge):0,Fe--,ae===10&&(Fe=1,at--),ae}function Ee(){return ae=ge<Mr?ce(We,ge++):0,Fe++,ae===10&&(Fe=1,at++),ae}function Ae(){return ce(We,ge)}function st(){return ge}function ct(e,r){return Le(We,e,r)}function Ut(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Oo(e){return at=Fe=1,Mr=Se(We=e),ge=0,[]}function Po(e){return We="",e}function qt(e){return jr(ct(ge-1,Bt(e===91?e+2:e===40?e+1:e)))}function ko(e){for(;(ae=Ae())&&ae<33;)Ee();return Ut(e)>2||Ut(ae)>3?"":" "}function Ao(e,r){for(;--r&&Ee()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return ct(e,st()+(r<6&&Ae()==32&&Ee()==32))}function Bt(e){for(;Ee();)switch(ae){case e:return ge;case 34:case 39:e!==34&&e!==39&&Bt(ae);break;case 40:e===41&&Bt(e);break;case 92:Ee();break}return ge}function xo(e,r){for(;Ee()&&e+ae!==57;)if(e+ae===84&&Ae()===47)break;return"/*"+ct(r,ge-1)+"*"+zt(e===47?e:Ee())}function Io(e){for(;!Ut(Ae());)Ee();return ct(e,ge)}function jo(e){return Po(ut("",null,null,null,[""],e=Oo(e),0,[0],e))}function ut(e,r,n,o,s,u,d,h,y){for(var S=0,g=0,_=d,x=0,O=0,W=0,N=1,V=1,Y=1,B=0,L="",$=s,p=u,j=o,D=L;V;)switch(W=B,B=Ee()){case 40:if(W!=108&&ce(D,_-1)==58){ot(D+=U(qt(B),"&","&\f"),"&\f",Ir(S?h[S-1]:0))!=-1&&(Y=-1);break}case 34:case 39:case 91:D+=qt(B);break;case 9:case 10:case 13:case 32:D+=ko(W);break;case 92:D+=Ao(st()-1,7);continue;case 47:switch(Ae()){case 42:case 47:Qe($o(xo(Ee(),st()),r,n,y),y);break;default:D+="/"}break;case 123*N:h[S++]=Se(D)*Y;case 125*N:case 59:case 0:switch(B){case 0:case 125:V=0;case 59+g:Y==-1&&(D=U(D,/\f/g,"")),O>0&&Se(D)-_&&Qe(O>32?Lr(D+";",o,n,_-1,y):Lr(U(D," ","")+";",o,n,_-2,y),y);break;case 59:D+=";";default:if(Qe(j=Nr(D,r,n,S,g,s,h,L,$=[],p=[],_,u),u),B===123)if(g===0)ut(D,r,j,j,$,u,_,h,p);else switch(x===99&&ce(D,3)===110?100:x){case 100:case 108:case 109:case 115:ut(e,j,j,o&&Qe(Nr(e,j,j,0,0,s,h,L,s,$=[],_,p),p),s,p,_,h,o?$:p);break;default:ut(D,j,j,j,[""],p,0,h,p)}}S=g=O=0,N=Y=1,L=D="",_=d;break;case 58:_=1+Se(D),O=W;default:if(N<1){if(B==123)--N;else if(B==125&&N++==0&&To()==125)continue}switch(D+=zt(B),B*N){case 38:Y=g>0?1:(D+="\f",-1);break;case 44:h[S++]=(Se(D)-1)*Y,Y=1;break;case 64:Ae()===45&&(D+=qt(Ee())),x=Ae(),g=_=Se(L=D+=Io(st())),B++;break;case 45:W===45&&Se(D)==2&&(N=0)}}return u}function Nr(e,r,n,o,s,u,d,h,y,S,g,_){for(var x=s-1,O=s===0?u:[""],W=$r(O),N=0,V=0,Y=0;N<o;++N)for(var B=0,L=Le(e,x+1,x=Ir(V=d[N])),$=e;B<W;++B)($=jr(V>0?O[B]+" "+L:U(L,/&\f/g,O[B])))&&(y[Y++]=$);return it(e,r,n,s===0?nt:h,y,S,g,_)}function $o(e,r,n,o){return it(e,r,n,Ar,zt(Co()),Le(e,2,-2),0,o)}function Lr(e,r,n,o,s){return it(e,r,n,Yt,Le(e,0,o),Le(e,o+1,-1),o,s)}function Fr(e,r,n){switch(_o(e,r)){case 5103:return X+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return X+e+e;case 4789:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+Je+e+Z+e+e;case 5936:switch(ce(e,r+11)){case 114:return X+e+Z+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+Z+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+Z+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return X+e+Z+e+e;case 6165:return X+e+Z+"flex-"+e+e;case 5187:return X+e+U(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return X+e+Z+"flex-item-"+U(e,/flex-|-self/g,"")+(Te(e,/flex-|baseline/)?"":Z+"grid-row-"+U(e,/flex-|-self/g,""))+e;case 4675:return X+e+Z+"flex-line-pack"+U(e,/align-content|flex-|-self/g,"")+e;case 5548:return X+e+Z+U(e,"shrink","negative")+e;case 5292:return X+e+Z+U(e,"basis","preferred-size")+e;case 6060:return X+"box-"+U(e,"-grow","")+X+e+Z+U(e,"grow","positive")+e;case 4554:return X+U(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return U(U(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4200:if(!Te(e,/flex-|baseline/))return Z+"grid-column-align"+Le(e,r)+e;break;case 2592:case 3360:return Z+U(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(o,s){return r=s,Te(o.props,/grid-\w+-end/)})?~ot(e+(n=n[r].value),"span",0)?e:Z+U(e,"-start","")+e+Z+"grid-row-span:"+(~ot(n,"span",0)?Te(n,/\d+/):+Te(n,/\d+/)-+Te(e,/\d+/))+";":Z+U(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(o){return Te(o.props,/grid-\w+-start/)})?e:Z+U(U(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return U(e,/(.+)-inline(.+)/,X+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Se(e)-1-r>6)switch(ce(e,r+1)){case 109:if(ce(e,r+4)!==45)break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Je+(ce(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~ot(e,"stretch",0)?Fr(U(e,"stretch","fill-available"),r,n)+e:e}break;case 5152:case 5920:return U(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,u,d,h,y,S){return Z+s+":"+u+S+(d?Z+s+"-span:"+(h?y:+y-+u)+S:"")+e});case 4949:if(ce(e,r+6)===121)return U(e,":",":"+X)+e;break;case 6444:switch(ce(e,ce(e,14)===45?18:11)){case 120:return U(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+X+(ce(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+Z+"$2box$3")+e;case 100:return U(e,":",":"+Z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return U(e,"scroll-","scroll-snap-")+e}return e}function ft(e,r){for(var n="",o=0;o<e.length;o++)n+=r(e[o],o,e,r)||"";return n}function Do(e,r,n,o){switch(e.type){case So:if(e.children.length)break;case wo:case Yt:return e.return=e.return||e.value;case Ar:return"";case xr:return e.return=e.value+"{"+ft(e.children,o)+"}";case nt:if(!Se(e.value=e.props.join(",")))return""}return Se(n=ft(e.children,o))?e.return=e.value+"{"+n+"}":""}function Mo(e){var r=$r(e);return function(n,o,s,u){for(var d="",h=0;h<r;h++)d+=e[h](n,o,s,u)||"";return d}}function No(e){return function(r){r.root||(r=r.return)&&e(r)}}function Lo(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Yt:e.return=Fr(e.value,e.length,n);return;case xr:return ft([Pe(e,{value:U(e.value,"@","@"+X)})],o);case nt:if(e.length)return Ro(n=e.props,function(s){switch(Te(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ye(Pe(e,{props:[U(s,/:(read-\w+)/,":"+Je+"$1")]})),Ye(Pe(e,{props:[s]})),Vt(e,{props:Dr(n,o)});break;case"::placeholder":Ye(Pe(e,{props:[U(s,/:(plac\w+)/,":"+X+"input-$1")]})),Ye(Pe(e,{props:[U(s,/:(plac\w+)/,":"+Je+"$1")]})),Ye(Pe(e,{props:[U(s,/:(plac\w+)/,Z+"input-$1")]})),Ye(Pe(e,{props:[s]})),Vt(e,{props:Dr(n,o)});break}return""})}}var Fo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Wr="active",Yr="data-styled-version",lt="6.1.13",Ht=`/*!sc*/
59
+ `,dt=typeof window<"u"&&"HTMLElement"in window,Wo=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),zr=/invalid hook call/i,pt=new Set,Yo=function(e,r){if(process.env.NODE_ENV!=="production"){var n=r?' with the id of "'.concat(r,'"'):"",o="The component ".concat(e).concat(n,` has been created dynamically.
60
+ `)+`You may see this warning because you've called styled inside another component.
61
+ To resolve this only create new StyledComponents outside of any render method and function component.`,s=console.error;try{var u=!0;console.error=function(d){for(var h=[],y=1;y<arguments.length;y++)h[y-1]=arguments[y];zr.test(d)?(u=!1,pt.delete(o)):s.apply(void 0,Ne([d],h,!1))},Q.useRef(),u&&!pt.has(o)&&(console.warn(o),pt.add(o))}catch(d){zr.test(d.message)&&pt.delete(o)}finally{console.error=s}}},ht=Object.freeze([]),ze=Object.freeze({});function zo(e,r,n){return n===void 0&&(n=ze),e.theme!==n.theme&&e.theme||r||n.theme}var Gt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Vo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Uo=/(^-|-$)/g;function Vr(e){return e.replace(Vo,"-").replace(Uo,"")}var qo=/(a)(d)/gi,yt=52,Ur=function(e){return String.fromCharCode(e+(e>25?39:97))};function Kt(e){var r,n="";for(r=Math.abs(e);r>yt;r=r/yt|0)n=Ur(r%yt)+n;return(Ur(r%yt)+n).replace(qo,"$1-$2")}var Xt,qr=5381,Ie=function(e,r){for(var n=r.length;n;)e=33*e^r.charCodeAt(--n);return e},Br=function(e){return Ie(qr,e)};function Bo(e){return Kt(Br(e)>>>0)}function Hr(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Jt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Gr=typeof Symbol=="function"&&Symbol.for,Kr=Gr?Symbol.for("react.memo"):60115,Ho=Gr?Symbol.for("react.forward_ref"):60112,Go={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ko={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xo=((Xt={})[Ho]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xt[Kr]=Xr,Xt);function Jr(e){return("type"in(r=e)&&r.type.$$typeof)===Kr?Xr:"$$typeof"in e?Xo[e.$$typeof]:Go;var r}var Jo=Object.defineProperty,Qo=Object.getOwnPropertyNames,Qr=Object.getOwnPropertySymbols,Zo=Object.getOwnPropertyDescriptor,ea=Object.getPrototypeOf,Zr=Object.prototype;function en(e,r,n){if(typeof r!="string"){if(Zr){var o=ea(r);o&&o!==Zr&&en(e,o,n)}var s=Qo(r);Qr&&(s=s.concat(Qr(r)));for(var u=Jr(e),d=Jr(r),h=0;h<s.length;++h){var y=s[h];if(!(y in Ko||n&&n[y]||d&&y in d||u&&y in u)){var S=Zo(r,y);try{Jo(e,y,S)}catch{}}}}return e}function Ve(e){return typeof e=="function"}function Qt(e){return typeof e=="object"&&"styledComponentId"in e}function je(e,r){return e&&r?"".concat(e," ").concat(r):e||r||""}function tn(e,r){if(e.length===0)return"";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function Ue(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Zt(e,r,n){if(n===void 0&&(n=!1),!n&&!Ue(e)&&!Array.isArray(e))return r;if(Array.isArray(r))for(var o=0;o<r.length;o++)e[o]=Zt(e[o],r[o]);else if(Ue(r))for(var o in r)e[o]=Zt(e[o],r[o]);return e}function er(e,r){Object.defineProperty(e,"toString",{value:r})}var ta=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
62
+
63
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
64
+
65
+ - Are you trying to reuse it across renders?
66
+ - Are you accidentally calling collectStyles twice?
67
+
68
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
69
+
70
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
71
+
72
+ - Does this error occur on the client and is your target falsy?
73
+ - Does this error occur on the server and is the sheet falsy?
74
+
75
+ `,5:`The clone method cannot be used on the client!
76
+
77
+ - Are you running in a client-like environment on the server?
78
+ - Are you trying to run SSR on the client?
79
+
80
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
81
+
82
+ - Are you using a custom target that isn't mounted?
83
+ - Does your document not have a valid head element?
84
+ - Have you accidentally removed a style tag manually?
85
+
86
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
87
+
88
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
89
+
90
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
91
+
92
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
93
+
94
+ `,14:`ThemeProvider: "theme" prop is required.
95
+
96
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
97
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
98
+ as for instance in your render method then you may be running into this limitation.
99
+
100
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
101
+ Has styled-components' style tag been unmounted or altered by another script?
102
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ra(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var n=e[0],o=[],s=1,u=e.length;s<u;s+=1)o.push(e[s]);return o.forEach(function(d){n=n.replace(/%[a-z]/,d)}),n}function qe(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(r.length>0?" Args: ".concat(r.join(", ")):"")):new Error(ra.apply(void 0,Ne([ta[e]],r,!1)).trim())}var na=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}return e.prototype.indexOfGroup=function(r){for(var n=0,o=0;o<r;o++)n+=this.groupSizes[o];return n},e.prototype.insertRules=function(r,n){if(r>=this.groupSizes.length){for(var o=this.groupSizes,s=o.length,u=s;r>=u;)if((u<<=1)<0)throw qe(16,"".concat(r));this.groupSizes=new Uint32Array(u),this.groupSizes.set(o),this.length=u;for(var d=s;d<u;d++)this.groupSizes[d]=0}for(var h=this.indexOfGroup(r+1),y=(d=0,n.length);d<y;d++)this.tag.insertRule(h,n[d])&&(this.groupSizes[r]++,h++)},e.prototype.clearGroup=function(r){if(r<this.length){var n=this.groupSizes[r],o=this.indexOfGroup(r),s=o+n;this.groupSizes[r]=0;for(var u=o;u<s;u++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(r){var n="";if(r>=this.length||this.groupSizes[r]===0)return n;for(var o=this.groupSizes[r],s=this.indexOfGroup(r),u=s+o,d=s;d<u;d++)n+="".concat(this.tag.getRule(d)).concat(Ht);return n},e}(),oa=1<<30,vt=new Map,mt=new Map,gt=1,bt=function(e){if(vt.has(e))return vt.get(e);for(;mt.has(gt);)gt++;var r=gt++;if(process.env.NODE_ENV!=="production"&&((0|r)<0||r>oa))throw qe(16,"".concat(r));return vt.set(e,r),mt.set(r,e),r},aa=function(e,r){gt=r+1,vt.set(e,r),mt.set(r,e)},ia="style[".concat(xe,"][").concat(Yr,'="').concat(lt,'"]'),sa=new RegExp("^".concat(xe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ca=function(e,r,n){for(var o,s=n.split(","),u=0,d=s.length;u<d;u++)(o=s[u])&&e.registerName(r,o)},ua=function(e,r){for(var n,o=((n=r.textContent)!==null&&n!==void 0?n:"").split(Ht),s=[],u=0,d=o.length;u<d;u++){var h=o[u].trim();if(h){var y=h.match(sa);if(y){var S=0|parseInt(y[1],10),g=y[2];S!==0&&(aa(g,S),ca(e,g,y[3]),e.getTag().insertRules(S,s)),s.length=0}else s.push(h)}}},rn=function(e){for(var r=document.querySelectorAll(ia),n=0,o=r.length;n<o;n++){var s=r[n];s&&s.getAttribute(xe)!==Wr&&(ua(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function fa(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var nn=function(e){var r=document.head,n=e||r,o=document.createElement("style"),s=function(h){var y=Array.from(h.querySelectorAll("style[".concat(xe,"]")));return y[y.length-1]}(n),u=s!==void 0?s.nextSibling:null;o.setAttribute(xe,Wr),o.setAttribute(Yr,lt);var d=fa();return d&&o.setAttribute("nonce",d),n.insertBefore(o,u),o},la=function(){function e(r){this.element=nn(r),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var o=document.styleSheets,s=0,u=o.length;s<u;s++){var d=o[s];if(d.ownerNode===n)return d}throw qe(17)}(this.element),this.length=0}return e.prototype.insertRule=function(r,n){try{return this.sheet.insertRule(n,r),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(r){this.sheet.deleteRule(r),this.length--},e.prototype.getRule=function(r){var n=this.sheet.cssRules[r];return n&&n.cssText?n.cssText:""},e}(),da=function(){function e(r){this.element=nn(r),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(r,n){if(r<=this.length&&r>=0){var o=document.createTextNode(n);return this.element.insertBefore(o,this.nodes[r]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.prototype.getRule=function(r){return r<this.length?this.nodes[r].textContent:""},e}(),pa=function(){function e(r){this.rules=[],this.length=0}return e.prototype.insertRule=function(r,n){return r<=this.length&&(this.rules.splice(r,0,n),this.length++,!0)},e.prototype.deleteRule=function(r){this.rules.splice(r,1),this.length--},e.prototype.getRule=function(r){return r<this.length?this.rules[r]:""},e}(),on=dt,ha={isServer:!dt,useCSSOMInjection:!Wo},an=function(){function e(r,n,o){r===void 0&&(r=ze),n===void 0&&(n={});var s=this;this.options=me(me({},ha),r),this.gs=n,this.names=new Map(o),this.server=!!r.isServer,!this.server&&dt&&on&&(on=!1,rn(this)),er(this,function(){return function(u){for(var d=u.getTag(),h=d.length,y="",S=function(_){var x=function(Y){return mt.get(Y)}(_);if(x===void 0)return"continue";var O=u.names.get(x),W=d.getGroup(_);if(O===void 0||!O.size||W.length===0)return"continue";var N="".concat(xe,".g").concat(_,'[id="').concat(x,'"]'),V="";O!==void 0&&O.forEach(function(Y){Y.length>0&&(V+="".concat(Y,","))}),y+="".concat(W).concat(N,'{content:"').concat(V,'"}').concat(Ht)},g=0;g<h;g++)S(g);return y}(s)})}return e.registerId=function(r){return bt(r)},e.prototype.rehydrate=function(){!this.server&&dt&&rn(this)},e.prototype.reconstructWithOptions=function(r,n){return n===void 0&&(n=!0),new e(me(me({},this.options),r),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(r){return this.gs[r]=(this.gs[r]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(r=function(n){var o=n.useCSSOMInjection,s=n.target;return n.isServer?new pa(s):o?new la(s):new da(s)}(this.options),new na(r)));var r},e.prototype.hasNameForId=function(r,n){return this.names.has(r)&&this.names.get(r).has(n)},e.prototype.registerName=function(r,n){if(bt(r),this.names.has(r))this.names.get(r).add(n);else{var o=new Set;o.add(n),this.names.set(r,o)}},e.prototype.insertRules=function(r,n,o){this.registerName(r,n),this.getTag().insertRules(bt(r),o)},e.prototype.clearNames=function(r){this.names.has(r)&&this.names.get(r).clear()},e.prototype.clearRules=function(r){this.getTag().clearGroup(bt(r)),this.clearNames(r)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ya=/&/g,va=/^\s*\/\/.*$/gm;function sn(e,r){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(r," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(r," ")),n.props=n.props.map(function(o){return"".concat(r," ").concat(o)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=sn(n.children,r)),n})}function ma(e){var r,n,o,s=ze,u=s.options,d=u===void 0?ze:u,h=s.plugins,y=h===void 0?ht:h,S=function(x,O,W){return W.startsWith(n)&&W.endsWith(n)&&W.replaceAll(n,"").length>0?".".concat(r):x},g=y.slice();g.push(function(x){x.type===nt&&x.value.includes("&")&&(x.props[0]=x.props[0].replace(ya,n).replace(o,S))}),d.prefix&&g.push(Lo),g.push(Do);var _=function(x,O,W,N){O===void 0&&(O=""),W===void 0&&(W=""),N===void 0&&(N="&"),r=N,n=O,o=new RegExp("\\".concat(n,"\\b"),"g");var V=x.replace(va,""),Y=jo(W||O?"".concat(W," ").concat(O," { ").concat(V," }"):V);d.namespace&&(Y=sn(Y,d.namespace));var B=[];return ft(Y,Mo(g.concat(No(function(L){return B.push(L)})))),B};return _.hash=y.length?y.reduce(function(x,O){return O.name||qe(15),Ie(x,O.name)},qr).toString():"",_}var ga=new an,tr=ma(),cn=Ce.createContext({shouldForwardProp:void 0,styleSheet:ga,stylis:tr});cn.Consumer,Ce.createContext(void 0);function un(){return Q.useContext(cn)}var fn=function(){function e(r,n){var o=this;this.inject=function(s,u){u===void 0&&(u=tr);var d=o.name+u.hash;s.hasNameForId(o.id,d)||s.insertRules(o.id,d,u(o.rules,d,"@keyframes"))},this.name=r,this.id="sc-keyframes-".concat(r),this.rules=n,er(this,function(){throw qe(12,String(o.name))})}return e.prototype.getName=function(r){return r===void 0&&(r=tr),this.name+r.hash},e}(),ba=function(e){return e>="A"&&e<="Z"};function ln(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(n===1&&o==="-"&&e[0]==="-")return e;ba(o)?r+="-"+o.toLowerCase():r+=o}return r.startsWith("ms-")?"-"+r:r}var dn=function(e){return e==null||e===!1||e===""},pn=function(e){var r,n,o=[];for(var s in e){var u=e[s];e.hasOwnProperty(s)&&!dn(u)&&(Array.isArray(u)&&u.isCss||Ve(u)?o.push("".concat(ln(s),":"),u,";"):Ue(u)?o.push.apply(o,Ne(Ne(["".concat(s," {")],pn(u),!1),["}"],!1)):o.push("".concat(ln(s),": ").concat((r=s,(n=u)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||r in Fo||r.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function $e(e,r,n,o){if(dn(e))return[];if(Qt(e))return[".".concat(e.styledComponentId)];if(Ve(e)){if(!Ve(u=e)||u.prototype&&u.prototype.isReactComponent||!r)return[e];var s=e(r);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof fn||Ue(s)||s===null||console.error("".concat(Hr(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),$e(s,r,n,o)}var u;return e instanceof fn?n?(e.inject(n,o),[e.getName(o)]):[e]:Ue(e)?pn(e):Array.isArray(e)?Array.prototype.concat.apply(ht,e.map(function(d){return $e(d,r,n,o)})):[e.toString()]}function Ea(e){for(var r=0;r<e.length;r+=1){var n=e[r];if(Ve(n)&&!Qt(n))return!1}return!0}var wa=Br(lt),Sa=function(){function e(r,n,o){this.rules=r,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(o===void 0||o.isStatic)&&Ea(r),this.componentId=n,this.baseHash=Ie(wa,n),this.baseStyle=o,an.registerId(n)}return e.prototype.generateAndInjectStyles=function(r,n,o){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,n,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))s=je(s,this.staticRulesId);else{var u=tn($e(this.rules,r,n,o)),d=Kt(Ie(this.baseHash,u)>>>0);if(!n.hasNameForId(this.componentId,d)){var h=o(u,".".concat(d),void 0,this.componentId);n.insertRules(this.componentId,d,h)}s=je(s,d),this.staticRulesId=d}else{for(var y=Ie(this.baseHash,o.hash),S="",g=0;g<this.rules.length;g++){var _=this.rules[g];if(typeof _=="string")S+=_,process.env.NODE_ENV!=="production"&&(y=Ie(y,_));else if(_){var x=tn($e(_,r,n,o));y=Ie(y,x+g),S+=x}}if(S){var O=Kt(y>>>0);n.hasNameForId(this.componentId,O)||n.insertRules(this.componentId,O,o(S,".".concat(O),void 0,this.componentId)),s=je(s,O)}}return s},e}(),hn=Ce.createContext(void 0);hn.Consumer;var rr={},yn=new Set;function _a(e,r,n){var o=Qt(e),s=e,u=!Jt(e),d=r.attrs,h=d===void 0?ht:d,y=r.componentId,S=y===void 0?function($,p){var j=typeof $!="string"?"sc":Vr($);rr[j]=(rr[j]||0)+1;var D="".concat(j,"-").concat(Bo(lt+j+rr[j]));return p?"".concat(p,"-").concat(D):D}(r.displayName,r.parentComponentId):y,g=r.displayName,_=g===void 0?function($){return Jt($)?"styled.".concat($):"Styled(".concat(Hr($),")")}(e):g,x=r.displayName&&r.componentId?"".concat(Vr(r.displayName),"-").concat(r.componentId):r.componentId||S,O=o&&s.attrs?s.attrs.concat(h).filter(Boolean):h,W=r.shouldForwardProp;if(o&&s.shouldForwardProp){var N=s.shouldForwardProp;if(r.shouldForwardProp){var V=r.shouldForwardProp;W=function($,p){return N($,p)&&V($,p)}}else W=N}var Y=new Sa(n,x,o?s.componentStyle:void 0);function B($,p){return function(j,D,se){var de=j.attrs,we=j.componentStyle,_e=j.defaultProps,Re=j.foldedComponentIds,be=j.styledComponentId,pe=j.target,fe=Ce.useContext(hn),ne=un(),I=j.shouldForwardProp||ne.shouldForwardProp;process.env.NODE_ENV!=="production"&&Q.useDebugValue(be);var he=zo(D,fe,_e)||ze,ue=function(R,C,T){for(var P,k=me(me({},C),{className:void 0,theme:T}),M=0;M<R.length;M+=1){var oe=Ve(P=R[M])?P(k):P;for(var b in oe)k[b]=b==="className"?je(k[b],oe[b]):b==="style"?me(me({},k[b]),oe[b]):oe[b]}return C.className&&(k.className=je(k.className,C.className)),k}(de,D,he),v=ue.as||pe,i={};for(var f in ue)ue[f]===void 0||f[0]==="$"||f==="as"||f==="theme"&&ue.theme===he||(f==="forwardedAs"?i.as=ue.forwardedAs:I&&!I(f,v)||(i[f]=ue[f],I||process.env.NODE_ENV!=="development"||Eo(f)||yn.has(f)||!Gt.has(v)||(yn.add(f),console.warn('styled-components: it looks like an unknown prop "'.concat(f,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var w=function(R,C){var T=un(),P=R.generateAndInjectStyles(C,T.styleSheet,T.stylis);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(P),P}(we,ue);process.env.NODE_ENV!=="production"&&j.warnTooManyClasses&&j.warnTooManyClasses(w);var E=je(Re,be);return w&&(E+=" "+w),ue.className&&(E+=" "+ue.className),i[Jt(v)&&!Gt.has(v)?"class":"className"]=E,i.ref=se,Q.createElement(v,i)}(L,$,p)}B.displayName=_;var L=Ce.forwardRef(B);return L.attrs=O,L.componentStyle=Y,L.displayName=_,L.shouldForwardProp=W,L.foldedComponentIds=o?je(s.foldedComponentIds,s.styledComponentId):"",L.styledComponentId=x,L.target=o?s.target:e,Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function($){this._foldedDefaultProps=o?function(p){for(var j=[],D=1;D<arguments.length;D++)j[D-1]=arguments[D];for(var se=0,de=j;se<de.length;se++)Zt(p,de[se],!0);return p}({},s.defaultProps,$):$}}),process.env.NODE_ENV!=="production"&&(Yo(_,x),L.warnTooManyClasses=function($,p){var j={},D=!1;return function(se){if(!D&&(j[se]=!0,Object.keys(j).length>=200)){var de=p?' with the id of "'.concat(p,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat($).concat(de,`.
103
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
104
+ Example:
105
+ const Component = styled.div.attrs(props => ({
106
+ style: {
107
+ background: props.background,
108
+ },
109
+ }))\`width: 100%;\`
110
+
111
+ <Component />`),D=!0,j={}}}}(_,x)),er(L,function(){return".".concat(L.styledComponentId)}),u&&en(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),L}function vn(e,r){for(var n=[e[0]],o=0,s=r.length;o<s;o+=1)n.push(r[o],e[o+1]);return n}var mn=function(e){return Object.assign(e,{isCss:!0})};function Ra(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(Ve(e)||Ue(e))return mn($e(vn(ht,Ne([e],r,!0))));var o=e;return r.length===0&&o.length===1&&typeof o[0]=="string"?$e(o):mn($e(vn(o,r)))}function nr(e,r,n){if(n===void 0&&(n=ze),!r)throw qe(1,r);var o=function(s){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];return e(r,n,Ra.apply(void 0,Ne([s],u,!1)))};return o.attrs=function(s){return nr(e,r,me(me({},n),{attrs:Array.prototype.concat(n.attrs,s).filter(Boolean)}))},o.withConfig=function(s){return nr(e,r,me(me({},n),s))},o}var gn=function(e){return nr(_a,e)},bn=gn;Gt.forEach(function(e){bn[e]=gn(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
112
+ Perhaps you're looking to import 'styled-components/native'?
113
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Et="__sc-".concat(xe,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Et]||(window[Et]=0),window[Et]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
114
+
115
+ See https://s-c.sh/2BAXzed for more info.`),window[Et]+=1);const or=Q.createContext(null),En=({children:e})=>{const[r,n]=Q.useState({}),o=Q.useRef({}),s=Q.useCallback((h,y,S)=>{n(g=>({...g,[h]:{origin:y,frameRef:S}}))},[]);Q.useEffect(()=>{const h=y=>{var g,_;if(!((g=y==null?void 0:y.data)!=null&&g.instanceId))return;(((_=o.current[y.data.instanceId])==null?void 0:_[y.data.type])||[]).forEach(x=>x(y.data))};return window.addEventListener("message",h),()=>{window.removeEventListener("message",h)}},[r]);const u=Q.useCallback((h,y,S)=>{const g=r[h];if(!g){console.warn(`Origin not set for id: ${h}. Unable to send message.`);return}g.frameRef.current.contentWindow.postMessage({type:y,...S,instanceId:h},g.origin)},[r]),d={registerFrame:s,sendMessage:u,addListener:(h,y,S)=>(o.current[h]||(o.current[h]={}),o.current[h][y]||(o.current[h][y]=[]),o.current[h][y].push(S),()=>{o.current[h][y]=o.current[h][y].filter(g=>g!==S)})};return Ce.createElement(or.Provider,{value:d},e)},wn=(e,r,n)=>{const o=Q.useContext(or);if(o===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddedWrapperProvider");const s=Q.useRef(n);return Q.useEffect(()=>{s.current=n},[n]),Q.useEffect(()=>{if(!(!e||!r))return o.addListener(e,r,(...u)=>s.current(...u))},[o,e,r]),Q.useCallback((u,d)=>o.sendMessage(e,u,d),[o,e])};En.propTypes={children:Me.node.isRequired};const Ca=bn.iframe`
116
+ width: 100%;
117
+ height: 100%;
118
+ border: none;
119
+ visibility: ${e=>e.isReady?"visible":"hidden"};
120
+ `,Sn=({id:e,genericFrameFallback:r,src:n,path:o,onInit:s=()=>{},...u})=>{const d=Q.useRef(),[h,y]=Q.useState(),[S,g]=Q.useState(0),{registerFrame:_,sendMessage:x}=Q.useContext(or),[O,W]=Q.useState(),[N,V]=Q.useState(!1);return Q.useEffect(()=>{o!==void 0&&W(o)},[o]),Q.useEffect(()=>{O===void 0||!S||x(e,"navigate",{path:O})},[O,S,e,x]),Q.useEffect(()=>{!n||!e||!d||(async()=>{const Y=new URL(n);_(e,Y.origin,d),s();try{if((await(await fetch(`${Y.origin}/mm-app-manifest.json`)).json()).manifestVersion)y(`${Y.origin}/mm-embedded-interop?id=${e}`);else throw Error()}catch{r?(y(n),g(1)):V(!0)}})()},[n,e,_,d]),wn(e,"ready",()=>g(Y=>Y+1)),N?Ce.createElement("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},Ce.createElement("div",{style:{textAlign:"center"}},"Application must adhere to the MM App Manifest specification to be embedded.")):Ce.createElement(Ca,{isReady:S,ref:d,src:h,...u})};Sn.propTypes={id:Me.string,genericFrameFallback:Me.bool,src:Me.string.isRequired,path:Me.string,onInit:Me.func},Oe.MMEmbeddedWrapper=Sn,Oe.MMEmbeddedWrapperProvider=En,Oe.useEmbeddedEffect=wn,Object.defineProperty(Oe,Symbol.toStringTag,{value:"Module"})});
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@machinemetrics/mm-react-embeddable",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "module": "dist/mm-react-embeddable.es.js",
6
+ "source": "src/index.js",
7
+ "type": "module",
8
+ "engines": {
9
+ "node": ">=20"
10
+ },
11
+ "scripts": {
12
+ "build": "vite build",
13
+ "start": "vite build --watch"
14
+ },
15
+ "devDependencies": {
16
+ "prettier": "^3.3.3",
17
+ "vite": "^5.4.8"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "dependencies": {
23
+ "prop-types": "^15.8.1",
24
+ "react": "^18.3.1",
25
+ "styled-components": "^6.1.13"
26
+ }
27
+ }