vimalk78 commited on
Commit
1c72dce
·
1 Parent(s): d9a16d6

displays crossword well

Browse files

Signed-off-by: Vimal Kumar <vimal78@gmail.com>

crossword-app/backend/data/word-lists/animals.json CHANGED
@@ -23,5 +23,143 @@
23
  { "word": "PENGUIN", "clue": "Flightless Antarctic bird" },
24
  { "word": "MONKEY", "clue": "Primate that swings in trees" },
25
  { "word": "ZEBRA", "clue": "Striped African animal" },
26
- { "word": "GIRAFFE", "clue": "Tallest land animal" }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ]
 
23
  { "word": "PENGUIN", "clue": "Flightless Antarctic bird" },
24
  { "word": "MONKEY", "clue": "Primate that swings in trees" },
25
  { "word": "ZEBRA", "clue": "Striped African animal" },
26
+ { "word": "GIRAFFE", "clue": "Tallest land animal" },
27
+ { "word": "WOLF", "clue": "Wild canine that howls" },
28
+ { "word": "FOX", "clue": "Cunning red-furred animal" },
29
+ { "word": "DEER", "clue": "Graceful forest animal with antlers" },
30
+ { "word": "MOOSE", "clue": "Large antlered animal" },
31
+ { "word": "SQUIRREL", "clue": "Tree-climbing nut gatherer" },
32
+ { "word": "RACCOON", "clue": "Masked nocturnal animal" },
33
+ { "word": "BEAVER", "clue": "Dam-building rodent" },
34
+ { "word": "OTTER", "clue": "Playful water mammal" },
35
+ { "word": "SEAL", "clue": "Marine mammal with flippers" },
36
+ { "word": "WALRUS", "clue": "Tusked Arctic marine mammal" },
37
+ { "word": "RHINO", "clue": "Horned thick-skinned mammal" },
38
+ { "word": "HIPPO", "clue": "Large African river mammal" },
39
+ { "word": "CHEETAH", "clue": "Fastest land animal" },
40
+ { "word": "LEOPARD", "clue": "Spotted big cat" },
41
+ { "word": "JAGUAR", "clue": "South American big cat" },
42
+ { "word": "PUMA", "clue": "Mountain lion" },
43
+ { "word": "LYNX", "clue": "Wild cat with tufted ears" },
44
+ { "word": "KANGAROO", "clue": "Hopping Australian marsupial" },
45
+ { "word": "KOALA", "clue": "Eucalyptus-eating marsupial" },
46
+ { "word": "PANDA", "clue": "Black and white bamboo eater" },
47
+ { "word": "SLOTH", "clue": "Slow-moving tree dweller" },
48
+ { "word": "ARMADILLO", "clue": "Armored mammal" },
49
+ { "word": "ANTEATER", "clue": "Long-snouted insect eater" },
50
+ { "word": "PLATYPUS", "clue": "Egg-laying mammal with a bill" },
51
+ { "word": "BAT", "clue": "Flying mammal" },
52
+ { "word": "MOLE", "clue": "Underground tunnel digger" },
53
+ { "word": "HEDGEHOG", "clue": "Spiny small mammal" },
54
+ { "word": "PORCUPINE", "clue": "Quill-covered rodent" },
55
+ { "word": "SKUNK", "clue": "Black and white scent-spraying mammal" },
56
+ { "word": "WEASEL", "clue": "Small carnivorous mammal" },
57
+ { "word": "BADGER", "clue": "Burrowing black and white mammal" },
58
+ { "word": "FERRET", "clue": "Domesticated hunting animal" },
59
+ { "word": "MINK", "clue": "Valuable fur-bearing animal" },
60
+ { "word": "EAGLE", "clue": "Majestic bird of prey" },
61
+ { "word": "HAWK", "clue": "Sharp-eyed hunting bird" },
62
+ { "word": "OWL", "clue": "Nocturnal bird with large eyes" },
63
+ { "word": "FALCON", "clue": "Fast diving bird of prey" },
64
+ { "word": "VULTURE", "clue": "Scavenging bird" },
65
+ { "word": "CROW", "clue": "Black intelligent bird" },
66
+ { "word": "RAVEN", "clue": "Large black corvid" },
67
+ { "word": "ROBIN", "clue": "Red-breasted songbird" },
68
+ { "word": "SPARROW", "clue": "Small brown songbird" },
69
+ { "word": "CARDINAL", "clue": "Bright red songbird" },
70
+ { "word": "BLUEJAY", "clue": "Blue crested bird" },
71
+ { "word": "WOODPECKER", "clue": "Tree-pecking bird" },
72
+ { "word": "HUMMINGBIRD", "clue": "Tiny fast-flying bird" },
73
+ { "word": "PELICAN", "clue": "Large-billed water bird" },
74
+ { "word": "FLAMINGO", "clue": "Pink wading bird" },
75
+ { "word": "STORK", "clue": "Long-legged wading bird" },
76
+ { "word": "HERON", "clue": "Tall fishing bird" },
77
+ { "word": "CRANE", "clue": "Large wading bird" },
78
+ { "word": "SWAN", "clue": "Elegant white water bird" },
79
+ { "word": "GOOSE", "clue": "Large waterfowl" },
80
+ { "word": "TURKEY", "clue": "Large ground bird" },
81
+ { "word": "PHEASANT", "clue": "Colorful game bird" },
82
+ { "word": "QUAIL", "clue": "Small ground bird" },
83
+ { "word": "PEACOCK", "clue": "Bird with spectacular tail feathers" },
84
+ { "word": "OSTRICH", "clue": "Largest flightless bird" },
85
+ { "word": "EMU", "clue": "Australian flightless bird" },
86
+ { "word": "KIWI", "clue": "Small flightless New Zealand bird" },
87
+ { "word": "PARROT", "clue": "Colorful talking bird" },
88
+ { "word": "TOUCAN", "clue": "Large-billed tropical bird" },
89
+ { "word": "MACAW", "clue": "Large colorful parrot" },
90
+ { "word": "COCKATOO", "clue": "Crested parrot" },
91
+ { "word": "CANARY", "clue": "Yellow singing bird" },
92
+ { "word": "FINCH", "clue": "Small seed-eating bird" },
93
+ { "word": "PIGEON", "clue": "Common city bird" },
94
+ { "word": "DOVE", "clue": "Symbol of peace" },
95
+ { "word": "SEAGULL", "clue": "Coastal scavenging bird" },
96
+ { "word": "ALBATROSS", "clue": "Large ocean bird" },
97
+ { "word": "PUFFIN", "clue": "Colorful-billed seabird" },
98
+ { "word": "LIZARD", "clue": "Small scaly reptile" },
99
+ { "word": "IGUANA", "clue": "Large tropical lizard" },
100
+ { "word": "GECKO", "clue": "Wall-climbing lizard" },
101
+ { "word": "CHAMELEON", "clue": "Color-changing reptile" },
102
+ { "word": "ALLIGATOR", "clue": "Large American crocodilian" },
103
+ { "word": "CROCODILE", "clue": "Large aquatic reptile" },
104
+ { "word": "PYTHON", "clue": "Large constricting snake" },
105
+ { "word": "COBRA", "clue": "Venomous hooded snake" },
106
+ { "word": "VIPER", "clue": "Poisonous snake" },
107
+ { "word": "RATTLESNAKE", "clue": "Snake with warning tail" },
108
+ { "word": "SALAMANDER", "clue": "Amphibian that can regrow limbs" },
109
+ { "word": "NEWT", "clue": "Small aquatic salamander" },
110
+ { "word": "TOAD", "clue": "Warty amphibian" },
111
+ { "word": "TADPOLE", "clue": "Frog larva" },
112
+ { "word": "SALMON", "clue": "Fish that swims upstream" },
113
+ { "word": "TROUT", "clue": "Freshwater game fish" },
114
+ { "word": "BASS", "clue": "Popular sport fish" },
115
+ { "word": "TUNA", "clue": "Large ocean fish" },
116
+ { "word": "SWORDFISH", "clue": "Fish with long pointed bill" },
117
+ { "word": "MARLIN", "clue": "Large billfish" },
118
+ { "word": "MANTA", "clue": "Large ray fish" },
119
+ { "word": "STINGRAY", "clue": "Flat fish with barbed tail" },
120
+ { "word": "EEL", "clue": "Snake-like fish" },
121
+ { "word": "SEAHORSE", "clue": "Horse-shaped fish" },
122
+ { "word": "ANGELFISH", "clue": "Colorful tropical fish" },
123
+ { "word": "GOLDFISH", "clue": "Common pet fish" },
124
+ { "word": "CLOWNFISH", "clue": "Orange and white anemone fish" },
125
+ { "word": "JELLYFISH", "clue": "Transparent stinging sea creature" },
126
+ { "word": "OCTOPUS", "clue": "Eight-armed sea creature" },
127
+ { "word": "SQUID", "clue": "Ten-armed cephalopod" },
128
+ { "word": "CRAB", "clue": "Sideways-walking crustacean" },
129
+ { "word": "LOBSTER", "clue": "Large marine crustacean" },
130
+ { "word": "SHRIMP", "clue": "Small crustacean" },
131
+ { "word": "STARFISH", "clue": "Five-armed sea creature" },
132
+ { "word": "URCHIN", "clue": "Spiny sea creature" },
133
+ { "word": "CORAL", "clue": "Marine organism that builds reefs" },
134
+ { "word": "SPONGE", "clue": "Simple marine animal" },
135
+ { "word": "OYSTER", "clue": "Pearl-producing mollusk" },
136
+ { "word": "CLAM", "clue": "Burrowing shellfish" },
137
+ { "word": "MUSSEL", "clue": "Dark-shelled mollusk" },
138
+ { "word": "SNAIL", "clue": "Spiral-shelled gastropod" },
139
+ { "word": "SLUG", "clue": "Shell-less gastropod" },
140
+ { "word": "WORM", "clue": "Segmented invertebrate" },
141
+ { "word": "SPIDER", "clue": "Eight-legged web spinner" },
142
+ { "word": "SCORPION", "clue": "Arachnid with stinging tail" },
143
+ { "word": "ANT", "clue": "Social insect worker" },
144
+ { "word": "BEE", "clue": "Honey-making insect" },
145
+ { "word": "WASP", "clue": "Stinging flying insect" },
146
+ { "word": "HORNET", "clue": "Large aggressive wasp" },
147
+ { "word": "FLY", "clue": "Common buzzing insect" },
148
+ { "word": "MOSQUITO", "clue": "Blood-sucking insect" },
149
+ { "word": "BEETLE", "clue": "Hard-shelled insect" },
150
+ { "word": "LADYBUG", "clue": "Red spotted beneficial insect" },
151
+ { "word": "DRAGONFLY", "clue": "Large-winged flying insect" },
152
+ { "word": "GRASSHOPPER", "clue": "Jumping green insect" },
153
+ { "word": "CRICKET", "clue": "Chirping insect" },
154
+ { "word": "MANTIS", "clue": "Praying insect predator" },
155
+ { "word": "MOTH", "clue": "Nocturnal butterfly relative" },
156
+ { "word": "CATERPILLAR", "clue": "Butterfly larva" },
157
+ { "word": "COCOON", "clue": "Insect transformation casing" },
158
+ { "word": "TERMITE", "clue": "Wood-eating social insect" },
159
+ { "word": "TICK", "clue": "Blood-sucking parasite" },
160
+ { "word": "FLEA", "clue": "Jumping parasite" },
161
+ { "word": "LOUSE", "clue": "Small parasitic insect" },
162
+ { "word": "APHID", "clue": "Plant-sucking insect" },
163
+ { "word": "MAGGOT", "clue": "Fly larva" },
164
+ { "word": "GRUB", "clue": "Beetle larva" }
165
  ]
crossword-app/backend/data/word-lists/geography.json CHANGED
@@ -28,5 +28,134 @@
28
  { "word": "BORDER", "clue": "Boundary between countries" },
29
  { "word": "COAST", "clue": "Land meeting the sea" },
30
  { "word": "STRAIT", "clue": "Narrow water passage" },
31
- { "word": "DELTA", "clue": "River mouth formation" }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ]
 
28
  { "word": "BORDER", "clue": "Boundary between countries" },
29
  { "word": "COAST", "clue": "Land meeting the sea" },
30
  { "word": "STRAIT", "clue": "Narrow water passage" },
31
+ { "word": "DELTA", "clue": "River mouth formation" },
32
+ { "word": "FJORD", "clue": "Narrow inlet between cliffs" },
33
+ { "word": "ATOLL", "clue": "Ring-shaped coral island" },
34
+ { "word": "MESA", "clue": "Flat-topped hill" },
35
+ { "word": "BUTTE", "clue": "Isolated hill with steep sides" },
36
+ { "word": "GORGE", "clue": "Deep narrow valley" },
37
+ { "word": "RAVINE", "clue": "Small narrow gorge" },
38
+ { "word": "RIDGE", "clue": "Long narrow hilltop" },
39
+ { "word": "PEAK", "clue": "Mountain summit" },
40
+ { "word": "SUMMIT", "clue": "Highest point" },
41
+ { "word": "FOOTHILLS", "clue": "Hills at base of mountains" },
42
+ { "word": "RANGE", "clue": "Chain of mountains" },
43
+ { "word": "BASIN", "clue": "Low-lying area" },
44
+ { "word": "WATERSHED", "clue": "Drainage area" },
45
+ { "word": "ESTUARY", "clue": "Where river meets sea" },
46
+ { "word": "BAY", "clue": "Curved inlet of water" },
47
+ { "word": "GULF", "clue": "Large bay" },
48
+ { "word": "CAPE", "clue": "Point of land into water" },
49
+ { "word": "HEADLAND", "clue": "High point of land" },
50
+ { "word": "LAGOON", "clue": "Shallow coastal body of water" },
51
+ { "word": "REEF", "clue": "Underwater rock formation" },
52
+ { "word": "SHOAL", "clue": "Shallow area in water" },
53
+ { "word": "CHANNEL", "clue": "Deep water passage" },
54
+ { "word": "SOUND", "clue": "Large sea inlet" },
55
+ { "word": "HARBOR", "clue": "Sheltered port area" },
56
+ { "word": "INLET", "clue": "Small bay" },
57
+ { "word": "COVE", "clue": "Small sheltered bay" },
58
+ { "word": "MARSH", "clue": "Wetland area" },
59
+ { "word": "SWAMP", "clue": "Forested wetland" },
60
+ { "word": "BOG", "clue": "Acidic wetland" },
61
+ { "word": "OASIS", "clue": "Fertile spot in desert" },
62
+ { "word": "DUNE", "clue": "Sand hill" },
63
+ { "word": "PLAIN", "clue": "Flat grassland" },
64
+ { "word": "STEPPE", "clue": "Dry grassland" },
65
+ { "word": "TAIGA", "clue": "Northern coniferous forest" },
66
+ { "word": "RAINFOREST", "clue": "Dense tropical forest" },
67
+ { "word": "JUNGLE", "clue": "Dense tropical vegetation" },
68
+ { "word": "WOODLAND", "clue": "Area with scattered trees" },
69
+ { "word": "GROVE", "clue": "Small group of trees" },
70
+ { "word": "MEADOW", "clue": "Grassy field" },
71
+ { "word": "PASTURE", "clue": "Grazing land" },
72
+ { "word": "FIELD", "clue": "Open area of land" },
73
+ { "word": "MOOR", "clue": "Open uncultivated land" },
74
+ { "word": "HEATH", "clue": "Shrubland area" },
75
+ { "word": "ARCTIC", "clue": "Cold northern region" },
76
+ { "word": "ANTARCTIC", "clue": "Cold southern region" },
77
+ { "word": "POLAR", "clue": "Of the poles" },
78
+ { "word": "TROPICAL", "clue": "Hot humid climate zone" },
79
+ { "word": "TEMPERATE", "clue": "Moderate climate zone" },
80
+ { "word": "ARID", "clue": "Very dry" },
81
+ { "word": "HUMID", "clue": "Moist air" },
82
+ { "word": "ALTITUDE", "clue": "Height above sea level" },
83
+ { "word": "ELEVATION", "clue": "Height of land" },
84
+ { "word": "TERRAIN", "clue": "Physical features of land" },
85
+ { "word": "TOPOGRAPHY", "clue": "Surface features of area" },
86
+ { "word": "GEOGRAPHY", "clue": "Study of Earth's features" },
87
+ { "word": "CARTOGRAPHY", "clue": "Map making" },
88
+ { "word": "MERIDIAN", "clue": "Longitude line" },
89
+ { "word": "PARALLEL", "clue": "Latitude line" },
90
+ { "word": "HEMISPHERE", "clue": "Half of Earth" },
91
+ { "word": "TROPICS", "clue": "Hot climate zone" },
92
+ { "word": "POLES", "clue": "Earth's endpoints" },
93
+ { "word": "AXIS", "clue": "Earth's rotation line" },
94
+ { "word": "ORBIT", "clue": "Path around sun" },
95
+ { "word": "SEASON", "clue": "Time of year" },
96
+ { "word": "SOLSTICE", "clue": "Longest or shortest day" },
97
+ { "word": "EQUINOX", "clue": "Equal day and night" },
98
+ { "word": "COMPASS", "clue": "Direction-finding tool" },
99
+ { "word": "NAVIGATION", "clue": "Finding your way" },
100
+ { "word": "BEARING", "clue": "Direction or course" },
101
+ { "word": "AZIMUTH", "clue": "Compass direction" },
102
+ { "word": "SCALE", "clue": "Map size ratio" },
103
+ { "word": "LEGEND", "clue": "Map symbol key" },
104
+ { "word": "CONTOUR", "clue": "Elevation line on map" },
105
+ { "word": "GRID", "clue": "Map reference system" },
106
+ { "word": "PROJECTION", "clue": "Map flattening method" },
107
+ { "word": "SURVEY", "clue": "Land measurement" },
108
+ { "word": "BOUNDARY", "clue": "Dividing line" },
109
+ { "word": "FRONTIER", "clue": "Border region" },
110
+ { "word": "TERRITORY", "clue": "Area of land" },
111
+ { "word": "REGION", "clue": "Geographic area" },
112
+ { "word": "ZONE", "clue": "Designated area" },
113
+ { "word": "DISTRICT", "clue": "Administrative area" },
114
+ { "word": "PROVINCE", "clue": "Political subdivision" },
115
+ { "word": "STATE", "clue": "Political entity" },
116
+ { "word": "COUNTY", "clue": "Local government area" },
117
+ { "word": "CITY", "clue": "Large urban area" },
118
+ { "word": "TOWN", "clue": "Small urban area" },
119
+ { "word": "VILLAGE", "clue": "Small rural community" },
120
+ { "word": "HAMLET", "clue": "Very small village" },
121
+ { "word": "SUBURB", "clue": "Residential area outside city" },
122
+ { "word": "URBAN", "clue": "City-like" },
123
+ { "word": "RURAL", "clue": "Countryside" },
124
+ { "word": "METROPOLITAN", "clue": "Large city area" },
125
+ { "word": "POPULATION", "clue": "Number of people" },
126
+ { "word": "DENSITY", "clue": "Crowdedness" },
127
+ { "word": "SETTLEMENT", "clue": "Place where people live" },
128
+ { "word": "COLONY", "clue": "Overseas territory" },
129
+ { "word": "NATION", "clue": "Country" },
130
+ { "word": "REPUBLIC", "clue": "Democratic state" },
131
+ { "word": "KINGDOM", "clue": "Monarchy" },
132
+ { "word": "EMPIRE", "clue": "Large political entity" },
133
+ { "word": "FEDERATION", "clue": "Union of states" },
134
+ { "word": "ALLIANCE", "clue": "Partnership of nations" },
135
+ { "word": "TREATY", "clue": "International agreement" },
136
+ { "word": "TRADE", "clue": "Commercial exchange" },
137
+ { "word": "EXPORT", "clue": "Goods sent abroad" },
138
+ { "word": "IMPORT", "clue": "Goods brought in" },
139
+ { "word": "COMMERCE", "clue": "Business activity" },
140
+ { "word": "INDUSTRY", "clue": "Manufacturing" },
141
+ { "word": "AGRICULTURE", "clue": "Farming" },
142
+ { "word": "MINING", "clue": "Extracting minerals" },
143
+ { "word": "FORESTRY", "clue": "Tree management" },
144
+ { "word": "FISHING", "clue": "Catching fish" },
145
+ { "word": "TOURISM", "clue": "Travel industry" },
146
+ { "word": "TRANSPORTATION", "clue": "Moving people and goods" },
147
+ { "word": "INFRASTRUCTURE", "clue": "Basic facilities" },
148
+ { "word": "COMMUNICATION", "clue": "Information exchange" },
149
+ { "word": "CULTURE", "clue": "Way of life" },
150
+ { "word": "LANGUAGE", "clue": "Communication system" },
151
+ { "word": "RELIGION", "clue": "Belief system" },
152
+ { "word": "ETHNICITY", "clue": "Cultural group" },
153
+ { "word": "MIGRATION", "clue": "Movement of people" },
154
+ { "word": "IMMIGRATION", "clue": "Moving into country" },
155
+ { "word": "EMIGRATION", "clue": "Moving out of country" },
156
+ { "word": "DIASPORA", "clue": "Scattered population" },
157
+ { "word": "NOMAD", "clue": "Wandering person" },
158
+ { "word": "REFUGEE", "clue": "Displaced person" },
159
+ { "word": "CENSUS", "clue": "Population count" },
160
+ { "word": "DEMOGRAPHIC", "clue": "Population characteristic" }
161
  ]
