react-iframe-plugin 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/iframe-plugin.es.js +389 -1864
- package/dist/iframe-plugin.umd.js +10 -48
- package/package.json +5 -3
@@ -1,42 +1,4 @@
|
|
1
|
-
(function(
|
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 Yr;function gt(){if(Yr)return h;Yr=1;var K=Symbol.for("react.element"),v=Symbol.for("react.portal"),pe=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),ne=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),ee=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),V=Symbol.iterator;function re(n){return n===null||typeof n!="object"?null:(n=V&&n[V]||n["@@iterator"],typeof n=="function"?n:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},se=Object.assign,Le={};function ae(n,i,g){this.props=n,this.context=i,this.refs=Le,this.updater=g||J}ae.prototype.isReactComponent={},ae.prototype.setState=function(n,i){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,i,"setState")},ae.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function oe(){}oe.prototype=ae.prototype;function x(n,i,g){this.props=n,this.context=i,this.refs=Le,this.updater=g||J}var _e=x.prototype=new oe;_e.constructor=x,se(_e,ae.prototype),_e.isPureReactComponent=!0;var ue=Array.isArray,M=Object.prototype.hasOwnProperty,G={current:null},ce={key:!0,ref:!0,__self:!0,__source:!0};function ye(n,i,g){var b,R={},k=null,O=null;if(i!=null)for(b in i.ref!==void 0&&(O=i.ref),i.key!==void 0&&(k=""+i.key),i)M.call(i,b)&&!ce.hasOwnProperty(b)&&(R[b]=i[b]);var T=arguments.length-2;if(T===1)R.children=g;else if(1<T){for(var w=Array(T),W=0;W<T;W++)w[W]=arguments[W+2];R.children=w}if(n&&n.defaultProps)for(b in T=n.defaultProps,T)R[b]===void 0&&(R[b]=T[b]);return{$$typeof:K,type:n,key:k,ref:O,props:R,_owner:G.current}}function Te(n,i){return{$$typeof:K,type:n.type,key:i,ref:n.ref,props:n.props,_owner:n._owner}}function Oe(n){return typeof n=="object"&&n!==null&&n.$$typeof===K}function Ke(n){var i={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(g){return i[g]})}var Pe=/\/+/g;function z(n,i){return typeof n=="object"&&n!==null&&n.key!=null?Ke(""+n.key):i.toString(36)}function X(n,i,g,b,R){var k=typeof n;(k==="undefined"||k==="boolean")&&(n=null);var O=!1;if(n===null)O=!0;else switch(k){case"string":case"number":O=!0;break;case"object":switch(n.$$typeof){case K:case v:O=!0}}if(O)return O=n,R=R(O),n=b===""?"."+z(O,0):b,ue(R)?(g="",n!=null&&(g=n.replace(Pe,"$&/")+"/"),X(R,i,g,"",function(W){return W})):R!=null&&(Oe(R)&&(R=Te(R,g+(!R.key||O&&O.key===R.key?"":(""+R.key).replace(Pe,"$&/")+"/")+n)),i.push(R)),1;if(O=0,b=b===""?".":b+":",ue(n))for(var T=0;T<n.length;T++){k=n[T];var w=b+z(k,T);O+=X(k,i,g,w,R)}else if(w=re(n),typeof w=="function")for(n=w.call(n),T=0;!(k=n.next()).done;)k=k.value,w=b+z(k,T++),O+=X(k,i,g,w,R);else if(k==="object")throw i=String(n),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return O}function U(n,i,g){if(n==null)return n;var b=[],R=0;return X(n,b,"","",function(k){return i.call(g,k,R++)}),b}function ie(n){if(n._status===-1){var i=n._result;i=i(),i.then(function(g){(n._status===0||n._status===-1)&&(n._status=1,n._result=g)},function(g){(n._status===0||n._status===-1)&&(n._status=2,n._result=g)}),n._status===-1&&(n._status=0,n._result=i)}if(n._status===1)return n._result.default;throw n._result}var l={current:null},fe={transition:null},ke={ReactCurrentDispatcher:l,ReactCurrentBatchConfig:fe,ReactCurrentOwner:G};function he(){throw Error("act(...) is not supported in production builds of React.")}return h.Children={map:U,forEach:function(n,i,g){U(n,function(){i.apply(this,arguments)},g)},count:function(n){var i=0;return U(n,function(){i++}),i},toArray:function(n){return U(n,function(i){return i})||[]},only:function(n){if(!Oe(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},h.Component=ae,h.Fragment=pe,h.Profiler=ve,h.PureComponent=x,h.StrictMode=H,h.Suspense=$,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ke,h.act=he,h.cloneElement=function(n,i,g){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var b=se({},n.props),R=n.key,k=n.ref,O=n._owner;if(i!=null){if(i.ref!==void 0&&(k=i.ref,O=G.current),i.key!==void 0&&(R=""+i.key),n.type&&n.type.defaultProps)var T=n.type.defaultProps;for(w in i)M.call(i,w)&&!ce.hasOwnProperty(w)&&(b[w]=i[w]===void 0&&T!==void 0?T[w]:i[w])}var w=arguments.length-2;if(w===1)b.children=g;else if(1<w){T=Array(w);for(var W=0;W<w;W++)T[W]=arguments[W+2];b.children=T}return{$$typeof:K,type:n.type,key:R,ref:k,props:b,_owner:O}},h.createContext=function(n){return n={$$typeof:ne,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:te,_context:n},n.Consumer=n},h.createElement=ye,h.createFactory=function(n){var i=ye.bind(null,n);return i.type=n,i},h.createRef=function(){return{current:null}},h.forwardRef=function(n){return{$$typeof:Z,render:n}},h.isValidElement=Oe,h.lazy=function(n){return{$$typeof:L,_payload:{_status:-1,_result:n},_init:ie}},h.memo=function(n,i){return{$$typeof:ee,type:n,compare:i===void 0?null:i}},h.startTransition=function(n){var i=fe.transition;fe.transition={};try{n()}finally{fe.transition=i}},h.unstable_act=he,h.useCallback=function(n,i){return l.current.useCallback(n,i)},h.useContext=function(n){return l.current.useContext(n)},h.useDebugValue=function(){},h.useDeferredValue=function(n){return l.current.useDeferredValue(n)},h.useEffect=function(n,i){return l.current.useEffect(n,i)},h.useId=function(){return l.current.useId()},h.useImperativeHandle=function(n,i,g){return l.current.useImperativeHandle(n,i,g)},h.useInsertionEffect=function(n,i){return l.current.useInsertionEffect(n,i)},h.useLayoutEffect=function(n,i){return l.current.useLayoutEffect(n,i)},h.useMemo=function(n,i){return l.current.useMemo(n,i)},h.useReducer=function(n,i,g){return l.current.useReducer(n,i,g)},h.useRef=function(n){return l.current.useRef(n)},h.useState=function(n){return l.current.useState(n)},h.useSyncExternalStore=function(n,i,g){return l.current.useSyncExternalStore(n,i,g)},h.useTransition=function(){return l.current.useTransition()},h.version="18.3.1",h}var ze={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
|
-
*/ze.exports;var Br;function _t(){return Br||(Br=1,function(K,v){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 pe="18.3.1",H=Symbol.for("react.element"),ve=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),ee=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),ae=Symbol.iterator,oe="@@iterator";function x(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[oe];return typeof r=="function"?r:null}var _e={current:null},ue={transition:null},M={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},G={current:null},ce={},ye=null;function Te(e){ye=e}ce.setExtraStackFrame=function(e){ye=e},ce.getCurrentStack=null,ce.getStackAddendum=function(){var e="";ye&&(e+=ye);var r=ce.getCurrentStack;return r&&(e+=r()||""),e};var Oe=!1,Ke=!1,Pe=!1,z=!1,X=!1,U={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:ue,ReactCurrentOwner:G};U.ReactDebugCurrentFrame=ce,U.ReactCurrentActQueue=M;function ie(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];fe("warn",e,a)}}function l(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];fe("error",e,a)}}function fe(e,r,a){{var o=U.ReactDebugCurrentFrame,c=o.getStackAddendum();c!==""&&(r+="%s",a=a.concat([c]));var d=a.map(function(f){return String(f)});d.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,d)}}var ke={};function he(e,r){{var a=e.constructor,o=a&&(a.displayName||a.name)||"ReactClass",c=o+"."+r;if(ke[c])return;l("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.",r,o),ke[c]=!0}}var n={isMounted:function(e){return!1},enqueueForceUpdate:function(e,r,a){he(e,"forceUpdate")},enqueueReplaceState:function(e,r,a,o){he(e,"replaceState")},enqueueSetState:function(e,r,a,o){he(e,"setState")}},i=Object.assign,g={};Object.freeze(g);function b(e,r,a){this.props=e,this.context=r,this.refs=g,this.updater=a||n}b.prototype.isReactComponent={},b.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,r,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"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)."]},k=function(e,r){Object.defineProperty(b.prototype,e,{get:function(){ie("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})};for(var O in R)R.hasOwnProperty(O)&&k(O,R[O])}function T(){}T.prototype=b.prototype;function w(e,r,a){this.props=e,this.context=r,this.refs=g,this.updater=a||n}var W=w.prototype=new T;W.constructor=w,i(W,b.prototype),W.isPureReactComponent=!0;function br(){var e={current:null};return Object.seal(e),e}var Ze=Array.isArray;function Me(e){return Ze(e)}function Er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function We(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function je(e){if(We(e))return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(e)),be(e)}function er(e,r,a){var o=e.displayName;if(o)return o;var c=r.displayName||r.name||"";return c!==""?a+"("+c+")":a}function Ae(e){return e.displayName||"Context"}function le(e){if(e==null)return null;if(typeof e.tag=="number"&&l("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 te:return"Fragment";case ve:return"Portal";case Z:return"Profiler";case ne:return"StrictMode";case V:return"Suspense";case re:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ee:var r=e;return Ae(r)+".Consumer";case $:var a=e;return Ae(a._context)+".Provider";case L:return er(e,e.render,"ForwardRef");case J:var o=e.displayName||null;return o!==null?o:le(e.type)||"Memo";case se:{var c=e,d=c._payload,f=c._init;try{return le(f(d))}catch{return null}}}return null}var xe=Object.prototype.hasOwnProperty,Ne={key:!0,ref:!0,__self:!0,__source:!0},rr,tr,Ve;Ve={};function He(e){if(xe.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ee(e){if(xe.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Rr(e,r){var a=function(){rr||(rr=!0,l("%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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function nr(e,r){var a=function(){tr||(tr=!0,l("%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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}function ar(e){if(typeof e.ref=="string"&&G.current&&e.__self&&G.current.stateNode!==e.__self){var r=le(G.current.type);Ve[r]||(l('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',r,e.ref),Ve[r]=!0)}}var De=function(e,r,a,o,c,d,f){var y={$$typeof:H,type:e,key:r,ref:a,props:f,_owner:d};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Cr(e,r,a){var o,c={},d=null,f=null,y=null,E=null;if(r!=null){He(r)&&(f=r.ref,ar(r)),Ee(r)&&(je(r.key),d=""+r.key),y=r.__self===void 0?null:r.__self,E=r.__source===void 0?null:r.__source;for(o in r)xe.call(r,o)&&!Ne.hasOwnProperty(o)&&(c[o]=r[o])}var P=arguments.length-2;if(P===1)c.children=a;else if(P>1){for(var j=Array(P),A=0;A<P;A++)j[A]=arguments[A+2];Object.freeze&&Object.freeze(j),c.children=j}if(e&&e.defaultProps){var I=e.defaultProps;for(o in I)c[o]===void 0&&(c[o]=I[o])}if(d||f){var N=typeof e=="function"?e.displayName||e.name||"Unknown":e;d&&Rr(c,N),f&&nr(c,N)}return De(e,d,f,y,E,G.current,c)}function wr(e,r){var a=De(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return a}function Sr(e,r,a){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,c=i({},e.props),d=e.key,f=e.ref,y=e._self,E=e._source,P=e._owner;if(r!=null){He(r)&&(f=r.ref,P=G.current),Ee(r)&&(je(r.key),d=""+r.key);var j;e.type&&e.type.defaultProps&&(j=e.type.defaultProps);for(o in r)xe.call(r,o)&&!Ne.hasOwnProperty(o)&&(r[o]===void 0&&j!==void 0?c[o]=j[o]:c[o]=r[o])}var A=arguments.length-2;if(A===1)c.children=a;else if(A>1){for(var I=Array(A),N=0;N<A;N++)I[N]=arguments[N+2];c.children=I}return De(e.type,d,f,y,E,P,c)}function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===H}var or=".",Tr=":";function Or(e){var r=/[=:]/g,a={"=":"=0",":":"=2"},o=e.replace(r,function(c){return a[c]});return"$"+o}var Ue=!1,ur=/\/+/g;function me(e){return e.replace(ur,"$&/")}function Ie(e,r){return typeof e=="object"&&e!==null&&e.key!=null?(je(e.key),Or(""+e.key)):r.toString(36)}function Ce(e,r,a,o,c){var d=typeof e;(d==="undefined"||d==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(d){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case H:case ve:f=!0}}if(f){var y=e,E=c(y),P=o===""?or+Ie(y,0):o;if(Me(E)){var j="";P!=null&&(j=me(P)+"/"),Ce(E,r,j,"",function(Yt){return Yt})}else E!=null&&(Re(E)&&(E.key&&(!y||y.key!==E.key)&&je(E.key),E=wr(E,a+(E.key&&(!y||y.key!==E.key)?me(""+E.key)+"/":"")+P)),r.push(E));return 1}var A,I,N=0,B=o===""?or:o+Tr;if(Me(e))for(var gr=0;gr<e.length;gr++)A=e[gr],I=B+Ie(A,gr),N+=Ce(A,r,a,I,c);else{var Ur=x(e);if(typeof Ur=="function"){var yt=e;Ur===yt.entries&&(Ue||ie("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ue=!0);for(var Vt=Ur.call(yt),ht,Ut=0;!(ht=Vt.next()).done;)A=ht.value,I=B+Ie(A,Ut++),N+=Ce(A,r,a,I,c)}else if(d==="object"){var mt=String(e);throw new Error("Objects are not valid as a React child (found: "+(mt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":mt)+"). If you meant to render a collection of children, use an array instead.")}}return N}function Fe(e,r,a){if(e==null)return e;var o=[],c=0;return Ce(e,o,"","",function(d){return r.call(a,d,c++)}),o}function Pr(e){var r=0;return Fe(e,function(){r++}),r}function ir(e,r,a){Fe(e,function(){r.apply(this,arguments)},a)}function kr(e){return Fe(e,function(r){return r})||[]}function sr(e){if(!Re(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function cr(e){var r={$$typeof:ee,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};r.Provider={$$typeof:$,_context:r};var a=!1,o=!1,c=!1;{var d={$$typeof:ee,_context:r};Object.defineProperties(d,{Provider:{get:function(){return o||(o=!0,l("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(f){r.Provider=f}},_currentValue:{get:function(){return r._currentValue},set:function(f){r._currentValue=f}},_currentValue2:{get:function(){return r._currentValue2},set:function(f){r._currentValue2=f}},_threadCount:{get:function(){return r._threadCount},set:function(f){r._threadCount=f}},Consumer:{get:function(){return a||(a=!0,l("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(f){c||(ie("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",f),c=!0)}}}),r.Consumer=d}return r._currentRenderer=null,r._currentRenderer2=null,r}var $e=-1,Ge=0,Je=1,fr=2;function jr(e){if(e._status===$e){var r=e._result,a=r();if(a.then(function(d){if(e._status===Ge||e._status===$e){var f=e;f._status=Je,f._result=d}},function(d){if(e._status===Ge||e._status===$e){var f=e;f._status=fr,f._result=d}}),e._status===$e){var o=e;o._status=Ge,o._result=a}}if(e._status===Je){var c=e._result;return c===void 0&&l(`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?`,c),"default"in c||l(`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'))`,c),c.default}else throw e._result}function Ar(e){var r={_status:$e,_result:e},a={$$typeof:se,_payload:r,_init:jr};{var o,c;Object.defineProperties(a,{defaultProps:{configurable:!0,get:function(){return o},set:function(d){l("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."),o=d,Object.defineProperty(a,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return c},set:function(d){l("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."),c=d,Object.defineProperty(a,"propTypes",{enumerable:!0})}}})}return a}function xr(e){e!=null&&e.$$typeof===J?l("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?l("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&l("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&l("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var r={$$typeof:L,render:e};{var a;Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(o){a=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return r}var lr;lr=Symbol.for("react.module.reference");function t(e){return!!(typeof e=="string"||typeof e=="function"||e===te||e===Z||X||e===ne||e===V||e===re||z||e===Le||Oe||Ke||Pe||typeof e=="object"&&e!==null&&(e.$$typeof===se||e.$$typeof===J||e.$$typeof===$||e.$$typeof===ee||e.$$typeof===L||e.$$typeof===lr||e.getModuleId!==void 0))}function u(e,r){t(e)||l("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var a={$$typeof:J,type:e,compare:r===void 0?null:r};{var o;Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(c){o=c,!e.name&&!e.displayName&&(e.displayName=c)}})}return a}function s(){var e=_e.current;return e===null&&l(`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.`),e}function p(e){var r=s();if(e._context!==void 0){var a=e._context;a.Consumer===e?l("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?"):a.Provider===e&&l("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e)}function C(e){var r=s();return r.useState(e)}function S(e,r,a){var o=s();return o.useReducer(e,r,a)}function _(e){var r=s();return r.useRef(e)}function m(e,r){var a=s();return a.useEffect(e,r)}function Y(e,r){var a=s();return a.useInsertionEffect(e,r)}function D(e,r){var a=s();return a.useLayoutEffect(e,r)}function F(e,r){var a=s();return a.useCallback(e,r)}function Q(e,r){var a=s();return a.useMemo(e,r)}function we(e,r,a){var o=s();return o.useImperativeHandle(e,r,a)}function ge(e,r){{var a=s();return a.useDebugValue(e,r)}}function q(){var e=s();return e.useTransition()}function Xe(e){var r=s();return r.useDeferredValue(e)}function Dr(){var e=s();return e.useId()}function Ir(e,r,a){var o=s();return o.useSyncExternalStore(e,r,a)}var Qe=0,Hr,Gr,Jr,Xr,Qr,Zr,et;function rt(){}rt.__reactDisabledLog=!0;function Ct(){{if(Qe===0){Hr=console.log,Gr=console.info,Jr=console.warn,Xr=console.error,Qr=console.group,Zr=console.groupCollapsed,et=console.groupEnd;var e={configurable:!0,enumerable:!0,value:rt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Qe++}}function wt(){{if(Qe--,Qe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:i({},e,{value:Hr}),info:i({},e,{value:Gr}),warn:i({},e,{value:Jr}),error:i({},e,{value:Xr}),group:i({},e,{value:Qr}),groupCollapsed:i({},e,{value:Zr}),groupEnd:i({},e,{value:et})})}Qe<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Fr=U.ReactCurrentDispatcher,$r;function dr(e,r,a){{if($r===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);$r=o&&o[1]||""}return`
|
30
|
-
`+$r+e}}var Lr=!1,pr;{var St=typeof WeakMap=="function"?WeakMap:Map;pr=new St}function tt(e,r){if(!e||Lr)return"";{var a=pr.get(e);if(a!==void 0)return a}var o;Lr=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var d;d=Fr.current,Fr.current=null,Ct();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(B){o=B}Reflect.construct(e,[],f)}else{try{f.call()}catch(B){o=B}e.call(f.prototype)}}else{try{throw Error()}catch(B){o=B}e()}}catch(B){if(B&&o&&typeof B.stack=="string"){for(var y=B.stack.split(`
|
31
|
-
`),E=o.stack.split(`
|
32
|
-
`),P=y.length-1,j=E.length-1;P>=1&&j>=0&&y[P]!==E[j];)j--;for(;P>=1&&j>=0;P--,j--)if(y[P]!==E[j]){if(P!==1||j!==1)do if(P--,j--,j<0||y[P]!==E[j]){var A=`
|
33
|
-
`+y[P].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),typeof e=="function"&&pr.set(e,A),A}while(P>=1&&j>=0);break}}}finally{Lr=!1,Fr.current=d,wt(),Error.prepareStackTrace=c}var I=e?e.displayName||e.name:"",N=I?dr(I):"";return typeof e=="function"&&pr.set(e,N),N}function Tt(e,r,a){return tt(e,!1)}function Ot(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function vr(e,r,a){if(e==null)return"";if(typeof e=="function")return tt(e,Ot(e));if(typeof e=="string")return dr(e);switch(e){case V:return dr("Suspense");case re:return dr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case L:return Tt(e.render);case J:return vr(e.type,r,a);case se:{var o=e,c=o._payload,d=o._init;try{return vr(d(c),r,a)}catch{}}}return""}var nt={},at=U.ReactDebugCurrentFrame;function yr(e){if(e){var r=e._owner,a=vr(e.type,e._source,r?r.type:null);at.setExtraStackFrame(a)}else at.setExtraStackFrame(null)}function Pt(e,r,a,o,c){{var d=Function.call.bind(xe);for(var f in e)if(d(e,f)){var y=void 0;try{if(typeof e[f]!="function"){var E=Error((o||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}y=e[f](r,f,o,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){y=P}y&&!(y instanceof Error)&&(yr(c),l("%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).",o||"React class",a,f,typeof y),yr(null)),y instanceof Error&&!(y.message in nt)&&(nt[y.message]=!0,yr(c),l("Failed %s type: %s",a,y.message),yr(null))}}}function Ye(e){if(e){var r=e._owner,a=vr(e.type,e._source,r?r.type:null);Te(a)}else Te(null)}var Mr;Mr=!1;function ot(){if(G.current){var e=le(G.current.type);if(e)return`
|
34
|
-
|
35
|
-
Check the render method of \``+e+"`."}return""}function kt(e){if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
|
36
|
-
|
37
|
-
Check your code at `+r+":"+a+"."}return""}function jt(e){return e!=null?kt(e.__source):""}var ut={};function At(e){var r=ot();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
|
38
|
-
|
39
|
-
Check the top-level render call using <`+a+">.")}return r}function it(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var a=At(r);if(!ut[a]){ut[a]=!0;var o="";e&&e._owner&&e._owner!==G.current&&(o=" It was passed a child from "+le(e._owner.type)+"."),Ye(e),l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,o),Ye(null)}}}function st(e,r){if(typeof e=="object"){if(Me(e))for(var a=0;a<e.length;a++){var o=e[a];Re(o)&&it(o,r)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var c=x(e);if(typeof c=="function"&&c!==e.entries)for(var d=c.call(e),f;!(f=d.next()).done;)Re(f.value)&&it(f.value,r)}}}function ct(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===L||r.$$typeof===J))a=r.propTypes;else return;if(a){var o=le(r);Pt(a,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!Mr){Mr=!0;var c=le(r);l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xt(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var o=r[a];if(o!=="children"&&o!=="key"){Ye(e),l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),Ye(null);break}}e.ref!==null&&(Ye(e),l("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}}function ft(e,r,a){var o=t(e);if(!o){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=jt(r);d?c+=d:c+=ot();var f;e===null?f="null":Me(e)?f="array":e!==void 0&&e.$$typeof===H?(f="<"+(le(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,l("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,c)}var y=Cr.apply(this,arguments);if(y==null)return y;if(o)for(var E=2;E<arguments.length;E++)st(arguments[E],e);return e===te?xt(y):ct(y),y}var lt=!1;function Dt(e){var r=ft.bind(null,e);return r.type=e,lt||(lt=!0,ie("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return ie("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function It(e,r,a){for(var o=Sr.apply(this,arguments),c=2;c<arguments.length;c++)st(arguments[c],o.type);return ct(o),o}function Ft(e,r){var a=ue.transition;ue.transition={};var o=ue.transition;ue.transition._updatedFibers=new Set;try{e()}finally{if(ue.transition=a,a===null&&o._updatedFibers){var c=o._updatedFibers.size;c>10&&ie("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."),o._updatedFibers.clear()}}}var dt=!1,hr=null;function $t(e){if(hr===null)try{var r=("require"+Math.random()).slice(0,7),a=K&&K[r];hr=a.call(K,"timers").setImmediate}catch{hr=function(c){dt===!1&&(dt=!0,typeof MessageChannel>"u"&&l("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 d=new MessageChannel;d.port1.onmessage=c,d.port2.postMessage(void 0)}}return hr(e)}var Be=0,pt=!1;function vt(e){{var r=Be;Be++,M.current===null&&(M.current=[]);var a=M.isBatchingLegacy,o;try{if(M.isBatchingLegacy=!0,o=e(),!a&&M.didScheduleLegacyUpdate){var c=M.current;c!==null&&(M.didScheduleLegacyUpdate=!1,Vr(c))}}catch(I){throw mr(r),I}finally{M.isBatchingLegacy=a}if(o!==null&&typeof o=="object"&&typeof o.then=="function"){var d=o,f=!1,y={then:function(I,N){f=!0,d.then(function(B){mr(r),Be===0?Wr(B,I,N):I(B)},function(B){mr(r),N(B)})}};return!pt&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){f||(pt=!0,l("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 () => ...);"))}),y}else{var E=o;if(mr(r),Be===0){var P=M.current;P!==null&&(Vr(P),M.current=null);var j={then:function(I,N){M.current===null?(M.current=[],Wr(E,I,N)):I(E)}};return j}else{var A={then:function(I,N){I(E)}};return A}}}}function mr(e){e!==Be-1&&l("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Be=e}function Wr(e,r,a){{var o=M.current;if(o!==null)try{Vr(o),$t(function(){o.length===0?(M.current=null,r(e)):Wr(e,r,a)})}catch(c){a(c)}else r(e)}}var Nr=!1;function Vr(e){if(!Nr){Nr=!0;var r=0;try{for(;r<e.length;r++){var a=e[r];do a=a(!0);while(a!==null)}e.length=0}catch(o){throw e=e.slice(r+1),o}finally{Nr=!1}}}var Lt=ft,Mt=It,Wt=Dt,Nt={map:Fe,forEach:ir,count:Pr,toArray:kr,only:sr};v.Children=Nt,v.Component=b,v.Fragment=te,v.Profiler=Z,v.PureComponent=w,v.StrictMode=ne,v.Suspense=V,v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,v.act=vt,v.cloneElement=Mt,v.createContext=cr,v.createElement=Lt,v.createFactory=Wt,v.createRef=br,v.forwardRef=xr,v.isValidElement=Re,v.lazy=Ar,v.memo=u,v.startTransition=Ft,v.unstable_act=vt,v.useCallback=F,v.useContext=p,v.useDebugValue=ge,v.useDeferredValue=Xe,v.useEffect=m,v.useId=Dr,v.useImperativeHandle=we,v.useInsertionEffect=Y,v.useLayoutEffect=D,v.useMemo=Q,v.useReducer=S,v.useRef=_,v.useState=C,v.useSyncExternalStore=Ir,v.useTransition=q,v.version=pe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(ze,ze.exports)),ze.exports}process.env.NODE_ENV==="production"?_r.exports=gt():_r.exports=_t();var zr=_r.exports;/**
|
1
|
+
(function(E,R){typeof exports=="object"&&typeof module<"u"?module.exports=R(require("react")):typeof define=="function"&&define.amd?define(["react"],R):(E=typeof globalThis<"u"?globalThis:E||self,E.IframePlugin=R(E.require$$0))})(this,function(E){"use strict";var R={exports:{}},x={};/**
|
40
2
|
* @license React
|
41
3
|
* react-jsx-runtime.production.min.js
|
42
4
|
*
|
@@ -44,7 +6,7 @@ Check the top-level render call using <`+a+">.")}return r}function it(e,r){if(!(
|
|
44
6
|
*
|
45
7
|
* This source code is licensed under the MIT license found in the
|
46
8
|
* LICENSE file in the root directory of this source tree.
|
47
|
-
*/var
|
9
|
+
*/var ee;function we(){if(ee)return x;ee=1;var D=E,_=Symbol.for("react.element"),F=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,$=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function A(m,c,P){var p,h={},T=null,V=null;P!==void 0&&(T=""+P),c.key!==void 0&&(T=""+c.key),c.ref!==void 0&&(V=c.ref);for(p in c)b.call(c,p)&&!L.hasOwnProperty(p)&&(h[p]=c[p]);if(m&&m.defaultProps)for(p in c=m.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:_,type:m,key:T,ref:V,props:h,_owner:$.current}}return x.Fragment=F,x.jsx=A,x.jsxs=A,x}var k={};/**
|
48
10
|
* @license React
|
49
11
|
* react-jsx-runtime.development.js
|
50
12
|
*
|
@@ -52,17 +14,17 @@ Check the top-level render call using <`+a+">.")}return r}function it(e,r){if(!(
|
|
52
14
|
*
|
53
15
|
* This source code is licensed under the MIT license found in the
|
54
16
|
* LICENSE file in the root directory of this source tree.
|
55
|
-
*/var
|
56
|
-
`+
|
57
|
-
`),
|
58
|
-
`),
|
59
|
-
`+
|
17
|
+
*/var re;function Ce(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var D=E,_=Symbol.for("react.element"),F=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),m=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),te=Symbol.iterator,xe="@@iterator";function ke(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[xe];return typeof r=="function"?r:null}var w=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function l(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];De("error",e,t)}}function De(e,r,t){{var n=w.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Fe=!1,Ae=!1,Ie=!1,We=!1,Ye=!1,ne;ne=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===L||Ye||e===$||e===P||e===p||We||e===V||Fe||Ae||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===h||e.$$typeof===A||e.$$typeof===m||e.$$typeof===c||e.$$typeof===ne||e.getModuleId!==void 0))}function Le(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ae(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&l("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 b:return"Fragment";case F:return"Portal";case L:return"Profiler";case $:return"StrictMode";case P:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return ae(r)+".Consumer";case A:var t=e;return ae(t._context)+".Provider";case c:return Le(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case T:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var O=Object.assign,I=0,ie,oe,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ve(){{if(I===0){ie=console.log,oe=console.info,ue=console.warn,se=console.error,fe=console.group,le=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}}function Me(){{if(I--,I===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:ie}),info:O({},e,{value:oe}),warn:O({},e,{value:ue}),error:O({},e,{value:se}),group:O({},e,{value:fe}),groupCollapsed:O({},e,{value:le}),groupEnd:O({},e,{value:ce})})}I<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=w.ReactCurrentDispatcher,q;function M(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
|
18
|
+
`+q+e}}var K=!1,U;{var Ue=typeof WeakMap=="function"?WeakMap:Map;U=new Ue}function ve(e,r){if(!e||K)return"";{var t=U.get(e);if(t!==void 0)return t}var n;K=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Ve();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
|
19
|
+
`),d=n.stack.split(`
|
20
|
+
`),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var g=`
|
21
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,g),g}while(s>=1&&f>=0);break}}}finally{K=!1,J.current=u,Me(),Error.prepareStackTrace=o}var j=e?e.displayName||e.name:"",S=j?M(j):"";return typeof e=="function"&&U.set(e,S),S}function Ne(e,r,t){return ve(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Be(e));if(typeof e=="string")return M(e);switch(e){case P:return M("Suspense");case p:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Ne(e.render);case h:return N(e.type,r,t);case T:{var n=e,o=n._payload,u=n._init;try{return N(u(o),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,pe={},ge=w.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Je(e,r,t,n,o){{var u=Function.call.bind(W);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(B(o),l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),B(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,B(o),l("Failed %s type: %s",t,a.message),B(null))}}}var qe=Array.isArray;function G(e){return qe(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return ye(e),!1}catch{return!0}}function ye(e){return""+e}function he(e){if(Ge(e))return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),ye(e)}var Y=w.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},be,Ee,z;z={};function Xe(e){if(W.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=y(Y.current.type);z[t]||(l('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',y(Y.current.type),e.ref),z[t]=!0)}}function Qe(e,r){{var t=function(){be||(be=!0,l("%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 er(e,r){{var t=function(){Ee||(Ee=!0,l("%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 rr=function(e,r,t,n,o,u,i){var a={$$typeof:_,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function tr(e,r,t,n,o){{var u,i={},a=null,d=null;t!==void 0&&(he(t),a=""+t),He(r)&&(he(r.key),a=""+r.key),Xe(r)&&(d=r.ref,Ze(r,o));for(u in r)W.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,f),d&&er(i,f)}return rr(e,a,d,o,n,Y.current,i)}}var X=w.ReactCurrentOwner,Re=w.ReactDebugCurrentFrame;function C(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var H;H=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}function _e(){{if(X.current){var e=y(X.current.type);if(e)return`
|
60
22
|
|
61
|
-
Check the render method of \``+
|
23
|
+
Check the render method of \``+e+"`."}return""}}function nr(e){return""}var me={};function ar(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
62
24
|
|
63
|
-
Check the top-level render call using <`+
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),C(e),l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),C(null)}}function Oe(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Te(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var o=ke(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)Z(i.value)&&Te(i.value,r)}}}function ir(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===c||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=y(r);Je(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=y(r);l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function or(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){C(e),l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),C(null);break}}e.ref!==null&&(C(e),l("Invalid attribute `ref` supplied to `React.Fragment`."),C(null))}}var Se={};function Pe(e,r,t,n,o,u){{var i=$e(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=nr();d?a+=d:a+=_e();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===_?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=tr(e,r,t,o,u);if(f==null)return f;if(i){var g=r.children;if(g!==void 0)if(n)if(G(g)){for(var j=0;j<g.length;j++)Oe(g[j],e);Object.freeze&&Object.freeze(g)}else l("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 Oe(g,e)}if(W.call(r,"key")){var S=y(e),v=Object.keys(r).filter(function(dr){return dr!=="key"}),Q=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Se[S+Q]){var cr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";l(`A props object containing a "key" prop is being spread into JSX:
|
64
26
|
let props = %s;
|
65
27
|
<%s {...props} />
|
66
28
|
React keys must be passed directly to JSX without using spread:
|
67
29
|
let props = %s;
|
68
|
-
<%s key={someKey} {...props} />`,
|
30
|
+
<%s key={someKey} {...props} />`,Q,S,cr,S),Se[S+Q]=!0}}return e===b?or(f):ir(f),f}}function ur(e,r,t){return Pe(e,r,t,!0)}function sr(e,r,t){return Pe(e,r,t,!1)}var fr=sr,lr=ur;k.Fragment=b,k.jsx=fr,k.jsxs=lr}()),k}process.env.NODE_ENV==="production"?R.exports=we():R.exports=Ce();var je=R.exports;return({src:D,title:_,style:F,...b})=>je.jsx("iframe",{src:D,title:_,style:F,frameBorder:"0",allowFullScreen:!0,...b})});
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-iframe-plugin",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.3",
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
7
7
|
"dev": "vite",
|
@@ -11,7 +11,8 @@
|
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
13
|
"react": "^18.3.1",
|
14
|
-
"react-dom": "^18.3.1"
|
14
|
+
"react-dom": "^18.3.1",
|
15
|
+
"react-iframe-plugin": "^0.0.2"
|
15
16
|
},
|
16
17
|
"devDependencies": {
|
17
18
|
"@eslint/js": "^9.13.0",
|
@@ -29,7 +30,8 @@
|
|
29
30
|
"dist"
|
30
31
|
],
|
31
32
|
"peerDependencies": {
|
32
|
-
"react": "^17.0.0 || ^18.0.0"
|
33
|
+
"react": "^17.0.0 || ^18.0.0",
|
34
|
+
"react-dom": "^17.0.0 || ^18.0.0"
|
33
35
|
},
|
34
36
|
"main": "dist/iframe-plugin.cjs.js",
|
35
37
|
"module": "dist/iframe-plugin.es.js",
|