feat(setup): Claude Code Desktop 자동 설치 + 30일 라이선스 + 서비스 자동 실행
[Claude Code Desktop 자동 설치 환경]
- setup/CLAUDE.md: 트리거 키워드 + 설치 패키지 설명
- setup/.claude/skills/guardia-install/SKILL.md: 6단계 설치 오케스트레이터
Phase 0: 의도 파악 → Phase 1: OS 감지 → Phase 2: 사전 확인
Phase 3: 설치 실행 → Phase 4: 라이선스 발급 → Phase 5: 검증 → Phase 6: 완료보고
[통합 자동 설치 스크립트]
- setup/install_auto.sh: Linux 통합 (OS 자동 감지 ubuntu/centos/rhel)
- --license trial30|trial7|<key> 파라미터
- 설치 완료 후 GUARDiA 자동 실행 + 브라우저 자동 열기
- --test 검증 모드
- setup/install_auto.ps1: Windows 통합 (ASCII 전용, PS 5.1 호환)
- 설치 후 NSSM 서비스 자동 시작 + 브라우저 자동 열기
- -Test 파라미터로 검증 전용 실행
[라이선스 엔진 개선]
- core/license.py: generate_trial_key(days=None) 파라미터 추가
- TRIAL_DURATION_DAYS = TRIAL_DURATION_DAYS 환경변수로 조정 가능
- routers/license.py: TrialRequest.days 필드 + 30일 체험판 지원
POST /api/license/trial {"days": 30} 로 30일 발급
사용자 경험:
1. setup/ 폴더를 새 PC에 복사
2. Claude Code Desktop 열고 해당 폴더 open
3. "GUARDiA 시스템 1달 사용자로 설치해 줘" 입력
4. 자동으로 OS 감지 → 설치 → 30일 라이선스 → 브라우저 열림
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d5df48517d
commit
abd4dde1a8
@ -1,4 +1,4 @@
|
|||||||
package kr.co.zioinfo.web.repository;
|
package kr.co.zioinfo.web.repository;
|
||||||
import kr.co.zioinfo.web.model.Inquiry;
|
import kr.co.zioinfo.web.model.Inquiry;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
public interface InquiryRepository extends JpaRepository<Inquiry, Long> {}
|
public interface InquiryRepository extends JpaRepository<Inquiry, Long> {}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
package kr.co.zioinfo.web.repository;
|
package kr.co.zioinfo.web.repository;
|
||||||
import kr.co.zioinfo.web.model.News;
|
import kr.co.zioinfo.web.model.News;
|
||||||
import org.springframework.data.domain.*;
|
import org.springframework.data.domain.*;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|||||||
49
backend/target/classes/application.yml
Normal file
49
backend/target/classes/application.yml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
server:
|
||||||
|
port: 8080
|
||||||
|
servlet:
|
||||||
|
encoding:
|
||||||
|
charset: UTF-8
|
||||||
|
force: true
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: zioinfo-web
|
||||||
|
datasource:
|
||||||
|
# SQLite — 파일 기반 DB (data/ 디렉토리 자동 생성)
|
||||||
|
url: jdbc:sqlite:./data/zioinfo.db
|
||||||
|
driver-class-name: org.sqlite.JDBC
|
||||||
|
jpa:
|
||||||
|
database-platform: org.hibernate.community.dialect.SQLiteDialect
|
||||||
|
hibernate:
|
||||||
|
ddl-auto: update # 스키마 자동 갱신 (운영: validate)
|
||||||
|
show-sql: false
|
||||||
|
properties:
|
||||||
|
hibernate:
|
||||||
|
format_sql: true
|
||||||
|
# SQLite는 foreign key 비활성 기본 → 명시 활성화
|
||||||
|
javax.persistence.schema-generation.database.action: none
|
||||||
|
mail:
|
||||||
|
host: ${MAIL_HOST:smtp.gmail.com}
|
||||||
|
port: ${MAIL_PORT:587}
|
||||||
|
username: ${MAIL_USERNAME:}
|
||||||
|
password: ${MAIL_PASSWORD:}
|
||||||
|
properties:
|
||||||
|
mail.smtp.auth: true
|
||||||
|
mail.smtp.starttls.enable: true
|
||||||
|
|
||||||
|
zioinfo:
|
||||||
|
company:
|
||||||
|
name: (주)지오정보기술
|
||||||
|
email: info@zioinfo.co.kr
|
||||||
|
phone: 02-000-0000
|
||||||
|
address: 서울특별시
|
||||||
|
cors:
|
||||||
|
allowed-origins:
|
||||||
|
- http://localhost:3000
|
||||||
|
- http://localhost:5173
|
||||||
|
- http://www.zioinfo.co.kr
|
||||||
|
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
kr.co.zioinfo: DEBUG
|
||||||
|
org.hibernate.SQL: WARN
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
backend/target/classes/kr/co/zioinfo/web/model/Inquiry.class
Normal file
BIN
backend/target/classes/kr/co/zioinfo/web/model/Inquiry.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
backend/target/classes/kr/co/zioinfo/web/model/News.class
Normal file
BIN
backend/target/classes/kr/co/zioinfo/web/model/News.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@
|
|||||||
|
kr\co\zioinfo\web\model\Inquiry.class
|
||||||
|
kr\co\zioinfo\web\controller\ApiController.class
|
||||||
|
kr\co\zioinfo\web\model\Inquiry$InquiryBuilder.class
|
||||||
|
kr\co\zioinfo\web\config\DataInitializer.class
|
||||||
|
kr\co\zioinfo\web\model\News$NewsBuilder.class
|
||||||
|
kr\co\zioinfo\web\repository\NewsRepository.class
|
||||||
|
kr\co\zioinfo\web\service\InquiryService.class
|
||||||
|
kr\co\zioinfo\web\service\NewsService.class
|
||||||
|
kr\co\zioinfo\web\model\News.class
|
||||||
|
kr\co\zioinfo\web\repository\InquiryRepository.class
|
||||||
|
kr\co\zioinfo\web\ZioinfoWebApplication.class
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\model\News.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\config\DataInitializer.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\service\NewsService.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\ZioinfoWebApplication.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\repository\InquiryRepository.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\service\InquiryService.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\controller\ApiController.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\repository\NewsRepository.java
|
||||||
|
C:\GUARDiA\workspace\zioinfo-web\backend\src\main\java\kr\co\zioinfo\web\model\Inquiry.java
|
||||||
16
frontend/node_modules/.bin/baseline-browser-mapping
generated
vendored
Normal file
16
frontend/node_modules/.bin/baseline-browser-mapping
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../baseline-browser-mapping/dist/cli.cjs" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../baseline-browser-mapping/dist/cli.cjs" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/baseline-browser-mapping.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/baseline-browser-mapping.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\baseline-browser-mapping\dist\cli.cjs" %*
|
||||||
28
frontend/node_modules/.bin/baseline-browser-mapping.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/baseline-browser-mapping.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/browserslist
generated
vendored
Normal file
16
frontend/node_modules/.bin/browserslist
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../browserslist/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../browserslist/cli.js" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/browserslist.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/browserslist.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\browserslist\cli.js" %*
|
||||||
28
frontend/node_modules/.bin/browserslist.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/browserslist.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/esbuild
generated
vendored
Normal file
16
frontend/node_modules/.bin/esbuild
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../esbuild/bin/esbuild" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../esbuild/bin/esbuild" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/esbuild.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/esbuild.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\esbuild\bin\esbuild" %*
|
||||||
28
frontend/node_modules/.bin/esbuild.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/esbuild.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/jsesc
generated
vendored
Normal file
16
frontend/node_modules/.bin/jsesc
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../jsesc/bin/jsesc" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../jsesc/bin/jsesc" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/jsesc.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/jsesc.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\jsesc\bin\jsesc" %*
|
||||||
28
frontend/node_modules/.bin/jsesc.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/jsesc.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/json5
generated
vendored
Normal file
16
frontend/node_modules/.bin/json5
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../json5/lib/cli.js" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/json5.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/json5.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\json5\lib\cli.js" %*
|
||||||
28
frontend/node_modules/.bin/json5.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/json5.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/loose-envify
generated
vendored
Normal file
16
frontend/node_modules/.bin/loose-envify
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../loose-envify/cli.js" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/loose-envify.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/loose-envify.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\loose-envify\cli.js" %*
|
||||||
28
frontend/node_modules/.bin/loose-envify.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/loose-envify.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/nanoid
generated
vendored
Normal file
16
frontend/node_modules/.bin/nanoid
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/nanoid.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/nanoid.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nanoid\bin\nanoid.cjs" %*
|
||||||
28
frontend/node_modules/.bin/nanoid.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/nanoid.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/parser
generated
vendored
Normal file
16
frontend/node_modules/.bin/parser
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/parser.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/parser.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\@babel\parser\bin\babel-parser.js" %*
|
||||||
28
frontend/node_modules/.bin/parser.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/parser.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/rollup
generated
vendored
Normal file
16
frontend/node_modules/.bin/rollup
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/rollup.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/rollup.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rollup\dist\bin\rollup" %*
|
||||||
28
frontend/node_modules/.bin/rollup.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/rollup.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/semver
generated
vendored
Normal file
16
frontend/node_modules/.bin/semver
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/semver.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/semver.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver.js" %*
|
||||||
28
frontend/node_modules/.bin/semver.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/semver.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/update-browserslist-db
generated
vendored
Normal file
16
frontend/node_modules/.bin/update-browserslist-db
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../update-browserslist-db/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../update-browserslist-db/cli.js" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/update-browserslist-db.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/update-browserslist-db.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\update-browserslist-db\cli.js" %*
|
||||||
28
frontend/node_modules/.bin/update-browserslist-db.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/update-browserslist-db.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
16
frontend/node_modules/.bin/vite
generated
vendored
Normal file
16
frontend/node_modules/.bin/vite
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../vite/bin/vite.js" "$@"
|
||||||
|
fi
|
||||||
17
frontend/node_modules/.bin/vite.cmd
generated
vendored
Normal file
17
frontend/node_modules/.bin/vite.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\vite\bin\vite.js" %*
|
||||||
28
frontend/node_modules/.bin/vite.ps1
generated
vendored
Normal file
28
frontend/node_modules/.bin/vite.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
1443
frontend/node_modules/.package-lock.json
generated
vendored
Normal file
1443
frontend/node_modules/.package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3108
frontend/node_modules/.vite/deps_temp_1313ae7e/axios.js
generated
vendored
Normal file
3108
frontend/node_modules/.vite/deps_temp_1313ae7e/axios.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_1313ae7e/axios.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/axios.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1906
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-DRWLMN53.js
generated
vendored
Normal file
1906
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-DRWLMN53.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-DRWLMN53.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-DRWLMN53.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
36
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-G3PMV62Z.js
generated
vendored
Normal file
36
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-G3PMV62Z.js
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __commonJS = (cb, mod) => function __require() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||||
|
// If the importer is in node compatibility mode or this is not an ESM
|
||||||
|
// file that has been converted to a CommonJS file using a Babel-
|
||||||
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||||
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||||
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||||
|
mod
|
||||||
|
));
|
||||||
|
|
||||||
|
export {
|
||||||
|
__commonJS,
|
||||||
|
__export,
|
||||||
|
__toESM
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-G3PMV62Z.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-G3PMV62Z.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-G3PMV62Z.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
21628
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-PJEEZAML.js
generated
vendored
Normal file
21628
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-PJEEZAML.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-PJEEZAML.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/chunk-PJEEZAML.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
frontend/node_modules/.vite/deps_temp_1313ae7e/package.json
generated
vendored
Normal file
3
frontend/node_modules/.vite/deps_temp_1313ae7e/package.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
||||||
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom.js
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-PJEEZAML.js";
|
||||||
|
import "./chunk-DRWLMN53.js";
|
||||||
|
import "./chunk-G3PMV62Z.js";
|
||||||
|
export default require_react_dom();
|
||||||
|
//# sourceMappingURL=react-dom.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
39
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom_client.js
generated
vendored
Normal file
39
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom_client.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-PJEEZAML.js";
|
||||||
|
import "./chunk-DRWLMN53.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-G3PMV62Z.js";
|
||||||
|
|
||||||
|
// node_modules/react-dom/client.js
|
||||||
|
var require_client = __commonJS({
|
||||||
|
"node_modules/react-dom/client.js"(exports) {
|
||||||
|
var m = require_react_dom();
|
||||||
|
if (false) {
|
||||||
|
exports.createRoot = m.createRoot;
|
||||||
|
exports.hydrateRoot = m.hydrateRoot;
|
||||||
|
} else {
|
||||||
|
i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
exports.createRoot = function(c, o) {
|
||||||
|
i.usingClientEntryPoint = true;
|
||||||
|
try {
|
||||||
|
return m.createRoot(c, o);
|
||||||
|
} finally {
|
||||||
|
i.usingClientEntryPoint = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.hydrateRoot = function(c, h, o) {
|
||||||
|
i.usingClientEntryPoint = true;
|
||||||
|
try {
|
||||||
|
return m.hydrateRoot(c, h, o);
|
||||||
|
} finally {
|
||||||
|
i.usingClientEntryPoint = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var i;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_client();
|
||||||
|
//# sourceMappingURL=react-dom_client.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom_client.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-dom_client.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../react-dom/client.js"],
|
||||||
|
"sourcesContent": ["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],
|
||||||
|
"mappings": ";;;;;;;;;AAAA;AAAA;AAEA,QAAI,IAAI;AACR,QAAI,OAAuC;AACzC,cAAQ,aAAa,EAAE;AACvB,cAAQ,cAAc,EAAE;AAAA,IAC1B,OAAO;AACD,UAAI,EAAE;AACV,cAAQ,aAAa,SAAS,GAAG,GAAG;AAClC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,WAAW,GAAG,CAAC;AAAA,QAC1B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AACA,cAAQ,cAAc,SAAS,GAAG,GAAG,GAAG;AACtC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,YAAY,GAAG,GAAG,CAAC;AAAA,QAC9B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AAAA,IACF;AAjBM;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
6061
frontend/node_modules/.vite/deps_temp_1313ae7e/react-router-dom.js
generated
vendored
Normal file
6061
frontend/node_modules/.vite/deps_temp_1313ae7e/react-router-dom.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-router-dom.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react-router-dom.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
frontend/node_modules/.vite/deps_temp_1313ae7e/react.js
generated
vendored
Normal file
6
frontend/node_modules/.vite/deps_temp_1313ae7e/react.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-DRWLMN53.js";
|
||||||
|
import "./chunk-G3PMV62Z.js";
|
||||||
|
export default require_react();
|
||||||
|
//# sourceMappingURL=react.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
913
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-dev-runtime.js
generated
vendored
Normal file
913
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-dev-runtime.js
generated
vendored
Normal file
@ -0,0 +1,913 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-DRWLMN53.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-G3PMV62Z.js";
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
||||||
|
var require_react_jsx_dev_runtime_development = __commonJS({
|
||||||
|
"node_modules/react/cjs/react-jsx-dev-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var React = require_react();
|
||||||
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||||
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
||||||
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||||
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
||||||
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||||
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||||
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||||
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||||
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||||
|
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
||||||
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||||
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
||||||
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||||
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
||||||
|
if (typeof maybeIterator === "function") {
|
||||||
|
return maybeIterator;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
function error(format) {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||||
|
args[_key2 - 1] = arguments[_key2];
|
||||||
|
}
|
||||||
|
printWarning("error", format, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function printWarning(level, format, args) {
|
||||||
|
{
|
||||||
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
||||||
|
if (stack !== "") {
|
||||||
|
format += "%s";
|
||||||
|
args = args.concat([stack]);
|
||||||
|
}
|
||||||
|
var argsWithFormat = args.map(function(item) {
|
||||||
|
return String(item);
|
||||||
|
});
|
||||||
|
argsWithFormat.unshift("Warning: " + format);
|
||||||
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var enableScopeAPI = false;
|
||||||
|
var enableCacheElement = false;
|
||||||
|
var enableTransitionTracing = false;
|
||||||
|
var enableLegacyHidden = false;
|
||||||
|
var enableDebugTracing = false;
|
||||||
|
var REACT_MODULE_REFERENCE;
|
||||||
|
{
|
||||||
|
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||||
|
}
|
||||||
|
function isValidElementType(type) {
|
||||||
|
if (typeof type === "string" || typeof type === "function") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (typeof type === "object" && type !== null) {
|
||||||
|
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
||||||
|
// types supported by any Flight configuration anywhere since
|
||||||
|
// we don't know which Flight build this will end up being used
|
||||||
|
// with.
|
||||||
|
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getWrappedName(outerType, innerType, wrapperName) {
|
||||||
|
var displayName = outerType.displayName;
|
||||||
|
if (displayName) {
|
||||||
|
return displayName;
|
||||||
|
}
|
||||||
|
var functionName = innerType.displayName || innerType.name || "";
|
||||||
|
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
||||||
|
}
|
||||||
|
function getContextName(type) {
|
||||||
|
return type.displayName || "Context";
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (type == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof type.tag === "number") {
|
||||||
|
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
return type.displayName || type.name || null;
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
var context = type;
|
||||||
|
return getContextName(context) + ".Consumer";
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
var provider = type;
|
||||||
|
return getContextName(provider._context) + ".Provider";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return getWrappedName(type, type.render, "ForwardRef");
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
var outerName = type.displayName || null;
|
||||||
|
if (outerName !== null) {
|
||||||
|
return outerName;
|
||||||
|
}
|
||||||
|
return getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(init(payload));
|
||||||
|
} catch (x) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var assign = Object.assign;
|
||||||
|
var disabledDepth = 0;
|
||||||
|
var prevLog;
|
||||||
|
var prevInfo;
|
||||||
|
var prevWarn;
|
||||||
|
var prevError;
|
||||||
|
var prevGroup;
|
||||||
|
var prevGroupCollapsed;
|
||||||
|
var prevGroupEnd;
|
||||||
|
function disabledLog() {
|
||||||
|
}
|
||||||
|
disabledLog.__reactDisabledLog = true;
|
||||||
|
function disableLogs() {
|
||||||
|
{
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
prevLog = console.log;
|
||||||
|
prevInfo = console.info;
|
||||||
|
prevWarn = console.warn;
|
||||||
|
prevError = console.error;
|
||||||
|
prevGroup = console.group;
|
||||||
|
prevGroupCollapsed = console.groupCollapsed;
|
||||||
|
prevGroupEnd = console.groupEnd;
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
value: disabledLog,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
info: props,
|
||||||
|
log: props,
|
||||||
|
warn: props,
|
||||||
|
error: props,
|
||||||
|
group: props,
|
||||||
|
groupCollapsed: props,
|
||||||
|
groupEnd: props
|
||||||
|
});
|
||||||
|
}
|
||||||
|
disabledDepth++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function reenableLogs() {
|
||||||
|
{
|
||||||
|
disabledDepth--;
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
log: assign({}, props, {
|
||||||
|
value: prevLog
|
||||||
|
}),
|
||||||
|
info: assign({}, props, {
|
||||||
|
value: prevInfo
|
||||||
|
}),
|
||||||
|
warn: assign({}, props, {
|
||||||
|
value: prevWarn
|
||||||
|
}),
|
||||||
|
error: assign({}, props, {
|
||||||
|
value: prevError
|
||||||
|
}),
|
||||||
|
group: assign({}, props, {
|
||||||
|
value: prevGroup
|
||||||
|
}),
|
||||||
|
groupCollapsed: assign({}, props, {
|
||||||
|
value: prevGroupCollapsed
|
||||||
|
}),
|
||||||
|
groupEnd: assign({}, props, {
|
||||||
|
value: prevGroupEnd
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (disabledDepth < 0) {
|
||||||
|
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
||||||
|
var prefix;
|
||||||
|
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
||||||
|
{
|
||||||
|
if (prefix === void 0) {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
||||||
|
prefix = match && match[1] || "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "\n" + prefix + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var reentry = false;
|
||||||
|
var componentFrameCache;
|
||||||
|
{
|
||||||
|
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
||||||
|
componentFrameCache = new PossiblyWeakMap();
|
||||||
|
}
|
||||||
|
function describeNativeComponentFrame(fn, construct) {
|
||||||
|
if (!fn || reentry) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
var frame = componentFrameCache.get(fn);
|
||||||
|
if (frame !== void 0) {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var control;
|
||||||
|
reentry = true;
|
||||||
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
||||||
|
Error.prepareStackTrace = void 0;
|
||||||
|
var previousDispatcher;
|
||||||
|
{
|
||||||
|
previousDispatcher = ReactCurrentDispatcher.current;
|
||||||
|
ReactCurrentDispatcher.current = null;
|
||||||
|
disableLogs();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (construct) {
|
||||||
|
var Fake = function() {
|
||||||
|
throw Error();
|
||||||
|
};
|
||||||
|
Object.defineProperty(Fake.prototype, "props", {
|
||||||
|
set: function() {
|
||||||
|
throw Error();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (typeof Reflect === "object" && Reflect.construct) {
|
||||||
|
try {
|
||||||
|
Reflect.construct(Fake, []);
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
Reflect.construct(fn, [], Fake);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
Fake.call();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn.call(Fake.prototype);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn();
|
||||||
|
}
|
||||||
|
} catch (sample) {
|
||||||
|
if (sample && control && typeof sample.stack === "string") {
|
||||||
|
var sampleLines = sample.stack.split("\n");
|
||||||
|
var controlLines = control.stack.split("\n");
|
||||||
|
var s = sampleLines.length - 1;
|
||||||
|
var c = controlLines.length - 1;
|
||||||
|
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
||||||
|
c--;
|
||||||
|
}
|
||||||
|
for (; s >= 1 && c >= 0; s--, c--) {
|
||||||
|
if (sampleLines[s] !== controlLines[c]) {
|
||||||
|
if (s !== 1 || c !== 1) {
|
||||||
|
do {
|
||||||
|
s--;
|
||||||
|
c--;
|
||||||
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
||||||
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
||||||
|
if (fn.displayName && _frame.includes("<anonymous>")) {
|
||||||
|
_frame = _frame.replace("<anonymous>", fn.displayName);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, _frame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _frame;
|
||||||
|
}
|
||||||
|
} while (s >= 1 && c >= 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
reentry = false;
|
||||||
|
{
|
||||||
|
ReactCurrentDispatcher.current = previousDispatcher;
|
||||||
|
reenableLogs();
|
||||||
|
}
|
||||||
|
Error.prepareStackTrace = previousPrepareStackTrace;
|
||||||
|
}
|
||||||
|
var name = fn ? fn.displayName || fn.name : "";
|
||||||
|
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, syntheticFrame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return syntheticFrame;
|
||||||
|
}
|
||||||
|
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(fn, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function shouldConstruct(Component) {
|
||||||
|
var prototype = Component.prototype;
|
||||||
|
return !!(prototype && prototype.isReactComponent);
|
||||||
|
}
|
||||||
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
|
if (type == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(type, shouldConstruct(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return describeBuiltInComponentFrame(type);
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("Suspense");
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("SuspenseList");
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return describeFunctionComponentFrame(type.render);
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||||
|
var loggedTypeFailures = {};
|
||||||
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
||||||
|
{
|
||||||
|
var has = Function.call.bind(hasOwnProperty);
|
||||||
|
for (var typeSpecName in typeSpecs) {
|
||||||
|
if (has(typeSpecs, typeSpecName)) {
|
||||||
|
var error$1 = void 0;
|
||||||
|
try {
|
||||||
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||||
|
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
||||||
|
err.name = "Invariant Violation";
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||||
|
} catch (ex) {
|
||||||
|
error$1 = ex;
|
||||||
|
}
|
||||||
|
if (error$1 && !(error$1 instanceof Error)) {
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
||||||
|
loggedTypeFailures[error$1.message] = true;
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("Failed %s type: %s", location, error$1.message);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var isArrayImpl = Array.isArray;
|
||||||
|
function isArray(a) {
|
||||||
|
return isArrayImpl(a);
|
||||||
|
}
|
||||||
|
function typeName(value) {
|
||||||
|
{
|
||||||
|
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
||||||
|
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function willCoercionThrow(value) {
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
return false;
|
||||||
|
} catch (e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
{
|
||||||
|
if (willCoercionThrow(value)) {
|
||||||
|
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var RESERVED_PROPS = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var specialPropRefWarningShown;
|
||||||
|
var didWarnAboutStringRefs;
|
||||||
|
{
|
||||||
|
didWarnAboutStringRefs = {};
|
||||||
|
}
|
||||||
|
function hasValidRef(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "ref")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.ref !== void 0;
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.key !== void 0;
|
||||||
|
}
|
||||||
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||||
|
{
|
||||||
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
||||||
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
||||||
|
if (!didWarnAboutStringRefs[componentName]) {
|
||||||
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
||||||
|
didWarnAboutStringRefs[componentName] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingKey = function() {
|
||||||
|
if (!specialPropKeyWarningShown) {
|
||||||
|
specialPropKeyWarningShown = true;
|
||||||
|
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineRefPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingRef = function() {
|
||||||
|
if (!specialPropRefWarningShown) {
|
||||||
|
specialPropRefWarningShown = true;
|
||||||
|
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingRef.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "ref", {
|
||||||
|
get: warnAboutAccessingRef,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
||||||
|
var element = {
|
||||||
|
// This tag allows us to uniquely identify this as a React Element
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
// Built-in properties that belong on the element
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
ref,
|
||||||
|
props,
|
||||||
|
// Record the component responsible for creating this element.
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
{
|
||||||
|
element._store = {};
|
||||||
|
Object.defineProperty(element._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_self", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: self
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_source", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: source
|
||||||
|
});
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(element.props);
|
||||||
|
Object.freeze(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
};
|
||||||
|
function jsxDEV(type, config, maybeKey, source, self) {
|
||||||
|
{
|
||||||
|
var propName;
|
||||||
|
var props = {};
|
||||||
|
var key = null;
|
||||||
|
var ref = null;
|
||||||
|
if (maybeKey !== void 0) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(maybeKey);
|
||||||
|
}
|
||||||
|
key = "" + maybeKey;
|
||||||
|
}
|
||||||
|
if (hasValidKey(config)) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(config.key);
|
||||||
|
}
|
||||||
|
key = "" + config.key;
|
||||||
|
}
|
||||||
|
if (hasValidRef(config)) {
|
||||||
|
ref = config.ref;
|
||||||
|
warnIfStringRefCannotBeAutoConverted(config, self);
|
||||||
|
}
|
||||||
|
for (propName in config) {
|
||||||
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
||||||
|
props[propName] = config[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps) {
|
||||||
|
var defaultProps = type.defaultProps;
|
||||||
|
for (propName in defaultProps) {
|
||||||
|
if (props[propName] === void 0) {
|
||||||
|
props[propName] = defaultProps[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (key || ref) {
|
||||||
|
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
||||||
|
if (key) {
|
||||||
|
defineKeyPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
if (ref) {
|
||||||
|
defineRefPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var propTypesMisspellWarningShown;
|
||||||
|
{
|
||||||
|
propTypesMisspellWarningShown = false;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
{
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getDeclarationErrorAddendum() {
|
||||||
|
{
|
||||||
|
if (ReactCurrentOwner$1.current) {
|
||||||
|
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
||||||
|
if (name) {
|
||||||
|
return "\n\nCheck the render method of `" + name + "`.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getSourceInfoErrorAddendum(source) {
|
||||||
|
{
|
||||||
|
if (source !== void 0) {
|
||||||
|
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
||||||
|
var lineNumber = source.lineNumber;
|
||||||
|
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ownerHasKeyUseWarning = {};
|
||||||
|
function getCurrentComponentErrorInfo(parentType) {
|
||||||
|
{
|
||||||
|
var info = getDeclarationErrorAddendum();
|
||||||
|
if (!info) {
|
||||||
|
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
||||||
|
if (parentName) {
|
||||||
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateExplicitKey(element, parentType) {
|
||||||
|
{
|
||||||
|
if (!element._store || element._store.validated || element.key != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element._store.validated = true;
|
||||||
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||||||
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
||||||
|
var childOwner = "";
|
||||||
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
||||||
|
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
||||||
|
}
|
||||||
|
setCurrentlyValidatingElement$1(element);
|
||||||
|
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateChildKeys(node, parentType) {
|
||||||
|
{
|
||||||
|
if (typeof node !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isArray(node)) {
|
||||||
|
for (var i = 0; i < node.length; i++) {
|
||||||
|
var child = node[i];
|
||||||
|
if (isValidElement(child)) {
|
||||||
|
validateExplicitKey(child, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (isValidElement(node)) {
|
||||||
|
if (node._store) {
|
||||||
|
node._store.validated = true;
|
||||||
|
}
|
||||||
|
} else if (node) {
|
||||||
|
var iteratorFn = getIteratorFn(node);
|
||||||
|
if (typeof iteratorFn === "function") {
|
||||||
|
if (iteratorFn !== node.entries) {
|
||||||
|
var iterator = iteratorFn.call(node);
|
||||||
|
var step;
|
||||||
|
while (!(step = iterator.next()).done) {
|
||||||
|
if (isValidElement(step.value)) {
|
||||||
|
validateExplicitKey(step.value, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validatePropTypes(element) {
|
||||||
|
{
|
||||||
|
var type = element.type;
|
||||||
|
if (type === null || type === void 0 || typeof type === "string") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var propTypes;
|
||||||
|
if (typeof type === "function") {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
||||||
|
// Inner props are checked in the reconciler.
|
||||||
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (propTypes) {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
||||||
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
||||||
|
propTypesMisspellWarningShown = true;
|
||||||
|
var _name = getComponentNameFromType(type);
|
||||||
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
||||||
|
}
|
||||||
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
||||||
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateFragmentProps(fragment) {
|
||||||
|
{
|
||||||
|
var keys = Object.keys(fragment.props);
|
||||||
|
for (var i = 0; i < keys.length; i++) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (key !== "children" && key !== "key") {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fragment.ref !== null) {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
||||||
|
{
|
||||||
|
var validType = isValidElementType(type);
|
||||||
|
if (!validType) {
|
||||||
|
var info = "";
|
||||||
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
||||||
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
||||||
|
}
|
||||||
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
||||||
|
if (sourceInfo) {
|
||||||
|
info += sourceInfo;
|
||||||
|
} else {
|
||||||
|
info += getDeclarationErrorAddendum();
|
||||||
|
}
|
||||||
|
var typeString;
|
||||||
|
if (type === null) {
|
||||||
|
typeString = "null";
|
||||||
|
} else if (isArray(type)) {
|
||||||
|
typeString = "array";
|
||||||
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
||||||
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
||||||
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
||||||
|
} else {
|
||||||
|
typeString = typeof type;
|
||||||
|
}
|
||||||
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
||||||
|
}
|
||||||
|
var element = jsxDEV(type, props, key, source, self);
|
||||||
|
if (element == null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
if (validType) {
|
||||||
|
var children = props.children;
|
||||||
|
if (children !== void 0) {
|
||||||
|
if (isStaticChildren) {
|
||||||
|
if (isArray(children)) {
|
||||||
|
for (var i = 0; i < children.length; i++) {
|
||||||
|
validateChildKeys(children[i], type);
|
||||||
|
}
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(children);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
validateChildKeys(children, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(props, "key")) {
|
||||||
|
var componentName = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(props).filter(function(k) {
|
||||||
|
return k !== "key";
|
||||||
|
});
|
||||||
|
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
||||||
|
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
||||||
|
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
||||||
|
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) {
|
||||||
|
validateFragmentProps(element);
|
||||||
|
} else {
|
||||||
|
validatePropTypes(element);
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var jsxDEV$1 = jsxWithValidation;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsxDEV = jsxDEV$1;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react/jsx-dev-runtime.js
|
||||||
|
var require_jsx_dev_runtime = __commonJS({
|
||||||
|
"node_modules/react/jsx-dev-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_dev_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_jsx_dev_runtime();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-dev-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-dev-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react_jsx-dev-runtime.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-dev-runtime.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-dev-runtime.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
925
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-runtime.js
generated
vendored
Normal file
925
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-runtime.js
generated
vendored
Normal file
@ -0,0 +1,925 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-DRWLMN53.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-G3PMV62Z.js";
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-runtime.development.js
|
||||||
|
var require_react_jsx_runtime_development = __commonJS({
|
||||||
|
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var React = require_react();
|
||||||
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||||
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
||||||
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||||
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
||||||
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||||
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||||
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||||
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||||
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||||
|
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
||||||
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||||
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
||||||
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||||
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
||||||
|
if (typeof maybeIterator === "function") {
|
||||||
|
return maybeIterator;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
function error(format) {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||||
|
args[_key2 - 1] = arguments[_key2];
|
||||||
|
}
|
||||||
|
printWarning("error", format, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function printWarning(level, format, args) {
|
||||||
|
{
|
||||||
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
||||||
|
if (stack !== "") {
|
||||||
|
format += "%s";
|
||||||
|
args = args.concat([stack]);
|
||||||
|
}
|
||||||
|
var argsWithFormat = args.map(function(item) {
|
||||||
|
return String(item);
|
||||||
|
});
|
||||||
|
argsWithFormat.unshift("Warning: " + format);
|
||||||
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var enableScopeAPI = false;
|
||||||
|
var enableCacheElement = false;
|
||||||
|
var enableTransitionTracing = false;
|
||||||
|
var enableLegacyHidden = false;
|
||||||
|
var enableDebugTracing = false;
|
||||||
|
var REACT_MODULE_REFERENCE;
|
||||||
|
{
|
||||||
|
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||||
|
}
|
||||||
|
function isValidElementType(type) {
|
||||||
|
if (typeof type === "string" || typeof type === "function") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (typeof type === "object" && type !== null) {
|
||||||
|
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
||||||
|
// types supported by any Flight configuration anywhere since
|
||||||
|
// we don't know which Flight build this will end up being used
|
||||||
|
// with.
|
||||||
|
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getWrappedName(outerType, innerType, wrapperName) {
|
||||||
|
var displayName = outerType.displayName;
|
||||||
|
if (displayName) {
|
||||||
|
return displayName;
|
||||||
|
}
|
||||||
|
var functionName = innerType.displayName || innerType.name || "";
|
||||||
|
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
||||||
|
}
|
||||||
|
function getContextName(type) {
|
||||||
|
return type.displayName || "Context";
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (type == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof type.tag === "number") {
|
||||||
|
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
return type.displayName || type.name || null;
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
var context = type;
|
||||||
|
return getContextName(context) + ".Consumer";
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
var provider = type;
|
||||||
|
return getContextName(provider._context) + ".Provider";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return getWrappedName(type, type.render, "ForwardRef");
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
var outerName = type.displayName || null;
|
||||||
|
if (outerName !== null) {
|
||||||
|
return outerName;
|
||||||
|
}
|
||||||
|
return getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(init(payload));
|
||||||
|
} catch (x) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var assign = Object.assign;
|
||||||
|
var disabledDepth = 0;
|
||||||
|
var prevLog;
|
||||||
|
var prevInfo;
|
||||||
|
var prevWarn;
|
||||||
|
var prevError;
|
||||||
|
var prevGroup;
|
||||||
|
var prevGroupCollapsed;
|
||||||
|
var prevGroupEnd;
|
||||||
|
function disabledLog() {
|
||||||
|
}
|
||||||
|
disabledLog.__reactDisabledLog = true;
|
||||||
|
function disableLogs() {
|
||||||
|
{
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
prevLog = console.log;
|
||||||
|
prevInfo = console.info;
|
||||||
|
prevWarn = console.warn;
|
||||||
|
prevError = console.error;
|
||||||
|
prevGroup = console.group;
|
||||||
|
prevGroupCollapsed = console.groupCollapsed;
|
||||||
|
prevGroupEnd = console.groupEnd;
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
value: disabledLog,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
info: props,
|
||||||
|
log: props,
|
||||||
|
warn: props,
|
||||||
|
error: props,
|
||||||
|
group: props,
|
||||||
|
groupCollapsed: props,
|
||||||
|
groupEnd: props
|
||||||
|
});
|
||||||
|
}
|
||||||
|
disabledDepth++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function reenableLogs() {
|
||||||
|
{
|
||||||
|
disabledDepth--;
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
log: assign({}, props, {
|
||||||
|
value: prevLog
|
||||||
|
}),
|
||||||
|
info: assign({}, props, {
|
||||||
|
value: prevInfo
|
||||||
|
}),
|
||||||
|
warn: assign({}, props, {
|
||||||
|
value: prevWarn
|
||||||
|
}),
|
||||||
|
error: assign({}, props, {
|
||||||
|
value: prevError
|
||||||
|
}),
|
||||||
|
group: assign({}, props, {
|
||||||
|
value: prevGroup
|
||||||
|
}),
|
||||||
|
groupCollapsed: assign({}, props, {
|
||||||
|
value: prevGroupCollapsed
|
||||||
|
}),
|
||||||
|
groupEnd: assign({}, props, {
|
||||||
|
value: prevGroupEnd
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (disabledDepth < 0) {
|
||||||
|
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
||||||
|
var prefix;
|
||||||
|
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
||||||
|
{
|
||||||
|
if (prefix === void 0) {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
||||||
|
prefix = match && match[1] || "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "\n" + prefix + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var reentry = false;
|
||||||
|
var componentFrameCache;
|
||||||
|
{
|
||||||
|
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
||||||
|
componentFrameCache = new PossiblyWeakMap();
|
||||||
|
}
|
||||||
|
function describeNativeComponentFrame(fn, construct) {
|
||||||
|
if (!fn || reentry) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
var frame = componentFrameCache.get(fn);
|
||||||
|
if (frame !== void 0) {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var control;
|
||||||
|
reentry = true;
|
||||||
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
||||||
|
Error.prepareStackTrace = void 0;
|
||||||
|
var previousDispatcher;
|
||||||
|
{
|
||||||
|
previousDispatcher = ReactCurrentDispatcher.current;
|
||||||
|
ReactCurrentDispatcher.current = null;
|
||||||
|
disableLogs();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (construct) {
|
||||||
|
var Fake = function() {
|
||||||
|
throw Error();
|
||||||
|
};
|
||||||
|
Object.defineProperty(Fake.prototype, "props", {
|
||||||
|
set: function() {
|
||||||
|
throw Error();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (typeof Reflect === "object" && Reflect.construct) {
|
||||||
|
try {
|
||||||
|
Reflect.construct(Fake, []);
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
Reflect.construct(fn, [], Fake);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
Fake.call();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn.call(Fake.prototype);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn();
|
||||||
|
}
|
||||||
|
} catch (sample) {
|
||||||
|
if (sample && control && typeof sample.stack === "string") {
|
||||||
|
var sampleLines = sample.stack.split("\n");
|
||||||
|
var controlLines = control.stack.split("\n");
|
||||||
|
var s = sampleLines.length - 1;
|
||||||
|
var c = controlLines.length - 1;
|
||||||
|
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
||||||
|
c--;
|
||||||
|
}
|
||||||
|
for (; s >= 1 && c >= 0; s--, c--) {
|
||||||
|
if (sampleLines[s] !== controlLines[c]) {
|
||||||
|
if (s !== 1 || c !== 1) {
|
||||||
|
do {
|
||||||
|
s--;
|
||||||
|
c--;
|
||||||
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
||||||
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
||||||
|
if (fn.displayName && _frame.includes("<anonymous>")) {
|
||||||
|
_frame = _frame.replace("<anonymous>", fn.displayName);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, _frame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _frame;
|
||||||
|
}
|
||||||
|
} while (s >= 1 && c >= 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
reentry = false;
|
||||||
|
{
|
||||||
|
ReactCurrentDispatcher.current = previousDispatcher;
|
||||||
|
reenableLogs();
|
||||||
|
}
|
||||||
|
Error.prepareStackTrace = previousPrepareStackTrace;
|
||||||
|
}
|
||||||
|
var name = fn ? fn.displayName || fn.name : "";
|
||||||
|
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, syntheticFrame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return syntheticFrame;
|
||||||
|
}
|
||||||
|
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(fn, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function shouldConstruct(Component) {
|
||||||
|
var prototype = Component.prototype;
|
||||||
|
return !!(prototype && prototype.isReactComponent);
|
||||||
|
}
|
||||||
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
|
if (type == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(type, shouldConstruct(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return describeBuiltInComponentFrame(type);
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("Suspense");
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("SuspenseList");
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return describeFunctionComponentFrame(type.render);
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||||
|
var loggedTypeFailures = {};
|
||||||
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
||||||
|
{
|
||||||
|
var has = Function.call.bind(hasOwnProperty);
|
||||||
|
for (var typeSpecName in typeSpecs) {
|
||||||
|
if (has(typeSpecs, typeSpecName)) {
|
||||||
|
var error$1 = void 0;
|
||||||
|
try {
|
||||||
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||||
|
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
||||||
|
err.name = "Invariant Violation";
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||||
|
} catch (ex) {
|
||||||
|
error$1 = ex;
|
||||||
|
}
|
||||||
|
if (error$1 && !(error$1 instanceof Error)) {
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
||||||
|
loggedTypeFailures[error$1.message] = true;
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("Failed %s type: %s", location, error$1.message);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var isArrayImpl = Array.isArray;
|
||||||
|
function isArray(a) {
|
||||||
|
return isArrayImpl(a);
|
||||||
|
}
|
||||||
|
function typeName(value) {
|
||||||
|
{
|
||||||
|
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
||||||
|
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function willCoercionThrow(value) {
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
return false;
|
||||||
|
} catch (e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
{
|
||||||
|
if (willCoercionThrow(value)) {
|
||||||
|
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var RESERVED_PROPS = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var specialPropRefWarningShown;
|
||||||
|
var didWarnAboutStringRefs;
|
||||||
|
{
|
||||||
|
didWarnAboutStringRefs = {};
|
||||||
|
}
|
||||||
|
function hasValidRef(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "ref")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.ref !== void 0;
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.key !== void 0;
|
||||||
|
}
|
||||||
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||||
|
{
|
||||||
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
||||||
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
||||||
|
if (!didWarnAboutStringRefs[componentName]) {
|
||||||
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
||||||
|
didWarnAboutStringRefs[componentName] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingKey = function() {
|
||||||
|
if (!specialPropKeyWarningShown) {
|
||||||
|
specialPropKeyWarningShown = true;
|
||||||
|
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineRefPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingRef = function() {
|
||||||
|
if (!specialPropRefWarningShown) {
|
||||||
|
specialPropRefWarningShown = true;
|
||||||
|
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingRef.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "ref", {
|
||||||
|
get: warnAboutAccessingRef,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
||||||
|
var element = {
|
||||||
|
// This tag allows us to uniquely identify this as a React Element
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
// Built-in properties that belong on the element
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
ref,
|
||||||
|
props,
|
||||||
|
// Record the component responsible for creating this element.
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
{
|
||||||
|
element._store = {};
|
||||||
|
Object.defineProperty(element._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_self", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: self
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_source", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: source
|
||||||
|
});
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(element.props);
|
||||||
|
Object.freeze(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
};
|
||||||
|
function jsxDEV(type, config, maybeKey, source, self) {
|
||||||
|
{
|
||||||
|
var propName;
|
||||||
|
var props = {};
|
||||||
|
var key = null;
|
||||||
|
var ref = null;
|
||||||
|
if (maybeKey !== void 0) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(maybeKey);
|
||||||
|
}
|
||||||
|
key = "" + maybeKey;
|
||||||
|
}
|
||||||
|
if (hasValidKey(config)) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(config.key);
|
||||||
|
}
|
||||||
|
key = "" + config.key;
|
||||||
|
}
|
||||||
|
if (hasValidRef(config)) {
|
||||||
|
ref = config.ref;
|
||||||
|
warnIfStringRefCannotBeAutoConverted(config, self);
|
||||||
|
}
|
||||||
|
for (propName in config) {
|
||||||
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
||||||
|
props[propName] = config[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps) {
|
||||||
|
var defaultProps = type.defaultProps;
|
||||||
|
for (propName in defaultProps) {
|
||||||
|
if (props[propName] === void 0) {
|
||||||
|
props[propName] = defaultProps[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (key || ref) {
|
||||||
|
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
||||||
|
if (key) {
|
||||||
|
defineKeyPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
if (ref) {
|
||||||
|
defineRefPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var propTypesMisspellWarningShown;
|
||||||
|
{
|
||||||
|
propTypesMisspellWarningShown = false;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
{
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getDeclarationErrorAddendum() {
|
||||||
|
{
|
||||||
|
if (ReactCurrentOwner$1.current) {
|
||||||
|
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
||||||
|
if (name) {
|
||||||
|
return "\n\nCheck the render method of `" + name + "`.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getSourceInfoErrorAddendum(source) {
|
||||||
|
{
|
||||||
|
if (source !== void 0) {
|
||||||
|
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
||||||
|
var lineNumber = source.lineNumber;
|
||||||
|
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ownerHasKeyUseWarning = {};
|
||||||
|
function getCurrentComponentErrorInfo(parentType) {
|
||||||
|
{
|
||||||
|
var info = getDeclarationErrorAddendum();
|
||||||
|
if (!info) {
|
||||||
|
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
||||||
|
if (parentName) {
|
||||||
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateExplicitKey(element, parentType) {
|
||||||
|
{
|
||||||
|
if (!element._store || element._store.validated || element.key != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element._store.validated = true;
|
||||||
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||||||
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
||||||
|
var childOwner = "";
|
||||||
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
||||||
|
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
||||||
|
}
|
||||||
|
setCurrentlyValidatingElement$1(element);
|
||||||
|
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateChildKeys(node, parentType) {
|
||||||
|
{
|
||||||
|
if (typeof node !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isArray(node)) {
|
||||||
|
for (var i = 0; i < node.length; i++) {
|
||||||
|
var child = node[i];
|
||||||
|
if (isValidElement(child)) {
|
||||||
|
validateExplicitKey(child, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (isValidElement(node)) {
|
||||||
|
if (node._store) {
|
||||||
|
node._store.validated = true;
|
||||||
|
}
|
||||||
|
} else if (node) {
|
||||||
|
var iteratorFn = getIteratorFn(node);
|
||||||
|
if (typeof iteratorFn === "function") {
|
||||||
|
if (iteratorFn !== node.entries) {
|
||||||
|
var iterator = iteratorFn.call(node);
|
||||||
|
var step;
|
||||||
|
while (!(step = iterator.next()).done) {
|
||||||
|
if (isValidElement(step.value)) {
|
||||||
|
validateExplicitKey(step.value, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validatePropTypes(element) {
|
||||||
|
{
|
||||||
|
var type = element.type;
|
||||||
|
if (type === null || type === void 0 || typeof type === "string") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var propTypes;
|
||||||
|
if (typeof type === "function") {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
||||||
|
// Inner props are checked in the reconciler.
|
||||||
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (propTypes) {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
||||||
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
||||||
|
propTypesMisspellWarningShown = true;
|
||||||
|
var _name = getComponentNameFromType(type);
|
||||||
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
||||||
|
}
|
||||||
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
||||||
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateFragmentProps(fragment) {
|
||||||
|
{
|
||||||
|
var keys = Object.keys(fragment.props);
|
||||||
|
for (var i = 0; i < keys.length; i++) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (key !== "children" && key !== "key") {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fragment.ref !== null) {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
||||||
|
{
|
||||||
|
var validType = isValidElementType(type);
|
||||||
|
if (!validType) {
|
||||||
|
var info = "";
|
||||||
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
||||||
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
||||||
|
}
|
||||||
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
||||||
|
if (sourceInfo) {
|
||||||
|
info += sourceInfo;
|
||||||
|
} else {
|
||||||
|
info += getDeclarationErrorAddendum();
|
||||||
|
}
|
||||||
|
var typeString;
|
||||||
|
if (type === null) {
|
||||||
|
typeString = "null";
|
||||||
|
} else if (isArray(type)) {
|
||||||
|
typeString = "array";
|
||||||
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
||||||
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
||||||
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
||||||
|
} else {
|
||||||
|
typeString = typeof type;
|
||||||
|
}
|
||||||
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
||||||
|
}
|
||||||
|
var element = jsxDEV(type, props, key, source, self);
|
||||||
|
if (element == null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
if (validType) {
|
||||||
|
var children = props.children;
|
||||||
|
if (children !== void 0) {
|
||||||
|
if (isStaticChildren) {
|
||||||
|
if (isArray(children)) {
|
||||||
|
for (var i = 0; i < children.length; i++) {
|
||||||
|
validateChildKeys(children[i], type);
|
||||||
|
}
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(children);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
validateChildKeys(children, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(props, "key")) {
|
||||||
|
var componentName = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(props).filter(function(k) {
|
||||||
|
return k !== "key";
|
||||||
|
});
|
||||||
|
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
||||||
|
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
||||||
|
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
||||||
|
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) {
|
||||||
|
validateFragmentProps(element);
|
||||||
|
} else {
|
||||||
|
validatePropTypes(element);
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationStatic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationDynamic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var jsx = jsxWithValidationDynamic;
|
||||||
|
var jsxs = jsxWithValidationStatic;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsx = jsx;
|
||||||
|
exports.jsxs = jsxs;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react/jsx-runtime.js
|
||||||
|
var require_jsx_runtime = __commonJS({
|
||||||
|
"node_modules/react/jsx-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_jsx_runtime();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react_jsx-runtime.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-runtime.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_1313ae7e/react_jsx-runtime.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3108
frontend/node_modules/.vite/deps_temp_e0b75b38/axios.js
generated
vendored
Normal file
3108
frontend/node_modules/.vite/deps_temp_e0b75b38/axios.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_e0b75b38/axios.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/axios.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1906
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-DRWLMN53.js
generated
vendored
Normal file
1906
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-DRWLMN53.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-DRWLMN53.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-DRWLMN53.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
36
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-G3PMV62Z.js
generated
vendored
Normal file
36
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-G3PMV62Z.js
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __commonJS = (cb, mod) => function __require() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||||
|
// If the importer is in node compatibility mode or this is not an ESM
|
||||||
|
// file that has been converted to a CommonJS file using a Babel-
|
||||||
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||||
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||||
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||||
|
mod
|
||||||
|
));
|
||||||
|
|
||||||
|
export {
|
||||||
|
__commonJS,
|
||||||
|
__export,
|
||||||
|
__toESM
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-G3PMV62Z.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-G3PMV62Z.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-G3PMV62Z.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
21628
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-PJEEZAML.js
generated
vendored
Normal file
21628
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-PJEEZAML.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-PJEEZAML.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/chunk-PJEEZAML.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
frontend/node_modules/.vite/deps_temp_e0b75b38/package.json
generated
vendored
Normal file
3
frontend/node_modules/.vite/deps_temp_e0b75b38/package.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
||||||
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom.js
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-PJEEZAML.js";
|
||||||
|
import "./chunk-DRWLMN53.js";
|
||||||
|
import "./chunk-G3PMV62Z.js";
|
||||||
|
export default require_react_dom();
|
||||||
|
//# sourceMappingURL=react-dom.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
39
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom_client.js
generated
vendored
Normal file
39
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom_client.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-PJEEZAML.js";
|
||||||
|
import "./chunk-DRWLMN53.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-G3PMV62Z.js";
|
||||||
|
|
||||||
|
// node_modules/react-dom/client.js
|
||||||
|
var require_client = __commonJS({
|
||||||
|
"node_modules/react-dom/client.js"(exports) {
|
||||||
|
var m = require_react_dom();
|
||||||
|
if (false) {
|
||||||
|
exports.createRoot = m.createRoot;
|
||||||
|
exports.hydrateRoot = m.hydrateRoot;
|
||||||
|
} else {
|
||||||
|
i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
exports.createRoot = function(c, o) {
|
||||||
|
i.usingClientEntryPoint = true;
|
||||||
|
try {
|
||||||
|
return m.createRoot(c, o);
|
||||||
|
} finally {
|
||||||
|
i.usingClientEntryPoint = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.hydrateRoot = function(c, h, o) {
|
||||||
|
i.usingClientEntryPoint = true;
|
||||||
|
try {
|
||||||
|
return m.hydrateRoot(c, h, o);
|
||||||
|
} finally {
|
||||||
|
i.usingClientEntryPoint = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var i;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_client();
|
||||||
|
//# sourceMappingURL=react-dom_client.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom_client.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-dom_client.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../react-dom/client.js"],
|
||||||
|
"sourcesContent": ["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],
|
||||||
|
"mappings": ";;;;;;;;;AAAA;AAAA;AAEA,QAAI,IAAI;AACR,QAAI,OAAuC;AACzC,cAAQ,aAAa,EAAE;AACvB,cAAQ,cAAc,EAAE;AAAA,IAC1B,OAAO;AACD,UAAI,EAAE;AACV,cAAQ,aAAa,SAAS,GAAG,GAAG;AAClC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,WAAW,GAAG,CAAC;AAAA,QAC1B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AACA,cAAQ,cAAc,SAAS,GAAG,GAAG,GAAG;AACtC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,YAAY,GAAG,GAAG,CAAC;AAAA,QAC9B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AAAA,IACF;AAjBM;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
6061
frontend/node_modules/.vite/deps_temp_e0b75b38/react-router-dom.js
generated
vendored
Normal file
6061
frontend/node_modules/.vite/deps_temp_e0b75b38/react-router-dom.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-router-dom.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react-router-dom.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
frontend/node_modules/.vite/deps_temp_e0b75b38/react.js
generated
vendored
Normal file
6
frontend/node_modules/.vite/deps_temp_e0b75b38/react.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-DRWLMN53.js";
|
||||||
|
import "./chunk-G3PMV62Z.js";
|
||||||
|
export default require_react();
|
||||||
|
//# sourceMappingURL=react.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
913
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-dev-runtime.js
generated
vendored
Normal file
913
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-dev-runtime.js
generated
vendored
Normal file
@ -0,0 +1,913 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-DRWLMN53.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-G3PMV62Z.js";
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
||||||
|
var require_react_jsx_dev_runtime_development = __commonJS({
|
||||||
|
"node_modules/react/cjs/react-jsx-dev-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var React = require_react();
|
||||||
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||||
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
||||||
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||||
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
||||||
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||||
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||||
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||||
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||||
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||||
|
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
||||||
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||||
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
||||||
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||||
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
||||||
|
if (typeof maybeIterator === "function") {
|
||||||
|
return maybeIterator;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
function error(format) {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||||
|
args[_key2 - 1] = arguments[_key2];
|
||||||
|
}
|
||||||
|
printWarning("error", format, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function printWarning(level, format, args) {
|
||||||
|
{
|
||||||
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
||||||
|
if (stack !== "") {
|
||||||
|
format += "%s";
|
||||||
|
args = args.concat([stack]);
|
||||||
|
}
|
||||||
|
var argsWithFormat = args.map(function(item) {
|
||||||
|
return String(item);
|
||||||
|
});
|
||||||
|
argsWithFormat.unshift("Warning: " + format);
|
||||||
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var enableScopeAPI = false;
|
||||||
|
var enableCacheElement = false;
|
||||||
|
var enableTransitionTracing = false;
|
||||||
|
var enableLegacyHidden = false;
|
||||||
|
var enableDebugTracing = false;
|
||||||
|
var REACT_MODULE_REFERENCE;
|
||||||
|
{
|
||||||
|
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||||
|
}
|
||||||
|
function isValidElementType(type) {
|
||||||
|
if (typeof type === "string" || typeof type === "function") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (typeof type === "object" && type !== null) {
|
||||||
|
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
||||||
|
// types supported by any Flight configuration anywhere since
|
||||||
|
// we don't know which Flight build this will end up being used
|
||||||
|
// with.
|
||||||
|
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getWrappedName(outerType, innerType, wrapperName) {
|
||||||
|
var displayName = outerType.displayName;
|
||||||
|
if (displayName) {
|
||||||
|
return displayName;
|
||||||
|
}
|
||||||
|
var functionName = innerType.displayName || innerType.name || "";
|
||||||
|
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
||||||
|
}
|
||||||
|
function getContextName(type) {
|
||||||
|
return type.displayName || "Context";
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (type == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof type.tag === "number") {
|
||||||
|
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
return type.displayName || type.name || null;
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
var context = type;
|
||||||
|
return getContextName(context) + ".Consumer";
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
var provider = type;
|
||||||
|
return getContextName(provider._context) + ".Provider";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return getWrappedName(type, type.render, "ForwardRef");
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
var outerName = type.displayName || null;
|
||||||
|
if (outerName !== null) {
|
||||||
|
return outerName;
|
||||||
|
}
|
||||||
|
return getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(init(payload));
|
||||||
|
} catch (x) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var assign = Object.assign;
|
||||||
|
var disabledDepth = 0;
|
||||||
|
var prevLog;
|
||||||
|
var prevInfo;
|
||||||
|
var prevWarn;
|
||||||
|
var prevError;
|
||||||
|
var prevGroup;
|
||||||
|
var prevGroupCollapsed;
|
||||||
|
var prevGroupEnd;
|
||||||
|
function disabledLog() {
|
||||||
|
}
|
||||||
|
disabledLog.__reactDisabledLog = true;
|
||||||
|
function disableLogs() {
|
||||||
|
{
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
prevLog = console.log;
|
||||||
|
prevInfo = console.info;
|
||||||
|
prevWarn = console.warn;
|
||||||
|
prevError = console.error;
|
||||||
|
prevGroup = console.group;
|
||||||
|
prevGroupCollapsed = console.groupCollapsed;
|
||||||
|
prevGroupEnd = console.groupEnd;
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
value: disabledLog,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
info: props,
|
||||||
|
log: props,
|
||||||
|
warn: props,
|
||||||
|
error: props,
|
||||||
|
group: props,
|
||||||
|
groupCollapsed: props,
|
||||||
|
groupEnd: props
|
||||||
|
});
|
||||||
|
}
|
||||||
|
disabledDepth++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function reenableLogs() {
|
||||||
|
{
|
||||||
|
disabledDepth--;
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
log: assign({}, props, {
|
||||||
|
value: prevLog
|
||||||
|
}),
|
||||||
|
info: assign({}, props, {
|
||||||
|
value: prevInfo
|
||||||
|
}),
|
||||||
|
warn: assign({}, props, {
|
||||||
|
value: prevWarn
|
||||||
|
}),
|
||||||
|
error: assign({}, props, {
|
||||||
|
value: prevError
|
||||||
|
}),
|
||||||
|
group: assign({}, props, {
|
||||||
|
value: prevGroup
|
||||||
|
}),
|
||||||
|
groupCollapsed: assign({}, props, {
|
||||||
|
value: prevGroupCollapsed
|
||||||
|
}),
|
||||||
|
groupEnd: assign({}, props, {
|
||||||
|
value: prevGroupEnd
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (disabledDepth < 0) {
|
||||||
|
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
||||||
|
var prefix;
|
||||||
|
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
||||||
|
{
|
||||||
|
if (prefix === void 0) {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
||||||
|
prefix = match && match[1] || "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "\n" + prefix + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var reentry = false;
|
||||||
|
var componentFrameCache;
|
||||||
|
{
|
||||||
|
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
||||||
|
componentFrameCache = new PossiblyWeakMap();
|
||||||
|
}
|
||||||
|
function describeNativeComponentFrame(fn, construct) {
|
||||||
|
if (!fn || reentry) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
var frame = componentFrameCache.get(fn);
|
||||||
|
if (frame !== void 0) {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var control;
|
||||||
|
reentry = true;
|
||||||
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
||||||
|
Error.prepareStackTrace = void 0;
|
||||||
|
var previousDispatcher;
|
||||||
|
{
|
||||||
|
previousDispatcher = ReactCurrentDispatcher.current;
|
||||||
|
ReactCurrentDispatcher.current = null;
|
||||||
|
disableLogs();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (construct) {
|
||||||
|
var Fake = function() {
|
||||||
|
throw Error();
|
||||||
|
};
|
||||||
|
Object.defineProperty(Fake.prototype, "props", {
|
||||||
|
set: function() {
|
||||||
|
throw Error();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (typeof Reflect === "object" && Reflect.construct) {
|
||||||
|
try {
|
||||||
|
Reflect.construct(Fake, []);
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
Reflect.construct(fn, [], Fake);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
Fake.call();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn.call(Fake.prototype);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn();
|
||||||
|
}
|
||||||
|
} catch (sample) {
|
||||||
|
if (sample && control && typeof sample.stack === "string") {
|
||||||
|
var sampleLines = sample.stack.split("\n");
|
||||||
|
var controlLines = control.stack.split("\n");
|
||||||
|
var s = sampleLines.length - 1;
|
||||||
|
var c = controlLines.length - 1;
|
||||||
|
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
||||||
|
c--;
|
||||||
|
}
|
||||||
|
for (; s >= 1 && c >= 0; s--, c--) {
|
||||||
|
if (sampleLines[s] !== controlLines[c]) {
|
||||||
|
if (s !== 1 || c !== 1) {
|
||||||
|
do {
|
||||||
|
s--;
|
||||||
|
c--;
|
||||||
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
||||||
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
||||||
|
if (fn.displayName && _frame.includes("<anonymous>")) {
|
||||||
|
_frame = _frame.replace("<anonymous>", fn.displayName);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, _frame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _frame;
|
||||||
|
}
|
||||||
|
} while (s >= 1 && c >= 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
reentry = false;
|
||||||
|
{
|
||||||
|
ReactCurrentDispatcher.current = previousDispatcher;
|
||||||
|
reenableLogs();
|
||||||
|
}
|
||||||
|
Error.prepareStackTrace = previousPrepareStackTrace;
|
||||||
|
}
|
||||||
|
var name = fn ? fn.displayName || fn.name : "";
|
||||||
|
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, syntheticFrame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return syntheticFrame;
|
||||||
|
}
|
||||||
|
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(fn, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function shouldConstruct(Component) {
|
||||||
|
var prototype = Component.prototype;
|
||||||
|
return !!(prototype && prototype.isReactComponent);
|
||||||
|
}
|
||||||
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
|
if (type == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(type, shouldConstruct(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return describeBuiltInComponentFrame(type);
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("Suspense");
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("SuspenseList");
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return describeFunctionComponentFrame(type.render);
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||||
|
var loggedTypeFailures = {};
|
||||||
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
||||||
|
{
|
||||||
|
var has = Function.call.bind(hasOwnProperty);
|
||||||
|
for (var typeSpecName in typeSpecs) {
|
||||||
|
if (has(typeSpecs, typeSpecName)) {
|
||||||
|
var error$1 = void 0;
|
||||||
|
try {
|
||||||
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||||
|
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
||||||
|
err.name = "Invariant Violation";
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||||
|
} catch (ex) {
|
||||||
|
error$1 = ex;
|
||||||
|
}
|
||||||
|
if (error$1 && !(error$1 instanceof Error)) {
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
||||||
|
loggedTypeFailures[error$1.message] = true;
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("Failed %s type: %s", location, error$1.message);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var isArrayImpl = Array.isArray;
|
||||||
|
function isArray(a) {
|
||||||
|
return isArrayImpl(a);
|
||||||
|
}
|
||||||
|
function typeName(value) {
|
||||||
|
{
|
||||||
|
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
||||||
|
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function willCoercionThrow(value) {
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
return false;
|
||||||
|
} catch (e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
{
|
||||||
|
if (willCoercionThrow(value)) {
|
||||||
|
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var RESERVED_PROPS = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var specialPropRefWarningShown;
|
||||||
|
var didWarnAboutStringRefs;
|
||||||
|
{
|
||||||
|
didWarnAboutStringRefs = {};
|
||||||
|
}
|
||||||
|
function hasValidRef(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "ref")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.ref !== void 0;
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.key !== void 0;
|
||||||
|
}
|
||||||
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||||
|
{
|
||||||
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
||||||
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
||||||
|
if (!didWarnAboutStringRefs[componentName]) {
|
||||||
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
||||||
|
didWarnAboutStringRefs[componentName] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingKey = function() {
|
||||||
|
if (!specialPropKeyWarningShown) {
|
||||||
|
specialPropKeyWarningShown = true;
|
||||||
|
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineRefPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingRef = function() {
|
||||||
|
if (!specialPropRefWarningShown) {
|
||||||
|
specialPropRefWarningShown = true;
|
||||||
|
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingRef.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "ref", {
|
||||||
|
get: warnAboutAccessingRef,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
||||||
|
var element = {
|
||||||
|
// This tag allows us to uniquely identify this as a React Element
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
// Built-in properties that belong on the element
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
ref,
|
||||||
|
props,
|
||||||
|
// Record the component responsible for creating this element.
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
{
|
||||||
|
element._store = {};
|
||||||
|
Object.defineProperty(element._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_self", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: self
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_source", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: source
|
||||||
|
});
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(element.props);
|
||||||
|
Object.freeze(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
};
|
||||||
|
function jsxDEV(type, config, maybeKey, source, self) {
|
||||||
|
{
|
||||||
|
var propName;
|
||||||
|
var props = {};
|
||||||
|
var key = null;
|
||||||
|
var ref = null;
|
||||||
|
if (maybeKey !== void 0) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(maybeKey);
|
||||||
|
}
|
||||||
|
key = "" + maybeKey;
|
||||||
|
}
|
||||||
|
if (hasValidKey(config)) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(config.key);
|
||||||
|
}
|
||||||
|
key = "" + config.key;
|
||||||
|
}
|
||||||
|
if (hasValidRef(config)) {
|
||||||
|
ref = config.ref;
|
||||||
|
warnIfStringRefCannotBeAutoConverted(config, self);
|
||||||
|
}
|
||||||
|
for (propName in config) {
|
||||||
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
||||||
|
props[propName] = config[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps) {
|
||||||
|
var defaultProps = type.defaultProps;
|
||||||
|
for (propName in defaultProps) {
|
||||||
|
if (props[propName] === void 0) {
|
||||||
|
props[propName] = defaultProps[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (key || ref) {
|
||||||
|
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
||||||
|
if (key) {
|
||||||
|
defineKeyPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
if (ref) {
|
||||||
|
defineRefPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var propTypesMisspellWarningShown;
|
||||||
|
{
|
||||||
|
propTypesMisspellWarningShown = false;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
{
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getDeclarationErrorAddendum() {
|
||||||
|
{
|
||||||
|
if (ReactCurrentOwner$1.current) {
|
||||||
|
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
||||||
|
if (name) {
|
||||||
|
return "\n\nCheck the render method of `" + name + "`.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getSourceInfoErrorAddendum(source) {
|
||||||
|
{
|
||||||
|
if (source !== void 0) {
|
||||||
|
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
||||||
|
var lineNumber = source.lineNumber;
|
||||||
|
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ownerHasKeyUseWarning = {};
|
||||||
|
function getCurrentComponentErrorInfo(parentType) {
|
||||||
|
{
|
||||||
|
var info = getDeclarationErrorAddendum();
|
||||||
|
if (!info) {
|
||||||
|
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
||||||
|
if (parentName) {
|
||||||
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateExplicitKey(element, parentType) {
|
||||||
|
{
|
||||||
|
if (!element._store || element._store.validated || element.key != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element._store.validated = true;
|
||||||
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||||||
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
||||||
|
var childOwner = "";
|
||||||
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
||||||
|
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
||||||
|
}
|
||||||
|
setCurrentlyValidatingElement$1(element);
|
||||||
|
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateChildKeys(node, parentType) {
|
||||||
|
{
|
||||||
|
if (typeof node !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isArray(node)) {
|
||||||
|
for (var i = 0; i < node.length; i++) {
|
||||||
|
var child = node[i];
|
||||||
|
if (isValidElement(child)) {
|
||||||
|
validateExplicitKey(child, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (isValidElement(node)) {
|
||||||
|
if (node._store) {
|
||||||
|
node._store.validated = true;
|
||||||
|
}
|
||||||
|
} else if (node) {
|
||||||
|
var iteratorFn = getIteratorFn(node);
|
||||||
|
if (typeof iteratorFn === "function") {
|
||||||
|
if (iteratorFn !== node.entries) {
|
||||||
|
var iterator = iteratorFn.call(node);
|
||||||
|
var step;
|
||||||
|
while (!(step = iterator.next()).done) {
|
||||||
|
if (isValidElement(step.value)) {
|
||||||
|
validateExplicitKey(step.value, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validatePropTypes(element) {
|
||||||
|
{
|
||||||
|
var type = element.type;
|
||||||
|
if (type === null || type === void 0 || typeof type === "string") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var propTypes;
|
||||||
|
if (typeof type === "function") {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
||||||
|
// Inner props are checked in the reconciler.
|
||||||
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (propTypes) {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
||||||
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
||||||
|
propTypesMisspellWarningShown = true;
|
||||||
|
var _name = getComponentNameFromType(type);
|
||||||
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
||||||
|
}
|
||||||
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
||||||
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateFragmentProps(fragment) {
|
||||||
|
{
|
||||||
|
var keys = Object.keys(fragment.props);
|
||||||
|
for (var i = 0; i < keys.length; i++) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (key !== "children" && key !== "key") {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fragment.ref !== null) {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
||||||
|
{
|
||||||
|
var validType = isValidElementType(type);
|
||||||
|
if (!validType) {
|
||||||
|
var info = "";
|
||||||
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
||||||
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
||||||
|
}
|
||||||
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
||||||
|
if (sourceInfo) {
|
||||||
|
info += sourceInfo;
|
||||||
|
} else {
|
||||||
|
info += getDeclarationErrorAddendum();
|
||||||
|
}
|
||||||
|
var typeString;
|
||||||
|
if (type === null) {
|
||||||
|
typeString = "null";
|
||||||
|
} else if (isArray(type)) {
|
||||||
|
typeString = "array";
|
||||||
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
||||||
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
||||||
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
||||||
|
} else {
|
||||||
|
typeString = typeof type;
|
||||||
|
}
|
||||||
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
||||||
|
}
|
||||||
|
var element = jsxDEV(type, props, key, source, self);
|
||||||
|
if (element == null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
if (validType) {
|
||||||
|
var children = props.children;
|
||||||
|
if (children !== void 0) {
|
||||||
|
if (isStaticChildren) {
|
||||||
|
if (isArray(children)) {
|
||||||
|
for (var i = 0; i < children.length; i++) {
|
||||||
|
validateChildKeys(children[i], type);
|
||||||
|
}
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(children);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
validateChildKeys(children, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(props, "key")) {
|
||||||
|
var componentName = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(props).filter(function(k) {
|
||||||
|
return k !== "key";
|
||||||
|
});
|
||||||
|
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
||||||
|
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
||||||
|
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
||||||
|
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) {
|
||||||
|
validateFragmentProps(element);
|
||||||
|
} else {
|
||||||
|
validatePropTypes(element);
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var jsxDEV$1 = jsxWithValidation;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsxDEV = jsxDEV$1;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react/jsx-dev-runtime.js
|
||||||
|
var require_jsx_dev_runtime = __commonJS({
|
||||||
|
"node_modules/react/jsx-dev-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_dev_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_jsx_dev_runtime();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-dev-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-dev-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react_jsx-dev-runtime.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-dev-runtime.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-dev-runtime.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
925
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-runtime.js
generated
vendored
Normal file
925
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-runtime.js
generated
vendored
Normal file
@ -0,0 +1,925 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-DRWLMN53.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-G3PMV62Z.js";
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-runtime.development.js
|
||||||
|
var require_react_jsx_runtime_development = __commonJS({
|
||||||
|
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var React = require_react();
|
||||||
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||||
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
||||||
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||||
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
||||||
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||||
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||||
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||||
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||||
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||||
|
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
||||||
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||||
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
||||||
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||||
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
||||||
|
if (typeof maybeIterator === "function") {
|
||||||
|
return maybeIterator;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
function error(format) {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||||
|
args[_key2 - 1] = arguments[_key2];
|
||||||
|
}
|
||||||
|
printWarning("error", format, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function printWarning(level, format, args) {
|
||||||
|
{
|
||||||
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
||||||
|
if (stack !== "") {
|
||||||
|
format += "%s";
|
||||||
|
args = args.concat([stack]);
|
||||||
|
}
|
||||||
|
var argsWithFormat = args.map(function(item) {
|
||||||
|
return String(item);
|
||||||
|
});
|
||||||
|
argsWithFormat.unshift("Warning: " + format);
|
||||||
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var enableScopeAPI = false;
|
||||||
|
var enableCacheElement = false;
|
||||||
|
var enableTransitionTracing = false;
|
||||||
|
var enableLegacyHidden = false;
|
||||||
|
var enableDebugTracing = false;
|
||||||
|
var REACT_MODULE_REFERENCE;
|
||||||
|
{
|
||||||
|
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||||
|
}
|
||||||
|
function isValidElementType(type) {
|
||||||
|
if (typeof type === "string" || typeof type === "function") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (typeof type === "object" && type !== null) {
|
||||||
|
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
||||||
|
// types supported by any Flight configuration anywhere since
|
||||||
|
// we don't know which Flight build this will end up being used
|
||||||
|
// with.
|
||||||
|
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getWrappedName(outerType, innerType, wrapperName) {
|
||||||
|
var displayName = outerType.displayName;
|
||||||
|
if (displayName) {
|
||||||
|
return displayName;
|
||||||
|
}
|
||||||
|
var functionName = innerType.displayName || innerType.name || "";
|
||||||
|
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
||||||
|
}
|
||||||
|
function getContextName(type) {
|
||||||
|
return type.displayName || "Context";
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (type == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof type.tag === "number") {
|
||||||
|
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
return type.displayName || type.name || null;
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
var context = type;
|
||||||
|
return getContextName(context) + ".Consumer";
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
var provider = type;
|
||||||
|
return getContextName(provider._context) + ".Provider";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return getWrappedName(type, type.render, "ForwardRef");
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
var outerName = type.displayName || null;
|
||||||
|
if (outerName !== null) {
|
||||||
|
return outerName;
|
||||||
|
}
|
||||||
|
return getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(init(payload));
|
||||||
|
} catch (x) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var assign = Object.assign;
|
||||||
|
var disabledDepth = 0;
|
||||||
|
var prevLog;
|
||||||
|
var prevInfo;
|
||||||
|
var prevWarn;
|
||||||
|
var prevError;
|
||||||
|
var prevGroup;
|
||||||
|
var prevGroupCollapsed;
|
||||||
|
var prevGroupEnd;
|
||||||
|
function disabledLog() {
|
||||||
|
}
|
||||||
|
disabledLog.__reactDisabledLog = true;
|
||||||
|
function disableLogs() {
|
||||||
|
{
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
prevLog = console.log;
|
||||||
|
prevInfo = console.info;
|
||||||
|
prevWarn = console.warn;
|
||||||
|
prevError = console.error;
|
||||||
|
prevGroup = console.group;
|
||||||
|
prevGroupCollapsed = console.groupCollapsed;
|
||||||
|
prevGroupEnd = console.groupEnd;
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
value: disabledLog,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
info: props,
|
||||||
|
log: props,
|
||||||
|
warn: props,
|
||||||
|
error: props,
|
||||||
|
group: props,
|
||||||
|
groupCollapsed: props,
|
||||||
|
groupEnd: props
|
||||||
|
});
|
||||||
|
}
|
||||||
|
disabledDepth++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function reenableLogs() {
|
||||||
|
{
|
||||||
|
disabledDepth--;
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
log: assign({}, props, {
|
||||||
|
value: prevLog
|
||||||
|
}),
|
||||||
|
info: assign({}, props, {
|
||||||
|
value: prevInfo
|
||||||
|
}),
|
||||||
|
warn: assign({}, props, {
|
||||||
|
value: prevWarn
|
||||||
|
}),
|
||||||
|
error: assign({}, props, {
|
||||||
|
value: prevError
|
||||||
|
}),
|
||||||
|
group: assign({}, props, {
|
||||||
|
value: prevGroup
|
||||||
|
}),
|
||||||
|
groupCollapsed: assign({}, props, {
|
||||||
|
value: prevGroupCollapsed
|
||||||
|
}),
|
||||||
|
groupEnd: assign({}, props, {
|
||||||
|
value: prevGroupEnd
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (disabledDepth < 0) {
|
||||||
|
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
||||||
|
var prefix;
|
||||||
|
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
||||||
|
{
|
||||||
|
if (prefix === void 0) {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
||||||
|
prefix = match && match[1] || "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "\n" + prefix + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var reentry = false;
|
||||||
|
var componentFrameCache;
|
||||||
|
{
|
||||||
|
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
||||||
|
componentFrameCache = new PossiblyWeakMap();
|
||||||
|
}
|
||||||
|
function describeNativeComponentFrame(fn, construct) {
|
||||||
|
if (!fn || reentry) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
var frame = componentFrameCache.get(fn);
|
||||||
|
if (frame !== void 0) {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var control;
|
||||||
|
reentry = true;
|
||||||
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
||||||
|
Error.prepareStackTrace = void 0;
|
||||||
|
var previousDispatcher;
|
||||||
|
{
|
||||||
|
previousDispatcher = ReactCurrentDispatcher.current;
|
||||||
|
ReactCurrentDispatcher.current = null;
|
||||||
|
disableLogs();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (construct) {
|
||||||
|
var Fake = function() {
|
||||||
|
throw Error();
|
||||||
|
};
|
||||||
|
Object.defineProperty(Fake.prototype, "props", {
|
||||||
|
set: function() {
|
||||||
|
throw Error();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (typeof Reflect === "object" && Reflect.construct) {
|
||||||
|
try {
|
||||||
|
Reflect.construct(Fake, []);
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
Reflect.construct(fn, [], Fake);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
Fake.call();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn.call(Fake.prototype);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn();
|
||||||
|
}
|
||||||
|
} catch (sample) {
|
||||||
|
if (sample && control && typeof sample.stack === "string") {
|
||||||
|
var sampleLines = sample.stack.split("\n");
|
||||||
|
var controlLines = control.stack.split("\n");
|
||||||
|
var s = sampleLines.length - 1;
|
||||||
|
var c = controlLines.length - 1;
|
||||||
|
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
||||||
|
c--;
|
||||||
|
}
|
||||||
|
for (; s >= 1 && c >= 0; s--, c--) {
|
||||||
|
if (sampleLines[s] !== controlLines[c]) {
|
||||||
|
if (s !== 1 || c !== 1) {
|
||||||
|
do {
|
||||||
|
s--;
|
||||||
|
c--;
|
||||||
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
||||||
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
||||||
|
if (fn.displayName && _frame.includes("<anonymous>")) {
|
||||||
|
_frame = _frame.replace("<anonymous>", fn.displayName);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, _frame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _frame;
|
||||||
|
}
|
||||||
|
} while (s >= 1 && c >= 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
reentry = false;
|
||||||
|
{
|
||||||
|
ReactCurrentDispatcher.current = previousDispatcher;
|
||||||
|
reenableLogs();
|
||||||
|
}
|
||||||
|
Error.prepareStackTrace = previousPrepareStackTrace;
|
||||||
|
}
|
||||||
|
var name = fn ? fn.displayName || fn.name : "";
|
||||||
|
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, syntheticFrame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return syntheticFrame;
|
||||||
|
}
|
||||||
|
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(fn, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function shouldConstruct(Component) {
|
||||||
|
var prototype = Component.prototype;
|
||||||
|
return !!(prototype && prototype.isReactComponent);
|
||||||
|
}
|
||||||
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
|
if (type == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(type, shouldConstruct(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return describeBuiltInComponentFrame(type);
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("Suspense");
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("SuspenseList");
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return describeFunctionComponentFrame(type.render);
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||||
|
var loggedTypeFailures = {};
|
||||||
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
||||||
|
{
|
||||||
|
var has = Function.call.bind(hasOwnProperty);
|
||||||
|
for (var typeSpecName in typeSpecs) {
|
||||||
|
if (has(typeSpecs, typeSpecName)) {
|
||||||
|
var error$1 = void 0;
|
||||||
|
try {
|
||||||
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||||
|
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
||||||
|
err.name = "Invariant Violation";
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||||
|
} catch (ex) {
|
||||||
|
error$1 = ex;
|
||||||
|
}
|
||||||
|
if (error$1 && !(error$1 instanceof Error)) {
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
||||||
|
loggedTypeFailures[error$1.message] = true;
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("Failed %s type: %s", location, error$1.message);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var isArrayImpl = Array.isArray;
|
||||||
|
function isArray(a) {
|
||||||
|
return isArrayImpl(a);
|
||||||
|
}
|
||||||
|
function typeName(value) {
|
||||||
|
{
|
||||||
|
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
||||||
|
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function willCoercionThrow(value) {
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
return false;
|
||||||
|
} catch (e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
{
|
||||||
|
if (willCoercionThrow(value)) {
|
||||||
|
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var RESERVED_PROPS = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var specialPropRefWarningShown;
|
||||||
|
var didWarnAboutStringRefs;
|
||||||
|
{
|
||||||
|
didWarnAboutStringRefs = {};
|
||||||
|
}
|
||||||
|
function hasValidRef(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "ref")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.ref !== void 0;
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.key !== void 0;
|
||||||
|
}
|
||||||
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||||
|
{
|
||||||
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
||||||
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
||||||
|
if (!didWarnAboutStringRefs[componentName]) {
|
||||||
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
||||||
|
didWarnAboutStringRefs[componentName] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingKey = function() {
|
||||||
|
if (!specialPropKeyWarningShown) {
|
||||||
|
specialPropKeyWarningShown = true;
|
||||||
|
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineRefPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingRef = function() {
|
||||||
|
if (!specialPropRefWarningShown) {
|
||||||
|
specialPropRefWarningShown = true;
|
||||||
|
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingRef.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "ref", {
|
||||||
|
get: warnAboutAccessingRef,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
||||||
|
var element = {
|
||||||
|
// This tag allows us to uniquely identify this as a React Element
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
// Built-in properties that belong on the element
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
ref,
|
||||||
|
props,
|
||||||
|
// Record the component responsible for creating this element.
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
{
|
||||||
|
element._store = {};
|
||||||
|
Object.defineProperty(element._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_self", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: self
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_source", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: source
|
||||||
|
});
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(element.props);
|
||||||
|
Object.freeze(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
};
|
||||||
|
function jsxDEV(type, config, maybeKey, source, self) {
|
||||||
|
{
|
||||||
|
var propName;
|
||||||
|
var props = {};
|
||||||
|
var key = null;
|
||||||
|
var ref = null;
|
||||||
|
if (maybeKey !== void 0) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(maybeKey);
|
||||||
|
}
|
||||||
|
key = "" + maybeKey;
|
||||||
|
}
|
||||||
|
if (hasValidKey(config)) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(config.key);
|
||||||
|
}
|
||||||
|
key = "" + config.key;
|
||||||
|
}
|
||||||
|
if (hasValidRef(config)) {
|
||||||
|
ref = config.ref;
|
||||||
|
warnIfStringRefCannotBeAutoConverted(config, self);
|
||||||
|
}
|
||||||
|
for (propName in config) {
|
||||||
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
||||||
|
props[propName] = config[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps) {
|
||||||
|
var defaultProps = type.defaultProps;
|
||||||
|
for (propName in defaultProps) {
|
||||||
|
if (props[propName] === void 0) {
|
||||||
|
props[propName] = defaultProps[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (key || ref) {
|
||||||
|
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
||||||
|
if (key) {
|
||||||
|
defineKeyPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
if (ref) {
|
||||||
|
defineRefPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var propTypesMisspellWarningShown;
|
||||||
|
{
|
||||||
|
propTypesMisspellWarningShown = false;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
{
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getDeclarationErrorAddendum() {
|
||||||
|
{
|
||||||
|
if (ReactCurrentOwner$1.current) {
|
||||||
|
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
||||||
|
if (name) {
|
||||||
|
return "\n\nCheck the render method of `" + name + "`.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getSourceInfoErrorAddendum(source) {
|
||||||
|
{
|
||||||
|
if (source !== void 0) {
|
||||||
|
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
||||||
|
var lineNumber = source.lineNumber;
|
||||||
|
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ownerHasKeyUseWarning = {};
|
||||||
|
function getCurrentComponentErrorInfo(parentType) {
|
||||||
|
{
|
||||||
|
var info = getDeclarationErrorAddendum();
|
||||||
|
if (!info) {
|
||||||
|
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
||||||
|
if (parentName) {
|
||||||
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateExplicitKey(element, parentType) {
|
||||||
|
{
|
||||||
|
if (!element._store || element._store.validated || element.key != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element._store.validated = true;
|
||||||
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||||||
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
||||||
|
var childOwner = "";
|
||||||
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
||||||
|
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
||||||
|
}
|
||||||
|
setCurrentlyValidatingElement$1(element);
|
||||||
|
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateChildKeys(node, parentType) {
|
||||||
|
{
|
||||||
|
if (typeof node !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isArray(node)) {
|
||||||
|
for (var i = 0; i < node.length; i++) {
|
||||||
|
var child = node[i];
|
||||||
|
if (isValidElement(child)) {
|
||||||
|
validateExplicitKey(child, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (isValidElement(node)) {
|
||||||
|
if (node._store) {
|
||||||
|
node._store.validated = true;
|
||||||
|
}
|
||||||
|
} else if (node) {
|
||||||
|
var iteratorFn = getIteratorFn(node);
|
||||||
|
if (typeof iteratorFn === "function") {
|
||||||
|
if (iteratorFn !== node.entries) {
|
||||||
|
var iterator = iteratorFn.call(node);
|
||||||
|
var step;
|
||||||
|
while (!(step = iterator.next()).done) {
|
||||||
|
if (isValidElement(step.value)) {
|
||||||
|
validateExplicitKey(step.value, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validatePropTypes(element) {
|
||||||
|
{
|
||||||
|
var type = element.type;
|
||||||
|
if (type === null || type === void 0 || typeof type === "string") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var propTypes;
|
||||||
|
if (typeof type === "function") {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
||||||
|
// Inner props are checked in the reconciler.
|
||||||
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (propTypes) {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
||||||
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
||||||
|
propTypesMisspellWarningShown = true;
|
||||||
|
var _name = getComponentNameFromType(type);
|
||||||
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
||||||
|
}
|
||||||
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
||||||
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateFragmentProps(fragment) {
|
||||||
|
{
|
||||||
|
var keys = Object.keys(fragment.props);
|
||||||
|
for (var i = 0; i < keys.length; i++) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (key !== "children" && key !== "key") {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fragment.ref !== null) {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
||||||
|
{
|
||||||
|
var validType = isValidElementType(type);
|
||||||
|
if (!validType) {
|
||||||
|
var info = "";
|
||||||
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
||||||
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
||||||
|
}
|
||||||
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
||||||
|
if (sourceInfo) {
|
||||||
|
info += sourceInfo;
|
||||||
|
} else {
|
||||||
|
info += getDeclarationErrorAddendum();
|
||||||
|
}
|
||||||
|
var typeString;
|
||||||
|
if (type === null) {
|
||||||
|
typeString = "null";
|
||||||
|
} else if (isArray(type)) {
|
||||||
|
typeString = "array";
|
||||||
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
||||||
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
||||||
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
||||||
|
} else {
|
||||||
|
typeString = typeof type;
|
||||||
|
}
|
||||||
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
||||||
|
}
|
||||||
|
var element = jsxDEV(type, props, key, source, self);
|
||||||
|
if (element == null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
if (validType) {
|
||||||
|
var children = props.children;
|
||||||
|
if (children !== void 0) {
|
||||||
|
if (isStaticChildren) {
|
||||||
|
if (isArray(children)) {
|
||||||
|
for (var i = 0; i < children.length; i++) {
|
||||||
|
validateChildKeys(children[i], type);
|
||||||
|
}
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(children);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
validateChildKeys(children, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(props, "key")) {
|
||||||
|
var componentName = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(props).filter(function(k) {
|
||||||
|
return k !== "key";
|
||||||
|
});
|
||||||
|
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
||||||
|
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
||||||
|
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
||||||
|
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) {
|
||||||
|
validateFragmentProps(element);
|
||||||
|
} else {
|
||||||
|
validatePropTypes(element);
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationStatic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationDynamic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var jsx = jsxWithValidationDynamic;
|
||||||
|
var jsxs = jsxWithValidationStatic;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsx = jsx;
|
||||||
|
exports.jsxs = jsxs;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react/jsx-runtime.js
|
||||||
|
var require_jsx_runtime = __commonJS({
|
||||||
|
"node_modules/react/jsx-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_jsx_runtime();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react_jsx-runtime.js.map
|
||||||
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-runtime.js.map
generated
vendored
Normal file
7
frontend/node_modules/.vite/deps_temp_e0b75b38/react_jsx-runtime.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
22
frontend/node_modules/@babel/code-frame/LICENSE
generated
vendored
Normal file
22
frontend/node_modules/@babel/code-frame/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
19
frontend/node_modules/@babel/code-frame/README.md
generated
vendored
Normal file
19
frontend/node_modules/@babel/code-frame/README.md
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# @babel/code-frame
|
||||||
|
|
||||||
|
> Generate errors that contain a code frame that point to source locations.
|
||||||
|
|
||||||
|
See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Using npm:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install --save-dev @babel/code-frame
|
||||||
|
```
|
||||||
|
|
||||||
|
or using yarn:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn add @babel/code-frame --dev
|
||||||
|
```
|
||||||
217
frontend/node_modules/@babel/code-frame/lib/index.js
generated
vendored
Normal file
217
frontend/node_modules/@babel/code-frame/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,217 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
|
var picocolors = require('picocolors');
|
||||||
|
var jsTokens = require('js-tokens');
|
||||||
|
var helperValidatorIdentifier = require('@babel/helper-validator-identifier');
|
||||||
|
|
||||||
|
function isColorSupported() {
|
||||||
|
return (typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const compose = (f, g) => v => f(g(v));
|
||||||
|
function buildDefs(colors) {
|
||||||
|
return {
|
||||||
|
keyword: colors.cyan,
|
||||||
|
capitalized: colors.yellow,
|
||||||
|
jsxIdentifier: colors.yellow,
|
||||||
|
punctuator: colors.yellow,
|
||||||
|
number: colors.magenta,
|
||||||
|
string: colors.green,
|
||||||
|
regex: colors.magenta,
|
||||||
|
comment: colors.gray,
|
||||||
|
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
||||||
|
gutter: colors.gray,
|
||||||
|
marker: compose(colors.red, colors.bold),
|
||||||
|
message: compose(colors.red, colors.bold),
|
||||||
|
reset: colors.reset
|
||||||
|
};
|
||||||
|
}
|
||||||
|
const defsOn = buildDefs(picocolors.createColors(true));
|
||||||
|
const defsOff = buildDefs(picocolors.createColors(false));
|
||||||
|
function getDefs(enabled) {
|
||||||
|
return enabled ? defsOn : defsOff;
|
||||||
|
}
|
||||||
|
|
||||||
|
const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
|
||||||
|
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
||||||
|
const BRACKET = /^[()[\]{}]$/;
|
||||||
|
let tokenize;
|
||||||
|
const JSX_TAG = /^[a-z][\w-]*$/i;
|
||||||
|
const getTokenType = function (token, offset, text) {
|
||||||
|
if (token.type === "name") {
|
||||||
|
const tokenValue = token.value;
|
||||||
|
if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) {
|
||||||
|
return "keyword";
|
||||||
|
}
|
||||||
|
if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
|
||||||
|
return "jsxIdentifier";
|
||||||
|
}
|
||||||
|
const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
|
||||||
|
if (firstChar !== firstChar.toLowerCase()) {
|
||||||
|
return "capitalized";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (token.type === "punctuator" && BRACKET.test(token.value)) {
|
||||||
|
return "bracket";
|
||||||
|
}
|
||||||
|
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
|
||||||
|
return "punctuator";
|
||||||
|
}
|
||||||
|
return token.type;
|
||||||
|
};
|
||||||
|
tokenize = function* (text) {
|
||||||
|
let match;
|
||||||
|
while (match = jsTokens.default.exec(text)) {
|
||||||
|
const token = jsTokens.matchToToken(match);
|
||||||
|
yield {
|
||||||
|
type: getTokenType(token, match.index, text),
|
||||||
|
value: token.value
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function highlight(text) {
|
||||||
|
if (text === "") return "";
|
||||||
|
const defs = getDefs(true);
|
||||||
|
let highlighted = "";
|
||||||
|
for (const {
|
||||||
|
type,
|
||||||
|
value
|
||||||
|
} of tokenize(text)) {
|
||||||
|
if (type in defs) {
|
||||||
|
highlighted += value.split(NEWLINE$1).map(str => defs[type](str)).join("\n");
|
||||||
|
} else {
|
||||||
|
highlighted += value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return highlighted;
|
||||||
|
}
|
||||||
|
|
||||||
|
let deprecationWarningShown = false;
|
||||||
|
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
||||||
|
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
||||||
|
const startLoc = Object.assign({
|
||||||
|
column: 0,
|
||||||
|
line: -1
|
||||||
|
}, loc.start);
|
||||||
|
const endLoc = Object.assign({}, startLoc, loc.end);
|
||||||
|
const {
|
||||||
|
linesAbove = 2,
|
||||||
|
linesBelow = 3
|
||||||
|
} = opts || {};
|
||||||
|
const startLine = startLoc.line - startLineBaseZero;
|
||||||
|
const startColumn = startLoc.column;
|
||||||
|
const endLine = endLoc.line - startLineBaseZero;
|
||||||
|
const endColumn = endLoc.column;
|
||||||
|
let start = Math.max(startLine - (linesAbove + 1), 0);
|
||||||
|
let end = Math.min(source.length, endLine + linesBelow);
|
||||||
|
if (startLine === -1) {
|
||||||
|
start = 0;
|
||||||
|
}
|
||||||
|
if (endLine === -1) {
|
||||||
|
end = source.length;
|
||||||
|
}
|
||||||
|
const lineDiff = endLine - startLine;
|
||||||
|
const markerLines = {};
|
||||||
|
if (lineDiff) {
|
||||||
|
for (let i = 0; i <= lineDiff; i++) {
|
||||||
|
const lineNumber = i + startLine;
|
||||||
|
if (!startColumn) {
|
||||||
|
markerLines[lineNumber] = true;
|
||||||
|
} else if (i === 0) {
|
||||||
|
const sourceLength = source[lineNumber - 1].length;
|
||||||
|
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
||||||
|
} else if (i === lineDiff) {
|
||||||
|
markerLines[lineNumber] = [0, endColumn];
|
||||||
|
} else {
|
||||||
|
const sourceLength = source[lineNumber - i].length;
|
||||||
|
markerLines[lineNumber] = [0, sourceLength];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (startColumn === endColumn) {
|
||||||
|
if (startColumn) {
|
||||||
|
markerLines[startLine] = [startColumn, 0];
|
||||||
|
} else {
|
||||||
|
markerLines[startLine] = true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
markerLines
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
||||||
|
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
||||||
|
const startLineBaseZero = (opts.startLine || 1) - 1;
|
||||||
|
const defs = getDefs(shouldHighlight);
|
||||||
|
const lines = rawLines.split(NEWLINE);
|
||||||
|
const {
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
markerLines
|
||||||
|
} = getMarkerLines(loc, lines, opts, startLineBaseZero);
|
||||||
|
const hasColumns = loc.start && typeof loc.start.column === "number";
|
||||||
|
const numberMaxWidth = String(end + startLineBaseZero).length;
|
||||||
|
const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
|
||||||
|
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
|
||||||
|
const number = start + 1 + index;
|
||||||
|
const paddedNumber = ` ${number + startLineBaseZero}`.slice(-numberMaxWidth);
|
||||||
|
const gutter = ` ${paddedNumber} |`;
|
||||||
|
const hasMarker = markerLines[number];
|
||||||
|
const lastMarkerLine = !markerLines[number + 1];
|
||||||
|
if (hasMarker) {
|
||||||
|
let markerLine = "";
|
||||||
|
if (Array.isArray(hasMarker)) {
|
||||||
|
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
||||||
|
const numberOfMarkers = hasMarker[1] || 1;
|
||||||
|
markerLine = ["\n ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
|
||||||
|
if (lastMarkerLine && opts.message) {
|
||||||
|
markerLine += " " + defs.message(opts.message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
||||||
|
} else {
|
||||||
|
return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
||||||
|
}
|
||||||
|
}).join("\n");
|
||||||
|
if (opts.message && !hasColumns) {
|
||||||
|
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
||||||
|
}
|
||||||
|
if (shouldHighlight) {
|
||||||
|
return defs.reset(frame);
|
||||||
|
} else {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function index (rawLines, lineNumber, colNumber, opts = {}) {
|
||||||
|
if (!deprecationWarningShown) {
|
||||||
|
deprecationWarningShown = true;
|
||||||
|
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
||||||
|
if (process.emitWarning) {
|
||||||
|
process.emitWarning(message, "DeprecationWarning");
|
||||||
|
} else {
|
||||||
|
const deprecationError = new Error(message);
|
||||||
|
deprecationError.name = "DeprecationWarning";
|
||||||
|
console.warn(new Error(message));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
colNumber = Math.max(colNumber, 0);
|
||||||
|
const location = {
|
||||||
|
start: {
|
||||||
|
column: colNumber,
|
||||||
|
line: lineNumber
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return codeFrameColumns(rawLines, location, opts);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.codeFrameColumns = codeFrameColumns;
|
||||||
|
exports.default = index;
|
||||||
|
exports.highlight = highlight;
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
1
frontend/node_modules/@babel/code-frame/lib/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/@babel/code-frame/lib/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
32
frontend/node_modules/@babel/code-frame/package.json
generated
vendored
Normal file
32
frontend/node_modules/@babel/code-frame/package.json
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"name": "@babel/code-frame",
|
||||||
|
"version": "7.29.7",
|
||||||
|
"description": "Generate errors that contain a code frame that point to source locations.",
|
||||||
|
"author": "The Babel Team (https://babel.dev/team)",
|
||||||
|
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
|
||||||
|
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
|
||||||
|
"license": "MIT",
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/babel/babel.git",
|
||||||
|
"directory": "packages/babel-code-frame"
|
||||||
|
},
|
||||||
|
"main": "./lib/index.js",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/helper-validator-identifier": "^7.29.7",
|
||||||
|
"js-tokens": "^4.0.0",
|
||||||
|
"picocolors": "^1.1.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"charcodes": "^0.2.0",
|
||||||
|
"import-meta-resolve": "^4.1.0",
|
||||||
|
"strip-ansi": "^4.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.9.0"
|
||||||
|
},
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user