crossword-app/backend/data/word-lists/science.json CHANGED
@@ -28,5 +28,143 @@
28
  { "word": "ENZYME", "clue": "Biological catalyst" },
29
  { "word": "VIRUS", "clue": "Infectious agent" },
30
  { "word": "BACTERIA", "clue": "Single-celled organisms" },
31
- { "word": "EVOLUTION", "clue": "Change in species over time" }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ]
 
28
  { "word": "ENZYME", "clue": "Biological catalyst" },
29
  { "word": "VIRUS", "clue": "Infectious agent" },
30
  { "word": "BACTERIA", "clue": "Single-celled organisms" },
31
+ { "word": "EVOLUTION", "clue": "Change in species over time" },
32
+ { "word": "ISOTOPE", "clue": "Atom variant with different neutrons" },
33
+ { "word": "ION", "clue": "Charged atom or molecule" },
34
+ { "word": "COMPOUND", "clue": "Chemical combination of elements" },
35
+ { "word": "MIXTURE", "clue": "Combined substances retaining properties" },
36
+ { "word": "SOLUTION", "clue": "Dissolved mixture" },
37
+ { "word": "ACID", "clue": "Sour chemical with low pH" },
38
+ { "word": "BASE", "clue": "Alkaline substance with high pH" },
39
+ { "word": "SALT", "clue": "Ionic compound from acid-base reaction" },
40
+ { "word": "CATALYST", "clue": "Substance that speeds reactions" },
41
+ { "word": "RNA", "clue": "Genetic messenger molecule" },
42
+ { "word": "GENE", "clue": "Heredity unit on chromosome" },
43
+ { "word": "CHROMOSOME", "clue": "Gene-carrying structure" },
44
+ { "word": "TISSUE", "clue": "Group of similar cells" },
45
+ { "word": "ORGAN", "clue": "Body part with specific function" },
46
+ { "word": "SYSTEM", "clue": "Group of organs working together" },
47
+ { "word": "ORGANISM", "clue": "Living individual entity" },
48
+ { "word": "SPECIES", "clue": "Group of similar organisms" },
49
+ { "word": "ADAPTATION", "clue": "Survival-enhancing change" },
50
+ { "word": "MUTATION", "clue": "Genetic change in DNA" },
51
+ { "word": "HEREDITY", "clue": "Passing traits to offspring" },
52
+ { "word": "ECOSYSTEM", "clue": "Community and environment" },
53
+ { "word": "HABITAT", "clue": "Natural living environment" },
54
+ { "word": "BIODIVERSITY", "clue": "Variety of life forms" },
55
+ { "word": "PHOTOSYNTHESIS", "clue": "Plant energy-making process" },
56
+ { "word": "RESPIRATION", "clue": "Cellular breathing process" },
57
+ { "word": "METABOLISM", "clue": "Chemical processes in body" },
58
+ { "word": "HOMEOSTASIS", "clue": "Body's internal balance" },
59
+ { "word": "MITOSIS", "clue": "Cell division for growth" },
60
+ { "word": "MEIOSIS", "clue": "Cell division for reproduction" },
61
+ { "word": "EMBRYO", "clue": "Early development stage" },
62
+ { "word": "FOSSIL", "clue": "Preserved ancient remains" },
63
+ { "word": "GEOLOGY", "clue": "Study of Earth's structure" },
64
+ { "word": "MINERAL", "clue": "Natural inorganic crystal" },
65
+ { "word": "ROCK", "clue": "Solid earth material" },
66
+ { "word": "SEDIMENT", "clue": "Settled particles" },
67
+ { "word": "EROSION", "clue": "Gradual wearing away" },
68
+ { "word": "VOLCANO", "clue": "Earth opening spewing lava" },
69
+ { "word": "EARTHQUAKE", "clue": "Ground shaking from plate movement" },
70
+ { "word": "PLATE", "clue": "Earth's crust section" },
71
+ { "word": "MAGMA", "clue": "Molten rock beneath surface" },
72
+ { "word": "LAVA", "clue": "Molten rock on surface" },
73
+ { "word": "CRYSTAL", "clue": "Ordered atomic structure" },
74
+ { "word": "ATMOSPHERE", "clue": "Layer of gases around Earth" },
75
+ { "word": "CLIMATE", "clue": "Long-term weather pattern" },
76
+ { "word": "WEATHER", "clue": "Short-term atmospheric conditions" },
77
+ { "word": "PRECIPITATION", "clue": "Water falling from clouds" },
78
+ { "word": "HUMIDITY", "clue": "Moisture in air" },
79
+ { "word": "WIND", "clue": "Moving air mass" },
80
+ { "word": "STORM", "clue": "Violent weather event" },
81
+ { "word": "HURRICANE", "clue": "Powerful tropical cyclone" },
82
+ { "word": "TORNADO", "clue": "Rotating column of air" },
83
+ { "word": "LIGHTNING", "clue": "Electrical discharge in sky" },
84
+ { "word": "THUNDER", "clue": "Sound of lightning" },
85
+ { "word": "RAINBOW", "clue": "Spectrum of light in sky" },
86
+ { "word": "ASTRONOMY", "clue": "Study of celestial objects" },
87
+ { "word": "GALAXY", "clue": "Collection of stars and planets" },
88
+ { "word": "PLANET", "clue": "Large orbiting celestial body" },
89
+ { "word": "STAR", "clue": "Self-luminous celestial body" },
90
+ { "word": "MOON", "clue": "Natural satellite of planet" },
91
+ { "word": "COMET", "clue": "Icy body with tail" },
92
+ { "word": "ASTEROID", "clue": "Rocky space object" },
93
+ { "word": "METEOR", "clue": "Space rock entering atmosphere" },
94
+ { "word": "ORBIT", "clue": "Curved path around object" },
95
+ { "word": "LIGHT", "clue": "Electromagnetic radiation" },
96
+ { "word": "SPECTRUM", "clue": "Range of electromagnetic radiation" },
97
+ { "word": "WAVELENGTH", "clue": "Distance between wave peaks" },
98
+ { "word": "FREQUENCY", "clue": "Waves per unit time" },
99
+ { "word": "AMPLITUDE", "clue": "Wave height or intensity" },
100
+ { "word": "SOUND", "clue": "Vibrations in air" },
101
+ { "word": "ECHO", "clue": "Reflected sound" },
102
+ { "word": "RESONANCE", "clue": "Vibration amplification" },
103
+ { "word": "DOPPLER", "clue": "Wave frequency shift effect" },
104
+ { "word": "MOTION", "clue": "Change in position" },
105
+ { "word": "ACCELERATION", "clue": "Change in velocity" },
106
+ { "word": "MOMENTUM", "clue": "Mass times velocity" },
107
+ { "word": "INERTIA", "clue": "Resistance to motion change" },
108
+ { "word": "FRICTION", "clue": "Resistance to sliding" },
109
+ { "word": "HEAT", "clue": "Thermal energy transfer" },
110
+ { "word": "COMBUSTION", "clue": "Burning chemical reaction" },
111
+ { "word": "OXIDATION", "clue": "Reaction with oxygen" },
112
+ { "word": "REDUCTION", "clue": "Gain of electrons" },
113
+ { "word": "ELECTROLYSIS", "clue": "Chemical breakdown by electricity" },
114
+ { "word": "CONDUCTIVITY", "clue": "Ability to transfer energy" },
115
+ { "word": "INSULATOR", "clue": "Material blocking energy flow" },
116
+ { "word": "SEMICONDUCTOR", "clue": "Partial electrical conductor" },
117
+ { "word": "MAGNETISM", "clue": "Force of magnetic attraction" },
118
+ { "word": "FIELD", "clue": "Region of force influence" },
119
+ { "word": "CIRCUIT", "clue": "Closed electrical path" },
120
+ { "word": "CURRENT", "clue": "Flow of electric charge" },
121
+ { "word": "VOLTAGE", "clue": "Electric potential difference" },
122
+ { "word": "RESISTANCE", "clue": "Opposition to current flow" },
123
+ { "word": "CAPACITOR", "clue": "Device storing electric charge" },
124
+ { "word": "INDUCTOR", "clue": "Device storing magnetic energy" },
125
+ { "word": "TRANSISTOR", "clue": "Electronic switching device" },
126
+ { "word": "LASER", "clue": "Focused beam of light" },
127
+ { "word": "RADAR", "clue": "Radio detection system" },
128
+ { "word": "SONAR", "clue": "Sound detection system" },
129
+ { "word": "TELESCOPE", "clue": "Instrument for viewing distant objects" },
130
+ { "word": "MICROSCOPE", "clue": "Instrument for viewing small objects" },
131
+ { "word": "HYPOTHESIS", "clue": "Testable scientific prediction" },
132
+ { "word": "THEORY", "clue": "Well-tested scientific explanation" },
133
+ { "word": "LAW", "clue": "Consistently observed scientific rule" },
134
+ { "word": "EXPERIMENT", "clue": "Controlled scientific test" },
135
+ { "word": "OBSERVATION", "clue": "Careful scientific watching" },
136
+ { "word": "MEASUREMENT", "clue": "Quantified observation" },
137
+ { "word": "ANALYSIS", "clue": "Detailed examination of data" },
138
+ { "word": "SYNTHESIS", "clue": "Combining elements into whole" },
139
+ { "word": "VARIABLE", "clue": "Factor that can change" },
140
+ { "word": "CONTROL", "clue": "Unchanged comparison group" },
141
+ { "word": "DATA", "clue": "Information collected from tests" },
142
+ { "word": "STATISTICS", "clue": "Mathematical analysis of data" },
143
+ { "word": "PROBABILITY", "clue": "Likelihood of occurrence" },
144
+ { "word": "PRECISION", "clue": "Exactness of measurement" },
145
+ { "word": "ACCURACY", "clue": "Correctness of measurement" },
146
+ { "word": "ERROR", "clue": "Difference from true value" },
147
+ { "word": "UNCERTAINTY", "clue": "Range of doubt in measurement" },
148
+ { "word": "CALIBRATION", "clue": "Adjusting instrument accuracy" },
149
+ { "word": "STANDARD", "clue": "Reference for measurement" },
150
+ { "word": "UNIT", "clue": "Base measure of quantity" },
151
+ { "word": "METRIC", "clue": "Decimal measurement system" },
152
+ { "word": "WEIGHT", "clue": "Force of gravity on mass" },
153
+ { "word": "CONCENTRATION", "clue": "Amount of substance per volume" },
154
+ { "word": "MOLARITY", "clue": "Moles of solute per liter" },
155
+ { "word": "EQUILIBRIUM", "clue": "State of balanced forces" },
156
+ { "word": "STABILITY", "clue": "Resistance to change" },
157
+ { "word": "DECAY", "clue": "Gradual breakdown process" },
158
+ { "word": "RADIATION", "clue": "Energy emitted from source" },
159
+ { "word": "RADIOACTIVE", "clue": "Emitting nuclear radiation" },
160
+ { "word": "HALFLIFE", "clue": "Time for half to decay" },
161
+ { "word": "FUSION", "clue": "Nuclear combining reaction" },
162
+ { "word": "FISSION", "clue": "Nuclear splitting reaction" },
163
+ { "word": "QUANTUM", "clue": "Discrete packet of energy" },
164
+ { "word": "PARTICLE", "clue": "Tiny piece of matter" },
165
+ { "word": "WAVE", "clue": "Energy transfer disturbance" },
166
+ { "word": "INTERFERENCE", "clue": "Wave interaction effect" },
167
+ { "word": "DIFFRACTION", "clue": "Wave bending around obstacle" },
168
+ { "word": "REFLECTION", "clue": "Bouncing back of waves" },
169
+ { "word": "REFRACTION", "clue": "Bending of waves through medium" }
170
  ]
crossword-app/backend/data/word-lists/technology.json CHANGED
@@ -28,5 +28,194 @@
28
  { "word": "EMAIL", "clue": "Electronic mail" },
29
  { "word": "BROWSER", "clue": "Web navigation software" },
30
  { "word": "SEARCH", "clue": "Look for information" },
31
- { "word": "DOWNLOAD", "clue": "Transfer data to device" }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ]
 
28
  { "word": "EMAIL", "clue": "Electronic mail" },
29
  { "word": "BROWSER", "clue": "Web navigation software" },
30
  { "word": "SEARCH", "clue": "Look for information" },
