react.profiling.min.js 15.7 KB
Newer Older
박상호's avatar
from jw    
박상호 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/** @license React v16.14.0
 * react.profiling.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
'use strict';(function(f,x){"object"===typeof exports&&"undefined"!==typeof module?x(exports):"function"===typeof define&&define.amd?define(["exports"],x):(f=f||self,x(f.React={}))})(this,function(f){function x(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
function E(a,b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function ra(){}function V(a,b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function sa(a,b,c){var d,e={},h=null,n=null;if(null!=b)for(d in void 0!==b.ref&&(n=b.ref),void 0!==b.key&&(h=""+b.key),b)ta.call(b,d)&&!ua.hasOwnProperty(d)&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var f=Array(g),k=0;k<g;k++)f[k]=arguments[k+2];e.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,
g)void 0===e[d]&&(e[d]=g[d]);return{$$typeof:F,type:a,key:h,ref:n,props:e,_owner:W.current}}function Na(a,b){return{$$typeof:F,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function X(a){return"object"===typeof a&&null!==a&&a.$$typeof===F}function Oa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function wa(a,b,c,d){if(L.length){var e=L.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,
count:0}}function xa(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>L.length&&L.push(a)}function Y(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var h=!1;if(null===a)h=!0;else switch(e){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case F:case Pa:h=!0}}if(h)return c(d,a,""===b?"."+Z(a,0):b),1;h=0;b=""===b?".":b+":";if(Array.isArray(a))for(var n=0;n<a.length;n++){e=a[n];var g=b+Z(e,n);h+=Y(e,g,c,d)}else if(null===a||"object"!==
typeof a?g=null:(g=ya&&a[ya]||a["@@iterator"],g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),n=0;!(e=a.next()).done;)e=e.value,g=b+Z(e,n++),h+=Y(e,g,c,d);else if("object"===e)throw c=""+a,Error(x(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return h}function aa(a,b,c){return null==a?0:Y(a,"",b,c)}function Z(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Oa(a.key):b.toString(36)}function Qa(a,b,c){a.func.call(a.context,b,a.count++)}
function Ra(a,b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?ba(a,d,c,function(a){return a}):null!=a&&(X(a)&&(a=Na(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(za,"$&/")+"/")+c)),d.push(a))}function ba(a,b,c,d,e){var h="";null!=c&&(h=(""+c).replace(za,"$&/")+"/");b=wa(b,h,d,e);aa(a,Ra,b);xa(b)}function y(){var a=Aa.current;if(null===a)throw Error(x(321));return a}function ca(a,b){var c=a.length;a.push(b);a:for(;;){var d=c-1>>>1,e=a[d];if(void 0!==e&&
0<M(e,b))a[d]=b,a[c]=e,c=d;else break a}}function u(a){a=a[0];return void 0===a?null:a}function N(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var h=2*(d+1)-1,n=a[h],g=h+1,f=a[g];if(void 0!==n&&0>M(n,c))void 0!==f&&0>M(f,n)?(a[d]=f,a[g]=c,d=g):(a[d]=n,a[h]=c,d=h);else if(void 0!==f&&0>M(f,c))a[d]=f,a[g]=c,d=g;else break a}}return b}return null}function M(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function z(a){if(null!==q){var b=G;G+=
a.length;if(G+1>C){C*=2;if(524288<C){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`.");Ba();return}var c=new Int32Array(4*C);c.set(q);H=c.buffer;q=c}q.set(a,b)}}function Ba(){var a=H;C=0;q=H=null;G=0;return a}function Ca(a,b){l[3]++;null!==q&&z([1,1E3*b,a.id,a.priorityLevel])}function O(a){for(var b=u(A);null!==b;){if(null===b.callback)N(A);else if(b.startTime<=a)N(A),b.sortIndex=b.expirationTime,ca(v,b),Ca(b,a),b.isQueued=
!0;else break;b=u(A)}}function da(a){I=!1;O(a);if(!D)if(null!==u(v))D=!0,J(ea);else{var b=u(A);null!==b&&P(da,b.startTime-a)}}function ea(a,b){null!==q&&z([8,1E3*b,fa]);D=!1;I&&(I=!1,ha());Q=!0;var c=m;try{try{O(b);for(k=u(v);null!==k&&(!(k.expirationTime>b)||a&&!ia());){var d=k.callback;if(null!==d){k.callback=null;m=k.priorityLevel;var e=k.expirationTime<=b,h=k,f=b;R++;l[0]=h.priorityLevel;l[1]=h.id;l[2]=R;null!==q&&z([5,1E3*f,h.id,R]);var g=d(e);b=r();"function"===typeof g?(k.callback=g,h=k,f=
b,l[0]=0,l[1]=0,l[2]=0,null!==q&&z([6,1E3*f,h.id,R])):(h=k,f=b,l[0]=0,l[1]=0,l[3]--,null!==q&&z([2,1E3*f,h.id]),k.isQueued=!1,k===u(v)&&N(v));O(b)}else N(v);k=u(v)}if(null!==k)var va=!0;else{var p=u(A);null!==p&&P(da,p.startTime-b);va=!1}return va}catch(Sa){if(null!==k){var t=r();a=k;l[0]=0;l[1]=0;l[3]--;null!==q&&z([3,1E3*t,a.id]);k.isQueued=!1}throw Sa;}}finally{k=null,m=c,Q=!1,c=r(),fa++,null!==q&&z([7,1E3*c,fa])}}function Da(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;
case 4:return 1E4;default:return 5E3}}function Ta(a){var b=!1,c=null;t.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Ua(a){var b=!1,c=null;t.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Va(a,b){var c=!1,d=null;t.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(h){c||(c=!0,d=h)}});if(c)throw d;}function Wa(a,b){var c=!1,d=null;t.forEach(function(e){try{e.onWorkStarted(a,b)}catch(h){c||
(c=!0,d=h)}});if(c)throw d;}function Xa(a,b){var c=!1,d=null;t.forEach(function(e){try{e.onWorkStopped(a,b)}catch(h){c||(c=!0,d=h)}});if(c)throw d;}function Ya(a,b){var c=!1,d=null;t.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(h){c||(c=!0,d=h)}});if(c)throw d;}var w="function"===typeof Symbol&&Symbol.for,F=w?Symbol.for("react.element"):60103,Pa=w?Symbol.for("react.portal"):60106,Za=w?Symbol.for("react.fragment"):60107,$a=w?Symbol.for("react.strict_mode"):60108,ab=w?Symbol.for("react.profiler"):
60114,bb=w?Symbol.for("react.provider"):60109,cb=w?Symbol.for("react.context"):60110,db=w?Symbol.for("react.forward_ref"):60112,eb=w?Symbol.for("react.suspense"):60113,fb=w?Symbol.for("react.memo"):60115,gb=w?Symbol.for("react.lazy"):60116,ya="function"===typeof Symbol&&Symbol.iterator,Ea=Object.getOwnPropertySymbols,hb=Object.prototype.hasOwnProperty,ib=Object.prototype.propertyIsEnumerable,S=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;
var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var h=
Object(arguments[e]);for(var f in h)hb.call(h,f)&&(c[f]=h[f]);if(Ea){d=Ea(h);for(var g=0;g<d.length;g++)ib.call(h,d[g])&&(c[d[g]]=h[d[g]])}}return c},qa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},pa={};E.prototype.isReactComponent={};E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(x(85));this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=
function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ra.prototype=E.prototype;var ja=V.prototype=new ra;ja.constructor=V;S(ja,E.prototype);ja.isPureReactComponent=!0;var W={current:null},ta=Object.prototype.hasOwnProperty,ua={key:!0,ref:!0,__self:!0,__source:!0},za=/\/+/g,L=[],Aa={current:null},ka;if("undefined"===typeof window||"function"!==typeof MessageChannel){var K=null,Fa=null,Ga=function(){if(null!==K)try{var a=r();K(!0,a);K=null}catch(b){throw setTimeout(Ga,0),b;}},jb=Date.now();
var r=function(){return Date.now()-jb};var J=function(a){null!==K?setTimeout(J,0,a):(K=a,setTimeout(Ga,0))};var P=function(a,b){Fa=setTimeout(a,b)};var ha=function(){clearTimeout(Fa)};var ia=function(){return!1};var Ha=ka=function(){}}else{var la=window.performance,Ia=window.Date,kb=window.setTimeout,lb=window.clearTimeout;if("undefined"!==typeof console){var mb=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills");
"function"!==typeof mb&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof la&&"function"===typeof la.now)r=function(){return la.now()};else{var nb=Ia.now();r=function(){return Ia.now()-nb}}var T=!1,U=null,ma=-1,Ja=5,Ka=0;ia=function(){return r()>=Ka};Ha=function(){};ka=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):
Ja=0<a?Math.floor(1E3/a):5};var La=new MessageChannel,na=La.port2;La.port1.onmessage=function(){if(null!==U){var a=r();Ka=a+Ja;try{U(!0,a)?na.postMessage(null):(T=!1,U=null)}catch(b){throw na.postMessage(null),b;}}else T=!1};J=function(a){U=a;T||(T=!0,na.postMessage(null))};P=function(a,b){ma=kb(function(){a(r())},b)};ha=function(){lb(ma);ma=-1}}var R=0,fa=0,oa="function"===typeof SharedArrayBuffer?new SharedArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):"function"===typeof ArrayBuffer?new ArrayBuffer(4*
Int32Array.BYTES_PER_ELEMENT):null,l=null!==oa?new Int32Array(oa):[];l[0]=0;l[3]=0;var C=l[1]=0,H=null,q=null,G=0,v=[],A=[],ob=1,k=null,m=3,Q=!1,D=!1,I=!1,pb={__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m;m=a;try{return b()}finally{m=c}},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b=
3;break;default:b=m}var c=m;m=b;try{return a()}finally{m=c}},unstable_scheduleCallback:function(a,b,c){var d=r();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0<e?d+e:d;c="number"===typeof c.timeout?c.timeout:Da(a)}else c=Da(a),e=d;c=e+c;a={id:ob++,callback:b,priorityLevel:a,startTime:e,expirationTime:c,sortIndex:-1,isQueued:!1};e>d?(a.sortIndex=e,ca(A,a),null===u(v)&&a===u(A)&&(I?ha():I=!0,P(da,e-d))):(a.sortIndex=c,ca(v,a),Ca(a,d),a.isQueued=!0,D||Q||(D=!0,J(ea)));return a},
unstable_cancelCallback:function(a){if(a.isQueued){var b=r();l[3]--;null!==q&&z([4,1E3*b,a.id]);a.isQueued=!1}a.callback=null},unstable_wrapCallback:function(a){var b=m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}},unstable_getCurrentPriorityLevel:function(){return m},unstable_shouldYield:function(){var a=r();O(a);var b=u(v);return b!==k&&null!==k&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<k.expirationTime||ia()},unstable_requestPaint:Ha,unstable_continueExecution:function(){D||
Q||(D=!0,J(ea))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return u(v)},get unstable_now(){return r},get unstable_forceFrameRate(){return ka},unstable_Profiling:{startLoggingProfilingEvents:function(){C=131072;H=new ArrayBuffer(4*C);q=new Int32Array(H);G=0},stopLoggingProfilingEvents:Ba,sharedProfilingBuffer:oa}},qb=0,rb=0,p=null,B=null;p={current:new Set};B={current:null};var t=null;t=new Set;var Ma={ReactCurrentDispatcher:Aa,ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},
assign:S};S(Ma,{Scheduler:pb,SchedulerTracing:{__proto__:null,get __interactionsRef(){return p},get __subscriberRef(){return B},unstable_clear:function(a){var b=p.current;p.current=new Set;try{return a()}finally{p.current=b}},unstable_getCurrent:function(){return p.current},unstable_getThreadID:function(){return++rb},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:qb++,name:a,timestamp:b},f=p.current,n=new Set(f);n.add(e);p.current=n;var g=
B.current;try{if(null!==g)g.onInteractionTraced(e)}finally{try{if(null!==g)g.onWorkStarted(n,d)}finally{try{var k=c()}finally{p.current=f;try{if(null!==g)g.onWorkStopped(n,d)}finally{if(e.__count--,null!==g&&0===e.__count)g.onInteractionScheduledWorkCompleted(e)}}}}return k},unstable_wrap:function(a){function b(){var b=p.current;p.current=d;e=B.current;try{try{if(null!==e)e.onWorkStarted(d,c)}finally{try{var g=a.apply(void 0,arguments)}finally{if(p.current=b,null!==e)e.onWorkStopped(d,c)}}return g}finally{f||
(f=!0,d.forEach(function(a){a.__count--;if(null!==e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,d=p.current,e=B.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){e=B.current;try{if(null!==e)e.onWorkCanceled(d,c)}finally{d.forEach(function(a){a.__count--;if(e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)})}};return b},unstable_subscribe:function(a){t.add(a);
1===t.size&&(B.current={onInteractionScheduledWorkCompleted:Ua,onInteractionTraced:Ta,onWorkCanceled:Ya,onWorkScheduled:Va,onWorkStarted:Wa,onWorkStopped:Xa})},unstable_unsubscribe:function(a){t.delete(a);0===t.size&&(B.current=null)}}});f.Children={map:function(a,b,c){if(null==a)return a;var d=[];ba(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=wa(null,null,b,c);aa(a,Qa,b);xa(b)},count:function(a){return aa(a,function(){return null},null)},toArray:function(a){var b=[];ba(a,
b,null,function(a){return a});return b},only:function(a){if(!X(a))throw Error(x(143));return a}};f.Component=E;f.Fragment=Za;f.Profiler=ab;f.PureComponent=V;f.StrictMode=$a;f.Suspense=eb;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ma;f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(x(267,a));var d=S({},a.props),e=a.key,f=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,k=W.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;
for(l in b)ta.call(b,l)&&!ua.hasOwnProperty(l)&&(d[l]=void 0===b[l]&&void 0!==g?g[l]:b[l])}var l=arguments.length-2;if(1===l)d.children=c;else if(1<l){g=Array(l);for(var m=0;m<l;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:F,type:a.type,key:e,ref:f,props:d,_owner:k}};f.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:cb,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:bb,_context:a};return a.Consumer=a};f.createElement=
sa;f.createFactory=function(a){var b=sa.bind(null,a);b.type=a;return b};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:db,render:a}};f.isValidElement=X;f.lazy=function(a){return{$$typeof:gb,_ctor:a,_status:-1,_result:null}};f.memo=function(a,b){return{$$typeof:fb,type:a,compare:void 0===b?null:b}};f.useCallback=function(a,b){return y().useCallback(a,b)};f.useContext=function(a,b){return y().useContext(a,b)};f.useDebugValue=function(a,b){};f.useEffect=function(a,
b){return y().useEffect(a,b)};f.useImperativeHandle=function(a,b,c){return y().useImperativeHandle(a,b,c)};f.useLayoutEffect=function(a,b){return y().useLayoutEffect(a,b)};f.useMemo=function(a,b){return y().useMemo(a,b)};f.useReducer=function(a,b,c){return y().useReducer(a,b,c)};f.useRef=function(a){return y().useRef(a)};f.useState=function(a){return y().useState(a)};f.version="16.14.0"});