%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/js/main/imageeditor/external/react/development/ |
Current File : /home/bitrix/www/bitrix/js/main/imageeditor/external/react/development/react.development.min.js |
"use strict";(function(e,r){typeof exports==="object"&&typeof module!=="undefined"?module.exports=r():typeof define==="function"&&define.amd?define(r):e.React=r()})(this,function(){"use strict";var e=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;var t=Object.prototype.propertyIsEnumerable;function n(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function a(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var r={};for(var t=0;t<10;t++){r["_"+String.fromCharCode(t)]=t}var n=Object.getOwnPropertyNames(r).map(function(e){return r[e]});if(n.join("")!=="0123456789"){return false}var a={};"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e});if(Object.keys(Object.assign({},a)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}var o=a()?Object.assign:function(a,o){var i;var u=n(a);var f;for(var s=1;s<arguments.length;s++){i=Object(arguments[s]);for(var l in i){if(r.call(i,l)){u[l]=i[l]}}if(e){f=e(i);for(var c=0;c<f.length;c++){if(t.call(i,f[c])){u[f[c]]=i[f[c]]}}}}return u};var i="16.2.0";var u=typeof Symbol==="function"&&Symbol["for"];var f=u?Symbol["for"]("react.element"):60103;var s=u?Symbol["for"]("react.call"):60104;var l=u?Symbol["for"]("react.return"):60105;var c=u?Symbol["for"]("react.portal"):60106;var p=u?Symbol["for"]("react.fragment"):60107;var d=typeof Symbol==="function"&&Symbol.iterator;var y="@@iterator";function v(e){if(e===null||typeof e==="undefined"){return null}var r=d&&e[d]||e[y];if(typeof r==="function"){return r}return null}var h={};{Object.freeze(h)}var m=h;var g=function e(r){};{g=function e(r){if(r===undefined){throw new Error("invariant requires an error message argument")}}}function b(e,r,t,n,a,o,i,u){g(r);if(!e){var f;if(r===undefined){f=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var s=[t,n,a,o,i,u];var l=0;f=new Error(r.replace(/%s/g,function(){return s[l++]}));f.name="Invariant Violation"}f.framesToPop=1;throw f}}var _=b;var w=function(){};{var O=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++){t[n-1]=arguments[n]}var a=0;var o="Warning: "+e.replace(/%s/g,function(){return t[a++]});if(typeof console!=="undefined"){console.warn(o)}try{throw new Error(o)}catch(e){}};w=function(e,r){if(r===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(!e){for(var t=arguments.length,n=Array(t>2?t-2:0),a=2;a<t;a++){n[a-2]=arguments[a]}O.apply(undefined,[r].concat(n))}}}var k=w;function j(e){return function(){return e}}var R=function e(){};R.thatReturns=j;R.thatReturnsFalse=j(false);R.thatReturnsTrue=j(true);R.thatReturnsNull=j(null);R.thatReturnsThis=function(){return this};R.thatReturnsArgument=function(e){return e};var S=R;var P=S;{var E=function e(r){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++){n[a-1]=arguments[a]}var o=0;var i="Warning: "+r.replace(/%s/g,function(){return n[o++]});if(typeof console!=="undefined"){console.error(i)}try{throw new Error(i)}catch(e){}};P=function e(r,t){if(t===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(t.indexOf("Failed Composite propType: ")===0){return}if(!r){for(var n=arguments.length,a=Array(n>2?n-2:0),o=2;o<n;o++){a[o-2]=arguments[o]}E.apply(undefined,[t].concat(a))}}}var C=P;var A={};function x(e,r){{var t=e.constructor;var n=t&&(t.displayName||t.name)||"ReactClass";var a=n+"."+r;if(A[a]){return}C(false,"%s(...): Can only update a mounted or mounting component. "+"This usually means you called %s() on an unmounted component. "+"This is a no-op.\n\nPlease check the code for the %s component.",r,r,n);A[a]=true}}var T={isMounted:function(e){return false},enqueueForceUpdate:function(e,r,t){x(e,"forceUpdate")},enqueueReplaceState:function(e,r,t,n){x(e,"replaceState")},enqueueSetState:function(e,r,t,n){x(e,"setState")}};function N(e,r,t){this.props=e;this.context=r;this.refs=m;this.updater=t||T}N.prototype.isReactComponent={};N.prototype.setState=function(e,r){!(typeof e==="object"||typeof e==="function"||e==null)?_(false,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):void 0;this.updater.enqueueSetState(this,e,r,"setState")};N.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var I={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)."]};var F=function(e,r){Object.defineProperty(N.prototype,e,{get:function(){k(false,"%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1]);return undefined}})};for(var U in I){if(I.hasOwnProperty(U)){F(U,I[U])}}}function q(e,r,t){this.props=e;this.context=r;this.refs=m;this.updater=t||T}function D(){}D.prototype=N.prototype;var $=q.prototype=new D;$.constructor=q;o($,N.prototype);$.isPureReactComponent=true;function W(e,r,t){this.props=e;this.context=r;this.refs=m;this.updater=t||T}var L=W.prototype=new D;L.constructor=W;o(L,N.prototype);L.unstable_isAsyncReactComponent=true;L.render=function(){return this.props.children};var z={current:null};var M=Object.prototype.hasOwnProperty;var Y={key:true,ref:true,__self:true,__source:true};var B;var H;function V(e){{if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning){return false}}}return e.ref!==undefined}function J(e){{if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning){return false}}}return e.key!==undefined}function G(e,r){var t=function(){if(!B){B=true;C(false,"%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://fb.me/react-special-props)",r)}};t.isReactWarning=true;Object.defineProperty(e,"key",{get:t,configurable:true})}function K(e,r){var t=function(){if(!H){H=true;C(false,"%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://fb.me/react-special-props)",r)}};t.isReactWarning=true;Object.defineProperty(e,"ref",{get:t,configurable:true})}var Q=function(e,r,t,n,a,o,i){var u={$$typeof:f,type:e,key:r,ref:t,props:i,_owner:o};{u._store={};Object.defineProperty(u._store,"validated",{configurable:false,enumerable:false,writable:true,value:false});Object.defineProperty(u,"_self",{configurable:false,enumerable:false,writable:false,value:n});Object.defineProperty(u,"_source",{configurable:false,enumerable:false,writable:false,value:a});if(Object.freeze){Object.freeze(u.props);Object.freeze(u)}}return u};function X(e,r,t){var n;var a={};var o=null;var i=null;var u=null;var s=null;if(r!=null){if(V(r)){i=r.ref}if(J(r)){o=""+r.key}u=r.__self===undefined?null:r.__self;s=r.__source===undefined?null:r.__source;for(n in r){if(M.call(r,n)&&!Y.hasOwnProperty(n)){a[n]=r[n]}}}var l=arguments.length-2;if(l===1){a.children=t}else if(l>1){var c=Array(l);for(var p=0;p<l;p++){c[p]=arguments[p+2]}{if(Object.freeze){Object.freeze(c)}}a.children=c}if(e&&e.defaultProps){var d=e.defaultProps;for(n in d){if(a[n]===undefined){a[n]=d[n]}}}{if(o||i){if(typeof a.$$typeof==="undefined"||a.$$typeof!==f){var y=typeof e==="function"?e.displayName||e.name||"Unknown":e;if(o){G(a,y)}if(i){K(a,y)}}}}return Q(e,o,i,u,s,z.current,a)}function Z(e,r){var t=Q(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return t}function ee(e,r,t){var n;var a=o({},e.props);var i=e.key;var u=e.ref;var f=e._self;var s=e._source;var l=e._owner;if(r!=null){if(V(r)){u=r.ref;l=z.current}if(J(r)){i=""+r.key}var c;if(e.type&&e.type.defaultProps){c=e.type.defaultProps}for(n in r){if(M.call(r,n)&&!Y.hasOwnProperty(n)){if(r[n]===undefined&&c!==undefined){a[n]=c[n]}else{a[n]=r[n]}}}}var p=arguments.length-2;if(p===1){a.children=t}else if(p>1){var d=Array(p);for(var y=0;y<p;y++){d[y]=arguments[y+2]}a.children=d}return Q(e.type,i,u,f,s,l,a)}function re(e){return typeof e==="object"&&e!==null&&e.$$typeof===f}var te={};{te.getCurrentStack=null;te.getStackAddendum=function(){var e=te.getCurrentStack;if(e){return e()}return null}}var ne=".";var ae=":";function oe(e){var r=/[=:]/g;var t={"=":"=0",":":"=2"};var n=(""+e).replace(r,function(e){return t[e]});return"$"+n}var ie=false;var ue=/\/+/g;function fe(e){return(""+e).replace(ue,"$&/")}var se=10;var le=[];function ce(e,r,t,n){if(le.length){var a=le.pop();a.result=e;a.keyPrefix=r;a.func=t;a.context=n;a.count=0;return a}else{return{result:e,keyPrefix:r,func:t,context:n,count:0}}}function pe(e){e.result=null;e.keyPrefix=null;e.func=null;e.context=null;e.count=0;if(le.length<se){le.push(e)}}function de(e,r,t,n){var a=typeof e;if(a==="undefined"||a==="boolean"){e=null}var o=false;if(e===null){o=true}else{switch(a){case"string":case"number":o=true;break;case"object":switch(e.$$typeof){case f:case s:case l:case c:o=true}}}if(o){t(n,e,r===""?ne+ve(e,0):r);return 1}var i;var u;var p=0;var d=r===""?ne:r+ae;if(Array.isArray(e)){for(var y=0;y<e.length;y++){i=e[y];u=d+ve(i,y);p+=de(i,u,t,n)}}else{var h=v(e);if(typeof h==="function"){{if(h===e.entries){C(ie,"Using Maps as children is unsupported and will likely yield "+"unexpected results. Convert it to a sequence/iterable of keyed "+"ReactElements instead.%s",te.getStackAddendum());ie=true}}var m=h.call(e);var g;var b=0;while(!(g=m.next()).done){i=g.value;u=d+ve(i,b++);p+=de(i,u,t,n)}}else if(a==="object"){var w="";{w=" If you meant to render a collection of children, use an array "+"instead."+te.getStackAddendum()}var O=""+e;_(false,"Objects are not valid as a React child (found: %s).%s",O==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":O,w)}}return p}function ye(e,r,t){if(e==null){return 0}return de(e,"",r,t)}function ve(e,r){if(typeof e==="object"&&e!==null&&e.key!=null){return oe(e.key)}return r.toString(36)}function he(e,r,t){var n=e.func,a=e.context;n.call(a,r,e.count++)}function me(e,r,t){if(e==null){return e}var n=ce(null,null,r,t);ye(e,he,n);pe(n)}function ge(e,r,t){var n=e.result,a=e.keyPrefix,o=e.func,i=e.context;var u=o.call(i,r,e.count++);if(Array.isArray(u)){be(u,n,t,S.thatReturnsArgument)}else if(u!=null){if(re(u)){u=Z(u,a+(u.key&&(!r||r.key!==u.key)?fe(u.key)+"/":"")+t)}n.push(u)}}function be(e,r,t,n,a){var o="";if(t!=null){o=fe(t)+"/"}var i=ce(r,o,n,a);ye(e,ge,i);pe(i)}function _e(e,r,t){if(e==null){return e}var n=[];be(e,n,null,r,t);return n}function we(e,r){return ye(e,S.thatReturnsNull,null)}function Oe(e){var r=[];be(e,r,null,S.thatReturnsArgument);return r}function ke(e){!re(e)?_(false,"React.Children.only expected to receive a single React element child."):void 0;return e}var je=function(e,r,t){return"\n in "+(e||"Unknown")+(r?" (at "+r.fileName.replace(/^.*[\\\/]/,"")+":"+r.lineNumber+")":t?" (created by "+t+")":"")};function Re(e){var r=e.type;if(typeof r==="string"){return r}if(typeof r==="function"){return r.displayName||r.name}return null}var Se="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";var Pe=Se;{var Ee=_;var Ce=C;var Ae=Pe;var xe={}}function Te(e,r,t,n,a){{for(var o in e){if(e.hasOwnProperty(o)){var i;try{Ee(typeof e[o]==="function","%s: %s type `%s` is invalid; it must be a function, usually from "+"the `prop-types` package, but received `%s`.",n||"React class",t,o,typeof e[o]);i=e[o](r,o,n,t,null,Ae)}catch(e){i=e}Ce(!i||i instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker "+"function must return `null` or an `Error` but returned a %s. "+"You may have forgotten to pass an argument to the type checker "+"creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and "+"shape all require an argument).",n||"React class",t,o,typeof i);if(i instanceof Error&&!(i.message in xe)){xe[i.message]=true;var u=a?a():"";Ce(false,"Failed %s type: %s%s",t,i.message,u!=null?u:"")}}}}}var Ne=Te;{var Ie=null;var Fe=false;var Ue=function(e){if(e==null){return"#empty"}else if(typeof e==="string"||typeof e==="number"){return"#text"}else if(typeof e.type==="string"){return e.type}else if(e.type===p){return"React.Fragment"}else{return e.type.displayName||e.type.name||"Unknown"}};var qe=function(){var e="";if(Ie){var r=Ue(Ie);var t=Ie._owner;e+=je(r,Ie._source,t&&Re(t))}e+=te.getStackAddendum()||"";return e};var De=new Map([["children",true],["key",true]])}function $e(){if(z.current){var e=Re(z.current);if(e){return"\n\nCheck the render method of `"+e+"`."}}return""}function We(e){if(e!==null&&e!==undefined&&e.__source!==undefined){var r=e.__source;var t=r.fileName.replace(/^.*[\\\/]/,"");var n=r.lineNumber;return"\n\nCheck your code at "+t+":"+n+"."}return""}var Le={};function ze(e){var r=$e();if(!r){var t=typeof e==="string"?e:e.displayName||e.name;if(t){r="\n\nCheck the top-level render call using <"+t+">."}}return r}function Me(e,r){if(!e._store||e._store.validated||e.key!=null){return}e._store.validated=true;var t=ze(r);if(Le[t]){return}Le[t]=true;var n="";if(e&&e._owner&&e._owner!==z.current){n=" It was passed a child from "+Re(e._owner)+"."}Ie=e;{C(false,'Each child in an array or iterator should have a unique "key" prop.'+"%s%s See https://fb.me/react-warning-keys for more information.%s",t,n,qe())}Ie=null}function Ye(e,r){if(typeof e!=="object"){return}if(Array.isArray(e)){for(var t=0;t<e.length;t++){var n=e[t];if(re(n)){Me(n,r)}}}else if(re(e)){if(e._store){e._store.validated=true}}else if(e){var a=v(e);if(typeof a==="function"){if(a!==e.entries){var o=a.call(e);var i;while(!(i=o.next()).done){if(re(i.value)){Me(i.value,r)}}}}}}function Be(e){var r=e.type;if(typeof r!=="function"){return}var t=r.displayName||r.name;var n=r.propTypes;if(n){Ie=e;Ne(n,e.props,"prop",t,qe);Ie=null}else if(r.PropTypes!==undefined&&!Fe){Fe=true;C(false,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",t||"Unknown")}if(typeof r.getDefaultProps==="function"){C(r.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass "+"definitions. Use a static property named `defaultProps` instead.")}}function He(e){Ie=e;var r=true;var t=false;var n=undefined;try{for(var a=Object.keys(e.props)[Symbol.iterator](),o;!(r=(o=a.next()).done);r=true){var i=o.value;if(!De.has(i)){C(false,"Invalid prop `%s` supplied to `React.Fragment`. "+"React.Fragment can only have `key` and `children` props.%s",i,qe());break}}}catch(e){t=true;n=e}finally{try{if(!r&&a["return"]){a["return"]()}}finally{if(t){throw n}}}if(e.ref!==null){C(false,"Invalid attribute `ref` supplied to `React.Fragment`.%s",qe())}Ie=null}function Ve(e,r,t){var n=typeof e==="string"||typeof e==="function"||typeof e==="symbol"||typeof e==="number";if(!n){var a="";if(e===undefined||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 o=We(r);if(o){a+=o}else{a+=$e()}a+=qe()||"";C(false,"React.createElement: type is invalid -- expected a string (for "+"built-in components) or a class/function (for composite "+"components) but got: %s.%s",e==null?e:typeof e,a)}var i=X.apply(this,arguments);if(i==null){return i}if(n){for(var u=2;u<arguments.length;u++){Ye(arguments[u],e)}}if(typeof e==="symbol"&&e===p){He(i)}else{Be(i)}return i}function Je(e){var r=Ve.bind(null,e);r.type=e;{Object.defineProperty(r,"type",{enumerable:false,get:function(){k(false,"Factory.type is deprecated. Access the class directly "+"before passing it to createFactory.");Object.defineProperty(this,"type",{value:e});return e}})}return r}function Ge(e,r,t){var n=ee.apply(this,arguments);for(var a=2;a<arguments.length;a++){Ye(arguments[a],n.type)}Be(n);return n}var Ke={Children:{map:_e,forEach:me,count:we,toArray:Oe,only:ke},Component:N,PureComponent:q,unstable_AsyncComponent:W,Fragment:p,createElement:Ve,cloneElement:Ge,createFactory:Je,isValidElement:re,version:i,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:z,assign:o}};{o(Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:te,ReactComponentTreeHook:{}})}var Qe=Object.freeze({default:Ke});var Xe=Qe&&Ke||Qe;var Ze=Xe["default"]?Xe["default"]:Xe;return Ze});