31
+ { "word": "DOWNLOAD", "clue": "Transfer data to device" },
32
+ { "word": "UPLOAD", "clue": "Transfer data from device" },
33
+ { "word": "BANDWIDTH", "clue": "Data transfer capacity" },
34
+ { "word": "PROTOCOL", "clue": "Communication rules" },
35
+ { "word": "FIREWALL", "clue": "Network security barrier" },
36
+ { "word": "ENCRYPTION", "clue": "Data scrambling for security" },
37
+ { "word": "PASSWORD", "clue": "Secret access code" },
38
+ { "word": "SECURITY", "clue": "Protection from threats" },
39
+ { "word": "VIRUS", "clue": "Malicious computer program" },
40
+ { "word": "MALWARE", "clue": "Harmful software" },
41
+ { "word": "ANTIVIRUS", "clue": "Protection software" },
42
+ { "word": "BACKUP", "clue": "Data safety copy" },
43
+ { "word": "RECOVERY", "clue": "Data restoration process" },
44
+ { "word": "STORAGE", "clue": "Data keeping capacity" },
45
+ { "word": "HARDDRIVE", "clue": "Magnetic storage device" },
46
+ { "word": "FLASH", "clue": "Solid state storage" },
47
+ { "word": "RAM", "clue": "Random access memory" },
48
+ { "word": "ROM", "clue": "Read-only memory" },
49
+ { "word": "CPU", "clue": "Central processing unit" },
50
+ { "word": "GPU", "clue": "Graphics processing unit" },
51
+ { "word": "MOTHERBOARD", "clue": "Main circuit board" },
52
+ { "word": "CHIP", "clue": "Integrated circuit" },
53
+ { "word": "CIRCUIT", "clue": "Electronic pathway" },
54
+ { "word": "TRANSISTOR", "clue": "Electronic switch" },
55
+ { "word": "SILICON", "clue": "Semiconductor material" },
56
+ { "word": "NANOTECHNOLOGY", "clue": "Extremely small scale tech" },
57
+ { "word": "AUTOMATION", "clue": "Self-operating technology" },
58
+ { "word": "MACHINE", "clue": "Mechanical device" },
59
+ { "word": "SENSOR", "clue": "Detection device" },
60
+ { "word": "ACTUATOR", "clue": "Movement device" },
61
+ { "word": "FEEDBACK", "clue": "System response information" },
62
+ { "word": "PROGRAMMING", "clue": "Writing computer instructions" },
63
+ { "word": "FUNCTION", "clue": "Reusable code block" },
64
+ { "word": "VARIABLE", "clue": "Data storage container" },
65
+ { "word": "LOOP", "clue": "Repeating code structure" },
66
+ { "word": "CONDITION", "clue": "Decision-making logic" },
67
+ { "word": "DEBUG", "clue": "Find and fix errors" },
68
+ { "word": "COMPILE", "clue": "Convert code to executable" },
69
+ { "word": "RUNTIME", "clue": "Program execution time" },
70
+ { "word": "API", "clue": "Application programming interface" },
71
+ { "word": "FRAMEWORK", "clue": "Code structure foundation" },
72
+ { "word": "LIBRARY", "clue": "Reusable code collection" },
73
+ { "word": "MODULE", "clue": "Self-contained code unit" },
74
+ { "word": "OBJECT", "clue": "Data and methods container" },
75
+ { "word": "CLASS", "clue": "Object blueprint" },
76
+ { "word": "INHERITANCE", "clue": "Code reuse mechanism" },
77
+ { "word": "INTERFACE", "clue": "System interaction boundary" },
78
+ { "word": "PROTOCOL", "clue": "Communication standard" },
79
+ { "word": "FORMAT", "clue": "Data structure standard" },
80
+ { "word": "SYNTAX", "clue": "Language rules" },
81
+ { "word": "SEMANTIC", "clue": "Meaning in code" },
82
+ { "word": "PARSING", "clue": "Analyzing code structure" },
83
+ { "word": "COMPILER", "clue": "Code translation program" },
84
+ { "word": "INTERPRETER", "clue": "Code execution program" },
85
+ { "word": "VIRTUAL", "clue": "Simulated environment" },
86
+ { "word": "SIMULATION", "clue": "Computer modeling" },
87
+ { "word": "EMULATION", "clue": "System imitation" },
88
+ { "word": "OPTIMIZATION", "clue": "Performance improvement" },
89
+ { "word": "EFFICIENCY", "clue": "Resource usage effectiveness" },
90
+ { "word": "PERFORMANCE", "clue": "System speed and quality" },
91
+ { "word": "BENCHMARK", "clue": "Performance measurement" },
92
+ { "word": "TESTING", "clue": "Quality verification process" },
93
+ { "word": "VALIDATION", "clue": "Correctness checking" },
94
+ { "word": "VERIFICATION", "clue": "Accuracy confirmation" },
95
+ { "word": "QUALITY", "clue": "Standard of excellence" },
96
+ { "word": "MAINTENANCE", "clue": "System upkeep" },
97
+ { "word": "UPDATE", "clue": "Software improvement" },
98
+ { "word": "PATCH", "clue": "Software fix" },
99
+ { "word": "VERSION", "clue": "Software release number" },
100
+ { "word": "RELEASE", "clue": "Software distribution" },
101
+ { "word": "DEPLOYMENT", "clue": "Software installation" },
102
+ { "word": "CONFIGURATION", "clue": "System setup" },
103
+ { "word": "INSTALLATION", "clue": "Software setup process" },
104
+ { "word": "MIGRATION", "clue": "System transition" },
105
+ { "word": "INTEGRATION", "clue": "System combination" },
106
+ { "word": "COMPATIBILITY", "clue": "System cooperation ability" },
107
+ { "word": "INTEROPERABILITY", "clue": "Cross-system communication" },
108
+ { "word": "SCALABILITY", "clue": "Growth accommodation ability" },
109
+ { "word": "RELIABILITY", "clue": "Consistent performance" },
110
+ { "word": "AVAILABILITY", "clue": "System accessibility" },
111
+ { "word": "REDUNDANCY", "clue": "Backup system duplication" },
112
+ { "word": "FAULT", "clue": "System error condition" },
113
+ { "word": "TOLERANCE", "clue": "Error handling ability" },
114
+ { "word": "RECOVERY", "clue": "System restoration" },
115
+ { "word": "MONITORING", "clue": "System observation" },
116
+ { "word": "LOGGING", "clue": "Event recording" },
117
+ { "word": "ANALYTICS", "clue": "Data analysis" },
118
+ { "word": "METRICS", "clue": "Measurement data" },
119
+ { "word": "DASHBOARD", "clue": "Information display panel" },
120
+ { "word": "INTERFACE", "clue": "User interaction design" },
121
+ { "word": "EXPERIENCE", "clue": "User interaction quality" },
122
+ { "word": "USABILITY", "clue": "Ease of use" },
123
+ { "word": "ACCESSIBILITY", "clue": "Universal design principle" },
124
+ { "word": "RESPONSIVE", "clue": "Adaptive design" },
125
+ { "word": "MOBILE", "clue": "Portable device category" },
126
+ { "word": "TOUCHSCREEN", "clue": "Touch-sensitive display" },
127
+ { "word": "GESTURE", "clue": "Touch movement command" },
128
+ { "word": "VOICE", "clue": "Speech interaction" },
129
+ { "word": "RECOGNITION", "clue": "Pattern identification" },
130
+ { "word": "LEARNING", "clue": "Adaptive improvement" },
131
+ { "word": "INTELLIGENCE", "clue": "Artificial reasoning" },
132
+ { "word": "NEURAL", "clue": "Brain-inspired network" },
133
+ { "word": "DEEP", "clue": "Multi-layered learning" },
134
+ { "word": "MACHINE", "clue": "Automated learning system" },
135
+ { "word": "DATA", "clue": "Information collection" },
136
+ { "word": "BIG", "clue": "Large scale data" },
137
+ { "word": "MINING", "clue": "Data pattern extraction" },
138
+ { "word": "ANALYSIS", "clue": "Data examination" },
139
+ { "word": "VISUALIZATION", "clue": "Data graphic representation" },
140
+ { "word": "DASHBOARD", "clue": "Data monitoring panel" },
141
+ { "word": "REPORT", "clue": "Data summary document" },
142
+ { "word": "QUERY", "clue": "Data search request" },
143
+ { "word": "INDEX", "clue": "Data location reference" },
144
+ { "word": "SCHEMA", "clue": "Data structure blueprint" },
145
+ { "word": "TABLE", "clue": "Data organization structure" },
146
+ { "word": "RECORD", "clue": "Data entry" },
147
+ { "word": "FIELD", "clue": "Data element" },
148
+ { "word": "PRIMARY", "clue": "Main identifier key" },
149
+ { "word": "FOREIGN", "clue": "Reference relationship key" },
150
+ { "word": "RELATION", "clue": "Data connection" },
151
+ { "word": "JOIN", "clue": "Data combination operation" },
152
+ { "word": "TRANSACTION", "clue": "Data operation sequence" },
153
+ { "word": "COMMIT", "clue": "Data change confirmation" },
154
+ { "word": "ROLLBACK", "clue": "Data change reversal" },
155
+ { "word": "CONCURRENCY", "clue": "Simultaneous access handling" },
156
+ { "word": "LOCK", "clue": "Data access control" },
157
+ { "word": "SYNCHRONIZATION", "clue": "Timing coordination" },
158
+ { "word": "THREAD", "clue": "Execution sequence" },
159
+ { "word": "PROCESS", "clue": "Running program instance" },
160
+ { "word": "MULTITASKING", "clue": "Multiple process handling" },
161
+ { "word": "PARALLEL", "clue": "Simultaneous execution" },
162
+ { "word": "DISTRIBUTED", "clue": "Spread across multiple systems" },
163
+ { "word": "CLUSTER", "clue": "Group of connected computers" },
164
+ { "word": "GRID", "clue": "Distributed computing network" },
165
+ { "word": "PEER", "clue": "Equal network participant" },
166
+ { "word": "CLIENT", "clue": "Service requesting system" },
167
+ { "word": "SERVICE", "clue": "System functionality provider" },
168
+ { "word": "MICROSERVICE", "clue": "Small independent service" },
169
+ { "word": "CONTAINER", "clue": "Isolated application environment" },
170
+ { "word": "DOCKER", "clue": "Containerization platform" },
171
+ { "word": "KUBERNETES", "clue": "Container orchestration" },
172
+ { "word": "DEVOPS", "clue": "Development operations practice" },
173
+ { "word": "AGILE", "clue": "Flexible development method" },
174
+ { "word": "SCRUM", "clue": "Iterative development framework" },
175
+ { "word": "SPRINT", "clue": "Short development cycle" },
176
+ { "word": "KANBAN", "clue": "Visual workflow management" },
177
+ { "word": "CONTINUOUS", "clue": "Ongoing integration practice" },
178
+ { "word": "PIPELINE", "clue": "Automated workflow" },
179
+ { "word": "BUILD", "clue": "Software compilation process" },
180
+ { "word": "TESTING", "clue": "Quality assurance process" },
181
+ { "word": "AUTOMATION", "clue": "Manual task elimination" },
182
+ { "word": "SCRIPT", "clue": "Automated task sequence" },
183
+ { "word": "BATCH", "clue": "Group processing" },
184
+ { "word": "STREAMING", "clue": "Continuous data flow" },
185
+ { "word": "REALTIME", "clue": "Immediate processing" },
186
+ { "word": "LATENCY", "clue": "Response delay time" },
187
+ { "word": "THROUGHPUT", "clue": "Processing capacity" },
188
+ { "word": "BOTTLENECK", "clue": "Performance limitation point" },
189
+ { "word": "CACHE", "clue": "Fast temporary storage" },
190
+ { "word": "BUFFER", "clue": "Temporary data holder" },
191
+ { "word": "QUEUE", "clue": "Ordered waiting line" },
192
+ { "word": "STACK", "clue": "Last-in-first-out structure" },
193
+ { "word": "HEAP", "clue": "Dynamic memory area" },
194
+ { "word": "POINTER", "clue": "Memory address reference" },
195
+ { "word": "REFERENCE", "clue": "Object location indicator" },
196
+ { "word": "GARBAGE", "clue": "Unused memory collection" },
197
+ { "word": "ALLOCATION", "clue": "Memory assignment" },
198
+ { "word": "DEALLOCATION", "clue": "Memory release" },
199
+ { "word": "LEAK", "clue": "Memory usage error" },
200
+ { "word": "OVERFLOW", "clue": "Capacity exceeding error" },
201
+ { "word": "UNDERFLOW", "clue": "Insufficient data error" },
202
+ { "word": "EXCEPTION", "clue": "Error handling mechanism" },
203
+ { "word": "INTERRUPT", "clue": "Process suspension signal" },
204
+ { "word": "SIGNAL", "clue": "Process communication" },
205
+ { "word": "EVENT", "clue": "System occurrence" },
206
+ { "word": "HANDLER", "clue": "Event processing function" },
207
+ { "word": "CALLBACK", "clue": "Function reference" },
208
+ { "word": "PROMISE", "clue": "Future value placeholder" },
209
+ { "word": "ASYNC", "clue": "Non-blocking operation" },
210
+ { "word": "AWAIT", "clue": "Pause for completion" },
211
+ { "word": "YIELD", "clue": "Temporary function pause" },
212
+ { "word": "GENERATOR", "clue": "Value sequence producer" },
213
+ { "word": "ITERATOR", "clue": "Sequential access pattern" },
214
+ { "word": "RECURSION", "clue": "Self-calling function" },
215
+ { "word": "CLOSURE", "clue": "Function scope retention" },
216
+ { "word": "LAMBDA", "clue": "Anonymous function" },
217
+ { "word": "FUNCTIONAL", "clue": "Function-based programming" },
218
+ { "word": "PROCEDURAL", "clue": "Step-by-step programming" },
219
+ { "word": "DECLARATIVE", "clue": "What-not-how programming" },
220
+ { "word": "IMPERATIVE", "clue": "Command-based programming" }
221
  ]
crossword-app/backend/src/services/crosswordGenerator.js CHANGED
@@ -46,9 +46,47 @@ class CrosswordGenerator {
46
  }
47
 
48
  const filteredWords = this.filterWordsByDifficulty(allWords, difficulty);
49
- const shuffled = this.shuffleArray(filteredWords);
50
 
51
- return shuffled.slice(0, this.maxWords);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
53
 
