Compare commits

...
2 Commits
Author SHA1 Message Date
minaChoiandClaude Opus 5 b86a055278 [docs] site/scripts: 지침을 README 한 장으로 합치고 일회용 스크립트를 지운다
README · SECTIONS · PROMPTS · REVIEW 넷으로 흩어져 있어서 무엇을 먼저 볼지 알 수 없었다.
특히 "실제 구현하는 사람이 어떤 파일을 열어야 하나" 가 어디에도 없었다 —
목업 폴더가 사양서라는 것과, 코드는 shared 계약 3개 + backend 서비스 4개 + site/src
섹션에서 고친다는 것.

- README.md 한 장으로 합침. 1부 실제 구현(참고할 파일 · 섹션 22개 현황 · 할 일 T1~T6 ·
  프롬프트 전문 6종) / 2부 목업 고치기(굽기·배포·규칙 14종·주입분) / 3부 공통(보고 규칙 ·
  틀렸던 방식 · 파일 목록 · 지울 것 · 남은 판단)
- SECTIONS.md · PROMPTS.md · REVIEW-2026-09-11.md 삭제 — 내용은 전부 README 로
- 일회용 probe 스크립트 24개 삭제. 남긴 것은 audit-all · rails-test · kingcheck 셋
- scripts/mockup/.gitignore 신설 — 중간 산출물(stay-payload-new.json)

검증: node audit-all.mjs 34/34

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 10:58:21 +09:00
minaChoiandClaude Opus 5 ea1daae576 [fix] site/scripts: 시연본을 레포 안에서 자급자족하게 — 다른 기계에서 흰 화면이던 것
구워진 index.html 이 미러 사진 61장(`/assets/mirror/*`)과 번들 css/js 를 루트 절대경로로
가리켰다. 그 파일들은 레포가 아니라 도커 볼륨에만 있어서, 레포만 받은 사람은 흰 화면을 본다.
번들은 더 나쁘다 — 파일명이 콘텐츠 해시라 그 기계에서 구운 해시가 다르면 404 다.
실측: 구운 html 이 /assets 를 63곳 가리키고 있었다.

- img/mirror/ 61장 · vendor/ 2개를 레포로 끌어들였다
- patch_stay.py: 경로를 `/s/stay/img/mirror/` · `/s/stay/vendor/` 로 바꿔 박고,
  레포에 없는 자산이 있으면 **빌드를 멈춘다**. 끝에 `/assets` 잔재가 남아도 멈춘다
- audit-all.mjs: 히어로 사진 검사를 새 경로로
- SECTIONS.md: 설명서에서 **작업 지시서**로 다시 씀. 프롬프트를 여기 다시 적지 않고
  PROMPTS.md 의 절을 가리킨다(일정은 §3-1/3-2/3-3 세 단계다). 제품 쪽 짝 파일 표 추가
