김동진

heroku 서버 실행됨

Showing 100 changed files with 83 additions and 3067 deletions
...@@ -58,14 +58,13 @@ exports.countKcal = function(request, response){ ...@@ -58,14 +58,13 @@ exports.countKcal = function(request, response){
58 <h4><a href="/countKcal_body">맞춤 권장 칼로리 계산</a> 58 <h4><a href="/countKcal_body">맞춤 권장 칼로리 계산</a>
59 &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp; 59 &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
60 <a href="/countKcal_food">섭취 음식 칼로리 계산</a></h4> 60 <a href="/countKcal_food">섭취 음식 칼로리 계산</a></h4>
61 -
62 </div> 61 </div>
63 ` ); 62 ` );
64 response.writeHead(200); 63 response.writeHead(200);
65 response.end(html); 64 response.end(html);
66 } 65 }
67 exports.countKcal_body = function(request, response){ 66 exports.countKcal_body = function(request, response){
68 - var title = '칼로리 계산'; 67 + var title = '맞춤 권장 칼로리 계산';
69 var description = '개인의 신체 정보에 맞는 일일 권장 섭취량(kcal)를 알려드립니다!'; 68 var description = '개인의 신체 정보에 맞는 일일 권장 섭취량(kcal)를 알려드립니다!';
70 var html = template.html(title,` 69 var html = template.html(title,`
71 <div style= "font-size:20px;"> 70 <div style= "font-size:20px;">
...@@ -78,19 +77,19 @@ exports.countKcal_body = function(request, response){ ...@@ -78,19 +77,19 @@ exports.countKcal_body = function(request, response){
78 <option value="woman">여자</option></select 77 <option value="woman">여자</option></select
79 ><br /> 78 ><br />
80 나이(세) : <br /> 79 나이(세) : <br />
81 - <input type="text" name="age" /><br /> 80 + <input type="text" name="age"placeholder="현재 나이를 입력하세요." /><br />
82 키(cm) : <br /> 81 키(cm) : <br />
83 - <input type="text" name="height" /><br /> 82 + <input type="text" name="height" placeholder="현재 키(cm)를 입력하세요."/><br />
84 - 몸무게(kg) : <br /><input type="text" name="weight" /><br /> 83 + 몸무게(kg) : <br /><input type="text" name="weight" placeholder="현재 몸무게를 입력하세요." /><br />
85 - 목표체중(kg) : <br /><input type="text" name="targetWeight" /><br /> 84 + 목표체중(kg) : <br /><input type="text" name="targetWeight" placeholder="목표 체중(kg)을 입력하세요." /><br />
86 - 목표기간(일) : <br /><input type="text" name="targetDay" /><br /> 85 + 목표기간(일) : <br /><input type="text" name="targetDay" placeholder="목표 기간을 입력하세요."/><br />
87 활동량 :<br /> 86 활동량 :<br />
88 <select name="activity"> 87 <select name="activity">
89 <option value="low">앉아 있거나 가벼운 활동(운동을 거의 또는 전혀하지 않음)</option> 88 <option value="low">앉아 있거나 가벼운 활동(운동을 거의 또는 전혀하지 않음)</option>
90 <option value="mid">활동적 또는 보통 활동(건설노동자 또는 매일 1시간씩 달림)</option> 89 <option value="mid">활동적 또는 보통 활동(건설노동자 또는 매일 1시간씩 달림)</option>
91 <option value="high">많은 활동(농업노동자 또는 매일 2시간동안 수영을 함)</option> 90 <option value="high">많은 활동(농업노동자 또는 매일 2시간동안 수영을 함)</option>
92 </select 91 </select
93 - ><br /> 92 + ><br /><br>
94 <input type="submit" value="계산하기" style="font-size:20px;" /> 93 <input type="submit" value="계산하기" style="font-size:20px;" />
95 </div> 94 </div>
96 <br><br><br><br> 95 <br><br><br><br>
...@@ -209,7 +208,6 @@ exports.countKcal_body_process = function(request, response){ ...@@ -209,7 +208,6 @@ exports.countKcal_body_process = function(request, response){
209 totalKcal = (targetWeight-weight)*7700; //쩌야할 총 칼로리/벌크업 208 totalKcal = (targetWeight-weight)*7700; //쩌야할 총 칼로리/벌크업
210 foodKcal = Number((totalKcal/targetDay).toFixed(1)); 209 foodKcal = Number((totalKcal/targetDay).toFixed(1));
211 var bulkUpKcal = foodKcal+TDEE; 210 var bulkUpKcal = foodKcal+TDEE;
212 -
213 kcalMsg += `벌크업 칼로리 : ${(bulkUpKcal)}kcal`; 211 kcalMsg += `벌크업 칼로리 : ${(bulkUpKcal)}kcal`;
214 } 212 }
215 var html = template.html(title,` 213 var html = template.html(title,`
...@@ -221,39 +219,42 @@ exports.countKcal_body_process = function(request, response){ ...@@ -221,39 +219,42 @@ exports.countKcal_body_process = function(request, response){
221 if(msg==""){ 219 if(msg==""){
222 msg = '현재 체중 유지를 위한 열량 : ${TDEE}kcal' 220 msg = '현재 체중 유지를 위한 열량 : ${TDEE}kcal'
223 } 221 }
222 + else{
223 + msg+="</p><p>현재 체중 유지를 위한 열량 : ${TDEE}kcal"
224 + }
224 sessionStorage.setItem('KcalMsg', msg); 225 sessionStorage.setItem('KcalMsg', msg);
225 </script> 226 </script>
226 <form action="/countKcal_body_process" method="post" > 227 <form action="/countKcal_body_process" method="post" >
227 - 나이(세) : <br /> 228 + <div>
228 - <input type="text" name="age" value="${age}"/><br /> 229 + 성별 :<br />
229 - 성별 :<br /> 230 + <select name="gender">
230 - <select name="gender"> 231 + ${gender_default}
231 - ${gender_default} 232 + </select>
232 - </select> 233 + <br />
233 - <br /> 234 + 나이(세) : <br />
234 - 키(cm) : <br /><input type="text" name="height" value="${height}" /><br /> 235 + <input type="text" name="age" value="${age}"/><br />
235 - 몸무게(kg) : <br /><input type="text" name="weight" value="${weight}"/><br /> 236 + 키(cm) : <br /><input type="text" name="height" value="${height}" /><br />
236 - 목표체중(kg) : <br /><input type="text" name="targetWeight" value="${targetWeight}"/><br /> 237 + 몸무게(kg) : <br /><input type="text" name="weight" value="${weight}"/><br />
237 - 목표기간(일) : <br /><input type="text" name="targetDay" value="${targetDay}"/><br /> 238 + 목표체중(kg) : <br /><input type="text" name="targetWeight" value="${targetWeight}"/><br />
238 - 활동량 :<br /> 239 + 목표기간(일) : <br /><input type="text" name="targetDay" value="${targetDay}"/><br />
239 - <select name="activity"> 240 + 활동량 :<br />
240 - ${activity_default} 241 + <select name="activity">
241 - </select> 242 + ${activity_default}
242 - <br /> 243 + </select>
243 - <input type="submit" value="계산하기" /> 244 + <br />
244 - <br> 245 + <input type="submit" value="계산하기" />
245 - 표준체중 : ${std_weight}kg <br> 246 + <br>
246 - ${weightMsg}<br> 247 + 표준체중 : ${std_weight}kg <br>
247 - BMI 지수 : ${BMI} / 당신은 ${BMI_msg} 입니다. <br> 248 + ${weightMsg}<br>
248 - 기초 대사량 : ${BMR}kcal <br> 249 + BMI 지수 : ${BMI} / 당신은 ${BMI_msg} 입니다. <br>
249 - 현재 체중 유지를 위한 열량 : ${TDEE}kcal <br> 250 + 기초 대사량 : ${BMR}kcal <br>
250 - ${kcalMsg} <br> 251 + 현재 체중 유지를 위한 열량 : ${TDEE}kcal <br>
251 - <a href=/countKcal_food>오늘 먹은 음식 칼로리 계산하러 가기<a> 252 + ${kcalMsg} <br>
252 - <br><br><br><br> 253 + <a href=/countKcal_food>오늘 먹은 음식 칼로리 계산하러 가기<a>
254 + <br><br><br><br>
255 + </div>
253 </form> 256 </form>
254 ` ); 257 ` );
255 -
256 -
257 response.writeHead(200); 258 response.writeHead(200);
258 response.end(html); 259 response.end(html);
259 }); 260 });
......
...@@ -5,7 +5,6 @@ var db = mysql.createConnection({ ...@@ -5,7 +5,6 @@ var db = mysql.createConnection({
5 password: "user1234", 5 password: "user1234",
6 port: 3306, 6 port: 3306,
7 database : 'food' 7 database : 'food'
8 -
9 }); 8 });
10 db.connect(); 9 db.connect();
11 module.exports = db; 10 module.exports = db;
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -11,7 +11,6 @@ exports.home = function(request, response){ ...@@ -11,7 +11,6 @@ exports.home = function(request, response){
11 11
12 <style type="text/css"> 12 <style type="text/css">
13 div{ 13 div{
14 - @import url('https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR&display=swap');
15 text-align:center; 14 text-align:center;
16 border:0px solid none; 15 border:0px solid none;
17 margin:0px 0px 0px 0px; 16 margin:0px 0px 0px 0px;
......
1 +var template = require('./template.js');
2 +exports.info = function(request, response){
3 + var title = 'HealthProtector란?';
4 + var description = '개개인의 신체 정보에 따라 일일 권장 섭취량을 알려주고, 좋아하는 음식을 검색하면 영양정보를 알려주는 사이트 입니다.';
5 + var html = template.html(title,`
6 + <style>
7 + @import url('https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap');
8 + </style>
9 + <style type="text/css">
10 + div{
11 + text-align:center;
12 + border:0px solid none;
13 + margin:0px 0px 0px 0px;
14 +
15 + }
16 + a { text-decoration:none; }
17 + a:visited { text-decoration: none; }
18 + a:hover { text-decoration: none; }
19 + a:focus { text-decoration: none; }
20 + a:hover, a:active { text-decoration: none; }
21 + }
22 + </div>
23 + </style>
24 + <br><br><br>
25 + <div style= font-size:20px; "font-family: 'Do Hyeon', sans-serif;">
26 + <h2>${title}</h2>
27 + <h3>${description}</h3>
28 + </div>
29 +
30 +
31 +
32 + ` );
33 +
34 + response.writeHead(200);
35 + response.end(html);
36 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -288,7 +288,7 @@ exports.searchGym = function(request, response){ ...@@ -288,7 +288,7 @@ exports.searchGym = function(request, response){
288 } 288 }
289 } 289 }
290 </script> 290 </script>
291 - <br><br><br> 291 + <br>
292 `); 292 `);
293 response.writeHead(200); 293 response.writeHead(200);
294 response.end(html); 294 response.end(html);
......
...@@ -13,6 +13,7 @@ module.exports = { ...@@ -13,6 +13,7 @@ module.exports = {
13 src="https://code.jquery.com/jquery-3.5.1.js" 13 src="https://code.jquery.com/jquery-3.5.1.js"
14 integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" 14 integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc="
15 crossorigin="anonymous"></script> 15 crossorigin="anonymous"></script>
16 + <script src="https://use.fontawesome.com/releases/v5.2.0/js/all.js"></script>
16 </head> 17 </head>
17 <body> 18 <body>
18 19
...@@ -33,7 +34,8 @@ module.exports = { ...@@ -33,7 +34,8 @@ module.exports = {
33 <h3 style=width:120px;float:left;><a href="/countKcal"><font color="black">칼로리 계산</font></a></h3> 34 <h3 style=width:120px;float:left;><a href="/countKcal"><font color="black">칼로리 계산</font></a></h3>
34 <h3 style=width:120px;float:left;><a href="/searchGym"><font color="black">헬스장 찾기</a></h3> 35 <h3 style=width:120px;float:left;><a href="/searchGym"><font color="black">헬스장 찾기</a></h3>
35 <h3 style=width:120px;float:left;><a href="/foodInfo"><font color="black">식품 영양정보</font></a></h3> 36 <h3 style=width:120px;float:left;><a href="/foodInfo"><font color="black">식품 영양정보</font></a></h3>
36 - <h3 style=width:150px;float:right;><a href="/"><font color="black">About us</font></a></h3> 37 +
38 + <h3 style=width:150px;float:right;><i class="fas fa-info-circle fa-3x"style="font-size: 20px";></i><a href="/info"><font color="black">&nbsp;Info</font></a></h3>
37 39
38 </div> 40 </div>
39 <hr width = "100%" color ="#213b19" style=margin:0px;> 41 <hr width = "100%" color ="#213b19" style=margin:0px;>
......
...@@ -4,6 +4,7 @@ var home = require('./lib/home.js'); ...@@ -4,6 +4,7 @@ var home = require('./lib/home.js');
4 var searchGym = require('./lib/searchGym.js'); 4 var searchGym = require('./lib/searchGym.js');
5 var foodInfo = require('./lib/foodInfo.js'); 5 var foodInfo = require('./lib/foodInfo.js');
6 var countKcal = require('./lib/countKcal.js'); 6 var countKcal = require('./lib/countKcal.js');
7 +var info = require('./lib/info.js');
7 var app = http.createServer(function(request,response){ 8 var app = http.createServer(function(request,response){
8 var _url = request.url; 9 var _url = request.url;
9 var queryData = url.parse(_url, true).query; 10 var queryData = url.parse(_url, true).query;
...@@ -37,8 +38,8 @@ var app = http.createServer(function(request,response){ ...@@ -37,8 +38,8 @@ var app = http.createServer(function(request,response){
37 else if(pathname === '/countKcal_food_process'){ 38 else if(pathname === '/countKcal_food_process'){
38 countKcal.countKcal_food_process(request,response); 39 countKcal.countKcal_food_process(request,response);
39 } 40 }
40 - else if(pathname === '/aboutUs'){ 41 + else if(pathname === '/info'){
41 - home.aboutUs(request, response); 42 + info.info(request,response);
42 } 43 }
43 else{ 44 else{
44 response.writeHead(404); 45 response.writeHead(404);
......
1 -#!/bin/sh
2 -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 -
4 -case `uname` in
5 - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
6 -esac
7 -
8 -if [ -x "$basedir/node" ]; then
9 - "$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
10 - ret=$?
11 -else
12 - node "$basedir/../loose-envify/cli.js" "$@"
13 - ret=$?
14 -fi
15 -exit $ret
1 -@ECHO off
2 -SETLOCAL
3 -CALL :find_dp0
4 -
5 -IF EXIST "%dp0%\node.exe" (
6 - SET "_prog=%dp0%\node.exe"
7 -) ELSE (
8 - SET "_prog=node"
9 - SET PATHEXT=%PATHEXT:;.JS;=;%
10 -)
11 -
12 -"%_prog%" "%dp0%\..\loose-envify\cli.js" %*
13 -ENDLOCAL
14 -EXIT /b %errorlevel%
15 -:find_dp0
16 -SET dp0=%~dp0
17 -EXIT /b
1 -#!/usr/bin/env pwsh
2 -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3 -
4 -$exe=""
5 -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6 - # Fix case when both the Windows and Linux builds of Node
7 - # are installed in the same directory
8 - $exe=".exe"
9 -}
10 -$ret=0
11 -if (Test-Path "$basedir/node$exe") {
12 - & "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
13 - $ret=$LASTEXITCODE
14 -} else {
15 - & "node$exe" "$basedir/../loose-envify/cli.js" $args
16 - $ret=$LASTEXITCODE
17 -}
18 -exit $ret
1 -### Version 4.0.0 (2018-01-28) ###
2 -
3 -- Added: Support for ES2018. The only change needed was recognizing the `s`
4 - regex flag.
5 -- Changed: _All_ tokens returned by the `matchToToken` function now have a
6 - `closed` property. It is set to `undefined` for the tokens where “closed”
7 - doesn’t make sense. This means that all tokens objects have the same shape,
8 - which might improve performance.
9 -
10 -These are the breaking changes:
11 -
12 -- `'/a/s'.match(jsTokens)` no longer returns `['/', 'a', '/', 's']`, but
13 - `['/a/s']`. (There are of course other variations of this.)
14 -- Code that rely on some token objects not having the `closed` property could
15 - now behave differently.
16 -
17 -
18 -### Version 3.0.2 (2017-06-28) ###
19 -
20 -- No code changes. Just updates to the readme.
21 -
22 -
23 -### Version 3.0.1 (2017-01-30) ###
24 -
25 -- Fixed: ES2015 unicode escapes with more than 6 hex digits are now matched
26 - correctly.
27 -
28 -
29 -### Version 3.0.0 (2017-01-11) ###
30 -
31 -This release contains one breaking change, that should [improve performance in
32 -V8][v8-perf]:
33 -
34 -> So how can you, as a JavaScript developer, ensure that your RegExps are fast?
35 -> If you are not interested in hooking into RegExp internals, make sure that
36 -> neither the RegExp instance, nor its prototype is modified in order to get the
37 -> best performance:
38 ->
39 -> ```js
40 -> var re = /./g;
41 -> re.exec(''); // Fast path.
42 -> re.new_property = 'slow';
43 -> ```
44 -
45 -This module used to export a single regex, with `.matchToToken` bolted
46 -on, just like in the above example. This release changes the exports of
47 -the module to avoid this issue.
48 -
49 -Before:
50 -
51 -```js
52 -import jsTokens from "js-tokens"
53 -// or:
54 -var jsTokens = require("js-tokens")
55 -var matchToToken = jsTokens.matchToToken
56 -```
57 -
58 -After:
59 -
60 -```js
61 -import jsTokens, {matchToToken} from "js-tokens"
62 -// or:
63 -var jsTokens = require("js-tokens").default
64 -var matchToToken = require("js-tokens").matchToToken
65 -```
66 -
67 -[v8-perf]: http://v8project.blogspot.se/2017/01/speeding-up-v8-regular-expressions.html
68 -
69 -
70 -### Version 2.0.0 (2016-06-19) ###
71 -
72 -- Added: Support for ES2016. In other words, support for the `**` exponentiation
73 - operator.
74 -
75 -These are the breaking changes:
76 -
77 -- `'**'.match(jsTokens)` no longer returns `['*', '*']`, but `['**']`.
78 -- `'**='.match(jsTokens)` no longer returns `['*', '*=']`, but `['**=']`.
79 -
80 -
81 -### Version 1.0.3 (2016-03-27) ###
82 -
83 -- Improved: Made the regex ever so slightly smaller.
84 -- Updated: The readme.
85 -
86 -
87 -### Version 1.0.2 (2015-10-18) ###
88 -
89 -- Improved: Limited npm package contents for a smaller download. Thanks to
90 - @zertosh!
91 -
92 -
93 -### Version 1.0.1 (2015-06-20) ###
94 -
95 -- Fixed: Declared an undeclared variable.
96 -
97 -
98 -### Version 1.0.0 (2015-02-26) ###
99 -
100 -- Changed: Merged the 'operator' and 'punctuation' types into 'punctuator'. That
101 - type is now equivalent to the Punctuator token in the ECMAScript
102 - specification. (Backwards-incompatible change.)
103 -- Fixed: A `-` followed by a number is now correctly matched as a punctuator
104 - followed by a number. It used to be matched as just a number, but there is no
105 - such thing as negative number literals. (Possibly backwards-incompatible
106 - change.)
107 -
108 -
109 -### Version 0.4.1 (2015-02-21) ###
110 -
111 -- Added: Support for the regex `u` flag.
112 -
113 -
114 -### Version 0.4.0 (2015-02-21) ###
115 -
116 -- Improved: `jsTokens.matchToToken` performance.
117 -- Added: Support for octal and binary number literals.
118 -- Added: Support for template strings.
119 -
120 -
121 -### Version 0.3.1 (2015-01-06) ###
122 -
123 -- Fixed: Support for unicode spaces. They used to be allowed in names (which is
124 - very confusing), and some unicode newlines were wrongly allowed in strings and
125 - regexes.
126 -
127 -
128 -### Version 0.3.0 (2014-12-19) ###
129 -
130 -- Changed: The `jsTokens.names` array has been replaced with the
131 - `jsTokens.matchToToken` function. The capturing groups of `jsTokens` are no
132 - longer part of the public API; instead use said function. See this [gist] for
133 - an example. (Backwards-incompatible change.)
134 -- Changed: The empty string is now considered an “invalid” token, instead an
135 - “empty” token (its own group). (Backwards-incompatible change.)
136 -- Removed: component support. (Backwards-incompatible change.)
137 -
138 -[gist]: https://gist.github.com/lydell/be49dbf80c382c473004
139 -
140 -
141 -### Version 0.2.0 (2014-06-19) ###
142 -
143 -- Changed: Match ES6 function arrows (`=>`) as an operator, instead of its own
144 - category (“functionArrow”), for simplicity. (Backwards-incompatible change.)
145 -- Added: ES6 splats (`...`) are now matched as an operator (instead of three
146 - punctuations). (Backwards-incompatible change.)
147 -
148 -
149 -### Version 0.1.0 (2014-03-08) ###
150 -
151 -- Initial release.
1 -The MIT License (MIT)
2 -
3 -Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
4 -
5 -Permission is hereby granted, free of charge, to any person obtaining a copy
6 -of this software and associated documentation files (the "Software"), to deal
7 -in the Software without restriction, including without limitation the rights
8 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 -copies of the Software, and to permit persons to whom the Software is
10 -furnished to do so, subject to the following conditions:
11 -
12 -The above copyright notice and this permission notice shall be included in
13 -all copies or substantial portions of the Software.
14 -
15 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 -THE SOFTWARE.
1 -Overview [![Build Status](https://travis-ci.org/lydell/js-tokens.svg?branch=master)](https://travis-ci.org/lydell/js-tokens)
2 -========
3 -
4 -A regex that tokenizes JavaScript.
5 -
6 -```js
7 -var jsTokens = require("js-tokens").default
8 -
9 -var jsString = "var foo=opts.foo;\n..."
10 -
11 -jsString.match(jsTokens)
12 -// ["var", " ", "foo", "=", "opts", ".", "foo", ";", "\n", ...]
13 -```
14 -
15 -
16 -Installation
17 -============
18 -
19 -`npm install js-tokens`
20 -
21 -```js
22 -import jsTokens from "js-tokens"
23 -// or:
24 -var jsTokens = require("js-tokens").default
25 -```
26 -
27 -
28 -Usage
29 -=====
30 -
31 -### `jsTokens` ###
32 -
33 -A regex with the `g` flag that matches JavaScript tokens.
34 -
35 -The regex _always_ matches, even invalid JavaScript and the empty string.
36 -
37 -The next match is always directly after the previous.
38 -
39 -### `var token = matchToToken(match)` ###
40 -
41 -```js
42 -import {matchToToken} from "js-tokens"
43 -// or:
44 -var matchToToken = require("js-tokens").matchToToken
45 -```
46 -
47 -Takes a `match` returned by `jsTokens.exec(string)`, and returns a `{type:
48 -String, value: String}` object. The following types are available:
49 -
50 -- string
51 -- comment
52 -- regex
53 -- number
54 -- name
55 -- punctuator
56 -- whitespace
57 -- invalid
58 -
59 -Multi-line comments and strings also have a `closed` property indicating if the
60 -token was closed or not (see below).
61 -
62 -Comments and strings both come in several flavors. To distinguish them, check if
63 -the token starts with `//`, `/*`, `'`, `"` or `` ` ``.
64 -
65 -Names are ECMAScript IdentifierNames, that is, including both identifiers and
66 -keywords. You may use [is-keyword-js] to tell them apart.
67 -
68 -Whitespace includes both line terminators and other whitespace.
69 -
70 -[is-keyword-js]: https://github.com/crissdev/is-keyword-js
71 -
72 -
73 -ECMAScript support
74 -==================
75 -
76 -The intention is to always support the latest ECMAScript version whose feature
77 -set has been finalized.
78 -
79 -If adding support for a newer version requires changes, a new version with a
80 -major verion bump will be released.
81 -
82 -Currently, ECMAScript 2018 is supported.
83 -
84 -
85 -Invalid code handling
86 -=====================
87 -
88 -Unterminated strings are still matched as strings. JavaScript strings cannot
89 -contain (unescaped) newlines, so unterminated strings simply end at the end of
90 -the line. Unterminated template strings can contain unescaped newlines, though,
91 -so they go on to the end of input.
92 -
93 -Unterminated multi-line comments are also still matched as comments. They
94 -simply go on to the end of the input.
95 -
96 -Unterminated regex literals are likely matched as division and whatever is
97 -inside the regex.
98 -
99 -Invalid ASCII characters have their own capturing group.
100 -
101 -Invalid non-ASCII characters are treated as names, to simplify the matching of
102 -names (except unicode spaces which are treated as whitespace). Note: See also
103 -the [ES2018](#es2018) section.
104 -
105 -Regex literals may contain invalid regex syntax. They are still matched as
106 -regex literals. They may also contain repeated regex flags, to keep the regex
107 -simple.
108 -
109 -Strings may contain invalid escape sequences.
110 -
111 -
112 -Limitations
113 -===========
114 -
115 -Tokenizing JavaScript using regexes—in fact, _one single regex_—won’t be
116 -perfect. But that’s not the point either.
117 -
118 -You may compare jsTokens with [esprima] by using `esprima-compare.js`.
119 -See `npm run esprima-compare`!
120 -
121 -[esprima]: http://esprima.org/
122 -
123 -### Template string interpolation ###
124 -
125 -Template strings are matched as single tokens, from the starting `` ` `` to the
126 -ending `` ` ``, including interpolations (whose tokens are not matched
127 -individually).
128 -
129 -Matching template string interpolations requires recursive balancing of `{` and
130 -`}`—something that JavaScript regexes cannot do. Only one level of nesting is
131 -supported.
132 -
133 -### Division and regex literals collision ###
134 -
135 -Consider this example:
136 -
137 -```js
138 -var g = 9.82
139 -var number = bar / 2/g
140 -
141 -var regex = / 2/g
142 -```
143 -
144 -A human can easily understand that in the `number` line we’re dealing with
145 -division, and in the `regex` line we’re dealing with a regex literal. How come?
146 -Because humans can look at the whole code to put the `/` characters in context.
147 -A JavaScript regex cannot. It only sees forwards. (Well, ES2018 regexes can also
148 -look backwards. See the [ES2018](#es2018) section).
149 -
150 -When the `jsTokens` regex scans throught the above, it will see the following
151 -at the end of both the `number` and `regex` rows:
152 -
153 -```js
154 -/ 2/g
155 -```
156 -
157 -It is then impossible to know if that is a regex literal, or part of an
158 -expression dealing with division.
159 -
160 -Here is a similar case:
161 -
162 -```js
163 -foo /= 2/g
164 -foo(/= 2/g)
165 -```
166 -
167 -The first line divides the `foo` variable with `2/g`. The second line calls the
168 -`foo` function with the regex literal `/= 2/g`. Again, since `jsTokens` only
169 -sees forwards, it cannot tell the two cases apart.
170 -
171 -There are some cases where we _can_ tell division and regex literals apart,
172 -though.
173 -
174 -First off, we have the simple cases where there’s only one slash in the line:
175 -
176 -```js
177 -var foo = 2/g
178 -foo /= 2
179 -```
180 -
181 -Regex literals cannot contain newlines, so the above cases are correctly
182 -identified as division. Things are only problematic when there are more than
183 -one non-comment slash in a single line.
184 -
185 -Secondly, not every character is a valid regex flag.
186 -
187 -```js
188 -var number = bar / 2/e
189 -```
190 -
191 -The above example is also correctly identified as division, because `e` is not a
192 -valid regex flag. I initially wanted to future-proof by allowing `[a-zA-Z]*`
193 -(any letter) as flags, but it is not worth it since it increases the amount of
194 -ambigous cases. So only the standard `g`, `m`, `i`, `y` and `u` flags are
195 -allowed. This means that the above example will be identified as division as
196 -long as you don’t rename the `e` variable to some permutation of `gmiyus` 1 to 6
197 -characters long.
198 -
199 -Lastly, we can look _forward_ for information.
200 -
201 -- If the token following what looks like a regex literal is not valid after a
202 - regex literal, but is valid in a division expression, then the regex literal
203 - is treated as division instead. For example, a flagless regex cannot be
204 - followed by a string, number or name, but all of those three can be the
205 - denominator of a division.
206 -- Generally, if what looks like a regex literal is followed by an operator, the
207 - regex literal is treated as division instead. This is because regexes are
208 - seldomly used with operators (such as `+`, `*`, `&&` and `==`), but division
209 - could likely be part of such an expression.
210 -
211 -Please consult the regex source and the test cases for precise information on
212 -when regex or division is matched (should you need to know). In short, you
213 -could sum it up as:
214 -
215 -If the end of a statement looks like a regex literal (even if it isn’t), it
216 -will be treated as one. Otherwise it should work as expected (if you write sane
217 -code).
218 -
219 -### ES2018 ###
220 -
221 -ES2018 added some nice regex improvements to the language.
222 -
223 -- [Unicode property escapes] should allow telling names and invalid non-ASCII
224 - characters apart without blowing up the regex size.
225 -- [Lookbehind assertions] should allow matching telling division and regex
226 - literals apart in more cases.
227 -- [Named capture groups] might simplify some things.
228 -
229 -These things would be nice to do, but are not critical. They probably have to
230 -wait until the oldest maintained Node.js LTS release supports those features.
231 -
232 -[Unicode property escapes]: http://2ality.com/2017/07/regexp-unicode-property-escapes.html
233 -[Lookbehind assertions]: http://2ality.com/2017/05/regexp-lookbehind-assertions.html
234 -[Named capture groups]: http://2ality.com/2017/05/regexp-named-capture-groups.html
235 -
236 -
237 -License
238 -=======
239 -
240 -[MIT](LICENSE).
1 -// Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell
2 -// License: MIT. (See LICENSE.)
3 -
4 -Object.defineProperty(exports, "__esModule", {
5 - value: true
6 -})
7 -
8 -// This regex comes from regex.coffee, and is inserted here by generate-index.js
9 -// (run `npm run build`).
10 -exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g
11 -
12 -exports.matchToToken = function(match) {
13 - var token = {type: "invalid", value: match[0], closed: undefined}
14 - if (match[ 1]) token.type = "string" , token.closed = !!(match[3] || match[4])
15 - else if (match[ 5]) token.type = "comment"
16 - else if (match[ 6]) token.type = "comment", token.closed = !!match[7]
17 - else if (match[ 8]) token.type = "regex"
18 - else if (match[ 9]) token.type = "number"
19 - else if (match[10]) token.type = "name"
20 - else if (match[11]) token.type = "punctuator"
21 - else if (match[12]) token.type = "whitespace"
22 - return token
23 -}
1 -{
2 - "_from": "js-tokens@^3.0.0 || ^4.0.0",
3 - "_id": "js-tokens@4.0.0",
4 - "_inBundle": false,
5 - "_integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
6 - "_location": "/js-tokens",
7 - "_phantomChildren": {},
8 - "_requested": {
9 - "type": "range",
10 - "registry": true,
11 - "raw": "js-tokens@^3.0.0 || ^4.0.0",
12 - "name": "js-tokens",
13 - "escapedName": "js-tokens",
14 - "rawSpec": "^3.0.0 || ^4.0.0",
15 - "saveSpec": null,
16 - "fetchSpec": "^3.0.0 || ^4.0.0"
17 - },
18 - "_requiredBy": [
19 - "/loose-envify"
20 - ],
21 - "_resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
22 - "_shasum": "19203fb59991df98e3a287050d4647cdeaf32499",
23 - "_spec": "js-tokens@^3.0.0 || ^4.0.0",
24 - "_where": "C:\\Users\\daou\\Desktop\\HealthProtector\\node_modules\\loose-envify",
25 - "author": {
26 - "name": "Simon Lydell"
27 - },
28 - "bugs": {
29 - "url": "https://github.com/lydell/js-tokens/issues"
30 - },
31 - "bundleDependencies": false,
32 - "deprecated": false,
33 - "description": "A regex that tokenizes JavaScript.",
34 - "devDependencies": {
35 - "coffeescript": "2.1.1",
36 - "esprima": "4.0.0",
37 - "everything.js": "1.0.3",
38 - "mocha": "5.0.0"
39 - },
40 - "files": [
41 - "index.js"
42 - ],
43 - "homepage": "https://github.com/lydell/js-tokens#readme",
44 - "keywords": [
45 - "JavaScript",
46 - "js",
47 - "token",
48 - "tokenize",
49 - "regex"
50 - ],
51 - "license": "MIT",
52 - "name": "js-tokens",
53 - "repository": {
54 - "type": "git",
55 - "url": "git+https://github.com/lydell/js-tokens.git"
56 - },
57 - "scripts": {
58 - "build": "node generate-index.js",
59 - "dev": "npm run build && npm test",
60 - "esprima-compare": "node esprima-compare ./index.js everything.js/es5.js",
61 - "test": "mocha --ui tdd"
62 - },
63 - "version": "4.0.0"
64 -}
1 -The MIT License (MIT)
2 -
3 -Copyright (c) 2015 Andres Suarez <zertosh@gmail.com>
4 -
5 -Permission is hereby granted, free of charge, to any person obtaining a copy
6 -of this software and associated documentation files (the "Software"), to deal
7 -in the Software without restriction, including without limitation the rights
8 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 -copies of the Software, and to permit persons to whom the Software is
10 -furnished to do so, subject to the following conditions:
11 -
12 -The above copyright notice and this permission notice shall be included in
13 -all copies or substantial portions of the Software.
14 -
15 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 -THE SOFTWARE.
1 -# loose-envify
2 -
3 -[![Build Status](https://travis-ci.org/zertosh/loose-envify.svg?branch=master)](https://travis-ci.org/zertosh/loose-envify)
4 -
5 -Fast (and loose) selective `process.env` replacer using [js-tokens](https://github.com/lydell/js-tokens) instead of an AST. Works just like [envify](https://github.com/hughsk/envify) but much faster.
6 -
7 -## Gotchas
8 -
9 -* Doesn't handle broken syntax.
10 -* Doesn't look inside embedded expressions in template strings.
11 - - **this won't work:**
12 - ```js
13 - console.log(`the current env is ${process.env.NODE_ENV}`);
14 - ```
15 -* Doesn't replace oddly-spaced or oddly-commented expressions.
16 - - **this won't work:**
17 - ```js
18 - console.log(process./*won't*/env./*work*/NODE_ENV);
19 - ```
20 -
21 -## Usage/Options
22 -
23 -loose-envify has the exact same interface as [envify](https://github.com/hughsk/envify), including the CLI.
24 -
25 -## Benchmark
26 -
27 -```
28 -envify:
29 -
30 - $ for i in {1..5}; do node bench/bench.js 'envify'; done
31 - 708ms
32 - 727ms
33 - 791ms
34 - 719ms
35 - 720ms
36 -
37 -loose-envify:
38 -
39 - $ for i in {1..5}; do node bench/bench.js '../'; done
40 - 51ms
41 - 52ms
42 - 52ms
43 - 52ms
44 - 52ms
45 -```
1 -#!/usr/bin/env node
2 -'use strict';
3 -
4 -var looseEnvify = require('./');
5 -var fs = require('fs');
6 -
7 -if (process.argv[2]) {
8 - fs.createReadStream(process.argv[2], {encoding: 'utf8'})
9 - .pipe(looseEnvify(process.argv[2]))
10 - .pipe(process.stdout);
11 -} else {
12 - process.stdin.resume()
13 - process.stdin
14 - .pipe(looseEnvify(__filename))
15 - .pipe(process.stdout);
16 -}
1 -// envify compatibility
2 -'use strict';
3 -
4 -module.exports = require('./loose-envify');
1 -'use strict';
2 -
3 -module.exports = require('./loose-envify')(process.env);
1 -'use strict';
2 -
3 -var stream = require('stream');
4 -var util = require('util');
5 -var replace = require('./replace');
6 -
7 -var jsonExtRe = /\.json$/;
8 -
9 -module.exports = function(rootEnv) {
10 - rootEnv = rootEnv || process.env;
11 - return function (file, trOpts) {
12 - if (jsonExtRe.test(file)) {
13 - return stream.PassThrough();
14 - }
15 - var envs = trOpts ? [rootEnv, trOpts] : [rootEnv];
16 - return new LooseEnvify(envs);
17 - };
18 -};
19 -
20 -function LooseEnvify(envs) {
21 - stream.Transform.call(this);
22 - this._data = '';
23 - this._envs = envs;
24 -}
25 -util.inherits(LooseEnvify, stream.Transform);
26 -
27 -LooseEnvify.prototype._transform = function(buf, enc, cb) {
28 - this._data += buf;
29 - cb();
30 -};
31 -
32 -LooseEnvify.prototype._flush = function(cb) {
33 - var replaced = replace(this._data, this._envs);
34 - this.push(replaced);
35 - cb();
36 -};
1 -{
2 - "_from": "loose-envify@^1.1.0",
3 - "_id": "loose-envify@1.4.0",
4 - "_inBundle": false,
5 - "_integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
6 - "_location": "/loose-envify",
7 - "_phantomChildren": {},
8 - "_requested": {
9 - "type": "range",
10 - "registry": true,
11 - "raw": "loose-envify@^1.1.0",
12 - "name": "loose-envify",
13 - "escapedName": "loose-envify",
14 - "rawSpec": "^1.1.0",
15 - "saveSpec": null,
16 - "fetchSpec": "^1.1.0"
17 - },
18 - "_requiredBy": [
19 - "/react"
20 - ],
21 - "_resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
22 - "_shasum": "71ee51fa7be4caec1a63839f7e682d8132d30caf",
23 - "_spec": "loose-envify@^1.1.0",
24 - "_where": "C:\\Users\\daou\\Desktop\\HealthProtector\\node_modules\\react",
25 - "author": {
26 - "name": "Andres Suarez",
27 - "email": "zertosh@gmail.com"
28 - },
29 - "bin": {
30 - "loose-envify": "cli.js"
31 - },
32 - "bugs": {
33 - "url": "https://github.com/zertosh/loose-envify/issues"
34 - },
35 - "bundleDependencies": false,
36 - "dependencies": {
37 - "js-tokens": "^3.0.0 || ^4.0.0"
38 - },
39 - "deprecated": false,
40 - "description": "Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST",
41 - "devDependencies": {
42 - "browserify": "^13.1.1",
43 - "envify": "^3.4.0",
44 - "tap": "^8.0.0"
45 - },
46 - "homepage": "https://github.com/zertosh/loose-envify",
47 - "keywords": [
48 - "environment",
49 - "variables",
50 - "browserify",
51 - "browserify-transform",
52 - "transform",
53 - "source",
54 - "configuration"
55 - ],
56 - "license": "MIT",
57 - "main": "index.js",
58 - "name": "loose-envify",
59 - "repository": {
60 - "type": "git",
61 - "url": "git://github.com/zertosh/loose-envify.git"
62 - },
63 - "scripts": {
64 - "test": "tap test/*.js"
65 - },
66 - "version": "1.4.0"
67 -}
1 -'use strict';
2 -
3 -var jsTokens = require('js-tokens').default;
4 -
5 -var processEnvRe = /\bprocess\.env\.[_$a-zA-Z][$\w]+\b/;
6 -var spaceOrCommentRe = /^(?:\s|\/[/*])/;
7 -
8 -function replace(src, envs) {
9 - if (!processEnvRe.test(src)) {
10 - return src;
11 - }
12 -
13 - var out = [];
14 - var purge = envs.some(function(env) {
15 - return env._ && env._.indexOf('purge') !== -1;
16 - });
17 -
18 - jsTokens.lastIndex = 0
19 - var parts = src.match(jsTokens);
20 -
21 - for (var i = 0; i < parts.length; i++) {
22 - if (parts[i ] === 'process' &&
23 - parts[i + 1] === '.' &&
24 - parts[i + 2] === 'env' &&
25 - parts[i + 3] === '.') {
26 - var prevCodeToken = getAdjacentCodeToken(-1, parts, i);
27 - var nextCodeToken = getAdjacentCodeToken(1, parts, i + 4);
28 - var replacement = getReplacementString(envs, parts[i + 4], purge);
29 - if (prevCodeToken !== '.' &&
30 - nextCodeToken !== '.' &&
31 - nextCodeToken !== '=' &&
32 - typeof replacement === 'string') {
33 - out.push(replacement);
34 - i += 4;
35 - continue;
36 - }
37 - }
38 - out.push(parts[i]);
39 - }
40 -
41 - return out.join('');
42 -}
43 -
44 -function getAdjacentCodeToken(dir, parts, i) {
45 - while (true) {
46 - var part = parts[i += dir];
47 - if (!spaceOrCommentRe.test(part)) {
48 - return part;
49 - }
50 - }
51 -}
52 -
53 -function getReplacementString(envs, name, purge) {
54 - for (var j = 0; j < envs.length; j++) {
55 - var env = envs[j];
56 - if (typeof env[name] !== 'undefined') {
57 - return JSON.stringify(env[name]);
58 - }
59 - }
60 - if (purge) {
61 - return 'undefined';
62 - }
63 -}
64 -
65 -module.exports = replace;
1 -/*
2 -object-assign
3 -(c) Sindre Sorhus
4 -@license MIT
5 -*/
6 -
7 -'use strict';
8 -/* eslint-disable no-unused-vars */
9 -var getOwnPropertySymbols = Object.getOwnPropertySymbols;
10 -var hasOwnProperty = Object.prototype.hasOwnProperty;
11 -var propIsEnumerable = Object.prototype.propertyIsEnumerable;
12 -
13 -function toObject(val) {
14 - if (val === null || val === undefined) {
15 - throw new TypeError('Object.assign cannot be called with null or undefined');
16 - }
17 -
18 - return Object(val);
19 -}
20 -
21 -function shouldUseNative() {
22 - try {
23 - if (!Object.assign) {
24 - return false;
25 - }
26 -
27 - // Detect buggy property enumeration order in older V8 versions.
28 -
29 - // https://bugs.chromium.org/p/v8/issues/detail?id=4118
30 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
31 - test1[5] = 'de';
32 - if (Object.getOwnPropertyNames(test1)[0] === '5') {
33 - return false;
34 - }
35 -
36 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
37 - var test2 = {};
38 - for (var i = 0; i < 10; i++) {
39 - test2['_' + String.fromCharCode(i)] = i;
40 - }
41 - var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
42 - return test2[n];
43 - });
44 - if (order2.join('') !== '0123456789') {
45 - return false;
46 - }
47 -
48 - // https://bugs.chromium.org/p/v8/issues/detail?id=3056
49 - var test3 = {};
50 - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
51 - test3[letter] = letter;
52 - });
53 - if (Object.keys(Object.assign({}, test3)).join('') !==
54 - 'abcdefghijklmnopqrst') {
55 - return false;
56 - }
57 -
58 - return true;
59 - } catch (err) {
60 - // We don't expect any of the above to throw, but better to be safe.
61 - return false;
62 - }
63 -}
64 -
65 -module.exports = shouldUseNative() ? Object.assign : function (target, source) {
66 - var from;
67 - var to = toObject(target);
68 - var symbols;
69 -
70 - for (var s = 1; s < arguments.length; s++) {
71 - from = Object(arguments[s]);
72 -
73 - for (var key in from) {
74 - if (hasOwnProperty.call(from, key)) {
75 - to[key] = from[key];
76 - }
77 - }
78 -
79 - if (getOwnPropertySymbols) {
80 - symbols = getOwnPropertySymbols(from);
81 - for (var i = 0; i < symbols.length; i++) {
82 - if (propIsEnumerable.call(from, symbols[i])) {
83 - to[symbols[i]] = from[symbols[i]];
84 - }
85 - }
86 - }
87 - }
88 -
89 - return to;
90 -};
1 -The MIT License (MIT)
2 -
3 -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4 -
5 -Permission is hereby granted, free of charge, to any person obtaining a copy
6 -of this software and associated documentation files (the "Software"), to deal
7 -in the Software without restriction, including without limitation the rights
8 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 -copies of the Software, and to permit persons to whom the Software is
10 -furnished to do so, subject to the following conditions:
11 -
12 -The above copyright notice and this permission notice shall be included in
13 -all copies or substantial portions of the Software.
14 -
15 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 -THE SOFTWARE.
1 -{
2 - "_from": "object-assign@^4.1.1",
3 - "_id": "object-assign@4.1.1",
4 - "_inBundle": false,
5 - "_integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
6 - "_location": "/object-assign",
7 - "_phantomChildren": {},
8 - "_requested": {
9 - "type": "range",
10 - "registry": true,
11 - "raw": "object-assign@^4.1.1",
12 - "name": "object-assign",
13 - "escapedName": "object-assign",
14 - "rawSpec": "^4.1.1",
15 - "saveSpec": null,
16 - "fetchSpec": "^4.1.1"
17 - },
18 - "_requiredBy": [
19 - "/react"
20 - ],
21 - "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
22 - "_shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863",
23 - "_spec": "object-assign@^4.1.1",
24 - "_where": "C:\\Users\\daou\\Desktop\\HealthProtector\\node_modules\\react",
25 - "author": {
26 - "name": "Sindre Sorhus",
27 - "email": "sindresorhus@gmail.com",
28 - "url": "sindresorhus.com"
29 - },
30 - "bugs": {
31 - "url": "https://github.com/sindresorhus/object-assign/issues"
32 - },
33 - "bundleDependencies": false,
34 - "deprecated": false,
35 - "description": "ES2015 `Object.assign()` ponyfill",
36 - "devDependencies": {
37 - "ava": "^0.16.0",
38 - "lodash": "^4.16.4",
39 - "matcha": "^0.7.0",
40 - "xo": "^0.16.0"
41 - },
42 - "engines": {
43 - "node": ">=0.10.0"
44 - },
45 - "files": [
46 - "index.js"
47 - ],
48 - "homepage": "https://github.com/sindresorhus/object-assign#readme",
49 - "keywords": [
50 - "object",
51 - "assign",
52 - "extend",
53 - "properties",
54 - "es2015",
55 - "ecmascript",
56 - "harmony",
57 - "ponyfill",
58 - "prollyfill",
59 - "polyfill",
60 - "shim",
61 - "browser"
62 - ],
63 - "license": "MIT",
64 - "name": "object-assign",
65 - "repository": {
66 - "type": "git",
67 - "url": "git+https://github.com/sindresorhus/object-assign.git"
68 - },
69 - "scripts": {
70 - "bench": "matcha bench.js",
71 - "test": "xo && ava"
72 - },
73 - "version": "4.1.1"
74 -}
1 -# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)
2 -
3 -> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com)
4 -
5 -
6 -## Use the built-in
7 -
8 -Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari),
9 -support `Object.assign()` :tada:. If you target only those environments, then by all
10 -means, use `Object.assign()` instead of this package.
11 -
12 -
13 -## Install
14 -
15 -```
16 -$ npm install --save object-assign
17 -```
18 -
19 -
20 -## Usage
21 -
22 -```js
23 -const objectAssign = require('object-assign');
24 -
25 -objectAssign({foo: 0}, {bar: 1});
26 -//=> {foo: 0, bar: 1}
27 -
28 -// multiple sources
29 -objectAssign({foo: 0}, {bar: 1}, {baz: 2});
30 -//=> {foo: 0, bar: 1, baz: 2}
31 -
32 -// overwrites equal keys
33 -objectAssign({foo: 0}, {foo: 1}, {foo: 2});
34 -//=> {foo: 2}
35 -
36 -// ignores null and undefined sources
37 -objectAssign({foo: 0}, null, {bar: 1}, undefined);
38 -//=> {foo: 0, bar: 1}
39 -```
40 -
41 -
42 -## API
43 -
44 -### objectAssign(target, [source, ...])
45 -
46 -Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.
47 -
48 -
49 -## Resources
50 -
51 -- [ES2015 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)
52 -
53 -
54 -## Related
55 -
56 -- [deep-assign](https://github.com/sindresorhus/deep-assign) - Recursive `Object.assign()`
57 -
58 -
59 -## License
60 -
61 -MIT © [Sindre Sorhus](https://sindresorhus.com)
1 -MIT License
2 -
3 -Copyright (c) Facebook, Inc. and its affiliates.
4 -
5 -Permission is hereby granted, free of charge, to any person obtaining a copy
6 -of this software and associated documentation files (the "Software"), to deal
7 -in the Software without restriction, including without limitation the rights
8 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 -copies of the Software, and to permit persons to whom the Software is
10 -furnished to do so, subject to the following conditions:
11 -
12 -The above copyright notice and this permission notice shall be included in all
13 -copies or substantial portions of the Software.
14 -
15 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 -SOFTWARE.
1 -# `react-dom`
2 -
3 -This package serves as the entry point to the DOM and server renderers for React. It is intended to be paired with the generic React package, which is shipped as `react` to npm.
4 -
5 -## Installation
6 -
7 -```sh
8 -npm install react react-dom
9 -```
10 -
11 -## Usage
12 -
13 -### In the browser
14 -
15 -```js
16 -var React = require('react');
17 -var ReactDOM = require('react-dom');
18 -
19 -class MyComponent extends React.Component {
20 - render() {
21 - return <div>Hello World</div>;
22 - }
23 -}
24 -
25 -ReactDOM.render(<MyComponent />, node);
26 -```
27 -
28 -### On the server
29 -
30 -```js
31 -var React = require('react');
32 -var ReactDOMServer = require('react-dom/server');
33 -
34 -class MyComponent extends React.Component {
35 - render() {
36 - return <div>Hello World</div>;
37 - }
38 -}
39 -
40 -ReactDOMServer.renderToString(<MyComponent />);
41 -```
42 -
43 -## API
44 -
45 -### `react-dom`
46 -
47 -- `findDOMNode`
48 -- `render`
49 -- `unmountComponentAtNode`
50 -
51 -### `react-dom/server`
52 -
53 -- `renderToString`
54 -- `renderToStaticMarkup`
1 -{
2 - "branch": "17.0.1",
3 - "buildNumber": "222790",
4 - "checksum": "addb3df",
5 - "commit": "8e5adfbd7",
6 - "environment": "ci",
7 - "reactVersion": "17.0.0-8e5adfbd7"
8 -}
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 -'use strict';
2 -
3 -function checkDCE() {
4 - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5 - if (
6 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
7 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
8 - ) {
9 - return;
10 - }
11 - if (process.env.NODE_ENV !== 'production') {
12 - // This branch is unreachable because this function is only called
13 - // in production, but the condition is true only in development.
14 - // Therefore if the branch is still here, dead code elimination wasn't
15 - // properly applied.
16 - // Don't change the message. React DevTools relies on it. Also make sure
17 - // this message doesn't occur elsewhere in this function, or it will cause
18 - // a false positive.
19 - throw new Error('^_^');
20 - }
21 - try {
22 - // Verify that the code above has been dead code eliminated (DCE'd).
23 - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
24 - } catch (err) {
25 - // DevTools shouldn't crash React, no matter what.
26 - // We should still report in case we break this code.
27 - console.error(err);
28 - }
29 -}
30 -
31 -if (process.env.NODE_ENV === 'production') {
32 - // DCE check should happen before ReactDOM bundle executes so that
33 - // DevTools can report bad minification during injection.
34 - checkDCE();
35 - module.exports = require('./cjs/react-dom.production.min.js');
36 -} else {
37 - module.exports = require('./cjs/react-dom.development.js');
38 -}
1 -{
2 - "_from": "react-dom",
3 - "_id": "react-dom@17.0.1",
4 - "_inBundle": false,
5 - "_integrity": "sha512-6eV150oJZ9U2t9svnsspTMrWNyHc6chX0KzDeAOXftRa8bNeOKTTfCJ7KorIwenkHd2xqVTBTCZd79yk/lx/Ug==",
6 - "_location": "/react-dom",
7 - "_phantomChildren": {},
8 - "_requested": {
9 - "type": "tag",
10 - "registry": true,
11 - "raw": "react-dom",
12 - "name": "react-dom",
13 - "escapedName": "react-dom",
14 - "rawSpec": "",
15 - "saveSpec": null,
16 - "fetchSpec": "latest"
17 - },
18 - "_requiredBy": [
19 - "#USER",
20 - "/"
21 - ],
22 - "_resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.1.tgz",
23 - "_shasum": "1de2560474ec9f0e334285662ede52dbc5426fc6",
24 - "_spec": "react-dom",
25 - "_where": "C:\\Users\\daou\\Desktop\\HealthProtector",
26 - "browser": {
27 - "./server.js": "./server.browser.js",
28 - "./unstable-fizz.js": "./unstable-fizz.browser.js"
29 - },
30 - "browserify": {
31 - "transform": [
32 - "loose-envify"
33 - ]
34 - },
35 - "bugs": {
36 - "url": "https://github.com/facebook/react/issues"
37 - },
38 - "bundleDependencies": false,
39 - "dependencies": {
40 - "loose-envify": "^1.1.0",
41 - "object-assign": "^4.1.1",
42 - "scheduler": "^0.20.1"
43 - },
44 - "deprecated": false,
45 - "description": "React package for working with the DOM.",
46 - "files": [
47 - "LICENSE",
48 - "README.md",
49 - "build-info.json",
50 - "index.js",
51 - "profiling.js",
52 - "server.js",
53 - "server.browser.js",
54 - "server.node.js",
55 - "test-utils.js",
56 - "cjs/",
57 - "umd/"
58 - ],
59 - "homepage": "https://reactjs.org/",
60 - "keywords": [
61 - "react"
62 - ],
63 - "license": "MIT",
64 - "main": "index.js",
65 - "name": "react-dom",
66 - "peerDependencies": {
67 - "react": "17.0.1"
68 - },
69 - "repository": {
70 - "type": "git",
71 - "url": "git+https://github.com/facebook/react.git",
72 - "directory": "packages/react-dom"
73 - },
74 - "scripts": {
75 - "start": "node server.js"
76 - },
77 - "version": "17.0.1"
78 -}
1 -'use strict';
2 -
3 -function checkDCE() {
4 - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5 - if (
6 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
7 - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
8 - ) {
9 - return;
10 - }
11 - if (process.env.NODE_ENV !== 'production') {
12 - // This branch is unreachable because this function is only called
13 - // in production, but the condition is true only in development.
14 - // Therefore if the branch is still here, dead code elimination wasn't
15 - // properly applied.
16 - // Don't change the message. React DevTools relies on it. Also make sure
17 - // this message doesn't occur elsewhere in this function, or it will cause
18 - // a false positive.
19 - throw new Error('^_^');
20 - }
21 - try {
22 - // Verify that the code above has been dead code eliminated (DCE'd).
23 - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
24 - } catch (err) {
25 - // DevTools shouldn't crash React, no matter what.
26 - // We should still report in case we break this code.
27 - console.error(err);
28 - }
29 -}
30 -
31 -if (process.env.NODE_ENV === 'production') {
32 - // DCE check should happen before ReactDOM bundle executes so that
33 - // DevTools can report bad minification during injection.
34 - checkDCE();
35 - module.exports = require('./cjs/react-dom.profiling.min.js');
36 -} else {
37 - module.exports = require('./cjs/react-dom.development.js');
38 -}
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/react-dom-server.browser.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/react-dom-server.browser.development.js');
7 -}
1 -'use strict';
2 -
3 -module.exports = require('./server.node');
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/react-dom-server.node.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/react-dom-server.node.development.js');
7 -}
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/react-dom-test-utils.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/react-dom-test-utils.development.js');
7 -}
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 -MIT License
2 -
3 -Copyright (c) Facebook, Inc. and its affiliates.
4 -
5 -Permission is hereby granted, free of charge, to any person obtaining a copy
6 -of this software and associated documentation files (the "Software"), to deal
7 -in the Software without restriction, including without limitation the rights
8 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 -copies of the Software, and to permit persons to whom the Software is
10 -furnished to do so, subject to the following conditions:
11 -
12 -The above copyright notice and this permission notice shall be included in all
13 -copies or substantial portions of the Software.
14 -
15 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 -SOFTWARE.
1 -# `react`
2 -
3 -React is a JavaScript library for creating user interfaces.
4 -
5 -The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.
6 -
7 -**Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.
8 -
9 -## Example Usage
10 -
11 -```js
12 -var React = require('react');
13 -```
1 -{
2 - "branch": "17.0.1",
3 - "buildNumber": "222790",
4 - "checksum": "addb3df",
5 - "commit": "8e5adfbd7",
6 - "environment": "ci",
7 - "reactVersion": "17.0.0-8e5adfbd7"
8 -}
1 -/** @license React v17.0.1
2 - * react-jsx-dev-runtime.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';require("object-assign");require("react");exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var a=Symbol.for;exports.Fragment=a("react.fragment")}exports.jsxDEV=void 0;
1 -/** @license React v17.0.1
2 - * react-jsx-dev-runtime.profiling.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';require("object-assign");require("react");exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var a=Symbol.for;exports.Fragment=a("react.fragment")}exports.jsxDEV=void 0;
This diff is collapsed. Click to expand it.
1 -/** @license React v17.0.1
2 - * react-jsx-runtime.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';require("object-assign");var f=require("react"),g=60103;exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");exports.Fragment=h("react.fragment")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
10 -function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;
1 -/** @license React v17.0.1
2 - * react-jsx-runtime.profiling.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';require("object-assign");var f=require("react"),g=60103;exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");exports.Fragment=h("react.fragment")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
10 -function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;
This diff is collapsed. Click to expand it.
1 -/** @license React v17.0.1
2 - * react.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';var l=require("object-assign"),n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;
10 -if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");u=w("react.memo");v=w("react.lazy")}var x="function"===typeof Symbol&&Symbol.iterator;
11 -function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return"function"===typeof a?a:null}function z(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."}
12 -var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};function C(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(z(85));this.updater.enqueueSetState(this,a,b,"setState")};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
13 -function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}var F=E.prototype=new D;F.constructor=E;l(F,C.prototype);F.isPureReactComponent=!0;var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
14 -function J(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)H.call(b,e)&&!I.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];d.children=f}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return{$$typeof:n,type:a,key:k,ref:h,props:d,_owner:G.current}}
15 -function K(a,b){return{$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return"object"===typeof a&&null!==a&&a.$$typeof===n}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\/+/g;function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
16 -function O(a,b,c,e,d){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case n:case p:h=!0}}if(h)return h=a,d=d(h),a=""===e?"."+N(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(M,"$&/")+"/"),O(d,b,c,"",function(a){return a})):null!=d&&(L(d)&&(d=K(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(M,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var g=
17 -0;g<a.length;g++){k=a[g];var f=e+N(k,g);h+=O(k,b,c,f,d)}else if(f=y(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+N(k,g++),h+=O(k,b,c,f,d);else if("object"===k)throw b=""+a,Error(z(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,"","",function(a){return b.call(c,a,d++)});return e}
18 -function Q(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var R={current:null};function S(){var a=R.current;if(null===a)throw Error(z(321));return a}var T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:l};
19 -exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;
20 -exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=l({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!I.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];e.children=g}return{$$typeof:n,type:a.type,
21 -key:d,ref:k,props:e,_owner:h}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:t,render:a}};exports.isValidElement=L;
22 -exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return S().useCallback(a,b)};exports.useContext=function(a,b){return S().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return S().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return S().useImperativeHandle(a,b,c)};
23 -exports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return S().useMemo(a,b)};exports.useReducer=function(a,b,c){return S().useReducer(a,b,c)};exports.useRef=function(a){return S().useRef(a)};exports.useState=function(a){return S().useState(a)};exports.version="17.0.1";
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/react.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/react.development.js');
7 -}
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/react-jsx-dev-runtime.development.js');
7 -}
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/react-jsx-runtime.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/react-jsx-runtime.development.js');
7 -}
1 -{
2 - "_from": "react",
3 - "_id": "react@17.0.1",
4 - "_inBundle": false,
5 - "_integrity": "sha512-lG9c9UuMHdcAexXtigOZLX8exLWkW0Ku29qPRU8uhF2R9BN96dLCt0psvzPLlHc5OWkgymP3qwTRgbnw5BKx3w==",
6 - "_location": "/react",
7 - "_phantomChildren": {},
8 - "_requested": {
9 - "type": "tag",
10 - "registry": true,
11 - "raw": "react",
12 - "name": "react",
13 - "escapedName": "react",
14 - "rawSpec": "",
15 - "saveSpec": null,
16 - "fetchSpec": "latest"
17 - },
18 - "_requiredBy": [
19 - "#USER",
20 - "/"
21 - ],
22 - "_resolved": "https://registry.npmjs.org/react/-/react-17.0.1.tgz",
23 - "_shasum": "6e0600416bd57574e3f86d92edba3d9008726127",
24 - "_spec": "react",
25 - "_where": "C:\\Users\\daou\\Desktop\\HealthProtector",
26 - "browserify": {
27 - "transform": [
28 - "loose-envify"
29 - ]
30 - },
31 - "bugs": {
32 - "url": "https://github.com/facebook/react/issues"
33 - },
34 - "bundleDependencies": false,
35 - "dependencies": {
36 - "loose-envify": "^1.1.0",
37 - "object-assign": "^4.1.1"
38 - },
39 - "deprecated": false,
40 - "description": "React is a JavaScript library for building user interfaces.",
41 - "engines": {
42 - "node": ">=0.10.0"
43 - },
44 - "files": [
45 - "LICENSE",
46 - "README.md",
47 - "build-info.json",
48 - "index.js",
49 - "cjs/",
50 - "umd/",
51 - "jsx-runtime.js",
52 - "jsx-dev-runtime.js"
53 - ],
54 - "homepage": "https://reactjs.org/",
55 - "keywords": [
56 - "react"
57 - ],
58 - "license": "MIT",
59 - "main": "index.js",
60 - "name": "react",
61 - "repository": {
62 - "type": "git",
63 - "url": "git+https://github.com/facebook/react.git",
64 - "directory": "packages/react"
65 - },
66 - "version": "17.0.1"
67 -}
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 -MIT License
2 -
3 -Copyright (c) Facebook, Inc. and its affiliates.
4 -
5 -Permission is hereby granted, free of charge, to any person obtaining a copy
6 -of this software and associated documentation files (the "Software"), to deal
7 -in the Software without restriction, including without limitation the rights
8 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 -copies of the Software, and to permit persons to whom the Software is
10 -furnished to do so, subject to the following conditions:
11 -
12 -The above copyright notice and this permission notice shall be included in all
13 -copies or substantial portions of the Software.
14 -
15 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 -SOFTWARE.
1 -# `scheduler`
2 -
3 -This is a package for cooperative scheduling in a browser environment. It is currently used internally by React, but we plan to make it more generic.
4 -
5 -The public API for this package is not yet finalized.
6 -
7 -### Thanks
8 -
9 -The React team thanks [Anton Podviaznikov](https://podviaznikov.com/) for donating the `scheduler` package name.
1 -{
2 - "branch": "17.0.1",
3 - "buildNumber": "222790",
4 - "checksum": "addb3df",
5 - "commit": "8e5adfbd7",
6 - "environment": "ci",
7 - "reactVersion": "17.0.0-8e5adfbd7"
8 -}
1 -/** @license React v0.20.1
2 - * scheduler-tracing.development.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -'use strict';
11 -
12 -if (process.env.NODE_ENV !== "production") {
13 - (function() {
14 -'use strict';
15 -
16 -var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
17 -
18 -var interactionIDCounter = 0;
19 -var threadIDCounter = 0; // Set of currently traced interactions.
20 -// Interactions "stack"–
21 -// Meaning that newly traced interactions are appended to the previously active set.
22 -// When an interaction goes out of scope, the previous set (if any) is restored.
23 -
24 -exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.
25 -
26 -exports.__subscriberRef = null;
27 -
28 -{
29 - exports.__interactionsRef = {
30 - current: new Set()
31 - };
32 - exports.__subscriberRef = {
33 - current: null
34 - };
35 -}
36 -function unstable_clear(callback) {
37 -
38 - var prevInteractions = exports.__interactionsRef.current;
39 - exports.__interactionsRef.current = new Set();
40 -
41 - try {
42 - return callback();
43 - } finally {
44 - exports.__interactionsRef.current = prevInteractions;
45 - }
46 -}
47 -function unstable_getCurrent() {
48 - {
49 - return exports.__interactionsRef.current;
50 - }
51 -}
52 -function unstable_getThreadID() {
53 - return ++threadIDCounter;
54 -}
55 -function unstable_trace(name, timestamp, callback) {
56 - var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
57 -
58 - var interaction = {
59 - __count: 1,
60 - id: interactionIDCounter++,
61 - name: name,
62 - timestamp: timestamp
63 - };
64 - var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
65 - // To do that, clone the current interactions.
66 - // The previous set will be restored upon completion.
67 -
68 - var interactions = new Set(prevInteractions);
69 - interactions.add(interaction);
70 - exports.__interactionsRef.current = interactions;
71 - var subscriber = exports.__subscriberRef.current;
72 - var returnValue;
73 -
74 - try {
75 - if (subscriber !== null) {
76 - subscriber.onInteractionTraced(interaction);
77 - }
78 - } finally {
79 - try {
80 - if (subscriber !== null) {
81 - subscriber.onWorkStarted(interactions, threadID);
82 - }
83 - } finally {
84 - try {
85 - returnValue = callback();
86 - } finally {
87 - exports.__interactionsRef.current = prevInteractions;
88 -
89 - try {
90 - if (subscriber !== null) {
91 - subscriber.onWorkStopped(interactions, threadID);
92 - }
93 - } finally {
94 - interaction.__count--; // If no async work was scheduled for this interaction,
95 - // Notify subscribers that it's completed.
96 -
97 - if (subscriber !== null && interaction.__count === 0) {
98 - subscriber.onInteractionScheduledWorkCompleted(interaction);
99 - }
100 - }
101 - }
102 - }
103 - }
104 -
105 - return returnValue;
106 -}
107 -function unstable_wrap(callback) {
108 - var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
109 -
110 - var wrappedInteractions = exports.__interactionsRef.current;
111 - var subscriber = exports.__subscriberRef.current;
112 -
113 - if (subscriber !== null) {
114 - subscriber.onWorkScheduled(wrappedInteractions, threadID);
115 - } // Update the pending async work count for the current interactions.
116 - // Update after calling subscribers in case of error.
117 -
118 -
119 - wrappedInteractions.forEach(function (interaction) {
120 - interaction.__count++;
121 - });
122 - var hasRun = false;
123 -
124 - function wrapped() {
125 - var prevInteractions = exports.__interactionsRef.current;
126 - exports.__interactionsRef.current = wrappedInteractions;
127 - subscriber = exports.__subscriberRef.current;
128 -
129 - try {
130 - var returnValue;
131 -
132 - try {
133 - if (subscriber !== null) {
134 - subscriber.onWorkStarted(wrappedInteractions, threadID);
135 - }
136 - } finally {
137 - try {
138 - returnValue = callback.apply(undefined, arguments);
139 - } finally {
140 - exports.__interactionsRef.current = prevInteractions;
141 -
142 - if (subscriber !== null) {
143 - subscriber.onWorkStopped(wrappedInteractions, threadID);
144 - }
145 - }
146 - }
147 -
148 - return returnValue;
149 - } finally {
150 - if (!hasRun) {
151 - // We only expect a wrapped function to be executed once,
152 - // But in the event that it's executed more than once–
153 - // Only decrement the outstanding interaction counts once.
154 - hasRun = true; // Update pending async counts for all wrapped interactions.
155 - // If this was the last scheduled async work for any of them,
156 - // Mark them as completed.
157 -
158 - wrappedInteractions.forEach(function (interaction) {
159 - interaction.__count--;
160 -
161 - if (subscriber !== null && interaction.__count === 0) {
162 - subscriber.onInteractionScheduledWorkCompleted(interaction);
163 - }
164 - });
165 - }
166 - }
167 - }
168 -
169 - wrapped.cancel = function cancel() {
170 - subscriber = exports.__subscriberRef.current;
171 -
172 - try {
173 - if (subscriber !== null) {
174 - subscriber.onWorkCanceled(wrappedInteractions, threadID);
175 - }
176 - } finally {
177 - // Update pending async counts for all wrapped interactions.
178 - // If this was the last scheduled async work for any of them,
179 - // Mark them as completed.
180 - wrappedInteractions.forEach(function (interaction) {
181 - interaction.__count--;
182 -
183 - if (subscriber && interaction.__count === 0) {
184 - subscriber.onInteractionScheduledWorkCompleted(interaction);
185 - }
186 - });
187 - }
188 - };
189 -
190 - return wrapped;
191 -}
192 -
193 -var subscribers = null;
194 -
195 -{
196 - subscribers = new Set();
197 -}
198 -
199 -function unstable_subscribe(subscriber) {
200 - {
201 - subscribers.add(subscriber);
202 -
203 - if (subscribers.size === 1) {
204 - exports.__subscriberRef.current = {
205 - onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
206 - onInteractionTraced: onInteractionTraced,
207 - onWorkCanceled: onWorkCanceled,
208 - onWorkScheduled: onWorkScheduled,
209 - onWorkStarted: onWorkStarted,
210 - onWorkStopped: onWorkStopped
211 - };
212 - }
213 - }
214 -}
215 -function unstable_unsubscribe(subscriber) {
216 - {
217 - subscribers.delete(subscriber);
218 -
219 - if (subscribers.size === 0) {
220 - exports.__subscriberRef.current = null;
221 - }
222 - }
223 -}
224 -
225 -function onInteractionTraced(interaction) {
226 - var didCatchError = false;
227 - var caughtError = null;
228 - subscribers.forEach(function (subscriber) {
229 - try {
230 - subscriber.onInteractionTraced(interaction);
231 - } catch (error) {
232 - if (!didCatchError) {
233 - didCatchError = true;
234 - caughtError = error;
235 - }
236 - }
237 - });
238 -
239 - if (didCatchError) {
240 - throw caughtError;
241 - }
242 -}
243 -
244 -function onInteractionScheduledWorkCompleted(interaction) {
245 - var didCatchError = false;
246 - var caughtError = null;
247 - subscribers.forEach(function (subscriber) {
248 - try {
249 - subscriber.onInteractionScheduledWorkCompleted(interaction);
250 - } catch (error) {
251 - if (!didCatchError) {
252 - didCatchError = true;
253 - caughtError = error;
254 - }
255 - }
256 - });
257 -
258 - if (didCatchError) {
259 - throw caughtError;
260 - }
261 -}
262 -
263 -function onWorkScheduled(interactions, threadID) {
264 - var didCatchError = false;
265 - var caughtError = null;
266 - subscribers.forEach(function (subscriber) {
267 - try {
268 - subscriber.onWorkScheduled(interactions, threadID);
269 - } catch (error) {
270 - if (!didCatchError) {
271 - didCatchError = true;
272 - caughtError = error;
273 - }
274 - }
275 - });
276 -
277 - if (didCatchError) {
278 - throw caughtError;
279 - }
280 -}
281 -
282 -function onWorkStarted(interactions, threadID) {
283 - var didCatchError = false;
284 - var caughtError = null;
285 - subscribers.forEach(function (subscriber) {
286 - try {
287 - subscriber.onWorkStarted(interactions, threadID);
288 - } catch (error) {
289 - if (!didCatchError) {
290 - didCatchError = true;
291 - caughtError = error;
292 - }
293 - }
294 - });
295 -
296 - if (didCatchError) {
297 - throw caughtError;
298 - }
299 -}
300 -
301 -function onWorkStopped(interactions, threadID) {
302 - var didCatchError = false;
303 - var caughtError = null;
304 - subscribers.forEach(function (subscriber) {
305 - try {
306 - subscriber.onWorkStopped(interactions, threadID);
307 - } catch (error) {
308 - if (!didCatchError) {
309 - didCatchError = true;
310 - caughtError = error;
311 - }
312 - }
313 - });
314 -
315 - if (didCatchError) {
316 - throw caughtError;
317 - }
318 -}
319 -
320 -function onWorkCanceled(interactions, threadID) {
321 - var didCatchError = false;
322 - var caughtError = null;
323 - subscribers.forEach(function (subscriber) {
324 - try {
325 - subscriber.onWorkCanceled(interactions, threadID);
326 - } catch (error) {
327 - if (!didCatchError) {
328 - didCatchError = true;
329 - caughtError = error;
330 - }
331 - }
332 - });
333 -
334 - if (didCatchError) {
335 - throw caughtError;
336 - }
337 -}
338 -
339 -exports.unstable_clear = unstable_clear;
340 -exports.unstable_getCurrent = unstable_getCurrent;
341 -exports.unstable_getThreadID = unstable_getThreadID;
342 -exports.unstable_subscribe = unstable_subscribe;
343 -exports.unstable_trace = unstable_trace;
344 -exports.unstable_unsubscribe = unstable_unsubscribe;
345 -exports.unstable_wrap = unstable_wrap;
346 - })();
347 -}
1 -/** @license React v0.20.1
2 - * scheduler-tracing.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';var b=0;exports.__interactionsRef=null;exports.__subscriberRef=null;exports.unstable_clear=function(a){return a()};exports.unstable_getCurrent=function(){return null};exports.unstable_getThreadID=function(){return++b};exports.unstable_subscribe=function(){};exports.unstable_trace=function(a,d,c){return c()};exports.unstable_unsubscribe=function(){};exports.unstable_wrap=function(a){return a};
1 -/** @license React v0.20.1
2 - * scheduler-tracing.profiling.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';var g=0,l=0;exports.__interactionsRef=null;exports.__subscriberRef=null;exports.__interactionsRef={current:new Set};exports.__subscriberRef={current:null};var m=null;m=new Set;function n(e){var d=!1,a=null;m.forEach(function(c){try{c.onInteractionTraced(e)}catch(b){d||(d=!0,a=b)}});if(d)throw a;}function p(e){var d=!1,a=null;m.forEach(function(c){try{c.onInteractionScheduledWorkCompleted(e)}catch(b){d||(d=!0,a=b)}});if(d)throw a;}
10 -function q(e,d){var a=!1,c=null;m.forEach(function(b){try{b.onWorkScheduled(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}function r(e,d){var a=!1,c=null;m.forEach(function(b){try{b.onWorkStarted(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}function t(e,d){var a=!1,c=null;m.forEach(function(b){try{b.onWorkStopped(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}function u(e,d){var a=!1,c=null;m.forEach(function(b){try{b.onWorkCanceled(e,d)}catch(f){a||(a=!0,c=f)}});if(a)throw c;}
11 -exports.unstable_clear=function(e){var d=exports.__interactionsRef.current;exports.__interactionsRef.current=new Set;try{return e()}finally{exports.__interactionsRef.current=d}};exports.unstable_getCurrent=function(){return exports.__interactionsRef.current};exports.unstable_getThreadID=function(){return++l};
12 -exports.unstable_subscribe=function(e){m.add(e);1===m.size&&(exports.__subscriberRef.current={onInteractionScheduledWorkCompleted:p,onInteractionTraced:n,onWorkCanceled:u,onWorkScheduled:q,onWorkStarted:r,onWorkStopped:t})};
13 -exports.unstable_trace=function(e,d,a){var c=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,b={__count:1,id:g++,name:e,timestamp:d},f=exports.__interactionsRef.current,k=new Set(f);k.add(b);exports.__interactionsRef.current=k;var h=exports.__subscriberRef.current;try{if(null!==h)h.onInteractionTraced(b)}finally{try{if(null!==h)h.onWorkStarted(k,c)}finally{try{var v=a()}finally{exports.__interactionsRef.current=f;try{if(null!==h)h.onWorkStopped(k,c)}finally{if(b.__count--,null!==h&&0===b.__count)h.onInteractionScheduledWorkCompleted(b)}}}}return v};
14 -exports.unstable_unsubscribe=function(e){m.delete(e);0===m.size&&(exports.__subscriberRef.current=null)};
15 -exports.unstable_wrap=function(e){function d(){var d=exports.__interactionsRef.current;exports.__interactionsRef.current=c;b=exports.__subscriberRef.current;try{try{if(null!==b)b.onWorkStarted(c,a)}finally{try{var h=e.apply(void 0,arguments)}finally{if(exports.__interactionsRef.current=d,null!==b)b.onWorkStopped(c,a)}}return h}finally{f||(f=!0,c.forEach(function(a){a.__count--;if(null!==b&&0===a.__count)b.onInteractionScheduledWorkCompleted(a)}))}}var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
16 -0,c=exports.__interactionsRef.current,b=exports.__subscriberRef.current;if(null!==b)b.onWorkScheduled(c,a);c.forEach(function(a){a.__count++});var f=!1;d.cancel=function(){b=exports.__subscriberRef.current;try{if(null!==b)b.onWorkCanceled(c,a)}finally{c.forEach(function(a){a.__count--;if(b&&0===a.__count)b.onInteractionScheduledWorkCompleted(a)})}};return d};
1 -/** @license React v0.20.1
2 - * scheduler-unstable_mock.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';var f=0,g=null,h=null,k=-1,l=null,m=-1,n=!1,p=!1,q=!1,r=!1;function t(){return-1!==m&&null!==l&&l.length>=m||r&&q?n=!0:!1}function x(){if(p)throw Error("Already flushing work.");if(null!==g){var a=g;p=!0;try{var b=!0;do b=a(!0,f);while(b);b||(g=null);return!0}finally{p=!1}}else return!1}function z(a,b){var c=a.length;a.push(b);a:for(;;){var d=c-1>>>1,e=a[d];if(void 0!==e&&0<A(e,b))a[d]=b,a[c]=e,c=d;else break a}}function B(a){a=a[0];return void 0===a?null:a}
10 -function C(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 u=2*(d+1)-1,v=a[u],w=u+1,y=a[w];if(void 0!==v&&0>A(v,c))void 0!==y&&0>A(y,v)?(a[d]=y,a[w]=c,d=w):(a[d]=v,a[u]=c,d=u);else if(void 0!==y&&0>A(y,c))a[d]=y,a[w]=c,d=w;else break a}}return b}return null}function A(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var D=[],E=[],F=1,G=null,H=3,I=!1,J=!1,K=!1;
11 -function L(a){for(var b=B(E);null!==b;){if(null===b.callback)C(E);else if(b.startTime<=a)C(E),b.sortIndex=b.expirationTime,z(D,b);else break;b=B(E)}}function M(a){K=!1;L(a);if(!J)if(null!==B(D))J=!0,g=N;else{var b=B(E);null!==b&&(a=b.startTime-a,h=M,k=f+a)}}
12 -function N(a,b){J=!1;K&&(K=!1,h=null,k=-1);I=!0;var c=H;try{L(b);for(G=B(D);null!==G&&(!(G.expirationTime>b)||a&&!t());){var d=G.callback;if("function"===typeof d){G.callback=null;H=G.priorityLevel;var e=d(G.expirationTime<=b);b=f;"function"===typeof e?G.callback=e:G===B(D)&&C(D);L(b)}else C(D);G=B(D)}if(null!==G)var u=!0;else{var v=B(E);if(null!==v){var w=v.startTime-b;h=M;k=f+w}u=!1}return u}finally{G=null,H=c,I=!1}}exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;
13 -exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_advanceTime=function(a){"disabledLog"!==console.log.name&&(f+=a,null!==h&&k<=f&&(h(f),k=-1,h=null))};exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_clearYields=function(){if(null===l)return[];var a=l;l=null;return a};exports.unstable_continueExecution=function(){J||I||(J=!0,g=N)};
14 -exports.unstable_flushAll=function(){if(null!==l)throw Error("Log is not empty. Assert on the log of yielded values before flushing additional work.");x();if(null!==l)throw Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])");};exports.unstable_flushAllWithoutAsserting=x;
15 -exports.unstable_flushExpired=function(){if(p)throw Error("Already flushing work.");if(null!==g){p=!0;try{g(!1,f)||(g=null)}finally{p=!1}}};exports.unstable_flushNumberOfYields=function(a){if(p)throw Error("Already flushing work.");if(null!==g){var b=g;m=a;p=!0;try{a=!0;do a=b(!0,f);while(a&&!n);a||(g=null)}finally{m=-1,p=n=!1}}};
16 -exports.unstable_flushUntilNextPaint=function(){if(p)throw Error("Already flushing work.");if(null!==g){var a=g;r=!0;q=!1;p=!0;try{var b=!0;do b=a(!0,f);while(b&&!n);b||(g=null)}finally{p=n=r=!1}}};exports.unstable_forceFrameRate=function(){};exports.unstable_getCurrentPriorityLevel=function(){return H};exports.unstable_getFirstCallbackNode=function(){return B(D)};exports.unstable_next=function(a){switch(H){case 1:case 2:case 3:var b=3;break;default:b=H}var c=H;H=b;try{return a()}finally{H=c}};
17 -exports.unstable_now=function(){return f};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=function(){q=!0};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=H;H=a;try{return b()}finally{H=c}};
18 -exports.unstable_scheduleCallback=function(a,b,c){var d=f;"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:F++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,z(E,a),null===B(D)&&a===B(E)&&(K?(h=null,k=-1):K=!0,h=M,k=f+(c-d))):(a.sortIndex=e,z(D,a),J||I||(J=!0,g=N));return a};exports.unstable_shouldYield=t;
19 -exports.unstable_wrapCallback=function(a){var b=H;return function(){var c=H;H=b;try{return a.apply(this,arguments)}finally{H=c}}};exports.unstable_yieldValue=function(a){"disabledLog"!==console.log.name&&(null===l?l=[a]:l.push(a))};
1 -/** @license React v0.20.1
2 - * scheduler-unstable_post_task.development.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -'use strict';
11 -
12 -if (process.env.NODE_ENV !== "production") {
13 - (function() {
14 -'use strict';
15 -
16 -// TODO: Use symbols?
17 -var ImmediatePriority = 1;
18 -var UserBlockingPriority = 2;
19 -var NormalPriority = 3;
20 -var LowPriority = 4;
21 -var IdlePriority = 5;
22 -
23 -var perf = window.performance;
24 -var setTimeout = window.setTimeout; // Use experimental Chrome Scheduler postTask API.
25 -
26 -var scheduler = global.scheduler;
27 -var getCurrentTime = perf.now.bind(perf);
28 -var unstable_now = getCurrentTime; // Scheduler periodically yields in case there is other work on the main
29 -// thread, like user events. By default, it yields multiple times per frame.
30 -// It does not attempt to align with frame boundaries, since most tasks don't
31 -// need to be frame aligned; for those that do, use requestAnimationFrame.
32 -
33 -var yieldInterval = 5;
34 -var deadline = 0;
35 -var currentPriorityLevel_DEPRECATED = NormalPriority; // `isInputPending` is not available. Since we have no way of knowing if
36 -// there's pending input, always yield at the end of the frame.
37 -
38 -function unstable_shouldYield() {
39 - return getCurrentTime() >= deadline;
40 -}
41 -function unstable_requestPaint() {// Since we yield every frame regardless, `requestPaint` has no effect.
42 -}
43 -function unstable_scheduleCallback(priorityLevel, callback, options) {
44 - var postTaskPriority;
45 -
46 - switch (priorityLevel) {
47 - case ImmediatePriority:
48 - case UserBlockingPriority:
49 - postTaskPriority = 'user-blocking';
50 - break;
51 -
52 - case LowPriority:
53 - case NormalPriority:
54 - postTaskPriority = 'user-visible';
55 - break;
56 -
57 - case IdlePriority:
58 - postTaskPriority = 'background';
59 - break;
60 -
61 - default:
62 - postTaskPriority = 'user-visible';
63 - break;
64 - }
65 -
66 - var controller = new TaskController();
67 - var postTaskOptions = {
68 - priority: postTaskPriority,
69 - delay: typeof options === 'object' && options !== null ? options.delay : 0,
70 - signal: controller.signal
71 - };
72 - var node = {
73 - _controller: controller
74 - };
75 - scheduler.postTask(runTask.bind(null, priorityLevel, postTaskPriority, node, callback), postTaskOptions).catch(handleAbortError);
76 - return node;
77 -}
78 -
79 -function runTask(priorityLevel, postTaskPriority, node, callback) {
80 - deadline = getCurrentTime() + yieldInterval;
81 -
82 - try {
83 - currentPriorityLevel_DEPRECATED = priorityLevel;
84 - var _didTimeout_DEPRECATED = false;
85 - var result = callback(_didTimeout_DEPRECATED);
86 -
87 - if (typeof result === 'function') {
88 - // Assume this is a continuation
89 - var continuation = result;
90 - var continuationController = new TaskController();
91 - var continuationOptions = {
92 - priority: postTaskPriority,
93 - signal: continuationController.signal
94 - }; // Update the original callback node's controller, since even though we're
95 - // posting a new task, conceptually it's the same one.
96 -
97 - node._controller = continuationController;
98 - scheduler.postTask(runTask.bind(null, priorityLevel, postTaskPriority, node, continuation), continuationOptions).catch(handleAbortError);
99 - }
100 - } catch (error) {
101 - // We're inside a `postTask` promise. If we don't handle this error, then it
102 - // will trigger an "Unhandled promise rejection" error. We don't want that,
103 - // but we do want the default error reporting behavior that normal
104 - // (non-Promise) tasks get for unhandled errors.
105 - //
106 - // So we'll re-throw the error inside a regular browser task.
107 - setTimeout(function () {
108 - throw error;
109 - });
110 - } finally {
111 - currentPriorityLevel_DEPRECATED = NormalPriority;
112 - }
113 -}
114 -
115 -function handleAbortError(error) {// Abort errors are an implementation detail. We don't expose the
116 - // TaskController to the user, nor do we expose the promise that is returned
117 - // from `postTask`. So we should suppress them, since there's no way for the
118 - // user to handle them.
119 -}
120 -
121 -function unstable_cancelCallback(node) {
122 - var controller = node._controller;
123 - controller.abort();
124 -}
125 -function unstable_runWithPriority(priorityLevel, callback) {
126 - var previousPriorityLevel = currentPriorityLevel_DEPRECATED;
127 - currentPriorityLevel_DEPRECATED = priorityLevel;
128 -
129 - try {
130 - return callback();
131 - } finally {
132 - currentPriorityLevel_DEPRECATED = previousPriorityLevel;
133 - }
134 -}
135 -function unstable_getCurrentPriorityLevel() {
136 - return currentPriorityLevel_DEPRECATED;
137 -}
138 -function unstable_next(callback) {
139 - var priorityLevel;
140 -
141 - switch (currentPriorityLevel_DEPRECATED) {
142 - case ImmediatePriority:
143 - case UserBlockingPriority:
144 - case NormalPriority:
145 - // Shift down to normal priority
146 - priorityLevel = NormalPriority;
147 - break;
148 -
149 - default:
150 - // Anything lower than normal priority should remain at the current level.
151 - priorityLevel = currentPriorityLevel_DEPRECATED;
152 - break;
153 - }
154 -
155 - var previousPriorityLevel = currentPriorityLevel_DEPRECATED;
156 - currentPriorityLevel_DEPRECATED = priorityLevel;
157 -
158 - try {
159 - return callback();
160 - } finally {
161 - currentPriorityLevel_DEPRECATED = previousPriorityLevel;
162 - }
163 -}
164 -function unstable_wrapCallback(callback) {
165 - var parentPriorityLevel = currentPriorityLevel_DEPRECATED;
166 - return function () {
167 - var previousPriorityLevel = currentPriorityLevel_DEPRECATED;
168 - currentPriorityLevel_DEPRECATED = parentPriorityLevel;
169 -
170 - try {
171 - return callback();
172 - } finally {
173 - currentPriorityLevel_DEPRECATED = previousPriorityLevel;
174 - }
175 - };
176 -}
177 -function unstable_forceFrameRate() {}
178 -function unstable_pauseExecution() {}
179 -function unstable_continueExecution() {}
180 -function unstable_getFirstCallbackNode() {
181 - return null;
182 -} // Currently no profiling build
183 -
184 -var unstable_Profiling = null;
185 -
186 -exports.unstable_IdlePriority = IdlePriority;
187 -exports.unstable_ImmediatePriority = ImmediatePriority;
188 -exports.unstable_LowPriority = LowPriority;
189 -exports.unstable_NormalPriority = NormalPriority;
190 -exports.unstable_Profiling = unstable_Profiling;
191 -exports.unstable_UserBlockingPriority = UserBlockingPriority;
192 -exports.unstable_cancelCallback = unstable_cancelCallback;
193 -exports.unstable_continueExecution = unstable_continueExecution;
194 -exports.unstable_forceFrameRate = unstable_forceFrameRate;
195 -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
196 -exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
197 -exports.unstable_next = unstable_next;
198 -exports.unstable_now = unstable_now;
199 -exports.unstable_pauseExecution = unstable_pauseExecution;
200 -exports.unstable_requestPaint = unstable_requestPaint;
201 -exports.unstable_runWithPriority = unstable_runWithPriority;
202 -exports.unstable_scheduleCallback = unstable_scheduleCallback;
203 -exports.unstable_shouldYield = unstable_shouldYield;
204 -exports.unstable_wrapCallback = unstable_wrapCallback;
205 - })();
206 -}
1 -/** @license React v0.20.1
2 - * scheduler-unstable_post_task.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';var a=window.performance,g=window.setTimeout,h=global.scheduler,k=a.now.bind(a),l=0,m=3;function p(c,d,b,f){l=k()+5;try{m=c;var e=f(!1);if("function"===typeof e){var n=new TaskController,r={priority:d,signal:n.signal};b._controller=n;h.postTask(p.bind(null,c,d,b,e),r).catch(q)}}catch(t){g(function(){throw t;})}finally{m=3}}function q(){}exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;
10 -exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(c){c._controller.abort()};exports.unstable_continueExecution=function(){};exports.unstable_forceFrameRate=function(){};exports.unstable_getCurrentPriorityLevel=function(){return m};exports.unstable_getFirstCallbackNode=function(){return null};exports.unstable_next=function(c){switch(m){case 1:case 2:case 3:var d=3;break;default:d=m}var b=m;m=d;try{return c()}finally{m=b}};
11 -exports.unstable_now=k;exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(c,d){var b=m;m=c;try{return d()}finally{m=b}};
12 -exports.unstable_scheduleCallback=function(c,d,b){switch(c){case 1:case 2:var f="user-blocking";break;case 4:case 3:f="user-visible";break;case 5:f="background";break;default:f="user-visible"}var e=new TaskController;b={priority:f,delay:"object"===typeof b&&null!==b?b.delay:0,signal:e.signal};e={_controller:e};h.postTask(p.bind(null,c,f,e,d),b).catch(q);return e};exports.unstable_shouldYield=function(){return k()>=l};
13 -exports.unstable_wrapCallback=function(c){var d=m;return function(){var b=m;m=d;try{return c()}finally{m=b}}};
This diff is collapsed. Click to expand it.
1 -/** @license React v0.20.1
2 - * scheduler.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -'use strict';var f,g,h,k;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}
10 -if("undefined"===typeof window||"function"!==typeof MessageChannel){var t=null,u=null,w=function(){if(null!==t)try{var a=exports.unstable_now();t(!0,a);t=null}catch(b){throw setTimeout(w,0),b;}};f=function(a){null!==t?setTimeout(f,0,a):(t=a,setTimeout(w,0))};g=function(a,b){u=setTimeout(a,b)};h=function(){clearTimeout(u)};exports.unstable_shouldYield=function(){return!1};k=exports.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,y=window.clearTimeout;if("undefined"!==typeof console){var z=
11 -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://reactjs.org/link/react-polyfills");"function"!==typeof z&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var A=!1,B=null,C=-1,D=5,E=0;exports.unstable_shouldYield=function(){return exports.unstable_now()>=
12 -E};k=function(){};exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<a?Math.floor(1E3/a):5};var F=new MessageChannel,G=F.port2;F.port1.onmessage=function(){if(null!==B){var a=exports.unstable_now();E=a+D;try{B(!0,a)?G.postMessage(null):(A=!1,B=null)}catch(b){throw G.postMessage(null),b;}}else A=!1};f=function(a){B=a;A||(A=!0,G.postMessage(null))};g=function(a,b){C=
13 -x(function(){a(exports.unstable_now())},b)};h=function(){y(C);C=-1}}function H(a,b){var c=a.length;a.push(b);a:for(;;){var d=c-1>>>1,e=a[d];if(void 0!==e&&0<I(e,b))a[d]=b,a[c]=e,c=d;else break a}}function J(a){a=a[0];return void 0===a?null:a}
14 -function K(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 m=2*(d+1)-1,n=a[m],v=m+1,r=a[v];if(void 0!==n&&0>I(n,c))void 0!==r&&0>I(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>I(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function I(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var L=[],M=[],N=1,O=null,P=3,Q=!1,R=!1,S=!1;
15 -function T(a){for(var b=J(M);null!==b;){if(null===b.callback)K(M);else if(b.startTime<=a)K(M),b.sortIndex=b.expirationTime,H(L,b);else break;b=J(M)}}function U(a){S=!1;T(a);if(!R)if(null!==J(L))R=!0,f(V);else{var b=J(M);null!==b&&g(U,b.startTime-a)}}
16 -function V(a,b){R=!1;S&&(S=!1,h());Q=!0;var c=P;try{T(b);for(O=J(L);null!==O&&(!(O.expirationTime>b)||a&&!exports.unstable_shouldYield());){var d=O.callback;if("function"===typeof d){O.callback=null;P=O.priorityLevel;var e=d(O.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?O.callback=e:O===J(L)&&K(L);T(b)}else K(L);O=J(L)}if(null!==O)var m=!0;else{var n=J(M);null!==n&&g(U,n.startTime-b);m=!1}return m}finally{O=null,P=c,Q=!1}}var W=k;exports.unstable_IdlePriority=5;
17 -exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){R||Q||(R=!0,f(V))};exports.unstable_getCurrentPriorityLevel=function(){return P};exports.unstable_getFirstCallbackNode=function(){return J(L)};
18 -exports.unstable_next=function(a){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P}var c=P;P=b;try{return a()}finally{P=c}};exports.unstable_pauseExecution=function(){};exports.unstable_requestPaint=W;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=P;P=a;try{return b()}finally{P=c}};
19 -exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:N++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,H(M,a),null===J(L)&&a===J(M)&&(S?h():S=!0,g(U,c-d))):(a.sortIndex=e,H(L,a),R||Q||(R=!0,f(V)));return a};
20 -exports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;try{return a.apply(this,arguments)}finally{P=c}}};
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/scheduler.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/scheduler.development.js');
7 -}
1 -{
2 - "_from": "scheduler@^0.20.1",
3 - "_id": "scheduler@0.20.1",
4 - "_inBundle": false,
5 - "_integrity": "sha512-LKTe+2xNJBNxu/QhHvDR14wUXHRQbVY5ZOYpOGWRzhydZUqrLb2JBvLPY7cAqFmqrWuDED0Mjk7013SZiOz6Bw==",
6 - "_location": "/scheduler",
7 - "_phantomChildren": {},
8 - "_requested": {
9 - "type": "range",
10 - "registry": true,
11 - "raw": "scheduler@^0.20.1",
12 - "name": "scheduler",
13 - "escapedName": "scheduler",
14 - "rawSpec": "^0.20.1",
15 - "saveSpec": null,
16 - "fetchSpec": "^0.20.1"
17 - },
18 - "_requiredBy": [
19 - "/react-dom"
20 - ],
21 - "_resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.1.tgz",
22 - "_shasum": "da0b907e24026b01181ecbc75efdc7f27b5a000c",
23 - "_spec": "scheduler@^0.20.1",
24 - "_where": "C:\\Users\\daou\\Desktop\\HealthProtector\\node_modules\\react-dom",
25 - "browserify": {
26 - "transform": [
27 - "loose-envify"
28 - ]
29 - },
30 - "bugs": {
31 - "url": "https://github.com/facebook/react/issues"
32 - },
33 - "bundleDependencies": false,
34 - "dependencies": {
35 - "loose-envify": "^1.1.0",
36 - "object-assign": "^4.1.1"
37 - },
38 - "deprecated": false,
39 - "description": "Cooperative scheduler for the browser environment.",
40 - "files": [
41 - "LICENSE",
42 - "README.md",
43 - "build-info.json",
44 - "index.js",
45 - "tracing.js",
46 - "tracing-profiling.js",
47 - "unstable_mock.js",
48 - "unstable_post_task.js",
49 - "cjs/",
50 - "umd/"
51 - ],
52 - "homepage": "https://reactjs.org/",
53 - "keywords": [
54 - "react"
55 - ],
56 - "license": "MIT",
57 - "main": "index.js",
58 - "name": "scheduler",
59 - "repository": {
60 - "type": "git",
61 - "url": "git+https://github.com/facebook/react.git",
62 - "directory": "packages/scheduler"
63 - },
64 - "version": "0.20.1"
65 -}
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/scheduler-tracing.profiling.min.js');
5 -} else {
6 - module.exports = require('./cjs/scheduler-tracing.development.js');
7 -}
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/scheduler-tracing.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/scheduler-tracing.development.js');
7 -}
1 -/**
2 - * @license React
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -'use strict';
11 -
12 -(function(global, factory) {
13 - // eslint-disable-next-line no-unused-expressions
14 - typeof exports === 'object' && typeof module !== 'undefined'
15 - ? (module.exports = factory(require('react')))
16 - : typeof define === 'function' && define.amd // eslint-disable-line no-undef
17 - ? define(['react'], factory) // eslint-disable-line no-undef
18 - : (global.SchedulerTracing = factory(global));
19 -})(this, function(global) {
20 - function unstable_clear() {
21 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_clear.apply(
22 - this,
23 - arguments
24 - );
25 - }
26 -
27 - function unstable_getCurrent() {
28 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getCurrent.apply(
29 - this,
30 - arguments
31 - );
32 - }
33 -
34 - function unstable_getThreadID() {
35 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getThreadID.apply(
36 - this,
37 - arguments
38 - );
39 - }
40 -
41 - function unstable_subscribe() {
42 - // eslint-disable-next-line max-len
43 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_subscribe.apply(
44 - this,
45 - arguments
46 - );
47 - }
48 -
49 - function unstable_trace() {
50 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_trace.apply(
51 - this,
52 - arguments
53 - );
54 - }
55 -
56 - function unstable_unsubscribe() {
57 - // eslint-disable-next-line max-len
58 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_unsubscribe.apply(
59 - this,
60 - arguments
61 - );
62 - }
63 -
64 - function unstable_wrap() {
65 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_wrap.apply(
66 - this,
67 - arguments
68 - );
69 - }
70 -
71 - return Object.freeze({
72 - unstable_clear: unstable_clear,
73 - unstable_getCurrent: unstable_getCurrent,
74 - unstable_getThreadID: unstable_getThreadID,
75 - unstable_subscribe: unstable_subscribe,
76 - unstable_trace: unstable_trace,
77 - unstable_unsubscribe: unstable_unsubscribe,
78 - unstable_wrap: unstable_wrap,
79 - });
80 -});
1 -/**
2 - * @license React
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -'use strict';
11 -
12 -(function(global, factory) {
13 - // eslint-disable-next-line no-unused-expressions
14 - typeof exports === 'object' && typeof module !== 'undefined'
15 - ? (module.exports = factory(require('react')))
16 - : typeof define === 'function' && define.amd // eslint-disable-line no-undef
17 - ? define(['react'], factory) // eslint-disable-line no-undef
18 - : (global.SchedulerTracing = factory(global));
19 -})(this, function(global) {
20 - function unstable_clear() {
21 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_clear.apply(
22 - this,
23 - arguments
24 - );
25 - }
26 -
27 - function unstable_getCurrent() {
28 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getCurrent.apply(
29 - this,
30 - arguments
31 - );
32 - }
33 -
34 - function unstable_getThreadID() {
35 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getThreadID.apply(
36 - this,
37 - arguments
38 - );
39 - }
40 -
41 - function unstable_subscribe() {
42 - // eslint-disable-next-line max-len
43 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_subscribe.apply(
44 - this,
45 - arguments
46 - );
47 - }
48 -
49 - function unstable_trace() {
50 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_trace.apply(
51 - this,
52 - arguments
53 - );
54 - }
55 -
56 - function unstable_unsubscribe() {
57 - // eslint-disable-next-line max-len
58 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_unsubscribe.apply(
59 - this,
60 - arguments
61 - );
62 - }
63 -
64 - function unstable_wrap() {
65 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_wrap.apply(
66 - this,
67 - arguments
68 - );
69 - }
70 -
71 - return Object.freeze({
72 - unstable_clear: unstable_clear,
73 - unstable_getCurrent: unstable_getCurrent,
74 - unstable_getThreadID: unstable_getThreadID,
75 - unstable_subscribe: unstable_subscribe,
76 - unstable_trace: unstable_trace,
77 - unstable_unsubscribe: unstable_unsubscribe,
78 - unstable_wrap: unstable_wrap,
79 - });
80 -});
1 -/**
2 - * @license React
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -'use strict';
11 -
12 -(function(global, factory) {
13 - // eslint-disable-next-line no-unused-expressions
14 - typeof exports === 'object' && typeof module !== 'undefined'
15 - ? (module.exports = factory(require('react')))
16 - : typeof define === 'function' && define.amd // eslint-disable-line no-undef
17 - ? define(['react'], factory) // eslint-disable-line no-undef
18 - : (global.SchedulerTracing = factory(global));
19 -})(this, function(global) {
20 - function unstable_clear() {
21 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_clear.apply(
22 - this,
23 - arguments
24 - );
25 - }
26 -
27 - function unstable_getCurrent() {
28 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getCurrent.apply(
29 - this,
30 - arguments
31 - );
32 - }
33 -
34 - function unstable_getThreadID() {
35 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getThreadID.apply(
36 - this,
37 - arguments
38 - );
39 - }
40 -
41 - function unstable_subscribe() {
42 - // eslint-disable-next-line max-len
43 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_subscribe.apply(
44 - this,
45 - arguments
46 - );
47 - }
48 -
49 - function unstable_trace() {
50 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_trace.apply(
51 - this,
52 - arguments
53 - );
54 - }
55 -
56 - function unstable_unsubscribe() {
57 - // eslint-disable-next-line max-len
58 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_unsubscribe.apply(
59 - this,
60 - arguments
61 - );
62 - }
63 -
64 - function unstable_wrap() {
65 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_wrap.apply(
66 - this,
67 - arguments
68 - );
69 - }
70 -
71 - return Object.freeze({
72 - unstable_clear: unstable_clear,
73 - unstable_getCurrent: unstable_getCurrent,
74 - unstable_getThreadID: unstable_getThreadID,
75 - unstable_subscribe: unstable_subscribe,
76 - unstable_trace: unstable_trace,
77 - unstable_unsubscribe: unstable_unsubscribe,
78 - unstable_wrap: unstable_wrap,
79 - });
80 -});
1 -/** @license React v0.20.1
2 - * scheduler-unstable_mock.production.min.js
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -(function(){'use strict';(function(a,v){"object"===typeof exports&&"undefined"!==typeof module?v(exports):"function"===typeof define&&define.amd?define(["exports"],v):(a=a||self,v(a.SchedulerMock={}))})(this,function(a){function v(){return-1!==y&&null!==k&&k.length>=y||C&&D?r=!0:!1}function I(){if(f)throw Error("Already flushing work.");if(null!==e){var b=e;f=!0;try{var h=!0;do h=b(!0,g);while(h);h||(e=null);return!0}finally{f=!1}}else return!1}function E(b,h){var c=b.length;b.push(h);a:for(;;){var a=c-1>>>1,
10 -w=b[a];if(void 0!==w&&0<z(w,h))b[a]=h,b[c]=w,c=a;else break a}}function m(b){b=b[0];return void 0===b?null:b}function A(b){var h=b[0];if(void 0!==h){var c=b.pop();if(c!==h){b[0]=c;a:for(var a=0,w=b.length;a<w;){var d=2*(a+1)-1,e=b[d],g=d+1,f=b[g];if(void 0!==e&&0>z(e,c))void 0!==f&&0>z(f,e)?(b[a]=f,b[g]=c,a=g):(b[a]=e,b[d]=c,a=d);else if(void 0!==f&&0>z(f,c))b[a]=f,b[g]=c,a=g;else break a}}return h}return null}function z(b,h){var a=b.sortIndex-h.sortIndex;return 0!==a?a:b.id-h.id}function F(b){for(var a=
11 -m(p);null!==a;){if(null===a.callback)A(p);else if(a.startTime<=b)A(p),a.sortIndex=a.expirationTime,E(n,a);else break;a=m(p)}}function G(b){x=!1;F(b);if(!t)if(null!==m(n))t=!0,e=H;else{var a=m(p);null!==a&&(b=a.startTime-b,q=G,u=g+b)}}function H(b,a){t=!1;x&&(x=!1,q=null,u=-1);B=!0;var c=d;try{F(a);for(l=m(n);null!==l&&(!(l.expirationTime>a)||b&&!v());){var h=l.callback;if("function"===typeof h){l.callback=null;d=l.priorityLevel;var e=h(l.expirationTime<=a);a=g;"function"===typeof e?l.callback=e:l===
12 -m(n)&&A(n);F(a)}else A(n);l=m(n)}if(null!==l)var f=!0;else{var k=m(p);if(null!==k){var r=k.startTime-a;q=G;u=g+r}f=!1}return f}finally{l=null,d=c,B=!1}}var g=0,e=null,q=null,u=-1,k=null,y=-1,r=!1,f=!1,D=!1,C=!1,n=[],p=[],J=1,l=null,d=3,B=!1,t=!1,x=!1;a.unstable_IdlePriority=5;a.unstable_ImmediatePriority=1;a.unstable_LowPriority=4;a.unstable_NormalPriority=3;a.unstable_Profiling=null;a.unstable_UserBlockingPriority=2;a.unstable_advanceTime=function(b){"disabledLog"!==console.log.name&&(g+=b,null!==
13 -q&&u<=g&&(q(g),u=-1,q=null))};a.unstable_cancelCallback=function(b){b.callback=null};a.unstable_clearYields=function(){if(null===k)return[];var b=k;k=null;return b};a.unstable_continueExecution=function(){t||B||(t=!0,e=H)};a.unstable_flushAll=function(){if(null!==k)throw Error("Log is not empty. Assert on the log of yielded values before flushing additional work.");I();if(null!==k)throw Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])");
14 -};a.unstable_flushAllWithoutAsserting=I;a.unstable_flushExpired=function(){if(f)throw Error("Already flushing work.");if(null!==e){f=!0;try{e(!1,g)||(e=null)}finally{f=!1}}};a.unstable_flushNumberOfYields=function(b){if(f)throw Error("Already flushing work.");if(null!==e){var a=e;y=b;f=!0;try{b=!0;do b=a(!0,g);while(b&&!r);b||(e=null)}finally{y=-1,f=r=!1}}};a.unstable_flushUntilNextPaint=function(){if(f)throw Error("Already flushing work.");if(null!==e){var b=e;C=!0;D=!1;f=!0;try{var a=!0;do a=b(!0,
15 -g);while(a&&!r);a||(e=null)}finally{f=r=C=!1}}};a.unstable_forceFrameRate=function(){};a.unstable_getCurrentPriorityLevel=function(){return d};a.unstable_getFirstCallbackNode=function(){return m(n)};a.unstable_next=function(b){switch(d){case 1:case 2:case 3:var a=3;break;default:a=d}var c=d;d=a;try{return b()}finally{d=c}};a.unstable_now=function(){return g};a.unstable_pauseExecution=function(){};a.unstable_requestPaint=function(){D=!0};a.unstable_runWithPriority=function(a,e){switch(a){case 1:case 2:case 3:case 4:case 5:break;
16 -default:a=3}var b=d;d=a;try{return e()}finally{d=b}};a.unstable_scheduleCallback=function(a,f,c){var b=g;"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?b+c:b):c=b;switch(a){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=1E4;break;default:d=5E3}d=c+d;a={id:J++,callback:f,priorityLevel:a,startTime:c,expirationTime:d,sortIndex:-1};c>b?(a.sortIndex=c,E(p,a),null===m(n)&&a===m(p)&&(x?(q=null,u=-1):x=!0,q=G,u=g+(c-b))):(a.sortIndex=d,E(n,a),t||B||(t=!0,
17 -e=H));return a};a.unstable_shouldYield=v;a.unstable_wrapCallback=function(a){var b=d;return function(){var c=d;d=b;try{return a.apply(this,arguments)}finally{d=c}}};a.unstable_yieldValue=function(a){"disabledLog"!==console.log.name&&(null===k?k=[a]:k.push(a))}});
18 -})();
1 -/**
2 - * @license React
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -/* eslint-disable max-len */
11 -
12 -'use strict';
13 -
14 -(function(global, factory) {
15 - // eslint-disable-next-line no-unused-expressions
16 - typeof exports === 'object' && typeof module !== 'undefined'
17 - ? (module.exports = factory(require('react')))
18 - : typeof define === 'function' && define.amd // eslint-disable-line no-undef
19 - ? define(['react'], factory) // eslint-disable-line no-undef
20 - : (global.Scheduler = factory(global));
21 -})(this, function(global) {
22 - function unstable_now() {
23 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
24 - this,
25 - arguments
26 - );
27 - }
28 -
29 - function unstable_scheduleCallback() {
30 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
31 - this,
32 - arguments
33 - );
34 - }
35 -
36 - function unstable_cancelCallback() {
37 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
38 - this,
39 - arguments
40 - );
41 - }
42 -
43 - function unstable_shouldYield() {
44 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
45 - this,
46 - arguments
47 - );
48 - }
49 -
50 - function unstable_requestPaint() {
51 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
52 - this,
53 - arguments
54 - );
55 - }
56 -
57 - function unstable_runWithPriority() {
58 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
59 - this,
60 - arguments
61 - );
62 - }
63 -
64 - function unstable_next() {
65 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
66 - this,
67 - arguments
68 - );
69 - }
70 -
71 - function unstable_wrapCallback() {
72 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
73 - this,
74 - arguments
75 - );
76 - }
77 -
78 - function unstable_getCurrentPriorityLevel() {
79 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
80 - this,
81 - arguments
82 - );
83 - }
84 -
85 - function unstable_getFirstCallbackNode() {
86 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
87 - this,
88 - arguments
89 - );
90 - }
91 -
92 - function unstable_pauseExecution() {
93 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_pauseExecution.apply(
94 - this,
95 - arguments
96 - );
97 - }
98 -
99 - function unstable_continueExecution() {
100 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_continueExecution.apply(
101 - this,
102 - arguments
103 - );
104 - }
105 -
106 - function unstable_forceFrameRate() {
107 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
108 - this,
109 - arguments
110 - );
111 - }
112 -
113 - return Object.freeze({
114 - unstable_now: unstable_now,
115 - unstable_scheduleCallback: unstable_scheduleCallback,
116 - unstable_cancelCallback: unstable_cancelCallback,
117 - unstable_shouldYield: unstable_shouldYield,
118 - unstable_requestPaint: unstable_requestPaint,
119 - unstable_runWithPriority: unstable_runWithPriority,
120 - unstable_next: unstable_next,
121 - unstable_wrapCallback: unstable_wrapCallback,
122 - unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
123 - unstable_continueExecution: unstable_continueExecution,
124 - unstable_pauseExecution: unstable_pauseExecution,
125 - unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
126 - unstable_forceFrameRate: unstable_forceFrameRate,
127 - get unstable_IdlePriority() {
128 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
129 - .Scheduler.unstable_IdlePriority;
130 - },
131 - get unstable_ImmediatePriority() {
132 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
133 - .Scheduler.unstable_ImmediatePriority;
134 - },
135 - get unstable_LowPriority() {
136 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
137 - .Scheduler.unstable_LowPriority;
138 - },
139 - get unstable_NormalPriority() {
140 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
141 - .Scheduler.unstable_NormalPriority;
142 - },
143 - get unstable_UserBlockingPriority() {
144 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
145 - .Scheduler.unstable_UserBlockingPriority;
146 - },
147 - get unstable_Profiling() {
148 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
149 - .Scheduler.unstable_Profiling;
150 - },
151 - });
152 -});
1 -/**
2 - * @license React
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -/* eslint-disable max-len */
11 -
12 -'use strict';
13 -
14 -(function(global, factory) {
15 - // eslint-disable-next-line no-unused-expressions
16 - typeof exports === 'object' && typeof module !== 'undefined'
17 - ? (module.exports = factory(require('react')))
18 - : typeof define === 'function' && define.amd // eslint-disable-line no-undef
19 - ? define(['react'], factory) // eslint-disable-line no-undef
20 - : (global.Scheduler = factory(global));
21 -})(this, function(global) {
22 - function unstable_now() {
23 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
24 - this,
25 - arguments
26 - );
27 - }
28 -
29 - function unstable_scheduleCallback() {
30 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
31 - this,
32 - arguments
33 - );
34 - }
35 -
36 - function unstable_cancelCallback() {
37 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
38 - this,
39 - arguments
40 - );
41 - }
42 -
43 - function unstable_shouldYield() {
44 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
45 - this,
46 - arguments
47 - );
48 - }
49 -
50 - function unstable_requestPaint() {
51 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
52 - this,
53 - arguments
54 - );
55 - }
56 -
57 - function unstable_runWithPriority() {
58 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
59 - this,
60 - arguments
61 - );
62 - }
63 -
64 - function unstable_next() {
65 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
66 - this,
67 - arguments
68 - );
69 - }
70 -
71 - function unstable_wrapCallback() {
72 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
73 - this,
74 - arguments
75 - );
76 - }
77 -
78 - function unstable_getCurrentPriorityLevel() {
79 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
80 - this,
81 - arguments
82 - );
83 - }
84 -
85 - function unstable_getFirstCallbackNode() {
86 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
87 - this,
88 - arguments
89 - );
90 - }
91 -
92 - function unstable_pauseExecution() {
93 - return undefined;
94 - }
95 -
96 - function unstable_continueExecution() {
97 - return undefined;
98 - }
99 -
100 - function unstable_forceFrameRate() {
101 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
102 - this,
103 - arguments
104 - );
105 - }
106 -
107 - return Object.freeze({
108 - unstable_now: unstable_now,
109 - unstable_scheduleCallback: unstable_scheduleCallback,
110 - unstable_cancelCallback: unstable_cancelCallback,
111 - unstable_shouldYield: unstable_shouldYield,
112 - unstable_requestPaint: unstable_requestPaint,
113 - unstable_runWithPriority: unstable_runWithPriority,
114 - unstable_next: unstable_next,
115 - unstable_wrapCallback: unstable_wrapCallback,
116 - unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
117 - unstable_continueExecution: unstable_continueExecution,
118 - unstable_pauseExecution: unstable_pauseExecution,
119 - unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
120 - unstable_forceFrameRate: unstable_forceFrameRate,
121 - get unstable_IdlePriority() {
122 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
123 - .Scheduler.unstable_IdlePriority;
124 - },
125 - get unstable_ImmediatePriority() {
126 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
127 - .Scheduler.unstable_ImmediatePriority;
128 - },
129 - get unstable_LowPriority() {
130 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
131 - .Scheduler.unstable_LowPriority;
132 - },
133 - get unstable_NormalPriority() {
134 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
135 - .Scheduler.unstable_NormalPriority;
136 - },
137 - get unstable_UserBlockingPriority() {
138 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
139 - .Scheduler.unstable_UserBlockingPriority;
140 - },
141 - get unstable_Profiling() {
142 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
143 - .Scheduler.unstable_Profiling;
144 - },
145 - });
146 -});
1 -/**
2 - * @license React
3 - *
4 - * Copyright (c) Facebook, Inc. and its affiliates.
5 - *
6 - * This source code is licensed under the MIT license found in the
7 - * LICENSE file in the root directory of this source tree.
8 - */
9 -
10 -/* eslint-disable max-len */
11 -
12 -'use strict';
13 -
14 -(function(global, factory) {
15 - // eslint-disable-next-line no-unused-expressions
16 - typeof exports === 'object' && typeof module !== 'undefined'
17 - ? (module.exports = factory(require('react')))
18 - : typeof define === 'function' && define.amd // eslint-disable-line no-undef
19 - ? define(['react'], factory) // eslint-disable-line no-undef
20 - : (global.Scheduler = factory(global));
21 -})(this, function(global) {
22 - function unstable_now() {
23 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
24 - this,
25 - arguments
26 - );
27 - }
28 -
29 - function unstable_scheduleCallback() {
30 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
31 - this,
32 - arguments
33 - );
34 - }
35 -
36 - function unstable_cancelCallback() {
37 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
38 - this,
39 - arguments
40 - );
41 - }
42 -
43 - function unstable_shouldYield() {
44 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
45 - this,
46 - arguments
47 - );
48 - }
49 -
50 - function unstable_requestPaint() {
51 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
52 - this,
53 - arguments
54 - );
55 - }
56 -
57 - function unstable_runWithPriority() {
58 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
59 - this,
60 - arguments
61 - );
62 - }
63 -
64 - function unstable_next() {
65 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
66 - this,
67 - arguments
68 - );
69 - }
70 -
71 - function unstable_wrapCallback() {
72 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
73 - this,
74 - arguments
75 - );
76 - }
77 -
78 - function unstable_getCurrentPriorityLevel() {
79 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
80 - this,
81 - arguments
82 - );
83 - }
84 -
85 - function unstable_getFirstCallbackNode() {
86 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
87 - this,
88 - arguments
89 - );
90 - }
91 -
92 - function unstable_pauseExecution() {
93 - return undefined;
94 - }
95 -
96 - function unstable_continueExecution() {
97 - return undefined;
98 - }
99 -
100 - function unstable_forceFrameRate() {
101 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
102 - this,
103 - arguments
104 - );
105 - }
106 -
107 - return Object.freeze({
108 - unstable_now: unstable_now,
109 - unstable_scheduleCallback: unstable_scheduleCallback,
110 - unstable_cancelCallback: unstable_cancelCallback,
111 - unstable_shouldYield: unstable_shouldYield,
112 - unstable_requestPaint: unstable_requestPaint,
113 - unstable_runWithPriority: unstable_runWithPriority,
114 - unstable_next: unstable_next,
115 - unstable_wrapCallback: unstable_wrapCallback,
116 - unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
117 - unstable_continueExecution: unstable_continueExecution,
118 - unstable_pauseExecution: unstable_pauseExecution,
119 - unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
120 - unstable_forceFrameRate: unstable_forceFrameRate,
121 - get unstable_IdlePriority() {
122 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
123 - .Scheduler.unstable_IdlePriority;
124 - },
125 - get unstable_ImmediatePriority() {
126 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
127 - .Scheduler.unstable_ImmediatePriority;
128 - },
129 - get unstable_LowPriority() {
130 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
131 - .Scheduler.unstable_LowPriority;
132 - },
133 - get unstable_NormalPriority() {
134 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
135 - .Scheduler.unstable_NormalPriority;
136 - },
137 - get unstable_UserBlockingPriority() {
138 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
139 - .Scheduler.unstable_UserBlockingPriority;
140 - },
141 - get unstable_Profiling() {
142 - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
143 - .Scheduler.unstable_Profiling;
144 - },
145 - });
146 -});
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/scheduler-unstable_mock.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/scheduler-unstable_mock.development.js');
7 -}
1 -'use strict';
2 -
3 -if (process.env.NODE_ENV === 'production') {
4 - module.exports = require('./cjs/scheduler-unstable_post_task.production.min.js');
5 -} else {
6 - module.exports = require('./cjs/scheduler-unstable_post_task.development.js');
7 -}
...@@ -29,19 +29,6 @@ ...@@ -29,19 +29,6 @@
29 "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz", 29 "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
30 "integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==" 30 "integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg=="
31 }, 31 },
32 - "js-tokens": {
33 - "version": "4.0.0",
34 - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
35 - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
36 - },
37 - "loose-envify": {
38 - "version": "1.4.0",
39 - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
40 - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
41 - "requires": {
42 - "js-tokens": "^3.0.0 || ^4.0.0"
43 - }
44 - },
45 "mysql": { 32 "mysql": {
46 "version": "2.18.1", 33 "version": "2.18.1",
47 "resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz", 34 "resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz",
...@@ -53,35 +40,11 @@ ...@@ -53,35 +40,11 @@
53 "sqlstring": "2.3.1" 40 "sqlstring": "2.3.1"
54 } 41 }
55 }, 42 },
56 - "object-assign": {
57 - "version": "4.1.1",
58 - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
59 - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
60 - },
61 "process-nextick-args": { 43 "process-nextick-args": {
62 "version": "2.0.1", 44 "version": "2.0.1",
63 "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 45 "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
64 "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 46 "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
65 }, 47 },
66 - "react": {
67 - "version": "17.0.1",
68 - "resolved": "https://registry.npmjs.org/react/-/react-17.0.1.tgz",
69 - "integrity": "sha512-lG9c9UuMHdcAexXtigOZLX8exLWkW0Ku29qPRU8uhF2R9BN96dLCt0psvzPLlHc5OWkgymP3qwTRgbnw5BKx3w==",
70 - "requires": {
71 - "loose-envify": "^1.1.0",
72 - "object-assign": "^4.1.1"
73 - }
74 - },
75 - "react-dom": {
76 - "version": "17.0.1",
77 - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.1.tgz",
78 - "integrity": "sha512-6eV150oJZ9U2t9svnsspTMrWNyHc6chX0KzDeAOXftRa8bNeOKTTfCJ7KorIwenkHd2xqVTBTCZd79yk/lx/Ug==",
79 - "requires": {
80 - "loose-envify": "^1.1.0",
81 - "object-assign": "^4.1.1",
82 - "scheduler": "^0.20.1"
83 - }
84 - },
85 "readable-stream": { 48 "readable-stream": {
86 "version": "2.3.7", 49 "version": "2.3.7",
87 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 50 "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
...@@ -101,15 +64,6 @@ ...@@ -101,15 +64,6 @@
101 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 64 "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
102 "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 65 "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
103 }, 66 },
104 - "scheduler": {
105 - "version": "0.20.1",
106 - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.1.tgz",
107 - "integrity": "sha512-LKTe+2xNJBNxu/QhHvDR14wUXHRQbVY5ZOYpOGWRzhydZUqrLb2JBvLPY7cAqFmqrWuDED0Mjk7013SZiOz6Bw==",
108 - "requires": {
109 - "loose-envify": "^1.1.0",
110 - "object-assign": "^4.1.1"
111 - }
112 - },
113 "sqlstring": { 67 "sqlstring": {
114 "version": "2.3.1", 68 "version": "2.3.1",
115 "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz", 69 "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz",
...@@ -129,4 +83,4 @@ ...@@ -129,4 +83,4 @@
129 "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 83 "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
130 } 84 }
131 } 85 }
132 -} 86 +}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -8,9 +8,7 @@ ...@@ -8,9 +8,7 @@
8 }, 8 },
9 "dependencies": { 9 "dependencies": {
10 "jquery": "^3.5.1", 10 "jquery": "^3.5.1",
11 - "mysql": "^2.18.1", 11 + "mysql": "^2.18.1"
12 - "react": "^17.0.1",
13 - "react-dom": "^17.0.1"
14 }, 12 },
15 "devDependencies": {}, 13 "devDependencies": {},
16 "scripts": { 14 "scripts": {
......