54
  filterWordsByDifficulty(words, difficulty) {
@@ -161,22 +199,69 @@ class CrosswordGenerator {
161
  const word = words[wordIndex];
162
  const size = grid.length;
163
 
164
- for (let row = 0; row < size; row++) {
165
- for (let col = 0; col < size; col++) {
166
- for (const direction of ['horizontal', 'vertical']) {
167
- if (this.canPlaceWord(grid, word, row, col, direction)) {
168
- const originalState = this.placeWord(grid, word, row, col, direction);
169
- placedWords.push({ word, row, col, direction, number: wordIndex + 1 });
170
-
171
- if (this.backtrackPlacement(grid, words, wordIndex + 1, placedWords)) {
172
- return true;
173
- }
174
-
175
- this.removeWord(grid, originalState);
176
- placedWords.pop();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  }
 
 
 
178
  }
179
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  }
181
 
182
  return false;
@@ -185,10 +270,18 @@ class CrosswordGenerator {
185
  canPlaceWord(grid, word, row, col, direction) {
186
  const size = grid.length;
187
 
 
 
 
 
 
188
  if (direction === 'horizontal') {
189
  if (col + word.length > size) return false;
190
 
191
  for (let i = 0; i < word.length; i++) {
 
 
 
192
  const currentCell = grid[row][col + i];
193
  if (currentCell !== '.' && currentCell !== word[i]) {
194
  return false;
@@ -198,6 +291,9 @@ class CrosswordGenerator {
198
  if (row + word.length > size) return false;
199
 
200
  for (let i = 0; i < word.length; i++) {
 
 
 
201
  const currentCell = grid[row + i][col];
202
  if (currentCell !== '.' && currentCell !== word[i]) {
203
  return false;
@@ -212,11 +308,59 @@ class CrosswordGenerator {
212
  const size = grid.length;
213
 
214
  if (direction === 'horizontal') {
215
- if (col > 0 && grid[row][col - 1] !== '.') return false;
216
- if (col + word.length < size && grid[row][col + word.length] !== '.') return false;
217
- } else {
218
- if (row > 0 && grid[row - 1][col] !== '.') return false;
219
- if (row + word.length < size && grid[row + word.length][col] !== '.') return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  }
221
 
222
  return true;
@@ -300,6 +444,337 @@ class CrosswordGenerator {
300
  };
301
  }
302
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
303
  shuffleArray(array) {
304
  const shuffled = [...array];
305
  for (let i = shuffled.length - 1; i > 0; i--) {
 
46
  }
47
 
48
  const filteredWords = this.filterWordsByDifficulty(allWords, difficulty);
 
49
 
50
+ // Sort words to prioritize those with good intersection potential
51
+ const sortedWords = this.sortWordsForCrossword(filteredWords);
52
+
53
+ return sortedWords.slice(0, this.maxWords);
54
+ }
55
+
56
+ sortWordsForCrossword(words) {
57
+ // Score words based on their crossword potential
58
+ const scoredWords = words.map(wordObj => {
59
+ const word = wordObj.word;
60
+ let score = 0;
61
+
62
+ // Longer words get higher scores (they make good anchors)
63
+ score += word.length * 2;
64
+
65
+ // Words with common letters get bonus points
66
+ const commonLetters = ['E', 'A', 'R', 'I', 'O', 'T', 'N', 'S'];
67
+ for (const letter of word) {
68
+ if (commonLetters.includes(letter)) {
69
+ score += 1;
70
+ }
71
+ }
72
+
73
+ // Vowel distribution bonus
74
+ const vowels = ['A', 'E', 'I', 'O', 'U'];
75
+ const vowelCount = word.split('').filter(letter => vowels.includes(letter)).length;
76
+ score += vowelCount;
77
+
78
+ return { ...wordObj, crosswordScore: score };
79
+ });
80
+
81
+ // Sort by score (descending) then shuffle within score groups
82
+ scoredWords.sort((a, b) => {
83
+ if (Math.abs(a.crosswordScore - b.crosswordScore) <= 2) {
84
+ return Math.random() - 0.5; // Shuffle similar scores
85
+ }
86
+ return b.crosswordScore - a.crosswordScore;
87
+ });
88
+
89
+ return scoredWords;
90
  }
91
 
92
  filterWordsByDifficulty(words, difficulty) {
 
199
  const word = words[wordIndex];
200
  const size = grid.length;
201
 
202
+ // For the first word, place the longest word in the center horizontally
203
+ if (wordIndex === 0) {
204
+ const centerRow = Math.floor(size / 2);
205
+ const centerCol = Math.floor((size - word.length) / 2);
206
+
207
+ if (this.canPlaceWord(grid, word, centerRow, centerCol, 'horizontal')) {
208
+ const originalState = this.placeWord(grid, word, centerRow, centerCol, 'horizontal');
209
+ placedWords.push({ word, row: centerRow, col: centerCol, direction: 'horizontal', number: 1 });
210
+
211
+ if (this.backtrackPlacement(grid, words, wordIndex + 1, placedWords)) {
212
+ return true;
213
+ }
214
+
215
+ this.removeWord(grid, originalState);
216
+ placedWords.pop();
217
+ }
218
+ return false;
219
+ }
220
+
221
+ // For the second word, try to create a central cross
222
+ if (wordIndex === 1) {
223
+ const firstWord = placedWords[0];
224
+ const intersections = this.findWordIntersections(word, firstWord.word);
225
+
226
+ for (const intersection of intersections) {
227
+ const placement = this.calculateIntersectionPlacement(word, intersection.wordPos, firstWord, intersection.placedPos);
228
+
229
+ if (placement && this.canPlaceWord(grid, word, placement.row, placement.col, placement.direction)) {
230
+ const originalState = this.placeWord(grid, word, placement.row, placement.col, placement.direction);
231
+ placedWords.push({ word, ...placement, number: 2 });
232
+
233
+ if (this.backtrackPlacement(grid, words, wordIndex + 1, placedWords)) {
234
+ return true;
235
  }
236
+
237
+ this.removeWord(grid, originalState);
238
+ placedWords.pop();
239
  }
240
  }
241
+ return false;
242
+ }
243
+
244
+ // For subsequent words, find the best intersection opportunities
245
+ const allPlacements = this.findAllIntersectionPlacements(grid, word, placedWords);
246
+
247
+ // Sort by intersection quality score
248
+ allPlacements.sort((a, b) => b.score - a.score);
249
+
250
+ // Try the best placements first
251
+ for (const placement of allPlacements) {
252
+ const { row, col, direction } = placement;
253
+
254
+ if (this.canPlaceWord(grid, word, row, col, direction)) {
255
+ const originalState = this.placeWord(grid, word, row, col, direction);
256
+ placedWords.push({ word, row, col, direction, number: wordIndex + 1 });
257
+
258
+ if (this.backtrackPlacement(grid, words, wordIndex + 1, placedWords)) {
259
+ return true;
260
+ }
261
+
262
+ this.removeWord(grid, originalState);
263
+ placedWords.pop();
264
+ }
265
  }
266
 
267
  return false;
 
270
  canPlaceWord(grid, word, row, col, direction) {
271
  const size = grid.length;
272
 
273
+ // Check boundaries first
274
+ if (row < 0 || col < 0 || row >= size || col >= size) {
275
+ return false;
276
+ }
277
+
278
  if (direction === 'horizontal') {
279
  if (col + word.length > size) return false;
280
 
281
  for (let i = 0; i < word.length; i++) {
282
+ if (row >= size || col + i >= size || !grid[row] || grid[row][col + i] === undefined) {
283
+ return false;
284
+ }
285
  const currentCell = grid[row][col + i];
286
  if (currentCell !== '.' && currentCell !== word[i]) {
287
  return false;
 
291
  if (row + word.length > size) return false;
292
 
293
  for (let i = 0; i < word.length; i++) {
294
+ if (row + i >= size || col >= size || !grid[row + i] || grid[row + i][col] === undefined) {
295
+ return false;
296
+ }
297
  const currentCell = grid[row + i][col];
298
  if (currentCell !== '.' && currentCell !== word[i]) {
299
  return false;
 
308
  const size = grid.length;
309
 
310
  if (direction === 'horizontal') {
311
+ // CRITICAL: Check word boundaries - no letters immediately before/after
312
+ if (col > 0 && grid[row][col - 1] !== '.') {
313
+ return false; // Word would have a preceding letter
314
+ }
315
+ if (col + word.length < size && grid[row][col + word.length] !== '.') {
316
+ return false; // Word would have a trailing letter
317
+ }
318
+
319
+ // Check each letter position
320
+ for (let i = 0; i < word.length; i++) {
321
+ const currentCol = col + i;
322
+ const currentCell = grid[row][currentCol];
323
+
324
+ // If cell is occupied, it must match the letter we're placing
325
+ if (currentCell !== '.' && currentCell !== word[i]) {
326
+ return false;
327
+ }
328
+
329
+ // For empty cells, check perpendicular validity
330
+ if (currentCell === '.') {
331
+ // Check that placing this letter won't create invalid perpendicular words
332
+ if (!this.isValidPerpendicularPlacement(grid, word[i], row, currentCol, 'vertical')) {
333
+ return false;
334
+ }
335
+ }
336
+ }
337
+ } else { // vertical
338
+ // CRITICAL: Check word boundaries - no letters immediately before/after
339
+ if (row > 0 && grid[row - 1][col] !== '.') {
340
+ return false; // Word would have a preceding letter
341
+ }
342
+ if (row + word.length < size && grid[row + word.length][col] !== '.') {
343
+ return false; // Word would have a trailing letter
344
+ }
345
+
346
+ // Check each letter position
347
+ for (let i = 0; i < word.length; i++) {
348
+ const currentRow = row + i;
349
+ const currentCell = grid[currentRow][col];
350
+
351
+ // If cell is occupied, it must match the letter we're placing
352
+ if (currentCell !== '.' && currentCell !== word[i]) {
353
+ return false;
354
+ }
355
+
356
+ // For empty cells, check perpendicular validity
357
+ if (currentCell === '.') {
358
+ // Check that placing this letter won't create invalid perpendicular words
359
+ if (!this.isValidPerpendicularPlacement(grid, word[i], currentRow, col, 'horizontal')) {
360
+ return false;
361
+ }
362
+ }
363
+ }
364
  }
365
 
366
  return true;
 
444
  };
445
  }
446
 
447
+ findAllIntersectionPlacements(grid, word, placedWords) {
448
+ const placements = [];
449
+
450
+ // For each placed word, find potential intersections
451
+ for (const placedWord of placedWords) {
452
+ const intersections = this.findWordIntersections(word, placedWord.word);
453
+
454
+ for (const intersection of intersections) {
455
+ const { wordPos, placedPos } = intersection;
456
+
457
+ // Calculate where the new word would be placed
458
+ const placementInfo = this.calculateIntersectionPlacement(
459
+ word, wordPos, placedWord, placedPos
460
+ );
461
+
462
+ if (placementInfo) {
463
+ // Calculate score for this placement
464
+ const score = this.calculatePlacementScore(grid, word, placementInfo, placedWords);
465
+
466
+ placements.push({
467
+ ...placementInfo,
468
+ score,
469
+ intersectingWord: placedWord.word,
470
+ intersectionPoint: { wordPos, placedPos }
471
+ });
472
+ }
473
+ }
474
+ }
475
+
476
+ return placements;
477
+ }
478
+
479
+ calculatePlacementScore(grid, word, placement, placedWords) {
480
+ const { row, col, direction } = placement;
481
+ let score = 0;
482
+
483
+ // Base score for creating an intersection
484
+ score += 100;
485
+
486
+ // Bonus for multiple intersections with the same word
487
+ let intersectionCount = 0;
488
+
489
+ if (direction === 'horizontal') {
490
+ for (let i = 0; i < word.length; i++) {
491
+ const cellRow = row;
492
+ const cellCol = col + i;
493
+
494
+ if (cellCol >= 0 && cellCol < grid.length && grid[cellRow] && grid[cellRow][cellCol] === word[i]) {
495
+ intersectionCount++;
496
+ }
497
+ }
498
+ } else {
499
+ for (let i = 0; i < word.length; i++) {
500
+ const cellRow = row + i;
501
+ const cellCol = col;
502
+
503
+ if (cellRow >= 0 && cellRow < grid.length && grid[cellRow] && grid[cellRow][cellCol] === word[i]) {
504
+ intersectionCount++;
505
+ }
506
+ }
507
+ }
508
+
509
+ // Multiple intersections are MUCH better
510
+ score += intersectionCount * 200;
511
+
512
+ // Bonus for placing near the center
513
+ const center = Math.floor(grid.length / 2);
514
+ const distanceFromCenter = Math.abs(row - center) + Math.abs(col - center);
515
+ score -= distanceFromCenter * 5;
516
+
517
+ // Bonus for connecting to multiple existing words
518
+ const adjacentWords = this.countAdjacentWords(grid, word, row, col, direction, placedWords);
519
+ score += adjacentWords * 50;
520
+
521
+ // Prefer compact layouts - bonus for being close to existing words
522
+ const proximityBonus = this.calculateProximityBonus(grid, row, col, direction, word.length);
523
+ score += proximityBonus;
524
+
525
+ return score;
526
+ }
527
+
528
+ countAdjacentWords(grid, word, row, col, direction, placedWords) {
529
+ let adjacentCount = 0;
530
+ const size = grid.length;
531
+
532
+ if (direction === 'horizontal') {
533
+ for (let i = 0; i < word.length; i++) {
534
+ const cellRow = row;
535
+ const cellCol = col + i;
536
+
537
+ // Check boundaries before accessing array
538
+ if (cellRow < 0 || cellRow >= size || cellCol < 0 || cellCol >= size) continue;
539
+
540
+ // Check above and below
541
+ if (cellRow > 0 && grid[cellRow - 1] && grid[cellRow - 1][cellCol] && grid[cellRow - 1][cellCol] !== '.') {
542
+ adjacentCount++;
543
+ }
544
+ if (cellRow < size - 1 && grid[cellRow + 1] && grid[cellRow + 1][cellCol] && grid[cellRow + 1][cellCol] !== '.') {
545
+ adjacentCount++;
546
+ }
547
+ }
548
+ } else {
549
+ for (let i = 0; i < word.length; i++) {
550
+ const cellRow = row + i;
551
+ const cellCol = col;
552
+
553
+ // Check boundaries before accessing array
554
+ if (cellRow < 0 || cellRow >= size || cellCol < 0 || cellCol >= size) continue;
555
+
556
+ // Check left and right
557
+ if (cellCol > 0 && grid[cellRow] && grid[cellRow][cellCol - 1] && grid[cellRow][cellCol - 1] !== '.') {
558
+ adjacentCount++;
559
+ }
560
+ if (cellCol < size - 1 && grid[cellRow] && grid[cellRow][cellCol + 1] && grid[cellRow][cellCol + 1] !== '.') {
561
+ adjacentCount++;
562
+ }
563
+ }
564
+ }
565
+
566
+ return adjacentCount;
567
+ }
568
+
569
+ calculateProximityBonus(grid, row, col, direction, wordLength) {
570
+ let cellsNearOtherWords = 0;
571
+ const size = grid.length;
572
+
573
+ if (direction === 'horizontal') {
574
+ for (let i = 0; i < wordLength; i++) {
575
+ const cellCol = col + i;
576
+
577
+ // Check surrounding cells for letters
578
+ for (let dr = -1; dr <= 1; dr++) {
579
+ for (let dc = -1; dc <= 1; dc++) {
580
+ const checkRow = row + dr;
581
+ const checkCol = cellCol + dc;
582
+
583
+ if (checkRow >= 0 && checkRow < size &&
584
+ checkCol >= 0 && checkCol < size &&
585
+ grid[checkRow] && grid[checkRow][checkCol] &&
586
+ grid[checkRow][checkCol] !== '.') {
587
+ cellsNearOtherWords++;
588
+ }
589
+ }
590
+ }
591
+ }
592
+ } else {
593
+ for (let i = 0; i < wordLength; i++) {
594
+ const cellRow = row + i;
595
+
596
+ // Check surrounding cells for letters
597
+ for (let dr = -1; dr <= 1; dr++) {
598
+ for (let dc = -1; dc <= 1; dc++) {
599
+ const checkRow = cellRow + dr;
600
+ const checkCol = col + dc;
601
+
602
+ if (checkRow >= 0 && checkRow < size &&
603
+ checkCol >= 0 && checkCol < size &&
604
+ grid[checkRow] && grid[checkRow][checkCol] &&
605
+ grid[checkRow][checkCol] !== '.') {
606
+ cellsNearOtherWords++;
607
+ }
608
+ }
609
+ }
610
+ }
611
+ }
612
+
613
+ return cellsNearOtherWords * 10;
614
+ }
615
+
616
+ findIntersectionPlacements(grid, word, placedWords) {
617
+ return this.findAllIntersectionPlacements(grid, word, placedWords);
618
+ }
619
+
620
+ findWordIntersections(word1, word2) {
621
+ const intersections = [];
622
+
623
+ for (let i = 0; i < word1.length; i++) {
624
+ for (let j = 0; j < word2.length; j++) {
625
+ if (word1[i] === word2[j]) {
626
+ intersections.push({
627
+ wordPos: i, // Position in the new word
628
+ placedPos: j // Position in the already placed word
629
+ });
630
+ }
631
+ }
632
+ }
633
+
634
+ return intersections;
635
+ }
636
+
637
+ calculateIntersectionPlacement(newWord, newWordPos, placedWord, placedWordPos) {
638
+ const { row: placedRow, col: placedCol, direction: placedDirection } = placedWord;
639
+
640
+ // Calculate the position of the intersecting letter in the grid
641
+ let intersectionRow, intersectionCol;
642
+
643
+ if (placedDirection === 'horizontal') {
644
+ intersectionRow = placedRow;
645
+ intersectionCol = placedCol + placedWordPos;
646
+ } else {
647
+ intersectionRow = placedRow + placedWordPos;
648
+ intersectionCol = placedCol;
649
+ }
650
+
651
+ // Calculate where the new word should start
652
+ const newDirection = placedDirection === 'horizontal' ? 'vertical' : 'horizontal';
653
+
654
+ let newRow, newCol;
655
+
656
+ if (newDirection === 'horizontal') {
657
+ newRow = intersectionRow;
658
+ newCol = intersectionCol - newWordPos;
659
+ } else {
660
+ newRow = intersectionRow - newWordPos;
661
+ newCol = intersectionCol;
662
+ }
663
+
664
+ return {
665
+ row: newRow,
666
+ col: newCol,
667
+ direction: newDirection
668
+ };
669
+ }
670
+
671
+ findFallbackPlacements(grid, word, size) {
672
+ const placements = [];
673
+
674
+ // Generate some positions near the center
675
+ const center = Math.floor(size / 2);
676
+ const searchRadius = Math.min(3, Math.floor(size / 4));
677
+
678
+ for (let r = center - searchRadius; r <= center + searchRadius; r++) {
679
+ for (let c = center - searchRadius; c <= center + searchRadius; c++) {
680
+ if (r >= 0 && c >= 0 && r < size && c < size) {
681
+ for (const direction of ['horizontal', 'vertical']) {
682
+ placements.push({ row: r, col: c, direction });
683
+ }
684
+ }
685
+ }
686
+ }
687
+
688
+ return placements;
689
+ }
690
+
691
+ countIntersections(grid, word, row, col, direction) {
692
+ let intersections = 0;
693
+
694
+ if (direction === 'horizontal') {
695
+ for (let i = 0; i < word.length; i++) {
696
+ if (grid[row][col + i] === word[i]) {
697
+ intersections++;
698
+ }
699
+ }
700
+ } else {
701
+ for (let i = 0; i < word.length; i++) {
702
+ if (grid[row + i][col] === word[i]) {
703
+ intersections++;
704
+ }
705
+ }
706
+ }
707
+
708
+ return intersections;
709
+ }
710
+
711
+ wouldConnect(grid, word, row, col, direction, placedWords) {
712
+ if (placedWords.length === 0) return true; // First word always connects
713
+
714
+ // Check if this word would intersect with any placed word
715
+ if (direction === 'horizontal') {
716
+ for (let i = 0; i < word.length; i++) {
717
+ if (grid[row][col + i] !== '.') {
718
+ return true; // Intersects with existing letter
719
+ }
720
+ // Check if adjacent to existing letters (forming a connection)
721
+ if ((row > 0 && grid[row - 1][col + i] !== '.') ||
722
+ (row < grid.length - 1 && grid[row + 1][col + i] !== '.')) {
723
+ return true;
724
+ }
725
+ }
726
+ } else {
727
+ for (let i = 0; i < word.length; i++) {
728
+ if (grid[row + i][col] !== '.') {
729
+ return true; // Intersects with existing letter
730
+ }
731
+ // Check if adjacent to existing letters (forming a connection)
732
+ if ((col > 0 && grid[row + i][col - 1] !== '.') ||
733
+ (col < grid[0].length - 1 && grid[row + i][col + 1] !== '.')) {
734
+ return true;
735
+ }
736
+ }
737
+ }
738
+
739
+ return false;
740
+ }
741
+
742
+ isValidPerpendicularPlacement(grid, letter, row, col, checkDirection) {
743
+ const size = grid.length;
744
+
745
+ if (checkDirection === 'vertical') {
746
+ // Check if placing this letter would create an invalid vertical sequence
747
+ let hasAbove = row > 0 && grid[row - 1] && grid[row - 1][col] !== '.';
748
+ let hasBelow = row < size - 1 && grid[row + 1] && grid[row + 1][col] !== '.';
749
+
750
+ // STRICT: Don't allow this letter to be placed if it would extend an existing vertical word
751
+ // unless it's exactly at an intersection point with matching letters
752
+ if (hasAbove || hasBelow) {
753
+ // Only allow if this letter is exactly matching existing intersections
754
+ return grid[row][col] === letter;
755
+ }
756
+ } else { // horizontal
757
+ // Check if placing this letter would create an invalid horizontal sequence
758
+ let hasLeft = col > 0 && grid[row] && grid[row][col - 1] !== '.';
759
+ let hasRight = col < size - 1 && grid[row] && grid[row][col + 1] !== '.';
760
+
761
+ // STRICT: Don't allow this letter to be placed if it would extend an existing horizontal word
762
+ // unless it's exactly at an intersection point with matching letters
763
+ if (hasLeft || hasRight) {
764
+ // Only allow if this letter is exactly matching existing intersections
765
+ return grid[row][col] === letter;
766
+ }
767
+ }
768
+
769
+ return true;
770
+ }
771
+
772
+ isValidCrossing(grid, letter, row, col) {
773
+ // This method should only be called for exact intersections
774
+ // where the letter already exists in the grid
775
+ return grid[row] && grid[row][col] === letter;
776
+ }
777
+
778
  shuffleArray(array) {
779
  const shuffled = [...array];
780
  for (let i = shuffled.length - 1; i > 0; i--) {
crossword-app/frontend/.vite/deps/_metadata.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "hash": "527a3344",
3
+ "configHash": "516fc38b",
4
+ "lockfileHash": "075111fb",
5
+ "browserHash": "80e2bdfc",
6
+ "optimized": {
7
+ "react": {
8
+ "src": "../../node_modules/react/index.js",
9
+ "file": "react.js",
10
+ "fileHash": "0d64d866",
11
+ "needsInterop": true
12
+ },
13
+ "react-dom/client": {
14
+ "src": "../../node_modules/react-dom/client.js",
15
+ "file": "react-dom_client.js",
16
+ "fileHash": "832f6662",
17
+ "needsInterop": true
18
+ }
19
+ },
20
+ "chunks": {
21
+ "chunk-GFWMZNU4": {
22
+ "file": "chunk-GFWMZNU4.js"
23
+ }
24
+ }
25
+ }
crossword-app/frontend/.vite/deps/chunk-GFWMZNU4.js ADDED
@@ -0,0 +1,1908 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __commonJS = (cb, mod) => function __require() {
3
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
+ };
5
+
6
+ // node_modules/react/cjs/react.development.js
7
+ var require_react_development = __commonJS({
8
+ "node_modules/react/cjs/react.development.js"(exports, module) {
9
+ "use strict";
10
+ if (true) {
11
+ (function() {
12
+ "use strict";
13
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
14
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
15
+ }
16
+ var ReactVersion = "18.3.1";
17
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
18
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
19
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
20
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
21
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
22
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
23
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
24
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
25
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
26
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
27
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
28
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
29
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
30
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
31
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
32
+ function getIteratorFn(maybeIterable) {
33
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
34
+ return null;
35
+ }
36
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
37
+ if (typeof maybeIterator === "function") {
38
+ return maybeIterator;
39
+ }
40
+ return null;
41
+ }
42
+ var ReactCurrentDispatcher = {
43
+ /**
44
+ * @internal
45
+ * @type {ReactComponent}
46
+ */
47
+ current: null
48
+ };
49
+ var ReactCurrentBatchConfig = {
50
+ transition: null
51
+ };
52
+ var ReactCurrentActQueue = {
53
+ current: null,
54
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
55
+ isBatchingLegacy: false,
56
+ didScheduleLegacyUpdate: false
57
+ };
58
+ var ReactCurrentOwner = {
59
+ /**
60
+ * @internal
61
+ * @type {ReactComponent}
62
+ */
63
+ current: null
64
+ };
65
+ var ReactDebugCurrentFrame = {};
66
+ var currentExtraStackFrame = null;
67
+ function setExtraStackFrame(stack) {
68
+ {
69
+ currentExtraStackFrame = stack;
70
+ }
71
+ }
72
+ {
73
+ ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
74
+ {
75
+ currentExtraStackFrame = stack;
76
+ }
77
+ };
78
+ ReactDebugCurrentFrame.getCurrentStack = null;
79
+ ReactDebugCurrentFrame.getStackAddendum = function() {
80
+ var stack = "";
81
+ if (currentExtraStackFrame) {
82
+ stack += currentExtraStackFrame;
83
+ }
84
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
85
+ if (impl) {
86
+ stack += impl() || "";
87
+ }
88
+ return stack;
89
+ };
90
+ }
91
+ var enableScopeAPI = false;
92
+ var enableCacheElement = false;
93
+ var enableTransitionTracing = false;
94
+ var enableLegacyHidden = false;
95
+ var enableDebugTracing = false;
96
+ var ReactSharedInternals = {
97
+ ReactCurrentDispatcher,
98
+ ReactCurrentBatchConfig,
99
+ ReactCurrentOwner
100
+ };
101
+ {
102
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
103
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
104
+ }
105
+ function warn(format) {
106
+ {
107
+ {
108
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
109
+ args[_key - 1] = arguments[_key];
110
+ }
111
+ printWarning("warn", format, args);
112
+ }
113
+ }
114
+ }
115
+ function error(format) {
116
+ {
117
+ {
118
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
119
+ args[_key2 - 1] = arguments[_key2];
120
+ }
121
+ printWarning("error", format, args);
122
+ }
123
+ }
124
+ }
125
+ function printWarning(level, format, args) {
126
+ {
127
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
128
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
129
+ if (stack !== "") {
130
+ format += "%s";
131
+ args = args.concat([stack]);
132
+ }
133
+ var argsWithFormat = args.map(function(item) {
134
+ return String(item);
135
+ });
136
+ argsWithFormat.unshift("Warning: " + format);
137
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
138
+ }
139
+ }
140
+ var didWarnStateUpdateForUnmountedComponent = {};
141
+ function warnNoop(publicInstance, callerName) {
142
+ {
143
+ var _constructor = publicInstance.constructor;
144
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
145
+ var warningKey = componentName + "." + callerName;
146
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
147
+ return;
148
+ }
149
+ error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
150
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
151
+ }
152
+ }
153
+ var ReactNoopUpdateQueue = {
154
+ /**
155
+ * Checks whether or not this composite component is mounted.
156
+ * @param {ReactClass} publicInstance The instance we want to test.
157
+ * @return {boolean} True if mounted, false otherwise.
158
+ * @protected
159
+ * @final
160
+ */
161
+ isMounted: function(publicInstance) {
162
+ return false;
163
+ },
164
+ /**
165
+ * Forces an update. This should only be invoked when it is known with
166
+ * certainty that we are **not** in a DOM transaction.
167
+ *
168
+ * You may want to call this when you know that some deeper aspect of the
169
+ * component's state has changed but `setState` was not called.
170
+ *
171
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
172
+ * `componentWillUpdate` and `componentDidUpdate`.
173
+ *
174
+ * @param {ReactClass} publicInstance The instance that should rerender.
175
+ * @param {?function} callback Called after component is updated.
176
+ * @param {?string} callerName name of the calling function in the public API.
177
+ * @internal
178
+ */
179
+ enqueueForceUpdate: function(publicInstance, callback, callerName) {
180
+ warnNoop(publicInstance, "forceUpdate");
181
+ },
182
+ /**
183
+ * Replaces all of the state. Always use this or `setState` to mutate state.
184
+ * You should treat `this.state` as immutable.
185
+ *
186
+ * There is no guarantee that `this.state` will be immediately updated, so
187
+ * accessing `this.state` after calling this method may return the old value.
188
+ *
189
+ * @param {ReactClass} publicInstance The instance that should rerender.
190
+ * @param {object} completeState Next state.
191
+ * @param {?function} callback Called after component is updated.
192
+ * @param {?string} callerName name of the calling function in the public API.
193
+ * @internal
194
+ */
195
+ enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
196
+ warnNoop(publicInstance, "replaceState");
197
+ },
198
+ /**
199
+ * Sets a subset of the state. This only exists because _pendingState is
200
+ * internal. This provides a merging strategy that is not available to deep
201
+ * properties which is confusing. TODO: Expose pendingState or don't use it
202
+ * during the merge.
203
+ *
204
+ * @param {ReactClass} publicInstance The instance that should rerender.
205
+ * @param {object} partialState Next partial state to be merged with state.
206
+ * @param {?function} callback Called after component is updated.
207
+ * @param {?string} Name of the calling function in the public API.
208
+ * @internal
209
+ */
210
+ enqueueSetState: function(publicInstance, partialState, callback, callerName) {
211
+ warnNoop(publicInstance, "setState");
212
+ }
213
+ };
214
+ var assign = Object.assign;
215
+ var emptyObject = {};
216
+ {
217
+ Object.freeze(emptyObject);
218
+ }
219
+ function Component(props, context, updater) {
220
+ this.props = props;
221
+ this.context = context;
222
+ this.refs = emptyObject;
223
+ this.updater = updater || ReactNoopUpdateQueue;
224
+ }
225
+ Component.prototype.isReactComponent = {};
226
+ Component.prototype.setState = function(partialState, callback) {
227
+ if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
228
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
229
+ }
230
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
231
+ };
232
+ Component.prototype.forceUpdate = function(callback) {
233
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
234
+ };
235
+ {
236
+ var deprecatedAPIs = {
237
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
238
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
239
+ };
240
+ var defineDeprecationWarning = function(methodName, info) {
241
+ Object.defineProperty(Component.prototype, methodName, {
242
+ get: function() {
243
+ warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
244
+ return void 0;
245
+ }
246
+ });
247
+ };
248
+ for (var fnName in deprecatedAPIs) {
249
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
250
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
251
+ }
252
+ }
253
+ }
254
+ function ComponentDummy() {
255
+ }
256
+ ComponentDummy.prototype = Component.prototype;
257
+ function PureComponent(props, context, updater) {
258
+ this.props = props;
259
+ this.context = context;
260
+ this.refs = emptyObject;
261
+ this.updater = updater || ReactNoopUpdateQueue;
262
+ }
263
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
264
+ pureComponentPrototype.constructor = PureComponent;
265
+ assign(pureComponentPrototype, Component.prototype);
266
+ pureComponentPrototype.isPureReactComponent = true;
267
+ function createRef() {
268
+ var refObject = {
269
+ current: null
270
+ };
271
+ {
272
+ Object.seal(refObject);
273
+ }
274
+ return refObject;
275
+ }
276
+ var isArrayImpl = Array.isArray;
277
+ function isArray(a) {
278
+ return isArrayImpl(a);
279
+ }
280
+ function typeName(value) {
281
+ {
282
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
283
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
284
+ return type;
285
+ }
286
+ }
287
+ function willCoercionThrow(value) {
288
+ {
289
+ try {
290
+ testStringCoercion(value);
291
+ return false;
292
+ } catch (e) {
293
+ return true;
294
+ }
295
+ }
296
+ }
297
+ function testStringCoercion(value) {
298
+ return "" + value;
299
+ }
300
+ function checkKeyStringCoercion(value) {
301
+ {
302
+ if (willCoercionThrow(value)) {
303
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
304
+ return testStringCoercion(value);
305
+ }
306
+ }
307
+ }
308
+ function getWrappedName(outerType, innerType, wrapperName) {
309
+ var displayName = outerType.displayName;
310
+ if (displayName) {
311
+ return displayName;
312
+ }
313
+ var functionName = innerType.displayName || innerType.name || "";
314
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
315
+ }
316
+ function getContextName(type) {
317
+ return type.displayName || "Context";
318
+ }
319
+ function getComponentNameFromType(type) {
320
+ if (type == null) {
321
+ return null;
322
+ }
323
+ {
324
+ if (typeof type.tag === "number") {
325
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
326
+ }
327
+ }
328
+ if (typeof type === "function") {
329
+ return type.displayName || type.name || null;
330
+ }
331
+ if (typeof type === "string") {
332
+ return type;
333
+ }
334
+ switch (type) {
335
+ case REACT_FRAGMENT_TYPE:
336
+ return "Fragment";
337
+ case REACT_PORTAL_TYPE:
338
+ return "Portal";
339
+ case REACT_PROFILER_TYPE:
340
+ return "Profiler";
341
+ case REACT_STRICT_MODE_TYPE:
342
+ return "StrictMode";
343
+ case REACT_SUSPENSE_TYPE:
344
+ return "Suspense";
345
+ case REACT_SUSPENSE_LIST_TYPE:
346
+ return "SuspenseList";
347
+ }
348
+ if (typeof type === "object") {
349
+ switch (type.$$typeof) {
350
+ case REACT_CONTEXT_TYPE:
351
+ var context = type;
352
+ return getContextName(context) + ".Consumer";
353
+ case REACT_PROVIDER_TYPE:
354
+ var provider = type;
355
+ return getContextName(provider._context) + ".Provider";
356
+ case REACT_FORWARD_REF_TYPE:
357
+ return getWrappedName(type, type.render, "ForwardRef");
358
+ case REACT_MEMO_TYPE:
359
+ var outerName = type.displayName || null;
360
+ if (outerName !== null) {
361
+ return outerName;
362
+ }
363
+ return getComponentNameFromType(type.type) || "Memo";
364
+ case REACT_LAZY_TYPE: {
365
+ var lazyComponent = type;
366
+ var payload = lazyComponent._payload;
367
+ var init = lazyComponent._init;
368
+ try {
369
+ return getComponentNameFromType(init(payload));
370
+ } catch (x) {
371
+ return null;
372
+ }
373
+ }
374
+ }
375
+ }
376
+ return null;
377
+ }
378
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
379
+ var RESERVED_PROPS = {
380
+ key: true,
381
+ ref: true,
382
+ __self: true,
383
+ __source: true
384
+ };
385
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
386
+ {
387
+ didWarnAboutStringRefs = {};
388
+ }
389
+ function hasValidRef(config) {
390
+ {
391
+ if (hasOwnProperty.call(config, "ref")) {
392
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
393
+ if (getter && getter.isReactWarning) {
394
+ return false;
395
+ }
396
+ }
397
+ }
398
+ return config.ref !== void 0;
399
+ }
400
+ function hasValidKey(config) {
401
+ {
402
+ if (hasOwnProperty.call(config, "key")) {
403
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
404
+ if (getter && getter.isReactWarning) {
405
+ return false;
406
+ }
407
+ }
408
+ }
409
+ return config.key !== void 0;
410
+ }
411
+ function defineKeyPropWarningGetter(props, displayName) {
412
+ var warnAboutAccessingKey = function() {
413
+ {
414
+ if (!specialPropKeyWarningShown) {
415
+ specialPropKeyWarningShown = true;
416
+ error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
417
+ }
418
+ }
419
+ };
420
+ warnAboutAccessingKey.isReactWarning = true;
421
+ Object.defineProperty(props, "key", {
422
+ get: warnAboutAccessingKey,
423
+ configurable: true
424
+ });
425
+ }
426
+ function defineRefPropWarningGetter(props, displayName) {
427
+ var warnAboutAccessingRef = function() {
428
+ {
429
+ if (!specialPropRefWarningShown) {
430
+ specialPropRefWarningShown = true;
431
+ error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
432
+ }
433
+ }
434
+ };
435
+ warnAboutAccessingRef.isReactWarning = true;
436
+ Object.defineProperty(props, "ref", {
437
+ get: warnAboutAccessingRef,
438
+ configurable: true
439
+ });
440
+ }
441
+ function warnIfStringRefCannotBeAutoConverted(config) {
442
+ {
443
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
444
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
445
+ if (!didWarnAboutStringRefs[componentName]) {
446
+ error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
447
+ didWarnAboutStringRefs[componentName] = true;
448
+ }
449
+ }
450
+ }
451
+ }
452
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
453
+ var element = {
454
+ // This tag allows us to uniquely identify this as a React Element
455
+ $$typeof: REACT_ELEMENT_TYPE,
456
+ // Built-in properties that belong on the element
457
+ type,
458
+ key,
459
+ ref,
460
+ props,
461
+ // Record the component responsible for creating this element.
462
+ _owner: owner
463
+ };
464
+ {
465
+ element._store = {};
466
+ Object.defineProperty(element._store, "validated", {
467
+ configurable: false,
468
+ enumerable: false,
469
+ writable: true,
470
+ value: false
471
+ });
472
+ Object.defineProperty(element, "_self", {
473
+ configurable: false,
474
+ enumerable: false,
475
+ writable: false,
476
+ value: self
477
+ });
478
+ Object.defineProperty(element, "_source", {
479
+ configurable: false,
480
+ enumerable: false,
481
+ writable: false,
482
+ value: source
483
+ });
484
+ if (Object.freeze) {
485
+ Object.freeze(element.props);
486
+ Object.freeze(element);
487
+ }
488
+ }
489
+ return element;
490
+ };
491
+ function createElement(type, config, children) {
492
+ var propName;
493
+ var props = {};
494
+ var key = null;
495
+ var ref = null;
496
+ var self = null;
497
+ var source = null;
498
+ if (config != null) {
499
+ if (hasValidRef(config)) {
500
+ ref = config.ref;
501
+ {
502
+ warnIfStringRefCannotBeAutoConverted(config);
503
+ }
504
+ }
505
+ if (hasValidKey(config)) {
506
+ {
507
+ checkKeyStringCoercion(config.key);
508
+ }
509
+ key = "" + config.key;
510
+ }
511
+ self = config.__self === void 0 ? null : config.__self;
512
+ source = config.__source === void 0 ? null : config.__source;
513
+ for (propName in config) {
514
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
515
+ props[propName] = config[propName];
516
+ }
517
+ }
518
+ }
519
+ var childrenLength = arguments.length - 2;
520
+ if (childrenLength === 1) {
521
+ props.children = children;
522
+ } else if (childrenLength > 1) {
523
+ var childArray = Array(childrenLength);
524
+ for (var i = 0; i < childrenLength; i++) {
525
+ childArray[i] = arguments[i + 2];
526
+ }
527
+ {
528
+ if (Object.freeze) {
529
+ Object.freeze(childArray);
530
+ }
531
+ }
532
+ props.children = childArray;
533
+ }
534
+ if (type && type.defaultProps) {
535
+ var defaultProps = type.defaultProps;
536
+ for (propName in defaultProps) {
537
+ if (props[propName] === void 0) {
538
+ props[propName] = defaultProps[propName];
539
+ }
540
+ }
541
+ }
542
+ {
543
+ if (key || ref) {
544
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
545
+ if (key) {
546
+ defineKeyPropWarningGetter(props, displayName);
547
+ }
548
+ if (ref) {
549
+ defineRefPropWarningGetter(props, displayName);
550
+ }
551
+ }
552
+ }
553
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
554
+ }
555
+ function cloneAndReplaceKey(oldElement, newKey) {
556
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
557
+ return newElement;
558
+ }
559
+ function cloneElement(element, config, children) {
560
+ if (element === null || element === void 0) {
561
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
562
+ }
563
+ var propName;
564
+ var props = assign({}, element.props);
565
+ var key = element.key;
566
+ var ref = element.ref;
567
+ var self = element._self;
568
+ var source = element._source;
569
+ var owner = element._owner;
570
+ if (config != null) {
571
+ if (hasValidRef(config)) {
572
+ ref = config.ref;
573
+ owner = ReactCurrentOwner.current;
574
+ }
575
+ if (hasValidKey(config)) {
576
+ {
577
+ checkKeyStringCoercion(config.key);
578
+ }
579
+ key = "" + config.key;
580
+ }
581
+ var defaultProps;
582
+ if (element.type && element.type.defaultProps) {
583
+ defaultProps = element.type.defaultProps;
584
+ }
585
+ for (propName in config) {
586
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
587
+ if (config[propName] === void 0 && defaultProps !== void 0) {
588
+ props[propName] = defaultProps[propName];
589
+ } else {
590
+ props[propName] = config[propName];
591
+ }
592
+ }
593
+ }
594
+ }
595
+ var childrenLength = arguments.length - 2;
596
+ if (childrenLength === 1) {
597
+ props.children = children;
598
+ } else if (childrenLength > 1) {
599
+ var childArray = Array(childrenLength);
600
+ for (var i = 0; i < childrenLength; i++) {
601
+ childArray[i] = arguments[i + 2];
602
+ }
603
+ props.children = childArray;
604
+ }
605
+ return ReactElement(element.type, key, ref, self, source, owner, props);
606
+ }
607
+ function isValidElement(object) {
608
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
609
+ }
610
+ var SEPARATOR = ".";
611
+ var SUBSEPARATOR = ":";
612
+ function escape(key) {
613
+ var escapeRegex = /[=:]/g;
614
+ var escaperLookup = {
615
+ "=": "=0",
616
+ ":": "=2"
617
+ };
618
+ var escapedString = key.replace(escapeRegex, function(match) {
619
+ return escaperLookup[match];
620
+ });
621
+ return "$" + escapedString;
622
+ }
623
+ var didWarnAboutMaps = false;
624
+ var userProvidedKeyEscapeRegex = /\/+/g;
625
+ function escapeUserProvidedKey(text) {
626
+ return text.replace(userProvidedKeyEscapeRegex, "$&/");
627
+ }
628
+ function getElementKey(element, index) {
629
+ if (typeof element === "object" && element !== null && element.key != null) {
630
+ {
631
+ checkKeyStringCoercion(element.key);
632
+ }
633
+ return escape("" + element.key);
634
+ }
635
+ return index.toString(36);
636
+ }
637
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
638
+ var type = typeof children;
639
+ if (type === "undefined" || type === "boolean") {
640
+ children = null;
641
+ }
642
+ var invokeCallback = false;
643
+ if (children === null) {
644
+ invokeCallback = true;
645
+ } else {
646
+ switch (type) {
647
+ case "string":
648
+ case "number":
649
+ invokeCallback = true;
650
+ break;
651
+ case "object":
652
+ switch (children.$$typeof) {
653
+ case REACT_ELEMENT_TYPE:
654
+ case REACT_PORTAL_TYPE:
655
+ invokeCallback = true;
656
+ }
657
+ }
658
+ }
659
+ if (invokeCallback) {
660
+ var _child = children;
661
+ var mappedChild = callback(_child);
662
+ var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
663
+ if (isArray(mappedChild)) {
664
+ var escapedChildKey = "";
665
+ if (childKey != null) {
666
+ escapedChildKey = escapeUserProvidedKey(childKey) + "/";
667
+ }
668
+ mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
669
+ return c;
670
+ });
671
+ } else if (mappedChild != null) {
672
+ if (isValidElement(mappedChild)) {
673
+ {
674
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
675
+ checkKeyStringCoercion(mappedChild.key);
676
+ }
677
+ }
678
+ mappedChild = cloneAndReplaceKey(
679
+ mappedChild,
680
+ // Keep both the (mapped) and old keys if they differ, just as
681
+ // traverseAllChildren used to do for objects as children
682
+ escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
683
+ (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
684
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
685
+ // eslint-disable-next-line react-internal/safe-string-coercion
686
+ escapeUserProvidedKey("" + mappedChild.key) + "/"
687
+ ) : "") + childKey
688
+ );
689
+ }
690
+ array.push(mappedChild);
691
+ }
692
+ return 1;
693
+ }
694
+ var child;
695
+ var nextName;
696
+ var subtreeCount = 0;
697
+ var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
698
+ if (isArray(children)) {
699
+ for (var i = 0; i < children.length; i++) {
700
+ child = children[i];
701
+ nextName = nextNamePrefix + getElementKey(child, i);
702
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
703
+ }
704
+ } else {
705
+ var iteratorFn = getIteratorFn(children);
706
+ if (typeof iteratorFn === "function") {
707
+ var iterableChildren = children;
708
+ {
709
+ if (iteratorFn === iterableChildren.entries) {
710
+ if (!didWarnAboutMaps) {
711
+ warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
712
+ }
713
+ didWarnAboutMaps = true;
714
+ }
715
+ }
716
+ var iterator = iteratorFn.call(iterableChildren);
717
+ var step;
718
+ var ii = 0;
719
+ while (!(step = iterator.next()).done) {
720
+ child = step.value;
721
+ nextName = nextNamePrefix + getElementKey(child, ii++);
722
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
723
+ }
724
+ } else if (type === "object") {
725
+ var childrenString = String(children);
726
+ throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
727
+ }
728
+ }
729
+ return subtreeCount;
730
+ }
731
+ function mapChildren(children, func, context) {
732
+ if (children == null) {
733
+ return children;
734
+ }
735
+ var result = [];
736
+ var count = 0;
737
+ mapIntoArray(children, result, "", "", function(child) {
738
+ return func.call(context, child, count++);
739
+ });
740
+ return result;
741
+ }
742
+ function countChildren(children) {
743
+ var n = 0;
744
+ mapChildren(children, function() {
745
+ n++;
746
+ });
747
+ return n;
748
+ }
749
+ function forEachChildren(children, forEachFunc, forEachContext) {
750
+ mapChildren(children, function() {
751
+ forEachFunc.apply(this, arguments);
752
+ }, forEachContext);
753
+ }
754
+ function toArray(children) {
755
+ return mapChildren(children, function(child) {
756
+ return child;
757
+ }) || [];
758
+ }
759
+ function onlyChild(children) {
760
+ if (!isValidElement(children)) {
761
+ throw new Error("React.Children.only expected to receive a single React element child.");
762
+ }
763
+ return children;
764
+ }
765
+ function createContext(defaultValue) {
766
+ var context = {
767
+ $$typeof: REACT_CONTEXT_TYPE,
768
+ // As a workaround to support multiple concurrent renderers, we categorize
769
+ // some renderers as primary and others as secondary. We only expect
770
+ // there to be two concurrent renderers at most: React Native (primary) and
771
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
772
+ // Secondary renderers store their context values on separate fields.
773
+ _currentValue: defaultValue,
774
+ _currentValue2: defaultValue,
775
+ // Used to track how many concurrent renderers this context currently
776
+ // supports within in a single renderer. Such as parallel server rendering.
777
+ _threadCount: 0,
778
+ // These are circular
779
+ Provider: null,
780
+ Consumer: null,
781
+ // Add these to use same hidden class in VM as ServerContext
782
+ _defaultValue: null,
783
+ _globalName: null
784
+ };
785
+ context.Provider = {
786
+ $$typeof: REACT_PROVIDER_TYPE,
787
+ _context: context
788
+ };
789
+ var hasWarnedAboutUsingNestedContextConsumers = false;
790
+ var hasWarnedAboutUsingConsumerProvider = false;
791
+ var hasWarnedAboutDisplayNameOnConsumer = false;
792
+ {
793
+ var Consumer = {
794
+ $$typeof: REACT_CONTEXT_TYPE,
795
+ _context: context
796
+ };
797
+ Object.defineProperties(Consumer, {
798
+ Provider: {
799
+ get: function() {
800
+ if (!hasWarnedAboutUsingConsumerProvider) {
801
+ hasWarnedAboutUsingConsumerProvider = true;
802
+ error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
803
+ }
804
+ return context.Provider;
805
+ },
806
+ set: function(_Provider) {
807
+ context.Provider = _Provider;
808
+ }
809
+ },
810
+ _currentValue: {
811
+ get: function() {
812
+ return context._currentValue;
813
+ },
814
+ set: function(_currentValue) {
815
+ context._currentValue = _currentValue;
816
+ }
817
+ },
818
+ _currentValue2: {
819
+ get: function() {
820
+ return context._currentValue2;
821
+ },
822
+ set: function(_currentValue2) {
823
+ context._currentValue2 = _currentValue2;
824
+ }
825
+ },
826
+ _threadCount: {
827
+ get: function() {
828
+ return context._threadCount;
829
+ },
830
+ set: function(_threadCount) {
831
+ context._threadCount = _threadCount;
832
+ }
833
+ },
834
+ Consumer: {
835
+ get: function() {
836
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
837
+ hasWarnedAboutUsingNestedContextConsumers = true;
838
+ error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
839
+ }
840
+ return context.Consumer;
841
+ }
842
+ },
843
+ displayName: {
844
+ get: function() {
845
+ return context.displayName;
846
+ },
847
+ set: function(displayName) {
848
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
849
+ warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
850
+ hasWarnedAboutDisplayNameOnConsumer = true;
851
+ }
852
+ }
853
+ }
854
+ });
855
+ context.Consumer = Consumer;
856
+ }
857
+ {
858
+ context._currentRenderer = null;
859
+ context._currentRenderer2 = null;
860
+ }
861
+ return context;
862
+ }
863
+ var Uninitialized = -1;
864
+ var Pending = 0;
865
+ var Resolved = 1;
866
+ var Rejected = 2;
867
+ function lazyInitializer(payload) {
868
+ if (payload._status === Uninitialized) {
869
+ var ctor = payload._result;
870
+ var thenable = ctor();
871
+ thenable.then(function(moduleObject2) {
872
+ if (payload._status === Pending || payload._status === Uninitialized) {
873
+ var resolved = payload;
874
+ resolved._status = Resolved;
875
+ resolved._result = moduleObject2;
876
+ }
877
+ }, function(error2) {
878
+ if (payload._status === Pending || payload._status === Uninitialized) {
879
+ var rejected = payload;
880
+ rejected._status = Rejected;
881
+ rejected._result = error2;
882
+ }
883
+ });
884
+ if (payload._status === Uninitialized) {
885
+ var pending = payload;
886
+ pending._status = Pending;
887
+ pending._result = thenable;
888
+ }
889
+ }
890
+ if (payload._status === Resolved) {
891
+ var moduleObject = payload._result;
892
+ {
893
+ if (moduleObject === void 0) {
894
+ error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
895
+ }
896
+ }
897
+ {
898
+ if (!("default" in moduleObject)) {
899
+ error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
900
+ }
901
+ }
902
+ return moduleObject.default;
903
+ } else {
904
+ throw payload._result;
905
+ }
906
+ }
907
+ function lazy(ctor) {
908
+ var payload = {
909
+ // We use these fields to store the result.
910
+ _status: Uninitialized,
911
+ _result: ctor
912
+ };
913
+ var lazyType = {
914
+ $$typeof: REACT_LAZY_TYPE,
915
+ _payload: payload,
916
+ _init: lazyInitializer
917
+ };
918
+ {
919
+ var defaultProps;
920
+ var propTypes;
921
+ Object.defineProperties(lazyType, {
922
+ defaultProps: {
923
+ configurable: true,
924
+ get: function() {
925
+ return defaultProps;
926
+ },
927
+ set: function(newDefaultProps) {
928
+ error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
929
+ defaultProps = newDefaultProps;
930
+ Object.defineProperty(lazyType, "defaultProps", {
931
+ enumerable: true
932
+ });
933
+ }
934
+ },
935
+ propTypes: {
936
+ configurable: true,
937
+ get: function() {
938
+ return propTypes;
939
+ },
940
+ set: function(newPropTypes) {
941
+ error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
942
+ propTypes = newPropTypes;
943
+ Object.defineProperty(lazyType, "propTypes", {
944
+ enumerable: true
945
+ });
946
+ }
947
+ }
948
+ });
949
+ }
950
+ return lazyType;
951
+ }
952
+ function forwardRef(render) {
953
+ {
954
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
955
+ error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
956
+ } else if (typeof render !== "function") {
957
+ error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
958
+ } else {
959
+ if (render.length !== 0 && render.length !== 2) {
960
+ error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
961
+ }
962
+ }
963
+ if (render != null) {
964
+ if (render.defaultProps != null || render.propTypes != null) {
965
+ error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
966
+ }
967
+ }
968
+ }
969
+ var elementType = {
970
+ $$typeof: REACT_FORWARD_REF_TYPE,
971
+ render
972
+ };
973
+ {
974
+ var ownName;
975
+ Object.defineProperty(elementType, "displayName", {
976
+ enumerable: false,
977
+ configurable: true,
978
+ get: function() {
979
+ return ownName;
980
+ },
981
+ set: function(name) {
982
+ ownName = name;
983
+ if (!render.name && !render.displayName) {
984
+ render.displayName = name;
985
+ }
986
+ }
987
+ });
988
+ }
989
+ return elementType;
990
+ }
991
+ var REACT_MODULE_REFERENCE;
992
+ {
993
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
994
+ }
995
+ function isValidElementType(type) {
996
+ if (typeof type === "string" || typeof type === "function") {
997
+ return true;
998
+ }
999
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1000
+ return true;
1001
+ }
1002
+ if (typeof type === "object" && type !== null) {
1003
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1004
+ // types supported by any Flight configuration anywhere since
1005
+ // we don't know which Flight build this will end up being used
1006
+ // with.
1007
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1008
+ return true;
1009
+ }
1010
+ }
1011
+ return false;
1012
+ }
1013
+ function memo(type, compare) {
1014
+ {
1015
+ if (!isValidElementType(type)) {
1016
+ error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1017
+ }
1018
+ }
1019
+ var elementType = {
1020
+ $$typeof: REACT_MEMO_TYPE,
1021
+ type,
1022
+ compare: compare === void 0 ? null : compare
1023
+ };
1024
+ {
1025
+ var ownName;
1026
+ Object.defineProperty(elementType, "displayName", {
1027
+ enumerable: false,
1028
+ configurable: true,
1029
+ get: function() {
1030
+ return ownName;
1031
+ },
1032
+ set: function(name) {
1033
+ ownName = name;
1034
+ if (!type.name && !type.displayName) {
1035
+ type.displayName = name;
1036
+ }
1037
+ }
1038
+ });
1039
+ }
1040
+ return elementType;
1041
+ }
1042
+ function resolveDispatcher() {
1043
+ var dispatcher = ReactCurrentDispatcher.current;
1044
+ {
1045
+ if (dispatcher === null) {
1046
+ error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1047
+ }
1048
+ }
1049
+ return dispatcher;
1050
+ }
1051
+ function useContext(Context) {
1052
+ var dispatcher = resolveDispatcher();
1053
+ {
1054
+ if (Context._context !== void 0) {
1055
+ var realContext = Context._context;
1056
+ if (realContext.Consumer === Context) {
1057
+ error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1058
+ } else if (realContext.Provider === Context) {
1059
+ error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1060
+ }
1061
+ }
1062
+ }
1063
+ return dispatcher.useContext(Context);
1064
+ }
1065
+ function useState(initialState) {
1066
+ var dispatcher = resolveDispatcher();
1067
+ return dispatcher.useState(initialState);
1068
+ }
1069
+ function useReducer(reducer, initialArg, init) {
1070
+ var dispatcher = resolveDispatcher();
1071
+ return dispatcher.useReducer(reducer, initialArg, init);
1072
+ }
1073
+ function useRef(initialValue) {
1074
+ var dispatcher = resolveDispatcher();
1075
+ return dispatcher.useRef(initialValue);
1076
+ }
1077
+ function useEffect(create, deps) {
1078
+ var dispatcher = resolveDispatcher();
1079
+ return dispatcher.useEffect(create, deps);
1080
+ }
1081
+ function useInsertionEffect(create, deps) {
1082
+ var dispatcher = resolveDispatcher();
1083
+ return dispatcher.useInsertionEffect(create, deps);
1084
+ }
1085
+ function useLayoutEffect(create, deps) {
1086
+ var dispatcher = resolveDispatcher();
1087
+ return dispatcher.useLayoutEffect(create, deps);
1088
+ }
1089
+ function useCallback(callback, deps) {
1090
+ var dispatcher = resolveDispatcher();
1091
+ return dispatcher.useCallback(callback, deps);
1092
+ }
1093
+ function useMemo(create, deps) {
1094
+ var dispatcher = resolveDispatcher();
1095
+ return dispatcher.useMemo(create, deps);
1096
+ }
1097
+ function useImperativeHandle(ref, create, deps) {
1098
+ var dispatcher = resolveDispatcher();
1099
+ return dispatcher.useImperativeHandle(ref, create, deps);
1100
+ }
1101
+ function useDebugValue(value, formatterFn) {
1102
+ {
1103
+ var dispatcher = resolveDispatcher();
1104
+ return dispatcher.useDebugValue(value, formatterFn);
1105
+ }
1106
+ }
1107
+ function useTransition() {
1108
+ var dispatcher = resolveDispatcher();
1109
+ return dispatcher.useTransition();
1110
+ }
1111
+ function useDeferredValue(value) {
1112
+ var dispatcher = resolveDispatcher();
1113
+ return dispatcher.useDeferredValue(value);
1114
+ }
1115
+ function useId() {
1116
+ var dispatcher = resolveDispatcher();
1117
+ return dispatcher.useId();
1118
+ }
1119
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1120
+ var dispatcher = resolveDispatcher();
1121
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1122
+ }
1123
+ var disabledDepth = 0;
1124
+ var prevLog;
1125
+ var prevInfo;
1126
+ var prevWarn;
1127
+ var prevError;
1128
+ var prevGroup;
1129
+ var prevGroupCollapsed;
1130
+ var prevGroupEnd;
1131
+ function disabledLog() {
1132
+ }
1133
+ disabledLog.__reactDisabledLog = true;
1134
+ function disableLogs() {
1135
+ {
1136
+ if (disabledDepth === 0) {
1137
+ prevLog = console.log;
1138
+ prevInfo = console.info;
1139
+ prevWarn = console.warn;
1140
+ prevError = console.error;
1141
+ prevGroup = console.group;
1142
+ prevGroupCollapsed = console.groupCollapsed;
1143
+ prevGroupEnd = console.groupEnd;
1144
+ var props = {
1145
+ configurable: true,
1146
+ enumerable: true,
1147
+ value: disabledLog,
1148
+ writable: true
1149
+ };
1150
+ Object.defineProperties(console, {
1151
+ info: props,
1152
+ log: props,
1153
+ warn: props,
1154
+ error: props,
1155
+ group: props,
1156
+ groupCollapsed: props,
1157
+ groupEnd: props
1158
+ });
1159
+ }
1160
+ disabledDepth++;
1161
+ }
1162
+ }
1163
+ function reenableLogs() {
1164
+ {
1165
+ disabledDepth--;
1166
+ if (disabledDepth === 0) {
1167
+ var props = {
1168
+ configurable: true,
1169
+ enumerable: true,
1170
+ writable: true
1171
+ };
1172
+ Object.defineProperties(console, {
1173
+ log: assign({}, props, {
1174
+ value: prevLog
1175
+ }),
1176
+ info: assign({}, props, {
1177
+ value: prevInfo
1178
+ }),
1179
+ warn: assign({}, props, {
1180
+ value: prevWarn
1181
+ }),
1182
+ error: assign({}, props, {
1183
+ value: prevError
1184
+ }),
1185
+ group: assign({}, props, {
1186
+ value: prevGroup
1187
+ }),
1188
+ groupCollapsed: assign({}, props, {
1189
+ value: prevGroupCollapsed
1190
+ }),
1191
+ groupEnd: assign({}, props, {
1192
+ value: prevGroupEnd
1193
+ })
1194
+ });
1195
+ }
1196
+ if (disabledDepth < 0) {
1197
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1198
+ }
1199
+ }
1200
+ }
1201
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1202
+ var prefix;
1203
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1204
+ {
1205
+ if (prefix === void 0) {
1206
+ try {
1207
+ throw Error();
1208
+ } catch (x) {
1209
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1210
+ prefix = match && match[1] || "";
1211
+ }
1212
+ }
1213
+ return "\n" + prefix + name;
1214
+ }
1215
+ }
1216
+ var reentry = false;
1217
+ var componentFrameCache;
1218
+ {
1219
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1220
+ componentFrameCache = new PossiblyWeakMap();
1221
+ }
1222
+ function describeNativeComponentFrame(fn, construct) {
1223
+ if (!fn || reentry) {
1224
+ return "";
1225
+ }
1226
+ {
1227
+ var frame = componentFrameCache.get(fn);
1228
+ if (frame !== void 0) {
1229
+ return frame;
1230
+ }
1231
+ }
1232
+ var control;
1233
+ reentry = true;
1234
+ var previousPrepareStackTrace = Error.prepareStackTrace;
1235
+ Error.prepareStackTrace = void 0;
1236
+ var previousDispatcher;
1237
+ {
1238
+ previousDispatcher = ReactCurrentDispatcher$1.current;
1239
+ ReactCurrentDispatcher$1.current = null;
1240
+ disableLogs();
1241
+ }
1242
+ try {
1243
+ if (construct) {
1244
+ var Fake = function() {
1245
+ throw Error();
1246
+ };
1247
+ Object.defineProperty(Fake.prototype, "props", {
1248
+ set: function() {
1249
+ throw Error();
1250
+ }
1251
+ });
1252
+ if (typeof Reflect === "object" && Reflect.construct) {
1253
+ try {
1254
+ Reflect.construct(Fake, []);
1255
+ } catch (x) {
1256
+ control = x;
1257
+ }
1258
+ Reflect.construct(fn, [], Fake);
1259
+ } else {
1260
+ try {
1261
+ Fake.call();
1262
+ } catch (x) {
1263
+ control = x;
1264
+ }
1265
+ fn.call(Fake.prototype);
1266
+ }
1267
+ } else {
1268
+ try {
1269
+ throw Error();
1270
+ } catch (x) {
1271
+ control = x;
1272
+ }
1273
+ fn();
1274
+ }
1275
+ } catch (sample) {
1276
+ if (sample && control && typeof sample.stack === "string") {
1277
+ var sampleLines = sample.stack.split("\n");
1278
+ var controlLines = control.stack.split("\n");
1279
+ var s = sampleLines.length - 1;
1280
+ var c = controlLines.length - 1;
1281
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1282
+ c--;
1283
+ }
1284
+ for (; s >= 1 && c >= 0; s--, c--) {
1285
+ if (sampleLines[s] !== controlLines[c]) {
1286
+ if (s !== 1 || c !== 1) {
1287
+ do {
1288
+ s--;
1289
+ c--;
1290
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1291
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1292
+ if (fn.displayName && _frame.includes("<anonymous>")) {
1293
+ _frame = _frame.replace("<anonymous>", fn.displayName);
1294
+ }
1295
+ {
1296
+ if (typeof fn === "function") {
1297
+ componentFrameCache.set(fn, _frame);
1298
+ }
1299
+ }
1300
+ return _frame;
1301
+ }
1302
+ } while (s >= 1 && c >= 0);
1303
+ }
1304
+ break;
1305
+ }
1306
+ }
1307
+ }
1308
+ } finally {
1309
+ reentry = false;
1310
+ {
1311
+ ReactCurrentDispatcher$1.current = previousDispatcher;
1312
+ reenableLogs();
1313
+ }
1314
+ Error.prepareStackTrace = previousPrepareStackTrace;
1315
+ }
1316
+ var name = fn ? fn.displayName || fn.name : "";
1317
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1318
+ {
1319
+ if (typeof fn === "function") {
1320
+ componentFrameCache.set(fn, syntheticFrame);
1321
+ }
1322
+ }
1323
+ return syntheticFrame;
1324
+ }
1325
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
1326
+ {
1327
+ return describeNativeComponentFrame(fn, false);
1328
+ }
1329
+ }
1330
+ function shouldConstruct(Component2) {
1331
+ var prototype = Component2.prototype;
1332
+ return !!(prototype && prototype.isReactComponent);
1333
+ }
1334
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1335
+ if (type == null) {
1336
+ return "";
1337
+ }
1338
+ if (typeof type === "function") {
1339
+ {
1340
+ return describeNativeComponentFrame(type, shouldConstruct(type));
1341
+ }
1342
+ }
1343
+ if (typeof type === "string") {
1344
+ return describeBuiltInComponentFrame(type);
1345
+ }
1346
+ switch (type) {
1347
+ case REACT_SUSPENSE_TYPE:
1348
+ return describeBuiltInComponentFrame("Suspense");
1349
+ case REACT_SUSPENSE_LIST_TYPE:
1350
+ return describeBuiltInComponentFrame("SuspenseList");
1351
+ }
1352
+ if (typeof type === "object") {
1353
+ switch (type.$$typeof) {
1354
+ case REACT_FORWARD_REF_TYPE:
1355
+ return describeFunctionComponentFrame(type.render);
1356
+ case REACT_MEMO_TYPE:
1357
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1358
+ case REACT_LAZY_TYPE: {
1359
+ var lazyComponent = type;
1360
+ var payload = lazyComponent._payload;
1361
+ var init = lazyComponent._init;
1362
+ try {
1363
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1364
+ } catch (x) {
1365
+ }
1366
+ }
1367
+ }
1368
+ }
1369
+ return "";
1370
+ }
1371
+ var loggedTypeFailures = {};
1372
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1373
+ function setCurrentlyValidatingElement(element) {
1374
+ {
1375
+ if (element) {
1376
+ var owner = element._owner;
1377
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1378
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1379
+ } else {
1380
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1381
+ }
1382
+ }
1383
+ }
1384
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
1385
+ {
1386
+ var has = Function.call.bind(hasOwnProperty);
1387
+ for (var typeSpecName in typeSpecs) {
1388
+ if (has(typeSpecs, typeSpecName)) {
1389
+ var error$1 = void 0;
1390
+ try {
1391
+ if (typeof typeSpecs[typeSpecName] !== "function") {
1392
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1393
+ err.name = "Invariant Violation";
1394
+ throw err;
1395
+ }
1396
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1397
+ } catch (ex) {
1398
+ error$1 = ex;
1399
+ }
1400
+ if (error$1 && !(error$1 instanceof Error)) {
1401
+ setCurrentlyValidatingElement(element);
1402
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
1403
+ setCurrentlyValidatingElement(null);
1404
+ }
1405
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1406
+ loggedTypeFailures[error$1.message] = true;
1407
+ setCurrentlyValidatingElement(element);
1408
+ error("Failed %s type: %s", location, error$1.message);
1409
+ setCurrentlyValidatingElement(null);
1410
+ }
1411
+ }
1412
+ }
1413
+ }
1414
+ }
1415
+ function setCurrentlyValidatingElement$1(element) {
1416
+ {
1417
+ if (element) {
1418
+ var owner = element._owner;
1419
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1420
+ setExtraStackFrame(stack);
1421
+ } else {
1422
+ setExtraStackFrame(null);
1423
+ }
1424
+ }
1425
+ }
1426
+ var propTypesMisspellWarningShown;
1427
+ {
1428
+ propTypesMisspellWarningShown = false;
1429
+ }
1430
+ function getDeclarationErrorAddendum() {
1431
+ if (ReactCurrentOwner.current) {
1432
+ var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1433
+ if (name) {
1434
+ return "\n\nCheck the render method of `" + name + "`.";
1435
+ }
1436
+ }
1437
+ return "";
1438
+ }
1439
+ function getSourceInfoErrorAddendum(source) {
1440
+ if (source !== void 0) {
1441
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1442
+ var lineNumber = source.lineNumber;
1443
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1444
+ }
1445
+ return "";
1446
+ }
1447
+ function getSourceInfoErrorAddendumForProps(elementProps) {
1448
+ if (elementProps !== null && elementProps !== void 0) {
1449
+ return getSourceInfoErrorAddendum(elementProps.__source);
1450
+ }
1451
+ return "";
1452
+ }
1453
+ var ownerHasKeyUseWarning = {};
1454
+ function getCurrentComponentErrorInfo(parentType) {
1455
+ var info = getDeclarationErrorAddendum();
1456
+ if (!info) {
1457
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1458
+ if (parentName) {
1459
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1460
+ }
1461
+ }
1462
+ return info;
1463
+ }
1464
+ function validateExplicitKey(element, parentType) {
1465
+ if (!element._store || element._store.validated || element.key != null) {
1466
+ return;
1467
+ }
1468
+ element._store.validated = true;
1469
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1470
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1471
+ return;
1472
+ }
1473
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1474
+ var childOwner = "";
1475
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1476
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1477
+ }
1478
+ {
1479
+ setCurrentlyValidatingElement$1(element);
1480
+ error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1481
+ setCurrentlyValidatingElement$1(null);
1482
+ }
1483
+ }
1484
+ function validateChildKeys(node, parentType) {
1485
+ if (typeof node !== "object") {
1486
+ return;
1487
+ }
1488
+ if (isArray(node)) {
1489
+ for (var i = 0; i < node.length; i++) {
1490
+ var child = node[i];
1491
+ if (isValidElement(child)) {
1492
+ validateExplicitKey(child, parentType);
1493
+ }
1494
+ }
1495
+ } else if (isValidElement(node)) {
1496
+ if (node._store) {
1497
+ node._store.validated = true;
1498
+ }
1499
+ } else if (node) {
1500
+ var iteratorFn = getIteratorFn(node);
1501
+ if (typeof iteratorFn === "function") {
1502
+ if (iteratorFn !== node.entries) {
1503
+ var iterator = iteratorFn.call(node);
1504
+ var step;
1505
+ while (!(step = iterator.next()).done) {
1506
+ if (isValidElement(step.value)) {
1507
+ validateExplicitKey(step.value, parentType);
1508
+ }
1509
+ }
1510
+ }
1511
+ }
1512
+ }
1513
+ }
1514
+ function validatePropTypes(element) {
1515
+ {
1516
+ var type = element.type;
1517
+ if (type === null || type === void 0 || typeof type === "string") {
1518
+ return;
1519
+ }
1520
+ var propTypes;
1521
+ if (typeof type === "function") {
1522
+ propTypes = type.propTypes;
1523
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1524
+ // Inner props are checked in the reconciler.
1525
+ type.$$typeof === REACT_MEMO_TYPE)) {
1526
+ propTypes = type.propTypes;
1527
+ } else {
1528
+ return;
1529
+ }
1530
+ if (propTypes) {
1531
+ var name = getComponentNameFromType(type);
1532
+ checkPropTypes(propTypes, element.props, "prop", name, element);
1533
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1534
+ propTypesMisspellWarningShown = true;
1535
+ var _name = getComponentNameFromType(type);
1536
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1537
+ }
1538
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1539
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1540
+ }
1541
+ }
1542
+ }
1543
+ function validateFragmentProps(fragment) {
1544
+ {
1545
+ var keys = Object.keys(fragment.props);
1546
+ for (var i = 0; i < keys.length; i++) {
1547
+ var key = keys[i];
1548
+ if (key !== "children" && key !== "key") {
1549
+ setCurrentlyValidatingElement$1(fragment);
1550
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1551
+ setCurrentlyValidatingElement$1(null);
1552
+ break;
1553
+ }
1554
+ }
1555
+ if (fragment.ref !== null) {
1556
+ setCurrentlyValidatingElement$1(fragment);
1557
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
1558
+ setCurrentlyValidatingElement$1(null);
1559
+ }
1560
+ }
1561
+ }
1562
+ function createElementWithValidation(type, props, children) {
1563
+ var validType = isValidElementType(type);
1564
+ if (!validType) {
1565
+ var info = "";
1566
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1567
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1568
+ }
1569
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1570
+ if (sourceInfo) {
1571
+ info += sourceInfo;
1572
+ } else {
1573
+ info += getDeclarationErrorAddendum();
1574
+ }
1575
+ var typeString;
1576
+ if (type === null) {
1577
+ typeString = "null";
1578
+ } else if (isArray(type)) {
1579
+ typeString = "array";
1580
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1581
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1582
+ info = " Did you accidentally export a JSX literal instead of a component?";
1583
+ } else {
1584
+ typeString = typeof type;
1585
+ }
1586
+ {
1587
+ error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1588
+ }
1589
+ }
1590
+ var element = createElement.apply(this, arguments);
1591
+ if (element == null) {
1592
+ return element;
1593
+ }
1594
+ if (validType) {
1595
+ for (var i = 2; i < arguments.length; i++) {
1596
+ validateChildKeys(arguments[i], type);
1597
+ }
1598
+ }
1599
+ if (type === REACT_FRAGMENT_TYPE) {
1600
+ validateFragmentProps(element);
1601
+ } else {
1602
+ validatePropTypes(element);
1603
+ }
1604
+ return element;
1605
+ }
1606
+ var didWarnAboutDeprecatedCreateFactory = false;
1607
+ function createFactoryWithValidation(type) {
1608
+ var validatedFactory = createElementWithValidation.bind(null, type);
1609
+ validatedFactory.type = type;
1610
+ {
1611
+ if (!didWarnAboutDeprecatedCreateFactory) {
1612
+ didWarnAboutDeprecatedCreateFactory = true;
1613
+ warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1614
+ }
1615
+ Object.defineProperty(validatedFactory, "type", {
1616
+ enumerable: false,
1617
+ get: function() {
1618
+ warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1619
+ Object.defineProperty(this, "type", {
1620
+ value: type
1621
+ });
1622
+ return type;
1623
+ }
1624
+ });
1625
+ }
1626
+ return validatedFactory;
1627
+ }
1628
+ function cloneElementWithValidation(element, props, children) {
1629
+ var newElement = cloneElement.apply(this, arguments);
1630
+ for (var i = 2; i < arguments.length; i++) {
1631
+ validateChildKeys(arguments[i], newElement.type);
1632
+ }
1633
+ validatePropTypes(newElement);
1634
+ return newElement;
1635
+ }
1636
+ function startTransition(scope, options) {
1637
+ var prevTransition = ReactCurrentBatchConfig.transition;
1638
+ ReactCurrentBatchConfig.transition = {};
1639
+ var currentTransition = ReactCurrentBatchConfig.transition;
1640
+ {
1641
+ ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1642
+ }
1643
+ try {
1644
+ scope();
1645
+ } finally {
1646
+ ReactCurrentBatchConfig.transition = prevTransition;
1647
+ {
1648
+ if (prevTransition === null && currentTransition._updatedFibers) {
1649
+ var updatedFibersCount = currentTransition._updatedFibers.size;
1650
+ if (updatedFibersCount > 10) {
1651
+ warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1652
+ }
1653
+ currentTransition._updatedFibers.clear();
1654
+ }
1655
+ }
1656
+ }
1657
+ }
1658
+ var didWarnAboutMessageChannel = false;
1659
+ var enqueueTaskImpl = null;
1660
+ function enqueueTask(task) {
1661
+ if (enqueueTaskImpl === null) {
1662
+ try {
1663
+ var requireString = ("require" + Math.random()).slice(0, 7);
1664
+ var nodeRequire = module && module[requireString];
1665
+ enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
1666
+ } catch (_err) {
1667
+ enqueueTaskImpl = function(callback) {
1668
+ {
1669
+ if (didWarnAboutMessageChannel === false) {
1670
+ didWarnAboutMessageChannel = true;
1671
+ if (typeof MessageChannel === "undefined") {
1672
+ error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
1673
+ }
1674
+ }
1675
+ }
1676
+ var channel = new MessageChannel();
1677
+ channel.port1.onmessage = callback;
1678
+ channel.port2.postMessage(void 0);
1679
+ };
1680
+ }
1681
+ }
1682
+ return enqueueTaskImpl(task);
1683
+ }
1684
+ var actScopeDepth = 0;
1685
+ var didWarnNoAwaitAct = false;
1686
+ function act(callback) {
1687
+ {
1688
+ var prevActScopeDepth = actScopeDepth;
1689
+ actScopeDepth++;
1690
+ if (ReactCurrentActQueue.current === null) {
1691
+ ReactCurrentActQueue.current = [];
1692
+ }
1693
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
1694
+ var result;
1695
+ try {
1696
+ ReactCurrentActQueue.isBatchingLegacy = true;
1697
+ result = callback();
1698
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
1699
+ var queue = ReactCurrentActQueue.current;
1700
+ if (queue !== null) {
1701
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
1702
+ flushActQueue(queue);
1703
+ }
1704
+ }
1705
+ } catch (error2) {
1706
+ popActScope(prevActScopeDepth);
1707
+ throw error2;
1708
+ } finally {
1709
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
1710
+ }
1711
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
1712
+ var thenableResult = result;
1713
+ var wasAwaited = false;
1714
+ var thenable = {
1715
+ then: function(resolve, reject) {
1716
+ wasAwaited = true;
1717
+ thenableResult.then(function(returnValue2) {
1718
+ popActScope(prevActScopeDepth);
1719
+ if (actScopeDepth === 0) {
1720
+ recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
1721
+ } else {
1722
+ resolve(returnValue2);
1723
+ }
1724
+ }, function(error2) {
1725
+ popActScope(prevActScopeDepth);
1726
+ reject(error2);
1727
+ });
1728
+ }
1729
+ };
1730
+ {
1731
+ if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
1732
+ Promise.resolve().then(function() {
1733
+ }).then(function() {
1734
+ if (!wasAwaited) {
1735
+ didWarnNoAwaitAct = true;
1736
+ error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
1737
+ }
1738
+ });
1739
+ }
1740
+ }
1741
+ return thenable;
1742
+ } else {
1743
+ var returnValue = result;
1744
+ popActScope(prevActScopeDepth);
1745
+ if (actScopeDepth === 0) {
1746
+ var _queue = ReactCurrentActQueue.current;
1747
+ if (_queue !== null) {
1748
+ flushActQueue(_queue);
1749
+ ReactCurrentActQueue.current = null;
1750
+ }
1751
+ var _thenable = {
1752
+ then: function(resolve, reject) {
1753
+ if (ReactCurrentActQueue.current === null) {
1754
+ ReactCurrentActQueue.current = [];
1755
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1756
+ } else {
1757
+ resolve(returnValue);
1758
+ }
1759
+ }
1760
+ };
1761
+ return _thenable;
1762
+ } else {
1763
+ var _thenable2 = {
1764
+ then: function(resolve, reject) {
1765
+ resolve(returnValue);
1766
+ }
1767
+ };
1768
+ return _thenable2;
1769
+ }
1770
+ }
1771
+ }
1772
+ }
1773
+ function popActScope(prevActScopeDepth) {
1774
+ {
1775
+ if (prevActScopeDepth !== actScopeDepth - 1) {
1776
+ error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
1777
+ }
1778
+ actScopeDepth = prevActScopeDepth;
1779
+ }
1780
+ }
1781
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1782
+ {
1783
+ var queue = ReactCurrentActQueue.current;
1784
+ if (queue !== null) {
1785
+ try {
1786
+ flushActQueue(queue);
1787
+ enqueueTask(function() {
1788
+ if (queue.length === 0) {
1789
+ ReactCurrentActQueue.current = null;
1790
+ resolve(returnValue);
1791
+ } else {
1792
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1793
+ }
1794
+ });
1795
+ } catch (error2) {
1796
+ reject(error2);
1797
+ }
1798
+ } else {
1799
+ resolve(returnValue);
1800
+ }
1801
+ }
1802
+ }
1803
+ var isFlushing = false;
1804
+ function flushActQueue(queue) {
1805
+ {
1806
+ if (!isFlushing) {
1807
+ isFlushing = true;
1808
+ var i = 0;
1809
+ try {
1810
+ for (; i < queue.length; i++) {
1811
+ var callback = queue[i];
1812
+ do {
1813
+ callback = callback(true);
1814
+ } while (callback !== null);
1815
+ }
1816
+ queue.length = 0;
1817
+ } catch (error2) {
1818
+ queue = queue.slice(i + 1);
1819
+ throw error2;
1820
+ } finally {
1821
+ isFlushing = false;
1822
+ }
1823
+ }
1824
+ }
1825
+ }
1826
+ var createElement$1 = createElementWithValidation;
1827
+ var cloneElement$1 = cloneElementWithValidation;
1828
+ var createFactory = createFactoryWithValidation;
1829
+ var Children = {
1830
+ map: mapChildren,
1831
+ forEach: forEachChildren,
1832
+ count: countChildren,
1833
+ toArray,
1834
+ only: onlyChild
1835
+ };
1836
+ exports.Children = Children;
1837
+ exports.Component = Component;
1838
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1839
+ exports.Profiler = REACT_PROFILER_TYPE;
1840
+ exports.PureComponent = PureComponent;
1841
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1842
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1843
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
1844
+ exports.act = act;
1845
+ exports.cloneElement = cloneElement$1;
1846
+ exports.createContext = createContext;
1847
+ exports.createElement = createElement$1;
1848
+ exports.createFactory = createFactory;
1849
+ exports.createRef = createRef;
1850
+ exports.forwardRef = forwardRef;
1851
+ exports.isValidElement = isValidElement;
1852
+ exports.lazy = lazy;
1853
+ exports.memo = memo;
1854
+ exports.startTransition = startTransition;
1855
+ exports.unstable_act = act;
1856
+ exports.useCallback = useCallback;
1857
+ exports.useContext = useContext;
1858
+ exports.useDebugValue = useDebugValue;
1859
+ exports.useDeferredValue = useDeferredValue;
1860
+ exports.useEffect = useEffect;
1861
+ exports.useId = useId;
1862
+ exports.useImperativeHandle = useImperativeHandle;
1863
+ exports.useInsertionEffect = useInsertionEffect;
1864
+ exports.useLayoutEffect = useLayoutEffect;
1865
+ exports.useMemo = useMemo;
1866
+ exports.useReducer = useReducer;
1867
+ exports.useRef = useRef;
1868
+ exports.useState = useState;
1869
+ exports.useSyncExternalStore = useSyncExternalStore;
1870
+ exports.useTransition = useTransition;
1871
+ exports.version = ReactVersion;
1872
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
1873
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1874
+ }
1875
+ })();
1876
+ }
1877
+ }
1878
+ });
1879
+
1880
+ // node_modules/react/index.js
1881
+ var require_react = __commonJS({
1882
+ "node_modules/react/index.js"(exports, module) {
1883
+ if (false) {
1884
+ module.exports = null;
1885
+ } else {
1886
+ module.exports = require_react_development();
1887
+ }
1888
+ }
1889
+ });
1890
+
1891
+ export {
1892
+ __commonJS,
1893
+ require_react
1894
+ };
1895
+ /*! Bundled license information:
1896
+
1897
+ react/cjs/react.development.js:
1898
+ (**
1899
+ * @license React
1900
+ * react.development.js
1901
+ *
1902
+ * Copyright (c) Facebook, Inc. and its affiliates.
1903
+ *
1904
+ * This source code is licensed under the MIT license found in the
1905
+ * LICENSE file in the root directory of this source tree.
1906
+ *)
1907
+ */
1908
+ //# sourceMappingURL=chunk-GFWMZNU4.js.map
crossword-app/frontend/.vite/deps/chunk-GFWMZNU4.js.map ADDED
The diff for this file is too large to render. See raw diff
 