- README.md: "보고 규칙" 절 신설 — 실행하지 않은 것을 됐다고 쓰지 않는다

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 10:51:46 +09:00
94 changed files with 1096 additions and 1703 deletions

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
build/
stay-payload-new.json
-345
View File
@@ -1,345 +0,0 @@
# `/s/stay` 시연본의 콘텐츠를 만드는 프롬프트
시연본에 들어간 것(히어로 문구 100개 · 여행 일정 21개 · 가요 다방 25곡 · 인물 열전 57명 ·
오늘의 엽서)을 **어떤 프롬프트로 뽑는지** 정리한 문서다.
지금 시연본은 이 프롬프트로 뽑은 뒤 사람이 검수해 스크립트에 박아 둔 상태다.
---
## 0. 이 프롬프트들이 어디로 가야 하나
**단일 출처는 `solution/shared/src/lib/section-prompts.ts` 다.**
사장님이 [콘텐츠] 탭에서 복사해 가는 프롬프트와, 서버가 지역 단위로 돌리는 생성 잡
(`services/story_service.py`)이 **같은 문장**을 써야 한다. 두 벌로 두면
"빌더에서 뽑은 것과 서버가 채운 것의 모양이 다르다"가 조용히 생긴다.
```
solution/shared/src/lib/section-prompts.ts ← 여기만 고친다
│ npm run export:prompts
▼
solution/backend/services/prompts/section_prompts.json ← 산출물, 커밋됨. 손으로 고치지 않는다
```
아래 프롬프트 중 **2·3 은 새로 만들 것**이고(지금 계약에 없다), **4·5·6 은 기존 것을
고칠 것**이다. 옮길 때 `maxItems` 와 프롬프트 안의 숫자를 **같이** 바꾼다 —
어긋나면 받아 놓고 잘라 버린다.
| 프롬프트 | 지금 상태 | 옮길 자리 |
|---|---|---|
| 2. 히어로 캐치프레이즈 | **없음** — 새로 만든다 | `SECTION_PROMPTS.catchphrase` (신규) |
| 3. 여행 일정 · 장소 대장 | 있으나 규칙이 부족 | `canvas/dataSpec.ts` `itinerary` 교체 |
| 4. 가요 다방 | 있음(8곡) | `SECTION_PROMPTS.songs` 개선 |
| 5. 인물 열전 | 있음(10명) | `SECTION_PROMPTS.people` 개선 |
| 6. 오늘의 엽서 | 있음(12개) | `SECTION_PROMPTS.postcard` 개선 |
---
## 1. 공통 규칙 (모든 프롬프트 뒤에 붙는다)
```
[공통 규칙]
1. JSON 하나만 출력한다. 인사말·설명·코드펜스를 붙이지 않는다.
2. 확인되지 않은 값은 필드를 통째로 뺀다. 빈 문자열로 채우거나 "미상" 이라고 쓰지 않는다.
3. source.url 은 실제로 열리는 공식·기관·언론 페이지여야 한다. 검색 결과 주소는 쓰지 않는다.
4. 근거가 확실하면 verified 를 "확인", 애매하면 "확인필요" 로 적는다.
5. 가사·시·소설의 원문을 한 줄도 옮기지 않는다. 제목과 배경만 쓴다.
6. 설명 문장은 항목당 두 문장을 넘기지 않는다.
7. 이미지 주소는 만들지 않는다. 필요하면 imageQuery 에 검색어만 적는다.
```
★ 2번과 3번이 이 레포의 절대규칙을 프롬프트로 옮긴 것이다. 모델이 이걸 어기면 검증기가
뒤에서 걸러야 하는데, 걸러진 항목은 결국 화면에서 빈자리가 된다.
---
## 2. 히어로 캐치프레이즈 (신규)
상호 아래에서 **7초마다 바뀌는 한 줄**이다. 100개를 미리 쌓아 두고, 계절·월·날씨에 맞는 것을
섞어 순환 노출한다.
### 프롬프트
```
너는 숙소의 카피라이터다. 아래 조건에 맞는 JSON 하나만 출력한다.
[업소] {상호} ({업종})
[지역] {지명}
[업소가 가진 사실]
{fact 목록을 한 줄씩. 예: 1920년대 적산가옥 · 독채 2동 · 최대 4인 · 마당과 정원 ·
창고형 카페 공간 · 침구 매일 세탁 · 히로쓰 가옥 옆 · 초원사진관 도보 3분}
[해야 할 일]
[업소] 의 히어로 문구를 100개 만든다. 상호 바로 아래에 한 줄로 뜨고 7초마다 바뀐다.
네 종류로 나눠 만든다.
· 일반 40개 — 언제 나와도 되는 문구
· 계절 24개 — 봄·여름·가을·겨울 각 6개 (계절은 3개월 단위: 3~5 봄 / 6~8 여름 / 9~11 가을 / 12~2 겨울)
· 월별 24개 — 1월부터 12월까지 각 2개
· 날씨 12개 — 맑음 3 · 구름많음 2 · 흐림 2 · 비 3 · 눈 2
[스키마]
{ "kind":"catchphrase", "version":1, "items":[
{ "text":"한 줄", "kind":"general|season|month|weather",
"season":"봄|여름|가을|겨울", // kind 가 season 일 때만
"month":9, // kind 가 month 일 때만 (1~12)
"weather":"맑음|구름많음|흐림|비|눈" } // kind 가 weather 일 때만
] }
[이 아이템만의 규칙]
· 한 줄은 25자 안쪽이다. 두 문장으로 쓰지 않는다.
· **[업소가 가진 사실] 안에서만 쓴다.** 거기 없는 시설·거리·연도를 지어내지 않는다.
· 느낌표와 이모지를 쓰지 않는다. "최고" "완벽" "힐링" 같은 광고 단어를 쓰지 않는다.
· 상호를 문구에 넣지 않는다 — 바로 위에 이미 크게 떠 있다.
· 같은 사실을 두 번 쓰지 않는다. 100개가 다 다른 것을 말해야 한다.
· 계절 문구는 그 계절에만 맞는 말이어야 한다. "좋습니다" 처럼 아무 때나 되는 말은 일반으로 보낸다.
· 날씨 문구는 그 날씨일 때 손님이 **무엇을 할 수 있는지**를 말한다. 날씨 묘사만 하지 않는다.
· 월별 문구는 그 달의 날씨·행사·빛이 근거여야 한다. 숫자만 바꾼 문구를 12번 쓰지 않는다.
· source 와 verified 는 없다. 사실이 아니라 문구이고, 근거는 [업소가 가진 사실] 이다.
```
### 잘 나온 예 (시연본에서)
| 종류 | 문구 | 근거가 된 사실 |
|---|---|---|
| 일반 | 담 너머는 히로쓰 가옥입니다 | 위치 |
| 일반 | 침구는 매일 새것처럼 나갑니다 | 매일 세탁·살균 |
| 일반 | 네 사람까지 묶는 독채입니다 | 최대 4인 |
| 계절(가을) | 기와 위로 가을 볕이 마릅니다 | 기와 지붕 |
| 월(9월) | 가을이 담을 넘어오는 구월입니다 | 담·계절 |
| 날씨(비) | 카페 공간에서 빗소리를 들으실 수 있습니다 | 창고형 카페 |
### 받은 뒤 검사할 것
- [ ] 100개인가. 종류별 개수가 40/24/24/12 인가
- [ ] 25자를 넘는 것이 있는가
- [ ] [업소가 가진 사실] 에 없는 말이 있는가 ← **이게 제일 많이 틀린다**
- [ ] 계절 문구가 그 계절에만 맞는가
- [ ] 같은 말이 두 번 나오는가
---
## 3. 여행 일정 (신규 — 두 단계로 나눈다)
★ **한 프롬프트로 일정을 통째로 받지 않는다.**
시연본 첫 판이 그랬고, 나온 것이 "둘째 날 해산물축제 → 근대건축관" 으로 끝나는 하루였다.
모델은 **시각 계산을 못 한다** — 이동시간을 지어내고, 점심을 09:40 에 넣고,
21시를 넘겨 화면에서 잘려 나가는 칸을 만든다.
그래서 **3-1 로 장소 대장만 받고, 3-2 는 코드가 계산한다.**
### 3-1. 장소 대장 (LLM 이 만든다)
```
너는 지역 여행 코디네이터다. 아래 조건에 맞는 JSON 하나만 출력한다.
[업소] {상호} ({업종})
[지역] {지명}
[좌표] {위도},{경도}
[해야 할 일]
[업소] 에서 출발해 당일로 다녀올 수 있는 장소를 30곳까지 찾는다.
관광지·박물관·골목·바다·절 같은 볼거리 20곳과, 끼니를 해결할 곳 10곳을 섞는다.
[업소] 에서 30km 안쪽만 고른다.
[스키마]
{ "kind":"places", "version":1, "items":[
{ "name":"장소 이름",
"searchQuery":"지도에서 검색할 말",
"category":"볼거리|식당|카페",
"stayMinutes":{"min":20,"base":30,"max":45},
"todo":"거기서 무엇을 하는지 한 문장",
"indoor":true,
"needsCar":false,
"bestTime":"오전|오후|저녁|밤|상관없음",
"verified":"확인|확인필요",
"source":{"name":"출처명","url":"https://..."} } ] }
[이 아이템만의 규칙]
· **todo 는 장소 설명이 아니라 할 일이다.**
✗ "1899년에 지어진 근대 건축물입니다"
✓ "옛 조선은행 금고와 은행 창구를 봅니다. 2층 전시까지 보면 45분입니다."
손님이 거기서 무엇을 하는지 모르면 그 줄은 쓸모가 없다.
· stayMinutes 는 **실제로 걸리는 시간**이다. min 은 빨리 보고 나오는 사람, max 는 천천히 보는 사람.
박물관 60~120분, 골목 15~40분, 식당 40~70분이 기준이다. 무엇이든 90분으로 적지 않는다.
· 식당은 **무엇을 먹는지**까지 적는다. "맛집입니다" 로는 무엇을 시킬지 모른다.
· indoor 는 비 오는 날 갈 수 있는 곳만 true 다. 처마 밑·실내 전시가 여기 들어간다.
· needsCar 는 [업소] 에서 걸어서 못 가는 곳(1.5km 초과)이면 true 다.
· 좌표는 적지 않는다. 코드가 카카오 로컬에서 받는다 — 지어낸 좌표는 지도에 엉뚱한 핀을 찍는다.
· 영업시간·휴무일이 확인되면 source 에 그 페이지를 단다.
```
### 3-2. 일정 조립 (코드가 한다 — LLM 아님)
`solution/site/scripts/mockup/build_itinerary.py` 가 하는 일이고,
제품에서는 `solution/backend/services/itinerary.py` 가 같은 규칙을 가져야 한다.
**LLM 에게 맡기지 않는 것**
| | 왜 |
|---|---|
| 이동시간 | 좌표에서 계산한다. 도보 4km/h, 1.5km 초과는 차 25km/h + 주차 5분 |
| 도착·출발 시각 | 시작 시각부터 누적 |
| 끼니 시각 맞추기 | 창을 벗어나면 앞 칸 체류를 범위 안에서 늘이고 줄인다 |
| 하루 구성 | 아래 뼈대 |
**하루 뼈대** — `@` 는 숙소
```
첫날 체크인@ · 오후 · 오후 · 저녁 · 밤산책 · 복귀@
가운데날 아침@ · 오전 · 점심 · 오후 · 오후 · 쉼@ · 저녁 · 복귀@
쉬는날 숙소에서 쉬는 날@ · 점심 · 쉼@ · 저녁 · 복귀@
마지막날 아침(퇴실)@ · 오전 · 점심 · 오후 · 마무리@
```
**지켜야 하는 규칙 14종** (어기면 그 일정을 만들지 않는다)
1. 하루의 첫 칸·마지막 칸은 숙소 — 출발지와 복귀지
2. **같은 자리가 연달아 서지 않는다** (숙소 칸 사이에는 반드시 바깥 정거장이 있다)
3. 가운데 숙소 칸은 '쉼'·'쉬는 날' 뿐
4. 이동시간 = 좌표 계산값
5. 입실 15:00+ · 점심 11:30~13:30 · 늦은 점심 13:00~15:00 · 저녁 17:30~20:00 · 밤산책 18:30~20:00
6. 퇴실 11:00 전
7. 21:00 초과 금지 — **넘는 칸은 렌더러가 조용히 버린다**
8. 끼니 자리에는 먹는 곳만
9. 같은 날 같은 식당 두 번 금지
10. 한 테마 안에서 같은 곳 반복 금지
11. "비가 와도 되는" 테마는 `indoor: true` 만
12. "걸어서만/차 없이" 테마에 `needsCar: true` 금지
13. 1박 2일 = 2일, 2박 3일 = 3일
14. 아이 동반 테마에 술집 금지
**테마 이름·대상·이유는 LLM 이 만들어도 된다** (아래 3-3).
### 3-3. 테마 짓기 (LLM)
```
[해야 할 일]
[장소 대장] 을 재료로 1박 2일 10개, 2박 3일 10개의 테마를 만든다.
테마는 **손님의 성격**으로 가른다 — 차가 있는지, 걷기를 좋아하는지, 비가 오는지,
아이가 있는지, 사진을 찍는지, 쉬러 오는지.
[스키마]
{ "kind":"themes", "version":1, "items":[
{ "name":"테마 이름", "duration":"1박 2일|2박 3일",
"audience":"누구에게", "why":"왜 이 순서인지 한두 문장",
"days":[ { "kind":"first|mid|mid_rest|mid_island|last", "places":["장소명","장소명"] } ] } ] }
[이 아이템만의 규칙]
· places 는 [장소 대장] 에 있는 이름만 쓴다. 없는 곳을 적으면 그 테마는 버려진다.
· 뼈대의 자리 수와 places 개수가 같아야 한다.
· 끼니 자리에는 category 가 식당·카페인 곳만 넣는다.
· **한 테마 안에서 같은 곳을 두 번 넣지 않는다.**
· 테마 이름에 "최고" "완벽" 을 쓰지 않는다. 무엇을 하는 일정인지가 이름이다.
· 20개 중 하나는 **숙소에서 거의 나가지 않는 날**을 포함한다.
```
---
## 4. 가요 다방 (기존 개선)
지금 계약은 8곡이다. **50곡으로 올린다** — 다만 한 번에 못 받으므로 나눠 부른다.
```
[해야 할 일]
[지역]을 노래한 대중가요를 찾아 아래 JSON 으로 정리한다.
이번에는 {N}번째부터 {N+14}번째까지, 15곡을 낸다.
이미 받은 곡은 아래에 있다 — 같은 곡을 다시 내지 않는다.
[이미 받은 곡] {곡명 목록}
지명·항구·강·다리가 제목이나 배경에 나오는 곡을 고른다.
1960~80년대 곡을 먼저 찾고, 다 떨어지면 지자체가 만든 곡·지역 가수의 곡으로 넓힌다.
[스키마]
{ "kind":"songs", "version":1, "title":"가요 다방", "items":[
{ "title":"곡명", "artist":"가수", "lyricist":"작사", "composer":"작곡",
"year":1966, "label":"음반사", "labelColor":"#d4551f",
"story":"곡의 배경 (두 문장 이내, 가사 없이)",
"verified":"확인|확인필요",
"source":{"name":"출처명","url":"https://..."} } ] }
[이 아이템만의 규칙]
· lyrics 필드는 스키마에 없다. 어떤 이유로도 만들지 마라. 가사 한 소절도 안 된다.
· **곡이 실재하는지 출처로 확인한다.** 지역 노래 목록·언론 기사·지자체 음반 안내가 근거다.
검색으로 못 찾으면 그 곡을 내지 않는다 — 15곡을 억지로 채우지 않는다.
· labelColor 는 레코드 라벨 색이다. 곡의 분위기에 맞춰 진한 색 하나를 hex 로 고른다.
· 작사·작곡·발표연도를 모르면 그 필드를 뺀다. "미상" 이라고 쓰지 않는다.
· 유튜브 영상 ID 를 적지 않는다 — 코드가 검색 주소를 만든다. 틀린 영상이 붙는 것보다 낫다.
· 숙소가 직접 만든 곡은 여기 넣지 않는다. 이 섹션은 **도시의 노래**를 모으는 자리다.
```
★ 시연본은 25곡에서 멈췄다. 출처에서 확인되는 군산 곡이 거기까지였다.
**모자라면 모자란 채로 내는 것이 맞다** — 지어낸 곡은 아는 사람이 바로 알아본다.
---
## 5. 인물 열전 (기존 개선)
지금 계약은 10명이다. **50명 이상으로 올린다.**
```
[해야 할 일]
[지역] 출신이거나 [지역]과 깊이 얽힌 인물을 50명까지 찾는다.
문학·음악·미술·연기·체육·정치·학문·기업을 고루 섞는다. 한 분야가 절반을 넘지 않게 한다.
생존 인물은 공개된 활동 사실만 쓴다.
[스키마]
{ "kind":"people", "version":1, "title":"인물 열전", "items":[
{ "name":"이름", "aka":"호·예명", "years":"1902–1950", "role":"소설가",
"oneLine":"한 문장 소개", "imageQuery":"사진 검색어",
"verified":"확인|확인필요",
"source":{"name":"출처명","url":"https://..."} } ] }
[이 아이템만의 규칙]
· **source.url 은 그 사람의 문서**여야 한다(위키백과 문서, 기관 소개 페이지).
"OO시 출신 인물 목록" 같은 목록 페이지는 근거가 아니다.
· oneLine 은 **그 사람이 무엇을 한 사람인지**다. "군산 출신입니다" 는 이름 아래 이미 있다.
· "~ 출신으로 알려진" 처럼 근거가 전언뿐이면 verified 를 "확인필요" 로 한다.
· 생존 인물의 가족·거주지·건강·재산 같은 사생활은 쓰지 않는다.
· 사진 URL 을 넣지 않는다. imageQuery 만 넣는다 — 초상권과 저작권은 사람이 확인한다.
· years 를 모르면 뺀다.
```
★ **사진은 프롬프트로 받지 않는다.** 시연본은 위키백과 API 로 문서 사진을 받고,
**라이선스가 확인된 것만**(CC BY / CC BY-SA / KOGL / 공용) 썼다 — 57명 중 17명.
CC BY-SA 는 저작자 표시가 라이선스 조건이라 화면에 그대로 찍는다.
---
## 6. 오늘의 엽서 (기존 개선 — 링크가 붙게)
```
[해야 할 일]
[지역]에 대해 손님이 자기 SNS 에 그대로 붙여 쓸 만한 한 문장을 12개 쓴다.
사실 하나가 반드시 들어가되, 설명하지 말고 툭 던지는 문장으로 쓴다.
[스키마]
{ "kind":"postcard", "version":1, "title":"오늘의 엽서", "items":[
{ "line":"한 문장", "hashtags":["#태그"],
"place":"그 문장이 가리키는 장소 이름",
"searchQuery":"지도에서 검색할 말",
"postmark":"소인에 찍을 짧은 지명",
"verified":"확인|확인필요",
"source":{"name":"출처명","url":"https://..."} } ] }
[이 아이템만의 규칙]
· 한 문장은 40자 안쪽이다. 두 문장으로 쓰지 않는다.
· 느낌표와 이모지를 쓰지 않는다. 광고 문구처럼 들리면 실패다.
· 해시태그는 3개까지. 지역명 하나는 반드시 넣는다.
· **place 와 searchQuery 를 반드시 채운다.** 화면이 그 값으로 지도 링크를 건다.
postmark 는 도장 문구라 지명이 아닐 수 있다 — 그걸로 지도를 열면 엉뚱한 데가 나온다.
```
★ 시연본에서 실제로 그랬다. 소인 글자(`군산 內港`)로 링크를 만들었더니
`군산 군산` 같은 검색어가 나왔다. `place` 를 따로 받는 이유다.
---
## 7. 프롬프트를 고칠 때 지킬 것
1. **`maxItems` 와 프롬프트 안의 숫자를 같이 바꾼다.** 어긋나면 받아 놓고 잘라 버린다.
2. **개수를 억지로 채우게 하지 않는다.** "확실한 것이 12개면 12개만 낸다" 를 규칙에 넣는다.
채우라고 하면 채운다 — 지어내서.
3. **계산은 시키지 않는다.** 시각·거리·요금은 코드가 한다. 모델은 자신 있게 틀린 숫자를 준다.
4. **"설명" 이 아니라 "할 일" 을 시킨다.** 손님이 그 자리에서 무엇을 하는지가 콘텐츠다.
5. **출처의 종류를 지정한다.** "출처를 달아라" 로는 목록 페이지가 온다.
6. 고친 뒤 **`npm run export:prompts`** 를 돌린다. 안 돌리면 서버는 옛 프롬프트로 돈다.
File diff suppressed because it is too large. Load diff
@@ -1,176 +0,0 @@
# /s/stay 시연본 — 무엇이 잘못됐고 무엇을 고쳤나
작성 2026-09-11 · 대상 `https://web4ai.o2osolution.ai/s/stay`
**컨펌 요청**: 아래 3장을 보고, 틀린 판단이 있으면 짚어 주세요. 컨펌 후 킹서버에 올립니다.
---
## 1장. 사장님이 찾은 것 — 스케줄이 왜 말이 안 됐나
### 잘못된 것
| # | 증상 | 몇 건 |
|---|---|---|
| A | **`아침 · 스테이 머뭄` 다음 칸이 `체크아웃 · 스테이 머뭄`** — 같은 자리에 두 칸이 연달아 섰다. 그 사이에 손님은 아무 데도 가지 않는다 | 1건 |
| B | **마지막 날 머뭄이 3번**(아침 · 체크아웃 · 마무리) — 하루의 절반이 숙소 칸 | 21건 |
| C | 마지막 날 섬 코스가 **저녁도 없이 19:14 에 돌아와 짐만 찾고 끝** | 1건 |
| D | 아침 칸이 **2시간 14분** — 끼니 시각을 맞추려고 앞 칸을 늘리다 생긴 값 | 1건 |
### 왜 이렇게 됐나
**A·B 의 원인은 하나입니다.** 사장님이 "1번은 스테이 머뭄이어야 한다"고 하셔서 하루의 첫 칸에
`아침 · 머뭄` 을 넣었습니다. 그런데 마지막 날 뼈대에는 **이미** `체크아웃 · 머뭄` 과
`마무리 · 머뭄` 이 있었습니다. 첫 칸만 보고 넣었고, **그 하루 전체를 다시 읽지 않았습니다.**
그래서 머뭄이 3번이 됐고, 그중 둘이 붙어 있는 날이 생겼습니다.
**C·D 는 검사에 그 항목이 없어서** 통과했습니다. 저는 그때까지 "끼니 시각 · 이동시간 ·
21시 초과" 만 봤고, "하루에 저녁이 있는가", "한 칸이 지나치게 길지 않은가" 는 세지 않았습니다.
### 고친 것
- **마지막 날 아침과 퇴실을 한 칸으로 합쳤습니다.**
`아침 · 스테이 머뭄 (75분)` — "아침을 차려 먹고 11시 전에 퇴실합니다. 짐은 맡겨 두고
나섰다가 저녁에 찾아 가세요." → 하루가 **머뭄 → 바깥 3~4곳 → 머뭄** 으로 정리됩니다.
- **섬 가는 마지막 날**은 바깥 정거장을 둘로 줄였습니다(퇴실 → 선유도 → 늦은 점심 → 마무리).
왕복 두 시간이라 그 이상은 못 넣습니다.
- **아침 상한을 110분**으로 내렸습니다.
### 지금 상태 (예: 걸어서만 도는 1박 2일)
```
첫째 날 15:00
15:00–15:49 체크인 · 스테이 머뭄
15:52–16:37 오후 · 히로쓰 가옥 (3분 이동)
16:41–17:26 오후 · 초원사진관 (4분 이동)
17:30–18:22 저녁 · 일흥옥 (4분 이동)
18:35–19:17 밤 산책 · 군산 내항 (13분 이동)
19:33–20:05 머뭄으로 · 스테이 머뭄 (16분 이동)
둘째 날 09:20
09:20–10:39 아침 · 스테이 머뭄 ← 퇴실까지 이 칸에서 끝냅니다
10:49–11:36 오전 · 군산근대건축관 (10분 이동)
11:40–12:32 점심 · 한일옥 (4분 이동)
12:36–13:02 오후 · 우체통거리 (4분 이동)
13:10–13:52 마무리 · 스테이 머뭄 (8분 이동)
```
### 하루에 머뭄이 3번인 날이 아직 있습니다 — 의도한 것입니다
`아침 → … → **쉼**(머뭄) → 저녁 → 머뭄으로` 형태입니다.
점심은 늦어도 13:30, 저녁은 일러도 17:30 입니다. 그 사이 **네 시간**을 바깥 두 곳으로는
못 채웁니다. 억지로 채우면 골목 하나에 두 시간 세우게 되고(전에 실제로 그랬습니다),
독채 펜션에 묵는 손님은 그 시간에 실제로 들어와 쉽니다. **다만 머뭄 칸이 연달아 서는 일은
이제 없습니다.** 이게 아니라고 보시면 오후 정거장을 하나 더 넣는 쪽으로 바꾸겠습니다.
---
## 2장. 같은 실수가 다시 안 나오게 한 것
**원인은 "검사를 안 했다" 가 아니라 "검사가 빌드 밖에 있었다" 입니다.**
지금까지 규칙 검사를 매번 그때그때 쓴 일회용 스크립트로 돌렸습니다. 그래서 뼈대를 고칠 때마다
**이번에 안 본 규칙**이 생겼고, 그걸 사장님이 화면에서 먼저 찾으셨습니다.
이제 검사를 **일정 생성 스크립트 안**에 넣었습니다
(`solution/site/scripts/mockup/build_itinerary.py`).
규칙을 하나라도 어기면 **payload 파일을 아예 쓰지 않고 빌드가 멈춥니다.**
검사하는 규칙 14종:
| | 규칙 |
|---|---|
| 1 | 하루의 첫 칸과 마지막 칸은 스테이 머뭄 |
| 2 | **같은 자리가 연달아 서지 않는다** ← 이번에 걸린 것 |
| 3 | 가운데 머뭄 칸은 '쉼'·'쉬는 날' 뿐 |
| 4 | 이동시간 = 좌표에서 계산한 값 (도보 4km/h, 1.5km 초과는 차 25km/h + 주차 5분) |
| 5 | 입실 15:00 이후 · 점심 11:30–13:30 · 늦은 점심 13:00–15:00 · 저녁 17:30–20:00 · 밤 산책 18:30–20:00 |
| 6 | 퇴실은 11:00 전 |
| 7 | 21:00 초과 금지 (넘는 칸은 렌더러가 조용히 버립니다) |
| 8 | 끼니 자리에는 먹는 곳만 |
| 9 | 같은 날 같은 식당 두 번 금지 |
| 10 | 한 테마 안에서 같은 곳 반복 금지 |
| 11 | "비가 와도 되는" 테마는 실내만 |
| 12 | "걸어서만/차 없이" 테마에 차가 필요한 곳 금지 |
| 13 | 1박 2일 = 2일, 2박 3일 = 3일 |
| 14 | 아이 동반 테마에 술집 금지 |
현재 **21개 테마 · 위반 0건**.
---
## 3장. 앞으로 저에게 어떻게 지시하시면 되는지
제가 이번에 반복한 실수는 두 종류였습니다. 각각에 대응하는 지시 방법을 적습니다.
### ① "고쳐" 라고만 하면 저는 **그 한 줄만** 고칩니다
이번 예: "1번은 머뭄이어야지" → 첫 칸만 넣고 그 하루 전체를 다시 안 읽었습니다.
**이렇게 말씀해 주시면 됩니다**
> "X 고치고, **그 화면 전체를 다시 훑어서** 같은 종류로 이상한 데 있으면 같이 잡아."
'같은 종류'라는 말이 있으면 저는 한 건이 아니라 그 규칙을 어긴 **전수**를 찾습니다.
### ② 제가 "확인했다"고 할 때 **무엇으로** 확인했는지 물어 주세요
이번에 빨간 줄 건에서, 저는 **코드에서 빠진 것만 보고** "고쳤다"고 말씀드렸습니다.
화면으로 확인하지 않았습니다. 그건 제 잘못입니다.
**이렇게 말씀해 주시면 됩니다**
> "브라우저로 열어서 확인하고 말해."
> "검증 결과를 숫자로 보여줘."
지금은 playwright 로 실제 화면을 열어 확인합니다
(`scripts/mockup/verify.mjs` · `player.mjs`). 앞으로 "확인했다"는 말에는 **무엇을 몇 건 셌는지**
같이 적겠습니다.
### ③ 규칙을 주실 때는 "예외"까지 같이 주시면 한 번에 끝납니다
이번 예: "1번은 머뭄" → 마지막 날 퇴실은 어떻게 되는지가 안 정해져 있었습니다.
그래서 제가 임의로 칸을 하나 더 만들었고, 그게 연속 칸이 됐습니다.
**이렇게 말씀해 주시면 됩니다**
> "1번은 항상 머뭄. **단 마지막 날은 퇴실이 있으니 그건 네가 판단해서 제안하고 물어봐.**"
### ④ 판단이 갈리는 자리는 제가 먼저 여쭙겠습니다
지금 갈릴 수 있는 자리는 이것입니다 — **오후에 숙소로 돌아와 쉬는 칸(위 1장 마지막)**.
넣는 게 맞는지 빼는 게 맞는지 사장님 판단을 듣고 정하겠습니다.
---
## 참고 — 이번 작업에서 바뀐 것 전체 (메일용)
**여행 일정 (추천 일정)**
- 테마 21개 전부 다시 짬. 모든 일정이 **스테이 머뭄에서 출발해 스테이 머뭄으로 복귀**
- 하루가 오전만 있고 끝나던 것 → **오전·점심·오후·저녁이 다 있는 하루**로
- 이동시간을 좌표에서 계산 (전에는 담 하나 건넌 곳이 8분, 45분 걸리는 섬이 10분이었음)
- 체류시간을 장소별로 (전에는 '오후' 칸이면 무엇이든 90~115분이라 골목에 2시간 서 있었음)
- 입실 15:00 · 퇴실 11:00 · 끼니 시각을 규칙으로 못박음
- 정거장 설명을 "그곳이 무엇인지" → **"거기서 무엇을 하는지"** 로 전부 교체
- 정거장 사진 제거(카드가 너무 길어짐), 정거장마다 **네이버 지도 링크** (191개)
- "숙소에서 조용히 쉬는 날" 테마 추가
**가요 다방**
- 군산을 노래한 **25곡**으로 교체 (곡명·가수·작사·작곡·연도·유튜브 링크·출처)
- 숙소가 만든 곡은 이 섹션에서 뺌 — 도시의 노래를 모으는 자리라서
**인물 열전**
- **57명** (위키백과 '군산시 출신' 분류 · 각자 문서 링크)
- 사진 **17장** — 자유 라이선스가 확인된 것만. 저작자 표시를 화면에 남김(라이선스 조건)
**음악 플레이어 (신규)**
- 헤더 안 카세트 아이콘 + 재생/멈춤 + 목록. 재생 중에는 카세트 릴이 돎
- 머뭄이 만든 곡 5곡, **랜덤 재생**
- 목록: 곡별 판 · 제목 · 가수 · 재생 중 막대 애니메이션, **모바일 전용 레이아웃**
**캐치프레이즈 (신규)**
- 100개 (일반 40 · 계절 24 · 월 24 · 날씨 12), 7초마다 단어 단위 애니메이션으로 교체
- 계절/월/실시간 날씨에 맞는 문구가 섞여 나옴
**객실 안내**
- 야놀자 등록본 사진으로 전면 교체 — **A동 12장 · B동 10장** (등록본이 객실에 붙여 둔 순서 그대로)
- 침대 구성(A동 퀸 / B동 킹) · 면적(A동 52m²) · 객실 시설 추가
**기타**
- 오늘의 엽서에 지도 링크 추가
- 이용 정보 맨 아래 가로선 제거
-279
View File
@@ -1,279 +0,0 @@
# /s/stay 섹션별 — 목업은 무엇으로 만들었고, 제품은 무엇으로 만들어야 하나
작성 2026-09-11 · 대상 `https://web4ai.o2osolution.ai/s/stay` (스테이,머뭄 · 전북 군산)
**읽는 사람**: 빌더·백엔드에서 이 시연본을 실제 생성 파이프라인으로 옮기는 사람.
시연본은 **payload 가 없는 목업**이다 — 프리렌더가 굽지 않고, `index.html` 한 장을
손으로 조립했다(`patch_stay.py`). 그래서 "화면에 있는 것" 과 "제품이 만들 수 있는 것"이
지금 **갈라져 있다.** 이 문서는 섹션마다 그 간격을 적는다.
---
## 0. 한 줄 결론
22개 섹션 중 **16개는 이미 계약과 생성 경로가 있다.** 나머지 6개가 할 일이다:
| | 섹션 | 왜 |
|---|---|---|
| ① | **히어로 캐치프레이즈** | 계약에 없다. `narrative.tagline` 은 **문자열 하나**인데 목업은 100개를 돌린다 |
| ② | **음악 플레이어(자작곡)** | 계약에 없다. `media` 에 오디오 종류가 없다 |
| ③ | **추천 일정** | 계약·생성기 둘 다 있는데 **깊이가 다르다**. 서버판은 하루 4칸(관광 2·끼니 2)이고 체류·이동·입퇴실 개념이 없다 |
| ④ | **인물·노래 사진** | 프롬프트가 `imageQuery` 만 받는다. 실제 사진을 찾아 붙이고 **라이선스를 표시하는** 경로가 없다 |
| ⑤ | **상한(maxItems)** | songs 8·people 10 인데 목업은 25·57 이다 |
| ⑥ | **객실 사진** | 목업은 야놀자 등록본에서 가져왔다. 수집 어댑터 정책([DECISIONS 1-1](../../../../docs/DECISIONS.md))에 걸리는지 결론이 필요하다 |
---
## 1. 값이 화면까지 가는 길
```
수집·생성(백엔드) → area_contents / places / media → site_payload.py → payload JSON
↓
프리렌더(Node) → out/s/<slug>/index.html
↓
window.__SITE_PAYLOAD__ → React 하이드레이션
```
- **읽는 쪽 계약**은 `solution/shared/src/types/site-payload.ts` · `shared/src/lib/section-data.ts` 한 곳이다.
- **프롬프트 계약**은 `shared/src/lib/section-prompts.ts` 한 곳이고,
백엔드는 `npm run export:prompts` 산출물(`backend/services/prompts/section_prompts.json`)을 읽는다.
**파이썬 쪽을 손으로 고치지 않는다.**
- 섹션 목록·기본 on/off 는 업종별로 `services/site_payload.py:155` 부근에 있다.
payload 안에서 섹션이 값을 받는 자리는 셋뿐이다.
| 자리 | 무엇이 들어가나 | 예 |
|---|---|---|
| `theme.sections[].data` | JSON 봉투 문자열(`{kind, version, title, items[]}`) | songs · people · itinerary · event · video · planner |
| 최상단 필드 | 업소가 적은 사실·사진·문답 | `place` `facts` `units` `media` `faqs` `links` `narrative` |
| `local.*` | 지역에서 수집한 것 | `attractions`(12) `restaurants`(8) `festivals`(10) `weather` |
---
## 2. 섹션 22개 — 한눈에
`on` 은 이 목업에서 켜져 있는지다. `story` 안의 6개는 탭이라 최상단은 꺼져 있다.
| # | id | 이름 | on | 값이 오는 자리 | 계약 | 프롬프트 | 목업에서 한 일 |
|---|---|---|---|---|---|---|---|
| 1 | `hero` | 히어로 | ● | `narrative` + 대표 사진 | 있음 | **없음** | 캐치프레이즈 100개를 주입분이 돌림 |
| 2 | `intro` | 소개 | ● | `narrative.about[]` | 있음 | 있음(빌더) | 원본 그대로 |
| 3 | `rooms` | 객실 안내 | ● | `units[]` + `media[]` | 있음 | — | 야놀자 등록본으로 **전면 교체**(A동 12·B동 10) |
| 4 | `event` | 소식 | ● | `data(kind=event)` 3건 | 있음 | — | 원본 그대로 |
| 5 | `info` | 기본 정보 | ● | `facts[]` 12건 | 있음 | — | 맨 아래 가로선만 CSS 로 제거 |
| 6 | `booking` | 실시간 예약 | ○ | — | 있음 | — | 껐다(시연에 결제 흐름 없음) |
| 7 | `video` | 영상 | ● | `data(kind=video)` 3건 | 있음 | — | 원본 그대로 |
| 8 | `photos` | 사진 갤러리 | ● | `media[]` 37장 | 있음 | — | 원본 그대로 |
| 9 | `map` | 오시는 길 | ● | `place` + `routes[]` | 있음 | — | `routes` 비어 있음 |
| 10 | `festival` | 계절별 축제 | ● | `local.festivals` 10건 | 있음 | — | 원본 그대로 |
| 11 | `local` | 지역 정보 | ● | `local.attractions/restaurants` | 있음 | — | 원본 그대로 |
| 12 | `itinerary` | **추천 일정** | ● | `data(kind=itinerary)` 21개 | 있음 | **없음** | **전부 다시 생성**(§4) |
| 13 | `story` | 군산 이야기 | ● | 아래 6탭의 껍데기 | 있음 | — | — |
| 14 | `songs` | 가요 다방 | 탭 | `data(kind=songs)` 25곡 | 있음 | 있음 `section-prompts.ts:67` | 8 → **25곡**으로 늘림 |
| 15 | `people` | 인물 열전 | 탭 | `data(kind=people)` 57명 | 있음 | 있음 `:113` | 10 → **57명** + 사진 18장 |
| 16 | `chronicle` | 시간의 골목 | 탭 | `data(kind=chronicle)` 7건 | 있음 | 있음 `:135` | 원본 그대로 |
| 17 | `postcard` | 오늘의 엽서 | 탭 | `data(kind=postcard)` 4건 | 있음 | 있음 `:160` | 지도 링크만 추가 |
| 18 | `quiz` | 뒤집어 보는 질문 | 탭 | `data(kind=quiz)` 4건 | 있음 | 있음 `:188` | 원본 그대로 |
| 19 | `faq` | 자주 묻는 질문 | ● | `faqs[]` 32건 | 있음 | 있음 | 원본 그대로 |
| 20 | `rules` | 이용 규정 | ● | `facts[]` | 있음 | — | 원본 그대로 |
| 21 | `weather` | 날씨 | ● | `local.weather` | 있음 | — | 애니메이션만 정지 |
| 22 | `planner` | 계절별 추천 하루 | ○ | `data(kind=planner)` 4건 | 있음 | **없음** | 껐다 |
`daily`(오늘의 한 장)는 프롬프트에는 있는데 **이 목업 섹션 목록에 없다.**
새 업장에서 켜려면 섹션 목록에 자리를 먼저 만들어야 한다.
---
## 3. 계약에 없는 것 — 새로 만들어야 하는 셋
### ① 히어로 캐치프레이즈 — 계약을 늘려야 한다
**지금 계약**: `Narrative`(`site-payload.ts:316`)는 `heroHeadline` `heroSubline` `tagline`
`about[]` `summary` 뿐이고 전부 **문자열 하나**다. 히어로는
`narrative.tagline ?? heroSubline ?? summary` 를 그대로 찍는다(`HeroPension.tsx:125`).
**목업이 한 것**: `narrative.catchphrases = {version:1, items:[…100]}` 를 payload 에
끼워 넣고, 주입분이 7초마다 단어 단위로 갈아 끼운다. **렌더러는 이 필드를 모른다** —
주입분(`inject.js`)이 읽는다. 100개 구성은 `patch_stay.py:20`(일반 40) `:62`(계절 24)
`:72`(월 24) `:87`(날씨 12).
**제품에서 해야 할 일**
```ts
// site-payload.ts — Narrative 에 추가
catchphrases?: {
version: 1;
items: {
text: string; // 18자 안쪽
type: 'general' | 'season' | 'month' | 'weather';
season?: '봄' | '여름' | '가을' | '겨울'; // type=season
month?: number; // 1–12, type=month
weather?: '맑음' | '흐림' | '비' | '눈'; // type=weather
}[];
};
```
고르는 규칙(목업이 쓰는 것 그대로): **지금 계절·이번 달·현재 날씨에 맞는 것만 후보**로
두고 일반과 섞어 돌린다. 계절은 3개월 단위(가을 9–11, 겨울 12–2). 날씨는 `local.weather.condition`.
**새로 쓸 프롬프트** — `SECTION_PROMPTS` 에 `catchphrase` 종류를 더한다.
```
[해야 할 일]
[업소]의 히어로에 돌려 쓸 짧은 문구를 100개 쓴다.
일반 40 · 계절 24(계절마다 6) · 월 24(달마다 2) · 날씨 12(맑음/흐림/비/눈 각 3).
[스키마]
{ "kind":"catchphrase", "version":1, "items":[
{ "text":"문구", "type":"general|season|month|weather",
"season":"봄|여름|가을|겨울", "month":9, "weather":"맑음|흐림|비|눈" } ] }
[이 아이템만의 규칙]
· 18자 안쪽. 두 문장으로 쓰지 않는다.
· 느낌표·이모지를 쓰지 않는다. 광고 문구로 들리면 실패다.
· **업소에서 실제로 일어나는 일**을 쓴다. 지역 자랑이 아니다.
("새소리로 눈이 떠지는 집" ○ / "천년의 역사가 살아 숨쉬는 군산" ×)
· 계절·월·날씨 문구는 그 조건에서만 말이 되어야 한다.
9월 문구가 1월에 나와도 어색하지 않으면 그건 일반 문구다.
· 시설명·가격·전화번호를 넣지 않는다.
· source 는 필요 없다. 사실 주장이 아니라 업소가 하는 말이다.
```
### ② 자작곡 플레이어 — `media` 에 오디오가 없다
**목업**: `narrative.ownSongs = {version:1, items:[…5]}`(`patch_stay.py:109`),
파일은 `/s/stay/audio/*.mp3` 로 **직접 넣었다**. nginx `^~ /s/` 가 Range 206 으로 준다.
플레이어는 주입분이 헤더에 그린다. **프로토타입이라 파일**이고, 제품에서는 미디어 파이프라인에
태워야 한다.
**해야 할 일**: `MediaItem` 에 `kind: 'audio'` 를 넣고(`url` `title` `artist` `durationSec`),
발행 시 다른 미디어와 같이 미러/업로드한다. 렌더러에는 플레이어 컴포넌트가 없다 —
헤더에 붙는 작은 플레이어(아이콘 · 곡명 · 재생/멈춤 · 목록)를 새로 만든다.
자동재생은 **넣지 않는다**(사장님 지시 2026-09-11). 재생 순서는 **랜덤 시작 후 순차**.
### ③ 추천 일정 — 생성기가 있는데 깊이가 다르다
**서버판**(`backend/services/itinerary.py`)은 payload 빌드 때 즉석 계산한다.
하루 뼈대가 **관광지 2 + 맛집 2**, 반경 30km, 최근접 이웃 순서다.
체류시간·이동시간·입퇴실·끼니 시각 개념이 **없다**.
**목업판**(`build_itinerary.py`)이 더한 것:
| | 목업이 넣은 것 | 어디 |
|---|---|---|
| 장소별 체류 | (최소, 기본, 최대) 분 — '오후' 칸이면 뭐든 90분이던 것을 장소마다 | `:40` |
| 이동시간 | 좌표에서 계산. 도보 4km/h(≤1.5km), 그 위는 차 25km/h + 주차 5분 | `move_minutes()` |
| 숙소 고정 | **모든 일정이 숙소에서 출발해 숙소로 돌아온다**. 첫 칸·마지막 칸이 숙소 | `:108` `:182` |
| 시각 창 | 입실 15:00+ · 퇴실 11:00- · 점심 11:30–13:30 · 늦은 점심 13:00–15:00 · 저녁 17:30–20:00 · 밤 산책 18:30–20:00 | `:156` `:166` |
| 테마 | 21개. 테마마다 시작 시각과 체류 배율이 다르다(끝나는 시각이 13:35~21:00 로 퍼진다) | `:368` `:470` |
| 제약 | 비 와도 되는 테마는 실내만 · 차 없는 테마는 도보권만 · 아이 동반에 술집 금지 | `:519` |
| **감사** | 규칙 14종. 하나라도 어기면 **payload 를 쓰지 않고 빌드가 멈춘다** | `:526` |
**해야 할 일**: 이 규칙을 `services/itinerary.py` 로 옮긴다. 재료가 모자라면 지어내지 않는
원칙은 그대로다 — **감사에 걸리면 그 테마를 빼고, 하루도 못 채우면 섹션을 안 낸다.**
장소별 체류시간이 관건이다. 지금 `local_contents` 에는 그 값이 없다.
LLM 에 물어 채우는 게 현실적이다 — 새 프롬프트:
```
[해야 할 일]
아래 장소들에 손님이 실제로 머무는 시간을 분으로 적고,
거기서 "무엇을 하는지" 한 문장으로 쓴다.
[스키마]
{ "kind":"stopmeta", "version":1, "items":[
{ "name":"장소명", "minMinutes":25, "baseMinutes":35, "maxMinutes":50,
"indoor":true, "needsCar":false, "kidFriendly":true,
"todo":"대웅전 처마와 대나무 숲을 봅니다. 종각까지 돌면 35분입니다." } ] }
[이 아이템만의 규칙]
· todo 는 **거기서 하는 일**이다. "무엇인지" 설명하지 않는다.
("안에 들어가 사진관 세트에서 한 장 찍습니다" ○ / "1950년대 사진관입니다" ×)
· 한 바퀴 도는 데 15분이면 15분이라고 적는다. 30분으로 올리지 않는다.
· indoor 는 비가 와도 갈 수 있느냐다. 지붕이 있어도 가는 길이 야외면 false.
· needsCar 는 숙소에서 걸어서 20분을 넘느냐다.
```
### ④ 인물·노래 사진 — `imageQuery` 다음이 없다
프롬프트는 **사진 URL 을 금지**하고 `imageQuery` 만 받는다(`section-prompts.ts:128`).
초상권·저작권 때문이고 그 판단은 맞다. 그런데 **그 다음 단계가 없어서** 인물 열전이
활자만으로 선다.
목업이 한 것(`build_story.py`): 위키백과 **문서의 `pageimages`** 만 믿는다.
이름으로 커먼즈를 검색하면 동명이인이 온다(실측: 이수현→걸그룹, 박성현→골퍼, 이길여→건물).
57명 중 **18명**만 사진을 얻었고, 얻은 것은 `imageinfo.extmetadata` 에서 저작자·라이선스를
받아 **화면에 표시한다** — CC BY-SA 의 조건이라 안 쓰면 위반이다.
**해야 할 일**: `services/external/wikimedia.py` 에 "문서 → pageimages → 라이선스" 경로를 붙이고,
`imageCredit`(문자열)을 payload 에 넣는다. ★ **문자열이다** — 객체로 넣으면 렌더러가
조용히 아무것도 안 그린다(`site/src/sections/items/common.tsx:206`).
사진이 붙은 사람을 **앞으로** 정렬한다(빈 카드가 먼저 오면 목록이 비어 보인다).
### ⑤ 상한 — `maxItems` 를 올려야 한다
| 종류 | 지금 상한 | 목업 | 왜 |
|---|---|---|---|
| songs | 8 | 25 | 도시 하나에 그만큼 있다. 8곡이면 '다방'이 아니라 목록이다 |
| people | 10 | 57 | 위키백과 '군산시 출신' 분류만으로 57명이 확인된다 |
| chronicle | 14 | 7 | 상한은 맞는데 **채우는 쪽이 모자라다** |
| postcard | 12 | 4 | 같다 |
상한을 올릴 때 **한 번에 다 받지 않는다.** 목업은 곡을 8개씩 세 번 나눠 받았다 —
한 번에 25곡을 시키면 뒤쪽이 급격히 부실해진다. 나눠 받고 합칠 때 제목으로 중복을 지운다.
프롬프트 분할 방법은 [PROMPTS.md](PROMPTS.md) 에 있다.
### ⑥ 객실 사진 — 출처 정책 결론이 필요하다
목업은 야놀자 등록본(`nol.yanolja.com/stay/domestic/10068088`)의 Next.js 플라이트 데이터에서
`roomTypes[].photos` 를 파싱해 A동 12·B동 10 을 가져왔다(`rooms.json`).
**이건 시연용으로 손으로 한 것이고 제품 경로가 아니다.**
수집 어댑터를 만들려면 [DECISIONS 1-1](../../../../docs/DECISIONS.md) 과
[DATA_SOURCE_RESEARCH.md](../../../../docs/DATA_SOURCE_RESEARCH.md) 를 먼저 읽는다 —
**봇 탐지 우회는 결론과 무관하게 영구 금지**다.
현실적인 제품 경로는 **사장님이 올리는 것**이거나 **업소가 준 채널의 공개 API** 다.
---
## 4. 프롬프트를 새로 쓸 때 — 이 레포의 규칙
`SECTION_PROMPT_RULES`(`section-prompts.ts:55`)가 공통 7줄이고, 종류별 규칙을 덧붙인다.
새 종류를 더할 때 지켜야 하는 것:
1. **`STORY_KINDS` 에 등록한다.** 빠지면 서버 생성 잡이 그 종류를 아예 모른다 —
`daily` 가 그래서 한동안 빈칸이었다(주석에 실측이 적혀 있다).
2. **`maxItems` 와 프롬프트 안의 숫자를 같게 둔다.** 어긋나면 받아 놓고 잘라 버린다.
3. **빈 값을 지어내지 않는다**(공통 2번). 확실한 게 12개면 12개만 낸다.
4. **출처는 실제로 열리는 페이지**여야 한다(공통 3번). 검색 결과 주소는 안 된다.
5. **가사·시·소설 원문을 한 줄도 옮기지 않는다**(공통 5번).
6. `[지역]` 같은 빈칸을 남기지 않는다 — `buildSectionPrompt` 가 채워서 내보낸다.
7. 고친 뒤 **`npm run export:prompts`** 를 돌린다. 백엔드는 그 산출물을 읽는다.
---
## 5. 검증 — "됐다"고 말하기 전에
목업에서 쓰는 방식 그대로 제품에도 필요하다.
| | 무엇 | 어디 |
|---|---|---|
| 생성 단계 | 규칙 위반이면 **결과물을 쓰지 않고 멈춘다**. 검사를 생성기 **안**에 둔다 | `build_itinerary.py:526` |
| 렌더 단계 | 실제 브라우저로 열어 숫자를 센다. 34종 | `audit-all.mjs` |
| 카로셀 | 레일 13개 × 데스크톱·모바일 | `rails-test.mjs` |
★ 목업에서 같은 실수가 반복된 원인은 "검사를 안 했다"가 아니라 **"검사가 빌드 밖에 있었다"** 였다.
그때그때 쓴 일회용 스크립트로 돌리니, 뼈대를 고칠 때마다 이번에 안 본 규칙이 생겼다.
경위는 [REVIEW-2026-09-11.md](REVIEW-2026-09-11.md) 2장.
---
## 6. 같이 읽을 것
| | |
|---|---|
| 목업을 고치고 배포하는 절차 · 밟으면 조용히 틀리는 자리 | [README.md](README.md) |
| 실제로 쓴 프롬프트 전문과 나눠 받는 법 | [PROMPTS.md](PROMPTS.md) |
| 화면에 나가는 텍스트 전문 | [TEXT.md](TEXT.md) |
| 일정이 왜 틀렸고 무엇을 고쳤나 | [REVIEW-2026-09-11.md](REVIEW-2026-09-11.md) |
| 값이 DB 에서 페이지까지 가는 길 | [docs/DATA_MODEL.md](../../../../docs/DATA_MODEL.md) |
| 미결 사항 · 수집 어댑터 정책 | [docs/DECISIONS.md](../../../../docs/DECISIONS.md) |
-26
View File
@@ -1,26 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
await page.goto('https://web4ai.o2osolution.ai/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(5000);
const r = await page.evaluate(() => {
const li = document.querySelector('#itinerary ol li');
const title = li.querySelector('span.block.text-sm, span[class*="text-sm"][class*="font-bold"]');
const badge = title.querySelector('span');
const rb = badge.getBoundingClientRect();
const rt = title.getBoundingClientRect();
// 제목 첫 글자의 실제 상자
const node = [...title.childNodes].find((n) => n.nodeType === 3 && n.textContent.trim());
const rng = document.createRange(); rng.selectNodeContents(node);
const rr = rng.getBoundingClientRect();
const cs = getComputedStyle(title);
return {
badge: {top: +rb.top.toFixed(2), h: +rb.height.toFixed(2), mid: +(rb.top + rb.height / 2).toFixed(2)},
textRect: {top: +rr.top.toFixed(2), h: +rr.height.toFixed(2), mid: +(rr.top + rr.height / 2).toFixed(2)},
line: {fontSize: cs.fontSize, lineHeight: cs.lineHeight, display: getComputedStyle(badge).display, va: getComputedStyle(badge).verticalAlign, tf: getComputedStyle(badge).transform},
text: title.textContent.trim().slice(0, 20),
delta: +((rb.top + rb.height / 2) - (rr.top + rr.height / 2)).toFixed(2),
};
});
console.log(JSON.stringify(r, null, 1));
await b.close();
-40
View File
@@ -1,40 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
await p.evaluate(() => {
const rail = [...document.querySelectorAll('#gallery *')].find((el) => {
const s = getComputedStyle(el);
return /auto|scroll/.test(s.overflowX) && el.scrollWidth - el.clientWidth > 40;
});
rail.dataset.w4dArrow = '1';
rail.scrollIntoView({block: 'center'});
});
await p.waitForTimeout(700);
const read = () => p.evaluate(() => Math.round(document.querySelector('[data-w4d-arrow]').scrollLeft));
// ① 사람이 민다 (트러스티드 드래그)
const bb = await (await p.$('[data-w4d-arrow]')).boundingBox();
await p.mouse.move(bb.x + bb.width * 0.7, bb.y + bb.height / 2);
await p.mouse.down();
await p.mouse.move(bb.x + bb.width * 0.2, bb.y + bb.height / 2, {steps: 10});
await p.mouse.up();
await p.waitForTimeout(800);
const afterSwipe = await read();
// ② 자동으로 더 넘어가는지 6초
await p.waitForTimeout(6000);
const afterIdle = await read();
// ③ 화살표를 누르면 여전히 넘어가는지
const next = await p.$('#gallery button[aria-label="다음 사진"]');
let arrowWorks = null;
if (next) {
const before = await read();
await next.click();
await p.waitForTimeout(900);
arrowWorks = (await read()) - before;
}
console.log(JSON.stringify({afterSwipe, afterIdle, 자동이동: afterIdle - afterSwipe, 화살표이동: arrowWorks}));
await b.close();
+1 -1
View File
@@ -85,7 +85,7 @@ ok('자작곡 5곡', d.ownSongs === 5, `${d.ownSongs}곡`);
ok('빨간 줄 없음', d.redRule === 0, `${d.redRule}개`);
ok('바비큐 항목 유지', d.bbqRow, d.bbqRow ? '있음' : '사라짐');
ok('맨 아래 가로선 제거', d.divider === '0px', d.divider);
ok('히어로 원본 사진', /assets\/mirror/.test(d.heroImg || ''), d.heroImg);
ok('히어로 원본 사진', /\/img\/mirror\//.test(d.heroImg || ''), d.heroImg);
ok('객실 사진 A12/B10', d.roomA === 12 && d.roomB === 10, `A ${d.roomA} · B ${d.roomB}`);
ok('404 없음', failed.length === 0, failed.slice(0, 3).join(' / ') || '없음');
ok('콘솔 오류 없음', errs.length === 0, errs.slice(0, 2).join(' / ') || '없음');
-49
View File
@@ -1,49 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
await p.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
await p.waitForTimeout(1200);
const pos = () => p.evaluate(() => {
const t = document.querySelector('#itinerary .slider-track');
const m = /matrix.*?,\s*(-?[\d.]+),\s*-?[\d.]+\)$/.exec(getComputedStyle(t).transform);
return m ? Math.round(parseFloat(m[1])) : 0;
});
// ① 손 안 대고 둔다 — 자동 넘김이 살아 있는지
const idle = [];
for (let i = 0; i < 6; i++) { await p.waitForTimeout(1000); idle.push(await pos()); }
console.log('① 손 안 댐 ', JSON.stringify(idle));
// ② 페이지를 세로로 스크롤(일정 읽으려고) → 그 뒤 자동으로 넘어가는지
await p.mouse.wheel(0, 200);
await p.waitForTimeout(300);
const afterScroll = await pos();
const scrolled = [];
for (let i = 0; i < 6; i++) { await p.waitForTimeout(1000); scrolled.push(await pos()); }
console.log('② 세로 스크롤 후', afterScroll, '→', JSON.stringify(scrolled), '· 이동', scrolled[5] - afterScroll);
// ③ 쿨타임(7초)이 지나면 다시 도는지
await p.waitForTimeout(4000);
const resumed = await pos();
console.log('③ 10초 더 기다림', resumed, '· 쿨타임 뒤 이동', resumed - scrolled[5]);
// ④ 손으로 드래그가 여전히 되는지
const box = await p.evaluate(() => {
const v = document.querySelector('#itinerary .slider-viewport').getBoundingClientRect();
return {x: Math.round(v.x + v.width / 2), y: Math.round(v.y + v.height / 2)};
});
const before = await pos();
await p.mouse.move(box.x + 100, box.y);
await p.mouse.down();
await p.mouse.move(box.x - 110, box.y, {steps: 14});
await p.mouse.up();
await p.waitForTimeout(900);
const dragged = await pos();
console.log('④ 손 드래그 ', before, '→', dragged, '· 이동', dragged - before);
// ⑤ 드래그한 레일은 이후 자동으로 안 넘어가는지 (10초)
await p.waitForTimeout(10000);
console.log('⑤ 드래그 후 10초', await pos(), '· 추가 이동', (await pos()) - dragged);
await b.close();
@@ -1,18 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(4500);
await p.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
const pos = () => p.evaluate(() => {
const t = document.querySelector('#itinerary .slider-track');
const m = /matrix.*?,\s*(-?[\d.]+),\s*-?[\d.]+\)$/.exec(getComputedStyle(t).transform);
return m ? Math.round(parseFloat(m[1])) : 0;
});
// 쿨타임(7초)이 지나도록 아무것도 안 만지고 기다린다
await p.waitForTimeout(9000);
const base = await pos();
const log = [];
for (let i = 0; i < 8; i++) { await p.waitForTimeout(1500); log.push(await pos()); }
console.log('손 안 대고 9초 뒤부터 12초 관찰:', base, '→', JSON.stringify(log), '· 자동 이동', log[7] - base);
await b.close();
-23
View File
@@ -1,23 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
const bad = [];
page.on('response', (r) => { if (r.status() >= 400 && r.url().includes('/s/stay/')) bad.push(r.status() + ' ' + decodeURIComponent(r.url().split('/s/stay/')[1])); });
await page.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(6000);
const r = await page.evaluate(() => ({
miniBtns: [...document.querySelectorAll('#w4d-mini button')].map((b) => b.id),
peoplePhotos: document.querySelectorAll('#people img').length,
peopleCards: document.querySelectorAll('#people article').length,
credits: [...document.querySelectorAll('#people a')].filter((a) => /CC |KOGL|Public/.test(a.textContent)).length,
wrapUp: [...document.querySelectorAll('#itinerary li')].filter((li) => li.textContent.includes('마무리 ·')).length,
bagPick: document.body.textContent.includes('짐 찾기 ·'),
bbq: document.body.textContent.includes('바비큐 이용'),
shortStay: [...document.querySelectorAll('#itinerary li')].filter((li) => /스테이 머뭄/.test(li.textContent) && /1[0-5]분/.test(li.textContent)).length,
}));
console.log(JSON.stringify(r));
console.log('실패요청', bad.slice(0, 6));
await page.evaluate(() => document.querySelector('#people')?.scrollIntoView());
await page.waitForTimeout(1200);
await page.screenshot({path: '/tmp/s-people.png'});
await b.close();
-39
View File
@@ -1,39 +0,0 @@
import {chromium} from 'playwright';
const url = process.argv[2] || 'http://localhost/s/stay';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
await page.goto(url, {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(5000);
// 일정 레일을 화면 안에 둔다
await page.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
await page.waitForTimeout(1500);
// 스크롤 이벤트가 언제 오는지 센다
await page.evaluate(() => {
window.__log = [];
window.addEventListener('scroll', (e) => {
window.__log.push({t: Date.now(), trusted: e.isTrusted, tag: e.target === document ? 'document' : (e.target.className || '').toString().slice(0, 30)});
}, true);
const rail = document.querySelector('#itinerary .slider-viewport');
window.__rail = rail;
window.__pos = () => {
const c = rail.firstElementChild;
return Math.round(new DOMMatrix(getComputedStyle(c).transform).m41);
};
window.__t0 = Date.now();
});
const pos0 = await page.evaluate(() => window.__pos());
// 손으로 세로 스크롤 한 번
await page.mouse.move(640, 500);
await page.mouse.wheel(0, 200);
const marks = [];
for (let i = 1; i <= 20; i++) {
await page.waitForTimeout(1000);
marks.push(await page.evaluate((p0) => ({s: Math.round((Date.now() - window.__t0) / 1000), d: window.__pos() - p0}), pos0));
}
const log = await page.evaluate(() => window.__log.map((l) => ({s: +((l.t - window.__t0) / 1000).toFixed(1), tr: l.trusted, tag: l.tag})));
console.log('이동:', marks.map((m) => `${m.s}s:${m.d}`).join(' '));
console.log('scroll 이벤트 수:', log.length, '· 마지막 5건:', JSON.stringify(log.slice(-5)));
await b.close();
-31
View File
@@ -1,31 +0,0 @@
import {chromium} from 'playwright';
const url = process.argv[2] || 'http://localhost/s/stay';
const mode = process.argv[3] || 'idle';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
const w4 = [];
page.on('console', (m) => { if (m.text().includes('[w4d]')) w4.push(m.text().slice(0, 80)); });
await page.goto(url, {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(5000);
await page.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
await page.waitForTimeout(9000); // scrollIntoView 쿨타임 7초를 넘긴다
const setup = await page.evaluate(() => {
const rail = document.querySelector('#itinerary .slider-viewport');
window.__rail = rail;
window.__pos = () => {
const c = rail.firstElementChild;
let m = 0; try { m = new DOMMatrix(getComputedStyle(c).transform).m41; } catch {}
return Math.round(rail.scrollLeft + m);
};
const r = rail.getBoundingClientRect();
return {pos: window.__pos(), rect: {top: Math.round(r.top), h: Math.round(r.height)}, vh: innerHeight};
});
if (mode === 'wheel') { await page.mouse.move(640, 450); await page.mouse.wheel(0, 200); }
const marks = [];
for (let i = 1; i <= 16; i++) {
await page.waitForTimeout(1000);
marks.push(await page.evaluate((p0) => window.__pos() - p0, setup.pos));
}
console.log(mode, JSON.stringify(setup), marks.join(' '));
console.log(w4.join(' | '));
await b.close();
-26
View File
@@ -1,26 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
await page.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(5000);
await page.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
await page.waitForTimeout(9000);
await page.evaluate(() => {
const rail = document.querySelector('#itinerary .slider-viewport');
window.__rail = rail;
window.__pos = () => { const c = rail.firstElementChild; let m = 0;
try { m = new DOMMatrix(getComputedStyle(c).transform).m41; } catch {} return Math.round(rail.scrollLeft + m); };
});
await page.mouse.move(640, 450);
await page.mouse.wheel(0, 200);
await page.waitForTimeout(10000); // 쿨타임 7초 + 여유
const p0 = await page.evaluate(() => window.__pos());
// 해제 pointerup 을 하나씩 더 쏘면서 몇 번째에 다시 도는지 본다
for (let i = 1; i <= 6; i++) {
await page.evaluate(() => window.dispatchEvent(new PointerEvent('pointerup', {bubbles: true, button: 2})));
await page.waitForTimeout(5200);
const d = await page.evaluate((p) => window.__pos() - p, p0);
console.log(`추가 pointerup ${i}회 후 → ${d}px`);
if (d !== 0) break;
}
await b.close();
-49
View File
@@ -1,49 +0,0 @@
import {chromium, devices} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
// ① 데스크톱 — 휠로 내린 뒤 커서를 레일 밖으로 뺀다
{
const page = await b.newPage({viewport: {width: 1280, height: 900}});
await page.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(5000);
await page.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
await page.waitForTimeout(9000);
await page.evaluate(() => { const r = document.querySelector('#itinerary .slider-viewport');
window.__pos = () => { const c = r.firstElementChild; let m = 0;
try { m = new DOMMatrix(getComputedStyle(c).transform).m41; } catch {} return Math.round(r.scrollLeft + m); }; });
await page.mouse.move(640, 450);
await page.mouse.wheel(0, 200);
const p0 = await page.evaluate(() => window.__pos());
await page.waitForTimeout(10000);
const stay = await page.evaluate((p) => window.__pos() - p, p0);
await page.mouse.move(5, 5); // 커서를 레일 밖으로
await page.waitForTimeout(10000);
const after = await page.evaluate((p) => window.__pos() - p, p0);
console.log(`데스크톱: 커서가 레일 위 10초 → ${stay}px · 커서 뺀 뒤 10초 → ${after}px`);
await page.close();
}
// ② 모바일 — 손가락으로 세로 스와이프
{
const ctx = await b.newContext({...devices['iPhone 13'], hasTouch: true, isMobile: true});
const page = await ctx.newPage();
await page.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(6000);
await page.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
await page.waitForTimeout(9000);
await page.evaluate(() => { const r = document.querySelector('#itinerary .slider-viewport');
window.__pos = () => { const c = r.firstElementChild; let m = 0;
try { m = new DOMMatrix(getComputedStyle(c).transform).m41; } catch {} return Math.round(r.scrollLeft + m); }; });
const p0 = await page.evaluate(() => window.__pos());
// 세로 스와이프 (레일 위에서)
await page.touchscreen.tap(200, 400);
await page.waitForTimeout(600);
const t1 = await page.evaluate((p) => window.__pos() - p, p0);
await page.waitForTimeout(6000);
const t6 = await page.evaluate((p) => window.__pos() - p, p0);
await page.waitForTimeout(8000);
const t14 = await page.evaluate((p) => window.__pos() - p, p0);
console.log(`모바일: 탭 직후 ${t1}px · 6초 ${t6}px · 14초 ${t14}px`);
await ctx.close();
}
await b.close();
-11
View File
@@ -1,11 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 1280, height: 900}});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(4500);
console.log(await p.evaluate(() => JSON.stringify({
embla: document.querySelectorAll('[class*="embla"]').length,
transformRails: [...document.querySelectorAll('#root div')].filter((d) => /translate3d|translateX/.test(getComputedStyle(d).transform === 'none' ? '' : d.style.transform || '')).length,
scrollRails: [...document.querySelectorAll('#root *')].filter((el) => /auto|scroll/.test(getComputedStyle(el).overflowX) && el.scrollWidth - el.clientWidth > 40).map((el) => el.closest('section')?.id || '-'),
})));
await b.close();
-15
View File
@@ -1,15 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
console.log(await p.evaluate(() => {
const h = document.querySelector('#root header');
const group = h.querySelector('.shell > div:last-child');
return JSON.stringify([...group.children].map((el) => ({
tag: el.tagName, id: el.id || '-', cls: (el.className || '').toString().slice(0, 55),
label: el.getAttribute('aria-label') || el.textContent.trim().slice(0, 12),
w: Math.round(el.getBoundingClientRect().width),
})), null, 1);
}));
await b.close();
-18
View File
@@ -1,18 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
for (const [tag, vp] of [['mobile', {width: 390, height: 780}], ['desktop', {width: 1280, height: 900}]]) {
const p = await b.newPage({viewport: vp, isMobile: tag === 'mobile', hasTouch: tag === 'mobile', deviceScaleFactor: 2});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
await p.screenshot({path: `/tmp/h-${tag}.png`, clip: {x: 0, y: 0, width: vp.width, height: 70}});
const info = await p.evaluate(() => {
const tel = document.querySelector('#root header a[href^="tel:"]');
const nav = [...document.querySelectorAll('#root nav')].find((n) => getComputedStyle(n).position === 'fixed');
return {telShown: tel ? getComputedStyle(tel).display : '-',
tabbarHasTel: nav ? /전화/.test(nav.textContent) : false,
headerOverflow: document.querySelector('#root header .shell').scrollWidth > window.innerWidth};
});
console.log(tag, JSON.stringify(info));
await p.close();
}
await b.close();
Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 KiB

-18
View File
@@ -1,18 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
await page.goto(process.argv[2] || 'https://web4ai.o2osolution.ai/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(5000);
const r = await page.evaluate(() => {
const out = [];
document.querySelectorAll('#itinerary article').forEach((a) => {
const title = a.querySelector('h3')?.textContent || '';
if (!title.includes('섬')) return;
const badge = a.querySelector('span')?.textContent || '';
const rows = [...a.querySelectorAll('ol li')].map((li) => li.innerText.replace(/\n+/g, ' | '));
out.push({title, badge, rows});
});
return out;
});
for (const d of r) { console.log('##', d.title, d.badge); d.rows.forEach((x) => console.log(' ', x)); }
await b.close();
@@ -260,6 +260,30 @@ block = ("\n <style id=\"w4d-css\">\n" + css + "\n </style>\n"
html, n = re.subn(r"\n?\s*</body>", lambda _m: block + "</body>", html, count=1)
assert n == 1, "</body> 를 못 찾았다"
# ─────────────────────────────────────────────────────────────────────────────
# 레포 안으로 끌어들이기 — 다른 사람 기계에서도 그대로 떠야 한다.
#
# ★ 왜 (2026-09-11, 사장님: "다른 환경에서 local/s/stay 치면 나오냐고")
# 구워진 index.html 은 미러 사진 61장(`/assets/mirror/*`)과 번들 css/js 를 **루트 절대경로**로
# 가리킨다. 그 파일들은 레포가 아니라 도커 볼륨에만 있다 — 레포만 받은 사람은 흰 화면을 본다.
# 번들은 더 나쁘다: 파일명이 콘텐츠 해시라 그 기계에서 구운 해시가 다르면 404 다.
# 그래서 둘 다 `img/mirror/` · `vendor/` 로 복사해 두고, 경로를 `/s/stay/…` 로 바꿔 박는다.
# 이러면 nginx 가 `/s/` 를 파일로 주기만 하면 되고 번들 해시와 무관해진다.
# (대신 렌더러를 고쳐도 이 목업은 안 따라간다 — 목업은 원래 재굽기 대상이 아니라 그게 맞다.)
missing = []
for name in sorted(set(re.findall(r"/assets/mirror/[0-9a-f]+\.\w+", html))):
if not (SP / "img" / "mirror" / name.rsplit("/", 1)[1]).exists():
missing.append(name)
for name in sorted(set(re.findall(r"/assets/index-[\w.-]+\.(?:css|js)", html))):
if not (SP / "vendor" / name.rsplit("/", 1)[1]).exists():
missing.append(name)
assert not missing, f"레포에 없는 자산 {len(missing)}개: {missing[:3]} … `vendor.sh` 를 돌려라"
html = re.sub(r"/assets/mirror/", "/s/stay/img/mirror/", html)
html = re.sub(r"/assets/(index-[\w.-]+\.(?:css|js))", r"/s/stay/vendor/\1", html)
left = re.findall(r"/assets/[^\"\\')\s]+", html)
assert not left, f"아직 /assets 를 가리키는 자리가 있다: {left[:5]}"
out = SP / "build"
out.mkdir(exist_ok=True)
(out / "index.html").write_text(html, encoding="utf-8")
-36
View File
@@ -1,36 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
for (const tag of ['desktop', 'mobile']) {
const p = await b.newPage(tag === 'mobile'
? {viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true}
: {viewport: {width: 1280, height: 900}});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
const before = await p.evaluate(() => ({
playing: document.getElementById('w4d-play').dataset.playing,
title: document.getElementById('w4d-now')?.textContent,
titleShown: document.getElementById('w4d-now') ? getComputedStyle(document.getElementById('w4d-now')).display : '-',
}));
await p.click('#w4d-play'); // ← 한 번만 누른다
await p.waitForTimeout(2500);
const after = await p.evaluate(() => ({
playing: document.getElementById('w4d-play').dataset.playing,
title: document.getElementById('w4d-now')?.textContent,
icon: document.getElementById('w4d-play').querySelector('path')?.getAttribute('d')?.slice(0, 12),
}));
console.log(tag, '누르기 전', JSON.stringify(before), '→ 한 번 누른 뒤', JSON.stringify(after));
if (tag === 'desktop') {
// 곡이 끝나면 다음 곡으로 (순차) — 끝 2초 앞으로 보낸다
const seq = await p.evaluate(async () => {
const first = document.getElementById('w4d-now').textContent;
const a = document.querySelector('audio') || null;
// Audio 객체는 DOM 밖이라 이벤트로 끝을 흉내낸다
document.getElementById('w4d-next') ? null : null;
const rows = [...document.querySelectorAll('.w4d-item')];
return {first, rows: rows.length};
});
console.log(' 현재 곡', JSON.stringify(seq));
}
await p.close();
}
await b.close();
-27
View File
@@ -1,27 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
for (const vp of [{width: 1280, height: 900, tag: 'desktop'}, {width: 390, height: 780, tag: 'mobile'}]) {
const p = await b.newPage({viewport: {width: vp.width, height: vp.height}, isMobile: vp.tag === 'mobile', hasTouch: vp.tag === 'mobile'});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
await p.click('#w4d-toggle');
await p.waitForTimeout(400);
await p.click('.w4d-item');
await p.waitForTimeout(1800);
const r = await p.evaluate(() => {
const panel = document.getElementById('w4d-panel');
const box = panel.getBoundingClientRect();
const rows = [...panel.querySelectorAll('.w4d-item')].map((el) => {
const b = el.getBoundingClientRect();
return {h: Math.round(b.height), title: el.querySelector('.w4d-t').textContent,
sub: el.querySelector('.w4d-sub').textContent, time: el.querySelector('.w4d-time').textContent,
playing: el.dataset.playing};
});
return {panel: {x: Math.round(box.x), w: Math.round(box.width), right: Math.round(window.innerWidth - box.right)},
overflow: box.right > window.innerWidth || box.left < 0, rows};
});
console.log(vp.tag, JSON.stringify(r));
await p.screenshot({path: `/tmp/p-${vp.tag}.png`, clip: {x: 0, y: 0, width: vp.width, height: Math.min(620, vp.height)}});
await p.close();
}
await b.close();
-22
View File
@@ -1,22 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
console.log(await p.evaluate(() => {
const out = [];
document.querySelectorAll('#root *').forEach((el) => {
const s = getComputedStyle(el);
if (!/auto|scroll/.test(s.overflowX)) return;
if (el.scrollWidth - el.clientWidth < 40) return;
let sec = el.closest('section');
let name = sec?.id || '';
if (!name) { const h = sec?.querySelector('h2'); name = h ? h.textContent.trim().slice(0, 10) : '-'; }
out.push({sec: name, scrollW: el.scrollWidth, clientW: el.clientWidth});
});
const itin = document.querySelector('#itinerary');
return JSON.stringify({rails: out, itinExists: !!itin,
itinH2: itin?.querySelector('h2')?.textContent.trim(),
sections: [...document.querySelectorAll('#root section')].map((s) => s.id || (s.querySelector('h2')?.textContent.trim().slice(0, 8) || '-'))}, null, 1);
}));
await b.close();
-18
View File
@@ -1,18 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
await p.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'start'}));
await p.waitForTimeout(1500);
console.log(await p.evaluate(() => {
const itin = document.querySelector('#itinerary');
const out = [];
itin.querySelectorAll('*').forEach((el) => {
const s = getComputedStyle(el);
const dx = el.scrollWidth - el.clientWidth;
if (dx > 20) out.push({tag: el.tagName, overflowX: s.overflowX, dx, cls: (el.className || '').toString().slice(0, 60)});
});
return JSON.stringify({found: out.slice(0, 6), scrollY: Math.round(window.scrollY)}, null, 1);
}));
await b.close();
-37
View File
@@ -1,37 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
const box = await p.evaluate(() => {
const rail = [...document.querySelectorAll('#gallery *')].find((el) => {
const s = getComputedStyle(el);
return /auto|scroll/.test(s.overflowX) && el.scrollWidth - el.clientWidth > 40;
});
if (!rail) return null;
rail.scrollIntoView({block: 'center'});
rail.dataset.w4dTest = '1';
const r = rail.getBoundingClientRect();
return {x: Math.round(r.x + r.width / 2), y: Math.round(r.y + r.height / 2)};
});
await p.waitForTimeout(700);
const read = () => p.evaluate(() => Math.round(document.querySelector('[data-w4d-test]').scrollLeft));
// ① 손 안 대고 두는 동안 자동으로 넘어가는지 (자동 넘김이 살아 있는지 확인)
const idle = [];
for (let i = 0; i < 6; i++) { await p.waitForTimeout(1000); idle.push(await read()); }
console.log('손 안 댐 →', JSON.stringify(idle));
// ② 진짜 터치로 스와이프한 뒤
await p.touchscreen.tap(box.x, box.y);
await p.mouse.move(box.x + 120, box.y);
await p.mouse.down();
await p.mouse.move(box.x - 100, box.y, {steps: 12});
await p.mouse.up();
await p.waitForTimeout(600);
const afterSwipe = await read();
const log = [];
for (let i = 0; i < 8; i++) { await p.waitForTimeout(1000); log.push(await read()); }
console.log('스와이프 후', afterSwipe, '→', JSON.stringify(log), '· 자동 이동량', log[log.length - 1] - afterSwipe);
await b.close();
@@ -1,24 +0,0 @@
import {chromium} from 'playwright';
const url = process.argv[2] || 'http://localhost/s/stay';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
await page.goto(url, {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(6000);
const list = await page.evaluate(() => {
const out = [];
const add = (el, kind) => {
const sec = el.closest('section[id], div[id]');
out.push({kind, sec: sec ? sec.id : '?', label: el.getAttribute('aria-label') || '',
w: Math.round(el.getBoundingClientRect().width),
over: Math.round(el.scrollWidth - el.clientWidth), hidden: !el.getClientRects().length});
};
document.querySelectorAll('#root .slider-viewport').forEach((el) => add(el, 'embla'));
document.querySelectorAll('#root *').forEach((el) => {
if (el.classList.contains('slider-viewport')) return;
const f = getComputedStyle(el).overflowX;
if ((f === 'auto' || f === 'scroll') && el.scrollWidth - el.clientWidth > 40) add(el, 'scroll상자');
});
return out;
});
console.table(list);
await b.close();
@@ -1,44 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
await page.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(6000);
await page.evaluate(() => {
window.__rails = [];
document.querySelectorAll('#root .slider-viewport').forEach((el) => window.__rails.push(el));
document.querySelectorAll('#root *').forEach((el) => {
if (el.classList.contains('slider-viewport')) return;
const f = getComputedStyle(el).overflowX;
if ((f === 'auto' || f === 'scroll') && el.scrollWidth - el.clientWidth > 40) window.__rails.push(el);
});
window.__st = (i) => { const r = window.__rails[i]; const c = r.firstElementChild; let m = 0;
try { m = new DOMMatrix(getComputedStyle(c).transform).m41; } catch {}
const bb = r.getBoundingClientRect();
return {pos: Math.round(r.scrollLeft + m), max: Math.round(r.scrollWidth - r.clientWidth),
label: r.getAttribute('aria-label') || '?', cx: Math.round(bb.left + bb.width/2),
cy: Math.round(bb.top + bb.height/2), top: Math.round(bb.top), h: Math.round(bb.height), vh: innerHeight};
};
});
for (const i of [4, 12]) {
await page.mouse.move(5, 5);
await page.evaluate((k) => window.__rails[k].scrollIntoView({block: 'center'}), i);
await page.waitForTimeout(9000);
let s = await page.evaluate((k) => window.__st(k), i);
console.log(`\n[${s.label}] max=${s.max} pos=${s.pos} 화면 top=${s.top} h=${s.h} vh=${s.vh}`);
await page.waitForTimeout(6000); // 진행 중인 애니메이션까지 가라앉힌다
s = await page.evaluate((k) => window.__st(k), i);
const y = Math.min(Math.max(s.cy, 100), 800);
const p1 = s.pos;
await page.mouse.move(s.cx, y);
await page.mouse.wheel(0, 150);
await page.mouse.move(5, 5);
const marks = [];
for (let t = 1; t <= 14; t++) {
await page.waitForTimeout(1000);
const q = await page.evaluate((k) => window.__st(k), i);
marks.push(`${t}s:${q.pos - p1}`);
}
const f = await page.evaluate((k) => window.__st(k), i);
console.log('휠 뒤 14초:', marks.join(' '), `| 끝까지=${f.max} 현재=${f.pos} 화면top=${f.top}`);
}
await b.close();
-24
View File
@@ -1,24 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const p = await b.newPage({viewport: {width: 1280, height: 900}});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(5000);
await p.click('#w4d-toggle'); await p.waitForTimeout(300);
const rows = await p.$$('.w4d-item');
await rows[0].click(); // 1번 곡
await p.waitForTimeout(1500);
const seq = [];
seq.push(await p.evaluate(() => document.getElementById('w4d-now').textContent));
// 목록에서 다음 줄을 눌러 순서 확인 + 재생 중 표시가 따라오는지
for (let i = 1; i < 5; i++) {
await rows[i].click();
await p.waitForTimeout(900);
seq.push(await p.evaluate(() => document.getElementById('w4d-now').textContent));
}
const cur = await p.evaluate(() => {
const row = document.querySelector('.w4d-item[data-playing="1"]');
return {row: row?.querySelector('.w4d-t').textContent, time: row?.querySelector('.w4d-time').textContent};
});
console.log('목록 순서', JSON.stringify(seq));
console.log('재생 중 줄', JSON.stringify(cur));
await b.close();
-20
View File
@@ -1,20 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
for (const rm of ['no-preference', 'reduce']) {
const p = await b.newPage({viewport: {width: 390, height: 780}, isMobile: true, hasTouch: true, reducedMotion: rm});
await p.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await p.waitForTimeout(4500);
await p.evaluate(() => document.querySelector('#songs').scrollIntoView({block: 'center'}));
await p.waitForTimeout(900);
const r = await p.evaluate(() => {
const disc = document.querySelector('#songs .w4-spin');
if (!disc) return {err: '판 없음'};
const s = getComputedStyle(disc);
const box = disc.getBoundingClientRect();
return {animation: s.animationName + ' ' + s.animationDuration, playState: s.animationPlayState,
w: Math.round(box.width), h: Math.round(box.height), visible: box.width > 0 && s.visibility !== 'hidden'};
});
console.log(`reduced-motion:${rm.padEnd(14)}`, JSON.stringify(r));
await p.close();
}
await b.close();
-39
View File
@@ -1,39 +0,0 @@
import {chromium, devices} from 'playwright';
const url = process.argv[2] || 'http://localhost/s/stay';
const b = await chromium.launch({channel: 'chrome'});
const ctx = await b.newContext({...devices['iPhone 13'], hasTouch: true, isMobile: true});
const page = await ctx.newPage();
const ev = [];
await page.goto(url, {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(6000);
await page.evaluate(() => document.querySelector('#itinerary').scrollIntoView({block: 'center'}));
await page.waitForTimeout(9000);
await page.evaluate(() => {
const r = document.querySelector('#itinerary .slider-viewport');
window.__r = r;
window.__pos = () => { const c = r.firstElementChild; let m = 0;
try { m = new DOMMatrix(getComputedStyle(c).transform).m41; } catch {} return Math.round(r.scrollLeft + m); };
window.__ev = [];
['pointerdown','pointerup','pointercancel','touchstart','touchmove','touchend'].forEach((t) => {
window.addEventListener(t, (e) => { if (e.isTrusted) window.__ev.push(`${((Date.now()-window.__t0)/1000).toFixed(1)} ${t}`); }, true);
});
window.__t0 = Date.now();
});
const box = await page.evaluate(() => { const b = window.__r.getBoundingClientRect(); return {x: Math.round(b.left + b.width/2), y: Math.round(Math.min(Math.max(b.top + b.height/2, 120), 600))}; });
const p0 = await page.evaluate(() => window.__pos());
// 손가락을 대고 천천히 세로로 끌면서 10초 유지 (CDP 로 직접 터치)
const cdp = await ctx.newCDPSession(page);
const pt = (type, y) => cdp.send('Input.dispatchTouchEvent', {type, touchPoints: type === 'touchEnd' ? [] : [{x: box.x, y}]});
await pt('touchStart', box.y);
const marks = [];
for (let i = 0; i < 12; i++) {
await page.waitForTimeout(900);
await pt('touchMove', box.y - (i + 1) * 2); // 아주 조금씩 — 손가락 올린 채 유지
marks.push(await page.evaluate((p) => window.__pos() - p, p0));
}
await pt('touchEnd', box.y);
console.log('손가락 올린 채 11초:', marks.join(' '));
await page.waitForTimeout(11000);
console.log('뗀 뒤 11초:', await page.evaluate((p) => window.__pos() - p, p0));
console.log('이벤트:', (await page.evaluate(() => window.__ev)).slice(0, 14).join(' | '));
await b.close();
+298
View File
@@ -0,0 +1,298 @@
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(f){if(f.ep)return;f.ep=!0;const m=u(f);fetch(f.href,m)}})();const Xg="modulepreload",$g=function(i){return"/"+i},hh={},Vg=function(r,u,o){let f=Promise.resolve();if(u&&u.length>0){let h=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),v=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));f=h(u.map(p=>{if(p=$g(p),p in hh)return;hh[p]=!0;const b=p.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":Xg,b||(E.as="script"),E.crossOrigin="",E.href=p,v&&E.setAttribute("nonce",v),document.head.appendChild(E),b)return new Promise((T,N)=>{E.addEventListener("load",T),E.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function m(h){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=h,window.dispatchEvent(x),!x.defaultPrevented)throw h}return f.then(h=>{for(const x of h||[])x.status==="rejected"&&m(x.reason);return r().catch(m)})};var Ou={exports:{}},Ns={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ph;function Zg(){if(ph)return Ns;ph=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function u(o,f,m){var h=null;if(m!==void 0&&(h=""+m),f.key!==void 0&&(h=""+f.key),"key"in f){m={};for(var x in f)x!=="key"&&(m[x]=f[x])}else m=f;return f=m.ref,{$$typeof:i,type:o,key:h,ref:f!==void 0?f:null,props:m}}return Ns.Fragment=r,Ns.jsx=u,Ns.jsxs=u,Ns}var xh;function Kg(){return xh||(xh=1,Ou.exports=Zg()),Ou.exports}var n=Kg(),Du={exports:{}},ce={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var gh;function Jg(){if(gh)return ce;gh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),E=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=E&&S[E]||S["@@iterator"],typeof S=="function"?S:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,U={};function q(S,H,G){this.props=S,this.context=H,this.refs=U,this.updater=G||N}q.prototype.isReactComponent={},q.prototype.setState=function(S,H){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,H,"setState")},q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function Q(){}Q.prototype=q.prototype;function V(S,H,G){this.props=S,this.context=H,this.refs=U,this.updater=G||N}var ne=V.prototype=new Q;ne.constructor=V,_(ne,q.prototype),ne.isPureReactComponent=!0;var de=Array.isArray;function le(){}var X={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function se(S,H,G){var $=G.ref;return{$$typeof:i,type:S,key:H,ref:$!==void 0?$:null,props:G}}function Ne(S,H){return se(S.type,H,S.props)}function oe(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function ye(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return H[G]})}var Ye=/\/+/g;function Qe(S,H){return typeof S=="object"&&S!==null&&S.key!=null?ye(""+S.key):H.toString(36)}function te(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(le,le):(S.status="pending",S.then(function(H){S.status==="pending"&&(S.status="fulfilled",S.value=H)},function(H){S.status==="pending"&&(S.status="rejected",S.reason=H)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function O(S,H,G,$,ae){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var ie=!1;if(S===null)ie=!0;else switch(re){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(S.$$typeof){case i:case r:ie=!0;break;case b:return ie=S._init,O(ie(S._payload),H,G,$,ae)}}if(ie)return ae=ae(S),ie=$===""?"."+Qe(S,0):$,de(ae)?(G="",ie!=null&&(G=ie.replace(Ye,"$&/")+"/"),O(ae,H,G,"",function(nt){return nt})):ae!=null&&(oe(ae)&&(ae=Ne(ae,G+(ae.key==null||S&&S.key===ae.key?"":(""+ae.key).replace(Ye,"$&/")+"/")+ie)),H.push(ae)),1;ie=0;var Ee=$===""?".":$+":";if(de(S))for(var Ae=0;Ae<S.length;Ae++)$=S[Ae],re=Ee+Qe($,Ae),ie+=O($,H,G,re,ae);else if(Ae=T(S),typeof Ae=="function")for(S=Ae.call(S),Ae=0;!($=S.next()).done;)$=$.value,re=Ee+Qe($,Ae++),ie+=O($,H,G,re,ae);else if(re==="object"){if(typeof S.then=="function")return O(te(S),H,G,$,ae);throw H=String(S),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ie}function B(S,H,G){if(S==null)return S;var $=[],ae=0;return O(S,$,"","",function(re){return H.call(G,re,ae++)}),$}function W(S){if(S._status===-1){var H=S._result;H=H(),H.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=H)}if(S._status===1)return S._result.default;throw S._result}var me=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},je={map:B,forEach:function(S,H,G){B(S,function(){H.apply(this,arguments)},G)},count:function(S){var H=0;return B(S,function(){H++}),H},toArray:function(S){return B(S,function(H){return H})||[]},only:function(S){if(!oe(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ce.Activity=y,ce.Children=je,ce.Component=q,ce.Fragment=u,ce.Profiler=f,ce.PureComponent=V,ce.StrictMode=o,ce.Suspense=v,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ce.__COMPILER_RUNTIME={__proto__:null,c:function(S){return X.H.useMemoCache(S)}},ce.cache=function(S){return function(){return S.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(S,H,G){if(S==nullLine truncated
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bh;function Wg(){return bh||(bh=1,(function(i){function r(O,B){var W=O.length;O.push(B);e:for(;0<W;){var me=W-1>>>1,je=O[me];if(0<f(je,B))O[me]=B,O[W]=je,W=me;else break e}}function u(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var B=O[0],W=O.pop();if(W!==B){O[0]=W;e:for(var me=0,je=O.length,S=je>>>1;me<S;){var H=2*(me+1)-1,G=O[H],$=H+1,ae=O[$];if(0>f(G,W))$<je&&0>f(ae,G)?(O[me]=ae,O[$]=W,me=$):(O[me]=G,O[H]=W,me=H);else if($<je&&0>f(ae,W))O[me]=ae,O[$]=W,me=$;else break e}}return B}function f(O,B){var W=O.sortIndex-B.sortIndex;return W!==0?W:O.id-B.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var h=Date,x=h.now();i.unstable_now=function(){return h.now()-x}}var v=[],p=[],b=1,y=null,E=3,T=!1,N=!1,_=!1,U=!1,q=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ne(O){for(var B=u(p);B!==null;){if(B.callback===null)o(p);else if(B.startTime<=O)o(p),B.sortIndex=B.expirationTime,r(v,B);else break;B=u(p)}}function de(O){if(_=!1,ne(O),!N)if(u(v)!==null)N=!0,le||(le=!0,ye());else{var B=u(p);B!==null&&te(de,B.startTime-O)}}var le=!1,X=-1,ee=5,se=-1;function Ne(){return U?!0:!(i.unstable_now()-se<ee)}function oe(){if(U=!1,le){var O=i.unstable_now();se=O;var B=!0;try{e:{N=!1,_&&(_=!1,Q(X),X=-1),T=!0;var W=E;try{t:{for(ne(O),y=u(v);y!==null&&!(y.expirationTime>O&&Ne());){var me=y.callback;if(typeof me=="function"){y.callback=null,E=y.priorityLevel;var je=me(y.expirationTime<=O);if(O=i.unstable_now(),typeof je=="function"){y.callback=je,ne(O),B=!0;break t}y===u(v)&&o(v),ne(O)}else o(v);y=u(v)}if(y!==null)B=!0;else{var S=u(p);S!==null&&te(de,S.startTime-O),B=!1}}break e}finally{y=null,E=W,T=!1}B=void 0}}finally{B?ye():le=!1}}}var ye;if(typeof V=="function")ye=function(){V(oe)};else if(typeof MessageChannel<"u"){var Ye=new MessageChannel,Qe=Ye.port2;Ye.port1.onmessage=oe,ye=function(){Qe.postMessage(null)}}else ye=function(){q(oe,0)};function te(O,B){X=q(function(){O(i.unstable_now())},B)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return E},i.unstable_next=function(O){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var W=E;E=B;try{return O()}finally{E=W}},i.unstable_requestPaint=function(){U=!0},i.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var W=E;E=O;try{return B()}finally{E=W}},i.unstable_scheduleCallback=function(O,B,W){var me=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?me+W:me):W=me,O){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=W+je,O={id:b++,callback:B,priorityLevel:O,startTime:W,expirationTime:je,sortIndex:-1},W>me?(O.sortIndex=W,r(p,O),u(v)===null&&O===u(p)&&(_?(Q(X),X=-1):_=!0,te(de,W-me))):(O.sortIndex=je,r(v,O),N||T||(N=!0,le||(le=!0,ye()))),O},i.unstable_shouldYield=Ne,i.unstable_wrapCallback=function(O){var B=E;return function(){var W=E;E=B;try{return O.apply(this,arguments)}finally{E=W}}}})(Ru)),Ru}var yh;function Fg(){return yh||(yh=1,Uu.exports=Wg()),Uu.exports}var Hu={exports:{}},ht={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jh;function Ig(){if(jh)return ht;jh=1;var i=Wu();function r(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(r(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(v,p,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:y==null?null:""+y,children:v,containerInfo:p,implementation:b}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ht.createPortal=function(v,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return m(v,p,null,b)},ht.flushSync=function(v){var p=h.T,b=o.p;try{if(h.T=null,o.p=2,v)return v()}finally{h.T=p,o.p=b,o.d.f()}},ht.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(v,p))},ht.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},ht.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,y=x(b,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:E,fetchPriority:T}):b==="script"&&o.d.X(v,{crossOrigin:y,integrity:E,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ht.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=x(p.as,p.crossOrigin);o.d.M(v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(v)},ht.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,y=x(b,p.crossOrigin);o.d.L(v,b,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ht.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=x(p.as,p.crossOrigin);o.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(v)},ht.requestFormReset=function(v){o.d.r(v)},ht.unstable_batchedUpdates=function(v,p){return v(p)},ht.useFormState=function(v,p,b){return h.H.useFormState(v,p,b)},ht.useFormStatus=function(){return h.H.useHostTransitionStatus()},ht.version="19.2.8",ht}var Nh;function Pg(){if(Nh)return Hu.exports;Nh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Hu.exports=Ig(),Hu.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Sh;function ev(){if(Sh)return Ss;Sh=1;var i=Fg(),r=Wu(),u=Pg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(m(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var s=l.return;if(s===null)break;var c=s.alternate;if(c===null){if(a=s.return,a!==null){l=a;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===l)return v(s),e;if(c===a)return v(s),t;c=c.sibling}throw Error(o(188))}if(l.return!==a.return)l=s,a=c;else{for(var d=!1,g=s.child;g;){if(g===l){d=!0,l=s,a=c;break}if(g===a){d=!0,a=s,l=c;break}g=g.sibling}if(!d){for(g=c.child;g;){if(g===l){d=!0,l=c,a=s;break}if(g===a){d=!0,a=c,l=s;break}g=g.sibling}if(!d)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,E=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),V=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),Ne=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ye(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var Ye=Symbol.for("react.client.reference");function Qe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case de:return"Suspense";case le:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case V:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Qe(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Qe(e(t))}catch{}}return null}var te=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},me=[],je=-1;function S(e){return{current:e}}function H(e){0>je||(e.current=me[je],me[je]=null,je--)}function G(e,t){je++,me[je]=e.current,e.current=t}var $=S(null),ae=S(null),re=S(null),ie=S(null);function Ee(e,t){switch(G(re,t),G(ae,e),G($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hm(t),e=Lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H($),G($,e)}function Ae(){H($),H(ae),H(re)}function nt(e){e.memoizedState!==null&&G(ie,e);var t=$.current,l=Lm(t,e.type);t!==l&&(G(ae,e),G($,l))}function Me(e){ae.current===e&&(H($),H(ae)),ie.current===e&&(H(ie),vs._currentValue=W)}var J,_e;function Oe(e){if(J===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);J=t&&t[1]||"",_e=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+J+e+_e}var tt=!1;function bt(e,t){if(!e||tt)return"";tt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(D){var M=D}Reflect.construct(e,[],L)}else{try{L.call()}catch(D){M=D}e.call(L.prototype)}}else{try{throw Error()}catch(D){M=D}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(D){if(D&&M&&typeof D.stack=="string")return[D.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),d=c[0],g=c[1];if(d&&g){var j=d.split(`
`),C=g.split(`
`);for(s=a=0;a<j.length&&!j[a].includes("DetermineComponentFrameRoot");)a++;for(;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;if(a===j.length||s===C.length)for(a=j.length-1,s=C.length-1;1<=a&&0<=s&&j[a]!==C[s];)s--;for(;1<=a&&0<=s;a--,s--)if(j[a]!==C[s]){if(a!==1||s!==1)do if(a--,s--,0>s||j[a]!==C[s]){var k=`
`+j[a].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=a&&0<=s);break}}}finally{tt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Oe(l):""}function Wt(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return bt(e.type,!1);case 11:return bt(e.type.render,!1);case 1:return bt(e.type,!0);case 31:return Oe("Activity");default:return""}}function nl(e){try{var t="",l=null;do t+=Wt(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var kt=Object.prototype.hasOwnProperty,Ft=i.unstable_scheduleCallback,hl=i.unstable_cancelCallback,An=i.unstable_shouldYield,Tn=i.unstable_requestPaint,mt=i.unstable_now,Ys=i.unstable_getCurrentPriorityLevel,Gs=i.unstable_ImmediatePriority,_n=i.unstable_UserBlockingPriority,ka=i.unstable_NormalPriority,wn=i.unstable_LowPriority,pl=i.unstable_IdlePriority,Cn=i.log,Mn=i.unstable_setDisableYieldValue,sl=null,xt=null;function il(e){if(typeof Cn=="function"&&Mn(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(sl,e)}catch{}}var gt=Math.clz32?Math.clz32:Qs,vc=Math.log,bc=Math.LN2;function Qs(e){return e>>>=0,e===0?32:31-(vc(e)/bc|0)|0}var Ua=256,ua=262144,oa=4194304;function cl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ra(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=a&134217727;return g!==0?(a=g&~c,a!==0?s=cl(a):(d&=g,d!==0?s=cl(d):l||(l=g&~e,l!==0&&(s=cl(l))))):(g=a&~c,g!==0?s=cl(g):d!==0?s=cl(d):l||(l=a&~e,l!==0&&(s=cl(l)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:s}function Ll(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xs(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $s(){var e=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),e}function yc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function On(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Op(e,t,l,a,s,c){var d=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var g=e.entanglements,j=e.expirationTimes,C=e.hiddenUpdates;for(l=d&~l;0<l;){var k=31-gt(l),L=1<<k;g[k]=0,j[k]=-1;var M=C[k];if(M!==null)for(C[k]=null,k=0;k<M.length;k++){var D=M[k];D!==null&&(D.lane&=-536870913)}l&=~L}a!==0&&vo(e,a,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function vo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-gt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function bo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-gt(l),s=1<<a;s&t|e[a]&t&&(e[a]|=t),l&=~s}}function yo(e,t){var l=t&-t;return l=(l&42)!==0?1:jc(l),(l&(e.suspendedLanes|t))!==0?0:l}function jc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Nc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jo(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:ch(e.type))}function No(e,t){var l=B.p;try{return B.p=e,t()}finally{B.p=l}}var ql=Math.random().toString(36).slice(2),ct="__reactFiber$"+ql,yt="__reactProps$"+ql,Ha="__reactContainer$"+ql,Sc="__reactEvents$"+ql,Dp="__reactListeners$"+ql,kp="__reactHandles$"+ql,So="__reactResources$"+ql,Dn="__reactMarker$"+ql;function zc(e){delete e[ct],delete e[yt],delete e[Sc],delete e[Dp],delete e[kp]}function La(e){var t=e[ct];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ha]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=$m(e);e!==null;){if(l=e[ct])return l;e=$m(e)}return t}e=l,l=e.parentNode}return null}function qa(e){if(e=e[ct]||e[Ha]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ba(e){var t=e[So];return t||(t=e[So]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[Dn]=!0}var zo=new Set,Eo={};function fa(e,t){Ya(e,t),Ya(e+"Capture",t)}function Ya(e,t){for(Eo[e]=t,e=0;e<t.length;e++)zo.add(t[e])}var Up=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21 Line truncated
`).replace(dg,"")}function Um(e,t){return t=km(t),km(e)===t}function ke(e,t,l,a,s,c){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Qa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Qa(e,""+a);break;case"className":Zs(e,"class",a);break;case"tabIndex":Zs(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Zs(e,l,a);break;case"style":ko(e,a,c);break;case"data":if(t!=="object"){Zs(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Js(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&ke(e,t,"name",s.name,s,null),ke(e,t,"formEncType",s.formEncType,s,null),ke(e,t,"formMethod",s.formMethod,s,null),ke(e,t,"formTarget",s.formTarget,s,null)):(ke(e,t,"encType",s.encType,s,null),ke(e,t,"method",s.method,s,null),ke(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Js(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=gl);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Js(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Vs(e,"popover",a);break;case"xlinkActuate":xl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":xl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":xl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":xl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":xl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":xl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":xl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":xl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":xl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vs(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Bp.get(l)||l,Vs(e,l,a))}}function hu(e,t,l,a,s,c){switch(l){case"style":ko(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Qa(e,a):(typeof a=="number"||typeof a=="bigint")&&Qa(e,""+a);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=gl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),av=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,u,o)=>o?o.toUpperCase():u.toLowerCase()),Ah=i=>{const r=av(i);return r.charAt(0).toUpperCase()+r.slice(1)},lp=(...i)=>i.filter((r,u,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===u).join(" ").trim(),nv=i=>{for(const r in i)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var sv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iv=Y.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:f="",children:m,iconNode:h,...x},v)=>Y.createElement("svg",{ref:v,...sv,width:r,height:r,stroke:i,strokeWidth:o?Number(u)*24/Number(r):u,className:lp("lucide",f),...!m&&!nv(x)&&{"aria-hidden":"true"},...x},[...h.map(([p,b])=>Y.createElement(p,b)),...Array.isArray(m)?m:[m]]));/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const at=(i,r)=>{const u=Y.forwardRef(({className:o,...f},m)=>Y.createElement(iv,{ref:m,iconNode:r,className:lp(`lucide-${lv(Ah(i))}`,`lucide-${i}`,o),...f}));return u.displayName=Ah(i),u};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cv=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],uc=at("arrow-up-right",cv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rv=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],uv=at("car",rv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ov=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fv=at("check",ov);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oc=at("chevron-down",dv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ma=at("chevron-left",mv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Oa=at("chevron-right",hv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pv=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],xv=at("copy",pv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],vv=at("external-link",gv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bv=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],yv=at("instagram",bv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jv=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],ap=at("mail",jv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nv=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Rs=at("map-pin",Nv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sv=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],np=at("menu",Sv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zv=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Fu=at("message-circle",zv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ev=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Lu=at("navigation",Ev);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Av=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Jt=at("phone",Av);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tv=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],_v=at("play",Tv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wv=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],Cv=at("utensils",wv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],sp=at("x",Mv);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ov=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Dv=at("youtube",Ov),ip=Y.createContext(null);function kv({payload:i,children:r}){return n.jsx(ip.Provider,{value:i,children:r})}function F(){const i=Y.useContext(ip);if(!i)throw new Error("SiteProvider 밖에서 useSite() 를 불렀습니다. payload 없이는 렌더할 수 없습니다.");return i}const zs={LODGING:1,CAFE:2,RESTAURANT:3,CLINIC:4},Uy={OWNER:1,CRAWL:3},Th={UNVERIFIED:1,VERIFIED:3,CORRECTED:4},Uv=[Th.VERIFIED,Th.CORRECTED];function cp(i){return Uv.includes(i)}const $t={YANOLJA:1,GOODCHOICE:2,NAVER_PLACE:3,INSTAGRAM:4,OFFICIAL_SITE:5,BLOG:6,ETC:99},Ry={PUBLISHED:3};function fc(i){return i.filter(r=>cp(r.status)&&r.value!=null&&r.value!=="")}function rp(i){const r=new Map;for(const u of fc(i))r.set(u.key,u);return r}function _a(i,r){const u=rp(i).get(r);return(u==null?void 0:u.value)??void 0}function dl(i,r){const u=rp(i).get(r);if(!(u!=null&&u.value))return;const o=u.type==="number"?Rv(u.value):u.value;return u.unit?`${o}${u.unit}`:o}function Rv(i){const r=Number(i.replace(/,/g,""));return Number.isFinite(r)?r.toLocaleString("ko-KR"):i}function Iu(i){return i.type!=="bool"?i.label:i.label.replace(/\s*(가능|여부)$/,"")||i.label}function Hv(i){return i.filter(r=>cp(r.status)&&r.question&&r.answer).sort((r,u)=>r.sortOrder-u.sortOrder)}function Lv(i){return i.map(r=>({...r,facts:fc(r.facts)})).sort((r,u)=>r.sortOrder-u.sortOrder)}const qv={songs:"title",daily:"title",course:"name",schedule:"name",people:"name",chronicle:"title",literature:"workTitle",postcard:"line",quiz:"question",planner:"name",itinerary:"name",video:"url",event:"title"};function Bv(i){const r=(i??"").trim();if(!r)return;const u=/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|shorts\/|embed\/|live\/)|youtu\.be\/)([A-Za-z0-9_-]{6,20})/.exec(r);return u==null?void 0:u[1]}function Yv(i){return/youtube\.com\/shorts\//.test((i??"").trim())}function Gv(i){return`https://i.ytimg.com/vi/${i}/hqdefault.jpg`}function Qv(i){return`https://www.youtube-nocookie.com/embed/${i}?autoplay=1&rel=0&modestbranding=1`}const nc={items:[],unverified:0,sourced:0};function Xv(i,r){var p,b;const u=y=>{const E=i.slice(0,Math.max(0,y)),T=E.split(`
`).length,N=y-E.lastIndexOf(`
`);return`${T}번째 줄 ${N}번째 글자`},o=(p=/Unexpected token '(.)'/.exec(r))==null?void 0:p[1],f=o==="}"||o==="]"?"닫는 괄호 바로 앞에 쉼표가 하나 더 있는지 보세요.":"그 앞의 쉼표·따옴표·괄호를 확인해 주세요.",m=/line (\d+) column (\d+)/.exec(r);if(m)return`${m[1]}번째 줄 ${m[2]}번째 글자에서 JSON 이 끊깁니다. ${f}`;const h=/position (\d+)/.exec(r);if(h)return`${u(Number(h[1]))}에서 JSON 이 끊깁니다. ${f}`;const x=(b=/\.\.\."([\s\S]*?)" is not valid JSON/.exec(r))==null?void 0:b[1],v=x?i.indexOf(x):-1;return v>=0?`${u(v+x.length)} 부근에서 JSON 이 끊깁니다. ${f}`:"JSON 이 아닙니다. ChatGPT 가 준 답에서 { 로 시작해 } 로 끝나는 부분만 붙여넣어 주세요."}function $v(i,r){const u=qv[i],o=(r??"").trim();if(!u||!o)return nc;let f;try{f=JSON.parse(o)}catch(y){return{...nc,error:Xv(o,y instanceof Error?y.message:"")}}if(typeof f!="object"||f===null||Array.isArray(f))return{...nc,error:"바깥이 { } 로 감싸인 JSON 이어야 합니다."};const m=f,h=typeof m.kind=="string"?m.kind:void 0,x=m.items;if(!Array.isArray(x))return{...nc,error:"items 배열이 없습니다. 프롬프트로 다시 만들어 주세요."};const v=x.filter(y=>typeof y=="object"&&y!==null&&!Array.isArray(y)&&typeof y[u]=="string"&&y[u].trim().length>0);let p=0,b=0;for(const y of v){const E=y;E.verified!=="확인"&&(p+=1),E.source&&typeof E.source=="object"&&(b+=1)}return{items:v,title:typeof m.title=="string"?m.title:void 0,subtitle:typeof m.subtitle=="string"?m.subtitle:void 0,linkUrl:typeof m.linkUrl=="string"&&/^https?:\/\//.test(m.linkUrl)?m.linkUrl:void 0,linkLabel:typeof m.linkLabel=="string"?m.linkLabel:void 0,kindMismatch:h&&h!==i?h:void 0,unverified:p,sourced:b}}const Vv=1260,Zv=60,Kv="10:00",wa=["봄","여름","가을","겨울"];function _h(i){const r=/^(\d{1,2}):(\d{2})$/.exec(i.trim());if(!r)return;const u=Number(r[1]),o=Number(r[2]);if(!(u>23||o>59))return u*60+o}function sc(i){const r=(i%1440+1440)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`}function up(i){const r=_h(i.startTime??"")??_h(Kv)??600,u=[];let o=r,f=0;for(const m of i.stops??[]){const h=Math.max(0,m.moveMinutes??0),x=Math.max(1,m.minutes??Zv),v=o+h;if(v+x>Vv){f+=1;continue}u.push({stop:m,time:sc(v),until:sc(v+x),move:h}),o=v+x}return{stops:u,from:sc(r),to:sc(o),totalMinutes:o-r,dropped:f}}function Jv(i=new Date){const r=i.getMonth()+1,u=Math.floor((r-3+12)%12/3),o=wa[u];return r%3===0&&i.getDate()<=15?[wa[(u+3)%4],o]:[o]}function Wv(i,r){const u=i==null?void 0:i.trim();if(!u)return!0;const o=wa.filter(f=>u.includes(f));return o.length===0?!0:o.some(f=>r.includes(f))}function Fv(i){var u;const r=[];for(const o of i){const f=(u=o.season)==null?void 0:u.trim();f&&!r.includes(f)&&r.push(f)}return r.sort((o,f)=>{const m=wa.indexOf(o),h=wa.indexOf(f);return(m<0?wa.length:m)-(h<0?wa.length:h)})}function Iv(i,r){const u=r?i.filter(o=>{var f;return((f=o.season)==null?void 0:f.trim())===r}):[...i];return u.sort((o,f)=>(o.rank??Number.MAX_SAFE_INTEGER)-(f.rank??Number.MAX_SAFE_INTEGER)),u.slice(0,3)}const op={[zs.LODGING]:{type:"HotelRoom",path:"rooms",label:"객실"},[zs.CAFE]:{type:"MenuItem",path:"menu",label:"메뉴"},[zs.RESTAURANT]:{type:"MenuItem",path:"menu",label:"메뉴"},[zs.CLINIC]:{type:"Product",path:"programs",label:"시술"}};function dc(i){return fc(i.facts).filter(r=>r.scope==="place").map(r=>({label:Iu(r),value:Pu(r,i.facts)})).filter(r=>r.value!=="")}function Pu(i,r){const u=dl(r,i.key);return u?i.type!=="bool"?u:/여부$/.test(i.label)?u==="true"?"있음":u==="false"?"없음":u:u==="true"?"가능":u==="false"?"불가":u:""}const Pv=new Set(["weekday_price","weekend_price","peak_price","price_range"]);function ll(i){const r=op[i.place.category],u=new Map(i.media.map(o=>[o.mediaId,o]));return Lv(i.units).map(o=>{const f=dl(o.facts,"room_intro")??dl(o.facts,"description"),m=i.place.category===zs.LODGING?["standard_capacity","max_capacity","bed_type","room_size"]:["price","volume","origin"];return{unitId:o.unitId,slug:o.slug,name:o.name,intro:f,chips:m.map(h=>{var p;const x=dl(o.facts,h),v=((p=o.facts.find(b=>b.key===h))==null?void 0:p.label)??h;return x?{label:v,value:x}:null}).filter(h=>h!==null),rows:o.facts.filter(h=>!Pv.has(h.key)).map(h=>({label:Iu(h),value:Pu(h,o.facts)})).filter(h=>h.value!==""),images:o.mediaIds.map(h=>u.get(h)).filter(h=>{var x;return!!((x=h==null?void 0:h.alt)!=null&&x.trim())}),priceText:e0(o),prices:l0(o),href:`/${r.path}/${o.slug}`}})}function e0(i){var m,h;const r=dl(i.facts,"price_range");if(r)return r;const u=Number((m=dl(i.facts,"weekday_price"))==null?void 0:m.replace(/[^0-9]/g,"")),o=Number((h=dl(i.facts,"price"))==null?void 0:h.replace(/[^0-9]/g,"")),f=Number.isFinite(u)&&u>0?u:o;if(!(!Number.isFinite(f)||f<=0))return`${f.toLocaleString("ko-KR")}원부터`}const t0=[["weekday_price","주중"],["weekend_price","주말"],["peak_price","성수기"]];function l0(i){return dl(i.fac Line truncated
.stay2-hero-slide { animation: stay2-hero-fade ${r}s ease-in-out infinite; }
@keyframes stay2-hero-fade {
0% { opacity: 1; }
${u(cc)} { opacity: 1; }
${u(cc+$u)} { opacity: 0; }
${u(r-$u)} { opacity: 0; }
100% { opacity: 1; }
}`}
.stay2-hero-focus { animation: stay2-hero-focus 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes stay2-hero-focus {
0% { opacity: 0; filter: blur(0.22em); }
40% { opacity: 1; }
100% { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
.stay2-hero-slide, .stay2-hero-focus { animation: none; }
}
`}function T0(i,r){return((r-i)%r*cc+$u).toFixed(1)}function _0(){const i=F(),{place:r,narrative:u}=i,o=dt(i),f=et(i)[0],m=u.tagline??u.heroSubline,h=[...i.media].filter(p=>{var b;return(b=p.alt)==null?void 0:b.trim()}).sort((p,b)=>Number(b.isPrimary)-Number(p.isPrimary)),x=h.length<2?0:Math.min(h.length,E0),v=f?{href:f.url,label:`${Pe(f)}에서 예약`,external:!0}:r.phone?{href:`tel:${r.phone}`,label:`${r.phone} 예약 문의`,external:!1}:i.units.length>0?{href:"#units",label:`${o.label} 보기`,external:!1}:null;return n.jsxs("section",{id:"top",className:"w-full",children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:A0(x)}}),n.jsxs("div",{className:"relative flex w-full items-center justify-center overflow-hidden",style:{backgroundColor:"var(--tpl-inverse, #1c1917)",color:"var(--tpl-bg, #ffffff)",height:"100svh"},children:[h.map((p,b)=>n.jsx("img",{src:p.url,alt:p.alt,fetchPriority:b===0?"high":b<x?"auto":"low",loading:b<Math.max(x,1)?void 0:"lazy",decoding:"async",width:p.width,height:p.height,className:`absolute inset-0 size-full object-cover object-center ${b<x?"stay2-hero-slide":""}`,style:{opacity:b===0?1:0,animationDelay:b<x?`-${T0(b,x)}s`:void 0}},p.mediaId)),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 16%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 14%, transparent) 40%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 34%, transparent) 100%)"}}),n.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-48",style:{background:"linear-gradient(to bottom, color-mix(in srgb, var(--tpl-inverse, #1c1917) 68%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 40%, transparent) 45%, transparent 100%)"}}),n.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(ellipse 58% 42% at 50% 52%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 38%, transparent) 0%, color-mix(in srgb, var(--tpl-inverse, #1c1917) 18%, transparent) 55%, transparent 78%)"}}),n.jsxs("div",{className:"shell relative z-10 flex flex-col items-center pt-20 text-center",style:{textShadow:"0 1px 3px color-mix(in srgb, var(--tpl-inverse, #1c1917) 55%, transparent)"},children:[n.jsx("h1",{className:"stay2-hero-focus serif",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.06em",lineHeight:1.25,animationDelay:"0.05s"},children:r.name}),m&&n.jsx("p",{className:"stay2-hero-focus measure mt-6 text-[length:var(--fs-lead)] font-light leading-loose opacity-95",style:{animationDelay:"0.3s"},children:m}),v&&n.jsx("a",{href:v.href,...v.external?{target:"_blank",rel:"noopener noreferrer"}:{},className:"stay2-hero-focus tap mt-10 inline-flex items-center justify-center border border-current/70 px-9 text-[length:var(--fs-sm)] font-light tracking-[0.14em] transition-colors hover:border-current",style:{animationDelay:"0.55s",backgroundColor:"color-mix(in srgb, var(--tpl-inverse, #1c1917) 22%, transparent)",boxShadow:"0 1px 6px color-mix(in srgb, var(--tpl-inverse, #1c1917) 30%, transparent)"},children:v.label})]})]})]})}function w0(){const i=F(),{place:r,narrative:u}=i,o=mc(i),f=Sn(i),m=et(i),h=Da(i),x=h.length>0?h:dc(i).slice(0,4),v=(o==null?void 0:o.caption)??r.name;return n.jsxs("section",{id:"top","data-oasi":!0,"aria-labelledby":"top-heading",className:"pt-12 lg:pt-16",children:[n.jsx("h1",{id:"top-heading",className:"text-[length:var(--fs-sm)] font-normal tracking-[0.08em] leading-[1.9]",children:r.name}),u.heroHeadline&&n.jsx("p",{className:"text-muted measure mt-3 text-[length:var(--fs-xs)] leading-[1.9]",children:u.heroHeadline}),o&&n.jsxs("figure",{className:"relative mx-auto mt-10 w-full max-w-[34rem]",children:[n.jsx("img",{src:o.url,alt:o.alt,fetchPriority:"high",decoding:"async",width:o.width,height:o.height,className:"block h-[clamp(17rem,27vw,24rem)] w-full object-cover"}),n.jsx("figcaption",{className:"text-muted absolute left-full top-0 ml-5 hidden max-h-full overflow-hidden text-ellipsis whitespace-nowrap text-[length:var(--fs-xs)] tracking-[0.14em] xl:block",style:{writingMode:"vertical-rl"},children:v})]}),(f||x.length>0)&&n.jsxs("dl",{className:"border-line mt-10 flex flex-wrap gap-x-10 gap-y-4 border-t pt-5 text-[length:var(--fs-xs)] leading-[1.9]",children:[f&&n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:"최저가"}),n.jsx("dd",{children:f})]}),x.map(p=>n.jsxs("div",{children:[n.jsx("dt",{className:"text-muted",children:p.label}),n.jsx("dd",{children:p.value})]},p.label))]}),m.length>0&&n.jsx("ul",{className:"mt-6 flex flex-wrap items-center gap-x-8",children:m.map(p=>n.jsx("li",{children:n.jsxs("a",{href:p.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:[Pe(p)," 예약"]})},p.url))})]})}function C0(){const i=F(),r=eo(i),u=mc(i),o=u&&r.some(f=>f.mediaId= Line truncated
.oasi-page main > section:not([data-oasi]) {
background-color: transparent !important;
background-image: none !important;
border-color: transparent !important;
color: var(--tpl-text) !important;
padding-block: var(--oasi-gap) 0 !important;
}
.oasi-page main > section:not([data-oasi]) .shell {
max-width: none;
padding-inline: 0;
}
.oasi-page main > section#about > .shell > .grid {
display: block;
}
.oasi-page main > section#about > .shell > .grid > * + * {
margin-top: 2.5rem;
}
.oasi-page main > section#summary dl {
grid-template-columns: minmax(0, 1fr);
}
/*
* 붙여넣기 아이템 카드 — 소식 · 영상 · 추천 일정 (2026-09-04, 사장님: "1,2,3안 다 맞추세요")
*
* ★ 이 카드들은 .panel 이 아니라 제 인라인 style 로 면을 그린다(items/common.tsx 의
* ITEM_CARD·ITEM_BORDER). 그래서 위 .panel 규칙이 안 닿았고, 섹션 띠를 다 지운 3안에서
* **소식 카드만 갱지 결에 2px 테두리를 두른 상자로 혼자 서 있었다.**
* ★ w4-paper 의 결은 1안(레트로 갱지)의 것이다. 여기서는 결을 지우고 테두리를 실선 한 겹으로
* 낮춘다. 상자를 아예 없애지는 않는다 — 전단 여섯 장이 경계 없이 붙으면 어디까지가 한 장인지
* 안 보인다. 면은 빼고 테두리만 남기는 게 이 안의 타협점이다.
* ★ 배경은 transparent 로 두지 않는다. 사진 없는 공지 카드가 종이에 바로 얹히면
* 본문과 구분이 사라진다 — 아주 옅은 틴트 한 겹만 남긴다.
* ★ 영상은 뺐다 (2026-09-04, 사장님: "영상 border 안 예쁘다")
* 영상 카드는 상자가 아니라 **표지 사진 한 장**이고, 쇼츠라 9:16 세로다. li 에 틴트를 깔면
* 영상보다 넓은 회색 판이 뒤에 깔려 액자처럼 보인다. 사진은 제 테두리가 곧 경계다.
*/
.oasi-page section#event li,
.oasi-page section#itinerary article {
background-image: none !important;
background-color: color-mix(in oklab, currentcolor 3%, transparent) !important;
border-width: 1px !important;
box-shadow: none !important;
}
.oasi-page .panel,
.oasi-page .panel-sunken {
background-color: transparent;
border-width: 0;
border-radius: 0;
box-shadow: none;
}
.oasi-page main > section#faq > .shell > div:last-of-type {
row-gap: 0;
column-gap: 2.5rem;
}
.oasi-page main > section#faq details {
margin-block: 0;
border-top: 1px solid var(--color-line);
}
.oasi-page main > section#faq summary {
padding-inline: 0;
}
.oasi-page main > section#faq summary > span:first-child {
width: 1.125rem;
}
.oasi-page main > section#faq summary + div {
border-top-width: 0;
padding-inline: 1.875rem 0;
padding-top: 0.5rem;
}
.oasi-page main > section#info dl.panel > div {
padding-inline: 0;
}
.oasi-page main > section#info dl > div.panel {
border-top: 1px solid var(--color-line);
padding-inline: 0;
}
.oasi-page main > section#location .panel {
border-top: 1px solid var(--color-line);
padding-inline: 0;
}
.oasi-page main > section#location :is(thead, tbody) :is(th, td):first-child {
padding-left: 0;
}
.oasi-page main > section#location :is(thead, tbody) :is(th, td):last-child {
padding-right: 0;
}
.oasi-page main > section#weather .panel {
padding-inline: 0;
}
.oasi-page main > section#guide .panel > span:last-child {
padding-inline: 0;
}
@media (min-width: 40rem) {
.oasi-page main > section#festival .panel > span:last-child {
padding-inline: 0;
}
}
`,Ey={"--oasi-gap":"clamp(3.5rem, 7vw, var(--tpl-section-space, 4rem))",backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"};function Ay({children:i}){var b,y,E,T;const r=F(),{place:u}=r,o=dt(r),f=et(r)[0],m=Ls(r),h=[{label:"처음",href:"#top",show:!0},{label:"소개",href:"#about",show:Kt(r,"intro")},{label:o.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Kt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(N=>N.show),x=[...Da(r).map(N=>`${N.label} ${N.value}`),...r.theme.sections.filter(N=>{var _;return N.enabled&&((_=N.name)==null?void 0:_.trim())}).map(N=>N.name.trim())].slice(0,3),v=r.narrative.tagline??r.narrative.heroSubline,p=u.roadAddress??u.address;return n.jsxs("div",{className:"oasi-page flex min-h-screen w-full flex-col",style:Ey,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:zy}}),n.jsxs("div",{className:"mx-auto flex w-full max-w-[72rem] flex-col gap-10 px-5 pb-16 pt-10 lg:flex-row lg:gap-14 lg:px-10 lg:pb-24 lg:pt-16",children:[n.jsxs("header",{className:"lg:sticky lg:top-12 lg:h-fit lg:w-[18.75rem] lg:shrink-0",children:[n.jsxs("a",{href:"#top",className:"block",children:[n.jsx("span",{className:"serif block leading-none",style:{fontSize:"var(--fs-display)",fontWeight:300,letterSpacing:"0.14em"},children:u.name}),u.englishName&&n.jsx("span",{className:"text-muted mt-3 block text-[length:var(--fs-xs)] tracking-[0.24em]",children:u.englishName})]}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"mt-12 lg:mt-24",children:n.jsx("ul",{className:"flex flex-wrap items-center gap-x-6 gap-y-1 lg:block",children:h.map((N,_)=>n.jsx("li",{children:n.jsx("a",{href:N.href,"aria-current":_===0?"true":void 0,className:`tap inline-flex items-center text-[length:var(--fs-sm)] transition-opacity hover:opacity-100 ${_===0?"":"text-muted"}`,children:N.label})},N.label))})}),f&&n.jsxs("a",{href:f.url,target:"_blank",rel:"noopener noreferrer",className:"tap mt-2 inline-flex items-center text-[length:var(--fs-sm)] underline underline-offset-[6px]",style:{color:"var(--color-brand)"},children:[Pe(f)," 예약"]})]}),n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(x.length>0||v)&&n.jsxs("div",{className:"border-line flex flex-col gap-3 border-y py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[x.length>0&&n.jsx("ul",{className:"text-muted flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 text-[length:var(--fs-xs)]",children:x.map((N,_)=>n.jsxs("li",{className:"flex items-center gap-4",children:[_>0&&n.jsx("span",{"aria-hidden":!0,className:"opacity-40",children:"|"}),n.jsx("span",{children:N})]},N))}),v&&n.jsx("p",{className:"text-muted measure shrink-0 text-[length:var(--fs-xs)] leading-[1.9] sm:max-w-[18rem] sm:text-right",children:v})]}),i]})]}),n.jsx("footer",{className:"border-line mt-auto w-full border-t",children:n.jsxs("div",{className:"mx-auto grid w-full max-w-[72rem] grid-cols-1 gap-8 px-5 pb-28 pt-10 text-[length:var(--fs-xs)] leading-[1.9] sm:grid-cols-3 lg:px-10 lg:pb-14",children:[n.jsxs("p",{children:["[",u.name,"]"]}),m.length>0?n.jsx("ul",{className:"space-y-1",children:m.map(N=>n.jsx("li",{children:n.jsx("a",{href:N.url,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-[5px]",children:Pe(N)})},N.url))}):n.jsx("span",{}),n.jsxs("div",{className:"text-muted space-y-1 sm:text-right",children:[p&&n.jsx("p",{children:p}),u.phone&&n.jsx("p",{children:n.jsx("a",{href:`tel:${u.phone}`,className:"underline underline-offset-[5px]",children:u.phone})}),u.email&&n.jsx("p",{children:u.email}),((b=u.legal)==null?void 0:b.representative)&&n.jsxs("p",{children:["대표 ",u.legal.representative]}),((y=u.legal)==null?void 0:y.businessRegistrationNumber)&&n.jsxs("p",{children:["사업자등록번호 ",u.legal.businessRegistrationNumber]}),((E=u.legal)==null?void 0:E.mailOrderNumber)&&n.jsxs("p",{children:["통신판매업신고 ",u.legal.mailOrderNumber]}),((T=u.legal)==null?void 0:T.licenseNumber)&&n.jsxs("p",{children:[u.legal.licenseLabel??"인허가번호"," ",u.legal.licenseNumber]}),n.jsxs("p",{className:"byline",children:[n.jsxs("span",{className:"author",children:["작성·운영 ",u.name]})," · 최종 업데이트: ",n.jsx("time",{dateTime:r.site.updatedAt,children:qs(r.site.updatedAt)})]})]})]})}),n.jsx(zn,{})]})}function Ty({children:i}){var E,T,N,_;const r=F(),{place:u,narrative:o,site:f}=r,m=dt(r),h=Sn(r),x=Da(r),v=et(r)[0],p=r.links.filter(U=>U.confirmed),b=u.roadAddress??u.address,y=[{label:"소개",href:"#about",show:Kt(r,"intro")},{label:m.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변 정보",href:"#guide",show:Kt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"자주 묻는 질문",href:"#faq",show:r.faqs.length>0}].filter(U=>U.show);return n.jsxs("div",{className:"flex min-h Line truncated
.pastel-page > main > section:not([data-pastel]) {
border-color: transparent;
background-image: none;
color: var(--pastel-ink) !important;
}
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+1) { background-color: var(--pastel-1) !important; }
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+2) { background-color: var(--pastel-soft) !important; }
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n+3) { background-color: var(--pastel-2) !important; }
.pastel-page > main > section:not([data-pastel]):nth-of-type(4n) { background-color: var(--pastel-3) !important; }
`,wy={"--pastel-1":"var(--tpl-card)","--pastel-2":"var(--tpl-accent)","--pastel-3":"var(--tpl-secondary)","--pastel-soft":"var(--tpl-bg)","--pastel-ink":"var(--tpl-text)","--section-space":"clamp(2.75rem, 8vw, calc(var(--tpl-section-space, 4rem) * 1.4))",backgroundColor:"var(--pastel-soft)",color:"var(--pastel-ink)"};function Cy({children:i}){const r=F(),u=dt(r),o=Ls(r),f=[{label:"소개",href:"#about",show:Kt(r,"intro")},{label:u.label,href:"#units",show:r.units.length>0},{label:"이용 정보",href:"#info",show:!0},{label:"주변",href:"#guide",show:Kt(r,"local")},{label:"오시는 길",href:"#location",show:!0},{label:"FAQ",href:"#faq",show:r.faqs.length>0}].filter(m=>m.show);return n.jsxs("div",{className:"pastel-page flex min-h-screen w-full flex-col",style:wy,children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:_y}}),n.jsx("header",{className:"sticky top-0 z-40 w-full",style:{backgroundColor:"color-mix(in srgb, var(--tpl-surface, #fff) 92%, transparent)"},children:n.jsxs("div",{className:"shell flex h-16 items-center justify-between gap-3",children:[n.jsx("a",{href:"#top",className:"flex min-w-0 items-center gap-2",children:n.jsx("span",{className:"serif truncate italic",style:{fontSize:"var(--fs-lead)",fontWeight:800,display:"inline-block",transform:"rotate(-1.5deg)"},children:r.place.name})}),n.jsx("nav",{"aria-label":"주요 메뉴",className:"hidden items-center gap-8 lg:flex",children:f.map(m=>n.jsx("a",{href:m.href,className:"py-1 text-[length:var(--fs-xs)] font-bold tracking-[0.2em] opacity-70 transition-opacity hover:opacity-100",children:m.label},m.label))}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[r.place.phone&&n.jsx("a",{href:`tel:${r.place.phone}`,"aria-label":"전화",className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-1)"},children:n.jsx(Jt,{className:"size-4"})}),o.map(m=>n.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer","aria-label":Rl(m),className:"tap flex items-center justify-center rounded-full",style:{backgroundColor:"var(--pastel-2)"},children:/instagram/i.test(m.url)?n.jsx(yv,{className:"size-4"}):n.jsx(Fu,{className:"size-4"})},m.url)),n.jsxs("details",{className:"relative lg:hidden",children:[n.jsx("summary",{className:"tap flex cursor-pointer items-center justify-center rounded-full marker:content-none [&::-webkit-details-marker]:hidden","aria-label":"메뉴 열기",children:n.jsx(np,{className:"size-5"})}),n.jsx("nav",{"aria-label":"전체 메뉴",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-48 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--tpl-surface, #fff)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.12)"},children:n.jsx("ul",{children:f.map(m=>n.jsx("li",{children:n.jsx("a",{href:m.href,className:"tap flex items-center px-4 text-[length:var(--fs-sm)] font-bold tracking-[0.08em]",children:m.label})},m.label))})})]})]})]})}),i,n.jsx("div",{style:{"--tpl-inverse":"var(--pastel-3)","--tpl-bg":"var(--pastel-ink)"},children:n.jsx(Np,{})}),n.jsx(zn,{})]})}function My({children:i}){var p,b,y,E;const r=F(),{place:u,site:o}=r,f=hp(),m=Oy(f),h=et(r)[0],x=r.links.filter(T=>T.confirmed),v=u.roadAddress??u.address;return n.jsxs("div",{className:"flex min-h-screen w-full flex-col",style:{backgroundColor:"var(--tpl-bg)",color:"var(--tpl-text)"},children:[n.jsx("header",{className:"sticky top-0 z-40 w-full border-b-2 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--tpl-bg) 90%, transparent)",borderColor:"var(--tpl-text)"},children:n.jsxs("div",{className:"flex h-14 items-center justify-between gap-4 px-4 sm:px-6 xl:px-8",children:[n.jsx("a",{href:"#top",className:"serif min-w-0 truncate text-[length:var(--fs-lead)] font-extrabold",children:u.name}),n.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-[length:var(--fs-sm)]",children:[u.phone&&n.jsx("a",{href:`tel:${u.phone}`,className:"tap inline-flex items-center underline underline-offset-4",children:u.phone}),h&&n.jsxs("a",{href:h.url,target:"_blank",rel:"noopener noreferrer",className:"tap inline-flex items-center font-bold underline underline-offset-4",children:[Pe(h)," 예약"]})]})]})}),n.jsxs("div",{className:"flex w-full flex-1",children:[f.length>0&&n.jsx("aside",{className:"border-line sticky top-14 hidden h-[calc(100vh-3.5rem)] w-44 shrink-0 self-start border-r xl:block",style:{backgroundImage:Ms},children:n.jsx("nav",{"aria-label":"차례",className:"flex h-full flex-col justify-center gap-0.5 py-8 pl-6 pr-3",children:f.map(T=>{const N=T.anchor===m;return n.jsxs("a",{href:`#${T.anchor}`,"aria-current":N?"true":void 0,className:"flex items-baseline gap-2 py-2 text-[length:var(--fs-sm)] leading-tight motion-safe:transition-opacity",style:{opacity:N?1:.35},children:[n.jsx("span",{className:"shrink-0 text-[length:var(--fs-xs)] font-bold tabular-nums",children:T.no}),n.jsx("span",{className:"truncate",style:{fontWeight:N?700:400},children:T.label})]},T.anchor)})})}),n.jsx("div",{className:"f Line truncated
@@ -0,0 +1 @@
.w4-sky{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden}.w4-sky[data-mood=비]:before{content:"";position:absolute;top:-20%;right:-10%;bottom:-20%;left:-10%;background-image:repeating-linear-gradient(102deg,transparent 0 9px,currentcolor 9px 10px,transparent 10px 22px);opacity:.13;animation:w4-rain .9s linear infinite}@keyframes w4-rain{to{transform:translate3d(-22px,108px,0)}}.w4-sky[data-mood=맑음]:before{content:"";position:absolute;right:6%;top:-40%;width:26rem;aspect-ratio:1;background-image:conic-gradient(from 0deg,currentcolor 0 2deg,transparent 2deg 30deg);opacity:.07;animation:w4-spin 70s linear infinite}.w4-sky[data-mood=맑음]:after{content:"";position:absolute;right:10%;top:-14%;width:15rem;aspect-ratio:1;border-radius:50%;background-image:radial-gradient(circle,currentcolor 0%,transparent 62%);opacity:.11;animation:w4-breathe 9s ease-in-out infinite}@keyframes w4-spin{to{transform:rotate(360deg)}}@keyframes w4-breathe{50%{opacity:.2}}.w4-sky[data-mood=흐림]:before,.w4-sky[data-mood=흐림]:after{content:"";position:absolute;top:-30%;right:-60%;bottom:-30%;left:-60%;background-image:radial-gradient(ellipse 22% 46% at 18% 42%,currentcolor 0%,transparent 70%),radial-gradient(ellipse 30% 40% at 62% 30%,currentcolor 0%,transparent 72%);opacity:.08;animation:w4-drift 44s linear infinite}.w4-sky[data-mood=흐림]:after{opacity:.05;animation-duration:78s;animation-direction:reverse}@keyframes w4-drift{to{transform:translate3d(28%,0,0)}}.w4-sky[data-mood=눈]:before{content:"";position:absolute;top:-20%;right:0;bottom:-20%;left:0;background-image:radial-gradient(circle at 12% 10%,currentcolor 1.4px,transparent 1.8px),radial-gradient(circle at 47% 34%,currentcolor 1.1px,transparent 1.5px),radial-gradient(circle at 78% 18%,currentcolor 1.6px,transparent 2px);background-size:9rem 9rem;opacity:.22;animation:w4-snow 14s linear infinite}@keyframes w4-snow{to{transform:translate3d(-2rem,9rem,0)}}@media(prefers-reduced-motion:reduce){.w4-sky:before,.w4-sky:after{animation:none!important}}.w4-paper{background-image:repeating-linear-gradient(0deg,color-mix(in oklab,currentcolor 4%,transparent) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,color-mix(in oklab,currentcolor 3%,transparent) 0 1px,transparent 1px 4px)}.w4-disc{background:radial-gradient(circle at 50% 50%,transparent 0 15.5%,var(--lbl) 15.5% 33%,transparent 33%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.4px,var(--w4-vinyl) 1.4px 3px),var(--w4-vinyl);box-shadow:inset 0 0 40px #0000008c}.w4-disc-sheen{background:conic-gradient(from 210deg,rgb(255 255 255 / 12%),transparent 22%,transparent 70%,rgb(255 255 255 / 7%))}.w4-spin{animation:w4-rev 2.2s linear infinite}@keyframes w4-rev{to{transform:rotate(360deg)}}.w4-disc-mini{background:radial-gradient(circle at 50% 50%,transparent 0 14%,var(--lbl) 14% 34%,transparent 34%),repeating-radial-gradient(circle at 50% 50%,color-mix(in oklab,var(--w4-vinyl) 88%,white) 0 1.2px,var(--w4-vinyl) 1.2px 2.6px),var(--w4-vinyl);box-shadow:0 3px 10px #00000059}.w4-perf{background:repeating-linear-gradient(90deg,transparent 0 8px,var(--tear) 8px 9px)}.w4-dash{border-top:1px dashed currentcolor}.w4-film-perf{background:repeating-linear-gradient(90deg,currentcolor 0 9px,transparent 9px 21px)}.w4-flip{perspective:900px}.w4-flip-inner{transform-style:preserve-3d;transition:transform .5s}.w4-flip-on .w4-flip-inner{transform:rotateY(180deg)}.w4-flip-face{backface-visibility:hidden}.w4-flip-back{transform:rotateY(180deg)}.w4-scroll{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.w4-scroll::-webkit-scrollbar{display:none}.w4-scroll[data-slider=on]{overflow-x:hidden;scroll-snap-type:none}.w4-scroll[data-dragging=true]{cursor:grabbing;-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.w4-spin{animation:none}.w4-flip-inner{transition:none}}@media print{.w4-flip,.w4-flip-inner{height:auto!important;transform:none!important}.w4-flip-face{position:static!important;backface-visibility:visible!important;transform:none!important}}/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initLine truncated
-37
View File
@@ -1,37 +0,0 @@
import {chromium} from 'playwright';
const b = await chromium.launch({channel: 'chrome'});
const page = await b.newPage({viewport: {width: 1280, height: 900}});
const logs = [];
page.on('console', (m) => { if (m.text().includes('[w4d]') || m.type() === 'error') logs.push(`${m.type()}: ${m.text().slice(0,110)}`); });
await page.goto('http://localhost/s/stay', {waitUntil: 'domcontentloaded'});
await page.waitForTimeout(6000);
const r = await page.evaluate(() => {
const txt = (el) => (el?.textContent || '').trim();
const songTitles = [...document.querySelectorAll('#songs .w4d-t, #songs button span')].map(txt).filter(Boolean);
return {
mini: !!document.getElementById('w4d-mini'),
tape: !!document.getElementById('w4d-tape'),
miniBtns: document.querySelectorAll('#w4d-mini button').length,
songsCount: document.querySelectorAll('#songs button[aria-pressed]').length,
songsHasOwn: document.body.innerHTML.includes('머뭄의 아침') && !!document.querySelector('#songs'),
ownInSection: [...document.querySelectorAll('#songs')].some((s) => s.textContent.includes('Stay in 머뭄')),
people: document.querySelectorAll('#people article').length,
itinLinks: document.querySelectorAll('#itinerary a.w4d-link').length,
postcardLinks: document.querySelectorAll('#postcard a.w4d-link').length,
itinImgs: document.querySelectorAll('#itinerary img:not([src*="openstreetmap"])').length,
firstStops: [...document.querySelectorAll('#itinerary article')].slice(0, 6).map((a) => txt(a.querySelector('ol li span'))),
bbq: document.body.textContent.includes('바비큐'),
redRule: document.querySelectorAll('.w4d-rule').length,
};
});
console.log(JSON.stringify(r, null, 1));
const sample = await page.evaluate(() => {
const a = document.querySelector('#itinerary a.w4d-link');
const p = document.querySelector('#postcard a.w4d-link');
return {itin: a?.getAttribute('href'), postcard: p?.getAttribute('href')};
});
console.log('링크 샘플', JSON.stringify(sample));
console.log(logs.join('\n'));
await page.screenshot({path: '/tmp/v-itin.png', clip: {x: 0, y: 0, width: 1280, height: 900}});
await b.close();