diff --git a/app/routers/orders.py b/app/routers/orders.py
index a15ae66..056ff58 100644
--- a/app/routers/orders.py
+++ b/app/routers/orders.py
@@ -1,18 +1,18 @@
from typing import Annotated
-from uuid import UUID, uuid4
+from uuid import UUID
-from fastapi import APIRouter, Form, Header, HTTPException, Request, Response, status
+from fastapi import APIRouter, Form, HTTPException, Request, Response, status
from fastapi.responses import HTMLResponse
from .. import templates
-from ..store import PlacedItemTable, PlacementTable, Product, ProductTable
-from ..store.product import ProductCompact
+from ..store import PlacedItemTable, PlacementTable, ProductTable
+from ..store.product import OrderSession
router = APIRouter()
# NOTE: Do NOT store this data in database (the data is transient and should be kept in memory)
# NOTE: Or should this be optionally stored in database?
-order_sessions: dict[int, dict[UUID, Product]] = {}
+order_sessions: dict[int, OrderSession] = {}
last_session_id = 0
@@ -20,17 +20,10 @@ def create_new_session() -> int:
global last_session_id
last_session_id += 1
new_session_id = last_session_id
- order_sessions[new_session_id] = {}
+ order_sessions[new_session_id] = OrderSession()
return new_session_id
-def compute_total_price(order_items: dict[UUID, Product]) -> str:
- total_price = 0
- for item in order_items.values():
- total_price += item.price
- return Product.to_price_str(total_price)
-
-
@router.post("/orders", response_class=Response)
async def create_new_order():
location = f"/orders/{create_new_session()}"
@@ -43,72 +36,54 @@ async def create_new_order():
@router.get("/orders/{session_id}", response_class=HTMLResponse)
async def get_order_session(request: Request, session_id: int):
- if (order_items := order_sessions.get(session_id)) is None:
+ if (order_session := order_sessions.get(session_id)) is None:
raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
- total_price = compute_total_price(order_items)
products = await ProductTable.select_all()
- return HTMLResponse(
- templates.orders(request, session_id, products, order_items, total_price)
- )
+ return HTMLResponse(templates.orders(request, session_id, products, order_session))
@router.get("/orders/{session_id}/confirm", response_class=HTMLResponse)
async def get_order_session_to_confirm(request: Request, session_id: int):
- if (order_items := order_sessions.get(session_id)) is None:
+ if (order_session := order_sessions.get(session_id)) is None:
raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
- if len(order_items) == 0:
- total_price = Product.to_price_str(0)
- placement_status = "エラー:商品が選択されていません"
+ if order_session.total_count == 0:
+ error_status = "エラー:商品が選択されていません"
else:
- placement_status = ""
- total_price = 0
- products: dict[int, ProductCompact] = {}
- for item in order_items.values():
- total_price += item.price
- if item.product_id in products:
- products[item.product_id].count += 1
- else:
- products[item.product_id] = ProductCompact(item.name, item.price)
+ error_status = None
return HTMLResponse(
templates.components.order_confirm(
request,
session_id,
- products,
- len(order_items),
- Product.to_price_str(total_price),
- placement_status,
+ order_session,
+ error_status,
)
)
@router.post("/orders/{session_id}", response_class=HTMLResponse)
async def place_order(request: Request, session_id: int):
- if (order_items := order_sessions.get(session_id)) is None:
+ if (order_session := order_sessions.get(session_id)) is None:
raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
- if len(order_items) == 0:
- total_price = Product.to_price_str(0)
- placement_status = "エラー:商品が選択されていません"
- order_frozen = False
+ if order_session.total_count == 0:
+ error_status = "エラー:商品が選択されていません"
+ placement_id = None
else:
+ error_status = None
order_sessions.pop(session_id)
-
- total_price = compute_total_price(order_items)
- product_ids = [item.product_id for item in order_items.values()]
+ product_ids = [item.product_id for item in order_session.products.values()]
placement_id = await PlacedItemTable.issue(product_ids)
# TODO: add a branch for out of stock error
await PlacementTable.insert(placement_id)
- placement_status = f"注文番号: #{placement_id}"
- order_frozen = True
+
return HTMLResponse(
- templates.components.order_session(
+ templates.components.order_issued(
request,
session_id,
- order_items,
- total_price,
- placement_status=placement_status,
- order_frozen=order_frozen,
+ placement_id,
+ order_session,
+ error_status,
)
)
@@ -118,45 +93,33 @@ async def add_order_item(
request: Request,
session_id: int,
product_id: Annotated[int, Form()],
- hx_request: Annotated[str | None, Header()] = None,
) -> Response:
if (product := await ProductTable.by_product_id(product_id)) is None:
raise HTTPException(status_code=404, detail=f"Product {product_id} not found")
- if (order_items := order_sessions.get(session_id)) is None:
- # NOTE: the branching below is a bit complicated so it might be changed in the future
- if hx_request == "true":
- # If requested by `hx-post`, respond with a new order session even when the `session_id` is not valid
- new_session_id = create_new_session()
- await add_order_item(request, new_session_id, product_id)
- location = f"/orders/{new_session_id}"
- return Response(
- f"Session {session_id} not found; redirecting to a newly created order",
- status_code=status.HTTP_200_OK,
- headers={"location": location, "hx-redirect": location},
- )
- else:
- # otherwise report back that the `session_id` is not valid
- raise HTTPException(
- status_code=404, detail=f"Session {session_id} not found"
- )
-
- order_items[uuid4()] = product
+ if (order_session := order_sessions.get(session_id)) is None:
+ raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
+
+ order_session.add(product)
return HTMLResponse(
templates.components.order_session(
- request, session_id, order_items, compute_total_price(order_items)
+ request,
+ session_id,
+ order_session,
)
)
@router.delete("/orders/{session_id}/item/{index}", response_class=HTMLResponse)
async def delete_order_item(request: Request, session_id: int, index: UUID):
- if (order_items := order_sessions.get(session_id)) is None:
+ if (order_session := order_sessions.get(session_id)) is None:
raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
- order_items.pop(index)
+ order_session.delete(index)
return HTMLResponse(
templates.components.order_session(
- request, session_id, order_items, compute_total_price(order_items)
+ request,
+ session_id,
+ order_session,
)
)
@@ -165,29 +128,16 @@ async def delete_order_item(request: Request, session_id: int, index: UUID):
async def clear_order_items(
request: Request,
session_id: int,
- hx_request: Annotated[str | None, Header()] = None,
) -> Response:
- if (order_items := order_sessions.get(session_id)) is None:
- # NOTE: the branching below is a bit complicated so it might be changed in the future
- if hx_request == "true":
- # If requested by `hx-post`, respond with a new order session even when the `session_id` is not valid
- location = f"/orders/{create_new_session()}"
- return Response(
- f"Session {session_id} not found; redirecting to a newly created order",
- status_code=status.HTTP_200_OK,
- headers={"location": location, "hx-redirect": location},
- )
- else:
- # otherwise report back that the `session_id` is not valid
- raise HTTPException(
- status_code=404, detail=f"Session {session_id} not found"
- )
-
- order_items.clear()
+ if (order_session := order_sessions.get(session_id)) is None:
+ raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
+ order_session.clear()
return HTMLResponse(
templates.components.order_session(
- request, session_id, {}, Product.to_price_str(0)
+ request,
+ session_id,
+ order_session,
)
)
diff --git a/app/store/product.py b/app/store/product.py
index 13c8735..cf9df2a 100644
--- a/app/store/product.py
+++ b/app/store/product.py
@@ -3,6 +3,8 @@
from databases import Database
import sqlmodel
+from uuid import UUID, uuid4
+
class Product(sqlmodel.SQLModel, table=True):
# NOTE: there are no Pydantic ways to set the generated table's name, as per https://github.com/fastapi/sqlmodel/issues/159
@@ -25,11 +27,46 @@ def to_price_str(price: int) -> str:
return f"¥{price:,}"
-class ProductCompact:
- def __init__(self, name: str, price: int):
- self.name = name
- self.price = Product.to_price_str(price)
- self.count = 1
+class OrderSession:
+ def __init__(self):
+ self.products: dict[UUID, Product] = {}
+ self.counted_products: dict[int, OrderSession.CountedProduct] = {}
+ self.total_count: int = 0
+ self.total_price: int = 0
+
+ def clear(self):
+ self.total_count = 0
+ self.total_price = 0
+ self.products = {}
+ self.counted_products = {}
+
+ def get_str_price(self) -> str:
+ return Product.to_price_str(self.total_price)
+
+ def add(self, p: Product):
+ self.total_count += 1
+ self.total_price += p.price
+ self.products[uuid4()] = p
+ if p.product_id in self.counted_products:
+ self.counted_products[p.product_id].count += 1
+ else:
+ self.counted_products[p.product_id] = self.CountedProduct(p.name, p.price)
+
+ def delete(self, id: UUID):
+ if id in self.products:
+ self.total_count -= 1
+ product = self.products.pop(id)
+ self.total_price -= product.price
+ if self.counted_products[product.product_id].count == 1:
+ self.counted_products.pop(product.product_id)
+ else:
+ self.counted_products[product.product_id].count -= 1
+
+ class CountedProduct:
+ def __init__(self, name: str, price: int):
+ self.name = name
+ self.price = Product.to_price_str(price)
+ self.count = 1
class Table:
diff --git a/app/templates.py b/app/templates.py
index b8d0a1d..3a8864e 100644
--- a/app/templates.py
+++ b/app/templates.py
@@ -1,8 +1,7 @@
import os
from functools import wraps
from pathlib import Path
-from typing import Any, Callable, Protocol
-from uuid import UUID
+from typing import Any, Callable, Protocol, Optional
import jinja2
from fastapi import Request
@@ -11,7 +10,7 @@
from .env import DEBUG
from .store import Product, placements_t
-from .store.product import ProductCompact
+from .store.product import OrderSession
TEMPLATES_DIR = Path("app/templates")
@@ -88,10 +87,7 @@ def products(products: list[Product]): ...
def orders(
session_id: int,
products: list[Product],
- order_items: dict[UUID, Product],
- total_price: str,
- placement_status: str = "",
- order_frozen: bool = False,
+ session: OrderSession,
): ...
@@ -117,10 +113,7 @@ def product_editor(product: Product | None): ...
@staticmethod
def order_session(
session_id: int,
- order_items: dict[UUID, Product],
- total_price: str,
- placement_status: str = "",
- order_frozen: bool = False,
+ session: OrderSession,
): ...
# @macro_template("components/incoming-placements.html")
@@ -131,8 +124,15 @@ def order_session(
@staticmethod
def order_confirm(
session_id: int,
- products: dict[int, ProductCompact],
- count: int,
- total_price: str,
- placement_status: str = "",
+ session: OrderSession,
+ error_status: Optional[str],
+ ): ...
+
+ @macro_template("components/order-issued.html")
+ @staticmethod
+ def order_issued(
+ session_id: int,
+ placement_id: Optional[int],
+ session: OrderSession,
+ error_status: Optional[str],
): ...
diff --git a/app/templates/components/order-confirm.html b/app/templates/components/order-confirm.html
index 8fdc975..78718ee 100644
--- a/app/templates/components/order-confirm.html
+++ b/app/templates/components/order-confirm.html
@@ -1,4 +1,4 @@
-{% macro order_confirm(session_id, products, count, total_price, placement_status) %}
+{% macro order_confirm(session_id, session, error_status) %}
@@ -9,40 +9,42 @@
- {% if placement_status == "" %}
+ {% if error_status == None %}
注文の確定
- {% for product in products.values() %}
+ {% for counted_product in session.counted_products.values() %}
-
- {{ product.name }}
- {{ product.price }} x {{ product.count }}
+ {{ counted_product.name }}
+ {{ counted_product.price }} x {{ counted_product.count }}
{% endfor %}
計
- {{ count }} 点
+ {{ session.total_count }} 点
合計金額
- {{ total_price }}
+ {{ session.total_price }}
{% else %}
- {{ placement_status }}
+ {{ error_status }}
{% endif %}
-
+ {% if error_status == None %}
+
+ {% endif %}
+{% endmacro %}
diff --git a/app/templates/components/order-session.html b/app/templates/components/order-session.html
index 02fa42b..57f2856 100644
--- a/app/templates/components/order-session.html
+++ b/app/templates/components/order-session.html
@@ -1,42 +1,33 @@
-{% macro order_session(session_id, order_items, total_price, placement_status = "", order_frozen = false) %}
+{% macro order_session(session_id, session) %}
{# `flex-col-reverse` lets the browser to pin scroll to bottom #}
- {% for uuid, product in order_items.items() %}
+ {% for uuid, product in session.products.items() %}
-
{{ product.name }}
{{ product.price_str() }}
- {% if order_frozen == false %}
-
- X
-
- {% endif %}
+
+ X
+
{% endfor %}
- {% if placement_status != "" %}
-
{{ placement_status }}
- {% endif %}
-
{{ order_items | length }} 点
-
合計: {{ total_price }}
- {% if order_frozen == true %}
-
新規
- {% else %}
-
確定
-
- {% endif %}
+
{{ session.total_count }} 点
+
合計: {{ session.total_price }}
+
確定
+
{% endmacro %}
diff --git a/app/templates/orders.html b/app/templates/orders.html
index 9375d23..2ea2af9 100644
--- a/app/templates/orders.html
+++ b/app/templates/orders.html
@@ -2,7 +2,7 @@
{% from "components/clock.html" import clock %}
{% from "components/order-session.html" import order_session %}
-{% macro orders(session_id, products, order_items, total_price, placement_status = "", order_frozen = false) %}
+{% macro orders(session_id, products, session) %}
{% call layout("新規注文 - murchace") %}
@@ -13,7 +13,7 @@
hx-target="#order-session"
class="flex flex-col border-4 rounded-md transition-colors ease-in-out active:bg-gray-100"
>
-
+
{{ product.name }}
{{ product.price_str() }}
@@ -37,7 +37,7 @@
- {{ order_session(session_id, order_items, total_price, placement_status = "", order_frozen = false) }}
+ {{ order_session(session_id, session) }}
diff --git a/static/styles.css b/static/styles.css
index b3ecd00..0140327 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -918,6 +918,11 @@ video {
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}
+.bg-green-600 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(22 163 74 / var(--tw-bg-opacity));
+}
+
.bg-red-500 {
--tw-bg-opacity: 1;
background-color: rgb(239 68 68 / var(--tw-bg-opacity));
diff --git a/static/styles.min.css b/static/styles.min.css
index 63e55c6..fd920ec 100644
--- a/static/styles.min.css
+++ b/static/styles.min.css
@@ -1,3 +1,3 @@
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }
-/*! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.z-10{z-index:10}.float-left{float:left}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-0{margin-bottom:0}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.size-full{height:100%;width:100%}.h-60{height:15rem}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-0{min-height:0}.w-1\/2{width:50%}.w-2\/6{width:33.333333%}.w-4\/6{width:66.666667%}.w-full{width:100%}.w-screen{width:100vw}.flex-none{flex:none}.flex-grow,.grow{flex-grow:1}.basis-1\/4{flex-basis:25%}.basis-2\/4{flex-basis:50%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.auto-cols-max{grid-auto-columns:max-content}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-2{row-gap:.5rem}.divide-y-4>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(4px*var(--tw-divide-y-reverse));border-top-width:calc(4px*(1 - var(--tw-divide-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pr-6{padding-right:1.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.active\:bg-blue-300:active{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.active\:bg-gray-100:active{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:text-gray-700:disabled{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}@media (min-width:640px){.sm\:inline-block{display:inline-block}.sm\:flex{display:flex}.sm\:flex-1{flex:1 1 0%}.sm\:justify-between{justify-content:space-between}}@media (min-width:768px){.md\:inline-block{display:inline-block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media (min-width:1024px){.lg\:inline-block{display:inline-block}.lg\:w-2\/6{width:33.333333%}.lg\:w-4\/6{width:66.666667%}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1536px){.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}
\ No newline at end of file
+/*! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.z-10{z-index:10}.float-left{float:left}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-0{margin-bottom:0}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.size-full{height:100%;width:100%}.h-60{height:15rem}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-0{min-height:0}.w-1\/2{width:50%}.w-2\/6{width:33.333333%}.w-4\/6{width:66.666667%}.w-full{width:100%}.w-screen{width:100vw}.flex-none{flex:none}.flex-grow,.grow{flex-grow:1}.basis-1\/4{flex-basis:25%}.basis-2\/4{flex-basis:50%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.auto-cols-max{grid-auto-columns:max-content}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-2{row-gap:.5rem}.divide-y-4>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(4px*var(--tw-divide-y-reverse));border-top-width:calc(4px*(1 - var(--tw-divide-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pr-6{padding-right:1.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.active\:bg-blue-300:active{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.active\:bg-gray-100:active{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:text-gray-700:disabled{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}@media (min-width:640px){.sm\:inline-block{display:inline-block}.sm\:flex{display:flex}.sm\:flex-1{flex:1 1 0%}.sm\:justify-between{justify-content:space-between}}@media (min-width:768px){.md\:inline-block{display:inline-block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media (min-width:1024px){.lg\:inline-block{display:inline-block}.lg\:w-2\/6{width:33.333333%}.lg\:w-4\/6{width:66.666667%}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1536px){.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}
\ No newline at end of file