@machinemetrics/mm-react-embeddable 1.0.1 → 1.0.2-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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),B=require("prop-types"),Fe=require("styled-components");var ue={exports:{}},q={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),K=require("prop-types"),We=require("styled-components");var be={exports:{}},B={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ae;function hr(){if(Ae)return q;Ae=1;var c=d,p=Symbol.for("react.element"),_=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,T=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function C(S,y,k){var n,u={},s=null,b=null;k!==void 0&&(s=""+k),y.key!==void 0&&(s=""+y.key),y.ref!==void 0&&(b=y.ref);for(n in y)v.call(y,n)&&!h.hasOwnProperty(n)&&(u[n]=y[n]);if(S&&S.defaultProps)for(n in y=S.defaultProps,y)u[n]===void 0&&(u[n]=y[n]);return{$$typeof:p,type:S,key:s,ref:b,props:u,_owner:T.current}}return q.Fragment=_,q.jsx=C,q.jsxs=C,q}var Z={};/**
9
+ */var Le;function wr(){if(Le)return B;Le=1;var n=d,o=Symbol.for("react.element"),T=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S={key:!0,ref:!0,__self:!0,__source:!0};function M(E,h,F){var b,j={},i=null,v=null;F!==void 0&&(i=""+F),h.key!==void 0&&(i=""+h.key),h.ref!==void 0&&(v=h.ref);for(b in h)c.call(h,b)&&!S.hasOwnProperty(b)&&(j[b]=h[b]);if(E&&E.defaultProps)for(b in h=E.defaultProps,h)j[b]===void 0&&(j[b]=h[b]);return{$$typeof:o,type:E,key:i,ref:v,props:j,_owner:w.current}}return B.Fragment=T,B.jsx=M,B.jsxs=M,B}var J={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,22 +14,22 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ie;function Rr(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var c=d,p=Symbol.for("react.element"),_=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),S=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),s=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),R=Symbol.iterator,x="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var r=R&&e[R]||e[x];return typeof r=="function"?r:null}var P=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];F("error",e,t)}}function F(e,r,t){{var a=P.ReactDebugCurrentFrame,l=a.getStackAddendum();l!==""&&(r+="%s",t=t.concat([l]));var f=t.map(function(i){return String(i)});f.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,f)}}var A=!1,Ue=!1,Ve=!1,qe=!1,Ze=!1,le;le=Symbol.for("react.module.reference");function Be(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===h||Ze||e===T||e===k||e===n||qe||e===b||A||Ue||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===s||e.$$typeof===u||e.$$typeof===C||e.$$typeof===S||e.$$typeof===y||e.$$typeof===le||e.getModuleId!==void 0))}function Je(e,r,t){var a=e.displayName;if(a)return a;var l=r.displayName||r.name||"";return l!==""?t+"("+l+")":t}function ce(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case _:return"Portal";case h:return"Profiler";case T:return"StrictMode";case k:return"Suspense";case n:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return ce(r)+".Consumer";case C:var t=e;return ce(t._context)+".Provider";case y:return Je(e,e.render,"ForwardRef");case u:var a=e.displayName||null;return a!==null?a:M(e.type)||"Memo";case s:{var l=e,f=l._payload,i=l._init;try{return M(i(f))}catch{return null}}}return null}var I=Object.assign,Y=0,fe,de,ve,pe,be,ge,Ee;function me(){}me.__reactDisabledLog=!0;function Ke(){{if(Y===0){fe=console.log,de=console.info,ve=console.warn,pe=console.error,be=console.group,ge=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Ne(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:fe}),info:I({},e,{value:de}),warn:I({},e,{value:ve}),error:I({},e,{value:pe}),group:I({},e,{value:be}),groupCollapsed:I({},e,{value:ge}),groupEnd:I({},e,{value:Ee})})}Y<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=P.ReactCurrentDispatcher,ee;function J(e,r,t){{if(ee===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);ee=a&&a[1]||""}return`
18
- `+ee+e}}var re=!1,K;{var Ge=typeof WeakMap=="function"?WeakMap:Map;K=new Ge}function ye(e,r){if(!e||re)return"";{var t=K.get(e);if(t!==void 0)return t}var a;re=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var f;f=Q.current,Q.current=null,Ke();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(O){a=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){a=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var o=O.stack.split(`
19
- `),w=a.stack.split(`
20
- `),E=o.length-1,m=w.length-1;E>=1&&m>=0&&o[E]!==w[m];)m--;for(;E>=1&&m>=0;E--,m--)if(o[E]!==w[m]){if(E!==1||m!==1)do if(E--,m--,m<0||o[E]!==w[m]){var j=`
21
- `+o[E].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&K.set(e,j),j}while(E>=1&&m>=0);break}}}finally{re=!1,Q.current=f,Ne(),Error.prepareStackTrace=l}var L=e?e.displayName||e.name:"",D=L?J(L):"";return typeof e=="function"&&K.set(e,D),D}function ze(e,r,t){return ye(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Xe(e));if(typeof e=="string")return J(e);switch(e){case k:return J("Suspense");case n:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return ze(e.render);case u:return N(e.type,r,t);case s:{var a=e,l=a._payload,f=a._init;try{return N(f(l),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,he={},Re=P.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}function He(e,r,t,a,l){{var f=Function.call.bind(U);for(var i in e)if(f(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var w=Error((a||"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 w.name="Invariant Violation",w}o=e[i](r,i,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){o=E}o&&!(o instanceof Error)&&(G(l),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,i,typeof o),G(null)),o instanceof Error&&!(o.message in he)&&(he[o.message]=!0,G(l),g("Failed %s type: %s",t,o.message),G(null))}}}var Qe=Array.isArray;function te(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function we(e){if(rr(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),_e(e)}var V=P.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Te,Ce,ne;ne={};function nr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&V.current&&r&&V.current.stateNode!==r){var t=M(V.current.type);ne[t]||(g('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',M(V.current.type),e.ref),ne[t]=!0)}}function ir(e,r){{var t=function(){Te||(Te=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Ce||(Ce=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,a,l,f,i){var o={$$typeof:p,type:e,key:r,ref:t,props:i,_owner:f};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function lr(e,r,t,a,l){{var f,i={},o=null,w=null;t!==void 0&&(we(t),o=""+t),ar(r)&&(we(r.key),o=""+r.key),nr(r)&&(w=r.ref,or(r,l));for(f in r)U.call(r,f)&&!tr.hasOwnProperty(f)&&(i[f]=r[f]);if(e&&e.defaultProps){var E=e.defaultProps;for(f in E)i[f]===void 0&&(i[f]=E[f])}if(o||w){var m=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ir(i,m),w&&sr(i,m)}return ur(e,o,w,l,a,V.current,i)}}var ae=P.ReactCurrentOwner,Se=P.ReactDebugCurrentFrame;function W(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===p}function Oe(){{if(ae.current){var e=M(ae.current.type);if(e)return`
17
+ */var Ye;function Sr(){return Ye||(Ye=1,process.env.NODE_ENV!=="production"&&function(){var n=d,o=Symbol.for("react.element"),T=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),E=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),l=Symbol.iterator,m="@@iterator";function O(e){if(e===null||typeof e!="object")return null;var r=l&&e[l]||e[m];return typeof r=="function"?r:null}var R=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];D("error",e,t)}}function D(e,r,t){{var a=R.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(r+="%s",t=t.concat([f]));var p=t.map(function(u){return String(u)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var A=!1,N=!1,G=!1,ne=!1,ae=!1,Y;Y=Symbol.for("react.module.reference");function Ne(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===S||ae||e===w||e===F||e===b||ne||e===v||A||N||G||typeof e=="object"&&e!==null&&(e.$$typeof===i||e.$$typeof===j||e.$$typeof===M||e.$$typeof===E||e.$$typeof===h||e.$$typeof===Y||e.getModuleId!==void 0))}function Ge(e,r,t){var a=e.displayName;if(a)return a;var f=r.displayName||r.name||"";return f!==""?t+"("+f+")":t}function ge(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case T:return"Portal";case S:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return ge(r)+".Consumer";case M:var t=e;return ge(t._context)+".Provider";case h:return Ge(e,e.render,"ForwardRef");case j:var a=e.displayName||null;return a!==null?a:I(e.type)||"Memo";case i:{var f=e,p=f._payload,u=f._init;try{return I(u(p))}catch{return null}}}return null}var $=Object.assign,V=0,me,ye,Ee,he,Re,_e,we;function Se(){}Se.__reactDisabledLog=!0;function ze(){{if(V===0){me=console.log,ye=console.info,Ee=console.warn,he=console.error,Re=console.group,_e=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Xe(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:me}),info:$({},e,{value:ye}),warn:$({},e,{value:Ee}),error:$({},e,{value:he}),group:$({},e,{value:Re}),groupCollapsed:$({},e,{value:_e}),groupEnd:$({},e,{value:we})})}V<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oe=R.ReactCurrentDispatcher,ie;function z(e,r,t){{if(ie===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ie=a&&a[1]||""}return`
18
+ `+ie+e}}var se=!1,X;{var He=typeof WeakMap=="function"?WeakMap:Map;X=new He}function Ce(e,r){if(!e||se)return"";{var t=X.get(e);if(t!==void 0)return t}var a;se=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=oe.current,oe.current=null,ze();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(x){a=x}Reflect.construct(e,[],u)}else{try{u.call()}catch(x){a=x}e.call(u.prototype)}}else{try{throw Error()}catch(x){a=x}e()}}catch(x){if(x&&a&&typeof x.stack=="string"){for(var s=x.stack.split(`
19
+ `),P=a.stack.split(`
20
+ `),y=s.length-1,_=P.length-1;y>=1&&_>=0&&s[y]!==P[_];)_--;for(;y>=1&&_>=0;y--,_--)if(s[y]!==P[_]){if(y!==1||_!==1)do if(y--,_--,_<0||s[y]!==P[_]){var k=`
21
+ `+s[y].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,k),k}while(y>=1&&_>=0);break}}}finally{se=!1,oe.current=p,Xe(),Error.prepareStackTrace=f}var L=e?e.displayName||e.name:"",U=L?z(L):"";return typeof e=="function"&&X.set(e,U),U}function Qe(e,r,t){return Ce(e,!1)}function er(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function H(e,r,t){if(e==null)return"";if(typeof e=="function")return Ce(e,er(e));if(typeof e=="string")return z(e);switch(e){case F:return z("Suspense");case b:return z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return Qe(e.render);case j:return H(e.type,r,t);case i:{var a=e,f=a._payload,p=a._init;try{return H(p(f),r,t)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Te={},Oe=R.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=H(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}function rr(e,r,t,a,f){{var p=Function.call.bind(q);for(var u in e)if(p(e,u)){var s=void 0;try{if(typeof e[u]!="function"){var P=Error((a||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}s=e[u](r,u,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){s=y}s&&!(s instanceof Error)&&(Q(f),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,u,typeof s),Q(null)),s instanceof Error&&!(s.message in Te)&&(Te[s.message]=!0,Q(f),g("Failed %s type: %s",t,s.message),Q(null))}}}var tr=Array.isArray;function ue(e){return tr(e)}function nr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ar(e){try{return Pe(e),!1}catch{return!0}}function Pe(e){return""+e}function xe(e){if(ar(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nr(e)),Pe(e)}var Z=R.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},je,ke,ce;ce={};function ir(e){if(q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function sr(e){if(q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ur(e,r){if(typeof e.ref=="string"&&Z.current&&r&&Z.current.stateNode!==r){var t=I(Z.current.type);ce[t]||(g('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',I(Z.current.type),e.ref),ce[t]=!0)}}function cr(e,r){{var t=function(){je||(je=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function lr(e,r){{var t=function(){ke||(ke=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var fr=function(e,r,t,a,f,p,u){var s={$$typeof:o,type:e,key:r,ref:t,props:u,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function dr(e,r,t,a,f){{var p,u={},s=null,P=null;t!==void 0&&(xe(t),s=""+t),sr(r)&&(xe(r.key),s=""+r.key),ir(r)&&(P=r.ref,ur(r,f));for(p in r)q.call(r,p)&&!or.hasOwnProperty(p)&&(u[p]=r[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)u[p]===void 0&&(u[p]=y[p])}if(s||P){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&cr(u,_),P&&lr(u,_)}return fr(e,s,P,f,a,Z.current,u)}}var le=R.ReactCurrentOwner,Me=R.ReactDebugCurrentFrame;function W(e){if(e){var r=e._owner,t=H(e.type,e._source,r?r.type:null);Me.setExtraStackFrame(t)}else Me.setExtraStackFrame(null)}var fe;fe=!1;function de(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Fe(){{if(le.current){var e=I(le.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function cr(e){return""}var Pe={};function fr(e){{var r=Oe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function vr(e){return""}var Ie={};function pr(e){{var r=Fe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
24
 
25
- Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=fr(r);if(Pe[t])return;Pe[t]=!0;var a="";e&&e._owner&&e._owner!==ae.current&&(a=" It was passed a child from "+M(e._owner.type)+"."),W(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),W(null)}}function xe(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var a=e[t];ie(a)&&je(a,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var l=$(e);if(typeof l=="function"&&l!==e.entries)for(var f=l.call(e),i;!(i=f.next()).done;)ie(i.value)&&je(i.value,r)}}}function dr(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===y||r.$$typeof===u))t=r.propTypes;else return;if(t){var a=M(r);He(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var l=M(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){W(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),W(null);break}}e.ref!==null&&(W(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var ke={};function Me(e,r,t,a,l,f){{var i=Be(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 w=cr();w?o+=w:o+=Oe();var E;e===null?E="null":te(e)?E="array":e!==void 0&&e.$$typeof===p?(E="<"+(M(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,o)}var m=lr(e,r,t,l,f);if(m==null)return m;if(i){var j=r.children;if(j!==void 0)if(a)if(te(j)){for(var L=0;L<j.length;L++)xe(j[L],e);Object.freeze&&Object.freeze(j)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xe(j,e)}if(U.call(r,"key")){var D=M(e),O=Object.keys(r).filter(function(yr){return yr!=="key"}),se=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!ke[D+se]){var mr=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function De(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=pr(r);if(Ie[t])return;Ie[t]=!0;var a="";e&&e._owner&&e._owner!==le.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),W(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),W(null)}}function Ae(e,r){{if(typeof e!="object")return;if(ue(e))for(var t=0;t<e.length;t++){var a=e[t];de(a)&&De(a,r)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var f=O(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),u;!(u=p.next()).done;)de(u.value)&&De(u.value,r)}}}function br(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===h||r.$$typeof===j))t=r.propTypes;else return;if(t){var a=I(r);rr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!fe){fe=!0;var f=I(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){W(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),W(null);break}}e.ref!==null&&(W(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var $e={};function Ue(e,r,t,a,f,p){{var u=Ne(e);if(!u){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 P=vr();P?s+=P:s+=Fe();var y;e===null?y="null":ue(e)?y="array":e!==void 0&&e.$$typeof===o?(y="<"+(I(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,s)}var _=dr(e,r,t,f,p);if(_==null)return _;if(u){var k=r.children;if(k!==void 0)if(a)if(ue(k)){for(var L=0;L<k.length;L++)Ae(k[L],e);Object.freeze&&Object.freeze(k)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(k,e)}if(q.call(r,"key")){var U=I(e),x=Object.keys(r).filter(function(_r){return _r!=="key"}),ve=x.length>0?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}";if(!$e[U+ve]){var Rr=x.length>0?"{"+x.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,se,D,mr,D),ke[D+se]=!0}}return e===v?vr(m):dr(m),m}}function pr(e,r,t){return Me(e,r,t,!0)}function br(e,r,t){return Me(e,r,t,!1)}var gr=br,Er=pr;Z.Fragment=v,Z.jsx=gr,Z.jsxs=Er}()),Z}process.env.NODE_ENV==="production"?ue.exports=hr():ue.exports=Rr();var X=ue.exports;const H=d.createContext(null),De=({children:c})=>{const[p,_]=d.useState({}),v=d.useRef({}),T=d.useCallback((n,u,s)=>{_(b=>({...b,[n]:{origin:u,frameRef:s}}))},[]),h=d.useCallback(n=>{_(u=>{const s={...u};return delete s[n],s})},[]);d.useEffect(()=>{const n=(s=[],b)=>{s.forEach(R=>R(b))},u=s=>{var $,P,g,F,A;if(!(($=s==null?void 0:s.data)!=null&&$.instanceId))return;const{instanceId:b,type:R}=s.data,x=v.current;n((P=x[b])==null?void 0:P[R],s.data),n((g=x["*"])==null?void 0:g[R],s.data),n((F=x[b])==null?void 0:F["*"],s.data),n((A=x["*"])==null?void 0:A["*"],s.data)};return window.addEventListener("message",u),()=>{window.removeEventListener("message",u)}},[p]);const C=d.useCallback((n,u,s)=>{var R,x;const b=p[n];if(!b){console.warn(`Origin not set for id: ${n}. Unable to send message.`);return}(x=(R=b==null?void 0:b.frameRef)==null?void 0:R.current)!=null&&x.contentWindow&&b.frameRef.current.contentWindow.postMessage({type:u,...s,instanceId:n},b.origin)},[p]),S=d.useCallback((n,u)=>{C(n,"load-options",u)},[C]),y=d.useCallback((n,u)=>{C(n,"validate",u)},[C]),k={registerFrame:T,unregisterFrame:h,sendMessage:C,loadOptions:S,validate:y,addListener:(n,u,s)=>(v.current[n]||(v.current[n]={}),v.current[n][u]||(v.current[n][u]=[]),v.current[n][u].push(s),()=>{v.current[n][u]=v.current[n][u].filter(b=>b!==s)})};return X.jsx(H.Provider,{value:k,children:c})},z={},$e=async c=>{try{const p=new URL(c).origin;if(z[p]!==void 0)return z[p];const v=await(await fetch(`${p}/mm-app-manifest.json`)).json();if(!v.version)throw new Error("Invalid manifest");return z[p]=v,v}catch{}return z[origin]=!1,!1},We=async c=>!!await $e(c),Le=(c,p,_)=>{const v=d.useContext(H);if(v===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const T=d.useRef(_);d.useEffect(()=>{T.current=_},[_]),d.useEffect(()=>{if(!(!c||!p))return v.addListener(c,p,(...h)=>T.current(...h))},[v,c,p])};De.propTypes={children:B.node.isRequired};const _r=Fe.default||Fe,wr=_r.iframe`
30
+ <%s key={someKey} {...props} />`,ve,U,Rr,U),$e[U+ve]=!0}}return e===c?gr(_):br(_),_}}function mr(e,r,t){return Ue(e,r,t,!0)}function yr(e,r,t){return Ue(e,r,t,!1)}var Er=yr,hr=mr;J.Fragment=c,J.jsx=Er,J.jsxs=hr}()),J}process.env.NODE_ENV==="production"?be.exports=wr():be.exports=Sr();var re=be.exports;const C=[];for(let n=0;n<256;++n)C.push((n+256).toString(16).slice(1));function Cr(n,o=0){return(C[n[o+0]]+C[n[o+1]]+C[n[o+2]]+C[n[o+3]]+"-"+C[n[o+4]]+C[n[o+5]]+"-"+C[n[o+6]]+C[n[o+7]]+"-"+C[n[o+8]]+C[n[o+9]]+"-"+C[n[o+10]]+C[n[o+11]]+C[n[o+12]]+C[n[o+13]]+C[n[o+14]]+C[n[o+15]]).toLowerCase()}let pe;const Tr=new Uint8Array(16);function Or(){if(!pe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pe=crypto.getRandomValues.bind(crypto)}return pe(Tr)}const Pr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ve={randomUUID:Pr};function xr(n,o,T){var w;if(Ve.randomUUID&&!o&&!n)return Ve.randomUUID();n=n||{};const c=n.random??((w=n.rng)==null?void 0:w.call(n))??Or();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,Cr(c)}const te=d.createContext(null),qe=({children:n})=>{const[o,T]=d.useState({}),c=d.useRef({}),w=d.useRef({}),S=d.useCallback((i,v,l)=>{T(m=>({...m,[i]:{origin:v,frameRef:l}}))},[]),M=d.useCallback(i=>{T(v=>{const l={...v};return delete l[i],l})},[]);d.useEffect(()=>{const i=(l=[],m)=>{l.forEach(O=>O(m))},v=l=>{var g,D,A,N,G;if(!((g=l==null?void 0:l.data)!=null&&g.instanceId))return;const{instanceId:m,type:O}=l.data,R=c.current;if(O==="response"){const{callbackId:ne,response:ae}=l.data,Y=w.current[ne];Y&&Y(ae);return}i((D=R[m])==null?void 0:D[O],l.data),i((A=R["*"])==null?void 0:A[O],l.data),i((N=R[m])==null?void 0:N["*"],l.data),i((G=R["*"])==null?void 0:G["*"],l.data)};return window.addEventListener("message",v),()=>{window.removeEventListener("message",v)}},[o]);const E=d.useCallback((i,v,l)=>{var O,R;const m=o[i];if(!m){console.warn(`Origin not set for id: ${i}. Unable to send message.`);return}(R=(O=m==null?void 0:m.frameRef)==null?void 0:O.current)!=null&&R.contentWindow&&m.frameRef.current.contentWindow.postMessage({type:v,...l,instanceId:i},m.origin)},[o]),h=d.useCallback(async(i,v,l={})=>new Promise(m=>{const O=xr(),R=g=>{delete w.current[O],m(g)};w.current[O]=R,E(i,"request",{callbackId:O,requestType:v,data:l})}),[o]),F=d.useCallback((i,v)=>{E(i,"load-options",v)},[E]),b=d.useCallback((i,v)=>{E(i,"validate",v)},[E]),j=d.useMemo(()=>({registerFrame:S,unregisterFrame:M,sendMessage:E,sendRequest:h,loadOptions:F,validate:b,addListener:(i,v,l)=>(c.current[i]||(c.current[i]={}),c.current[i][v]||(c.current[i][v]=[]),c.current[i][v].push(l),()=>{c.current[i][v]=c.current[i][v].filter(m=>m!==l)})}),[S,M,E,h,F,b]);return re.jsx(te.Provider,{value:j,children:n})},ee={},Ze=async n=>{try{const o=new URL(n).origin;if(ee[o]!==void 0)return ee[o];const c=await(await fetch(`${o}/mm-app-manifest.json`)).json();if(!c.version)throw new Error("Invalid manifest");return ee[o]=c,c}catch{}return ee[origin]=!1,!1},Be=async n=>!!await Ze(n),Je=(n,o,T)=>{const c=d.useContext(te);if(c===null)throw new Error("useEmbeddedEffect must be used within a MMEmbeddableZoneProvider");const w=d.useRef(T);d.useEffect(()=>{w.current=T},[T]),d.useEffect(()=>{if(!(!n||!o))return c.addListener(n,o,(...S)=>w.current(...S))},[c,n,o])};qe.propTypes={children:K.node.isRequired};const jr=We.default||We,kr=jr.iframe`
31
31
  width: 100%;
32
32
  height: 100%;
33
33
  border: none;
34
- visibility: ${c=>c.$isReady?"visible":"hidden"};
35
- `,Ye=({id:c,src:p,path:_,onInit:v=()=>{},context:T,params:h,...C})=>{if("isConfiguring"in C)return console.error("isConfiguring must be passed via the params prop to MMEmbeddableZone"),null;if("colorMode"in T)return console.error("colorMode must be passed via the params prop to MMEmbeddableZone"),null;if("isFullScreen"in T)return console.error("isFullScreen must be passed via the params prop to MMEmbeddableZone"),null;const S=d.useRef(),[y,k]=d.useState(),[n,u]=d.useState(0),{registerFrame:s,unregisterFrame:b,sendMessage:R}=d.useContext(H),[x,$]=d.useState(!0),[P,g]=d.useState();return d.useEffect(()=>{n&&R(c,"set-context",{context:{...T,colorMode:h.colorMode,isFullScreen:h.isFullScreen}})},[T,h.colorMode,h.isFullScreen,c,n]),d.useEffect(()=>{n&&(R(c,"set-params",{params:h}),R(c,"set-configuring",{isConfiguring:h.isConfiguring}))},[h,c,n]),d.useEffect(()=>{_!==void 0&&g(_)},[_]),d.useEffect(()=>{P===void 0||!n||R(c,"navigate",{path:P})},[P,n,c,R]),d.useEffect(()=>{if(!(!p||!c||!S))return(async()=>{const F=await We(p);if($(F),F){const A=new URL(p);s(c,A.origin,S),v(),k(`${A.origin}/mm-embedded-interop?id=${c}&origin=${window.location.origin}`);return}})(),()=>{b(c)}},[p,c,s,S]),Le(c,"ready",()=>u(F=>F+1)),x?X.jsx(wr,{$isReady:n,ref:S,src:y,...C}):X.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:X.jsx("div",{style:{textAlign:"center"},children:"Application must adhere to the MM App Manifest specification to be embedded."})})};Ye.propTypes={id:B.string,src:B.string.isRequired,path:B.string,onInit:B.func};exports.MMEmbeddableZone=Ye;exports.MMEmbeddableZoneContext=H;exports.MMEmbeddableZoneProvider=De;exports.getAppInfo=$e;exports.testIsEmbeddable=We;exports.useEmbeddedEffect=Le;
34
+ visibility: ${n=>n.$isReady?"visible":"hidden"};
35
+ `,Ke=({id:n,src:o,path:T,onInit:c=()=>{},context:w,params:S,...M})=>{if("isConfiguring"in M)return console.error("isConfiguring must be passed via the params prop to MMEmbeddableZone"),null;if("colorMode"in w)return console.error("colorMode must be passed via the params prop to MMEmbeddableZone"),null;if("isFullScreen"in w)return console.error("isFullScreen must be passed via the params prop to MMEmbeddableZone"),null;const E=d.useRef(),[h,F]=d.useState(),[b,j]=d.useState(0),{registerFrame:i,unregisterFrame:v,sendMessage:l}=d.useContext(te),[m,O]=d.useState(!0),[R,g]=d.useState();return d.useEffect(()=>{b&&l(n,"set-context",{context:{...w,colorMode:S.colorMode,isFullScreen:S.isFullScreen}})},[w,S.colorMode,S.isFullScreen,n,b]),d.useEffect(()=>{b&&(l(n,"set-params",{params:S}),l(n,"set-configuring",{isConfiguring:S.isConfiguring}))},[S,n,b]),d.useEffect(()=>{T!==void 0&&g(T)},[T]),d.useEffect(()=>{R===void 0||!b||l(n,"navigate",{path:R})},[R,b,n,l]),d.useEffect(()=>{if(!(!o||!n||!E))return(async()=>{const D=await Be(o);if(O(D),D){const A=new URL(o);i(n,A.origin,E),c(),F(`${A.origin}/mm-embedded-interop?id=${n}&origin=${window.location.origin}`);return}})(),()=>{v(n)}},[o,n,i,E]),Je(n,"ready",()=>j(D=>D+1)),m?re.jsx(kr,{$isReady:b,ref:E,src:h,...M}):re.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:re.jsx("div",{style:{textAlign:"center"},children:"Application must adhere to the MM App Manifest specification to be embedded."})})};Ke.propTypes={id:K.string,src:K.string.isRequired,path:K.string,onInit:K.func};exports.MMEmbeddableZone=Ke;exports.MMEmbeddableZoneContext=te;exports.MMEmbeddableZoneProvider=qe;exports.getAppInfo=Ze;exports.testIsEmbeddable=Be;exports.useEmbeddedEffect=Je;