crossword-app/frontend/.vite/deps/package.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "type": "module"
3
+ }
crossword-app/frontend/.vite/deps/react-dom_client.js ADDED
The diff for this file is too large to render. See raw diff
 
crossword-app/frontend/.vite/deps/react-dom_client.js.map ADDED
The diff for this file is too large to render. See raw diff
 
crossword-app/frontend/.vite/deps/react.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import {
2
+ require_react
3
+ } from "./chunk-GFWMZNU4.js";
4
+ export default require_react();
5
+ //# sourceMappingURL=react.js.map
crossword-app/frontend/.vite/deps/react.js.map ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
crossword-app/frontend/src/components/PuzzleGrid.jsx CHANGED
@@ -47,24 +47,34 @@ const PuzzleGrid = ({ grid, clues, showSolution, onCellChange }) => {
47
  {grid.map((row, rowIndex) =>
48
  row.map((cell, colIndex) => {
49
  const cellNumber = getCellNumber(rowIndex, colIndex);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  return (
51
  <div
52
  key={`${rowIndex}-${colIndex}`}
53
- className={`grid-cell ${isBlackCell(rowIndex, colIndex) ? 'black-cell' : 'white-cell'}`}
54
  >
55
- {!isBlackCell(rowIndex, colIndex) && (
56
- <>
57
- {cellNumber && <span className="cell-number">{cellNumber}</span>}
58
- <input
59
- type="text"
60
- maxLength="1"
61
- value={getCellValue(rowIndex, colIndex)}
62
- onChange={(e) => handleCellInput(rowIndex, colIndex, e.target.value)}
63
- className={`cell-input ${showSolution ? 'solution-text' : ''}`}
64
- disabled={showSolution}
65
- />
66
- </>
67
- )}
68
  </div>
69
  );
70
  })
 
47
  {grid.map((row, rowIndex) =>
48
  row.map((cell, colIndex) => {
49
  const cellNumber = getCellNumber(rowIndex, colIndex);
50
+ const isBlack = isBlackCell(rowIndex, colIndex);
51
+
52
+ // Only render cells that contain letters (not black/unused cells)
53
+ if (isBlack) {
54
+ return (
55
+ <div
56
+ key={`${rowIndex}-${colIndex}`}
57
+ className="grid-cell empty-cell"
58
+ style={{ visibility: 'hidden' }}
59
+ >
60
+ </div>
61
+ );
62
+ }
63
+
64
  return (
65
  <div
66
  key={`${rowIndex}-${colIndex}`}
67
+ className="grid-cell white-cell"
68
  >
69
+ {cellNumber && <span className="cell-number">{cellNumber}</span>}
70
+ <input
71
+ type="text"
72
+ maxLength="1"
73
+ value={getCellValue(rowIndex, colIndex)}
74
+ onChange={(e) => handleCellInput(rowIndex, colIndex, e.target.value)}
75
+ className={`cell-input ${showSolution ? 'solution-text' : ''}`}
76
+ disabled={showSolution}
77
+ />
 
 
 
 
78
  </div>
79
  );
80
  })
crossword-app/frontend/src/styles/puzzle.css CHANGED
@@ -169,8 +169,6 @@
169
  margin: 0 auto;
170
  width: fit-content;
171
  height: fit-content;
172
- border: 2px solid #2c3e50;
173
- border-radius: 4px;
174
  }
175
 
176
  .grid-cell {
@@ -189,19 +187,19 @@
189
  position: absolute;
190
  top: 0;
191
  left: 0;
192
- right: 0;
193
- bottom: 0;
194
  border: 1px solid #2c3e50;
195
  pointer-events: none;
196
  z-index: 10;
197
  }
198
 
199
  .black-cell {
200
- background: #2c3e50;
201
  }
202
 
203
  .black-cell::before {
204
- background: #2c3e50;
205
  border: 1px solid #2c3e50;
206
  }
207
 
@@ -209,6 +207,16 @@
209
  background: white;
210
  }
211
 
 
 
 
 
 
 
 
 
 
 
212
  .cell-input {
213
  width: 100%;
214
  height: 100%;
@@ -241,9 +249,9 @@
241
  }
242
 
243
  .solution-text {
244
- color: #e74c3c !important;
245
  font-weight: bold !important;
246
- background: #fef9f9 !important;
247
  }
248
 
249
  .solution-text:disabled {
@@ -255,7 +263,7 @@
255
  /* Specifically for solution state */
256
  .grid-cell .solution-text {
257
  border: none !important;
258
- background: #fef9f9 !important;
259
  }
260
 
261
  /* Clue List */
 
169
  margin: 0 auto;
170
  width: fit-content;
171
  height: fit-content;
 
 
172
  }
173
 
174
  .grid-cell {
 
187
  position: absolute;
188
  top: 0;
189
  left: 0;
190
+ right: -1px;
191
+ bottom: -1px;
192
  border: 1px solid #2c3e50;
193
  pointer-events: none;
194
  z-index: 10;
195
  }
196
 
197
  .black-cell {
198
+ background: #f0f0f0;
199
  }
200
 
201
  .black-cell::before {
202
+ background: #f0f0f0;
203
  border: 1px solid #2c3e50;
204
  }
205
 
 
207
  background: white;
208
  }
209
 
210
+ .empty-cell {
211
+ background: transparent;
212
+ border: none;
213
+ visibility: hidden;
214
+ }
215
+
216
+ .empty-cell::before {
217
+ display: none;
218
+ }
219
+
220
  .cell-input {
221
  width: 100%;
222
  height: 100%;
 
249
  }
250
 
251
  .solution-text {
252
+ color: #2c3e50 !important;
253
  font-weight: bold !important;
254
+ background: white !important;
255
  }
256
 
257
  .solution-text:disabled {
 
263
  /* Specifically for solution state */
264
  .grid-cell .solution-text {
265
  border: none !important;
266
+ background: white !important;
267
  }
268
 
269
  /* Clue List */