From 416b55938bee7bd5bf080f76776b25b8e93ca38b Mon Sep 17 00:00:00 2001 From: Lichun Date: Thu, 20 Nov 2025 17:25:57 +0000 Subject: [PATCH] new logo --- frontend/src/assets/logo.jpg | 3 + frontend/src/components/HeaderNav.tsx | 13 ++-- ...Page-C8Qwkg88.js => AdminPage-CwitwbVg.js} | 2 +- ...al-x1pUTnT7.js => ExportModal-Bq4gp-iF.js} | 2 +- py_backend/static/assets/index-BYJiCH1e.css | 1 + py_backend/static/assets/index-BzCX1Bzq.css | 1 - .../{index-Dz4vX1uX.js => index-DRmfVC9B.js} | 2 +- .../{index-CcfIBRoF.js => index-Dym8TuvV.js} | 64 +++++++++---------- .../{index-Bx3ZvIBj.js => index-HD7t9Ly0.js} | 4 +- .../{index-7oBZSGHr.js => index-tBgmM5yL.js} | 4 +- ....min-Csqqcm8m.js => jszip.min-XJUuvkAi.js} | 2 +- py_backend/static/assets/logo-DkhILSWp.jpg | 3 + ...Admin-CrA3XozJ.js => useAdmin-DnFl9FMw.js} | 2 +- py_backend/static/index.html | 4 +- 14 files changed, 58 insertions(+), 49 deletions(-) create mode 100644 frontend/src/assets/logo.jpg rename py_backend/static/assets/{AdminPage-C8Qwkg88.js => AdminPage-CwitwbVg.js} (99%) rename py_backend/static/assets/{ExportModal-x1pUTnT7.js => ExportModal-Bq4gp-iF.js} (99%) create mode 100644 py_backend/static/assets/index-BYJiCH1e.css delete mode 100644 py_backend/static/assets/index-BzCX1Bzq.css rename py_backend/static/assets/{index-Dz4vX1uX.js => index-DRmfVC9B.js} (99%) rename py_backend/static/assets/{index-CcfIBRoF.js => index-Dym8TuvV.js} (70%) rename py_backend/static/assets/{index-Bx3ZvIBj.js => index-HD7t9Ly0.js} (99%) rename py_backend/static/assets/{index-7oBZSGHr.js => index-tBgmM5yL.js} (98%) rename py_backend/static/assets/{jszip.min-Csqqcm8m.js => jszip.min-XJUuvkAi.js} (99%) create mode 100644 py_backend/static/assets/logo-DkhILSWp.jpg rename py_backend/static/assets/{useAdmin-CrA3XozJ.js => useAdmin-DnFl9FMw.js} (65%) diff --git a/frontend/src/assets/logo.jpg b/frontend/src/assets/logo.jpg new file mode 100644 index 00000000..7b514285 --- /dev/null +++ b/frontend/src/assets/logo.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45d98f276fcd585024dd62e635acd3305f29dc89171f15304913c6d528ba3c3b +size 25732 diff --git a/frontend/src/components/HeaderNav.tsx b/frontend/src/components/HeaderNav.tsx index d995656d..90b838b4 100644 --- a/frontend/src/components/HeaderNav.tsx +++ b/frontend/src/components/HeaderNav.tsx @@ -5,12 +5,13 @@ import { AnalysisIcon, SearchLineIcon, QuestionLineIcon, - GoMainIcon, SettingsIcon, MenuLineIcon, } from "@ifrc-go/icons"; import { useState, useEffect, useRef } from "react"; import styles from './HeaderNav.module.css'; +// 导入 logo 图片 +import logoImage from '../assets/logo.jpg'; declare global { @@ -72,10 +73,12 @@ export default function HeaderNav() { }} >
- -
-
- PromptAid Vision + PromptAid Vision Logo
diff --git a/py_backend/static/assets/AdminPage-C8Qwkg88.js b/py_backend/static/assets/AdminPage-CwitwbVg.js similarity index 99% rename from py_backend/static/assets/AdminPage-C8Qwkg88.js rename to py_backend/static/assets/AdminPage-CwitwbVg.js index d5db255a..ef058c08 100644 --- a/py_backend/static/assets/AdminPage-C8Qwkg88.js +++ b/py_backend/static/assets/AdminPage-CwitwbVg.js @@ -1,4 +1,4 @@ -import{r as i,j as a,N as K,H as Je,O as h,z as j,I as re,_ as Ge,n as d,J as y}from"./index-CcfIBRoF.js";import{u as Ve}from"./useAdmin-CrA3XozJ.js";const We="_adminContainer_j11pf_5",qe="_adminHeader_j11pf_13",Ke="_adminSection_j11pf_20",Ye="_modelSelectionArea_j11pf_29",Qe="_modelSelectionRow_j11pf_36",Xe="_modelsTable_j11pf_89",Ze="_promptSubsection_j11pf_97",ea="_promptSubsectionTitle_j11pf_109",aa="_modelCode_j11pf_152",la="_modelId_j11pf_157",sa="_modelActions_j11pf_163",oa="_addModelButtonContainer_j11pf_169",ta="_addModelForm_j11pf_177",ia="_addModelFormTitle_j11pf_185",da="_addModelFormGrid_j11pf_193",na="_addModelFormField_j11pf_206",ra="_addModelFormCheckbox_j11pf_250",ca="_addModelFormActions_j11pf_268",ma="_modalOverlay_j11pf_277",ha="_modalContent_j11pf_291",pa="_modalBody_j11pf_302",_a="_modalTitle_j11pf_312",ua="_modalText_j11pf_320",xa="_modalTextLeft_j11pf_332",ja="_modalButtons_j11pf_355",va="_modalForm_j11pf_363",ga="_formField_j11pf_372",fa="_formLabel_j11pf_376",ba="_formInput_j11pf_385",ya="_textarea_j11pf_407",l={adminContainer:We,adminHeader:qe,adminSection:Ke,modelSelectionArea:Ye,modelSelectionRow:Qe,modelsTable:Xe,promptSubsection:Ze,promptSubsectionTitle:ea,modelCode:aa,modelId:la,modelActions:sa,addModelButtonContainer:oa,addModelForm:ta,addModelFormTitle:ia,addModelFormGrid:da,addModelFormField:na,addModelFormCheckbox:ra,addModelFormActions:ca,modalOverlay:ma,modalContent:ha,modalBody:pa,modalTitle:_a,modalText:ua,modalTextLeft:xa,modalButtons:ja,modalForm:va,formField:ga,formLabel:fa,formInput:ba,textarea:ya},I="selectedVlmModel";function Ca(){const{isAuthenticated:v,isLoading:ce,login:me,logout:he,verifyToken:Y}=Ve(),[E,Q]=i.useState(""),[X,g]=i.useState(""),[Z,ee]=i.useState(!1),[N,S]=i.useState([]),[pe,C]=i.useState(""),[_e,M]=i.useState(""),[ae,P]=i.useState([]),[ue,L]=i.useState([]),[xe,B]=i.useState([]),[je,k]=i.useState(!1),[O,D]=i.useState(null),[U,f]=i.useState({schema_id:"",title:"",version:"",schema:{}}),[ve,w]=i.useState(!1),[ge,T]=i.useState(!1),[fe,z]=i.useState(null),[F,R]=i.useState(null),[n,c]=i.useState({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1}),[le,H]=i.useState(!1),[be,J]=i.useState(!1),[G,V]=i.useState(null),[t,m]=i.useState({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1,is_fallback:!1}),[ye,A]=i.useState(!1),[Ne,W]=i.useState(!1),[Se,_]=i.useState(!1),[se,oe]=i.useState(""),[Ce,Me]=i.useState(""),[ke,u]=i.useState(""),[we,$]=i.useState(""),x=i.useCallback(()=>{fetch("/api/models").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{if(console.log("Models data received:",e),e&&Array.isArray(e.models)){S(e.models);const s=localStorage.getItem(I);if(e.models.length>0)if(s==="random")C("random");else if(s&&e.models.find(o=>o.m_code===s&&o.is_available))C(s);else{const o=e.models.find(r=>r.is_available)||e.models[0];C(o.m_code),localStorage.setItem(I,o.m_code)}fetch("/api/admin/fallback-model",{headers:{Authorization:`Bearer ${localStorage.getItem("adminToken")}`}}).then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return o.json()}).then(o=>{if(console.log("Fallback model data received:",o),o.fallback_model)M(o.fallback_model.m_code);else{const r=e.models.find(p=>p.m_code==="STUB_MODEL"&&p.is_available);M(r?"STUB_MODEL":"")}}).catch(o=>{console.error("Error fetching fallback model:",o);const r=e.models.find(p=>p.m_code==="STUB_MODEL"&&p.is_available);M(r?"STUB_MODEL":"")})}else console.error("Expected models object but got:",e),S([])}).catch(e=>{console.error("Error fetching models:",e),S([])})},[]),b=i.useCallback(()=>{console.log("=== fetchPrompts called ==="),fetch("/api/prompts").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{console.log("Prompts data received:",e),Array.isArray(e)?P(e):(console.error("Expected array but got:",e),P([])),console.log("State update triggered with:",e||[])}).catch(e=>{console.error("Error fetching prompts:",e),P([])})},[]),te=i.useCallback(()=>{fetch("/api/image-types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{console.log("Image types data received:",e),Array.isArray(e)?L(e):(console.error("Expected array but got:",e),L([]))}).catch(e=>{console.error("Error fetching image types:",e),L([])})},[]),q=i.useCallback(()=>{console.log("=== fetchSchemas called ==="),fetch("/api/schemas",{headers:{Authorization:`Bearer ${localStorage.getItem("adminToken")}`}}).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{console.log("Schemas data received:",e),Array.isArray(e)?B(e):(console.error("Expected array but got:",e),B([]))}).catch(e=>{console.error("Error fetching schemas:",e),B([])})},[]);i.useEffect(()=>{v&&(x(),b(),te(),q())},[v,x,b,te,q]),i.useEffect(()=>{v&&Y()},[v,Y]);const ie=e=>{R(e),c({p_code:e.p_code,label:e.label||"",metadata_instructions:e.metadata_instructions||"",image_type:e.image_type||"crisis_map",is_active:e.is_active||!1}),w(!0)},Te=async()=>{try{if(!F){alert("No prompt selected for editing");return}const e=await fetch(`/api/prompts/${F.p_code}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({label:n.label,metadata_instructions:n.metadata_instructions,image_type:n.image_type,is_active:n.is_active})});if(e.ok)b(),w(!1),R(null),c({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to update prompt: ${s.error||"Unknown error"}`)}}catch{alert("Error updating prompt")}},de=async(e,s)=>{try{const o=await fetch(`/api/prompts/${e}/toggle-active?image_type=${s}`,{method:"POST",headers:{"Content-Type":"application/json"}});if(o.ok)b();else{const r=await o.json();alert(`Failed to toggle prompt active status: ${r.detail||"Unknown error"}`)}}catch{alert("Error toggling prompt active status")}},ne=e=>{z(e),c({p_code:"",label:"",metadata_instructions:"",image_type:e,is_active:!1}),T(!0)},Fe=async()=>{try{const e=await fetch("/api/prompts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(e.ok)b(),T(!1),z(null),c({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to create prompt: ${s.detail||"Unknown error"}`)}}catch{alert("Error creating prompt")}},Ae=e=>{D(e),f({schema_id:e.schema_id,title:e.title,version:e.version,schema:e.schema}),k(!0)},$e=async()=>{try{if(!O){alert("No schema selected for editing");return}const e=await fetch(`/api/schemas/${O.schema_id}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(U)});if(e.ok)q(),k(!1),D(null),f({schema_id:"",title:"",version:"",schema:{}});else{const s=await e.json();alert(`Failed to save schema: ${s.detail||"Unknown error"}`)}}catch(e){console.error("Error saving schema:",e),alert("Error saving schema")}},Ie=()=>{k(!1),D(null),f({schema_id:"",title:"",version:"",schema:{}})},Ee=async(e,s)=>{try{const o=await fetch(`/api/models/${e}/toggle`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({is_available:!s})});if(o.ok)S(r=>(r||[]).map(p=>p.m_code===e?{...p,is_available:!s}:p));else{const r=await o.json();alert(`Failed to toggle model availability: ${r.error||"Unknown error"}`)}}catch{alert("Error toggling model availability")}},Pe=e=>{C(e),e==="random"?localStorage.setItem(I,"random"):localStorage.setItem(I,e)},Le=async e=>{try{const s=await fetch(`/api/admin/models/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify({is_fallback:!0})});if(s.ok)M(e),x();else{const o=await s.json();alert(`Failed to set fallback model: ${o.detail||"Unknown error"}`)}}catch{alert("Error setting fallback model")}},Be=async()=>{try{const e=await fetch("/api/admin/models",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(t)});if(e.ok){const s=` +import{r as i,j as a,N as K,H as Je,O as h,z as j,I as re,_ as Ge,n as d,J as y}from"./index-Dym8TuvV.js";import{u as Ve}from"./useAdmin-DnFl9FMw.js";const We="_adminContainer_j11pf_5",qe="_adminHeader_j11pf_13",Ke="_adminSection_j11pf_20",Ye="_modelSelectionArea_j11pf_29",Qe="_modelSelectionRow_j11pf_36",Xe="_modelsTable_j11pf_89",Ze="_promptSubsection_j11pf_97",ea="_promptSubsectionTitle_j11pf_109",aa="_modelCode_j11pf_152",la="_modelId_j11pf_157",sa="_modelActions_j11pf_163",oa="_addModelButtonContainer_j11pf_169",ta="_addModelForm_j11pf_177",ia="_addModelFormTitle_j11pf_185",da="_addModelFormGrid_j11pf_193",na="_addModelFormField_j11pf_206",ra="_addModelFormCheckbox_j11pf_250",ca="_addModelFormActions_j11pf_268",ma="_modalOverlay_j11pf_277",ha="_modalContent_j11pf_291",pa="_modalBody_j11pf_302",_a="_modalTitle_j11pf_312",ua="_modalText_j11pf_320",xa="_modalTextLeft_j11pf_332",ja="_modalButtons_j11pf_355",va="_modalForm_j11pf_363",ga="_formField_j11pf_372",fa="_formLabel_j11pf_376",ba="_formInput_j11pf_385",ya="_textarea_j11pf_407",l={adminContainer:We,adminHeader:qe,adminSection:Ke,modelSelectionArea:Ye,modelSelectionRow:Qe,modelsTable:Xe,promptSubsection:Ze,promptSubsectionTitle:ea,modelCode:aa,modelId:la,modelActions:sa,addModelButtonContainer:oa,addModelForm:ta,addModelFormTitle:ia,addModelFormGrid:da,addModelFormField:na,addModelFormCheckbox:ra,addModelFormActions:ca,modalOverlay:ma,modalContent:ha,modalBody:pa,modalTitle:_a,modalText:ua,modalTextLeft:xa,modalButtons:ja,modalForm:va,formField:ga,formLabel:fa,formInput:ba,textarea:ya},I="selectedVlmModel";function Ca(){const{isAuthenticated:v,isLoading:ce,login:me,logout:he,verifyToken:Y}=Ve(),[E,Q]=i.useState(""),[X,g]=i.useState(""),[Z,ee]=i.useState(!1),[N,S]=i.useState([]),[pe,C]=i.useState(""),[_e,M]=i.useState(""),[ae,P]=i.useState([]),[ue,L]=i.useState([]),[xe,B]=i.useState([]),[je,k]=i.useState(!1),[O,D]=i.useState(null),[U,f]=i.useState({schema_id:"",title:"",version:"",schema:{}}),[ve,w]=i.useState(!1),[ge,T]=i.useState(!1),[fe,z]=i.useState(null),[F,R]=i.useState(null),[n,c]=i.useState({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1}),[le,H]=i.useState(!1),[be,J]=i.useState(!1),[G,V]=i.useState(null),[t,m]=i.useState({m_code:"",label:"",model_type:"custom",provider:"huggingface",model_id:"",is_available:!1,is_fallback:!1}),[ye,A]=i.useState(!1),[Ne,W]=i.useState(!1),[Se,_]=i.useState(!1),[se,oe]=i.useState(""),[Ce,Me]=i.useState(""),[ke,u]=i.useState(""),[we,$]=i.useState(""),x=i.useCallback(()=>{fetch("/api/models").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{if(console.log("Models data received:",e),e&&Array.isArray(e.models)){S(e.models);const s=localStorage.getItem(I);if(e.models.length>0)if(s==="random")C("random");else if(s&&e.models.find(o=>o.m_code===s&&o.is_available))C(s);else{const o=e.models.find(r=>r.is_available)||e.models[0];C(o.m_code),localStorage.setItem(I,o.m_code)}fetch("/api/admin/fallback-model",{headers:{Authorization:`Bearer ${localStorage.getItem("adminToken")}`}}).then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return o.json()}).then(o=>{if(console.log("Fallback model data received:",o),o.fallback_model)M(o.fallback_model.m_code);else{const r=e.models.find(p=>p.m_code==="STUB_MODEL"&&p.is_available);M(r?"STUB_MODEL":"")}}).catch(o=>{console.error("Error fetching fallback model:",o);const r=e.models.find(p=>p.m_code==="STUB_MODEL"&&p.is_available);M(r?"STUB_MODEL":"")})}else console.error("Expected models object but got:",e),S([])}).catch(e=>{console.error("Error fetching models:",e),S([])})},[]),b=i.useCallback(()=>{console.log("=== fetchPrompts called ==="),fetch("/api/prompts").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{console.log("Prompts data received:",e),Array.isArray(e)?P(e):(console.error("Expected array but got:",e),P([])),console.log("State update triggered with:",e||[])}).catch(e=>{console.error("Error fetching prompts:",e),P([])})},[]),te=i.useCallback(()=>{fetch("/api/image-types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{console.log("Image types data received:",e),Array.isArray(e)?L(e):(console.error("Expected array but got:",e),L([]))}).catch(e=>{console.error("Error fetching image types:",e),L([])})},[]),q=i.useCallback(()=>{console.log("=== fetchSchemas called ==="),fetch("/api/schemas",{headers:{Authorization:`Bearer ${localStorage.getItem("adminToken")}`}}).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}).then(e=>{console.log("Schemas data received:",e),Array.isArray(e)?B(e):(console.error("Expected array but got:",e),B([]))}).catch(e=>{console.error("Error fetching schemas:",e),B([])})},[]);i.useEffect(()=>{v&&(x(),b(),te(),q())},[v,x,b,te,q]),i.useEffect(()=>{v&&Y()},[v,Y]);const ie=e=>{R(e),c({p_code:e.p_code,label:e.label||"",metadata_instructions:e.metadata_instructions||"",image_type:e.image_type||"crisis_map",is_active:e.is_active||!1}),w(!0)},Te=async()=>{try{if(!F){alert("No prompt selected for editing");return}const e=await fetch(`/api/prompts/${F.p_code}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({label:n.label,metadata_instructions:n.metadata_instructions,image_type:n.image_type,is_active:n.is_active})});if(e.ok)b(),w(!1),R(null),c({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to update prompt: ${s.error||"Unknown error"}`)}}catch{alert("Error updating prompt")}},de=async(e,s)=>{try{const o=await fetch(`/api/prompts/${e}/toggle-active?image_type=${s}`,{method:"POST",headers:{"Content-Type":"application/json"}});if(o.ok)b();else{const r=await o.json();alert(`Failed to toggle prompt active status: ${r.detail||"Unknown error"}`)}}catch{alert("Error toggling prompt active status")}},ne=e=>{z(e),c({p_code:"",label:"",metadata_instructions:"",image_type:e,is_active:!1}),T(!0)},Fe=async()=>{try{const e=await fetch("/api/prompts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(e.ok)b(),T(!1),z(null),c({p_code:"",label:"",metadata_instructions:"",image_type:"crisis_map",is_active:!1});else{const s=await e.json();alert(`Failed to create prompt: ${s.detail||"Unknown error"}`)}}catch{alert("Error creating prompt")}},Ae=e=>{D(e),f({schema_id:e.schema_id,title:e.title,version:e.version,schema:e.schema}),k(!0)},$e=async()=>{try{if(!O){alert("No schema selected for editing");return}const e=await fetch(`/api/schemas/${O.schema_id}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(U)});if(e.ok)q(),k(!1),D(null),f({schema_id:"",title:"",version:"",schema:{}});else{const s=await e.json();alert(`Failed to save schema: ${s.detail||"Unknown error"}`)}}catch(e){console.error("Error saving schema:",e),alert("Error saving schema")}},Ie=()=>{k(!1),D(null),f({schema_id:"",title:"",version:"",schema:{}})},Ee=async(e,s)=>{try{const o=await fetch(`/api/models/${e}/toggle`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({is_available:!s})});if(o.ok)S(r=>(r||[]).map(p=>p.m_code===e?{...p,is_available:!s}:p));else{const r=await o.json();alert(`Failed to toggle model availability: ${r.error||"Unknown error"}`)}}catch{alert("Error toggling model availability")}},Pe=e=>{C(e),e==="random"?localStorage.setItem(I,"random"):localStorage.setItem(I,e)},Le=async e=>{try{const s=await fetch(`/api/admin/models/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify({is_fallback:!0})});if(s.ok)M(e),x();else{const o=await s.json();alert(`Failed to set fallback model: ${o.detail||"Unknown error"}`)}}catch{alert("Error setting fallback model")}},Be=async()=>{try{const e=await fetch("/api/admin/models",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("adminToken")}`},body:JSON.stringify(t)});if(e.ok){const s=` Model "${t.label}" added successfully! ⚠️ IMPORTANT: Model will NOT work until you complete these steps: diff --git a/py_backend/static/assets/ExportModal-x1pUTnT7.js b/py_backend/static/assets/ExportModal-Bq4gp-iF.js similarity index 99% rename from py_backend/static/assets/ExportModal-x1pUTnT7.js rename to py_backend/static/assets/ExportModal-Bq4gp-iF.js index 5d0cb3b7..2cf69706 100644 --- a/py_backend/static/assets/ExportModal-x1pUTnT7.js +++ b/py_backend/static/assets/ExportModal-Bq4gp-iF.js @@ -1 +1 @@ -import{r as n,D as O,j as e,z as c,n as o,O as B,J as b,P as G,_ as M,L as A,S as P}from"./index-CcfIBRoF.js";const q=({title:m,titleId:u,...x})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":u},x),m?n.createElement("title",{id:u},m):null,n.createElement("g",{clipPath:"url(#filter-line_svg__a)"},n.createElement("path",{d:"M9 13.5 4 6H3V4h18v2h-1l-5 7.5V22H9v-8.5ZM6.404 6 11 12.894V20h2v-7.106L17.596 6H6.404Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"filter-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"}))));function ie({sources:m,types:u,regions:x,countries:T,imageTypes:z,isLoadingFilters:s=!1}){const[h,_]=n.useState(!1),[S,p]=n.useState(""),{search:I,setSearch:g,srcFilter:E,setSrcFilter:v,catFilter:j,setCatFilter:f,regionFilter:y,setRegionFilter:C,countryFilter:k,setCountryFilter:N,imageTypeFilter:F,setImageTypeFilter:w,uploadTypeFilter:d,setUploadTypeFilter:a,generatedMethodFilter:r,setGeneratedMethodFilter:i,clearAllFilters:W}=O();return n.useEffect(()=>{p(I)},[I]),e.jsxs("div",{className:"mb-6 space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsx(c,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(o,{name:"toggle-filters",variant:"secondary",onClick:()=>_(!h),className:"whitespace-nowrap",title:h?"Hide Filters":"Show Filters",children:e.jsx(q,{className:"w-4 h-4"})})}),e.jsx(c,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:e.jsx(B,{name:"search",placeholder:"Search",value:S,onChange:l=>p(l||""),onKeyDown:l=>{l.key==="Enter"&&g(S)}})}),e.jsx(c,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(o,{name:"clear-filters",variant:"secondary",onClick:W,children:"Clear Filters"})})]}),h&&e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-md p-4",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"source",placeholder:s?"Loading...":"All Sources",options:m,value:E||null,onChange:l=>v(l||""),keySelector:l=>l.s_code,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"category",placeholder:s?"Loading...":"All Categories",options:u,value:j||null,onChange:l=>f(l||""),keySelector:l=>l.t_code,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"region",placeholder:s?"Loading...":"All Regions",options:x,value:y||null,onChange:l=>C(l||""),keySelector:l=>l.r_code,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(G,{name:"country",placeholder:s?"Loading...":"All Countries",options:T,value:k?[k]:[],onChange:l=>N(l[0]||""),keySelector:l=>l.c_code,labelSelector:l=>l.label,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"imageType",placeholder:s?"Loading...":"All Image Types",options:z,value:F||null,onChange:l=>w(l||""),keySelector:l=>l.image_type,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"uploadType",placeholder:"All Upload Types",options:[{key:"single",label:"Single Upload"},{key:"multiple",label:"Multiple Upload"}],value:d||null,onChange:l=>a(l||""),keySelector:l=>l.key,labelSelector:l=>l.label,required:!1,disabled:!1})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"generatedMethod",placeholder:"All Generated Methods",options:[{key:"manual",label:"Manual"},{key:"generated",label:"Generated"}],value:r||null,onChange:l=>i(l||""),keySelector:l=>l.key,labelSelector:l=>l.label,required:!1,disabled:!1})})]})})]})}const V="_fullSizeModalOverlay_cyz3b_1",D="_fullSizeModalContent_cyz3b_29",H="_ratingWarningContent_cyz3b_53",R="_ratingWarningTitle_cyz3b_65",U="_exportModeSection_cyz3b_133",Y="_splitConfigSection_cyz3b_143",Z="_splitConfigTitle_cyz3b_153",$="_splitInputsContainer_cyz3b_167",J="_splitInputGroup_cyz3b_183",K="_splitInputLabel_cyz3b_197",Q="_splitInput_cyz3b_167",X="_splitTotal_cyz3b_247",L="_splitTotalError_cyz3b_261",ee="_checkboxesContainer_cyz3b_271",le="_ratingWarningButtons_cyz3b_289",te="_singleExportMessage_cyz3b_309",ae="_navigateButtonContainer_cyz3b_333",se="_loadingOverlay_cyz3b_349",t={fullSizeModalOverlay:V,fullSizeModalContent:D,ratingWarningContent:H,ratingWarningTitle:R,exportModeSection:U,splitConfigSection:Y,splitConfigTitle:Z,splitInputsContainer:$,splitInputGroup:J,splitInputLabel:K,splitInput:Q,splitTotal:X,splitTotalError:L,checkboxesContainer:ee,ratingWarningButtons:le,singleExportMessage:te,navigateButtonContainer:ae,loadingOverlay:se};function re({isOpen:m,onClose:u,onExport:x,crisisMapsCount:T,droneImagesCount:z,isLoading:s=!1,exportSuccess:h=!1,variant:_="bulk",onNavigateAndExport:S}){const[p,I]=n.useState("standard"),[g,E]=n.useState(80),[v,j]=n.useState(10),[f,y]=n.useState(10),[C,k]=n.useState(!0),[N,F]=n.useState(!0),w=()=>{if(_==="single"){x(p,["crisis_map","drone_image"]);return}if(!C&&!N){alert("Please select at least one image type to export.");return}const a=[];C&&a.push("crisis_map"),N&&a.push("drone_image"),x(p,a)},d=()=>{u()};return m?_==="single"?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:d,children:e.jsxs("div",{className:t.fullSizeModalContent,onClick:a=>a.stopPropagation(),children:[s&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(M,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),h&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(o,{name:"close-export-success",onClick:d,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Export Single Item"}),e.jsxs("div",{className:t.singleExportMessage,children:[e.jsx("p",{children:"This only exports the 1 item currently on display."}),e.jsx("p",{children:'You may export the entire dataset from the "list view" here:'})]}),e.jsx("div",{className:t.navigateButtonContainer,children:e.jsx(o,{name:"navigate-to-list",variant:"secondary",onClick:S,children:"Navigate to List View"})}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(o,{name:"continue-export",onClick:w,disabled:s,children:s?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{className:"text-white"}),"Exporting..."]}):"Continue"}),e.jsx(o,{name:"cancel-export",variant:"tertiary",onClick:d,disabled:s,children:"Cancel"})]})]})]})}):e.jsx("div",{className:t.fullSizeModalOverlay,onClick:d,children:e.jsxs("div",{className:t.fullSizeModalContent,onClick:a=>a.stopPropagation(),children:[s&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(M,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),h&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(o,{name:"close-export-success",onClick:d,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Export Dataset"}),e.jsx("div",{className:t.exportModeSection,children:e.jsx(A,{name:"export-mode",value:p,onChange:a=>{(a==="standard"||a==="fine-tuning")&&I(a)},options:[{key:"standard",label:"Standard"},{key:"fine-tuning",label:"Fine-tuning"}],keySelector:a=>a.key,labelSelector:a=>a.label,disabled:s})}),p==="fine-tuning"&&e.jsxs("div",{className:t.splitConfigSection,children:[e.jsx("div",{className:t.splitConfigTitle,children:"Dataset Split Configuration"}),e.jsxs("div",{className:t.splitInputsContainer,children:[e.jsxs("div",{className:t.splitInputGroup,children:[e.jsx("label",{htmlFor:"train-split",className:t.splitInputLabel,children:"Train (%)"}),e.jsx("input",{id:"train-split",type:"number",min:"0",max:"100",value:g,onChange:a=>{const r=parseInt(a.target.value)||0,i=100-r;i>=0&&(E(r),v+f>i&&(j(Math.floor(i/2)),y(i-Math.floor(i/2))))},className:t.splitInput,disabled:s})]}),e.jsxs("div",{className:t.splitInputGroup,children:[e.jsx("label",{htmlFor:"test-split",className:t.splitInputLabel,children:"Test (%)"}),e.jsx("input",{id:"test-split",type:"number",min:"0",max:"100",value:v,onChange:a=>{const r=parseInt(a.target.value)||0,i=100-g-r;i>=0&&(j(r),y(i))},className:t.splitInput,disabled:s})]}),e.jsxs("div",{className:t.splitInputGroup,children:[e.jsx("label",{htmlFor:"val-split",className:t.splitInputLabel,children:"Val (%)"}),e.jsx("input",{id:"val-split",type:"number",min:"0",max:"100",value:f,onChange:a=>{const r=parseInt(a.target.value)||0,i=100-g-r;i>=0&&(y(r),j(i))},className:t.splitInput,disabled:s})]})]}),g+v+f!==100&&e.jsx("div",{className:t.splitTotal,children:e.jsx("span",{className:t.splitTotalError,children:"Must equal 100%"})})]}),e.jsxs("div",{className:t.checkboxesContainer,children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(P,{name:"crisis-maps",label:`Crisis Maps (${T} images)`,value:C,onChange:a=>k(a),disabled:s})}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(P,{name:"drone-images",label:`Drone Images (${z} images)`,value:N,onChange:a=>F(a),disabled:s})})]}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(o,{name:"confirm-export",onClick:w,disabled:s,children:s?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{className:"text-white"}),"Exporting..."]}):"Export Selected"}),e.jsx(o,{name:"cancel-export",variant:"tertiary",onClick:d,disabled:s,children:"Cancel"})]})]})]})}):null}export{re as E,ie as F}; +import{r as n,D as O,j as e,z as c,n as o,O as B,J as b,P as G,_ as M,L as A,S as P}from"./index-Dym8TuvV.js";const q=({title:m,titleId:u,...x})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":u},x),m?n.createElement("title",{id:u},m):null,n.createElement("g",{clipPath:"url(#filter-line_svg__a)"},n.createElement("path",{d:"M9 13.5 4 6H3V4h18v2h-1l-5 7.5V22H9v-8.5ZM6.404 6 11 12.894V20h2v-7.106L17.596 6H6.404Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"filter-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"}))));function ie({sources:m,types:u,regions:x,countries:T,imageTypes:z,isLoadingFilters:s=!1}){const[h,_]=n.useState(!1),[S,p]=n.useState(""),{search:I,setSearch:g,srcFilter:E,setSrcFilter:v,catFilter:j,setCatFilter:f,regionFilter:y,setRegionFilter:C,countryFilter:k,setCountryFilter:N,imageTypeFilter:F,setImageTypeFilter:w,uploadTypeFilter:d,setUploadTypeFilter:a,generatedMethodFilter:r,setGeneratedMethodFilter:i,clearAllFilters:W}=O();return n.useEffect(()=>{p(I)},[I]),e.jsxs("div",{className:"mb-6 space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsx(c,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(o,{name:"toggle-filters",variant:"secondary",onClick:()=>_(!h),className:"whitespace-nowrap",title:h?"Hide Filters":"Show Filters",children:e.jsx(q,{className:"w-4 h-4"})})}),e.jsx(c,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:e.jsx(B,{name:"search",placeholder:"Search",value:S,onChange:l=>p(l||""),onKeyDown:l=>{l.key==="Enter"&&g(S)}})}),e.jsx(c,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:e.jsx(o,{name:"clear-filters",variant:"secondary",onClick:W,children:"Clear Filters"})})]}),h&&e.jsx("div",{className:"bg-white/20 backdrop-blur-sm rounded-md p-4",children:e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"source",placeholder:s?"Loading...":"All Sources",options:m,value:E||null,onChange:l=>v(l||""),keySelector:l=>l.s_code,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"category",placeholder:s?"Loading...":"All Categories",options:u,value:j||null,onChange:l=>f(l||""),keySelector:l=>l.t_code,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"region",placeholder:s?"Loading...":"All Regions",options:x,value:y||null,onChange:l=>C(l||""),keySelector:l=>l.r_code,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(G,{name:"country",placeholder:s?"Loading...":"All Countries",options:T,value:k?[k]:[],onChange:l=>N(l[0]||""),keySelector:l=>l.c_code,labelSelector:l=>l.label,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"imageType",placeholder:s?"Loading...":"All Image Types",options:z,value:F||null,onChange:l=>w(l||""),keySelector:l=>l.image_type,labelSelector:l=>l.label,required:!1,disabled:s})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"uploadType",placeholder:"All Upload Types",options:[{key:"single",label:"Single Upload"},{key:"multiple",label:"Multiple Upload"}],value:d||null,onChange:l=>a(l||""),keySelector:l=>l.key,labelSelector:l=>l.label,required:!1,disabled:!1})}),e.jsx(c,{withInternalPadding:!0,className:"p-2",children:e.jsx(b,{name:"generatedMethod",placeholder:"All Generated Methods",options:[{key:"manual",label:"Manual"},{key:"generated",label:"Generated"}],value:r||null,onChange:l=>i(l||""),keySelector:l=>l.key,labelSelector:l=>l.label,required:!1,disabled:!1})})]})})]})}const V="_fullSizeModalOverlay_cyz3b_1",D="_fullSizeModalContent_cyz3b_29",H="_ratingWarningContent_cyz3b_53",R="_ratingWarningTitle_cyz3b_65",U="_exportModeSection_cyz3b_133",Y="_splitConfigSection_cyz3b_143",Z="_splitConfigTitle_cyz3b_153",$="_splitInputsContainer_cyz3b_167",J="_splitInputGroup_cyz3b_183",K="_splitInputLabel_cyz3b_197",Q="_splitInput_cyz3b_167",X="_splitTotal_cyz3b_247",L="_splitTotalError_cyz3b_261",ee="_checkboxesContainer_cyz3b_271",le="_ratingWarningButtons_cyz3b_289",te="_singleExportMessage_cyz3b_309",ae="_navigateButtonContainer_cyz3b_333",se="_loadingOverlay_cyz3b_349",t={fullSizeModalOverlay:V,fullSizeModalContent:D,ratingWarningContent:H,ratingWarningTitle:R,exportModeSection:U,splitConfigSection:Y,splitConfigTitle:Z,splitInputsContainer:$,splitInputGroup:J,splitInputLabel:K,splitInput:Q,splitTotal:X,splitTotalError:L,checkboxesContainer:ee,ratingWarningButtons:le,singleExportMessage:te,navigateButtonContainer:ae,loadingOverlay:se};function re({isOpen:m,onClose:u,onExport:x,crisisMapsCount:T,droneImagesCount:z,isLoading:s=!1,exportSuccess:h=!1,variant:_="bulk",onNavigateAndExport:S}){const[p,I]=n.useState("standard"),[g,E]=n.useState(80),[v,j]=n.useState(10),[f,y]=n.useState(10),[C,k]=n.useState(!0),[N,F]=n.useState(!0),w=()=>{if(_==="single"){x(p,["crisis_map","drone_image"]);return}if(!C&&!N){alert("Please select at least one image type to export.");return}const a=[];C&&a.push("crisis_map"),N&&a.push("drone_image"),x(p,a)},d=()=>{u()};return m?_==="single"?e.jsx("div",{className:t.fullSizeModalOverlay,onClick:d,children:e.jsxs("div",{className:t.fullSizeModalContent,onClick:a=>a.stopPropagation(),children:[s&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(M,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),h&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(o,{name:"close-export-success",onClick:d,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Export Single Item"}),e.jsxs("div",{className:t.singleExportMessage,children:[e.jsx("p",{children:"This only exports the 1 item currently on display."}),e.jsx("p",{children:'You may export the entire dataset from the "list view" here:'})]}),e.jsx("div",{className:t.navigateButtonContainer,children:e.jsx(o,{name:"navigate-to-list",variant:"secondary",onClick:S,children:"Navigate to List View"})}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(o,{name:"continue-export",onClick:w,disabled:s,children:s?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{className:"text-white"}),"Exporting..."]}):"Continue"}),e.jsx(o,{name:"cancel-export",variant:"tertiary",onClick:d,disabled:s,children:"Cancel"})]})]})]})}):e.jsx("div",{className:t.fullSizeModalOverlay,onClick:d,children:e.jsxs("div",{className:t.fullSizeModalContent,onClick:a=>a.stopPropagation(),children:[s&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx(M,{className:"text-ifrcRed"}),e.jsx("div",{className:"text-lg font-medium",children:"Exporting..."}),e.jsx("div",{className:"text-sm text-gray-600",children:"This might take a few seconds"})]})}),h&&e.jsx("div",{className:t.loadingOverlay,children:e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"text-lg font-medium",children:"Export Successful!"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Your dataset has been downloaded"}),e.jsx(o,{name:"close-export-success",onClick:d,className:"mt-4",children:"Close"})]})}),e.jsxs("div",{className:t.ratingWarningContent,children:[e.jsx("h3",{className:t.ratingWarningTitle,children:"Export Dataset"}),e.jsx("div",{className:t.exportModeSection,children:e.jsx(A,{name:"export-mode",value:p,onChange:a=>{(a==="standard"||a==="fine-tuning")&&I(a)},options:[{key:"standard",label:"Standard"},{key:"fine-tuning",label:"Fine-tuning"}],keySelector:a=>a.key,labelSelector:a=>a.label,disabled:s})}),p==="fine-tuning"&&e.jsxs("div",{className:t.splitConfigSection,children:[e.jsx("div",{className:t.splitConfigTitle,children:"Dataset Split Configuration"}),e.jsxs("div",{className:t.splitInputsContainer,children:[e.jsxs("div",{className:t.splitInputGroup,children:[e.jsx("label",{htmlFor:"train-split",className:t.splitInputLabel,children:"Train (%)"}),e.jsx("input",{id:"train-split",type:"number",min:"0",max:"100",value:g,onChange:a=>{const r=parseInt(a.target.value)||0,i=100-r;i>=0&&(E(r),v+f>i&&(j(Math.floor(i/2)),y(i-Math.floor(i/2))))},className:t.splitInput,disabled:s})]}),e.jsxs("div",{className:t.splitInputGroup,children:[e.jsx("label",{htmlFor:"test-split",className:t.splitInputLabel,children:"Test (%)"}),e.jsx("input",{id:"test-split",type:"number",min:"0",max:"100",value:v,onChange:a=>{const r=parseInt(a.target.value)||0,i=100-g-r;i>=0&&(j(r),y(i))},className:t.splitInput,disabled:s})]}),e.jsxs("div",{className:t.splitInputGroup,children:[e.jsx("label",{htmlFor:"val-split",className:t.splitInputLabel,children:"Val (%)"}),e.jsx("input",{id:"val-split",type:"number",min:"0",max:"100",value:f,onChange:a=>{const r=parseInt(a.target.value)||0,i=100-g-r;i>=0&&(y(r),j(i))},className:t.splitInput,disabled:s})]})]}),g+v+f!==100&&e.jsx("div",{className:t.splitTotal,children:e.jsx("span",{className:t.splitTotalError,children:"Must equal 100%"})})]}),e.jsxs("div",{className:t.checkboxesContainer,children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(P,{name:"crisis-maps",label:`Crisis Maps (${T} images)`,value:C,onChange:a=>k(a),disabled:s})}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(P,{name:"drone-images",label:`Drone Images (${z} images)`,value:N,onChange:a=>F(a),disabled:s})})]}),e.jsxs("div",{className:t.ratingWarningButtons,children:[e.jsx(o,{name:"confirm-export",onClick:w,disabled:s,children:s?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{className:"text-white"}),"Exporting..."]}):"Export Selected"}),e.jsx(o,{name:"cancel-export",variant:"tertiary",onClick:d,disabled:s,children:"Cancel"})]})]})]})}):null}export{re as E,ie as F}; diff --git a/py_backend/static/assets/index-BYJiCH1e.css b/py_backend/static/assets/index-BYJiCH1e.css new file mode 100644 index 00000000..6dbdab8d --- /dev/null +++ b/py_backend/static/assets/index-BYJiCH1e.css @@ -0,0 +1 @@ +:root{--go-ui-font-family-sans-serif: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, sans-serif;--go-ui-font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;--go-ui-font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;--base-font-size: .875rem;--go-ui-font-size-export: .6875rem;--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: var(--base-font-size);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.5);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.875);--go-ui-font-size-4xl: calc(var(--base-font-size) * 2.375);--go-ui-height-icon-multiplier: 1.33em;--go-ui-height-brand-icon: 2.5rem;--go-ui-height-social-icon: 2.5rem;--go-ui-height-key-figure-icon: 3rem;--go-ui-height-status-icon: 2.5rem;--go-ui-height-compact-status-icon: 2rem;--go-ui-line-height-none: 1;--go-ui-line-height-xs: 1.25;--go-ui-line-height-sm: 1.375;--go-ui-line-height-md: 1.5;--go-ui-font-weight-light: 300;--go-ui-font-weight-normal: 400;--go-ui-font-weight-medium: 500;--go-ui-font-weight-semibold: 600;--go-ui-font-weight-bold: 700;--go-ui-width-screen-sm: 640px;--go-ui-width-screen-md: 768px;--go-ui-width-screen-lg: 1024px;--go-ui-width-screen-xl: 1280px;--go-ui-width-screen-2xl: 1536px;--base-spacing: 1rem;--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.5);--go-ui-spacing-xl: calc(var(--base-spacing) * 2.25);--go-ui-spacing-2xl: calc(var(--base-spacing) * 3.5);--go-ui-spacing-3xl: calc(var(--base-spacing) * 4.75);--go-ui-spacing-4xl: calc(var(--base-spacing) * 6);--go-ui-spacing-5xl: calc(var(--base-spacing) * 7.25);--go-ui-width-separator-sm: 1pt;--go-ui-width-separator-md: 2pt;--go-ui-width-separator-lg: 4pt;--go-ui-width-separator-xl: 8pt;--go-ui-width-separator-thin: 1pt;--go-ui-width-separator-small: 2pt;--go-ui-width-separator-thick: 4pt;--go-ui-width-separator-medium: 6pt;--go-ui-width-separator-large: 8pt;--go-ui-width-separator-dense: 12pt;--go-ui-width-separator-extra-dense: 14pt;--go-ui-border-radius-none: 0;--go-ui-border-radius-sm: .125rem;--go-ui-border-radius-md: .25rem;--go-ui-border-radius-lg: .5rem;--go-ui-border-radius-xl: .75rem;--go-ui-border-radius-2xl: 1rem;--go-ui-border-radius-3xl: 1.5rem;--go-ui-border-radius-full: 9999px;--go-ui-box-shadow-xs: 0 1pt 2pt rgba(0, 0, 0, .2);--go-ui-box-shadow-sm: 0 1pt 4pt rgba(0, 0, 0, .2);--go-ui-box-shadow-md: 0 1pt 5pt -2pt rgba(0, 0, 0, .375);--go-ui-box-shadow-lg: 0 2pt 8pt -4pt rgba(0, 0, 0, .5);--go-ui-box-shadow-xl: 0 3pt 16pt -6pt rgba(0, 0, 0, .5);--go-ui-box-shadow-2xl: 0 4pt 16pt -6pt rgba(0, 0, 0, 1);--go-ui-box-shadow-inner: inset 0 2pt 4pt 0 rgba(0, 0, 0, .375);--go-ui-box-shadow-none: 0 0 rgba(0,0,0,0);--go-ui-duration-transition-fast: .1s;--go-ui-duration-transition-medium: .2s;--go-ui-duration-transition-slow: .5s;--go-ui-duration-animation-fast: .5s;--go-ui-duration-animation-medium: 1s;--go-ui-duration-animation-slow: 2s;--go-ui-color-orange: #FF8000;--go-ui-color-green: #7FB845;--go-ui-color-blue: #3FA2F7;--go-ui-color-red: #F75C65;--go-ui-color-yellow: #d9b100;--go-ui-color-semantic-yellow: #FFB443;--go-ui-color-black: #000000;--go-ui-color-white: #ffffff;--go-ui-color-gray-10: #FAFAFA;--go-ui-color-gray-20: #F2F2F2;--go-ui-color-gray-30: #E0E0E0;--go-ui-color-gray-40: #C6C6C6;--go-ui-color-gray-50: #A8A8A8;--go-ui-color-gray-60: #8D8D8D;--go-ui-color-gray-70: #6F6F6F;--go-ui-color-gray-80: #525252;--go-ui-color-gray-90: #323232;--go-ui-color-red-10: #FDD6D9;--go-ui-color-red-20: #FCC2C5;--go-ui-color-red-30: #FBADB2;--go-ui-color-red-40: #FA999F;--go-ui-color-red-50: #F9858C;--go-ui-color-red-60: #F87079;--go-ui-color-red-70: #F75C65;--go-ui-color-red-80: #F64752;--go-ui-color-red-90: #F5333F;--go-ui-color-dark-blue-10: #009CDD;--go-ui-color-dark-blue-20: #418FDE;--go-ui-color-dark-blue-30: #236192;--go-ui-color-dark-blue-40: #1B365D;--go-ui-color-blue-10: #E0E3E7;--go-ui-color-blue-20: #CCD2D9;--go-ui-color-blue-30: #AEB7C2;--go-ui-color-blue-40: #99A5B3;--go-ui-color-blue-50: #7D8B9D;--go-ui-color-blue-60: #67788D;--go-ui-color-blue-70: #4D617A;--go-ui-color-blue-80: #344B67;--go-ui-color-blue-90: #011E41;--go-ui-color-primary-red: var(--go-ui-color-red-90);--go-ui-color-primary-blue: var(--go-ui-color-blue-90);--go-ui-color-primary-gray: var(--go-ui-color-gray-90);--go-ui-color-red-hover: #DE2934;--go-ui-color-purple-per: #8648B3;--go-ui-color-orange-per: #FF8654;--go-ui-color-blue-per: #418FDE;--go-ui-color-teal-per: #00B2A2;--go-ui-color-red-per: #DA283D;--go-ui-color-text-black: rgba(0, 0, 0, 1);--go-ui-color-text: rgba(0, 0, 0, .8);--go-ui-color-text-light: rgba(0, 0, 0, .5);--go-ui-color-positive: var(--go-ui-color-green);--go-ui-color-information: var(--go-ui-color-blue);--go-ui-color-warning: var(--go-ui-color-yellow);--go-ui-color-negative: var(--go-ui-color-red);--go-ui-color-separator: rgba(0, 0, 0, .1);--go-ui-color-separator-light: rgba(0, 0, 0, .05);--go-ui-color-background: #f7f7f7;--go-ui-color-foreground: #ffffff;--go-ui-color-element-background: rgba(0, 0, 0, .06);--go-ui-color-readonly-element-background: rgba(0, 0, 0, .03);--go-ui-color-background-overlay: rgba(255, 255, 255, .88);--go-ui-color-background-overlay-dark: rgba(0, 0, 0, .5);--go-ui-color-background-hover: rgba(0, 0, 0, .06);--go-ui-opacity-disabled-element: .5;--go-ui-opacity-chart-point: .8;--go-ui-opacity-message: .8;--go-ui-content-min-height: 13rem;--go-ui-compact-content-min-height: 7rem;--go-ui-width-min-modal: 18rem;--go-ui-height-min-modal: 11rem;--go-ui-width-modal-sm: 32rem;--go-ui-height-modal-sm: 100%;--go-ui-width-modal-md: 42rem;--go-ui-height-modal-md: 100%;--go-ui-width-modal-lg: 64rem;--go-ui-height-modal-lg: 100%;--go-ui-width-modal-xl: 92rem;--go-ui-height-modal-xl: 100%;--go-ui-saturate-0: 0;--go-ui-saturate-50: .5;--go-ui-saturate-100: 1;--go-ui-saturate-150: 1.5;--go-ui-saturate-200: 2;--go-ui-color-hazard-fi: #b7c992;--go-ui-color-map-dot-appeals: #f5333f;--go-ui-color-map-dot-dref: #ff9e00;--go-ui-color-map-dot-fba: #ff6b00;--go-ui-color-map-dot-multiple-types: #4c5d9b;--go-ui-width-content-max: 50rem;--go-ui-page-header-description-width-max: var(--go-ui-width-content-max);--go-ui-page-width-max: 90rem;--mapbox-icon-width: 88px;--go-ui-export-page-margin: 10mm 10mm 16mm 10mm}@media screen and (max-width: 40rem){:root{--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: calc(var(--base-font-size) * 1);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.4);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.6);--go-ui-font-size-4xl: calc(var(--base-font-size) * 1.8)}}@media screen and (max-width: 40rem){:root{--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.25);--go-ui-spacing-xl: calc(var(--base-spacing) * 1.5625);--go-ui-spacing-2xl: calc(var(--base-spacing) * 1.95);--go-ui-spacing-3xl: calc(var(--base-spacing) * 2.44);--go-ui-spacing-4xl: calc(var(--base-spacing) * 3);--go-ui-spacing-5xl: calc(var(--base-spacing) * 3.8)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.left-1\/2{left:50%}.z-50{z-index:50}.mx-auto{margin-inline:auto}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.min-h-\[60vh\]{min-height:60vh}.min-h-\[400px\]{min-height:400px}.w-full{width:100%}.min-w-\[300px\]{min-width:300px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-105{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-none{--tw-border-style:none;border-style:none}.bg-transparent{background-color:#0000}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.text-center{text-align:center}.text-left{text-align:left}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.opacity-50{opacity:.5}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}}*{box-sizing:border-box}@media screen{html{scrollbar-gutter:stable;margin:0;padding:0}}body{line-height:var(--go-ui-line-height-md);color:var(--go-ui-color-text);font-family:var(--go-ui-font-family-sans-serif);font-size:var(--go-ui-font-size-md);font-weight:var(--go-ui-font-weight-normal)}@media screen{body{background-color:var(--go-ui-color-background);margin:0;padding:0}}ul,ol,p{margin:0}@media print{@page{size:portrait A4;margin:10mm 10mm 16mm}body{font-family:Open Sans,sans-serif}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}._raw-button_1p3om_1{position:relative;outline-offset:var(--go-ui-width-separator-lg);border:0;background-color:transparent;cursor:pointer;padding:0;color:inherit;font-family:inherit;font-size:inherit}._raw-button_1p3om_1:focus-visible,._raw-button_1p3om_1._focused_1p3om_13{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:-4px}._button_18a84_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--font-size: inherit;--border-radius: var(--go-ui-border-radius-full);--text-transform: none;--cursor: default;--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-lg);display:inline-flex;position:relative;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);line-height:var(--go-ui-line-height-xs);color:inherit;color:var(--color-text);font-family:inherit;font-size:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-medium)}._button_18a84_1._ellipsized_18a84_29{flex-grow:1}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32{display:block;min-width:0}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32 ._overflow-wrapper_18a84_36{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._button_18a84_1._primary_18a84_44 ._children_18a84_32,._button_18a84_1._secondary_18a84_45 ._children_18a84_32{text-align:center}._button_18a84_1._primary_18a84_44._no-spacing_18a84_50,._button_18a84_1._secondary_18a84_45._no-spacing_18a84_50{--padding: 0}._button_18a84_1._primary_18a84_44._condensed-spacing_18a84_54,._button_18a84_1._secondary_18a84_45._condensed-spacing_18a84_54,._button_18a84_1._primary_18a84_44._compact-spacing_18a84_58,._button_18a84_1._secondary_18a84_45._compact-spacing_18a84_58{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._button_18a84_1._primary_18a84_44._cozy-spacing_18a84_62,._button_18a84_1._secondary_18a84_45._cozy-spacing_18a84_62,._button_18a84_1._primary_18a84_44._default-spacing_18a84_66,._button_18a84_1._secondary_18a84_45._default-spacing_18a84_66{--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._button_18a84_1._primary_18a84_44._comfortable-spacing_18a84_70,._button_18a84_1._secondary_18a84_45._comfortable-spacing_18a84_70{--padding: var(--go-ui-spacing-2xs) var(--go-ui-spacing-lg)}._button_18a84_1._primary_18a84_44._relaxed-spacing_18a84_74,._button_18a84_1._secondary_18a84_45._relaxed-spacing_18a84_74{--padding: var(--go-ui-spacing-xs) var(--go-ui-spacing-xl)}._button_18a84_1._primary_18a84_44._loose-spacing_18a84_78,._button_18a84_1._secondary_18a84_45._loose-spacing_18a84_78{--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-2xl)}._button_18a84_1._primary_18a84_44{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_18a84_1._primary_18a84_44._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._primary_18a84_44:not(._disabled_18a84_88):hover{--color-background: var(--go-ui-color-red-hover)}._button_18a84_1._secondary_18a84_45{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._secondary_18a84_45._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._secondary_18a84_45:not(._disabled_18a84_88):hover{background-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._button_18a84_1._tertiary_18a84_116{--color-border: transparent;--color-background: transparent;--color-text: inherit;--padding: 0;--border-radius: unset}._button_18a84_1._tertiary_18a84_116:not(._disabled_18a84_88):hover{--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._tertiary-on-dark_18a84_130{--color-border: transparent;--color-background: transparent;--color-text: var(--go-ui-color-white);--padding: 0;--border-radius: unset}._button_18a84_1._tertiary-on-dark_18a84_130:not(._disabled_18a84_88):hover{opacity:.8}._button_18a84_1._dropdown-item_18a84_144{display:flex;width:100%;text-align:left;--border-radius: unset;--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._button_18a84_1._dropdown-item_18a84_144:hover{background-color:var(--go-ui-color-background-hover)}._button_18a84_1._disabled_18a84_88{opacity:var(--go-ui-opacity-disabled-element);--cursor: not-allowed}._button_18a84_1:not(._disabled_18a84_88){--cursor: pointer}._basic-layout_v9jro_1{display:flex;align-items:flex-start}._basic-layout_v9jro_1._with-wrap_v9jro_5{flex-wrap:wrap}._basic-layout_v9jro_1 ._icons-container_v9jro_9{display:flex;align-items:flex-start}._basic-layout_v9jro_1 ._children-container_v9jro_14{display:flex;flex-grow:1}._basic-layout_v9jro_1 ._actions-container_v9jro_19{display:flex;align-items:flex-start}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._icons-container_v9jro_9{flex-shrink:0}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._actions-container_v9jro_19{flex-shrink:0}._alert_uuuo4_1{display:flex;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-2xl);width:calc(14rem + 16vw);color:var(--go-ui-color-white)}._alert_uuuo4_1 ._icon_uuuo4_8,._alert_uuuo4_1 ._close-icon_uuuo4_12{font-size:var(--go-ui-font-size-2xl)}._alert_uuuo4_1._info_uuuo4_16{background-color:var(--go-ui-color-gray-80)}._alert_uuuo4_1._success_uuuo4_20{background-color:var(--go-ui-color-positive)}._alert_uuuo4_1._danger_uuuo4_24{background-color:var(--go-ui-color-negative)}._alert_uuuo4_1._warning_uuuo4_28{background-color:var(--go-ui-color-warning)}._container_lyve2_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:flex;flex-direction:column}._container_lyve2_1 ._header_lyve2_8{flex-shrink:0}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11{display:flex;flex-direction:row;justify-content:center}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11 ._centered-description_lyve2_16{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._container_lyve2_1._with-border-and-header-background_lyve2_23{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md)}._container_lyve2_1._with-border-and-header-background_lyve2_23 ._header_lyve2_8{border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-background)}._container_lyve2_1 ._border_lyve2_33{flex-shrink:0;margin:0;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._container_lyve2_1 ._content_lyve2_39{flex-grow:1}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42{isolation:isolate;position:relative;min-height:6rem}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42 ._message_lyve2_47{z-index:1}._container_lyve2_1 ._footer_lyve2_53{flex-shrink:0}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr))}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39 ._message_lyve2_47{grid-column:1 / -1}._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--num-columns: 2}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--num-columns: 3}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._four-columns_lyve2_96{--num-columns: 4}._container_lyve2_1._with-grid-view_lyve2_57._five-columns_lyve2_100{--num-columns: 5}._container_lyve2_1._with-vertical-view_lyve2_105>._content_lyve2_39{display:flex;flex-direction:column}._container_lyve2_1._with-overflow-in-content_lyve2_112>._content_lyve2_39{overflow:auto}._default-message_wu986_1._overlay_wu986_2{position:absolute;top:0;left:0;width:100%;height:100%}._message_176iw_1{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-sm);justify-content:center;opacity:var(--go-ui-opacity-message);background-color:var(--go-ui-color-foreground);padding:var(--go-ui-spacing-md);min-height:var(--go-ui-content-min-height);text-align:center}._message_176iw_1 ._icon_176iw_13{color:var(--go-ui-color-text-light);font-size:var(--go-ui-height-status-icon)}._message_176iw_1 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-height-compact-status-icon)}._message_176iw_1 ._title_176iw_22{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._errored_176iw_27 ._title_176iw_22{color:var(--go-ui-color-primary-red)}._message_176iw_1._compact_176iw_33{padding:var(--go-ui-spacing-sm);min-height:var(--go-ui-compact-content-min-height)}._message_176iw_1._compact_176iw_33 ._title_176iw_22{font-size:var(--go-ui-font-size-lg)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13{font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-font-size-xl)}._spinner_50bgg_1{display:inline-flex;border-radius:var(--go-ui-border-radius-full);background:var(--go-ui-color-gray-40);padding:.2em;line-height:0;gap:.2em}._spinner_50bgg_1 ._spinner-bounce_50bgg_9{border-radius:50%;background:var(--go-ui-color-white);width:.6em;height:.6em;animation:_spinner-bounce-delay_50bgg_1 var(--go-ui-duration-animation-slow) infinite ease-in-out both}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(1){animation-delay:calc(var(--go-ui-duration-animation-fast))}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(2){animation-delay:calc(var(--go-ui-duration-animation-fast) * 2)}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(3){animation-delay:calc(var(--go-ui-duration-animation-fast) * 3)}@keyframes _spinner-bounce-delay_50bgg_1{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}._filter-bar_16xsj_1{display:flex;flex-direction:column}._grid-with-actions_16xsj_6{display:flex}._grid-with-actions_16xsj_6 ._grid_16xsj_6{display:grid;flex-grow:1;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._grid-with-actions_16xsj_6 ._actions_16xsj_15{display:flex}@media screen and (max-width: 30rem){._grid-with-actions_16xsj_6{flex-wrap:wrap}}._header_537v1_1{display:flex;flex-direction:column}._heading_1uxwj_1{--font-size: var(--go-ui-font-size-xl);--line-height: var(--go-ui-line-height-sm);margin:0;line-height:var(--line-height);font-size:var(--font-size);font-weight:var(--go-ui-font-weight-semibold)}._heading_1uxwj_1._level-one_1uxwj_9{--font-size: var(--go-ui-font-size-4xl)}@media print{._heading_1uxwj_1._level-one_1uxwj_9{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-two_1uxwj_17{--font-size: var(--go-ui-font-size-2xl)}@media print{._heading_1uxwj_1._level-two_1uxwj_17{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-three_1uxwj_25{--font-size: var(--go-ui-font-size-xl)}@media print{._heading_1uxwj_1._level-three_1uxwj_25{color:var(--go-ui-color-primary-red)}}._heading_1uxwj_1._level-four_1uxwj_33{--font-size: var(--go-ui-font-size-lg)}._heading_1uxwj_1._level-five_1uxwj_37{--font-size: var(--go-ui-font-size-md)}._heading_1uxwj_1._level-six_1uxwj_41{--font-size: var(--go-ui-font-size-sm)}._heading_1uxwj_1 ._ellipsized-text_1uxwj_45{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._heading_1uxwj_1._ellipsized_1uxwj_45{width:100%;overflow:auto}._alert-container_rcayz_1{isolation:isolate;position:fixed;top:0;left:50%;transform:translate(-50%);z-index:1;padding:var(--go-ui-spacing-2xl) 0;max-height:calc(100vh - 2 * var(--go-ui-spacing-2xl));overflow:auto;scrollbar-width:none}._alert-container_rcayz_1::-webkit-scrollbar{display:none}._alert-container_rcayz_1 ._alert_rcayz_1{margin:var(--go-ui-spacing-sm) 0}._bar-chart_3dbpc_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-sm)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6{display:flex;align-items:center;gap:var(--go-ui-spacing-md)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6._hoverable_3dbpc_11:hover{background-color:var(--go-ui-color-background-hover)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._label_3dbpc_17{width:30%;font-weight:var(--go-ui-font-weight-medium)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22{border-radius:.3rem;background-color:var(--go-ui-color-gray-30);width:60%;height:.6rem}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22 ._bar_3dbpc_1{border-radius:.3rem;background-color:var(--go-ui-color-primary-red);height:100%}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._value_3dbpc_36{width:10%;font-weight:var(--go-ui-font-weight-medium)}._number-output_1blvi_1{display:inline;font-size:inherit}._tooltip-dummy_rbf3f_1{opacity:0;width:0;height:0}._tooltip-content_rbf3f_7{opacity:0;padding:0;animation:_slide-down_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast)}._pointer_rbf3f_14{opacity:0;animation:_fade-in_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium)}@keyframes _slide-down_rbf3f_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_rbf3f_1{0%{opacity:0}to{opacity:1}}._popup_cws49_1{position:fixed;border-radius:var(--go-ui-spacing-xs);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);max-height:40vh;overflow:auto}._popup_cws49_1._top-orientation_cws49_9{box-shadow:0 -8pt 20pt -5pt #00000080}._pointer_cws49_15{position:fixed;transform:translate(-50%);background-color:transparent;line-height:0;color:var(--go-ui-color-white);font-size:.5rem;pointer-events:none;filter:drop-shadow(0 -1pt 1pt rgba(0,0,0,.1))}._pointer_cws49_15 ._icon_cws49_25{width:2em;height:1em;fill:currentColor}._pointer_cws49_15._top-orientation_cws49_9{transform:translate(-50%) rotate(180deg)}._block-loading_1jl3q_1{display:flex;padding:var(--go-ui-spacing-sm);width:100%;min-height:var(--go-ui-content-min-height)}._block-loading_1jl3q_1 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-4xl)}._block-loading_1jl3q_1 ._inner_1jl3q_11{display:flex;align-items:center;flex-direction:column;flex-grow:1;justify-content:center;padding:var(--go-ui-spacing-sm);gap:var(--go-ui-spacing-md)}._block-loading_1jl3q_1._with-border_1jl3q_21 ._inner_1jl3q_11{border:var(--go-ui-width-separator-md) dashed var(--go-ui-color-gray-40);border-radius:var(--go-ui-border-radius-xl)}._block-loading_1jl3q_1._compact_1jl3q_28{min-height:var(--go-ui-compact-content-min-height)}._block-loading_1jl3q_1._compact_1jl3q_28 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-xl)}._overlay_cnygi_1{position:absolute;background-color:var(--go-ui-color-background-overlay);width:100%;height:100%}._overlay_cnygi_1._dark_cnygi_7{background-color:var(--go-ui-color-background-overlay-dark)}._body-overlay_1iouu_1{display:flex;position:fixed;top:0;left:0;align-items:center;justify-content:center;width:100vw;height:100vh}._radio-input_17cft_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._radio-input_17cft_1 ._radio-list-container_17cft_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);min-height:1em}._radio-input_17cft_1._disabled_17cft_13{opacity:var(--go-ui-opacity-disabled-element);filter:saturate(50%)}._radio-input_17cft_1 ._input-hint_17cft_18{padding:var(--go-ui-spacing-xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._input-error_1sxiz_1{display:flex;align-items:center;opacity:0;background-color:var(--go-ui-color-red);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);animation:_slide-down_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast);color:var(--go-ui-color-white);gap:var(--go-ui-spacing-sm)}._pointer_1sxiz_14{opacity:0;animation:_fade-in_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium);color:var(--go-ui-color-red)}@keyframes _slide-down_1sxiz_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_1sxiz_1{0%{opacity:0}to{opacity:1}}._input-label_3lsx4_1{display:flex;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);gap:var(--go-ui-spacing-xs)}._input-label_3lsx4_1._disabled_3lsx4_7{color:var(--go-ui-color-gray-40)}._input-label_3lsx4_1 ._required_3lsx4_11{color:var(--go-ui-color-primary-red)}._radio_1uudv_1{--cursor: default;cursor:default;cursor:var(--cursor)}._radio_1uudv_1 ._icon_1uudv_5{transition:var(--go-ui-duration-transition-medium) color ease-in-out;font-size:var(--go-ui-height-icon-multiplier)}._radio_1uudv_1 ._content_1uudv_10{flex-direction:column;gap:0;line-height:var(--go-ui-line-height-sm)}._radio_1uudv_1 ._description_1uudv_16{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._radio_1uudv_1 ._input_1uudv_21{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._radio_1uudv_1 ._input_1uudv_21:focus-visible+div{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:1px;border-radius:50%}._radio_1uudv_1._active_1uudv_37 ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1._disabled_1uudv_43{opacity:var(--go-ui-opacity-disabled-element)}._radio_1uudv_1:not(._disabled_1uudv_43):focus ._icon_1uudv_5,._radio_1uudv_1:not(._disabled_1uudv_43):hover ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1:not(._disabled_1uudv_43):not(._read-only_1uudv_55){--cursor: pointer}._boolean-output_kg1uq_1{color:inherit}._breadcrumbs_c7c54_1{display:flex;align-items:center;flex-wrap:wrap}._breadcrumbs_c7c54_1 ._item_c7c54_6{display:flex}._breadcrumbs_c7c54_1 ._item_c7c54_6:not(:last-child){color:var(--go-ui-color-gray-70)}._breadcrumbs_c7c54_1 ._item_c7c54_6:last-child{color:var(--go-ui-color-black)}._breadcrumbs_c7c54_1 ._separator_c7c54_18{display:flex;justify-content:center;color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-xl)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2{transform:rotate(-90deg)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2 ._y-axis-label_8lppt_2{display:flex;justify-content:center;width:100%;height:100%}._chart-axes_8lppt_1 ._y-axis-tick-text_8lppt_13{display:flex;align-items:center;justify-content:flex-end;padding:0 var(--go-ui-spacing-2xs);text-align:right;word-break:break-word;font-size:var(--go-ui-font-size-xs)}._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transition:var(--go-ui-duration-transition-medium) ease-in-out transform;padding:var(--go-ui-spacing-2xs) 0;text-align:center;word-break:break-word;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transform:rotate(-30deg) translate(-10%) translateY(20%);padding:0;font-size:var(--go-ui-font-size-2xs)}}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.5}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40._hovered_8lppt_46,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41._hovered_8lppt_46{stroke-opacity:1}._chart-axes_8lppt_1 ._bound-rect_8lppt_51{fill:var(--go-ui-color-gray-60);fill-opacity:0;transition:fill-opacity var(--go-ui-duration-transition-slow) ease-in-out}._chart-axes_8lppt_1 ._bound-rect_8lppt_51:hover{fill-opacity:.2}._chart-container_z2i5d_1{width:100%;height:16rem}._chart-container_z2i5d_1 ._svg_z2i5d_5{width:100%;height:100%}._chip_3wch9_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--border-radius: var(--go-ui-border-radius-full);--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm);display:flex;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);padding:var(--padding);color:inherit;color:var(--color-text);gap:var(--go-ui-spacing-3xs)}._chip_3wch9_1._no-delete-icon_3wch9_17{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._chip_3wch9_1._primary_3wch9_21{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._chip_3wch9_1._secondary_3wch9_27{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._chip_3wch9_1._tertiary_3wch9_33{--color-border: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-30);--color-text: inherit}._chip_3wch9_1 ._close-icon_3wch9_39{font-size:var(--go-ui-font-size-sm)}._button_1vbet_1{--color-border: transparent;--color-text: transparent;--color-background: transparent;--font-size: var(--go-ui-height-icon-multiplier);--border-radius: var(--go-ui-border-radius-md);--text-transform: none;--cursor: default;--spacing: var(--go-ui-spacing-2xs);--padding: var(--go-ui-spacing-2xs);display:flex;position:relative;align-items:center;justify-content:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);color:transparent;color:var(--color-text);font-family:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-normal);gap:var(--spacing)}._button_1vbet_1._round_1vbet_31{--border-radius: 50%}._button_1vbet_1._primary_1vbet_34{--border-color: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_1vbet_1._primary_1vbet_34:disabled{--border-color: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-40)}._button_1vbet_1._primary_1vbet_34:not(:disabled):hover{--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._secondary_1vbet_51{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1._secondary_1vbet_51:disabled{--color-text: var(--go-ui-color-gray-40);--color-border: var(--go-ui-color-gray-40)}._button_1vbet_1._secondary_1vbet_51:not(:disabled):hover{--color-text: var(--go-ui-color-white);--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._tertiary_1vbet_69{--color-background: transparent;--color-text: inherit}._button_1vbet_1._tertiary_1vbet_69:disabled{--color-text: var(--go-ui-color-gray-40)}._button_1vbet_1._tertiary_1vbet_69:not(:disabled):hover{--color-background: var(--go-ui-color-gray-20);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1:disabled{--cursor: not-allowed}._button_1vbet_1:not(:disabled){--cursor: pointer}._checkbox_12g7n_1{display:flex;align-items:flex-start;cursor:pointer;gap:var(--go-ui-spacing-sm)}._checkbox_12g7n_1._with-background_12g7n_7{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12{position:relative;flex-shrink:0;line-height:0;font-size:var(--go-ui-height-icon-multiplier)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18:focus-visible+svg{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40)}._checkbox_12g7n_1 ._content_12g7n_33{flex-direction:column;flex-grow:1;line-height:var(--go-ui-line-height-sm);gap:0}._checkbox_12g7n_1 ._description_12g7n_40{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-xs)}._checkbox_12g7n_1._checked_12g7n_45 ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1:focus ._checkmark_12g7n_12,._checkbox_12g7n_1:hover ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58{display:flex;align-items:flex-start;cursor:not-allowed;gap:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-40)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58 ._checkmark_12g7n_12{color:var(--go-ui-color-gray-40)}._checklist_nwqu8_1{--spacing: var(--go-ui-spacing-md);display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._vertical_nwqu8_7 ._checklist-container_nwqu8_8{display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._horizontal_nwqu8_15 ._checklist-container_nwqu8_8{display:grid;grid-gap:var(--spacing);grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}._input-hint_1p19h_1{display:inline-block;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._overlay_1iffn_1{overflow:auto;animation:_fade-in_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5{display:block;width:calc(100% - var(--go-ui-spacing-md) * 2);max-height:calc(100% - var(--go-ui-spacing-md) * 2);overflow:auto;animation:_slide-down_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5._size-sm_1iffn_12{max-width:var(--go-ui-width-modal-sm)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-md_1iffn_16{max-width:var(--go-ui-width-modal-md)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-lg_1iffn_20,._overlay_1iffn_1 ._modal-container_1iffn_5._size-xl_1iffn_24{max-width:var(--go-ui-width-modal-lg)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-full_1iffn_28{width:calc(100vw - var(--go-ui-spacing-md) * 2);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._page-width_1iffn_33{max-width:var(--go-ui-page-width-max);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-auto_1iffn_38{max-width:-moz-fit-content;max-width:fit-content}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);width:100%;min-width:var(--go-ui-width-min-modal);height:100%;min-height:var(--go-ui-height-min-modal);overflow:auto}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._close-icon_1iffn_53{font-size:var(--go-ui-height-icon-multiplier)}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._content_1iffn_57{flex-grow:1;overflow:auto}@keyframes _fade-in_1iffn_1{0%{opacity:0}to{opacity:1}}@keyframes _slide-down_1iffn_1{0%{transform:translateY(-5pt)}to{transform:translateY(0)}}._input-container_1b4m7_1{position:relative}._input-container_1b4m7_1 ._input-section_1b4m7_4{align-items:center;transition:var(--go-ui-duration-transition-medium) var(--go-ui-color-gray-10) ease-in-out;border-bottom:var(--go-ui-width-separator-thin) solid transparent;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-element-background);padding:0 var(--go-ui-spacing-sm)}._input-container_1b4m7_1 ._input-section_1b4m7_4 ._input_1b4m7_1{padding:var(--go-ui-spacing-xs) 0}._input-container_1b4m7_1._disabled_1b4m7_17{opacity:var(--go-ui-opacity-disabled-element)}._input-container_1b4m7_1._disabled_1b4m7_17 ._input-section_1b4m7_4{cursor:not-allowed}._input-container_1b4m7_1._errored_1b4m7_25 ._input-section_1b4m7_4{border-color:var(--go-ui-color-red)}._input-container_1b4m7_1._general_1b4m7_31 ._input-section_1b4m7_4{border-radius:0;border-bottom-color:var(--go-ui-color-separator)}._input-container_1b4m7_1._read-only_1b4m7_38 ._input-section_1b4m7_4{background-color:var(--go-ui-color-readonly-element-background)}._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:hover,._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:focus-within{border-bottom-color:var(--go-ui-color-primary-red)}._input-container_1b4m7_1 ._input-hint_1b4m7_53{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._input-container_1b4m7_1 ._input-error_1b4m7_58{position:absolute;min-width:10rem}._input-container_1b4m7_1:not(._disabled_1b4m7_17):not(._read-only_1b4m7_38):hover:enabled ._input-section_1b4m7_4{border-bottom-color:var(--go-ui-color-primary-red)}._raw-input_8rtzt_1{margin:0;margin:initial;outline:medium none invert;outline:initial;border:medium none currentColor;border:initial;background-color:transparent;background-color:initial;padding:0;padding:initial;width:100%;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit}._raw-input_8rtzt_1:disabled{cursor:not-allowed}._date-output_4jzjo_1{display:inline}._date-range_k6lnj_1{display:flex;gap:var(--go-ui-spacing-md);flex-wrap:wrap}._dropdown-menu_16hml_1{align-items:center}._dropdown-menu_16hml_1 ._icons_16hml_4,._dropdown-menu_16hml_1 ._content_16hml_5,._dropdown-menu_16hml_1 ._actions_16hml_6{pointer-events:none}._dropdown-menu_16hml_1 ._dropdown-icon_16hml_10{margin-left:-.3em;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-content_16hml_16{display:flex;flex-direction:column;padding:var(--go-ui-spacing-sm) 0}._expandable-container_17290_1{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._header_17290_5{background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._icon_17290_9{display:flex;font-size:var(--go-ui-height-icon-multiplier)}._expandable-container_17290_1:hover ._icon_17290_9{animation:_wiggle_17290_1 var(--go-ui-duration-transition-medium) ease-out}@keyframes _wiggle_17290_1{0%{transform:translateY(0)}50%{transform:translateY(-.1rem)}to{transform:translateY(0)}}._grid_1n8b5_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / 2),1fr));grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr));position:relative;min-height:var(--go-ui-content-min-height)}._grid_1n8b5_1 ._message_1n8b5_10{grid-column:-1 / 1}._grid_1n8b5_1._compact_1n8b5_14{min-height:0;min-height:initial}._grid_1n8b5_1._compact_1n8b5_14._pending_1n8b5_17{min-height:var(--go-ui-compact-content-min-height)}._grid_1n8b5_1._two-columns_1n8b5_22{--num-columns: 2}@media screen and (max-width: 55rem){._grid_1n8b5_1._two-columns_1n8b5_22{--max-width: 60rem}}._grid_1n8b5_1._three-columns_1n8b5_31{--num-columns: 3}@media screen and (max-width: 55rem){._grid_1n8b5_1._three-columns_1n8b5_31{--max-width: 60rem}}._grid_1n8b5_1._four-columns_1n8b5_39{--num-columns: 4}._grid_1n8b5_1._five-columns_1n8b5_43{--num-columns: 5}._html-output_3s7du_1 p{margin:var(--go-ui-spacing-xs)}._html-output_3s7du_1 iframe{width:100%}._image_yrvu8_1{display:flex;flex-direction:column;margin:0}._image_yrvu8_1 ._img-element_yrvu8_6{background-color:var(--go-ui-color-background);width:100%;height:auto;-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center}._image_yrvu8_1._expandable_yrvu8_14{cursor:pointer}._image_yrvu8_1 ._caption_yrvu8_18{text-align:center}._expanded-modal_yrvu8_23 ._content_yrvu8_24{display:flex}._expanded-modal_yrvu8_23 ._content_yrvu8_24 ._img-element_yrvu8_6{margin:0;background-color:var(--go-ui-color-background);width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._input-section_1cptl_1{display:grid;grid-gap:var(--go-ui-spacing-md);grid-template-columns:1fr 2fr;background-color:var(--go-ui-color-white)}._input-section_1cptl_1 ._header_1cptl_7 ._heading-container_1cptl_8 ._heading_1cptl_8{flex-grow:initial}@media screen and (max-width: 60rem){._input-section_1cptl_1{grid-template-columns:1fr}}._input-section_1cptl_1._with-compact-title-section_1cptl_19{grid-template-columns:1fr 3fr}._input-section_1cptl_1._with-padding_1cptl_23{padding:var(--go-ui-spacing-lg)}._input-section_1cptl_1 ._asterisk_1cptl_27{color:var(--go-ui-color-primary-red)}._input-section_1cptl_1 ._description_1cptl_31{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._input-section_1cptl_1 ._content-section_1cptl_37{display:grid;grid-gap:var(--go-ui-spacing-sm);align-items:start}._input-section_1cptl_1 ._content-section_1cptl_37._one-column_1cptl_42{grid-template-columns:1fr}._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}._input-section_1cptl_1 ._content-section_1cptl_37._four-column_1cptl_58{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._input-section_1cptl_1._without-title-section_1cptl_63{grid-template-columns:1fr}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(28rem,1fr))}@media screen and (max-width: 70rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(20rem,1fr))}}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(22rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._info-popup_i3rna_1 ._label_i3rna_2{display:inline-flex;align-items:center;gap:var(--go-ui-spacing-xs)}._info-popup_i3rna_1 ._label_i3rna_2 ._icon_i3rna_7{display:inline-flex;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-container_i3rna_15{padding:0;min-width:min(20rem,100vw);max-width:25rem}._dropdown-container_i3rna_15 ._content_i3rna_20{display:flex;flex-direction:column;white-space:pre-wrap;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1{display:flex;position:relative;flex-direction:column;padding:var(--go-ui-spacing-md);gap:var(--go-ui-spacing-xs)}._key-figure_1owjn_1 ._icon-section_1owjn_8{display:flex}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._icon_1owjn_8{display:flex;align-items:center;flex-grow:1;justify-content:flex-start;color:var(--go-ui-color-primary-red);font-size:var(--go-ui-height-key-figure-icon)}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._info_1owjn_20{flex-shrink:0}._key-figure_1owjn_1 ._info-section-without-icon_1owjn_25{position:absolute;top:0;right:0}._key-figure_1owjn_1 ._value_1owjn_31{font-size:var(--go-ui-font-size-3xl);font-weight:var(--go-ui-font-weight-medium)}._key-figure_1owjn_1 ._description_1owjn_36{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1._with-icon_1owjn_41 ._value_1owjn_31{font-size:var(--go-ui-font-size-4xl)}._progress-wrapper_x340w_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xs);color:var(--go-ui-color-primary-red)}._progress-wrapper_x340w_1 ._title_x340w_7{color:var(--go-ui-color-text)}._progress-wrapper_x340w_1 ._total_x340w_11{display:flex;flex-shrink:0;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-separator);height:.5rem}._progress-wrapper_x340w_1 ._total_x340w_11 ._progress_x340w_1{transition:var(--go-ui-duration-transition-medium) width ease-in-out;border-radius:var(--go-ui-border-radius-md)}._legend_77ox6_1{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._legend_77ox6_1 ._legend-items_77ox6_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._legend-element_1a9ic_1{display:flex;align-items:center;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._legend-element_1a9ic_1 ._color_1a9ic_7{flex-shrink:0;border-radius:.4em;width:.8em;height:.8em}._legend-element_1a9ic_1 ._icon-container_1a9ic_14{display:flex;align-items:center;justify-content:center;border-radius:50%;padding:var(--go-ui-spacing-2xs);width:1.2rem;height:1.2rem}._legend-element_1a9ic_1 ._icon-container_1a9ic_14 ._icon_1a9ic_14{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._legend-element_1a9ic_1 ._label_1a9ic_31{font-size:1em}._list_1whuj_1{position:relative;min-height:var(--go-ui-content-min-height)}._list_1whuj_1._compact_1whuj_5{min-height:0;min-height:initial}._list_1whuj_1._compact_1whuj_5._pending_1whuj_8{min-height:var(--go-ui-compact-content-min-height)}._option_1kpl9_1{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-md);overflow:auto}._option_1kpl9_1._active_1kpl9_7{color:var(--go-ui-color-primary-red)}._option_1kpl9_1 ._icon_1kpl9_11{display:flex;align-items:center;flex-shrink:0}._option_1kpl9_1 ._label_1kpl9_17{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._popup_poyjv_1{padding:var(--go-ui-spacing-sm) 0}._popup_poyjv_1 ._list_poyjv_4{display:flex;flex-direction:column;overflow:auto}._popup_poyjv_1 ._list_poyjv_4 ._list-item_poyjv_9{flex-shrink:0}._popup_poyjv_1 ._info-message_poyjv_14{padding:var(--go-ui-spacing-sm);text-align:center;color:var(--go-ui-color-text-light)}._icon_poyjv_21{font-size:var(--go-ui-height-icon-multiplier)}._generic-option_zv1n8_1{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);text-align:left}._generic-option_zv1n8_1:hover{background-color:var(--go-ui-color-gray-20)}._navigation-tab-list_19mw3_1{display:flex;position:relative}._navigation-tab-list_19mw3_1._primary_19mw3_5{overflow-x:auto}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._primary_19mw3_5 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._navigation-tab-list_19mw3_1._secondary_19mw3_20{display:flex;overflow-x:auto}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._content_19mw3_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._end-dummy-content_19mw3_13{flex-grow:1}._navigation-tab-list_19mw3_1._tertiary_19mw3_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._content_19mw3_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._end-dummy-content_19mw3_13{display:none}._navigation-tab-list_19mw3_1._step_19mw3_56{overflow-x:auto}._navigation-tab-list_19mw3_1._step_19mw3_56 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._step_19mw3_56 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._step_19mw3_56 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._content_19mw3_8{display:flex;flex-direction:column}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._end-dummy-content_19mw3_13{display:none}._page-container_1cfro_1 ._content_1cfro_2{margin:0 auto;padding:var(--go-ui-spacing-lg);width:100%}@media screen{._page-container_1cfro_1 ._content_1cfro_2{max-width:var(--go-ui-page-width-max)}}._page-header_1r8r3_1{padding:var(--go-ui-spacing-lg) 0}._page-header_1r8r3_1 ._container_1r8r3_4{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xl)}._page-header_1r8r3_1 ._container_1r8r3_4 ._breadcrumbs-container_1r8r3_9{flex-shrink:initial}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-lg)}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._heading_1r8r3_19{text-align:center}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._description_1r8r3_23{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._pager_83zz4_1 ._page-list_83zz4_2{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;line-height:1}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._active_83zz4_15{border-radius:50%;background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._compact_83zz4_21{font-size:var(--go-ui-font-size-xs);font-weight:var(--go-ui-font-weight-medium)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7:disabled{opacity:var(--go-ui-opacity-disabled-element)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7 ._icon_83zz4_30{font-size:var(--go-ui-font-size-2xl)}._top-banner_1w8lu_1{background-color:var(--go-ui-color-negative);padding:var(--go-ui-spacing-md);text-align:center;color:var(--go-ui-color-white);font-weight:var(--go-ui-font-weight-medium)}._warning_1w8lu_9{background-color:var(--go-ui-color-warning)}._positive_1w8lu_13{background-color:var(--go-ui-color-positive)}._information_1w8lu_17{background-color:var(--go-ui-color-information)}._pie-chart_pyr7m_1{display:flex;align-items:center;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._pie-chart_pyr7m_1 ._legend_pyr7m_7{display:flex;flex-direction:column;flex-grow:1;justify-content:center}._pie-chart_pyr7m_1 ._legend_pyr7m_7 ._legend-item_pyr7m_13{font-size:var(--go-ui-font-size-xs)}._text-output_10oza_1{display:flex;flex-wrap:wrap;gap:0 var(--go-ui-spacing-sm)}._text-output_10oza_1._with-background_10oza_6{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._text-output_10oza_1 ._label_10oza_11._with-colon_10oza_12:after{content:":"}._text-output_10oza_1 ._value_10oza_17._text-type_10oza_18{text-align:justify;white-space:pre-wrap}._text-output_10oza_1 ._strong_10oza_24{font-weight:var(--go-ui-font-weight-semibold)}._file-input_tu4re_1 ._input_tu4re_2{visibility:hidden;width:0;height:0}._raw-input_145mq_1{margin:0;outline:0;border:0;background-color:transparent;padding:0;width:100%;color:inherit;font-family:inherit;font-size:inherit}._reduced-list-display_1czue_1{display:inline-block}._reduced-list-label_1czue_5{padding:0;-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium)}._reduced-list-label_1czue_5:hover,._reduced-list-label_1czue_5:focus{opacity:1;color:var(--go-ui-color-primary-red)}._option-container_2k92q_1{display:flex;overflow:auto}._option-container_2k92q_1 ._option_2k92q_1{flex-grow:1}._option-container_2k92q_1._active_2k92q_9{color:var(--go-ui-color-primary-red)}._option-container_2k92q_1._active_2k92q_9 ._icon_2k92q_12{opacity:1}._option_11p37_1{display:flex;gap:var(--go-ui-spacing-sm);overflow:auto}._option_11p37_1 ._icon_11p37_6{display:flex;align-items:center;flex-shrink:0;opacity:0;font-size:var(--go-ui-height-icon-multiplier)}._option_11p37_1 ._label_11p37_14{display:flex;flex-direction:column;flex-grow:1;overflow:auto}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20._description_11p37_25{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._segment-input_bykt7_1{width:-moz-fit-content;width:fit-content}._segment-input_bykt7_1 ._segment-list_bykt7_4{flex-wrap:nowrap;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-background);padding:0;width:-moz-fit-content;width:fit-content;gap:0}._segment-input_bykt7_1 ._segment_bykt7_1{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._segment-input_bykt7_1 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._segment-input_bykt7_1._secondary-variant_bykt7_24 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-blue-90);color:var(--go-ui-color-white)}._stacked-bar-chart_gqsj2_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6{display:flex}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6{display:flex;align-items:baseline;justify-content:center;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._value_gqsj2_15{font-weight:var(--go-ui-font-weight-semibold)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._percentage_gqsj2_19{font-size:var(--go-ui-font-size-sm)}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25{--height: 1rem;display:flex;border-radius:.5rem;border-radius:calc(.5 * var(--height));background-color:var(--go-ui-color-gray-50);height:1rem;height:var(--height);overflow:hidden}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25 ._bar_gqsj2_6{height:100%}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43{display:flex;align-items:baseline;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._color-dot_gqsj2_48{flex-shrink:0;border-radius:.3rem;width:.6rem;height:.6rem}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._label_gqsj2_38{padding:0 var(--go-ui-spacing-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--go-ui-font-size-sm)}._switch_1bdw6_1 ._checkmark-container_1bdw6_2{--width: var(--go-ui-font-size-4xl)}._switch_1bdw6_1._with-inverted-view_1bdw6_6{flex-direction:row-reverse}._switch-icon_w9df3_1{--gap: .05em;--border-width: var(--go-ui-width-separator-sm);--knob-diameter: calc(1em - 2 * var(--gap) - 2 * var(--border-width));--background-color: var(--go-ui-color-gray-50);--border-color: var(--go-ui-color-gray-30);--knob-color: var(--go-ui-color-white);display:flex;align-items:center;transition:var(--go-ui-duration-transition-medium) background-color ease-in-out;border:var(--border-width) solid var(--border-color);border-radius:.5em;background-color:var(--background-color);padding:.05em;padding:var(--gap);width:calc(1em + var(--knob-diameter));height:1em}._switch-icon_w9df3_1 ._knob_w9df3_19{transition:var(--go-ui-duration-transition-medium) transform ease-in-out,var(--go-ui-duration-transition-medium) background-color ease-in-out;border-radius:calc((1em - var(--gap) * 2) / 2);border-radius:calc(calc(1em - var(--gap) * 2) / 2);background-color:var(--knob-color);width:var(--knob-diameter);height:var(--knob-diameter)}._switch-icon_w9df3_1._on_w9df3_27{background-color:var(--go-ui-color-primary-red)}._switch-icon_w9df3_1._on_w9df3_27 ._knob_w9df3_19{transform:translate(100%)}._table_nilhy_1{display:flex;position:relative;flex-direction:column;min-height:var(--go-ui-content-min-height);overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8{display:flex;flex-direction:column;overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13{position:relative;z-index:0;border-collapse:separate;border-spacing:0;font-size:inherit}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24{position:sticky;top:0;z-index:1}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24 ._header-component_nilhy_29{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm)}._table_nilhy_1 ._message_nilhy_38._pending_nilhy_39{position:absolute;top:0;left:0;width:100%;height:100%}._row_1829z_1 ._cell_1829z_2{padding:var(--go-ui-spacing-sm);overflow:hidden;word-break:break-word}._row_1829z_1:hover ._cell_1829z_2{background-color:var(--go-ui-color-background-hover)}._td_1k4cn_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator)}._th_cdv41_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-white);overflow:hidden;vertical-align:bottom;text-align:left}._th_cdv41_1 ._resize-handle_cdv41_8{position:absolute;top:0;right:0;z-index:1;border-right:var(--go-ui-width-separator-sm) solid transparent;cursor:col-resize;width:var(--go-ui-width-separator-lg);height:calc(100% - var(--go-ui-spacing-sm))}._th_cdv41_1:hover ._resize-handle_cdv41_8{border-right-color:var(--go-ui-color-gray-30)}._th_cdv41_1:hover ._resize-handle_cdv41_8:hover{border-right-color:var(--go-ui-color-gray-50)}._header-cell_vn24d_1{display:flex;align-items:center;color:var(--go-ui-color-text-black);font-weight:var(--go-ui-font-weight-semibold);gap:var(--go-ui-spacing-2xs)}._header-cell_vn24d_1 ._sort-button_vn24d_8{flex-shrink:0}._header-cell_vn24d_1 ._icon_vn24d_12{flex-shrink:0;font-size:var(--go-ui-height-icon-multiplier)}._header-cell_vn24d_1 ._info-popup-icon_vn24d_17{flex-shrink:0}._table-actions_171sq_1{display:flex;justify-content:flex-end;gap:var(--go-ui-spacing-sm)}._table-actions_171sq_1 ._more-icon_171sq_6{font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1{--border-color: var(--go-ui-color-gray-30);--border-width: var(--go-ui-width-separator-thin);display:inline-flex;align-items:stretch;border-radius:0;-webkit-text-decoration:none;text-decoration:none;color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-medium)}._tab_12kk2_1 ._dummy_12kk2_12{flex-grow:1;border-bottom:var(--border-width) solid var(--border-color);width:var(--go-ui-spacing-xs)}._tab_12kk2_1 ._children-wrapper_12kk2_18{display:flex;align-items:center;flex-grow:1;border:var(--border-width) solid transparent;text-align:center}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18,._tab_12kk2_1._vertical_12kk2_26 ._children-wrapper_12kk2_18{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-md) 0;text-align:left}._tab_12kk2_1._vertical-compact_12kk2_26._active_12kk2_35,._tab_12kk2_1._vertical_12kk2_26._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18{padding:0}._tab_12kk2_1._primary_12kk2_48{position:relative;font-size:var(--go-ui-font-size-lg)}._tab_12kk2_1._primary_12kk2_48 ._children-wrapper_12kk2_18{border-bottom-color:var(--border-color);background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-lg)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35 ._children-wrapper_12kk2_18{border-color:var(--border-color);border-bottom-color:transparent;background-color:var(--go-ui-color-white)}._tab_12kk2_1._primary_12kk2_48:not(._active_12kk2_35) ._active-border_12kk2_69{display:none}._tab_12kk2_1._step_12kk2_75{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-md);transition:var(--go-ui-duration-transition-medium) color,background-color ease-in-out;padding:var(--go-ui-spacing-md) 0;text-transform:uppercase;color:var(--go-ui-color-gray-70)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85{display:flex;align-items:center;align-self:stretch}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90{flex-shrink:0;transition:var(--go-ui-duration-transition-slow) border-color ease-in-out;border:var(--border-width) solid transparent;border-radius:50%;background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-2xs)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{display:flex;align-items:center;justify-content:center;transition:var(--go-ui-duration-transition-slow) background-color ease-in-out;border-radius:50%;background-color:var(--go-ui-color-gray-60);width:1rem;height:1rem}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98 ._icon_12kk2_108{color:var(--go-ui-color-white);font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{flex-grow:1;background-color:var(--go-ui-color-separator);height:var(--go-ui-width-separator-thin)}._tab_12kk2_1._step_12kk2_75 ._children-wrapper_12kk2_18{padding:0 var(--go-ui-spacing-lg)}._tab_12kk2_1._step_12kk2_75._errored_12kk2_128 ._children-wrapper_12kk2_18{-webkit-text-decoration:underline wavy var(--go-ui-color-primary-red);text-decoration:underline wavy var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75:hover{color:var(--go-ui-color-black)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90{border-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{background-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._progress-bar-start_12kk2_116,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._step-circle_12kk2_90 ._inner-circle_12kk2_98,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-start_12kk2_116{background-color:var(--go-ui-color-primary-blue)}._tab_12kk2_1._step_12kk2_75:first-child ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{background-color:transparent}._tab_12kk2_1._step_12kk2_75:last-child ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115{background-color:transparent}._tab_12kk2_1._secondary_12kk2_183{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-xl)}._tab_12kk2_1._secondary_12kk2_183._active_12kk2_35{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._tab_12kk2_1._tertiary_12kk2_193:hover,._tab_12kk2_1._tertiary_12kk2_193._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._disabled_12kk2_205{pointer-events:none;opacity:var(--go-ui-opacity-disabled-element)}._tab-list_1d752_1{display:flex;position:relative}._tab-list_1d752_1._primary_1d752_5{overflow-x:auto}._tab-list_1d752_1._primary_1d752_5 ._content_1d752_8{display:flex}._tab-list_1d752_1._primary_1d752_5 ._start-dummy-content_1d752_12,._tab-list_1d752_1._primary_1d752_5 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._tab-list_1d752_1._secondary_1d752_20{display:flex;overflow-x:auto}._tab-list_1d752_1._secondary_1d752_20 ._content_1d752_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._tab-list_1d752_1._secondary_1d752_20 ._start-dummy-content_1d752_12,._tab-list_1d752_1._secondary_1d752_20 ._end-dummy-content_1d752_13{flex-grow:1}._tab-list_1d752_1._tertiary_1d752_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._tab-list_1d752_1._tertiary_1d752_36 ._content_1d752_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-md)}._tab-list_1d752_1._tertiary_1d752_36 ._start-dummy-content_1d752_12,._tab-list_1d752_1._tertiary_1d752_36 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._step_1d752_56{overflow-x:auto}._tab-list_1d752_1._step_1d752_56 ._content_1d752_8{display:flex}._tab-list_1d752_1._step_1d752_56 ._start-dummy-content_1d752_12,._tab-list_1d752_1._step_1d752_56 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8,._tab-list_1d752_1._vertical_1d752_70 ._content_1d752_8{display:flex;flex-direction:column}._tab-list_1d752_1._vertical-compact_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical-compact_1d752_70 ._end-dummy-content_1d752_13,._tab-list_1d752_1._vertical_1d752_70 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8{gap:var(--go-ui-spacing-xs)}._timeline-chart_1mks7_1{flex-grow:1;height:100%;--path-stroke-width: 1pt}._timeline-chart_1mks7_1 ._y-axis-tick-text_1mks7_6{text-anchor:middle;font-size:var(--go-ui-font-size-xs)}._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{text-anchor:middle;transition:var(--go-ui-duration-transition-medium) ease-in-out transform;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{transform:rotate(-30deg)}}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.2;transition:var(--go-ui-duration-transition-medium) ease-in-out stroke-opacity}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21._hovered_1mks7_28,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22._hovered_1mks7_28{stroke-opacity:1}._timeline-chart_1mks7_1 ._rect_1mks7_33{transition:var(--go-ui-duration-transition-medium) ease-in-out fill-opacity;cursor:pointer;fill-opacity:0;fill:var(--go-ui-color-white)}._chart-point_aqsix_1{--point-radius: 4pt;--point-hover-radius: 5pt;--point-outline-radius: 7pt;--point-stroke-width: 2pt}._chart-point_aqsix_1 ._point_aqsix_7{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r,var(--go-ui-duration-transition-medium) ease-in-out fill}._chart-point_aqsix_1 ._point_aqsix_7._active_aqsix_14,._chart-point_aqsix_1 ._point_aqsix_7._hovered_aqsix_18{fill:currentColor}._chart-point_aqsix_1 ._point-outline_aqsix_23{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r}._chart-point_aqsix_1 ._point-outline_aqsix_23._active_aqsix_14{r:var(--point-outline-radius)}._chart-point_aqsix_1._hoverable_aqsix_35:hover ._point_aqsix_7{fill:currentColor}._dropdownContainer_1six7_3{position:relative}._dropdownMenu_1six7_15{position:absolute;right:0;top:100%;margin-top:.5rem;width:180px;background:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-lg);border:1px solid var(--go-ui-color-separator);z-index:50;animation:_dropdownSlideIn_1six7_1 .15s ease-out}._dropdownContent_1six7_43{padding:var(--go-ui-spacing-xs) 0}@keyframes _dropdownSlideIn_1six7_1{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){._dropdownMenu_1six7_15{width:160px;right:-.25rem}._dropdownItem_1six7_89{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-xs)}}._uploadContainer_1i3bv_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);text-align:center;padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md);overflow-x:hidden}._dropZone_1i3bv_9{border:var(--go-ui-width-separator-thick) dashed var(--go-ui-color-gray-40);background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl) var(--go-ui-spacing-lg);display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);transition:all var(--go-ui-duration-transition-medium) ease;max-width:var(--go-ui-width-screen-md);margin:0 auto;min-height:250px;justify-content:center}._dropZone_1i3bv_9:hover{background-color:var(--go-ui-color-gray-30);border-color:var(--go-ui-color-gray-50)}._dropZone_1i3bv_9._hasFile_1i3bv_30{background-color:var(--go-ui-color-white);border-color:var(--go-ui-color-gray-30);min-height:300px;padding:var(--go-ui-spacing-lg)}._dropZoneIcon_1i3bv_37{width:2.5rem;height:2.5rem;color:var(--go-ui-color-red-90)}._dropZoneText_1i3bv_43{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70);text-align:center}._dropZoneSubtext_1i3bv_49{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-50);margin:var(--go-ui-spacing-md) 0}._filePreview_1i3bv_55{width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;animation:_fadeIn_1i3bv_1 .3s ease-in-out}._filePreviewImage_1i3bv_64{position:relative;max-width:100%;max-height:20rem;overflow:visible;border-radius:var(--go-ui-border-radius-lg);background-color:var(--go-ui-color-gray-20);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1i3bv_64:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._filePreviewImage_1i3bv_64 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1i3bv_64 img:hover{transform:scale(1.02)}@keyframes _fadeIn_1i3bv_1{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}._fileName_1i3bv_110{font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-80);margin-top:var(--go-ui-spacing-sm);text-align:center}._fileInfo_1i3bv_118{font-size:var(--go-ui-font-size-xs);color:var(--go-ui-color-gray-60);margin-top:var(--go-ui-spacing-xs);text-align:center}._helpLink_1i3bv_125{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md)}._helpLink_1i3bv_125 a{color:var(--go-ui-color-red-90);font-size:var(--go-ui-font-size-xs);transition:color var(--go-ui-duration-transition-fast) ease;display:flex;align-items:center;gap:var(--go-ui-spacing-2xs)}._helpLink_1i3bv_125 a:hover{color:var(--go-ui-color-red-hover);text-decoration:underline}._loadingContainer_1i3bv_145{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._loadingText_1i3bv_153{color:var(--go-ui-color-gray-60)}._generateButtonContainer_1i3bv_157{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._uploadedMapContainer_1i3bv_165{margin-bottom:var(--go-ui-spacing-lg)}._uploadedMapImage_1i3bv_169{width:100%;max-width:var(--go-ui-width-screen-lg);max-height:20rem;overflow:visible;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-sm);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1i3bv_169:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._uploadedMapImage_1i3bv_169 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1i3bv_169 img:hover{transform:scale(1.02)}._formSection_1i3bv_205{margin-bottom:var(--go-ui-spacing-lg)}._formGrid_1i3bv_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (min-width: 1024px){._formGrid_1i3bv_209{grid-template-columns:1fr 1fr}}._titleField_1i3bv_222{grid-column:1 / -1}._ratingSection_1i3bv_226{text-align:left}._ratingDescription_1i3bv_230{color:var(--go-ui-color-gray-70);margin-bottom:var(--go-ui-spacing-lg)}._ratingSlider_1i3bv_235{margin-top:var(--go-ui-spacing-lg);display:flex;align-items:center;gap:var(--go-ui-spacing-sm)}._ratingLabel_1i3bv_242{display:block;font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);text-transform:capitalize;width:5rem;flex-shrink:0}._ratingInput_1i3bv_251{width:100%;accent-color:var(--go-ui-color-red-90)}._ratingValue_1i3bv_256{margin-left:var(--go-ui-spacing-sm);width:2.5rem;text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70)}._submitSection_1i3bv_266{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-2xl);flex-wrap:wrap}._successContainer_1i3bv_275{text-align:center;padding:var(--go-ui-spacing-2xl)}._successHeading_1i3bv_280{color:var(--go-ui-color-green-90);margin-bottom:var(--go-ui-spacing-lg)}._successText_1i3bv_285{color:var(--go-ui-color-gray-700);margin-bottom:var(--go-ui-spacing-xl);font-size:var(--go-ui-font-size-lg)}._successButton_1i3bv_291{display:flex;justify-content:center}._viewFullSizeButton_1i3bv_297{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding-top:var(--go-ui-spacing-md);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._fullSizeModalOverlay_1i3bv_306{position:fixed;inset:0;background-color:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._lightModalOverlay_1i3bv_320{position:fixed;inset:0;background-color:#0000004d;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._fullSizeModalContent_1i3bv_334{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);max-width:95vw;max-height:95vh;overflow:hidden;box-shadow:var(--go-ui-box-shadow-xl);display:flex;flex-direction:column}._fullSizeModalHeader_1i3bv_345{display:flex;justify-content:space-between;align-items:center;padding:var(--go-ui-spacing-lg);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-gray-10)}._fullSizeModalTitle_1i3bv_354{margin:0;font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900)}._fullSizeModalImage_1i3bv_361{flex:1;display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-lg);overflow:auto}._fullSizeModalImage_1i3bv_361 img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-md)}@media (max-width: 768px){._fullSizeModalOverlay_1i3bv_306{padding:var(--go-ui-spacing-sm)}._fullSizeModalContent_1i3bv_334{max-width:100vw;max-height:100vh}._fullSizeModalHeader_1i3bv_345,._fullSizeModalImage_1i3bv_361{padding:var(--go-ui-spacing-md)}}._confirmSection_1i3bv_398{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-xl);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._step2Layout_1i3bv_407{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._topRow_1i3bv_413{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._topRow_1i3bv_413._ratingHidden_1i3bv_421{grid-template-columns:1fr}._imageSection_1i3bv_425{position:sticky;top:var(--go-ui-spacing-lg)}._ratingSection_1i3bv_226{display:flex;flex-direction:column}._ratingContent_1i3bv_435{display:flex;flex-direction:column;gap:var(--go-ui-spacing-md)}._bottomRow_1i3bv_441{width:100%}._step2Layout_1i3bv_407{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._mapColumn_1i3bv_453{position:sticky;top:var(--go-ui-spacing-lg)}._contentColumn_1i3bv_458{display:flex;flex-direction:column;gap:var(--go-ui-spacing-lg)}._step2bLayout_1i3bv_465{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._contentColumn_1i3bv_458 ._formGrid_1i3bv_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (max-width: 1024px){._step2Layout_1i3bv_407,._topRow_1i3bv_413{grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._topRow_1i3bv_413._ratingHidden_1i3bv_421{grid-template-columns:1fr}._mapColumn_1i3bv_453,._imageSection_1i3bv_425{position:static}}@media (max-width: 768px){._uploadContainer_1i3bv_1{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm) var(--go-ui-spacing-xl) var(--go-ui-spacing-sm)}._dropZone_1i3bv_9{padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md);min-height:200px}._dropZone_1i3bv_9._hasFile_1i3bv_30{min-height:250px;padding:var(--go-ui-spacing-md)}._filePreviewImage_1i3bv_64{max-width:100%;max-height:15rem;padding:var(--go-ui-spacing-xs)}._filePreviewImage_1i3bv_64 img{max-height:13rem}._ratingSlider_1i3bv_235{gap:var(--go-ui-spacing-xs)}._ratingLabel_1i3bv_242{width:4rem;font-size:var(--go-ui-font-size-xs)}._ratingValue_1i3bv_256{width:2rem;font-size:var(--go-ui-font-size-xs)}}@media (max-width: 480px){._dropZone_1i3bv_9{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm);min-height:180px}._dropZone_1i3bv_9._hasFile_1i3bv_30{min-height:220px}._filePreviewImage_1i3bv_64{max-height:12rem}._filePreviewImage_1i3bv_64 img{max-height:10rem}}._metadataSectionCard_1i3bv_562{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);box-shadow:var(--go-ui-box-shadow-xs)}._droneMetadataSection_1i3bv_571{margin-top:var(--go-ui-spacing-lg);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._droneMetadataHeading_1i3bv_577{font-size:var(--go-ui-font-size-md);font-weight:600;color:var(--go-ui-color-gray-90);margin-bottom:var(--go-ui-spacing-md);text-align:left}._droneMetadataGrid_1i3bv_585{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-md)}._rtkFixContainer_1i3bv_591{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) 0}._rtkFixLabel_1i3bv_597{display:flex;align-items:center;gap:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-80);cursor:pointer}._rtkFixCheckbox_1i3bv_606{width:1rem;height:1rem;accent-color:var(--go-ui-color-red-90)}@media (max-width: 768px){._droneMetadataGrid_1i3bv_585{grid-template-columns:1fr;gap:var(--go-ui-spacing-sm)}}._confirmButtonContainer_1i3bv_621{margin-top:var(--go-ui-spacing-lg);display:flex;justify-content:center;align-items:center}._ratingWarningContent_1i3bv_629{padding:var(--go-ui-spacing-xl);text-align:center;max-width:500px}._ratingWarningTitle_1i3bv_637{font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900);margin-bottom:var(--go-ui-spacing-md)}._ratingWarningText_1i3bv_644{font-size:var(--go-ui-font-size-md);color:var(--go-ui-color-gray-700);line-height:1.6;margin-bottom:var(--go-ui-spacing-xl)}._ratingWarningButtons_1i3bv_651{display:flex;gap:var(--go-ui-spacing-md);justify-content:center;margin-top:var(--go-ui-spacing-lg)}._fallbackReasonBox_1i3bv_659{background-color:var(--go-ui-color-yellow-10);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-yellow-30);border-radius:var(--go-ui-border-radius-md);padding:var(--go-ui-spacing-md);margin:var(--go-ui-spacing-lg) 0;text-align:left}._fallbackReasonTitle_1i3bv_668{font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-800);margin:0 0 var(--go-ui-spacing-xs) 0}._fallbackReasonText_1i3bv_675{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-700);margin:0;line-height:1.5}._preprocessingProgress_1i3bv_682{margin-top:var(--go-ui-spacing-lg);text-align:center;padding:var(--go-ui-spacing-lg);background-color:var(--go-ui-color-background-light);border-radius:var(--go-ui-border-radius-md)}._preprocessingProgress_1i3bv_682 p{margin-bottom:var(--go-ui-spacing-md);color:var(--go-ui-color-text);font-weight:var(--go-ui-font-weight-medium)}._cropZoomSlider_1i3bv_697{flex:1;height:.5rem;background-color:var(--go-ui-color-gray-30);border-radius:var(--go-ui-border-radius-lg);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none}._cropZoomSlider_1i3bv_697::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm)}._cropZoomSlider_1i3bv_697::-moz-range-thumb{width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm);border:none}._cropZoomSlider_1i3bv_697:focus{outline:none;box-shadow:0 0 0 2px var(--go-ui-color-red-40)}._carouselContainer_1i3bv_735{position:relative;width:100%}._carouselImageWrapper_1i3bv_740{position:relative;width:100%;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);overflow:hidden;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow var(--go-ui-duration-transition-medium) ease}._carouselImageWrapper_1i3bv_740:hover{box-shadow:var(--go-ui-box-shadow-md)}._carouselImage_1i3bv_740{width:100%;height:auto;-o-object-fit:contain;object-fit:contain;image-rendering:pixelated;display:block}._carouselNavigation_1i3bv_763{display:flex;align-items:center;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._carouselButton_1i3bv_775{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md);padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-fast) ease;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center}._carouselButton_1i3bv_775:hover:not(:disabled){background-color:var(--go-ui-color-gray-20);border-color:var(--go-ui-color-gray-40);transform:translateY(-1px)}._carouselButton_1i3bv_775:disabled{opacity:.5;cursor:not-allowed}._carouselIndicators_1i3bv_799{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._carouselIndicator_1i3bv_799{background-color:var(--go-ui-color-gray-30);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-sm);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);cursor:pointer;transition:all var(--go-ui-duration-transition-fast) ease;min-width:32px;height:32px;display:flex;align-items:center;justify-content:center}._carouselIndicator_1i3bv_799:hover:not(:disabled){background-color:var(--go-ui-color-gray-40);border-color:var(--go-ui-color-gray-50);color:var(--go-ui-color-gray-90)}._carouselIndicatorActive_1i3bv_828{background-color:var(--go-ui-color-red-90);border-color:var(--go-ui-color-red-90);color:var(--go-ui-color-white)}._carouselIndicatorActive_1i3bv_828:hover:not(:disabled){background-color:var(--go-ui-color-red-hover);border-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._carouselIndicator_1i3bv_799:disabled{opacity:.5;cursor:not-allowed}._imageCounter_1i3bv_845{text-align:center;margin-top:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);background-color:var(--go-ui-color-gray-10);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);border-radius:var(--go-ui-border-radius-sm);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._singleImageContainer_1i3bv_858{position:relative;width:100%}._viewImageButtonContainer_1i3bv_864{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}@media (max-width: 768px){._carouselNavigation_1i3bv_763{flex-direction:column;gap:var(--go-ui-spacing-sm)}._carouselIndicators_1i3bv_799{order:-1;margin-bottom:var(--go-ui-spacing-sm)}._carouselButton_1i3bv_775{min-width:36px;height:36px}._carouselIndicator_1i3bv_799{min-width:28px;height:28px;font-size:var(--go-ui-font-size-xs)}._imageCounter_1i3bv_845{font-size:var(--go-ui-font-size-xs)}._viewImageButtonContainer_1i3bv_864{margin-top:var(--go-ui-spacing-sm)}}._switchLabel_t5cwd_1{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}._switchLabel_t5cwd_1._disabled_t5cwd_17{opacity:.6;cursor:not-allowed}._switchText_t5cwd_27{font-size:var(--go-ui-font-size-sm);font-family:var(--go-ui-font-family-sans);color:var(--go-ui-color-text-primary);margin-top:2px}._switchContainer_t5cwd_41{position:relative;display:inline-block;width:36px;height:16px}._switchInput_t5cwd_55{opacity:0;width:0;height:0;position:absolute}._slider_t5cwd_69{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.3s;border-radius:16px}._slider_t5cwd_69:before{position:absolute;content:"";height:12px;width:12px;left:2px;bottom:2px;background-color:#fff;transition:.3s;border-radius:50%}._switchInput_t5cwd_55:checked+._slider_t5cwd_69{background-color:var(--go-ui-color-red-90)}._switchInput_t5cwd_55:checked+._slider_t5cwd_69:before{transform:translate(20px)}._switchInput_t5cwd_55:focus+._slider_t5cwd_69{box-shadow:0 0 1px var(--go-ui-color-red-90)}._switchLabel_t5cwd_1._disabled_t5cwd_17 ._slider_t5cwd_69{cursor:not-allowed;opacity:.6}._helpContainer_1wavj_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md)}._helpSection_1wavj_13{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl);margin-bottom:var(--go-ui-spacing-xl);box-shadow:var(--go-ui-box-shadow-sm);transition:all var(--go-ui-duration-transition-medium) ease;position:relative;overflow:hidden}._helpSection_1wavj_13:hover{box-shadow:var(--go-ui-box-shadow-md);transform:translateY(-2px);border-color:var(--go-ui-color-gray-30)}._sectionHeader_1wavj_49{display:flex;align-items:center;margin-bottom:var(--go-ui-spacing-lg);padding-bottom:var(--go-ui-spacing-md);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._sectionIcon_1wavj_65{width:2rem;height:2rem;margin-right:var(--go-ui-spacing-md);color:var(--go-ui-color-red-90);background-color:var(--go-ui-color-red-5);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}._sectionTitle_1wavj_91{color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-semibold);font-size:var(--go-ui-font-size-xl);margin:0}._sectionContent_1wavj_105{color:var(--go-ui-color-gray-700);line-height:1.7;font-size:var(--go-ui-font-size-base);margin-bottom:var(--go-ui-spacing-lg)}._guidelinesList_1wavj_119{list-style:none;padding:0;margin:var(--go-ui-spacing-md) 0}._guidelinesList_1wavj_119 li{position:relative;padding:var(--go-ui-spacing-sm) 0 var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-700);line-height:1.6}._guidelinesList_1wavj_119 li:before{content:"✓";position:absolute;left:0;top:var(--go-ui-spacing-sm);color:var(--go-ui-color-green-70);font-weight:var(--go-ui-font-weight-bold);font-size:var(--go-ui-font-size-sm);background-color:var(--go-ui-color-green-5);border-radius:50%;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center}._buttonContainer_1wavj_181{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-xl)}._featureHighlight_1wavj_193{background:linear-gradient(135deg,var(--go-ui-color-blue-5),var(--go-ui-color-blue-10));border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-blue-20);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);margin:var(--go-ui-spacing-lg) 0;position:relative}._featureHighlight_1wavj_193:before{content:"💡";position:absolute;top:var(--go-ui-spacing-md);right:var(--go-ui-spacing-md);font-size:1.5rem}._featureHighlightText_1wavj_227{color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium);margin:0;font-size:var(--go-ui-font-size-sm)}@media (max-width: 768px){._helpSection_1wavj_13{padding:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._sectionHeader_1wavj_49{flex-direction:column;text-align:center;gap:var(--go-ui-spacing-sm)}._sectionIcon_1wavj_65{margin-right:0;margin-bottom:var(--go-ui-spacing-sm)}._actionButton_1wavj_277{padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);font-size:var(--go-ui-font-size-sm)}}._demoContainer_19wfc_1{max-width:1200px;margin:0 auto;padding:0 1rem}._section_19wfc_13{margin-bottom:3rem;padding-bottom:2rem;border-bottom:1px solid #e0e0e0}._section_19wfc_13:last-child{border-bottom:none}._pageTitle_19wfc_33{margin-bottom:1rem;color:#1a1a1a}._description_19wfc_43{font-size:1.1rem;color:#666;line-height:1.6;margin-bottom:2rem}._sectionHeader_19wfc_57{margin-bottom:1.5rem}._sectionTitle_19wfc_65{margin-bottom:.5rem;color:#1a1a1a}._sectionDescription_19wfc_75{color:#666;font-size:.95rem;margin-bottom:1rem}._switchGrid_19wfc_87{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}._switchItem_19wfc_99{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background-color:#fafafa;border-radius:8px;border:1px solid #e0e0e0}._switchLabel_19wfc_119{font-weight:600;font-size:.95rem;color:#333;margin-bottom:.5rem}._switchWrapper_19wfc_133{background:transparent;border:none;shadow:none;padding:.5rem}._stateDisplay_19wfc_147{padding:.75rem 1rem;background-color:#fff;border-radius:4px;font-size:.9rem;color:#333;border:1px solid #e0e0e0}._nativeCheckboxLabel_19wfc_165{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.95rem;color:#333}._nativeCheckbox_19wfc_165{width:1rem;height:1rem;accent-color:#d32f2f;cursor:pointer}._buttonToggle_19wfc_197{padding:.75rem 1.5rem;border:2px solid #ccc;border-radius:6px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;min-width:100px}._buttonToggleOff_19wfc_219{background-color:#fff;color:#666;border-color:#ccc}._buttonToggleOn_19wfc_231{background-color:#d32f2f;color:#fff;border-color:#d32f2f}._buttonToggle_19wfc_197:hover{opacity:.9;transform:translateY(-1px)}._buttonToggleText_19wfc_253{display:block} diff --git a/py_backend/static/assets/index-BzCX1Bzq.css b/py_backend/static/assets/index-BzCX1Bzq.css deleted file mode 100644 index 674ba96f..00000000 --- a/py_backend/static/assets/index-BzCX1Bzq.css +++ /dev/null @@ -1 +0,0 @@ -:root{--go-ui-font-family-sans-serif: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, sans-serif;--go-ui-font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;--go-ui-font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;--base-font-size: .875rem;--go-ui-font-size-export: .6875rem;--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: var(--base-font-size);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.5);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.875);--go-ui-font-size-4xl: calc(var(--base-font-size) * 2.375);--go-ui-height-icon-multiplier: 1.33em;--go-ui-height-brand-icon: 2.5rem;--go-ui-height-social-icon: 2.5rem;--go-ui-height-key-figure-icon: 3rem;--go-ui-height-status-icon: 2.5rem;--go-ui-height-compact-status-icon: 2rem;--go-ui-line-height-none: 1;--go-ui-line-height-xs: 1.25;--go-ui-line-height-sm: 1.375;--go-ui-line-height-md: 1.5;--go-ui-font-weight-light: 300;--go-ui-font-weight-normal: 400;--go-ui-font-weight-medium: 500;--go-ui-font-weight-semibold: 600;--go-ui-font-weight-bold: 700;--go-ui-width-screen-sm: 640px;--go-ui-width-screen-md: 768px;--go-ui-width-screen-lg: 1024px;--go-ui-width-screen-xl: 1280px;--go-ui-width-screen-2xl: 1536px;--base-spacing: 1rem;--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.5);--go-ui-spacing-xl: calc(var(--base-spacing) * 2.25);--go-ui-spacing-2xl: calc(var(--base-spacing) * 3.5);--go-ui-spacing-3xl: calc(var(--base-spacing) * 4.75);--go-ui-spacing-4xl: calc(var(--base-spacing) * 6);--go-ui-spacing-5xl: calc(var(--base-spacing) * 7.25);--go-ui-width-separator-sm: 1pt;--go-ui-width-separator-md: 2pt;--go-ui-width-separator-lg: 4pt;--go-ui-width-separator-xl: 8pt;--go-ui-width-separator-thin: 1pt;--go-ui-width-separator-small: 2pt;--go-ui-width-separator-thick: 4pt;--go-ui-width-separator-medium: 6pt;--go-ui-width-separator-large: 8pt;--go-ui-width-separator-dense: 12pt;--go-ui-width-separator-extra-dense: 14pt;--go-ui-border-radius-none: 0;--go-ui-border-radius-sm: .125rem;--go-ui-border-radius-md: .25rem;--go-ui-border-radius-lg: .5rem;--go-ui-border-radius-xl: .75rem;--go-ui-border-radius-2xl: 1rem;--go-ui-border-radius-3xl: 1.5rem;--go-ui-border-radius-full: 9999px;--go-ui-box-shadow-xs: 0 1pt 2pt rgba(0, 0, 0, .2);--go-ui-box-shadow-sm: 0 1pt 4pt rgba(0, 0, 0, .2);--go-ui-box-shadow-md: 0 1pt 5pt -2pt rgba(0, 0, 0, .375);--go-ui-box-shadow-lg: 0 2pt 8pt -4pt rgba(0, 0, 0, .5);--go-ui-box-shadow-xl: 0 3pt 16pt -6pt rgba(0, 0, 0, .5);--go-ui-box-shadow-2xl: 0 4pt 16pt -6pt rgba(0, 0, 0, 1);--go-ui-box-shadow-inner: inset 0 2pt 4pt 0 rgba(0, 0, 0, .375);--go-ui-box-shadow-none: 0 0 rgba(0,0,0,0);--go-ui-duration-transition-fast: .1s;--go-ui-duration-transition-medium: .2s;--go-ui-duration-transition-slow: .5s;--go-ui-duration-animation-fast: .5s;--go-ui-duration-animation-medium: 1s;--go-ui-duration-animation-slow: 2s;--go-ui-color-orange: #FF8000;--go-ui-color-green: #7FB845;--go-ui-color-blue: #3FA2F7;--go-ui-color-red: #F75C65;--go-ui-color-yellow: #d9b100;--go-ui-color-semantic-yellow: #FFB443;--go-ui-color-black: #000000;--go-ui-color-white: #ffffff;--go-ui-color-gray-10: #FAFAFA;--go-ui-color-gray-20: #F2F2F2;--go-ui-color-gray-30: #E0E0E0;--go-ui-color-gray-40: #C6C6C6;--go-ui-color-gray-50: #A8A8A8;--go-ui-color-gray-60: #8D8D8D;--go-ui-color-gray-70: #6F6F6F;--go-ui-color-gray-80: #525252;--go-ui-color-gray-90: #323232;--go-ui-color-red-10: #FDD6D9;--go-ui-color-red-20: #FCC2C5;--go-ui-color-red-30: #FBADB2;--go-ui-color-red-40: #FA999F;--go-ui-color-red-50: #F9858C;--go-ui-color-red-60: #F87079;--go-ui-color-red-70: #F75C65;--go-ui-color-red-80: #F64752;--go-ui-color-red-90: #F5333F;--go-ui-color-dark-blue-10: #009CDD;--go-ui-color-dark-blue-20: #418FDE;--go-ui-color-dark-blue-30: #236192;--go-ui-color-dark-blue-40: #1B365D;--go-ui-color-blue-10: #E0E3E7;--go-ui-color-blue-20: #CCD2D9;--go-ui-color-blue-30: #AEB7C2;--go-ui-color-blue-40: #99A5B3;--go-ui-color-blue-50: #7D8B9D;--go-ui-color-blue-60: #67788D;--go-ui-color-blue-70: #4D617A;--go-ui-color-blue-80: #344B67;--go-ui-color-blue-90: #011E41;--go-ui-color-primary-red: var(--go-ui-color-red-90);--go-ui-color-primary-blue: var(--go-ui-color-blue-90);--go-ui-color-primary-gray: var(--go-ui-color-gray-90);--go-ui-color-red-hover: #DE2934;--go-ui-color-purple-per: #8648B3;--go-ui-color-orange-per: #FF8654;--go-ui-color-blue-per: #418FDE;--go-ui-color-teal-per: #00B2A2;--go-ui-color-red-per: #DA283D;--go-ui-color-text-black: rgba(0, 0, 0, 1);--go-ui-color-text: rgba(0, 0, 0, .8);--go-ui-color-text-light: rgba(0, 0, 0, .5);--go-ui-color-positive: var(--go-ui-color-green);--go-ui-color-information: var(--go-ui-color-blue);--go-ui-color-warning: var(--go-ui-color-yellow);--go-ui-color-negative: var(--go-ui-color-red);--go-ui-color-separator: rgba(0, 0, 0, .1);--go-ui-color-separator-light: rgba(0, 0, 0, .05);--go-ui-color-background: #f7f7f7;--go-ui-color-foreground: #ffffff;--go-ui-color-element-background: rgba(0, 0, 0, .06);--go-ui-color-readonly-element-background: rgba(0, 0, 0, .03);--go-ui-color-background-overlay: rgba(255, 255, 255, .88);--go-ui-color-background-overlay-dark: rgba(0, 0, 0, .5);--go-ui-color-background-hover: rgba(0, 0, 0, .06);--go-ui-opacity-disabled-element: .5;--go-ui-opacity-chart-point: .8;--go-ui-opacity-message: .8;--go-ui-content-min-height: 13rem;--go-ui-compact-content-min-height: 7rem;--go-ui-width-min-modal: 18rem;--go-ui-height-min-modal: 11rem;--go-ui-width-modal-sm: 32rem;--go-ui-height-modal-sm: 100%;--go-ui-width-modal-md: 42rem;--go-ui-height-modal-md: 100%;--go-ui-width-modal-lg: 64rem;--go-ui-height-modal-lg: 100%;--go-ui-width-modal-xl: 92rem;--go-ui-height-modal-xl: 100%;--go-ui-saturate-0: 0;--go-ui-saturate-50: .5;--go-ui-saturate-100: 1;--go-ui-saturate-150: 1.5;--go-ui-saturate-200: 2;--go-ui-color-hazard-fi: #b7c992;--go-ui-color-map-dot-appeals: #f5333f;--go-ui-color-map-dot-dref: #ff9e00;--go-ui-color-map-dot-fba: #ff6b00;--go-ui-color-map-dot-multiple-types: #4c5d9b;--go-ui-width-content-max: 50rem;--go-ui-page-header-description-width-max: var(--go-ui-width-content-max);--go-ui-page-width-max: 90rem;--mapbox-icon-width: 88px;--go-ui-export-page-margin: 10mm 10mm 16mm 10mm}@media screen and (max-width: 40rem){:root{--go-ui-font-size-2xs: calc(var(--base-font-size) * .625);--go-ui-font-size-xs: calc(var(--base-font-size) * .75);--go-ui-font-size-sm: calc(var(--base-font-size) * .875);--go-ui-font-size-md: calc(var(--base-font-size) * 1);--go-ui-font-size-lg: calc(var(--base-font-size) * 1.125);--go-ui-font-size-xl: calc(var(--base-font-size) * 1.25);--go-ui-font-size-2xl: calc(var(--base-font-size) * 1.4);--go-ui-font-size-3xl: calc(var(--base-font-size) * 1.6);--go-ui-font-size-4xl: calc(var(--base-font-size) * 1.8)}}@media screen and (max-width: 40rem){:root{--go-ui-spacing-4xs: calc(var(--base-spacing) * .0625);--go-ui-spacing-3xs: calc(var(--base-spacing) * .125);--go-ui-spacing-2xs: calc(var(--base-spacing) * .25);--go-ui-spacing-xs: calc(var(--base-spacing) * .4);--go-ui-spacing-sm: calc(var(--base-spacing) * .625);--go-ui-spacing-md: calc(var(--base-spacing) * 1);--go-ui-spacing-lg: calc(var(--base-spacing) * 1.25);--go-ui-spacing-xl: calc(var(--base-spacing) * 1.5625);--go-ui-spacing-2xl: calc(var(--base-spacing) * 1.95);--go-ui-spacing-3xl: calc(var(--base-spacing) * 2.44);--go-ui-spacing-4xl: calc(var(--base-spacing) * 3);--go-ui-spacing-5xl: calc(var(--base-spacing) * 3.8)}}/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.left-1\/2{left:50%}.z-50{z-index:50}.mx-auto{margin-inline:auto}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.min-h-\[60vh\]{min-height:60vh}.min-h-\[400px\]{min-height:400px}.w-full{width:100%}.min-w-\[300px\]{min-width:300px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-105{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-none{--tw-border-style:none;border-style:none}.bg-transparent{background-color:#0000}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.object-cover{-o-object-fit:cover;object-fit:cover}.text-center{text-align:center}.text-left{text-align:left}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.opacity-50{opacity:.5}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}}*{box-sizing:border-box}@media screen{html{scrollbar-gutter:stable;margin:0;padding:0}}body{line-height:var(--go-ui-line-height-md);color:var(--go-ui-color-text);font-family:var(--go-ui-font-family-sans-serif);font-size:var(--go-ui-font-size-md);font-weight:var(--go-ui-font-weight-normal)}@media screen{body{background-color:var(--go-ui-color-background);margin:0;padding:0}}ul,ol,p{margin:0}@media print{@page{size:portrait A4;margin:10mm 10mm 16mm}body{font-family:Open Sans,sans-serif}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}._raw-button_1p3om_1{position:relative;outline-offset:var(--go-ui-width-separator-lg);border:0;background-color:transparent;cursor:pointer;padding:0;color:inherit;font-family:inherit;font-size:inherit}._raw-button_1p3om_1:focus-visible,._raw-button_1p3om_1._focused_1p3om_13{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:-4px}._button_18a84_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--font-size: inherit;--border-radius: var(--go-ui-border-radius-full);--text-transform: none;--cursor: default;--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-lg);display:inline-flex;position:relative;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);line-height:var(--go-ui-line-height-xs);color:inherit;color:var(--color-text);font-family:inherit;font-size:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-medium)}._button_18a84_1._ellipsized_18a84_29{flex-grow:1}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32{display:block;min-width:0}._button_18a84_1._ellipsized_18a84_29 ._children_18a84_32 ._overflow-wrapper_18a84_36{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._button_18a84_1._primary_18a84_44 ._children_18a84_32,._button_18a84_1._secondary_18a84_45 ._children_18a84_32{text-align:center}._button_18a84_1._primary_18a84_44._no-spacing_18a84_50,._button_18a84_1._secondary_18a84_45._no-spacing_18a84_50{--padding: 0}._button_18a84_1._primary_18a84_44._condensed-spacing_18a84_54,._button_18a84_1._secondary_18a84_45._condensed-spacing_18a84_54,._button_18a84_1._primary_18a84_44._compact-spacing_18a84_58,._button_18a84_1._secondary_18a84_45._compact-spacing_18a84_58{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._button_18a84_1._primary_18a84_44._cozy-spacing_18a84_62,._button_18a84_1._secondary_18a84_45._cozy-spacing_18a84_62,._button_18a84_1._primary_18a84_44._default-spacing_18a84_66,._button_18a84_1._secondary_18a84_45._default-spacing_18a84_66{--padding: var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._button_18a84_1._primary_18a84_44._comfortable-spacing_18a84_70,._button_18a84_1._secondary_18a84_45._comfortable-spacing_18a84_70{--padding: var(--go-ui-spacing-2xs) var(--go-ui-spacing-lg)}._button_18a84_1._primary_18a84_44._relaxed-spacing_18a84_74,._button_18a84_1._secondary_18a84_45._relaxed-spacing_18a84_74{--padding: var(--go-ui-spacing-xs) var(--go-ui-spacing-xl)}._button_18a84_1._primary_18a84_44._loose-spacing_18a84_78,._button_18a84_1._secondary_18a84_45._loose-spacing_18a84_78{--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-2xl)}._button_18a84_1._primary_18a84_44{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_18a84_1._primary_18a84_44._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._primary_18a84_44:not(._disabled_18a84_88):hover{--color-background: var(--go-ui-color-red-hover)}._button_18a84_1._secondary_18a84_45{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._secondary_18a84_45._disabled_18a84_88{filter:saturate(50%)}._button_18a84_1._secondary_18a84_45:not(._disabled_18a84_88):hover{background-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._button_18a84_1._tertiary_18a84_116{--color-border: transparent;--color-background: transparent;--color-text: inherit;--padding: 0;--border-radius: unset}._button_18a84_1._tertiary_18a84_116:not(._disabled_18a84_88):hover{--color-text: var(--go-ui-color-primary-red)}._button_18a84_1._tertiary-on-dark_18a84_130{--color-border: transparent;--color-background: transparent;--color-text: var(--go-ui-color-white);--padding: 0;--border-radius: unset}._button_18a84_1._tertiary-on-dark_18a84_130:not(._disabled_18a84_88):hover{opacity:.8}._button_18a84_1._dropdown-item_18a84_144{display:flex;width:100%;text-align:left;--border-radius: unset;--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._button_18a84_1._dropdown-item_18a84_144:hover{background-color:var(--go-ui-color-background-hover)}._button_18a84_1._disabled_18a84_88{opacity:var(--go-ui-opacity-disabled-element);--cursor: not-allowed}._button_18a84_1:not(._disabled_18a84_88){--cursor: pointer}._basic-layout_v9jro_1{display:flex;align-items:flex-start}._basic-layout_v9jro_1._with-wrap_v9jro_5{flex-wrap:wrap}._basic-layout_v9jro_1 ._icons-container_v9jro_9{display:flex;align-items:flex-start}._basic-layout_v9jro_1 ._children-container_v9jro_14{display:flex;flex-grow:1}._basic-layout_v9jro_1 ._actions-container_v9jro_19{display:flex;align-items:flex-start}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._icons-container_v9jro_9{flex-shrink:0}._basic-layout_v9jro_1:not(._with-wrap_v9jro_5) ._actions-container_v9jro_19{flex-shrink:0}._alert_uuuo4_1{display:flex;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-2xl);width:calc(14rem + 16vw);color:var(--go-ui-color-white)}._alert_uuuo4_1 ._icon_uuuo4_8,._alert_uuuo4_1 ._close-icon_uuuo4_12{font-size:var(--go-ui-font-size-2xl)}._alert_uuuo4_1._info_uuuo4_16{background-color:var(--go-ui-color-gray-80)}._alert_uuuo4_1._success_uuuo4_20{background-color:var(--go-ui-color-positive)}._alert_uuuo4_1._danger_uuuo4_24{background-color:var(--go-ui-color-negative)}._alert_uuuo4_1._warning_uuuo4_28{background-color:var(--go-ui-color-warning)}._container_lyve2_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:flex;flex-direction:column}._container_lyve2_1 ._header_lyve2_8{flex-shrink:0}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11{display:flex;flex-direction:row;justify-content:center}._container_lyve2_1 ._header_lyve2_8 ._centered-header-description-container_lyve2_11 ._centered-description_lyve2_16{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._container_lyve2_1._with-border-and-header-background_lyve2_23{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md)}._container_lyve2_1._with-border-and-header-background_lyve2_23 ._header_lyve2_8{border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-background)}._container_lyve2_1 ._border_lyve2_33{flex-shrink:0;margin:0;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._container_lyve2_1 ._content_lyve2_39{flex-grow:1}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42{isolation:isolate;position:relative;min-height:6rem}._container_lyve2_1 ._content_lyve2_39._pending-overlaid_lyve2_42 ._message_lyve2_47{z-index:1}._container_lyve2_1 ._footer_lyve2_53{flex-shrink:0}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr))}._container_lyve2_1._with-grid-view_lyve2_57>._content_lyve2_39 ._message_lyve2_47{grid-column:1 / -1}._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--num-columns: 2}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._two-columns_lyve2_67>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--num-columns: 3}@media screen and (max-width: 55rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82{--max-width: 60rem}}@media screen and (max-width: 30rem){._container_lyve2_1._with-grid-view_lyve2_57._three-columns_lyve2_82>._content_lyve2_39{grid-template-columns:1fr}}._container_lyve2_1._with-grid-view_lyve2_57._four-columns_lyve2_96{--num-columns: 4}._container_lyve2_1._with-grid-view_lyve2_57._five-columns_lyve2_100{--num-columns: 5}._container_lyve2_1._with-vertical-view_lyve2_105>._content_lyve2_39{display:flex;flex-direction:column}._container_lyve2_1._with-overflow-in-content_lyve2_112>._content_lyve2_39{overflow:auto}._default-message_wu986_1._overlay_wu986_2{position:absolute;top:0;left:0;width:100%;height:100%}._message_176iw_1{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-sm);justify-content:center;opacity:var(--go-ui-opacity-message);background-color:var(--go-ui-color-foreground);padding:var(--go-ui-spacing-md);min-height:var(--go-ui-content-min-height);text-align:center}._message_176iw_1 ._icon_176iw_13{color:var(--go-ui-color-text-light);font-size:var(--go-ui-height-status-icon)}._message_176iw_1 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-height-compact-status-icon)}._message_176iw_1 ._title_176iw_22{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._errored_176iw_27 ._title_176iw_22{color:var(--go-ui-color-primary-red)}._message_176iw_1._compact_176iw_33{padding:var(--go-ui-spacing-sm);min-height:var(--go-ui-compact-content-min-height)}._message_176iw_1._compact_176iw_33 ._title_176iw_22{font-size:var(--go-ui-font-size-lg)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13{font-size:var(--go-ui-font-size-2xl)}._message_176iw_1._compact_176iw_33 ._icon_176iw_13 ._spinner_176iw_17{font-size:var(--go-ui-font-size-xl)}._spinner_50bgg_1{display:inline-flex;border-radius:var(--go-ui-border-radius-full);background:var(--go-ui-color-gray-40);padding:.2em;line-height:0;gap:.2em}._spinner_50bgg_1 ._spinner-bounce_50bgg_9{border-radius:50%;background:var(--go-ui-color-white);width:.6em;height:.6em;animation:_spinner-bounce-delay_50bgg_1 var(--go-ui-duration-animation-slow) infinite ease-in-out both}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(1){animation-delay:calc(var(--go-ui-duration-animation-fast))}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(2){animation-delay:calc(var(--go-ui-duration-animation-fast) * 2)}._spinner_50bgg_1 ._spinner-bounce_50bgg_9:nth-child(3){animation-delay:calc(var(--go-ui-duration-animation-fast) * 3)}@keyframes _spinner-bounce-delay_50bgg_1{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}._filter-bar_16xsj_1{display:flex;flex-direction:column}._grid-with-actions_16xsj_6{display:flex}._grid-with-actions_16xsj_6 ._grid_16xsj_6{display:grid;flex-grow:1;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._grid-with-actions_16xsj_6 ._actions_16xsj_15{display:flex}@media screen and (max-width: 30rem){._grid-with-actions_16xsj_6{flex-wrap:wrap}}._header_537v1_1{display:flex;flex-direction:column}._heading_1uxwj_1{--font-size: var(--go-ui-font-size-xl);--line-height: var(--go-ui-line-height-sm);margin:0;line-height:var(--line-height);font-size:var(--font-size);font-weight:var(--go-ui-font-weight-semibold)}._heading_1uxwj_1._level-one_1uxwj_9{--font-size: var(--go-ui-font-size-4xl)}@media print{._heading_1uxwj_1._level-one_1uxwj_9{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-two_1uxwj_17{--font-size: var(--go-ui-font-size-2xl)}@media print{._heading_1uxwj_1._level-two_1uxwj_17{color:var(--go-ui-color-primary-blue)}}._heading_1uxwj_1._level-three_1uxwj_25{--font-size: var(--go-ui-font-size-xl)}@media print{._heading_1uxwj_1._level-three_1uxwj_25{color:var(--go-ui-color-primary-red)}}._heading_1uxwj_1._level-four_1uxwj_33{--font-size: var(--go-ui-font-size-lg)}._heading_1uxwj_1._level-five_1uxwj_37{--font-size: var(--go-ui-font-size-md)}._heading_1uxwj_1._level-six_1uxwj_41{--font-size: var(--go-ui-font-size-sm)}._heading_1uxwj_1 ._ellipsized-text_1uxwj_45{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._heading_1uxwj_1._ellipsized_1uxwj_45{width:100%;overflow:auto}._alert-container_rcayz_1{isolation:isolate;position:fixed;top:0;left:50%;transform:translate(-50%);z-index:1;padding:var(--go-ui-spacing-2xl) 0;max-height:calc(100vh - 2 * var(--go-ui-spacing-2xl));overflow:auto;scrollbar-width:none}._alert-container_rcayz_1::-webkit-scrollbar{display:none}._alert-container_rcayz_1 ._alert_rcayz_1{margin:var(--go-ui-spacing-sm) 0}._bar-chart_3dbpc_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-sm)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6{display:flex;align-items:center;gap:var(--go-ui-spacing-md)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6._hoverable_3dbpc_11:hover{background-color:var(--go-ui-color-background-hover)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._label_3dbpc_17{width:30%;font-weight:var(--go-ui-font-weight-medium)}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22{border-radius:.3rem;background-color:var(--go-ui-color-gray-30);width:60%;height:.6rem}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._bar-track_3dbpc_22 ._bar_3dbpc_1{border-radius:.3rem;background-color:var(--go-ui-color-primary-red);height:100%}._bar-chart_3dbpc_1 ._bar-row_3dbpc_6 ._value_3dbpc_36{width:10%;font-weight:var(--go-ui-font-weight-medium)}._number-output_1blvi_1{display:inline;font-size:inherit}._tooltip-dummy_rbf3f_1{opacity:0;width:0;height:0}._tooltip-content_rbf3f_7{opacity:0;padding:0;animation:_slide-down_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast)}._pointer_rbf3f_14{opacity:0;animation:_fade-in_rbf3f_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium)}@keyframes _slide-down_rbf3f_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_rbf3f_1{0%{opacity:0}to{opacity:1}}._popup_cws49_1{position:fixed;border-radius:var(--go-ui-spacing-xs);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);max-height:40vh;overflow:auto}._popup_cws49_1._top-orientation_cws49_9{box-shadow:0 -8pt 20pt -5pt #00000080}._pointer_cws49_15{position:fixed;transform:translate(-50%);background-color:transparent;line-height:0;color:var(--go-ui-color-white);font-size:.5rem;pointer-events:none;filter:drop-shadow(0 -1pt 1pt rgba(0,0,0,.1))}._pointer_cws49_15 ._icon_cws49_25{width:2em;height:1em;fill:currentColor}._pointer_cws49_15._top-orientation_cws49_9{transform:translate(-50%) rotate(180deg)}._block-loading_1jl3q_1{display:flex;padding:var(--go-ui-spacing-sm);width:100%;min-height:var(--go-ui-content-min-height)}._block-loading_1jl3q_1 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-4xl)}._block-loading_1jl3q_1 ._inner_1jl3q_11{display:flex;align-items:center;flex-direction:column;flex-grow:1;justify-content:center;padding:var(--go-ui-spacing-sm);gap:var(--go-ui-spacing-md)}._block-loading_1jl3q_1._with-border_1jl3q_21 ._inner_1jl3q_11{border:var(--go-ui-width-separator-md) dashed var(--go-ui-color-gray-40);border-radius:var(--go-ui-border-radius-xl)}._block-loading_1jl3q_1._compact_1jl3q_28{min-height:var(--go-ui-compact-content-min-height)}._block-loading_1jl3q_1._compact_1jl3q_28 ._spinner_1jl3q_7{font-size:var(--go-ui-font-size-xl)}._overlay_cnygi_1{position:absolute;background-color:var(--go-ui-color-background-overlay);width:100%;height:100%}._overlay_cnygi_1._dark_cnygi_7{background-color:var(--go-ui-color-background-overlay-dark)}._body-overlay_1iouu_1{display:flex;position:fixed;top:0;left:0;align-items:center;justify-content:center;width:100vw;height:100vh}._radio-input_17cft_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._radio-input_17cft_1 ._radio-list-container_17cft_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);min-height:1em}._radio-input_17cft_1._disabled_17cft_13{opacity:var(--go-ui-opacity-disabled-element);filter:saturate(50%)}._radio-input_17cft_1 ._input-hint_17cft_18{padding:var(--go-ui-spacing-xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._input-error_1sxiz_1{display:flex;align-items:center;opacity:0;background-color:var(--go-ui-color-red);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-md);animation:_slide-down_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-fast);color:var(--go-ui-color-white);gap:var(--go-ui-spacing-sm)}._pointer_1sxiz_14{opacity:0;animation:_fade-in_1sxiz_1 var(--go-ui-duration-transition-medium) ease-in forwards;animation-delay:var(--go-ui-duration-transition-medium);color:var(--go-ui-color-red)}@keyframes _slide-down_1sxiz_1{0%{transform:translateY(-5pt);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _fade-in_1sxiz_1{0%{opacity:0}to{opacity:1}}._input-label_3lsx4_1{display:flex;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);gap:var(--go-ui-spacing-xs)}._input-label_3lsx4_1._disabled_3lsx4_7{color:var(--go-ui-color-gray-40)}._input-label_3lsx4_1 ._required_3lsx4_11{color:var(--go-ui-color-primary-red)}._radio_1uudv_1{--cursor: default;cursor:default;cursor:var(--cursor)}._radio_1uudv_1 ._icon_1uudv_5{transition:var(--go-ui-duration-transition-medium) color ease-in-out;font-size:var(--go-ui-height-icon-multiplier)}._radio_1uudv_1 ._content_1uudv_10{flex-direction:column;gap:0;line-height:var(--go-ui-line-height-sm)}._radio_1uudv_1 ._description_1uudv_16{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._radio_1uudv_1 ._input_1uudv_21{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._radio_1uudv_1 ._input_1uudv_21:focus-visible+div{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40);outline-offset:1px;border-radius:50%}._radio_1uudv_1._active_1uudv_37 ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1._disabled_1uudv_43{opacity:var(--go-ui-opacity-disabled-element)}._radio_1uudv_1:not(._disabled_1uudv_43):focus ._icon_1uudv_5,._radio_1uudv_1:not(._disabled_1uudv_43):hover ._icon_1uudv_5{color:var(--go-ui-color-primary-red)}._radio_1uudv_1:not(._disabled_1uudv_43):not(._read-only_1uudv_55){--cursor: pointer}._boolean-output_kg1uq_1{color:inherit}._breadcrumbs_c7c54_1{display:flex;align-items:center;flex-wrap:wrap}._breadcrumbs_c7c54_1 ._item_c7c54_6{display:flex}._breadcrumbs_c7c54_1 ._item_c7c54_6:not(:last-child){color:var(--go-ui-color-gray-70)}._breadcrumbs_c7c54_1 ._item_c7c54_6:last-child{color:var(--go-ui-color-black)}._breadcrumbs_c7c54_1 ._separator_c7c54_18{display:flex;justify-content:center;color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-xl)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2{transform:rotate(-90deg)}._chart-axes_8lppt_1 ._y-axis-label-container_8lppt_2 ._y-axis-label_8lppt_2{display:flex;justify-content:center;width:100%;height:100%}._chart-axes_8lppt_1 ._y-axis-tick-text_8lppt_13{display:flex;align-items:center;justify-content:flex-end;padding:0 var(--go-ui-spacing-2xs);text-align:right;word-break:break-word;font-size:var(--go-ui-font-size-xs)}._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transition:var(--go-ui-duration-transition-medium) ease-in-out transform;padding:var(--go-ui-spacing-2xs) 0;text-align:center;word-break:break-word;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._chart-axes_8lppt_1 ._x-axis-tick_8lppt_23 ._x-axis-tick-text_8lppt_24{transform:rotate(-30deg) translate(-10%) translateY(20%);padding:0;font-size:var(--go-ui-font-size-2xs)}}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.5}._chart-axes_8lppt_1 ._x-axis-grid-line_8lppt_40._hovered_8lppt_46,._chart-axes_8lppt_1 ._y-axis-grid-line_8lppt_41._hovered_8lppt_46{stroke-opacity:1}._chart-axes_8lppt_1 ._bound-rect_8lppt_51{fill:var(--go-ui-color-gray-60);fill-opacity:0;transition:fill-opacity var(--go-ui-duration-transition-slow) ease-in-out}._chart-axes_8lppt_1 ._bound-rect_8lppt_51:hover{fill-opacity:.2}._chart-container_z2i5d_1{width:100%;height:16rem}._chart-container_z2i5d_1 ._svg_z2i5d_5{width:100%;height:100%}._chip_3wch9_1{--color-border: transparent;--color-text: inherit;--color-background: transparent;--border-radius: var(--go-ui-border-radius-full);--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm);display:flex;align-items:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);padding:var(--padding);color:inherit;color:var(--color-text);gap:var(--go-ui-spacing-3xs)}._chip_3wch9_1._no-delete-icon_3wch9_17{--padding: var(--go-ui-spacing-4xs) var(--go-ui-spacing-sm)}._chip_3wch9_1._primary_3wch9_21{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._chip_3wch9_1._secondary_3wch9_27{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._chip_3wch9_1._tertiary_3wch9_33{--color-border: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-30);--color-text: inherit}._chip_3wch9_1 ._close-icon_3wch9_39{font-size:var(--go-ui-font-size-sm)}._button_1vbet_1{--color-border: transparent;--color-text: transparent;--color-background: transparent;--font-size: var(--go-ui-height-icon-multiplier);--border-radius: var(--go-ui-border-radius-md);--text-transform: none;--cursor: default;--spacing: var(--go-ui-spacing-2xs);--padding: var(--go-ui-spacing-2xs);display:flex;position:relative;align-items:center;justify-content:center;border:var(--go-ui-width-separator-sm) solid transparent;border:var(--go-ui-width-separator-sm) solid var(--color-border);border-radius:var(--border-radius);background-color:transparent;background-color:var(--color-background);cursor:default;cursor:var(--cursor);padding:var(--padding);width:-moz-fit-content;width:fit-content;max-width:100%;overflow:hidden;text-transform:none;text-transform:var(--text-transform);color:transparent;color:var(--color-text);font-family:inherit;font-size:var(--font-size);font-weight:var(--go-ui-font-weight-normal);gap:var(--spacing)}._button_1vbet_1._round_1vbet_31{--border-radius: 50%}._button_1vbet_1._primary_1vbet_34{--border-color: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-primary-red);--color-text: var(--go-ui-color-white)}._button_1vbet_1._primary_1vbet_34:disabled{--border-color: var(--go-ui-color-gray-40);--color-background: var(--go-ui-color-gray-40)}._button_1vbet_1._primary_1vbet_34:not(:disabled):hover{--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._secondary_1vbet_51{--color-border: var(--go-ui-color-primary-red);--color-background: var(--go-ui-color-white);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1._secondary_1vbet_51:disabled{--color-text: var(--go-ui-color-gray-40);--color-border: var(--go-ui-color-gray-40)}._button_1vbet_1._secondary_1vbet_51:not(:disabled):hover{--color-text: var(--go-ui-color-white);--color-background: var(--go-ui-color-red-hover)}._button_1vbet_1._tertiary_1vbet_69{--color-background: transparent;--color-text: inherit}._button_1vbet_1._tertiary_1vbet_69:disabled{--color-text: var(--go-ui-color-gray-40)}._button_1vbet_1._tertiary_1vbet_69:not(:disabled):hover{--color-background: var(--go-ui-color-gray-20);--color-text: var(--go-ui-color-primary-red)}._button_1vbet_1:disabled{--cursor: not-allowed}._button_1vbet_1:not(:disabled){--cursor: pointer}._checkbox_12g7n_1{display:flex;align-items:flex-start;cursor:pointer;gap:var(--go-ui-spacing-sm)}._checkbox_12g7n_1._with-background_12g7n_7{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12{position:relative;flex-shrink:0;line-height:0;font-size:var(--go-ui-height-icon-multiplier)}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18{position:absolute;opacity:0;margin:0;padding:0;width:0;height:0;pointer-events:none}._checkbox_12g7n_1 ._checkmark-container_12g7n_12 ._input_12g7n_18:focus-visible+svg{outline:var(--go-ui-width-separator-thin) dashed var(--go-ui-color-gray-40)}._checkbox_12g7n_1 ._content_12g7n_33{flex-direction:column;flex-grow:1;line-height:var(--go-ui-line-height-sm);gap:0}._checkbox_12g7n_1 ._description_12g7n_40{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-xs)}._checkbox_12g7n_1._checked_12g7n_45 ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1:focus ._checkmark_12g7n_12,._checkbox_12g7n_1:hover ._checkmark_12g7n_12{color:var(--go-ui-color-primary-red)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58{display:flex;align-items:flex-start;cursor:not-allowed;gap:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-40)}._checkbox_12g7n_1._disabled-checkbox_12g7n_58 ._checkmark_12g7n_12{color:var(--go-ui-color-gray-40)}._checklist_nwqu8_1{--spacing: var(--go-ui-spacing-md);display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._vertical_nwqu8_7 ._checklist-container_nwqu8_8{display:flex;flex-direction:column;gap:var(--spacing)}._checklist_nwqu8_1._horizontal_nwqu8_15 ._checklist-container_nwqu8_8{display:grid;grid-gap:var(--spacing);grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}._input-hint_1p19h_1{display:inline-block;padding:0 var(--go-ui-spacing-2xs);color:var(--go-ui-color-gray-70);font-size:var(--go-ui-font-size-sm)}._overlay_1iffn_1{overflow:auto;animation:_fade-in_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5{display:block;width:calc(100% - var(--go-ui-spacing-md) * 2);max-height:calc(100% - var(--go-ui-spacing-md) * 2);overflow:auto;animation:_slide-down_1iffn_1 var(--go-ui-duration-transition-medium) ease-in forwards}._overlay_1iffn_1 ._modal-container_1iffn_5._size-sm_1iffn_12{max-width:var(--go-ui-width-modal-sm)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-md_1iffn_16{max-width:var(--go-ui-width-modal-md)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-lg_1iffn_20,._overlay_1iffn_1 ._modal-container_1iffn_5._size-xl_1iffn_24{max-width:var(--go-ui-width-modal-lg)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-full_1iffn_28{width:calc(100vw - var(--go-ui-spacing-md) * 2);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._page-width_1iffn_33{max-width:var(--go-ui-page-width-max);height:calc(100vh - var(--go-ui-spacing-md) * 2)}._overlay_1iffn_1 ._modal-container_1iffn_5._size-auto_1iffn_38{max-width:-moz-fit-content;max-width:fit-content}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-2xl);background-color:var(--go-ui-color-white);width:100%;min-width:var(--go-ui-width-min-modal);height:100%;min-height:var(--go-ui-height-min-modal);overflow:auto}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._close-icon_1iffn_53{font-size:var(--go-ui-height-icon-multiplier)}._overlay_1iffn_1 ._modal-container_1iffn_5 ._modal_1iffn_5 ._content_1iffn_57{flex-grow:1;overflow:auto}@keyframes _fade-in_1iffn_1{0%{opacity:0}to{opacity:1}}@keyframes _slide-down_1iffn_1{0%{transform:translateY(-5pt)}to{transform:translateY(0)}}._input-container_1b4m7_1{position:relative}._input-container_1b4m7_1 ._input-section_1b4m7_4{align-items:center;transition:var(--go-ui-duration-transition-medium) var(--go-ui-color-gray-10) ease-in-out;border-bottom:var(--go-ui-width-separator-thin) solid transparent;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-element-background);padding:0 var(--go-ui-spacing-sm)}._input-container_1b4m7_1 ._input-section_1b4m7_4 ._input_1b4m7_1{padding:var(--go-ui-spacing-xs) 0}._input-container_1b4m7_1._disabled_1b4m7_17{opacity:var(--go-ui-opacity-disabled-element)}._input-container_1b4m7_1._disabled_1b4m7_17 ._input-section_1b4m7_4{cursor:not-allowed}._input-container_1b4m7_1._errored_1b4m7_25 ._input-section_1b4m7_4{border-color:var(--go-ui-color-red)}._input-container_1b4m7_1._general_1b4m7_31 ._input-section_1b4m7_4{border-radius:0;border-bottom-color:var(--go-ui-color-separator)}._input-container_1b4m7_1._read-only_1b4m7_38 ._input-section_1b4m7_4{background-color:var(--go-ui-color-readonly-element-background)}._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:hover,._input-container_1b4m7_1:not(._read-only_1b4m7_38):not(._disabled_1b4m7_17) ._input-section_1b4m7_4:focus-within{border-bottom-color:var(--go-ui-color-primary-red)}._input-container_1b4m7_1 ._input-hint_1b4m7_53{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._input-container_1b4m7_1 ._input-error_1b4m7_58{position:absolute;min-width:10rem}._input-container_1b4m7_1:not(._disabled_1b4m7_17):not(._read-only_1b4m7_38):hover:enabled ._input-section_1b4m7_4{border-bottom-color:var(--go-ui-color-primary-red)}._raw-input_8rtzt_1{margin:0;margin:initial;outline:medium none invert;outline:initial;border:medium none currentColor;border:initial;background-color:transparent;background-color:initial;padding:0;padding:initial;width:100%;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit}._raw-input_8rtzt_1:disabled{cursor:not-allowed}._date-output_4jzjo_1{display:inline}._date-range_k6lnj_1{display:flex;gap:var(--go-ui-spacing-md);flex-wrap:wrap}._dropdown-menu_16hml_1{align-items:center}._dropdown-menu_16hml_1 ._icons_16hml_4,._dropdown-menu_16hml_1 ._content_16hml_5,._dropdown-menu_16hml_1 ._actions_16hml_6{pointer-events:none}._dropdown-menu_16hml_1 ._dropdown-icon_16hml_10{margin-left:-.3em;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-content_16hml_16{display:flex;flex-direction:column;padding:var(--go-ui-spacing-sm) 0}._expandable-container_17290_1{border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._header_17290_5{background-color:var(--go-ui-color-foreground)}._expandable-container_17290_1 ._icon_17290_9{display:flex;font-size:var(--go-ui-height-icon-multiplier)}._expandable-container_17290_1:hover ._icon_17290_9{animation:_wiggle_17290_1 var(--go-ui-duration-transition-medium) ease-out}@keyframes _wiggle_17290_1{0%{transform:translateY(0)}50%{transform:translateY(-.1rem)}to{transform:translateY(0)}}._grid_1n8b5_1{--num-columns: 2;--max-width: calc(var(--go-ui-page-width-max) * .8);display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / 2),1fr));grid-template-columns:repeat(auto-fill,minmax(calc(var(--max-width) / var(--num-columns)),1fr));position:relative;min-height:var(--go-ui-content-min-height)}._grid_1n8b5_1 ._message_1n8b5_10{grid-column:-1 / 1}._grid_1n8b5_1._compact_1n8b5_14{min-height:0;min-height:initial}._grid_1n8b5_1._compact_1n8b5_14._pending_1n8b5_17{min-height:var(--go-ui-compact-content-min-height)}._grid_1n8b5_1._two-columns_1n8b5_22{--num-columns: 2}@media screen and (max-width: 55rem){._grid_1n8b5_1._two-columns_1n8b5_22{--max-width: 60rem}}._grid_1n8b5_1._three-columns_1n8b5_31{--num-columns: 3}@media screen and (max-width: 55rem){._grid_1n8b5_1._three-columns_1n8b5_31{--max-width: 60rem}}._grid_1n8b5_1._four-columns_1n8b5_39{--num-columns: 4}._grid_1n8b5_1._five-columns_1n8b5_43{--num-columns: 5}._html-output_3s7du_1 p{margin:var(--go-ui-spacing-xs)}._html-output_3s7du_1 iframe{width:100%}._image_yrvu8_1{display:flex;flex-direction:column;margin:0}._image_yrvu8_1 ._img-element_yrvu8_6{background-color:var(--go-ui-color-background);width:100%;height:auto;-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center}._image_yrvu8_1._expandable_yrvu8_14{cursor:pointer}._image_yrvu8_1 ._caption_yrvu8_18{text-align:center}._expanded-modal_yrvu8_23 ._content_yrvu8_24{display:flex}._expanded-modal_yrvu8_23 ._content_yrvu8_24 ._img-element_yrvu8_6{margin:0;background-color:var(--go-ui-color-background);width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._input-section_1cptl_1{display:grid;grid-gap:var(--go-ui-spacing-md);grid-template-columns:1fr 2fr;background-color:var(--go-ui-color-white)}._input-section_1cptl_1 ._header_1cptl_7 ._heading-container_1cptl_8 ._heading_1cptl_8{flex-grow:initial}@media screen and (max-width: 60rem){._input-section_1cptl_1{grid-template-columns:1fr}}._input-section_1cptl_1._with-compact-title-section_1cptl_19{grid-template-columns:1fr 3fr}._input-section_1cptl_1._with-padding_1cptl_23{padding:var(--go-ui-spacing-lg)}._input-section_1cptl_1 ._asterisk_1cptl_27{color:var(--go-ui-color-primary-red)}._input-section_1cptl_1 ._description_1cptl_31{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._input-section_1cptl_1 ._content-section_1cptl_37{display:grid;grid-gap:var(--go-ui-spacing-sm);align-items:start}._input-section_1cptl_1 ._content-section_1cptl_37._one-column_1cptl_42{grid-template-columns:1fr}._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(20rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}._input-section_1cptl_1 ._content-section_1cptl_37._four-column_1cptl_58{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}._input-section_1cptl_1._without-title-section_1cptl_63{grid-template-columns:1fr}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fill,minmax(28rem,1fr))}@media screen and (max-width: 70rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(20rem,1fr))}}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._two-column_1cptl_46{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fill,minmax(22rem,1fr))}@media screen and (max-width: 30rem){._input-section_1cptl_1._without-title-section_1cptl_63 ._content-section_1cptl_37._three-column_1cptl_54{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}}._info-popup_i3rna_1 ._label_i3rna_2{display:inline-flex;align-items:center;gap:var(--go-ui-spacing-xs)}._info-popup_i3rna_1 ._label_i3rna_2 ._icon_i3rna_7{display:inline-flex;font-size:var(--go-ui-height-icon-multiplier)}._dropdown-container_i3rna_15{padding:0;min-width:min(20rem,100vw);max-width:25rem}._dropdown-container_i3rna_15 ._content_i3rna_20{display:flex;flex-direction:column;white-space:pre-wrap;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1{display:flex;position:relative;flex-direction:column;padding:var(--go-ui-spacing-md);gap:var(--go-ui-spacing-xs)}._key-figure_1owjn_1 ._icon-section_1owjn_8{display:flex}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._icon_1owjn_8{display:flex;align-items:center;flex-grow:1;justify-content:flex-start;color:var(--go-ui-color-primary-red);font-size:var(--go-ui-height-key-figure-icon)}._key-figure_1owjn_1 ._icon-section_1owjn_8 ._info_1owjn_20{flex-shrink:0}._key-figure_1owjn_1 ._info-section-without-icon_1owjn_25{position:absolute;top:0;right:0}._key-figure_1owjn_1 ._value_1owjn_31{font-size:var(--go-ui-font-size-3xl);font-weight:var(--go-ui-font-weight-medium)}._key-figure_1owjn_1 ._description_1owjn_36{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._key-figure_1owjn_1._with-icon_1owjn_41 ._value_1owjn_31{font-size:var(--go-ui-font-size-4xl)}._progress-wrapper_x340w_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xs);color:var(--go-ui-color-primary-red)}._progress-wrapper_x340w_1 ._title_x340w_7{color:var(--go-ui-color-text)}._progress-wrapper_x340w_1 ._total_x340w_11{display:flex;flex-shrink:0;border-radius:var(--go-ui-border-radius-md);background-color:var(--go-ui-color-separator);height:.5rem}._progress-wrapper_x340w_1 ._total_x340w_11 ._progress_x340w_1{transition:var(--go-ui-duration-transition-medium) width ease-in-out;border-radius:var(--go-ui-border-radius-md)}._legend_77ox6_1{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg)}._legend_77ox6_1 ._legend-items_77ox6_6{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._legend-element_1a9ic_1{display:flex;align-items:center;gap:var(--go-ui-spacing-xs);font-size:var(--go-ui-font-size-sm)}._legend-element_1a9ic_1 ._color_1a9ic_7{flex-shrink:0;border-radius:.4em;width:.8em;height:.8em}._legend-element_1a9ic_1 ._icon-container_1a9ic_14{display:flex;align-items:center;justify-content:center;border-radius:50%;padding:var(--go-ui-spacing-2xs);width:1.2rem;height:1.2rem}._legend-element_1a9ic_1 ._icon-container_1a9ic_14 ._icon_1a9ic_14{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}._legend-element_1a9ic_1 ._label_1a9ic_31{font-size:1em}._list_1whuj_1{position:relative;min-height:var(--go-ui-content-min-height)}._list_1whuj_1._compact_1whuj_5{min-height:0;min-height:initial}._list_1whuj_1._compact_1whuj_5._pending_1whuj_8{min-height:var(--go-ui-compact-content-min-height)}._option_1kpl9_1{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-md);overflow:auto}._option_1kpl9_1._active_1kpl9_7{color:var(--go-ui-color-primary-red)}._option_1kpl9_1 ._icon_1kpl9_11{display:flex;align-items:center;flex-shrink:0}._option_1kpl9_1 ._label_1kpl9_17{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._popup_poyjv_1{padding:var(--go-ui-spacing-sm) 0}._popup_poyjv_1 ._list_poyjv_4{display:flex;flex-direction:column;overflow:auto}._popup_poyjv_1 ._list_poyjv_4 ._list-item_poyjv_9{flex-shrink:0}._popup_poyjv_1 ._info-message_poyjv_14{padding:var(--go-ui-spacing-sm);text-align:center;color:var(--go-ui-color-text-light)}._icon_poyjv_21{font-size:var(--go-ui-height-icon-multiplier)}._generic-option_zv1n8_1{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);text-align:left}._generic-option_zv1n8_1:hover{background-color:var(--go-ui-color-gray-20)}._navigation-tab-list_19mw3_1{display:flex;position:relative}._navigation-tab-list_19mw3_1._primary_19mw3_5{overflow-x:auto}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._primary_19mw3_5 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._primary_19mw3_5 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._navigation-tab-list_19mw3_1._secondary_19mw3_20{display:flex;overflow-x:auto}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._content_19mw3_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._secondary_19mw3_20 ._end-dummy-content_19mw3_13{flex-grow:1}._navigation-tab-list_19mw3_1._tertiary_19mw3_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._content_19mw3_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-sm) var(--go-ui-spacing-md)}._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._tertiary_19mw3_36 ._end-dummy-content_19mw3_13{display:none}._navigation-tab-list_19mw3_1._step_19mw3_56{overflow-x:auto}._navigation-tab-list_19mw3_1._step_19mw3_56 ._content_19mw3_8{display:flex}._navigation-tab-list_19mw3_1._step_19mw3_56 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._step_19mw3_56 ._end-dummy-content_19mw3_13{align-self:flex-end;flex-grow:1}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._content_19mw3_8{display:flex;flex-direction:column}._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._start-dummy-content_19mw3_12,._navigation-tab-list_19mw3_1._vertical_19mw3_70 ._end-dummy-content_19mw3_13{display:none}._page-container_1cfro_1 ._content_1cfro_2{margin:0 auto;padding:var(--go-ui-spacing-lg);width:100%}@media screen{._page-container_1cfro_1 ._content_1cfro_2{max-width:var(--go-ui-page-width-max)}}._page-header_1r8r3_1{padding:var(--go-ui-spacing-lg) 0}._page-header_1r8r3_1 ._container_1r8r3_4{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xl)}._page-header_1r8r3_1 ._container_1r8r3_4 ._breadcrumbs-container_1r8r3_9{flex-shrink:initial}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-lg)}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._heading_1r8r3_19{text-align:center}._page-header_1r8r3_1 ._container_1r8r3_4 ._header_1r8r3_13 ._description_1r8r3_23{max-width:var(--go-ui-page-header-description-width-max);text-align:center}._pager_83zz4_1 ._page-list_83zz4_2{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;line-height:1}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._active_83zz4_15{border-radius:50%;background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7._compact_83zz4_21{font-size:var(--go-ui-font-size-xs);font-weight:var(--go-ui-font-weight-medium)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7:disabled{opacity:var(--go-ui-opacity-disabled-element)}._pager_83zz4_1 ._page-list_83zz4_2 ._page-button_83zz4_7 ._icon_83zz4_30{font-size:var(--go-ui-font-size-2xl)}._top-banner_1w8lu_1{background-color:var(--go-ui-color-negative);padding:var(--go-ui-spacing-md);text-align:center;color:var(--go-ui-color-white);font-weight:var(--go-ui-font-weight-medium)}._warning_1w8lu_9{background-color:var(--go-ui-color-warning)}._positive_1w8lu_13{background-color:var(--go-ui-color-positive)}._information_1w8lu_17{background-color:var(--go-ui-color-information)}._pie-chart_pyr7m_1{display:flex;align-items:center;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._pie-chart_pyr7m_1 ._legend_pyr7m_7{display:flex;flex-direction:column;flex-grow:1;justify-content:center}._pie-chart_pyr7m_1 ._legend_pyr7m_7 ._legend-item_pyr7m_13{font-size:var(--go-ui-font-size-xs)}._text-output_10oza_1{display:flex;flex-wrap:wrap;gap:0 var(--go-ui-spacing-sm)}._text-output_10oza_1._with-background_10oza_6{background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-sm)}._text-output_10oza_1 ._label_10oza_11._with-colon_10oza_12:after{content:":"}._text-output_10oza_1 ._value_10oza_17._text-type_10oza_18{text-align:justify;white-space:pre-wrap}._text-output_10oza_1 ._strong_10oza_24{font-weight:var(--go-ui-font-weight-semibold)}._file-input_tu4re_1 ._input_tu4re_2{visibility:hidden;width:0;height:0}._raw-input_145mq_1{margin:0;outline:0;border:0;background-color:transparent;padding:0;width:100%;color:inherit;font-family:inherit;font-size:inherit}._reduced-list-display_1czue_1{display:inline-block}._reduced-list-label_1czue_5{padding:0;-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium)}._reduced-list-label_1czue_5:hover,._reduced-list-label_1czue_5:focus{opacity:1;color:var(--go-ui-color-primary-red)}._option-container_2k92q_1{display:flex;overflow:auto}._option-container_2k92q_1 ._option_2k92q_1{flex-grow:1}._option-container_2k92q_1._active_2k92q_9{color:var(--go-ui-color-primary-red)}._option-container_2k92q_1._active_2k92q_9 ._icon_2k92q_12{opacity:1}._option_11p37_1{display:flex;gap:var(--go-ui-spacing-sm);overflow:auto}._option_11p37_1 ._icon_11p37_6{display:flex;align-items:center;flex-shrink:0;opacity:0;font-size:var(--go-ui-height-icon-multiplier)}._option_11p37_1 ._label_11p37_14{display:flex;flex-direction:column;flex-grow:1;overflow:auto}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._option_11p37_1 ._label_11p37_14 ._overflow-container_11p37_20._description_11p37_25{color:var(--go-ui-color-text-light);font-size:var(--go-ui-font-size-sm)}._segment-input_bykt7_1{width:-moz-fit-content;width:fit-content}._segment-input_bykt7_1 ._segment-list_bykt7_4{flex-wrap:nowrap;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-background);padding:0;width:-moz-fit-content;width:fit-content;gap:0}._segment-input_bykt7_1 ._segment_bykt7_1{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-3xs) var(--go-ui-spacing-md)}._segment-input_bykt7_1 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._segment-input_bykt7_1._secondary-variant_bykt7_24 ._segment_bykt7_1._active_bykt7_18{background-color:var(--go-ui-color-blue-90);color:var(--go-ui-color-white)}._stacked-bar-chart_gqsj2_1{display:flex;flex-direction:column;gap:var(--go-ui-spacing-xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6{display:flex}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6{display:flex;align-items:baseline;justify-content:center;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._value_gqsj2_15{font-weight:var(--go-ui-font-weight-semibold)}._stacked-bar-chart_gqsj2_1 ._bar-info-container_gqsj2_6 ._bar-info_gqsj2_6 ._percentage_gqsj2_19{font-size:var(--go-ui-font-size-sm)}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25{--height: 1rem;display:flex;border-radius:.5rem;border-radius:calc(.5 * var(--height));background-color:var(--go-ui-color-gray-50);height:1rem;height:var(--height);overflow:hidden}._stacked-bar-chart_gqsj2_1 ._track_gqsj2_25 ._bar_gqsj2_6{height:100%}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38{display:flex;flex-wrap:wrap;gap:var(--go-ui-spacing-md)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43{display:flex;align-items:baseline;gap:var(--go-ui-spacing-2xs)}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._color-dot_gqsj2_48{flex-shrink:0;border-radius:.3rem;width:.6rem;height:.6rem}._stacked-bar-chart_gqsj2_1 ._label-list_gqsj2_38 ._label-container_gqsj2_43 ._label_gqsj2_38{padding:0 var(--go-ui-spacing-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--go-ui-font-size-sm)}._switch_1bdw6_1 ._checkmark-container_1bdw6_2{--width: var(--go-ui-font-size-4xl)}._switch_1bdw6_1._with-inverted-view_1bdw6_6{flex-direction:row-reverse}._switch-icon_w9df3_1{--gap: .05em;--border-width: var(--go-ui-width-separator-sm);--knob-diameter: calc(1em - 2 * var(--gap) - 2 * var(--border-width));--background-color: var(--go-ui-color-gray-50);--border-color: var(--go-ui-color-gray-30);--knob-color: var(--go-ui-color-white);display:flex;align-items:center;transition:var(--go-ui-duration-transition-medium) background-color ease-in-out;border:var(--border-width) solid var(--border-color);border-radius:.5em;background-color:var(--background-color);padding:.05em;padding:var(--gap);width:calc(1em + var(--knob-diameter));height:1em}._switch-icon_w9df3_1 ._knob_w9df3_19{transition:var(--go-ui-duration-transition-medium) transform ease-in-out,var(--go-ui-duration-transition-medium) background-color ease-in-out;border-radius:calc((1em - var(--gap) * 2) / 2);border-radius:calc(calc(1em - var(--gap) * 2) / 2);background-color:var(--knob-color);width:var(--knob-diameter);height:var(--knob-diameter)}._switch-icon_w9df3_1._on_w9df3_27{background-color:var(--go-ui-color-primary-red)}._switch-icon_w9df3_1._on_w9df3_27 ._knob_w9df3_19{transform:translate(100%)}._table_nilhy_1{display:flex;position:relative;flex-direction:column;min-height:var(--go-ui-content-min-height);overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8{display:flex;flex-direction:column;overflow-x:auto}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13{position:relative;z-index:0;border-collapse:separate;border-spacing:0;font-size:inherit}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24{position:sticky;top:0;z-index:1}._table_nilhy_1 ._table-overflow-wrapper_nilhy_8 ._table-element_nilhy_13 ._header-row_nilhy_23 ._header-element_nilhy_24 ._header-component_nilhy_29{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm)}._table_nilhy_1 ._message_nilhy_38._pending_nilhy_39{position:absolute;top:0;left:0;width:100%;height:100%}._row_1829z_1 ._cell_1829z_2{padding:var(--go-ui-spacing-sm);overflow:hidden;word-break:break-word}._row_1829z_1:hover ._cell_1829z_2{background-color:var(--go-ui-color-background-hover)}._td_1k4cn_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator)}._th_cdv41_1{border-bottom:var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-white);overflow:hidden;vertical-align:bottom;text-align:left}._th_cdv41_1 ._resize-handle_cdv41_8{position:absolute;top:0;right:0;z-index:1;border-right:var(--go-ui-width-separator-sm) solid transparent;cursor:col-resize;width:var(--go-ui-width-separator-lg);height:calc(100% - var(--go-ui-spacing-sm))}._th_cdv41_1:hover ._resize-handle_cdv41_8{border-right-color:var(--go-ui-color-gray-30)}._th_cdv41_1:hover ._resize-handle_cdv41_8:hover{border-right-color:var(--go-ui-color-gray-50)}._header-cell_vn24d_1{display:flex;align-items:center;color:var(--go-ui-color-text-black);font-weight:var(--go-ui-font-weight-semibold);gap:var(--go-ui-spacing-2xs)}._header-cell_vn24d_1 ._sort-button_vn24d_8{flex-shrink:0}._header-cell_vn24d_1 ._icon_vn24d_12{flex-shrink:0;font-size:var(--go-ui-height-icon-multiplier)}._header-cell_vn24d_1 ._info-popup-icon_vn24d_17{flex-shrink:0}._table-actions_171sq_1{display:flex;justify-content:flex-end;gap:var(--go-ui-spacing-sm)}._table-actions_171sq_1 ._more-icon_171sq_6{font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1{--border-color: var(--go-ui-color-gray-30);--border-width: var(--go-ui-width-separator-thin);display:inline-flex;align-items:stretch;border-radius:0;-webkit-text-decoration:none;text-decoration:none;color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-medium)}._tab_12kk2_1 ._dummy_12kk2_12{flex-grow:1;border-bottom:var(--border-width) solid var(--border-color);width:var(--go-ui-spacing-xs)}._tab_12kk2_1 ._children-wrapper_12kk2_18{display:flex;align-items:center;flex-grow:1;border:var(--border-width) solid transparent;text-align:center}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18,._tab_12kk2_1._vertical_12kk2_26 ._children-wrapper_12kk2_18{display:flex;gap:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-md) 0;text-align:left}._tab_12kk2_1._vertical-compact_12kk2_26._active_12kk2_35,._tab_12kk2_1._vertical_12kk2_26._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._vertical-compact_12kk2_26 ._children-wrapper_12kk2_18{padding:0}._tab_12kk2_1._primary_12kk2_48{position:relative;font-size:var(--go-ui-font-size-lg)}._tab_12kk2_1._primary_12kk2_48 ._children-wrapper_12kk2_18{border-bottom-color:var(--border-color);background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-lg)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._primary_12kk2_48._active_12kk2_35 ._children-wrapper_12kk2_18{border-color:var(--border-color);border-bottom-color:transparent;background-color:var(--go-ui-color-white)}._tab_12kk2_1._primary_12kk2_48:not(._active_12kk2_35) ._active-border_12kk2_69{display:none}._tab_12kk2_1._step_12kk2_75{display:flex;align-items:center;flex-direction:column;gap:var(--go-ui-spacing-md);transition:var(--go-ui-duration-transition-medium) color,background-color ease-in-out;padding:var(--go-ui-spacing-md) 0;text-transform:uppercase;color:var(--go-ui-color-gray-70)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85{display:flex;align-items:center;align-self:stretch}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90{flex-shrink:0;transition:var(--go-ui-duration-transition-slow) border-color ease-in-out;border:var(--border-width) solid transparent;border-radius:50%;background-color:var(--go-ui-color-background);padding:var(--go-ui-spacing-2xs)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{display:flex;align-items:center;justify-content:center;transition:var(--go-ui-duration-transition-slow) background-color ease-in-out;border-radius:50%;background-color:var(--go-ui-color-gray-60);width:1rem;height:1rem}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._step-circle_12kk2_90 ._inner-circle_12kk2_98 ._icon_12kk2_108{color:var(--go-ui-color-white);font-size:var(--go-ui-height-icon-multiplier)}._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75 ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{flex-grow:1;background-color:var(--go-ui-color-separator);height:var(--go-ui-width-separator-thin)}._tab_12kk2_1._step_12kk2_75 ._children-wrapper_12kk2_18{padding:0 var(--go-ui-spacing-lg)}._tab_12kk2_1._step_12kk2_75._errored_12kk2_128 ._children-wrapper_12kk2_18{-webkit-text-decoration:underline wavy var(--go-ui-color-primary-red);text-decoration:underline wavy var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75:hover{color:var(--go-ui-color-black)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35{color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90{border-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._step-circle_12kk2_90 ._inner-circle_12kk2_98{background-color:var(--go-ui-color-primary-red)}._tab_12kk2_1._step_12kk2_75._active_12kk2_35 ._progress-bar-start_12kk2_116,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._step-circle_12kk2_90 ._inner-circle_12kk2_98,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-end_12kk2_115,._tab_12kk2_1._step_12kk2_75._completed_12kk2_154 ._progress-bar-start_12kk2_116{background-color:var(--go-ui-color-primary-blue)}._tab_12kk2_1._step_12kk2_75:first-child ._visual-elements_12kk2_85 ._progress-bar-start_12kk2_116{background-color:transparent}._tab_12kk2_1._step_12kk2_75:last-child ._visual-elements_12kk2_85 ._progress-bar-end_12kk2_115{background-color:transparent}._tab_12kk2_1._secondary_12kk2_183{border-radius:var(--go-ui-border-radius-full);padding:var(--go-ui-spacing-md) var(--go-ui-spacing-xl)}._tab_12kk2_1._secondary_12kk2_183._active_12kk2_35{background-color:var(--go-ui-color-primary-red);color:var(--go-ui-color-white)}._tab_12kk2_1._tertiary_12kk2_193:hover,._tab_12kk2_1._tertiary_12kk2_193._active_12kk2_35{-webkit-text-decoration:underline;text-decoration:underline;color:var(--go-ui-color-primary-red)}._tab_12kk2_1._disabled_12kk2_205{pointer-events:none;opacity:var(--go-ui-opacity-disabled-element)}._tab-list_1d752_1{display:flex;position:relative}._tab-list_1d752_1._primary_1d752_5{overflow-x:auto}._tab-list_1d752_1._primary_1d752_5 ._content_1d752_8{display:flex}._tab-list_1d752_1._primary_1d752_5 ._start-dummy-content_1d752_12,._tab-list_1d752_1._primary_1d752_5 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1;border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._tab-list_1d752_1._secondary_1d752_20{display:flex;overflow-x:auto}._tab-list_1d752_1._secondary_1d752_20 ._content_1d752_8{display:flex;border-radius:var(--go-ui-border-radius-full);background-color:var(--go-ui-color-element-background)}._tab-list_1d752_1._secondary_1d752_20 ._start-dummy-content_1d752_12,._tab-list_1d752_1._secondary_1d752_20 ._end-dummy-content_1d752_13{flex-grow:1}._tab-list_1d752_1._tertiary_1d752_36{justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto}._tab-list_1d752_1._tertiary_1d752_36 ._content_1d752_8{display:flex;flex-wrap:wrap;justify-content:flex-start;width:-moz-fit-content;width:fit-content;overflow-x:auto;gap:var(--go-ui-spacing-md)}._tab-list_1d752_1._tertiary_1d752_36 ._start-dummy-content_1d752_12,._tab-list_1d752_1._tertiary_1d752_36 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._step_1d752_56{overflow-x:auto}._tab-list_1d752_1._step_1d752_56 ._content_1d752_8{display:flex}._tab-list_1d752_1._step_1d752_56 ._start-dummy-content_1d752_12,._tab-list_1d752_1._step_1d752_56 ._end-dummy-content_1d752_13{align-self:flex-end;flex-grow:1}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8,._tab-list_1d752_1._vertical_1d752_70 ._content_1d752_8{display:flex;flex-direction:column}._tab-list_1d752_1._vertical-compact_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical_1d752_70 ._start-dummy-content_1d752_12,._tab-list_1d752_1._vertical-compact_1d752_70 ._end-dummy-content_1d752_13,._tab-list_1d752_1._vertical_1d752_70 ._end-dummy-content_1d752_13{display:none}._tab-list_1d752_1._vertical-compact_1d752_70 ._content_1d752_8{gap:var(--go-ui-spacing-xs)}._timeline-chart_1mks7_1{flex-grow:1;height:100%;--path-stroke-width: 1pt}._timeline-chart_1mks7_1 ._y-axis-tick-text_1mks7_6{text-anchor:middle;font-size:var(--go-ui-font-size-xs)}._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{text-anchor:middle;transition:var(--go-ui-duration-transition-medium) ease-in-out transform;font-size:var(--go-ui-font-size-xs)}@media screen and (max-width: 30rem){._timeline-chart_1mks7_1 ._x-axis-tick-text_1mks7_11{transform:rotate(-30deg)}}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22{stroke:var(--go-ui-color-gray-60);stroke-dasharray:4 4;stroke-opacity:.2;transition:var(--go-ui-duration-transition-medium) ease-in-out stroke-opacity}._timeline-chart_1mks7_1 ._x-axis-grid-line_1mks7_21._hovered_1mks7_28,._timeline-chart_1mks7_1 ._y-axis-grid-line_1mks7_22._hovered_1mks7_28{stroke-opacity:1}._timeline-chart_1mks7_1 ._rect_1mks7_33{transition:var(--go-ui-duration-transition-medium) ease-in-out fill-opacity;cursor:pointer;fill-opacity:0;fill:var(--go-ui-color-white)}._chart-point_aqsix_1{--point-radius: 4pt;--point-hover-radius: 5pt;--point-outline-radius: 7pt;--point-stroke-width: 2pt}._chart-point_aqsix_1 ._point_aqsix_7{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r,var(--go-ui-duration-transition-medium) ease-in-out fill}._chart-point_aqsix_1 ._point_aqsix_7._active_aqsix_14,._chart-point_aqsix_1 ._point_aqsix_7._hovered_aqsix_18{fill:currentColor}._chart-point_aqsix_1 ._point-outline_aqsix_23{r:var(--point-radius);stroke:currentColor;stroke-width:var(--point-stroke-width);fill:var(--go-ui-color-white);transition:var(--go-ui-duration-transition-medium) ease-in-out r}._chart-point_aqsix_1 ._point-outline_aqsix_23._active_aqsix_14{r:var(--point-outline-radius)}._chart-point_aqsix_1._hoverable_aqsix_35:hover ._point_aqsix_7{fill:currentColor}._dropdownContainer_1six7_3{position:relative}._dropdownMenu_1six7_15{position:absolute;right:0;top:100%;margin-top:.5rem;width:180px;background:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-lg);border:1px solid var(--go-ui-color-separator);z-index:50;animation:_dropdownSlideIn_1six7_1 .15s ease-out}._dropdownContent_1six7_43{padding:var(--go-ui-spacing-xs) 0}@keyframes _dropdownSlideIn_1six7_1{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){._dropdownMenu_1six7_15{width:160px;right:-.25rem}._dropdownItem_1six7_89{padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-xs)}}._uploadContainer_1i3bv_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);text-align:center;padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md);overflow-x:hidden}._dropZone_1i3bv_9{border:var(--go-ui-width-separator-thick) dashed var(--go-ui-color-gray-40);background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl) var(--go-ui-spacing-lg);display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);transition:all var(--go-ui-duration-transition-medium) ease;max-width:var(--go-ui-width-screen-md);margin:0 auto;min-height:250px;justify-content:center}._dropZone_1i3bv_9:hover{background-color:var(--go-ui-color-gray-30);border-color:var(--go-ui-color-gray-50)}._dropZone_1i3bv_9._hasFile_1i3bv_30{background-color:var(--go-ui-color-white);border-color:var(--go-ui-color-gray-30);min-height:300px;padding:var(--go-ui-spacing-lg)}._dropZoneIcon_1i3bv_37{width:2.5rem;height:2.5rem;color:var(--go-ui-color-red-90)}._dropZoneText_1i3bv_43{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70);text-align:center}._dropZoneSubtext_1i3bv_49{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-50);margin:var(--go-ui-spacing-md) 0}._filePreview_1i3bv_55{width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;animation:_fadeIn_1i3bv_1 .3s ease-in-out}._filePreviewImage_1i3bv_64{position:relative;max-width:100%;max-height:20rem;overflow:visible;border-radius:var(--go-ui-border-radius-lg);background-color:var(--go-ui-color-gray-20);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1i3bv_64:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._filePreviewImage_1i3bv_64 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._filePreviewImage_1i3bv_64 img:hover{transform:scale(1.02)}@keyframes _fadeIn_1i3bv_1{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}._fileName_1i3bv_110{font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-80);margin-top:var(--go-ui-spacing-sm);text-align:center}._fileInfo_1i3bv_118{font-size:var(--go-ui-font-size-xs);color:var(--go-ui-color-gray-60);margin-top:var(--go-ui-spacing-xs);text-align:center}._helpLink_1i3bv_125{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md)}._helpLink_1i3bv_125 a{color:var(--go-ui-color-red-90);font-size:var(--go-ui-font-size-xs);transition:color var(--go-ui-duration-transition-fast) ease;display:flex;align-items:center;gap:var(--go-ui-spacing-2xs)}._helpLink_1i3bv_125 a:hover{color:var(--go-ui-color-red-hover);text-decoration:underline}._loadingContainer_1i3bv_145{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._loadingText_1i3bv_153{color:var(--go-ui-color-gray-60)}._generateButtonContainer_1i3bv_157{display:flex;flex-direction:column;align-items:center;gap:var(--go-ui-spacing-lg);margin-top:var(--go-ui-spacing-2xl)}._uploadedMapContainer_1i3bv_165{margin-bottom:var(--go-ui-spacing-lg)}._uploadedMapImage_1i3bv_169{width:100%;max-width:var(--go-ui-width-screen-lg);max-height:20rem;overflow:visible;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);box-shadow:var(--go-ui-box-shadow-sm);display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1i3bv_169:hover{background-color:var(--go-ui-color-gray-30);transform:translateY(-2px);box-shadow:var(--go-ui-box-shadow-md)}._uploadedMapImage_1i3bv_169 img{max-width:100%;max-height:18rem;width:auto;height:auto;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-sm);transition:transform var(--go-ui-duration-transition-medium) ease}._uploadedMapImage_1i3bv_169 img:hover{transform:scale(1.02)}._formSection_1i3bv_205{margin-bottom:var(--go-ui-spacing-lg)}._formGrid_1i3bv_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (min-width: 1024px){._formGrid_1i3bv_209{grid-template-columns:1fr 1fr}}._titleField_1i3bv_222{grid-column:1 / -1}._ratingSection_1i3bv_226{text-align:left}._ratingDescription_1i3bv_230{color:var(--go-ui-color-gray-70);margin-bottom:var(--go-ui-spacing-lg)}._ratingSlider_1i3bv_235{margin-top:var(--go-ui-spacing-lg);display:flex;align-items:center;gap:var(--go-ui-spacing-sm)}._ratingLabel_1i3bv_242{display:block;font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);text-transform:capitalize;width:5rem;flex-shrink:0}._ratingInput_1i3bv_251{width:100%;accent-color:var(--go-ui-color-red-90)}._ratingValue_1i3bv_256{margin-left:var(--go-ui-spacing-sm);width:2.5rem;text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-70)}._submitSection_1i3bv_266{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-2xl);flex-wrap:wrap}._successContainer_1i3bv_275{text-align:center;padding:var(--go-ui-spacing-2xl)}._successHeading_1i3bv_280{color:var(--go-ui-color-green-90);margin-bottom:var(--go-ui-spacing-lg)}._successText_1i3bv_285{color:var(--go-ui-color-gray-700);margin-bottom:var(--go-ui-spacing-xl);font-size:var(--go-ui-font-size-lg)}._successButton_1i3bv_291{display:flex;justify-content:center}._viewFullSizeButton_1i3bv_297{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding-top:var(--go-ui-spacing-md);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._fullSizeModalOverlay_1i3bv_306{position:fixed;inset:0;background-color:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._lightModalOverlay_1i3bv_320{position:fixed;inset:0;background-color:#0000004d;display:flex;justify-content:center;align-items:center;z-index:1000;padding:var(--go-ui-spacing-lg)}._fullSizeModalContent_1i3bv_334{background-color:var(--go-ui-color-white);border-radius:var(--go-ui-border-radius-lg);max-width:95vw;max-height:95vh;overflow:hidden;box-shadow:var(--go-ui-box-shadow-xl);display:flex;flex-direction:column}._fullSizeModalHeader_1i3bv_345{display:flex;justify-content:space-between;align-items:center;padding:var(--go-ui-spacing-lg);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);background-color:var(--go-ui-color-gray-10)}._fullSizeModalTitle_1i3bv_354{margin:0;font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900)}._fullSizeModalImage_1i3bv_361{flex:1;display:flex;justify-content:center;align-items:center;padding:var(--go-ui-spacing-lg);overflow:auto}._fullSizeModalImage_1i3bv_361 img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain;border-radius:var(--go-ui-border-radius-md);box-shadow:var(--go-ui-box-shadow-md)}@media (max-width: 768px){._fullSizeModalOverlay_1i3bv_306{padding:var(--go-ui-spacing-sm)}._fullSizeModalContent_1i3bv_334{max-width:100vw;max-height:100vh}._fullSizeModalHeader_1i3bv_345,._fullSizeModalImage_1i3bv_361{padding:var(--go-ui-spacing-md)}}._confirmSection_1i3bv_398{display:flex;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-xl);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._step2Layout_1i3bv_407{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._topRow_1i3bv_413{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._topRow_1i3bv_413._ratingHidden_1i3bv_421{grid-template-columns:1fr}._imageSection_1i3bv_425{position:sticky;top:var(--go-ui-spacing-lg)}._ratingSection_1i3bv_226{display:flex;flex-direction:column}._ratingContent_1i3bv_435{display:flex;flex-direction:column;gap:var(--go-ui-spacing-md)}._bottomRow_1i3bv_441{width:100%}._step2Layout_1i3bv_407{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-2xl);align-items:start}._mapColumn_1i3bv_453{position:sticky;top:var(--go-ui-spacing-lg)}._contentColumn_1i3bv_458{display:flex;flex-direction:column;gap:var(--go-ui-spacing-lg)}._step2bLayout_1i3bv_465{display:flex;flex-direction:column;gap:var(--go-ui-spacing-2xl)}._contentColumn_1i3bv_458 ._formGrid_1i3bv_209{display:grid;gap:var(--go-ui-spacing-lg);grid-template-columns:1fr;text-align:left}@media (max-width: 1024px){._step2Layout_1i3bv_407,._topRow_1i3bv_413{grid-template-columns:1fr;gap:var(--go-ui-spacing-lg)}._topRow_1i3bv_413._ratingHidden_1i3bv_421{grid-template-columns:1fr}._mapColumn_1i3bv_453,._imageSection_1i3bv_425{position:static}}@media (max-width: 768px){._uploadContainer_1i3bv_1{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm) var(--go-ui-spacing-xl) var(--go-ui-spacing-sm)}._dropZone_1i3bv_9{padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md);min-height:200px}._dropZone_1i3bv_9._hasFile_1i3bv_30{min-height:250px;padding:var(--go-ui-spacing-md)}._filePreviewImage_1i3bv_64{max-width:100%;max-height:15rem;padding:var(--go-ui-spacing-xs)}._filePreviewImage_1i3bv_64 img{max-height:13rem}._ratingSlider_1i3bv_235{gap:var(--go-ui-spacing-xs)}._ratingLabel_1i3bv_242{width:4rem;font-size:var(--go-ui-font-size-xs)}._ratingValue_1i3bv_256{width:2rem;font-size:var(--go-ui-font-size-xs)}}@media (max-width: 480px){._dropZone_1i3bv_9{padding:var(--go-ui-spacing-md) var(--go-ui-spacing-sm);min-height:180px}._dropZone_1i3bv_9._hasFile_1i3bv_30{min-height:220px}._filePreviewImage_1i3bv_64{max-height:12rem}._filePreviewImage_1i3bv_64 img{max-height:10rem}}._metadataSectionCard_1i3bv_562{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);box-shadow:var(--go-ui-box-shadow-xs)}._droneMetadataSection_1i3bv_571{margin-top:var(--go-ui-spacing-lg);padding-top:var(--go-ui-spacing-lg);border-top:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._droneMetadataHeading_1i3bv_577{font-size:var(--go-ui-font-size-md);font-weight:600;color:var(--go-ui-color-gray-90);margin-bottom:var(--go-ui-spacing-md);text-align:left}._droneMetadataGrid_1i3bv_585{display:grid;grid-template-columns:1fr 1fr;gap:var(--go-ui-spacing-md)}._rtkFixContainer_1i3bv_591{display:flex;align-items:center;padding:var(--go-ui-spacing-sm) 0}._rtkFixLabel_1i3bv_597{display:flex;align-items:center;gap:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-80);cursor:pointer}._rtkFixCheckbox_1i3bv_606{width:1rem;height:1rem;accent-color:var(--go-ui-color-red-90)}@media (max-width: 768px){._droneMetadataGrid_1i3bv_585{grid-template-columns:1fr;gap:var(--go-ui-spacing-sm)}}._confirmButtonContainer_1i3bv_621{margin-top:var(--go-ui-spacing-lg);display:flex;justify-content:center;align-items:center}._ratingWarningContent_1i3bv_629{padding:var(--go-ui-spacing-xl);text-align:center;max-width:500px}._ratingWarningTitle_1i3bv_637{font-size:var(--go-ui-font-size-lg);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-900);margin-bottom:var(--go-ui-spacing-md)}._ratingWarningText_1i3bv_644{font-size:var(--go-ui-font-size-md);color:var(--go-ui-color-gray-700);line-height:1.6;margin-bottom:var(--go-ui-spacing-xl)}._ratingWarningButtons_1i3bv_651{display:flex;gap:var(--go-ui-spacing-md);justify-content:center;margin-top:var(--go-ui-spacing-lg)}._fallbackReasonBox_1i3bv_659{background-color:var(--go-ui-color-yellow-10);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-yellow-30);border-radius:var(--go-ui-border-radius-md);padding:var(--go-ui-spacing-md);margin:var(--go-ui-spacing-lg) 0;text-align:left}._fallbackReasonTitle_1i3bv_668{font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-semibold);color:var(--go-ui-color-gray-800);margin:0 0 var(--go-ui-spacing-xs) 0}._fallbackReasonText_1i3bv_675{font-size:var(--go-ui-font-size-sm);color:var(--go-ui-color-gray-700);margin:0;line-height:1.5}._preprocessingProgress_1i3bv_682{margin-top:var(--go-ui-spacing-lg);text-align:center;padding:var(--go-ui-spacing-lg);background-color:var(--go-ui-color-background-light);border-radius:var(--go-ui-border-radius-md)}._preprocessingProgress_1i3bv_682 p{margin-bottom:var(--go-ui-spacing-md);color:var(--go-ui-color-text);font-weight:var(--go-ui-font-weight-medium)}._cropZoomSlider_1i3bv_697{flex:1;height:.5rem;background-color:var(--go-ui-color-gray-30);border-radius:var(--go-ui-border-radius-lg);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none}._cropZoomSlider_1i3bv_697::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm)}._cropZoomSlider_1i3bv_697::-moz-range-thumb{width:1.25rem;height:1.25rem;background-color:var(--go-ui-color-red-90);border-radius:50%;cursor:pointer;border:2px solid var(--go-ui-color-white);box-shadow:var(--go-ui-box-shadow-sm);border:none}._cropZoomSlider_1i3bv_697:focus{outline:none;box-shadow:0 0 0 2px var(--go-ui-color-red-40)}._carouselContainer_1i3bv_735{position:relative;width:100%}._carouselImageWrapper_1i3bv_740{position:relative;width:100%;background-color:var(--go-ui-color-gray-20);border-radius:var(--go-ui-border-radius-lg);overflow:hidden;border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);box-shadow:var(--go-ui-box-shadow-sm);transition:box-shadow var(--go-ui-duration-transition-medium) ease}._carouselImageWrapper_1i3bv_740:hover{box-shadow:var(--go-ui-box-shadow-md)}._carouselImage_1i3bv_740{width:100%;height:auto;-o-object-fit:contain;object-fit:contain;image-rendering:pixelated;display:block}._carouselNavigation_1i3bv_763{display:flex;align-items:center;justify-content:center;gap:var(--go-ui-spacing-md);margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._carouselButton_1i3bv_775{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-md);padding:var(--go-ui-spacing-sm);transition:all var(--go-ui-duration-transition-fast) ease;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center}._carouselButton_1i3bv_775:hover:not(:disabled){background-color:var(--go-ui-color-gray-20);border-color:var(--go-ui-color-gray-40);transform:translateY(-1px)}._carouselButton_1i3bv_775:disabled{opacity:.5;cursor:not-allowed}._carouselIndicators_1i3bv_799{display:flex;gap:var(--go-ui-spacing-xs);align-items:center}._carouselIndicator_1i3bv_799{background-color:var(--go-ui-color-gray-30);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-sm);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);cursor:pointer;transition:all var(--go-ui-duration-transition-fast) ease;min-width:32px;height:32px;display:flex;align-items:center;justify-content:center}._carouselIndicator_1i3bv_799:hover:not(:disabled){background-color:var(--go-ui-color-gray-40);border-color:var(--go-ui-color-gray-50);color:var(--go-ui-color-gray-90)}._carouselIndicatorActive_1i3bv_828{background-color:var(--go-ui-color-red-90);border-color:var(--go-ui-color-red-90);color:var(--go-ui-color-white)}._carouselIndicatorActive_1i3bv_828:hover:not(:disabled){background-color:var(--go-ui-color-red-hover);border-color:var(--go-ui-color-red-hover);color:var(--go-ui-color-white)}._carouselIndicator_1i3bv_799:disabled{opacity:.5;cursor:not-allowed}._imageCounter_1i3bv_845{text-align:center;margin-top:var(--go-ui-spacing-sm);font-size:var(--go-ui-font-size-sm);font-weight:var(--go-ui-font-weight-medium);color:var(--go-ui-color-gray-70);background-color:var(--go-ui-color-gray-10);padding:var(--go-ui-spacing-xs) var(--go-ui-spacing-sm);border-radius:var(--go-ui-border-radius-sm);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._singleImageContainer_1i3bv_858{position:relative;width:100%}._viewImageButtonContainer_1i3bv_864{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-md);padding:var(--go-ui-spacing-sm);background-color:var(--go-ui-color-gray-10);border-radius:var(--go-ui-border-radius-md);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}@media (max-width: 768px){._carouselNavigation_1i3bv_763{flex-direction:column;gap:var(--go-ui-spacing-sm)}._carouselIndicators_1i3bv_799{order:-1;margin-bottom:var(--go-ui-spacing-sm)}._carouselButton_1i3bv_775{min-width:36px;height:36px}._carouselIndicator_1i3bv_799{min-width:28px;height:28px;font-size:var(--go-ui-font-size-xs)}._imageCounter_1i3bv_845{font-size:var(--go-ui-font-size-xs)}._viewImageButtonContainer_1i3bv_864{margin-top:var(--go-ui-spacing-sm)}}._switchLabel_t5cwd_1{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}._switchLabel_t5cwd_1._disabled_t5cwd_17{opacity:.6;cursor:not-allowed}._switchText_t5cwd_27{font-size:var(--go-ui-font-size-sm);font-family:var(--go-ui-font-family-sans);color:var(--go-ui-color-text-primary);margin-top:2px}._switchContainer_t5cwd_41{position:relative;display:inline-block;width:36px;height:16px}._switchInput_t5cwd_55{opacity:0;width:0;height:0;position:absolute}._slider_t5cwd_69{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.3s;border-radius:16px}._slider_t5cwd_69:before{position:absolute;content:"";height:12px;width:12px;left:2px;bottom:2px;background-color:#fff;transition:.3s;border-radius:50%}._switchInput_t5cwd_55:checked+._slider_t5cwd_69{background-color:var(--go-ui-color-red-90)}._switchInput_t5cwd_55:checked+._slider_t5cwd_69:before{transform:translate(20px)}._switchInput_t5cwd_55:focus+._slider_t5cwd_69{box-shadow:0 0 1px var(--go-ui-color-red-90)}._switchLabel_t5cwd_1._disabled_t5cwd_17 ._slider_t5cwd_69{cursor:not-allowed;opacity:.6}._helpContainer_1wavj_1{margin:0 auto;max-width:var(--go-ui-width-screen-lg);padding:var(--go-ui-spacing-lg) var(--go-ui-spacing-md) var(--go-ui-spacing-2xl) var(--go-ui-spacing-md)}._helpSection_1wavj_13{background-color:var(--go-ui-color-white);border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator);border-radius:var(--go-ui-border-radius-xl);padding:var(--go-ui-spacing-2xl);margin-bottom:var(--go-ui-spacing-xl);box-shadow:var(--go-ui-box-shadow-sm);transition:all var(--go-ui-duration-transition-medium) ease;position:relative;overflow:hidden}._helpSection_1wavj_13:hover{box-shadow:var(--go-ui-box-shadow-md);transform:translateY(-2px);border-color:var(--go-ui-color-gray-30)}._sectionHeader_1wavj_49{display:flex;align-items:center;margin-bottom:var(--go-ui-spacing-lg);padding-bottom:var(--go-ui-spacing-md);border-bottom:var(--go-ui-width-separator-thin) solid var(--go-ui-color-separator)}._sectionIcon_1wavj_65{width:2rem;height:2rem;margin-right:var(--go-ui-spacing-md);color:var(--go-ui-color-red-90);background-color:var(--go-ui-color-red-5);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}._sectionTitle_1wavj_91{color:var(--go-ui-color-black);font-weight:var(--go-ui-font-weight-semibold);font-size:var(--go-ui-font-size-xl);margin:0}._sectionContent_1wavj_105{color:var(--go-ui-color-gray-700);line-height:1.7;font-size:var(--go-ui-font-size-base);margin-bottom:var(--go-ui-spacing-lg)}._guidelinesList_1wavj_119{list-style:none;padding:0;margin:var(--go-ui-spacing-md) 0}._guidelinesList_1wavj_119 li{position:relative;padding:var(--go-ui-spacing-sm) 0 var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-sm);color:var(--go-ui-color-gray-700);line-height:1.6}._guidelinesList_1wavj_119 li:before{content:"✓";position:absolute;left:0;top:var(--go-ui-spacing-sm);color:var(--go-ui-color-green-70);font-weight:var(--go-ui-font-weight-bold);font-size:var(--go-ui-font-size-sm);background-color:var(--go-ui-color-green-5);border-radius:50%;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center}._buttonContainer_1wavj_181{display:flex;justify-content:center;margin-top:var(--go-ui-spacing-xl)}._featureHighlight_1wavj_193{background:linear-gradient(135deg,var(--go-ui-color-blue-5),var(--go-ui-color-blue-10));border:var(--go-ui-width-separator-thin) solid var(--go-ui-color-blue-20);border-radius:var(--go-ui-border-radius-lg);padding:var(--go-ui-spacing-lg);margin:var(--go-ui-spacing-lg) 0;position:relative}._featureHighlight_1wavj_193:before{content:"💡";position:absolute;top:var(--go-ui-spacing-md);right:var(--go-ui-spacing-md);font-size:1.5rem}._featureHighlightText_1wavj_227{color:var(--go-ui-color-blue-90);font-weight:var(--go-ui-font-weight-medium);margin:0;font-size:var(--go-ui-font-size-sm)}@media (max-width: 768px){._helpSection_1wavj_13{padding:var(--go-ui-spacing-lg);margin-bottom:var(--go-ui-spacing-lg)}._sectionHeader_1wavj_49{flex-direction:column;text-align:center;gap:var(--go-ui-spacing-sm)}._sectionIcon_1wavj_65{margin-right:0;margin-bottom:var(--go-ui-spacing-sm)}._actionButton_1wavj_277{padding:var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);font-size:var(--go-ui-font-size-sm)}}._demoContainer_19wfc_1{max-width:1200px;margin:0 auto;padding:0 1rem}._section_19wfc_13{margin-bottom:3rem;padding-bottom:2rem;border-bottom:1px solid #e0e0e0}._section_19wfc_13:last-child{border-bottom:none}._pageTitle_19wfc_33{margin-bottom:1rem;color:#1a1a1a}._description_19wfc_43{font-size:1.1rem;color:#666;line-height:1.6;margin-bottom:2rem}._sectionHeader_19wfc_57{margin-bottom:1.5rem}._sectionTitle_19wfc_65{margin-bottom:.5rem;color:#1a1a1a}._sectionDescription_19wfc_75{color:#666;font-size:.95rem;margin-bottom:1rem}._switchGrid_19wfc_87{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}._switchItem_19wfc_99{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background-color:#fafafa;border-radius:8px;border:1px solid #e0e0e0}._switchLabel_19wfc_119{font-weight:600;font-size:.95rem;color:#333;margin-bottom:.5rem}._switchWrapper_19wfc_133{background:transparent;border:none;shadow:none;padding:.5rem}._stateDisplay_19wfc_147{padding:.75rem 1rem;background-color:#fff;border-radius:4px;font-size:.9rem;color:#333;border:1px solid #e0e0e0}._nativeCheckboxLabel_19wfc_165{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.95rem;color:#333}._nativeCheckbox_19wfc_165{width:1rem;height:1rem;accent-color:#d32f2f;cursor:pointer}._buttonToggle_19wfc_197{padding:.75rem 1.5rem;border:2px solid #ccc;border-radius:6px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;min-width:100px}._buttonToggleOff_19wfc_219{background-color:#fff;color:#666;border-color:#ccc}._buttonToggleOn_19wfc_231{background-color:#d32f2f;color:#fff;border-color:#d32f2f}._buttonToggle_19wfc_197:hover{opacity:.9;transform:translateY(-1px)}._buttonToggleText_19wfc_253{display:block} diff --git a/py_backend/static/assets/index-Dz4vX1uX.js b/py_backend/static/assets/index-DRmfVC9B.js similarity index 99% rename from py_backend/static/assets/index-Dz4vX1uX.js rename to py_backend/static/assets/index-DRmfVC9B.js index c7653c52..0e6ad340 100644 --- a/py_backend/static/assets/index-Dz4vX1uX.js +++ b/py_backend/static/assets/index-DRmfVC9B.js @@ -1 +1 @@ -import{r as n,y as nt,t as ht,a as q,c as gt,j as e,o as N,b as re,R as st,z,g as rt,d as ft,m as vt,e as pt,n as Z,A as xt,f as _t,h as Ct,i as yt,k as he,l as bt,p as ye,q as jt,s as Nt,E as wt,C as St,U as Mt,Q as It,u as Dt,N as je,_ as Et,L as Tt}from"./index-CcfIBRoF.js";const kt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("g",{clipPath:"url(#arrow-drop-down-line_svg__a)"},n.createElement("path",{d:"m12 15-4.243-4.243 1.415-1.414L12 12.172l2.828-2.83 1.415 1.415L12 15Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"arrow-drop-down-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"})))),Lt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("g",{clipPath:"url(#arrow-drop-up-line_svg__a)"},n.createElement("path",{d:"m12 11.828-2.828 2.829-1.415-1.414L12 9l4.243 4.243-1.415 1.414L12 11.828Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"arrow-drop-up-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"})))),Pt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("g",{clipPath:"url(#information-line_svg__a)"},n.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"information-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"})))),Rt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"}),n.createElement("mask",{id:"table-sorting-line_svg__a",width:8,height:5,x:8,y:12,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},n.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"})),n.createElement("g",{mask:"url(#table-sorting-line_svg__a)"},n.createElement("path",{d:"M-24-22h72v72h-72z"})),n.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"}),n.createElement("mask",{id:"table-sorting-line_svg__b",width:8,height:5,x:8,y:6,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},n.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"})),n.createElement("g",{mask:"url(#table-sorting-line_svg__b)"},n.createElement("path",{d:"M48 45h-72v-72h72z"}))),$t="_number-output_1blvi_1",Bt={numberOutput:$t};function we(m){const{className:a,invalidText:h=nt,separatorHidden:o,compact:f,currency:g,value:b,tooltip:_,unit:y,prefix:x,suffix:w,maximumFractionDigits:C=1}=m,{currentLanguage:j}=n.useContext(ht),v=n.useMemo(()=>{if(q(b))return h;const S=gt(b,{currency:g,compact:f,separatorHidden:o,maximumFractionDigits:C,unit:y,language:j});return e.jsxs(e.Fragment,{children:[x,S,w]})},[h,b,f,o,g,y,C,x,j,w]);return e.jsx("div",{className:N(Bt.numberOutput,a),title:re(_)?String(_):void 0,children:v})}const At="_tooltip-dummy_rbf3f_1",Ft="_tooltip-content_rbf3f_7",Ot="_pointer_rbf3f_14",Ne={tooltipDummy:At,tooltipContent:Ft,pointer:Ot};function Ht(m){const{className:a,title:h,description:o,preferredWidth:f}=m,[g,b]=n.useState(!1),[_,y]=n.useState(!1),x=n.useRef(),w=n.useRef(null);return n.useEffect(()=>{const C=()=>{y(!0)},j=()=>{y(!1)};if(q(w.current))return;const{current:{parentNode:v}}=w;if(!q(v))return x.current=v,v.addEventListener("mouseover",C),v.addEventListener("mouseout",j),b(!0),()=>{v.removeEventListener("mouseover",C),v.removeEventListener("mouseout",j)}},[]),e.jsxs(e.Fragment,{children:[!g&&e.jsx("div",{className:Ne.tooltipDummy,ref:w}),_&&e.jsx(st,{className:N(Ne.tooltipContent,a),parentRef:x,pointerClassName:Ne.pointer,preferredWidth:f,children:e.jsx(z,{heading:h,withInternalPadding:!0,contentViewType:"vertical",children:o})})]})}function B(m){return m.id}const Vt="common",zt={booleanYesLabel:"Yes",booleanNoLabel:"No"},Ut={namespace:Vt,strings:zt},Wt="_boolean-output_kg1uq_1",Qt={booleanOutput:Wt};function Zt(m){const{className:a,invalidText:h,value:o}=m,f=rt(Ut);let g;return o===!0?g=f.booleanYesLabel:o===!1?g=f.booleanNoLabel:g=h,e.jsx("div",{className:N(Qt.booleanOutput,a),children:g})}const qt="_date-output_4jzjo_1",Gt={dateOutput:qt};function Yt(m){const{value:a,format:h,className:o,invalidText:f}=m,g=n.useMemo(()=>ft(a,h),[a,h]);return e.jsx("div",{className:N(Gt.dateOutput,o),children:g??f})}const Kt="_dropdown-menu_16hml_1",Xt="_icons_16hml_4",Jt="_content_16hml_5",ea="_actions_16hml_6",ta="_dropdown-icon_16hml_10",aa="_dropdown-content_16hml_16",le={dropdownMenu:Kt,icons:Xt,content:Jt,actions:ea,dropdownIcon:ta,dropdownContent:aa};function na(m){const a=n.useRef(null),{className:h,popupClassName:o,children:f,label:g,activeClassName:b,icons:_,variant:y="secondary",actions:x,withoutDropdownIcon:w,componentRef:C,elementRef:j=a,persistent:v,preferredPopupWidth:S}=m,p=n.useRef(null),[L,I]=n.useState(!1);n.useEffect(()=>{C&&(C.current={setShowDropdown:I})},[C,I]);const R=n.useCallback(()=>{I(ie=>!ie)},[I]),k=n.useCallback((ie,ae)=>{ae||ie&&v||I(!1)},[I,v]);vt(L,k,p,j);const G=n.useMemo(()=>({setShowDropdown:I}),[I]),U=!!x||!w;return e.jsxs(pt.Provider,{value:G,children:[e.jsx(Z,{name:void 0,className:N(le.dropdownMenu,L&&b,h),elementRef:j,onClick:R,variant:y,actionsContainerClassName:le.actions,iconsContainerClassName:le.icons,childrenContainerClassName:le.content,actions:U?e.jsxs(e.Fragment,{children:[x,!w&&(L?e.jsx(xt,{className:le.dropdownIcon}):e.jsx(_t,{className:le.dropdownIcon}))]}):void 0,icons:_,children:g}),L&&e.jsx(st,{elementRef:p,className:N(le.dropdownContent,o),parentRef:j,preferredWidth:S,children:f})]})}const sa="_info-popup_i3rna_1",ra="_label_i3rna_2",ia="_icon_i3rna_7",oa="_dropdown-container_i3rna_15",la="_content_i3rna_20",ge={infoPopup:sa,label:ra,icon:ia,dropdownContainer:oa,content:la};function ca(m){const{className:a,icon:h=e.jsx(Pt,{}),infoLabel:o,title:f,description:g,withoutIcon:b,popupClassName:_,descriptionClassName:y}=m;return e.jsx(na,{label:e.jsxs("div",{className:ge.label,children:[o,!b&&h&&e.jsx("div",{className:ge.icon,children:h})]}),popupClassName:N(ge.dropdownContainer,_),className:N(ge.infoPopup,a),variant:"tertiary",withoutDropdownIcon:!0,children:e.jsx(z,{heading:f,childrenContainerClassName:N(y,ge.content),withInternalPadding:!0,children:g})})}const da="_progress-wrapper_x340w_1",ua="_title_x340w_7",ma="_total_x340w_11",ha="_progress_x340w_1",fe={progressWrapper:da,title:ua,total:ma,progress:ha};function Ye(m){const{className:a,title:h,description:o,totalValue:f,value:g,showPercentageInTitle:b,children:_,color:y="var(--go-ui-color-primary-red)"}=m,x=re(g)?g:0,w=re(f)?f:0;let C;return w===0?C=0:C=x/w*100,e.jsxs("div",{className:N(fe.progressWrapper,a),children:[(h||b)&&e.jsxs("div",{className:fe.title,children:[h,b&&e.jsx(we,{value:C,suffix:"%"})]}),e.jsx("div",{className:fe.total,children:e.jsx("div",{className:fe.progress,style:{width:`${C}%`,backgroundColor:y}})}),o&&e.jsx("div",{className:fe.description,children:o}),_]})}const ga="_legend-element_1a9ic_1",fa="_color_1a9ic_7",va="_icon-container_1a9ic_14",pa="_icon_1a9ic_14",xa="_label_1a9ic_31",ve={legendElement:ga,color:fa,iconContainer:va,icon:pa,label:xa};function _a(m){const{className:a,colorClassName:h,iconClassName:o,color:f,label:g,iconSrc:b}=m;return e.jsxs("div",{className:N(ve.legendElement,a),children:[b?e.jsx("div",{style:{backgroundColor:f},className:ve.iconContainer,children:e.jsx("img",{className:N(ve.icon,o),src:b,alt:""})}):e.jsx("div",{style:{backgroundColor:f},className:N(ve.color,h)}),e.jsx("div",{className:ve.label,children:g})]})}const Ca="_text-output_10oza_1",ya="_with-background_10oza_6",ba="_label_10oza_11",ja="_with-colon_10oza_12",Na="_value_10oza_17",wa="_text-type_10oza_18",Sa="_strong_10oza_24",ee={textOutput:Ca,withBackground:ya,label:ba,withColon:ja,value:Na,textType:wa,strong:Sa};function Ke(m){const{className:a,label:h,icon:o,description:f,labelClassName:g,descriptionClassName:b,valueClassName:_,strongLabel:y,strongValue:x,strongDescription:w,withoutLabelColon:C,withBackground:j,invalidText:v=nt,...S}=m,{value:p}=m;let L=v;return S.valueType==="number"?L=e.jsx(we,{...S,invalidText:v}):S.valueType==="date"?L=e.jsx(Yt,{...S,invalidText:v}):S.valueType==="boolean"?L=e.jsx(Zt,{...S,invalidText:v}):p instanceof Date||(L=p||v),e.jsxs("div",{className:N(ee.textOutput,j&&ee.withBackground,a),children:[o,h&&e.jsx("div",{className:N(ee.label,y&&ee.strong,g,!C&&ee.withColon),children:h}),e.jsx("div",{className:N(ee.value,x&&ee.strong,S.valueType==="text"&&ee.textType,_),children:L}),f&&e.jsx("div",{className:N(ee.description,w&&ee.strong,b),children:f})]})}const Ma="_pie-chart_pyr7m_1",Ia="_legend_pyr7m_7",Da="_legend-item_pyr7m_13",pe={pieChart:Ma,legend:Ia,legendItem:Da},Ea=70,Ta=40;function Xe(m,a=1){return Math.round(m*10**a)/10**a}function Je(m,a){const h=(a-90)*Math.PI/180;return{x:Xe(m+m*Math.cos(h)),y:Xe(m+m*Math.sin(h))}}function ka(m,a,h){let o=h;const f=o-a===360;f&&(o-=1);const g=Je(m,a),b=Je(m,o),_=o-a<=180?0:1,y=["M",g.x,g.y,"A",m,m,0,_,1,b.x,b.y];return f?y.push("Z"):y.push("L",m,m,"L",g.x,g.y,"Z"),y.join(" ")}function xe(m){const{className:a,data:h,valueSelector:o,labelSelector:f,keySelector:g,colorSelector:b,colors:_,pieRadius:y=Ea,chartPadding:x=Ta,legendClassName:w,showPercentageInLegend:C}=m,j=Ct(h?.map(p=>o(p))),v=q(j)||j===0?1:j,S=n.useMemo(()=>{let p=0;const L=h?.map(I=>{const R=o(I);if(q(R))return;const k=360*(R/v);return p+=k,{key:g(I),value:R,label:f(I),startAngle:p-k,percentage:yt(R,v),endAngle:p,datum:I}}).filter(re)??[];return b?L.map(({datum:I,...R})=>({...R,color:b(I)})):L.map(({datum:I,...R},k)=>({...R,color:_[k%_.length]}))},[h,g,o,f,v,b,_]);return e.jsxs("div",{className:N(pe.pieChart,a),children:[e.jsx("svg",{className:pe.svg,style:{width:`${x+y*2}px`,height:`${x+y*2}px`},children:e.jsx("g",{style:{transform:`translate(${x/2}px, ${x/2}px)`},children:S.map(p=>e.jsx("path",{className:pe.path,d:ka(y,p.startAngle,p.endAngle),fill:p.color,children:e.jsx(Ht,{description:e.jsx(Ke,{label:p.label,value:p.value})})},p.key))})}),e.jsx("div",{className:N(pe.legend,w),children:S.map(p=>e.jsx(_a,{className:pe.legendItem,label:C?e.jsx(Ke,{label:p.label,value:p.percentage,valueType:"number",prefix:"(",suffix:"%)",withoutLabelColon:!0}):p.label,color:p.color},p.key))})]})}const La="_td_1k4cn_1",Pa={td:La};function Ra(m){const{className:a,children:h,...o}=m;return e.jsx("td",{className:N(a,Pa.td),...o,children:h})}function it(m){const{className:a,children:h,...o}=m;return e.jsx("tr",{className:a,...o,children:h})}const $a="_row_1829z_1",Ba="_cell_1829z_2",et={row:$a,cell:Ba};function Aa(m){const{data:a,keySelector:h,columns:o,rowClassName:f,cellClassName:g,rowModifier:b}=m;return e.jsx(e.Fragment,{children:a?.map((_,y)=>{const x=h(_,y),w=o.map(v=>{const{id:S,cellRenderer:p,cellRendererClassName:L,cellRendererParams:I,cellContainerClassName:R}=v,k=I(x,_,y,a),G=e.jsx(p,{className:L,...k,name:S});return e.jsx(Ra,{className:N(et.cell,R,typeof g=="function"?g(x,_,S):g),children:G},S)}),C=e.jsx(it,{className:N(et.row,typeof f=="function"?f(x,_):f),children:w});let j=C;return b&&(j=b({rowKey:x,row:C,cells:w,columns:o,datum:_})),e.jsx(n.Fragment,{children:j},x)})})}const Fa="_th_cdv41_1",Oa="_resize-handle_cdv41_8",tt={th:Fa,resizeHandle:Oa};function Ha(m){const{className:a,children:h,onResize:o,onResizeComplete:f,name:g,...b}=m,_=n.useRef(null),y=n.useRef(),x=n.useRef(),w=n.useRef(),C=n.useCallback(v=>{var S;if(re(y.current)&&_.current&&o){v.preventDefault(),v.stopPropagation();const p=v.clientX-y.current;if(re(x.current)){const L=x.current+p;w.current=L,o(L,g)}else x.current=(S=_.current)==null?void 0:S.offsetWidth}},[o,g]),j=n.useCallback(v=>{var S;v.preventDefault(),y.current=v.clientX,x.current=(S=_.current)==null?void 0:S.offsetWidth,window.addEventListener("mousemove",C,!0)},[C]);return n.useEffect(()=>{const v=()=>{y.current=void 0,x.current=void 0,f&&re(w.current)&&f(w.current,g),window.removeEventListener("mousemove",C,!0)};return window.addEventListener("mouseup",v,!0),()=>{window.removeEventListener("mouseup",v,!0),window.removeEventListener("mousemove",C,!0)}},[C,g,f]),e.jsxs("th",{ref:_,className:N(a,tt.th),...b,children:[o&&e.jsx("div",{role:"presentation",className:tt.resizeHandle,onMouseDown:j}),h]})}const Va="_table_nilhy_1",za="_table-overflow-wrapper_nilhy_8",Ua="_table-element_nilhy_13",Wa="_header-row_nilhy_23",Qa="_header-element_nilhy_24",Za="_header-component_nilhy_29",ce={table:Va,tableOverflowWrapper:za,tableElement:Ua,headerRow:Wa,headerElement:Qa,headerComponent:Za};function qa(m,a){return a??m.columnWidth??wt}function A(m){const{data:a,keySelector:h,columns:o,caption:f,className:g,captionClassName:b,headerRowClassName:_,headerCellClassName:y,rowClassName:x,cellClassName:w,rowModifier:C,fixedColumnWidth:j,resizableColumn:v,headersHidden:S,pending:p,filtered:L,errored:I=!1}=m,R=n.useRef(null),[k]=he.useState(()=>bt()),[G,U]=he.useState({});n.useEffect(()=>{U(W=>{if(q(R.current))return W;const T=R.current.getBoundingClientRect(),{width:O}=T;let F=o.map(M=>({id:M.id,stretch:!!M.columnStretch,width:qa(M,W[M.id])}));const X=ye(F.filter(M=>M.stretch).map(M=>M.width)),ne=ye(F.filter(M=>!M.stretch).map(M=>M.width)),Y=(O-ne)/X;return Y>1&&(F=F.map(M=>({...M,width:M.stretch?M.width*Y:M.width}))),jt(F,M=>M.id,M=>M.width)})},[o]);const ie=he.useCallback((W,T)=>{const O=document.getElementById(`${k}-${T}`),F=Math.max(W,80);if(q(O)||(O.style.width=`${F}px`,!j))return;const X=document.getElementById(k);if(q(X))return;const ne=ye(o.map(Y=>Y.id===T?F:G[Y.id]));X.style.width=`${ne}px`},[k,G,o,j]),ae=he.useCallback((W,T)=>{re(T)&&U(O=>({...O,[T]:Math.max(W,80)}))},[U]),be=he.useMemo(()=>ye(o.map(W=>G[W.id])),[G,o]),K=q(a)||a.length===0||Object.keys(G).length===0;return e.jsxs("div",{ref:R,className:N(ce.table,g),children:[!K&&e.jsx("div",{className:ce.tableOverflowWrapper,children:e.jsxs("table",{className:ce.tableElement,style:j?{width:`${be}px`}:void 0,id:k,children:[f&&e.jsx("caption",{className:b,children:f}),e.jsx("colgroup",{children:o.map(W=>{const{id:T,columnClassName:O}=W,F=G[T],X=j?{width:`${F}px`}:void 0;return e.jsx("col",{id:`${k}-${T}`,style:X,className:N(ce.column,O)},T)})}),!S&&e.jsx("thead",{children:e.jsx(it,{className:N(ce.headerRow,_),children:o.map((W,T)=>{const{id:O,title:F,headerCellRenderer:X,headerCellRendererClassName:ne,headerCellRendererParams:Y,headerContainerClassName:M}=W,se=e.jsx(X,{...Y,name:O,title:F,index:T,className:N(ne,ce.headerComponent)});return e.jsx(Ha,{scope:"col",name:O,onResize:v?ie:void 0,onResizeComplete:v?ae:void 0,className:N(ce.headerElement,typeof y=="function"?y(O):y,M),children:se},O)})})}),e.jsx("tbody",{children:e.jsx(Aa,{data:a,keySelector:h,columns:o,rowClassName:x,cellClassName:w,rowModifier:C})})]})}),e.jsx(Nt,{filtered:L,empty:K,errored:I,pending:p,overlayPending:!0})]})}function Ga(m){const{className:a,value:h}=m;return q(h)?null:e.jsx("div",{className:a,children:h})}const Ya="common",Ka={sortTableButtonTitle:"Sort Table"},Xa={namespace:Ya,strings:Ka},Ja="_header-cell_vn24d_1",en="_sort-button_vn24d_8",tn="_icon_vn24d_12",an="_info-popup-icon_vn24d_17",de={headerCell:Ja,sortButton:en,icon:tn,infoPopupIcon:an};function ot(m){const{className:a,titleClassName:h,title:o,name:f,sortable:g,defaultSortDirection:b="asc",infoTitle:_,infoDescription:y}=m,{sorting:x,setSorting:w}=n.useContext(St),C=rt(Xa),j=x?.name===f?x.direction:void 0,v=n.useRef(null),S=n.useCallback(()=>{if(q(w))return;let p;q(j)?p=b:j==="asc"?p="dsc":j==="dsc"&&(p="asc"),w(p?{name:f,direction:p}:void 0)},[f,w,j,b]);return e.jsxs("div",{ref:v,className:N(a,de.headerCell),children:[g&&e.jsxs(Z,{name:void 0,variant:"tertiary",onClick:S,title:C.sortTableButtonTitle,className:de.sortButton,children:[q(j)&&e.jsx(Rt,{className:de.icon}),j==="asc"&&e.jsx(Lt,{className:de.icon}),j==="dsc"&&e.jsx(kt,{className:de.icon})]}),e.jsx("div",{className:N(h,de.title),children:o}),_&&y&&e.jsx(ca,{className:de.infoPopupIcon,title:_,description:y})]})}const at={};function Q(m,a,h,o){return{id:m,title:a,columnClassName:o?.columnClassName,headerCellRenderer:ot,headerCellRendererClassName:o?.headerCellRendererClassName,headerContainerClassName:o?.headerContainerClassName,headerCellRendererParams:{sortable:o?.sortable,infoTitle:o?.headerInfoTitle,infoDescription:o?.headerInfoDescription},cellRendererClassName:o?.cellRendererClassName,cellContainerClassName:o?.cellContainerClassName,cellRenderer:Ga,cellRendererParams:(f,g)=>({value:h(g)||"--"}),valueSelector:h,valueComparator:(f,g)=>Mt(h(f),h(g)),columnWidth:o?.columnWidth,columnStretch:o?.columnStretch,columnStyle:o?.columnStyle}}function E(m,a,h,o){return{id:m,title:a,columnClassName:o?.columnClassName,headerCellRenderer:ot,headerCellRendererClassName:N(at.numberCellHeader,o?.headerCellRendererClassName),headerContainerClassName:o?.headerContainerClassName,headerCellRendererParams:{sortable:o?.sortable,infoTitle:o?.headerInfoTitle,infoDescription:o?.headerInfoDescription},cellRendererClassName:N(at.numberCell,o?.cellRendererClassName),cellContainerClassName:o?.cellContainerClassName,cellRenderer:we,cellRendererParams:(f,g)=>({value:h(g),suffix:o?.suffix,maximumFractionDigits:o?.maximumFractionDigits,invalidText:"--"}),valueSelector:h,valueComparator:(f,g)=>It(h(f),h(g)),columnWidth:o?.columnWidth,columnStretch:o?.columnStretch,columnStyle:o?.columnStyle}}const nn="_tabSelector_vlxoe_1",sn="_progressSection_vlxoe_14",rn="_progressLabel_vlxoe_20",on="_chartGrid_vlxoe_28",ln="_chartContainer_vlxoe_40",cn="_tableContainer_vlxoe_51",dn="_modelPerformance_vlxoe_59",un="_loadingContainer_vlxoe_67",mn="_errorContainer_vlxoe_77",hn="_userInteractionCards_vlxoe_96",gn="_userInteractionCard_vlxoe_96",fn="_userInteractionCardValue_vlxoe_116",vn="_userInteractionCardLabel_vlxoe_123",pn="_userInteractionCardButton_vlxoe_130",xn="_summaryStatsCards_vlxoe_148",_n="_summaryStatsCard_vlxoe_148",Cn="_summaryStatsCardValue_vlxoe_169",yn="_summaryStatsCardLabel_vlxoe_176",l={tabSelector:nn,progressSection:sn,progressLabel:rn,chartGrid:on,chartContainer:ln,tableContainer:cn,modelPerformance:dn,loadingContainer:un,errorContainer:mn,userInteractionCards:hn,userInteractionCard:gn,userInteractionCardValue:fn,userInteractionCardLabel:vn,userInteractionCardButton:pn,summaryStatsCards:xn,summaryStatsCard:_n,summaryStatsCardValue:Cn,summaryStatsCardLabel:yn};function jn(){const[m]=Dt(),[a,h]=n.useState(null),[o,f]=n.useState(!0),[g,b]=n.useState("crisis_maps"),[_,y]=n.useState([]),[x,w]=n.useState([]),[C,j]=n.useState([]),[v,S]=n.useState([]),[p,L]=n.useState(!1),[I,R]=n.useState(!1),[k,G]=n.useState(!1),[U,ie]=n.useState(!1),[ae,be]=n.useState(!1),[K,W]=n.useState(!1),T=t=>{L(t==="editTime"),R(t==="percentage"),G(t==="delete"),ie(t==="regions"),be(t==="sources"),W(t==="types")},O=[{key:"crisis_maps",label:"Crisis Maps"},{key:"drone_images",label:"Drone Images"}],F=n.useCallback((t,c)=>{if(!t||!c)return 0;const d=t.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(u=>u.length>0),r=c.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(u=>u.length>0);if(d.length===0&&r.length===0)return 1;if(d.length===0||r.length===0)return 0;const s=new Set(d),i=new Set(r),D=new Set([...s].filter(u=>i.has(u))),$=new Set([...s,...i]);return D.size/$.size},[]),X=n.useCallback(async()=>{f(!0);try{const c=await(await fetch("/api/images")).json(),d={},r=c.filter(u=>u.image_type==="crisis_map"),s=c.filter(u=>u.image_type==="drone_image"),i={totalCaptions:c.length,sources:{},types:{},regions:{},models:{},modelEditTimes:d,percentageModified:0,modelPercentageData:{},totalDeleteCount:0,deleteRate:0,crisisMaps:r,droneImages:s};c.forEach(u=>{if(u.source&&(i.sources[u.source]=(i.sources[u.source]||0)+1),u.event_type&&(i.types[u.event_type]=(i.types[u.event_type]||0)+1),u.countries&&u.countries.forEach(P=>{P.r_code&&(i.regions[P.r_code]=(i.regions[P.r_code]||0)+1)}),u.model){const P=u.model,V=i.models[P]||={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0};if(V.count++,u.accuracy!=null&&(V.avgAccuracy+=u.accuracy),u.context!=null&&(V.avgContext+=u.context),u.usability!=null&&(V.avgUsability+=u.usability),u.created_at&&u.updated_at){const te=new Date(u.created_at).getTime(),Ce=new Date(u.updated_at).getTime()-te;Ce>0&&(d[P]||(d[P]=[]),d[P].push(Ce))}}}),_.forEach(u=>{u.s_code&&!i.sources[u.s_code]&&(i.sources[u.s_code]=0)}),x.forEach(u=>{u.t_code&&!i.types[u.t_code]&&(i.types[u.t_code]=0)}),C.forEach(u=>{u.r_code&&!i.regions[u.r_code]&&(i.regions[u.r_code]=0)}),["GPT-4","Claude","Gemini","Llama","Other"].forEach(u=>{i.models[u]||(i.models[u]={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0})}),Object.values(i.models).forEach(u=>{u.count>0&&(u.avgAccuracy=Math.round(u.avgAccuracy/u.count),u.avgContext=Math.round(u.avgContext/u.count),u.avgUsability=Math.round(u.avgUsability/u.count),u.totalScore=Math.round((u.avgAccuracy+u.avgContext+u.avgUsability)/3))});const $=c.filter(u=>u.generated&&u.edited);if($.length>0){const P=[...$.map(oe=>F(oe.generated,oe.edited))].sort((oe,Ce)=>oe-Ce),V=Math.floor(P.length/2),te=P.length%2===0?(P[V-1]+P[V])/2:P[V];i.percentageModified=Math.round((1-te)*100)}const H={};c.forEach(u=>{if(u.model&&u.generated&&u.edited){const P=F(u.generated,u.edited),V=Math.round((1-P)*100);H[u.model]||(H[u.model]=[]),H[u.model].push(V)}}),i.modelPercentageData=H;try{const u=await fetch("/api/models");if(u.ok){const P=await u.json();if(P.models){P.models.forEach(te=>{i.models[te.m_code]&&(i.models[te.m_code].deleteCount=te.delete_count||0)});const V=P.models.reduce((te,oe)=>te+(oe.delete_count||0),0);i.totalDeleteCount=V,i.deleteRate=V>0?Math.round(V/(V+c.length)*100):0}}}catch(u){console.log("Could not fetch model delete counts:",u)}h(i)}catch{h(null)}finally{f(!1)}},[_,x,C,F]),ne=n.useCallback(async()=>{try{const[t,c,d,r]=await Promise.all([fetch("/api/sources"),fetch("/api/types"),fetch("/api/regions"),fetch("/api/models")]),s=await t.json(),i=await c.json(),D=await d.json(),$=await r.json();y(s),w(i),j(D),S($.models||[])}catch(t){console.log("Could not fetch lookup data:",t)}},[]);n.useEffect(()=>{const t=m.get("view");(t==="crisis_maps"||t==="drone_images")&&b(t)},[m]),n.useEffect(()=>{ne()},[ne]),n.useEffect(()=>{_.length>0&&x.length>0&&C.length>0&&v.length>0&&X()},[_,x,C,v,X]);const Y=n.useCallback(t=>{const c=_.find(d=>d.s_code===t);return c?c.label:t},[_]),M=n.useCallback(t=>{if(t.length===0)return 0;const c=[...t].sort((r,s)=>r-s),d=Math.floor(c.length/2);return c.length%2===0?Math.round((c[d-1]+c[d])/2):c[d]},[]),se=n.useCallback(t=>{const c=Math.floor(t/1e3),d=Math.floor(c/60),r=Math.floor(d/60);return r>0?`${r}h ${d%60}m`:d>0?`${d}m ${c%60}s`:`${c}s`},[]),_e=n.useCallback(t=>{const c=x.find(d=>d.t_code===t);return c?c.label:t},[x]),J=n.useCallback(t=>{const c=v.find(d=>d.m_code===t);return c?c.label:t},[v]),Se=n.useMemo(()=>a?Object.entries(a.modelEditTimes||{}).filter(([,t])=>t.length>0).sort(([,t],[,c])=>M(c)-M(t)).map(([t,c],d)=>({id:d+1,name:J(t),count:c.length,avgEditTime:M(c),minEditTime:Math.min(...c),maxEditTime:Math.max(...c)})):[],[a,M,J]),Me=n.useMemo(()=>a?Object.entries(a.modelPercentageData||{}).filter(([,t])=>t.length>0).sort(([,t],[,c])=>{const d=[...t].sort((H,u)=>H-u),r=[...c].sort((H,u)=>H-u),s=Math.floor(d.length/2),i=Math.floor(r.length/2),D=d.length%2===0?(d[s-1]+d[s])/2:d[s];return(r.length%2===0?(r[i-1]+r[i])/2:r[i])-D}).map(([t,c],d)=>{const r=[...c].sort((D,$)=>D-$),s=Math.floor(r.length/2),i=r.length%2===0?Math.round((r[s-1]+r[s])/2):r[s];return{id:d+1,name:J(t),count:c.length,avgPercentageModified:i,minPercentageModified:Math.min(...c),maxPercentageModified:Math.max(...c)}}):[],[a,J]),Ie=n.useMemo(()=>a?Object.entries(a.models).filter(([t,c])=>c.count>0&&t!=="manual").map(([t,c],d)=>{const r=[c.avgAccuracy,c.avgContext,c.avgUsability],s=r.reduce(($,H)=>$+H,0)/r.length,i=r.reduce(($,H)=>$+Math.pow(H-s,2),0)/r.length,D=Math.round(100-Math.sqrt(i));return{id:d+1,name:J(t),consistency:Math.max(0,D),avgScore:Math.round(s),count:c.count}}).sort((t,c)=>c.consistency-t.consistency):[],[a,J]),De=n.useMemo(()=>[Q("name","Region",t=>t.name),E("count","Count",t=>t.count),E("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),Ee=n.useMemo(()=>[Q("name","Type",t=>t.name),E("count","Count",t=>t.count),E("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),lt=n.useMemo(()=>[Q("name","Source",t=>t.name),E("count","Count",t=>t.count),E("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),Te=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Count",t=>t.count),E("accuracy","Accuracy",t=>t.accuracy,{suffix:"%",maximumFractionDigits:0}),E("context","Context",t=>t.context,{suffix:"%",maximumFractionDigits:0}),E("usability","Usability",t=>t.usability,{suffix:"%",maximumFractionDigits:0}),E("totalScore","Total Score",t=>t.totalScore,{suffix:"%",maximumFractionDigits:0})],[]),ke=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Count",t=>t.count),Q("avgEditTime","Median Edit Time",t=>se(t.avgEditTime)),Q("minEditTime","Min Edit Time",t=>se(t.minEditTime)),Q("maxEditTime","Max Edit Time",t=>se(t.maxEditTime))],[se]),Le=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Count",t=>t.count),E("avgPercentageModified","Median % Modified",t=>t.avgPercentageModified,{suffix:"%",maximumFractionDigits:0}),E("minPercentageModified","Min % Modified",t=>t.minPercentageModified,{suffix:"%",maximumFractionDigits:0}),E("maxPercentageModified","Max % Modified",t=>t.maxPercentageModified,{suffix:"%",maximumFractionDigits:0})],[]),Pe=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Total Count",t=>t.count),E("deleteCount","Delete Count",t=>t.deleteCount),E("deleteRate","Delete Rate",t=>t.deleteRate,{suffix:"%",maximumFractionDigits:1})],[]),ct=n.useMemo(()=>[Q("source","Source",t=>t.source),E("avgQuality","Average Quality",t=>t.avgQuality,{suffix:"%",maximumFractionDigits:0}),E("count","Count",t=>t.count)],[]),Re=n.useMemo(()=>[Q("eventType","Event Type",t=>t.eventType),E("avgQuality","Average Quality",t=>t.avgQuality,{suffix:"%",maximumFractionDigits:0}),E("count","Count",t=>t.count)],[]),$e=n.useMemo(()=>[Q("name","Model",t=>t.name),E("consistency","Consistency",t=>t.consistency,{suffix:"%",maximumFractionDigits:0}),E("avgScore","Average Score",t=>t.avgScore,{suffix:"%",maximumFractionDigits:0}),E("count","Count",t=>t.count)],[]),ue=n.useCallback(t=>a?t==="crisis_map"?a.crisisMaps.length:t==="drone_image"?a.droneImages.length:0:0,[a]),Be=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.countries&&r.countries.forEach(s=>{s.r_code&&(d[s.r_code]=(d[s.r_code]||0)+1)})}),Object.entries(d).filter(([,r])=>r>0).map(([r,s])=>({name:C.find(i=>i.r_code===r)?.label||r,value:s}))},[a,C]),Ae=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};c.forEach(s=>{s.countries&&s.countries.forEach(i=>{i.r_code&&(d[i.r_code]=(d[i.r_code]||0)+1)})});const r=C.reduce((s,i)=>(i.r_code&&(s[i.r_code]={name:i.label,count:d[i.r_code]||0}),s),{});return Object.entries(r).sort(([,s],[,i])=>i.count-s.count).map(([,{name:s,count:i}],D)=>({id:D+1,name:s,count:i,percentage:c.length>0?Math.round(i/c.length*100):0}))},[a,C]),dt=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.source&&(d[r.source]=(d[r.source]||0)+1)}),Object.entries(d).filter(([,r])=>r>0).map(([r,s])=>({name:_.find(i=>i.s_code===r)?.label||r,value:s}))},[a,_]),ut=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.source&&(d[r.source]=(d[r.source]||0)+1)}),Object.entries(d).sort(([,r],[,s])=>s-r).map(([r,s],i)=>({id:i+1,name:Y(r),count:s,percentage:c.length>0?Math.round(s/c.length*100):0}))},[a,Y]),Fe=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.event_type&&(d[r.event_type]=(d[r.event_type]||0)+1)}),Object.entries(d).filter(([,r])=>r>0).map(([r,s])=>({name:x.find(i=>i.t_code===r)?.label||r,value:s}))},[a,x]),Oe=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.event_type&&(d[r.event_type]=(d[r.event_type]||0)+1)}),Object.entries(d).sort(([,r],[,s])=>s-r).map(([r,s],i)=>({id:i+1,name:_e(r),count:s,percentage:c.length>0?Math.round(s/c.length*100):0}))},[a,_e]),He=n.useCallback(t=>{if(!a)return"No data available";const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d=new Set;c.forEach(i=>{i.model&&d.add(i.model)}),console.log(`Debug ${t}:`,{totalImages:c.length,usedModels:Array.from(d),availableEditTimes:Object.keys(a.modelEditTimes),modelEditTimesData:a.modelEditTimes});const s=Object.entries(a.modelEditTimes).filter(([i])=>d.has(i)).flatMap(([,i])=>i);return s.length===0?"No data available":se(M(s))},[a,se,M]),Ve=n.useCallback(()=>{if(!a)return"No data available";const t=a.totalCaptions||0,c=a.percentageModified||0;return t>0?Math.round(c/t*100):0},[a]),ze=n.useCallback(()=>a&&a.deleteRate>=0?`${a.deleteRate}%`:"No data available",[a]),Ue=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d=new Set;return c.forEach(s=>{s.model&&d.add(s.model)}),Se.filter(s=>{const i=v.find(D=>D.label===s.name)?.m_code;return i&&d.has(i)})},[a,Se,v]),We=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d=new Set;return c.forEach(s=>{s.model&&d.add(s.model)}),Me.filter(s=>{const i=v.find(D=>D.label===s.name)?.m_code;return i&&d.has(i)})},[a,Me,v]),Qe=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.model&&(d[r.model]||(d[r.model]={count:0,deleteCount:0}),d[r.model].count++)}),Object.entries(d).map(([r,s],i)=>{const $=a.models?.[r]?.deleteCount||0,H=s.count>0?Math.round($/s.count*100*10)/10:0;return{id:i+1,name:J(r),count:s.count,deleteCount:$,deleteRate:H}}).sort((r,s)=>s.count-r.count)},[a,J]),Ze=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(s=>s.model!=="manual"),r={};return d.forEach(s=>{s.model&&(r[s.model]||(r[s.model]={count:0,totalAccuracy:0,totalContext:0,totalUsability:0}),r[s.model].count++,s.accuracy!=null&&(r[s.model].totalAccuracy+=s.accuracy),s.context!=null&&(r[s.model].totalContext+=s.context),s.usability!=null&&(r[s.model].totalUsability+=s.usability))}),Object.entries(r).map(([s,i],D)=>({id:D+1,name:J(s),count:i.count,accuracy:i.count>0?Math.round(i.totalAccuracy/i.count):0,context:i.count>0?Math.round(i.totalContext/i.count):0,usability:i.count>0?Math.round(i.totalUsability/i.count):0,totalScore:i.count>0?Math.round((i.totalAccuracy+i.totalContext+i.totalUsability)/(3*i.count)):0})).sort((s,i)=>i.totalScore-s.totalScore)},[a,J]),mt=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(s=>s.model!=="manual"),r={};return d.forEach(s=>{s.source&&(r[s.source]||(r[s.source]={total:0,count:0,totalImages:0}),r[s.source].totalImages+=1,s.accuracy!=null&&(r[s.source].total+=s.accuracy,r[s.source].count+=1))}),Object.entries(r).map(([s,i],D)=>({id:D+1,source:Y(s),avgQuality:i.count>0?Math.round(i.total/i.count):0,count:i.totalImages}))},[a,Y]),qe=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(s=>s.model!=="manual"),r={};return d.forEach(s=>{s.event_type&&(r[s.event_type]||(r[s.event_type]={total:0,count:0,totalImages:0}),r[s.event_type].totalImages+=1,s.accuracy!=null&&(r[s.event_type].total+=s.accuracy,r[s.event_type].count+=1))}),Object.entries(r).map(([s,i],D)=>({id:D+1,eventType:_e(s),avgQuality:i.count>0?Math.round(i.total/i.count):0,count:i.totalImages}))},[a,_e]),Ge=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(i=>i.model!=="manual"),r=new Set;return d.forEach(i=>{i.model&&r.add(i.model)}),Ie.filter(i=>{const D=v.find($=>$.label===i.name)?.m_code;return D&&D!=="manual"&&r.has(D)})},[a,Ie,v]);if(o)return e.jsx(je,{children:e.jsx("div",{className:l.loadingContainer,children:e.jsx(Et,{})})});if(!a)return e.jsx(je,{children:e.jsx("div",{className:l.errorContainer,children:e.jsx("div",{className:"text-red-500",children:"Failed to load analytics data. Please try again."})})});const me=["#F5333F","#F64752","#F75C65","#F87079","#F9858C","#FA999F","#FBADB2","#FCC2C5"];return e.jsx(je,{children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsx("div",{className:l.tabSelector,children:e.jsx(Tt,{name:"analytics-view",value:g,onChange:t=>{(t==="crisis_maps"||t==="drone_images")&&b(t)},options:O,keySelector:t=>t.key,labelSelector:t=>t.label})}),g==="crisis_maps"?e.jsxs("div",{className:l.chartGrid,children:[e.jsxs(z,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.summaryStatsCards,children:[e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:ue("crisis_map")}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Total Crisis Maps"})]}),e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:"2000"}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Target Amount"})]})]}),e.jsxs("div",{className:l.progressSection,children:[e.jsxs("div",{className:l.progressLabel,children:[e.jsx("span",{children:"Progress towards target"}),e.jsxs("span",{children:[Math.round(ue("crisis_map")/2e3*100),"%"]})]}),e.jsx(Ye,{value:ue("crisis_map"),totalValue:2e3})]})]}),e.jsxs(z,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Regions Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Be("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-regions-details",variant:U?"primary":"secondary",onClick:()=>T(U?"none":"regions"),className:l.userInteractionCardButton,children:U?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Sources Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:dt("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-sources-details",variant:ae?"primary":"secondary",onClick:()=>T(ae?"none":"sources"),className:l.userInteractionCardButton,children:ae?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Types Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Fe("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-types-details",variant:K?"primary":"secondary",onClick:()=>T(K?"none":"types"),className:l.userInteractionCardButton,children:K?"Hide Details":"View Details"})]})]}),U&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ae("crisis_map"),columns:De,keySelector:B,filtered:!1,pending:!1})}),ae&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:ut("crisis_map"),columns:lt,keySelector:B,filtered:!1,pending:!1})}),K&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Oe("crisis_map"),columns:Ee,keySelector:B,filtered:!1,pending:!1})})]}),e.jsxs(z,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:He("crisis_map")}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median Edit Time"}),e.jsx(Z,{name:"view-edit-time-details",variant:p?"primary":"secondary",onClick:()=>T(p?"none":"editTime"),className:l.userInteractionCardButton,children:p?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:Ve()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median % Modified"}),e.jsx(Z,{name:"view-percentage-details",variant:I?"primary":"secondary",onClick:()=>T(I?"none":"percentage"),className:l.userInteractionCardButton,children:I?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:ze()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Delete Rate"}),e.jsx(Z,{name:"view-delete-details",variant:k?"primary":"secondary",onClick:()=>T(k?"none":"delete"),className:l.userInteractionCardButton,children:k?"Hide Details":"View Details"})]})]}),p&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ue("crisis_map"),columns:ke,keySelector:B,filtered:!1,pending:!1})}),I&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:We("crisis_map"),columns:Le,keySelector:B,filtered:!1,pending:!1})}),k&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Qe("crisis_map"),columns:Pe,keySelector:B,filtered:!1,pending:!1})})]}),e.jsx(z,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ze("crisis_map"),columns:Te,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Source Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:mt("crisis_map"),columns:ct,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:qe("crisis_map"),columns:Re,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:Ge("crisis_map"),columns:$e,keySelector:B,filtered:!1,pending:!1})})})]}):e.jsxs("div",{className:l.chartGrid,children:[e.jsxs(z,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.summaryStatsCards,children:[e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:ue("drone_image")}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Total Drone Images"})]}),e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:"2000"}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Target Amount"})]})]}),e.jsxs("div",{className:l.progressSection,children:[e.jsxs("div",{className:l.progressLabel,children:[e.jsx("span",{children:"Progress towards target"}),e.jsxs("span",{children:[Math.round(ue("drone_image")/2e3*100),"%"]})]}),e.jsx(Ye,{value:ue("drone_image"),totalValue:2e3})]})]}),e.jsxs(z,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Regions Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Be("drone_image"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-regions-details",variant:U?"primary":"secondary",onClick:()=>T(U?"none":"regions"),className:l.userInteractionCardButton,children:U?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Types Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Fe("drone_image"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-types-details",variant:K?"primary":"secondary",onClick:()=>T(K?"none":"types"),className:l.userInteractionCardButton,children:K?"Hide Details":"View Details"})]})]}),U&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ae("drone_image"),columns:De,keySelector:B,filtered:!1,pending:!1})}),K&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Oe("drone_image"),columns:Ee,keySelector:B,filtered:!1,pending:!1})})]}),e.jsxs(z,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:He("drone_image")}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median Edit Time"}),e.jsx(Z,{name:"view-edit-time-details",variant:p?"primary":"secondary",onClick:()=>T(p?"none":"editTime"),className:l.userInteractionCardButton,children:p?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:Ve()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median % Modified"}),e.jsx(Z,{name:"view-percentage-details",variant:I?"primary":"secondary",onClick:()=>T(I?"none":"percentage"),className:l.userInteractionCardButton,children:I?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:ze()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Delete Rate"}),e.jsx(Z,{name:"view-delete-details",variant:k?"primary":"secondary",onClick:()=>T(k?"none":"delete"),className:l.userInteractionCardButton,children:k?"Hide Details":"View Details"})]})]}),p&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ue("drone_image"),columns:ke,keySelector:B,filtered:!1,pending:!1})}),I&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:We("drone_image"),columns:Le,keySelector:B,filtered:!1,pending:!1})}),k&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Qe("drone_image"),columns:Pe,keySelector:B,filtered:!1,pending:!1})})]}),e.jsx(z,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ze("drone_image"),columns:Te,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:qe("drone_image"),columns:Re,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:Ge("drone_image"),columns:$e,keySelector:B,filtered:!1,pending:!1})})})]})]})})}export{jn as default}; +import{r as n,y as nt,t as ht,a as q,c as gt,j as e,o as N,b as re,R as st,z,g as rt,d as ft,m as vt,e as pt,n as Z,A as xt,f as _t,h as Ct,i as yt,k as he,l as bt,p as ye,q as jt,s as Nt,E as wt,C as St,U as Mt,Q as It,u as Dt,N as je,_ as Et,L as Tt}from"./index-Dym8TuvV.js";const kt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("g",{clipPath:"url(#arrow-drop-down-line_svg__a)"},n.createElement("path",{d:"m12 15-4.243-4.243 1.415-1.414L12 12.172l2.828-2.83 1.415 1.415L12 15Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"arrow-drop-down-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"})))),Lt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("g",{clipPath:"url(#arrow-drop-up-line_svg__a)"},n.createElement("path",{d:"m12 11.828-2.828 2.829-1.415-1.414L12 9l4.243 4.243-1.415 1.414L12 11.828Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"arrow-drop-up-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"})))),Pt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("g",{clipPath:"url(#information-line_svg__a)"},n.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"information-line_svg__a"},n.createElement("path",{d:"M0 0h24v24H0z"})))),Rt=({title:m,titleId:a,...h})=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":a},h),m?n.createElement("title",{id:a},m):null,n.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"}),n.createElement("mask",{id:"table-sorting-line_svg__a",width:8,height:5,x:8,y:12,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},n.createElement("path",{fillRule:"evenodd",d:"m15.063 12 .937.938-4 4-4-4L8.938 12 12 15.063 15.063 12Z",clipRule:"evenodd"})),n.createElement("g",{mask:"url(#table-sorting-line_svg__a)"},n.createElement("path",{d:"M-24-22h72v72h-72z"})),n.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"}),n.createElement("mask",{id:"table-sorting-line_svg__b",width:8,height:5,x:8,y:6,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},n.createElement("path",{fillRule:"evenodd",d:"M8.938 11 8 10.062l4-4 4 4-.938.938L12 7.937 8.937 11Z",clipRule:"evenodd"})),n.createElement("g",{mask:"url(#table-sorting-line_svg__b)"},n.createElement("path",{d:"M48 45h-72v-72h72z"}))),$t="_number-output_1blvi_1",Bt={numberOutput:$t};function we(m){const{className:a,invalidText:h=nt,separatorHidden:o,compact:f,currency:g,value:b,tooltip:_,unit:y,prefix:x,suffix:w,maximumFractionDigits:C=1}=m,{currentLanguage:j}=n.useContext(ht),v=n.useMemo(()=>{if(q(b))return h;const S=gt(b,{currency:g,compact:f,separatorHidden:o,maximumFractionDigits:C,unit:y,language:j});return e.jsxs(e.Fragment,{children:[x,S,w]})},[h,b,f,o,g,y,C,x,j,w]);return e.jsx("div",{className:N(Bt.numberOutput,a),title:re(_)?String(_):void 0,children:v})}const At="_tooltip-dummy_rbf3f_1",Ft="_tooltip-content_rbf3f_7",Ot="_pointer_rbf3f_14",Ne={tooltipDummy:At,tooltipContent:Ft,pointer:Ot};function Ht(m){const{className:a,title:h,description:o,preferredWidth:f}=m,[g,b]=n.useState(!1),[_,y]=n.useState(!1),x=n.useRef(),w=n.useRef(null);return n.useEffect(()=>{const C=()=>{y(!0)},j=()=>{y(!1)};if(q(w.current))return;const{current:{parentNode:v}}=w;if(!q(v))return x.current=v,v.addEventListener("mouseover",C),v.addEventListener("mouseout",j),b(!0),()=>{v.removeEventListener("mouseover",C),v.removeEventListener("mouseout",j)}},[]),e.jsxs(e.Fragment,{children:[!g&&e.jsx("div",{className:Ne.tooltipDummy,ref:w}),_&&e.jsx(st,{className:N(Ne.tooltipContent,a),parentRef:x,pointerClassName:Ne.pointer,preferredWidth:f,children:e.jsx(z,{heading:h,withInternalPadding:!0,contentViewType:"vertical",children:o})})]})}function B(m){return m.id}const Vt="common",zt={booleanYesLabel:"Yes",booleanNoLabel:"No"},Ut={namespace:Vt,strings:zt},Wt="_boolean-output_kg1uq_1",Qt={booleanOutput:Wt};function Zt(m){const{className:a,invalidText:h,value:o}=m,f=rt(Ut);let g;return o===!0?g=f.booleanYesLabel:o===!1?g=f.booleanNoLabel:g=h,e.jsx("div",{className:N(Qt.booleanOutput,a),children:g})}const qt="_date-output_4jzjo_1",Gt={dateOutput:qt};function Yt(m){const{value:a,format:h,className:o,invalidText:f}=m,g=n.useMemo(()=>ft(a,h),[a,h]);return e.jsx("div",{className:N(Gt.dateOutput,o),children:g??f})}const Kt="_dropdown-menu_16hml_1",Xt="_icons_16hml_4",Jt="_content_16hml_5",ea="_actions_16hml_6",ta="_dropdown-icon_16hml_10",aa="_dropdown-content_16hml_16",le={dropdownMenu:Kt,icons:Xt,content:Jt,actions:ea,dropdownIcon:ta,dropdownContent:aa};function na(m){const a=n.useRef(null),{className:h,popupClassName:o,children:f,label:g,activeClassName:b,icons:_,variant:y="secondary",actions:x,withoutDropdownIcon:w,componentRef:C,elementRef:j=a,persistent:v,preferredPopupWidth:S}=m,p=n.useRef(null),[L,I]=n.useState(!1);n.useEffect(()=>{C&&(C.current={setShowDropdown:I})},[C,I]);const R=n.useCallback(()=>{I(ie=>!ie)},[I]),k=n.useCallback((ie,ae)=>{ae||ie&&v||I(!1)},[I,v]);vt(L,k,p,j);const G=n.useMemo(()=>({setShowDropdown:I}),[I]),U=!!x||!w;return e.jsxs(pt.Provider,{value:G,children:[e.jsx(Z,{name:void 0,className:N(le.dropdownMenu,L&&b,h),elementRef:j,onClick:R,variant:y,actionsContainerClassName:le.actions,iconsContainerClassName:le.icons,childrenContainerClassName:le.content,actions:U?e.jsxs(e.Fragment,{children:[x,!w&&(L?e.jsx(xt,{className:le.dropdownIcon}):e.jsx(_t,{className:le.dropdownIcon}))]}):void 0,icons:_,children:g}),L&&e.jsx(st,{elementRef:p,className:N(le.dropdownContent,o),parentRef:j,preferredWidth:S,children:f})]})}const sa="_info-popup_i3rna_1",ra="_label_i3rna_2",ia="_icon_i3rna_7",oa="_dropdown-container_i3rna_15",la="_content_i3rna_20",ge={infoPopup:sa,label:ra,icon:ia,dropdownContainer:oa,content:la};function ca(m){const{className:a,icon:h=e.jsx(Pt,{}),infoLabel:o,title:f,description:g,withoutIcon:b,popupClassName:_,descriptionClassName:y}=m;return e.jsx(na,{label:e.jsxs("div",{className:ge.label,children:[o,!b&&h&&e.jsx("div",{className:ge.icon,children:h})]}),popupClassName:N(ge.dropdownContainer,_),className:N(ge.infoPopup,a),variant:"tertiary",withoutDropdownIcon:!0,children:e.jsx(z,{heading:f,childrenContainerClassName:N(y,ge.content),withInternalPadding:!0,children:g})})}const da="_progress-wrapper_x340w_1",ua="_title_x340w_7",ma="_total_x340w_11",ha="_progress_x340w_1",fe={progressWrapper:da,title:ua,total:ma,progress:ha};function Ye(m){const{className:a,title:h,description:o,totalValue:f,value:g,showPercentageInTitle:b,children:_,color:y="var(--go-ui-color-primary-red)"}=m,x=re(g)?g:0,w=re(f)?f:0;let C;return w===0?C=0:C=x/w*100,e.jsxs("div",{className:N(fe.progressWrapper,a),children:[(h||b)&&e.jsxs("div",{className:fe.title,children:[h,b&&e.jsx(we,{value:C,suffix:"%"})]}),e.jsx("div",{className:fe.total,children:e.jsx("div",{className:fe.progress,style:{width:`${C}%`,backgroundColor:y}})}),o&&e.jsx("div",{className:fe.description,children:o}),_]})}const ga="_legend-element_1a9ic_1",fa="_color_1a9ic_7",va="_icon-container_1a9ic_14",pa="_icon_1a9ic_14",xa="_label_1a9ic_31",ve={legendElement:ga,color:fa,iconContainer:va,icon:pa,label:xa};function _a(m){const{className:a,colorClassName:h,iconClassName:o,color:f,label:g,iconSrc:b}=m;return e.jsxs("div",{className:N(ve.legendElement,a),children:[b?e.jsx("div",{style:{backgroundColor:f},className:ve.iconContainer,children:e.jsx("img",{className:N(ve.icon,o),src:b,alt:""})}):e.jsx("div",{style:{backgroundColor:f},className:N(ve.color,h)}),e.jsx("div",{className:ve.label,children:g})]})}const Ca="_text-output_10oza_1",ya="_with-background_10oza_6",ba="_label_10oza_11",ja="_with-colon_10oza_12",Na="_value_10oza_17",wa="_text-type_10oza_18",Sa="_strong_10oza_24",ee={textOutput:Ca,withBackground:ya,label:ba,withColon:ja,value:Na,textType:wa,strong:Sa};function Ke(m){const{className:a,label:h,icon:o,description:f,labelClassName:g,descriptionClassName:b,valueClassName:_,strongLabel:y,strongValue:x,strongDescription:w,withoutLabelColon:C,withBackground:j,invalidText:v=nt,...S}=m,{value:p}=m;let L=v;return S.valueType==="number"?L=e.jsx(we,{...S,invalidText:v}):S.valueType==="date"?L=e.jsx(Yt,{...S,invalidText:v}):S.valueType==="boolean"?L=e.jsx(Zt,{...S,invalidText:v}):p instanceof Date||(L=p||v),e.jsxs("div",{className:N(ee.textOutput,j&&ee.withBackground,a),children:[o,h&&e.jsx("div",{className:N(ee.label,y&&ee.strong,g,!C&&ee.withColon),children:h}),e.jsx("div",{className:N(ee.value,x&&ee.strong,S.valueType==="text"&&ee.textType,_),children:L}),f&&e.jsx("div",{className:N(ee.description,w&&ee.strong,b),children:f})]})}const Ma="_pie-chart_pyr7m_1",Ia="_legend_pyr7m_7",Da="_legend-item_pyr7m_13",pe={pieChart:Ma,legend:Ia,legendItem:Da},Ea=70,Ta=40;function Xe(m,a=1){return Math.round(m*10**a)/10**a}function Je(m,a){const h=(a-90)*Math.PI/180;return{x:Xe(m+m*Math.cos(h)),y:Xe(m+m*Math.sin(h))}}function ka(m,a,h){let o=h;const f=o-a===360;f&&(o-=1);const g=Je(m,a),b=Je(m,o),_=o-a<=180?0:1,y=["M",g.x,g.y,"A",m,m,0,_,1,b.x,b.y];return f?y.push("Z"):y.push("L",m,m,"L",g.x,g.y,"Z"),y.join(" ")}function xe(m){const{className:a,data:h,valueSelector:o,labelSelector:f,keySelector:g,colorSelector:b,colors:_,pieRadius:y=Ea,chartPadding:x=Ta,legendClassName:w,showPercentageInLegend:C}=m,j=Ct(h?.map(p=>o(p))),v=q(j)||j===0?1:j,S=n.useMemo(()=>{let p=0;const L=h?.map(I=>{const R=o(I);if(q(R))return;const k=360*(R/v);return p+=k,{key:g(I),value:R,label:f(I),startAngle:p-k,percentage:yt(R,v),endAngle:p,datum:I}}).filter(re)??[];return b?L.map(({datum:I,...R})=>({...R,color:b(I)})):L.map(({datum:I,...R},k)=>({...R,color:_[k%_.length]}))},[h,g,o,f,v,b,_]);return e.jsxs("div",{className:N(pe.pieChart,a),children:[e.jsx("svg",{className:pe.svg,style:{width:`${x+y*2}px`,height:`${x+y*2}px`},children:e.jsx("g",{style:{transform:`translate(${x/2}px, ${x/2}px)`},children:S.map(p=>e.jsx("path",{className:pe.path,d:ka(y,p.startAngle,p.endAngle),fill:p.color,children:e.jsx(Ht,{description:e.jsx(Ke,{label:p.label,value:p.value})})},p.key))})}),e.jsx("div",{className:N(pe.legend,w),children:S.map(p=>e.jsx(_a,{className:pe.legendItem,label:C?e.jsx(Ke,{label:p.label,value:p.percentage,valueType:"number",prefix:"(",suffix:"%)",withoutLabelColon:!0}):p.label,color:p.color},p.key))})]})}const La="_td_1k4cn_1",Pa={td:La};function Ra(m){const{className:a,children:h,...o}=m;return e.jsx("td",{className:N(a,Pa.td),...o,children:h})}function it(m){const{className:a,children:h,...o}=m;return e.jsx("tr",{className:a,...o,children:h})}const $a="_row_1829z_1",Ba="_cell_1829z_2",et={row:$a,cell:Ba};function Aa(m){const{data:a,keySelector:h,columns:o,rowClassName:f,cellClassName:g,rowModifier:b}=m;return e.jsx(e.Fragment,{children:a?.map((_,y)=>{const x=h(_,y),w=o.map(v=>{const{id:S,cellRenderer:p,cellRendererClassName:L,cellRendererParams:I,cellContainerClassName:R}=v,k=I(x,_,y,a),G=e.jsx(p,{className:L,...k,name:S});return e.jsx(Ra,{className:N(et.cell,R,typeof g=="function"?g(x,_,S):g),children:G},S)}),C=e.jsx(it,{className:N(et.row,typeof f=="function"?f(x,_):f),children:w});let j=C;return b&&(j=b({rowKey:x,row:C,cells:w,columns:o,datum:_})),e.jsx(n.Fragment,{children:j},x)})})}const Fa="_th_cdv41_1",Oa="_resize-handle_cdv41_8",tt={th:Fa,resizeHandle:Oa};function Ha(m){const{className:a,children:h,onResize:o,onResizeComplete:f,name:g,...b}=m,_=n.useRef(null),y=n.useRef(),x=n.useRef(),w=n.useRef(),C=n.useCallback(v=>{var S;if(re(y.current)&&_.current&&o){v.preventDefault(),v.stopPropagation();const p=v.clientX-y.current;if(re(x.current)){const L=x.current+p;w.current=L,o(L,g)}else x.current=(S=_.current)==null?void 0:S.offsetWidth}},[o,g]),j=n.useCallback(v=>{var S;v.preventDefault(),y.current=v.clientX,x.current=(S=_.current)==null?void 0:S.offsetWidth,window.addEventListener("mousemove",C,!0)},[C]);return n.useEffect(()=>{const v=()=>{y.current=void 0,x.current=void 0,f&&re(w.current)&&f(w.current,g),window.removeEventListener("mousemove",C,!0)};return window.addEventListener("mouseup",v,!0),()=>{window.removeEventListener("mouseup",v,!0),window.removeEventListener("mousemove",C,!0)}},[C,g,f]),e.jsxs("th",{ref:_,className:N(a,tt.th),...b,children:[o&&e.jsx("div",{role:"presentation",className:tt.resizeHandle,onMouseDown:j}),h]})}const Va="_table_nilhy_1",za="_table-overflow-wrapper_nilhy_8",Ua="_table-element_nilhy_13",Wa="_header-row_nilhy_23",Qa="_header-element_nilhy_24",Za="_header-component_nilhy_29",ce={table:Va,tableOverflowWrapper:za,tableElement:Ua,headerRow:Wa,headerElement:Qa,headerComponent:Za};function qa(m,a){return a??m.columnWidth??wt}function A(m){const{data:a,keySelector:h,columns:o,caption:f,className:g,captionClassName:b,headerRowClassName:_,headerCellClassName:y,rowClassName:x,cellClassName:w,rowModifier:C,fixedColumnWidth:j,resizableColumn:v,headersHidden:S,pending:p,filtered:L,errored:I=!1}=m,R=n.useRef(null),[k]=he.useState(()=>bt()),[G,U]=he.useState({});n.useEffect(()=>{U(W=>{if(q(R.current))return W;const T=R.current.getBoundingClientRect(),{width:O}=T;let F=o.map(M=>({id:M.id,stretch:!!M.columnStretch,width:qa(M,W[M.id])}));const X=ye(F.filter(M=>M.stretch).map(M=>M.width)),ne=ye(F.filter(M=>!M.stretch).map(M=>M.width)),Y=(O-ne)/X;return Y>1&&(F=F.map(M=>({...M,width:M.stretch?M.width*Y:M.width}))),jt(F,M=>M.id,M=>M.width)})},[o]);const ie=he.useCallback((W,T)=>{const O=document.getElementById(`${k}-${T}`),F=Math.max(W,80);if(q(O)||(O.style.width=`${F}px`,!j))return;const X=document.getElementById(k);if(q(X))return;const ne=ye(o.map(Y=>Y.id===T?F:G[Y.id]));X.style.width=`${ne}px`},[k,G,o,j]),ae=he.useCallback((W,T)=>{re(T)&&U(O=>({...O,[T]:Math.max(W,80)}))},[U]),be=he.useMemo(()=>ye(o.map(W=>G[W.id])),[G,o]),K=q(a)||a.length===0||Object.keys(G).length===0;return e.jsxs("div",{ref:R,className:N(ce.table,g),children:[!K&&e.jsx("div",{className:ce.tableOverflowWrapper,children:e.jsxs("table",{className:ce.tableElement,style:j?{width:`${be}px`}:void 0,id:k,children:[f&&e.jsx("caption",{className:b,children:f}),e.jsx("colgroup",{children:o.map(W=>{const{id:T,columnClassName:O}=W,F=G[T],X=j?{width:`${F}px`}:void 0;return e.jsx("col",{id:`${k}-${T}`,style:X,className:N(ce.column,O)},T)})}),!S&&e.jsx("thead",{children:e.jsx(it,{className:N(ce.headerRow,_),children:o.map((W,T)=>{const{id:O,title:F,headerCellRenderer:X,headerCellRendererClassName:ne,headerCellRendererParams:Y,headerContainerClassName:M}=W,se=e.jsx(X,{...Y,name:O,title:F,index:T,className:N(ne,ce.headerComponent)});return e.jsx(Ha,{scope:"col",name:O,onResize:v?ie:void 0,onResizeComplete:v?ae:void 0,className:N(ce.headerElement,typeof y=="function"?y(O):y,M),children:se},O)})})}),e.jsx("tbody",{children:e.jsx(Aa,{data:a,keySelector:h,columns:o,rowClassName:x,cellClassName:w,rowModifier:C})})]})}),e.jsx(Nt,{filtered:L,empty:K,errored:I,pending:p,overlayPending:!0})]})}function Ga(m){const{className:a,value:h}=m;return q(h)?null:e.jsx("div",{className:a,children:h})}const Ya="common",Ka={sortTableButtonTitle:"Sort Table"},Xa={namespace:Ya,strings:Ka},Ja="_header-cell_vn24d_1",en="_sort-button_vn24d_8",tn="_icon_vn24d_12",an="_info-popup-icon_vn24d_17",de={headerCell:Ja,sortButton:en,icon:tn,infoPopupIcon:an};function ot(m){const{className:a,titleClassName:h,title:o,name:f,sortable:g,defaultSortDirection:b="asc",infoTitle:_,infoDescription:y}=m,{sorting:x,setSorting:w}=n.useContext(St),C=rt(Xa),j=x?.name===f?x.direction:void 0,v=n.useRef(null),S=n.useCallback(()=>{if(q(w))return;let p;q(j)?p=b:j==="asc"?p="dsc":j==="dsc"&&(p="asc"),w(p?{name:f,direction:p}:void 0)},[f,w,j,b]);return e.jsxs("div",{ref:v,className:N(a,de.headerCell),children:[g&&e.jsxs(Z,{name:void 0,variant:"tertiary",onClick:S,title:C.sortTableButtonTitle,className:de.sortButton,children:[q(j)&&e.jsx(Rt,{className:de.icon}),j==="asc"&&e.jsx(Lt,{className:de.icon}),j==="dsc"&&e.jsx(kt,{className:de.icon})]}),e.jsx("div",{className:N(h,de.title),children:o}),_&&y&&e.jsx(ca,{className:de.infoPopupIcon,title:_,description:y})]})}const at={};function Q(m,a,h,o){return{id:m,title:a,columnClassName:o?.columnClassName,headerCellRenderer:ot,headerCellRendererClassName:o?.headerCellRendererClassName,headerContainerClassName:o?.headerContainerClassName,headerCellRendererParams:{sortable:o?.sortable,infoTitle:o?.headerInfoTitle,infoDescription:o?.headerInfoDescription},cellRendererClassName:o?.cellRendererClassName,cellContainerClassName:o?.cellContainerClassName,cellRenderer:Ga,cellRendererParams:(f,g)=>({value:h(g)||"--"}),valueSelector:h,valueComparator:(f,g)=>Mt(h(f),h(g)),columnWidth:o?.columnWidth,columnStretch:o?.columnStretch,columnStyle:o?.columnStyle}}function E(m,a,h,o){return{id:m,title:a,columnClassName:o?.columnClassName,headerCellRenderer:ot,headerCellRendererClassName:N(at.numberCellHeader,o?.headerCellRendererClassName),headerContainerClassName:o?.headerContainerClassName,headerCellRendererParams:{sortable:o?.sortable,infoTitle:o?.headerInfoTitle,infoDescription:o?.headerInfoDescription},cellRendererClassName:N(at.numberCell,o?.cellRendererClassName),cellContainerClassName:o?.cellContainerClassName,cellRenderer:we,cellRendererParams:(f,g)=>({value:h(g),suffix:o?.suffix,maximumFractionDigits:o?.maximumFractionDigits,invalidText:"--"}),valueSelector:h,valueComparator:(f,g)=>It(h(f),h(g)),columnWidth:o?.columnWidth,columnStretch:o?.columnStretch,columnStyle:o?.columnStyle}}const nn="_tabSelector_vlxoe_1",sn="_progressSection_vlxoe_14",rn="_progressLabel_vlxoe_20",on="_chartGrid_vlxoe_28",ln="_chartContainer_vlxoe_40",cn="_tableContainer_vlxoe_51",dn="_modelPerformance_vlxoe_59",un="_loadingContainer_vlxoe_67",mn="_errorContainer_vlxoe_77",hn="_userInteractionCards_vlxoe_96",gn="_userInteractionCard_vlxoe_96",fn="_userInteractionCardValue_vlxoe_116",vn="_userInteractionCardLabel_vlxoe_123",pn="_userInteractionCardButton_vlxoe_130",xn="_summaryStatsCards_vlxoe_148",_n="_summaryStatsCard_vlxoe_148",Cn="_summaryStatsCardValue_vlxoe_169",yn="_summaryStatsCardLabel_vlxoe_176",l={tabSelector:nn,progressSection:sn,progressLabel:rn,chartGrid:on,chartContainer:ln,tableContainer:cn,modelPerformance:dn,loadingContainer:un,errorContainer:mn,userInteractionCards:hn,userInteractionCard:gn,userInteractionCardValue:fn,userInteractionCardLabel:vn,userInteractionCardButton:pn,summaryStatsCards:xn,summaryStatsCard:_n,summaryStatsCardValue:Cn,summaryStatsCardLabel:yn};function jn(){const[m]=Dt(),[a,h]=n.useState(null),[o,f]=n.useState(!0),[g,b]=n.useState("crisis_maps"),[_,y]=n.useState([]),[x,w]=n.useState([]),[C,j]=n.useState([]),[v,S]=n.useState([]),[p,L]=n.useState(!1),[I,R]=n.useState(!1),[k,G]=n.useState(!1),[U,ie]=n.useState(!1),[ae,be]=n.useState(!1),[K,W]=n.useState(!1),T=t=>{L(t==="editTime"),R(t==="percentage"),G(t==="delete"),ie(t==="regions"),be(t==="sources"),W(t==="types")},O=[{key:"crisis_maps",label:"Crisis Maps"},{key:"drone_images",label:"Drone Images"}],F=n.useCallback((t,c)=>{if(!t||!c)return 0;const d=t.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(u=>u.length>0),r=c.toLowerCase().replace(/[^\w\s]/g,"").split(/\s+/).filter(u=>u.length>0);if(d.length===0&&r.length===0)return 1;if(d.length===0||r.length===0)return 0;const s=new Set(d),i=new Set(r),D=new Set([...s].filter(u=>i.has(u))),$=new Set([...s,...i]);return D.size/$.size},[]),X=n.useCallback(async()=>{f(!0);try{const c=await(await fetch("/api/images")).json(),d={},r=c.filter(u=>u.image_type==="crisis_map"),s=c.filter(u=>u.image_type==="drone_image"),i={totalCaptions:c.length,sources:{},types:{},regions:{},models:{},modelEditTimes:d,percentageModified:0,modelPercentageData:{},totalDeleteCount:0,deleteRate:0,crisisMaps:r,droneImages:s};c.forEach(u=>{if(u.source&&(i.sources[u.source]=(i.sources[u.source]||0)+1),u.event_type&&(i.types[u.event_type]=(i.types[u.event_type]||0)+1),u.countries&&u.countries.forEach(P=>{P.r_code&&(i.regions[P.r_code]=(i.regions[P.r_code]||0)+1)}),u.model){const P=u.model,V=i.models[P]||={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0};if(V.count++,u.accuracy!=null&&(V.avgAccuracy+=u.accuracy),u.context!=null&&(V.avgContext+=u.context),u.usability!=null&&(V.avgUsability+=u.usability),u.created_at&&u.updated_at){const te=new Date(u.created_at).getTime(),Ce=new Date(u.updated_at).getTime()-te;Ce>0&&(d[P]||(d[P]=[]),d[P].push(Ce))}}}),_.forEach(u=>{u.s_code&&!i.sources[u.s_code]&&(i.sources[u.s_code]=0)}),x.forEach(u=>{u.t_code&&!i.types[u.t_code]&&(i.types[u.t_code]=0)}),C.forEach(u=>{u.r_code&&!i.regions[u.r_code]&&(i.regions[u.r_code]=0)}),["GPT-4","Claude","Gemini","Llama","Other"].forEach(u=>{i.models[u]||(i.models[u]={count:0,avgAccuracy:0,avgContext:0,avgUsability:0,totalScore:0,deleteCount:0})}),Object.values(i.models).forEach(u=>{u.count>0&&(u.avgAccuracy=Math.round(u.avgAccuracy/u.count),u.avgContext=Math.round(u.avgContext/u.count),u.avgUsability=Math.round(u.avgUsability/u.count),u.totalScore=Math.round((u.avgAccuracy+u.avgContext+u.avgUsability)/3))});const $=c.filter(u=>u.generated&&u.edited);if($.length>0){const P=[...$.map(oe=>F(oe.generated,oe.edited))].sort((oe,Ce)=>oe-Ce),V=Math.floor(P.length/2),te=P.length%2===0?(P[V-1]+P[V])/2:P[V];i.percentageModified=Math.round((1-te)*100)}const H={};c.forEach(u=>{if(u.model&&u.generated&&u.edited){const P=F(u.generated,u.edited),V=Math.round((1-P)*100);H[u.model]||(H[u.model]=[]),H[u.model].push(V)}}),i.modelPercentageData=H;try{const u=await fetch("/api/models");if(u.ok){const P=await u.json();if(P.models){P.models.forEach(te=>{i.models[te.m_code]&&(i.models[te.m_code].deleteCount=te.delete_count||0)});const V=P.models.reduce((te,oe)=>te+(oe.delete_count||0),0);i.totalDeleteCount=V,i.deleteRate=V>0?Math.round(V/(V+c.length)*100):0}}}catch(u){console.log("Could not fetch model delete counts:",u)}h(i)}catch{h(null)}finally{f(!1)}},[_,x,C,F]),ne=n.useCallback(async()=>{try{const[t,c,d,r]=await Promise.all([fetch("/api/sources"),fetch("/api/types"),fetch("/api/regions"),fetch("/api/models")]),s=await t.json(),i=await c.json(),D=await d.json(),$=await r.json();y(s),w(i),j(D),S($.models||[])}catch(t){console.log("Could not fetch lookup data:",t)}},[]);n.useEffect(()=>{const t=m.get("view");(t==="crisis_maps"||t==="drone_images")&&b(t)},[m]),n.useEffect(()=>{ne()},[ne]),n.useEffect(()=>{_.length>0&&x.length>0&&C.length>0&&v.length>0&&X()},[_,x,C,v,X]);const Y=n.useCallback(t=>{const c=_.find(d=>d.s_code===t);return c?c.label:t},[_]),M=n.useCallback(t=>{if(t.length===0)return 0;const c=[...t].sort((r,s)=>r-s),d=Math.floor(c.length/2);return c.length%2===0?Math.round((c[d-1]+c[d])/2):c[d]},[]),se=n.useCallback(t=>{const c=Math.floor(t/1e3),d=Math.floor(c/60),r=Math.floor(d/60);return r>0?`${r}h ${d%60}m`:d>0?`${d}m ${c%60}s`:`${c}s`},[]),_e=n.useCallback(t=>{const c=x.find(d=>d.t_code===t);return c?c.label:t},[x]),J=n.useCallback(t=>{const c=v.find(d=>d.m_code===t);return c?c.label:t},[v]),Se=n.useMemo(()=>a?Object.entries(a.modelEditTimes||{}).filter(([,t])=>t.length>0).sort(([,t],[,c])=>M(c)-M(t)).map(([t,c],d)=>({id:d+1,name:J(t),count:c.length,avgEditTime:M(c),minEditTime:Math.min(...c),maxEditTime:Math.max(...c)})):[],[a,M,J]),Me=n.useMemo(()=>a?Object.entries(a.modelPercentageData||{}).filter(([,t])=>t.length>0).sort(([,t],[,c])=>{const d=[...t].sort((H,u)=>H-u),r=[...c].sort((H,u)=>H-u),s=Math.floor(d.length/2),i=Math.floor(r.length/2),D=d.length%2===0?(d[s-1]+d[s])/2:d[s];return(r.length%2===0?(r[i-1]+r[i])/2:r[i])-D}).map(([t,c],d)=>{const r=[...c].sort((D,$)=>D-$),s=Math.floor(r.length/2),i=r.length%2===0?Math.round((r[s-1]+r[s])/2):r[s];return{id:d+1,name:J(t),count:c.length,avgPercentageModified:i,minPercentageModified:Math.min(...c),maxPercentageModified:Math.max(...c)}}):[],[a,J]),Ie=n.useMemo(()=>a?Object.entries(a.models).filter(([t,c])=>c.count>0&&t!=="manual").map(([t,c],d)=>{const r=[c.avgAccuracy,c.avgContext,c.avgUsability],s=r.reduce(($,H)=>$+H,0)/r.length,i=r.reduce(($,H)=>$+Math.pow(H-s,2),0)/r.length,D=Math.round(100-Math.sqrt(i));return{id:d+1,name:J(t),consistency:Math.max(0,D),avgScore:Math.round(s),count:c.count}}).sort((t,c)=>c.consistency-t.consistency):[],[a,J]),De=n.useMemo(()=>[Q("name","Region",t=>t.name),E("count","Count",t=>t.count),E("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),Ee=n.useMemo(()=>[Q("name","Type",t=>t.name),E("count","Count",t=>t.count),E("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),lt=n.useMemo(()=>[Q("name","Source",t=>t.name),E("count","Count",t=>t.count),E("percentage","% of Total",t=>t.percentage,{suffix:"%",maximumFractionDigits:0})],[]),Te=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Count",t=>t.count),E("accuracy","Accuracy",t=>t.accuracy,{suffix:"%",maximumFractionDigits:0}),E("context","Context",t=>t.context,{suffix:"%",maximumFractionDigits:0}),E("usability","Usability",t=>t.usability,{suffix:"%",maximumFractionDigits:0}),E("totalScore","Total Score",t=>t.totalScore,{suffix:"%",maximumFractionDigits:0})],[]),ke=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Count",t=>t.count),Q("avgEditTime","Median Edit Time",t=>se(t.avgEditTime)),Q("minEditTime","Min Edit Time",t=>se(t.minEditTime)),Q("maxEditTime","Max Edit Time",t=>se(t.maxEditTime))],[se]),Le=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Count",t=>t.count),E("avgPercentageModified","Median % Modified",t=>t.avgPercentageModified,{suffix:"%",maximumFractionDigits:0}),E("minPercentageModified","Min % Modified",t=>t.minPercentageModified,{suffix:"%",maximumFractionDigits:0}),E("maxPercentageModified","Max % Modified",t=>t.maxPercentageModified,{suffix:"%",maximumFractionDigits:0})],[]),Pe=n.useMemo(()=>[Q("name","Model",t=>t.name),E("count","Total Count",t=>t.count),E("deleteCount","Delete Count",t=>t.deleteCount),E("deleteRate","Delete Rate",t=>t.deleteRate,{suffix:"%",maximumFractionDigits:1})],[]),ct=n.useMemo(()=>[Q("source","Source",t=>t.source),E("avgQuality","Average Quality",t=>t.avgQuality,{suffix:"%",maximumFractionDigits:0}),E("count","Count",t=>t.count)],[]),Re=n.useMemo(()=>[Q("eventType","Event Type",t=>t.eventType),E("avgQuality","Average Quality",t=>t.avgQuality,{suffix:"%",maximumFractionDigits:0}),E("count","Count",t=>t.count)],[]),$e=n.useMemo(()=>[Q("name","Model",t=>t.name),E("consistency","Consistency",t=>t.consistency,{suffix:"%",maximumFractionDigits:0}),E("avgScore","Average Score",t=>t.avgScore,{suffix:"%",maximumFractionDigits:0}),E("count","Count",t=>t.count)],[]),ue=n.useCallback(t=>a?t==="crisis_map"?a.crisisMaps.length:t==="drone_image"?a.droneImages.length:0:0,[a]),Be=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.countries&&r.countries.forEach(s=>{s.r_code&&(d[s.r_code]=(d[s.r_code]||0)+1)})}),Object.entries(d).filter(([,r])=>r>0).map(([r,s])=>({name:C.find(i=>i.r_code===r)?.label||r,value:s}))},[a,C]),Ae=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};c.forEach(s=>{s.countries&&s.countries.forEach(i=>{i.r_code&&(d[i.r_code]=(d[i.r_code]||0)+1)})});const r=C.reduce((s,i)=>(i.r_code&&(s[i.r_code]={name:i.label,count:d[i.r_code]||0}),s),{});return Object.entries(r).sort(([,s],[,i])=>i.count-s.count).map(([,{name:s,count:i}],D)=>({id:D+1,name:s,count:i,percentage:c.length>0?Math.round(i/c.length*100):0}))},[a,C]),dt=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.source&&(d[r.source]=(d[r.source]||0)+1)}),Object.entries(d).filter(([,r])=>r>0).map(([r,s])=>({name:_.find(i=>i.s_code===r)?.label||r,value:s}))},[a,_]),ut=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.source&&(d[r.source]=(d[r.source]||0)+1)}),Object.entries(d).sort(([,r],[,s])=>s-r).map(([r,s],i)=>({id:i+1,name:Y(r),count:s,percentage:c.length>0?Math.round(s/c.length*100):0}))},[a,Y]),Fe=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.event_type&&(d[r.event_type]=(d[r.event_type]||0)+1)}),Object.entries(d).filter(([,r])=>r>0).map(([r,s])=>({name:x.find(i=>i.t_code===r)?.label||r,value:s}))},[a,x]),Oe=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.event_type&&(d[r.event_type]=(d[r.event_type]||0)+1)}),Object.entries(d).sort(([,r],[,s])=>s-r).map(([r,s],i)=>({id:i+1,name:_e(r),count:s,percentage:c.length>0?Math.round(s/c.length*100):0}))},[a,_e]),He=n.useCallback(t=>{if(!a)return"No data available";const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d=new Set;c.forEach(i=>{i.model&&d.add(i.model)}),console.log(`Debug ${t}:`,{totalImages:c.length,usedModels:Array.from(d),availableEditTimes:Object.keys(a.modelEditTimes),modelEditTimesData:a.modelEditTimes});const s=Object.entries(a.modelEditTimes).filter(([i])=>d.has(i)).flatMap(([,i])=>i);return s.length===0?"No data available":se(M(s))},[a,se,M]),Ve=n.useCallback(()=>{if(!a)return"No data available";const t=a.totalCaptions||0,c=a.percentageModified||0;return t>0?Math.round(c/t*100):0},[a]),ze=n.useCallback(()=>a&&a.deleteRate>=0?`${a.deleteRate}%`:"No data available",[a]),Ue=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d=new Set;return c.forEach(s=>{s.model&&d.add(s.model)}),Se.filter(s=>{const i=v.find(D=>D.label===s.name)?.m_code;return i&&d.has(i)})},[a,Se,v]),We=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d=new Set;return c.forEach(s=>{s.model&&d.add(s.model)}),Me.filter(s=>{const i=v.find(D=>D.label===s.name)?.m_code;return i&&d.has(i)})},[a,Me,v]),Qe=n.useCallback(t=>{if(!a)return[];const c=t==="crisis_map"?a.crisisMaps:a.droneImages,d={};return c.forEach(r=>{r.model&&(d[r.model]||(d[r.model]={count:0,deleteCount:0}),d[r.model].count++)}),Object.entries(d).map(([r,s],i)=>{const $=a.models?.[r]?.deleteCount||0,H=s.count>0?Math.round($/s.count*100*10)/10:0;return{id:i+1,name:J(r),count:s.count,deleteCount:$,deleteRate:H}}).sort((r,s)=>s.count-r.count)},[a,J]),Ze=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(s=>s.model!=="manual"),r={};return d.forEach(s=>{s.model&&(r[s.model]||(r[s.model]={count:0,totalAccuracy:0,totalContext:0,totalUsability:0}),r[s.model].count++,s.accuracy!=null&&(r[s.model].totalAccuracy+=s.accuracy),s.context!=null&&(r[s.model].totalContext+=s.context),s.usability!=null&&(r[s.model].totalUsability+=s.usability))}),Object.entries(r).map(([s,i],D)=>({id:D+1,name:J(s),count:i.count,accuracy:i.count>0?Math.round(i.totalAccuracy/i.count):0,context:i.count>0?Math.round(i.totalContext/i.count):0,usability:i.count>0?Math.round(i.totalUsability/i.count):0,totalScore:i.count>0?Math.round((i.totalAccuracy+i.totalContext+i.totalUsability)/(3*i.count)):0})).sort((s,i)=>i.totalScore-s.totalScore)},[a,J]),mt=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(s=>s.model!=="manual"),r={};return d.forEach(s=>{s.source&&(r[s.source]||(r[s.source]={total:0,count:0,totalImages:0}),r[s.source].totalImages+=1,s.accuracy!=null&&(r[s.source].total+=s.accuracy,r[s.source].count+=1))}),Object.entries(r).map(([s,i],D)=>({id:D+1,source:Y(s),avgQuality:i.count>0?Math.round(i.total/i.count):0,count:i.totalImages}))},[a,Y]),qe=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(s=>s.model!=="manual"),r={};return d.forEach(s=>{s.event_type&&(r[s.event_type]||(r[s.event_type]={total:0,count:0,totalImages:0}),r[s.event_type].totalImages+=1,s.accuracy!=null&&(r[s.event_type].total+=s.accuracy,r[s.event_type].count+=1))}),Object.entries(r).map(([s,i],D)=>({id:D+1,eventType:_e(s),avgQuality:i.count>0?Math.round(i.total/i.count):0,count:i.totalImages}))},[a,_e]),Ge=n.useCallback(t=>{if(!a)return[];const d=(t==="crisis_map"?a.crisisMaps:a.droneImages).filter(i=>i.model!=="manual"),r=new Set;return d.forEach(i=>{i.model&&r.add(i.model)}),Ie.filter(i=>{const D=v.find($=>$.label===i.name)?.m_code;return D&&D!=="manual"&&r.has(D)})},[a,Ie,v]);if(o)return e.jsx(je,{children:e.jsx("div",{className:l.loadingContainer,children:e.jsx(Et,{})})});if(!a)return e.jsx(je,{children:e.jsx("div",{className:l.errorContainer,children:e.jsx("div",{className:"text-red-500",children:"Failed to load analytics data. Please try again."})})});const me=["#F5333F","#F64752","#F75C65","#F87079","#F9858C","#FA999F","#FBADB2","#FCC2C5"];return e.jsx(je,{children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsx("div",{className:l.tabSelector,children:e.jsx(Tt,{name:"analytics-view",value:g,onChange:t=>{(t==="crisis_maps"||t==="drone_images")&&b(t)},options:O,keySelector:t=>t.key,labelSelector:t=>t.label})}),g==="crisis_maps"?e.jsxs("div",{className:l.chartGrid,children:[e.jsxs(z,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.summaryStatsCards,children:[e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:ue("crisis_map")}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Total Crisis Maps"})]}),e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:"2000"}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Target Amount"})]})]}),e.jsxs("div",{className:l.progressSection,children:[e.jsxs("div",{className:l.progressLabel,children:[e.jsx("span",{children:"Progress towards target"}),e.jsxs("span",{children:[Math.round(ue("crisis_map")/2e3*100),"%"]})]}),e.jsx(Ye,{value:ue("crisis_map"),totalValue:2e3})]})]}),e.jsxs(z,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Regions Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Be("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-regions-details",variant:U?"primary":"secondary",onClick:()=>T(U?"none":"regions"),className:l.userInteractionCardButton,children:U?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Sources Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:dt("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-sources-details",variant:ae?"primary":"secondary",onClick:()=>T(ae?"none":"sources"),className:l.userInteractionCardButton,children:ae?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Types Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Fe("crisis_map"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-types-details",variant:K?"primary":"secondary",onClick:()=>T(K?"none":"types"),className:l.userInteractionCardButton,children:K?"Hide Details":"View Details"})]})]}),U&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ae("crisis_map"),columns:De,keySelector:B,filtered:!1,pending:!1})}),ae&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:ut("crisis_map"),columns:lt,keySelector:B,filtered:!1,pending:!1})}),K&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Oe("crisis_map"),columns:Ee,keySelector:B,filtered:!1,pending:!1})})]}),e.jsxs(z,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:He("crisis_map")}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median Edit Time"}),e.jsx(Z,{name:"view-edit-time-details",variant:p?"primary":"secondary",onClick:()=>T(p?"none":"editTime"),className:l.userInteractionCardButton,children:p?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:Ve()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median % Modified"}),e.jsx(Z,{name:"view-percentage-details",variant:I?"primary":"secondary",onClick:()=>T(I?"none":"percentage"),className:l.userInteractionCardButton,children:I?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:ze()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Delete Rate"}),e.jsx(Z,{name:"view-delete-details",variant:k?"primary":"secondary",onClick:()=>T(k?"none":"delete"),className:l.userInteractionCardButton,children:k?"Hide Details":"View Details"})]})]}),p&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ue("crisis_map"),columns:ke,keySelector:B,filtered:!1,pending:!1})}),I&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:We("crisis_map"),columns:Le,keySelector:B,filtered:!1,pending:!1})}),k&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Qe("crisis_map"),columns:Pe,keySelector:B,filtered:!1,pending:!1})})]}),e.jsx(z,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ze("crisis_map"),columns:Te,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Source Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:mt("crisis_map"),columns:ct,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:qe("crisis_map"),columns:Re,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:Ge("crisis_map"),columns:$e,keySelector:B,filtered:!1,pending:!1})})})]}):e.jsxs("div",{className:l.chartGrid,children:[e.jsxs(z,{heading:"Summary Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.summaryStatsCards,children:[e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:ue("drone_image")}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Total Drone Images"})]}),e.jsxs("div",{className:l.summaryStatsCard,children:[e.jsx("div",{className:l.summaryStatsCardValue,children:"2000"}),e.jsx("div",{className:l.summaryStatsCardLabel,children:"Target Amount"})]})]}),e.jsxs("div",{className:l.progressSection,children:[e.jsxs("div",{className:l.progressLabel,children:[e.jsx("span",{children:"Progress towards target"}),e.jsxs("span",{children:[Math.round(ue("drone_image")/2e3*100),"%"]})]}),e.jsx(Ye,{value:ue("drone_image"),totalValue:2e3})]})]}),e.jsxs(z,{heading:"Distribution Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Regions Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Be("drone_image"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-regions-details",variant:U?"primary":"secondary",onClick:()=>T(U?"none":"regions"),className:l.userInteractionCardButton,children:U?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardLabel,children:"Types Distribution"}),e.jsx("div",{className:l.chartContainer,children:e.jsx(xe,{data:Fe("drone_image"),valueSelector:t=>t.value,labelSelector:t=>t.name,keySelector:t=>t.name,colors:me,showPercentageInLegend:!0})}),e.jsx(Z,{name:"view-types-details",variant:K?"primary":"secondary",onClick:()=>T(K?"none":"types"),className:l.userInteractionCardButton,children:K?"Hide Details":"View Details"})]})]}),U&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ae("drone_image"),columns:De,keySelector:B,filtered:!1,pending:!1})}),K&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Oe("drone_image"),columns:Ee,keySelector:B,filtered:!1,pending:!1})})]}),e.jsxs(z,{heading:"User Interaction Statistics",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[e.jsxs("div",{className:l.userInteractionCards,children:[e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:He("drone_image")}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median Edit Time"}),e.jsx(Z,{name:"view-edit-time-details",variant:p?"primary":"secondary",onClick:()=>T(p?"none":"editTime"),className:l.userInteractionCardButton,children:p?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:Ve()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Median % Modified"}),e.jsx(Z,{name:"view-percentage-details",variant:I?"primary":"secondary",onClick:()=>T(I?"none":"percentage"),className:l.userInteractionCardButton,children:I?"Hide Details":"View Details"})]}),e.jsxs("div",{className:l.userInteractionCard,children:[e.jsx("div",{className:l.userInteractionCardValue,children:ze()}),e.jsx("div",{className:l.userInteractionCardLabel,children:"Delete Rate"}),e.jsx(Z,{name:"view-delete-details",variant:k?"primary":"secondary",onClick:()=>T(k?"none":"delete"),className:l.userInteractionCardButton,children:k?"Hide Details":"View Details"})]})]}),p&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ue("drone_image"),columns:ke,keySelector:B,filtered:!1,pending:!1})}),I&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:We("drone_image"),columns:Le,keySelector:B,filtered:!1,pending:!1})}),k&&e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Qe("drone_image"),columns:Pe,keySelector:B,filtered:!1,pending:!1})})]}),e.jsx(z,{heading:"Model Performance",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.modelPerformance,children:e.jsx(A,{data:Ze("drone_image"),columns:Te,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Quality-Event Type Correlation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:qe("drone_image"),columns:Re,keySelector:B,filtered:!1,pending:!1})})}),e.jsx(z,{heading:"Model Consistency Analysis",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:e.jsx("div",{className:l.tableContainer,children:e.jsx(A,{data:Ge("drone_image"),columns:$e,keySelector:B,filtered:!1,pending:!1})})})]})]})})}export{jn as default}; diff --git a/py_backend/static/assets/index-CcfIBRoF.js b/py_backend/static/assets/index-Dym8TuvV.js similarity index 70% rename from py_backend/static/assets/index-CcfIBRoF.js rename to py_backend/static/assets/index-Dym8TuvV.js index 833b861f..db96caf0 100644 --- a/py_backend/static/assets/index-CcfIBRoF.js +++ b/py_backend/static/assets/index-Dym8TuvV.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dz4vX1uX.js","assets/index-B1uKTNcW.css","assets/index-7oBZSGHr.js","assets/useAdmin-CrA3XozJ.js","assets/ExportModal-x1pUTnT7.js","assets/ExportModal-BoB3JpqO.css","assets/index-C85X4vtS.css","assets/AdminPage-C8Qwkg88.js","assets/AdminPage-VgSjQ50W.css","assets/index-Bx3ZvIBj.js","assets/index-tDgjKyWF.css"])))=>i.map(i=>d[i]); -function Jg(e,n){for(var i=0;io[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();var f4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ld={exports:{}},Za={},ud={exports:{}},Ge={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DRmfVC9B.js","assets/index-B1uKTNcW.css","assets/index-tBgmM5yL.js","assets/useAdmin-DnFl9FMw.js","assets/ExportModal-Bq4gp-iF.js","assets/ExportModal-BoB3JpqO.css","assets/index-C85X4vtS.css","assets/AdminPage-CwitwbVg.js","assets/AdminPage-VgSjQ50W.css","assets/index-HD7t9Ly0.js","assets/index-tDgjKyWF.css"])))=>i.map(i=>d[i]); +function Jg(e,n){for(var i=0;io[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=i(s);fetch(s.href,u)}})();var fL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ld={exports:{}},Za={},ud={exports:{}},We={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ function Jg(e,n){for(var i=0;i>>1,oe=Z[V];if(0>>1;Vs(re,j))tes(Q,re)?(Z[V]=Q,Z[te]=j,V=te):(Z[V]=re,Z[se]=j,V=se);else if(tes(Q,j))Z[V]=Q,Z[te]=j,V=te;else break e}}return le}function s(Z,le){var j=Z.sortIndex-le.sortIndex;return j!==0?j:Z.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var g=[],y=[],x=1,b=null,m=3,w=!1,N=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(Z){for(var le=i(y);le!==null;){if(le.callback===null)o(y);else if(le.startTime<=Z)o(y),le.sortIndex=le.expirationTime,n(g,le);else break;le=i(y)}}function F(Z){if(S=!1,$(Z),!N)if(i(g)!==null)N=!0,Ce(W);else{var le=i(y);le!==null&&_e(F,le.startTime-Z)}}function W(Z,le){N=!1,S&&(S=!1,T(K),K=-1),w=!0;var j=m;try{for($(le),b=i(g);b!==null&&(!(b.expirationTime>le)||Z&&!R());){var V=b.callback;if(typeof V=="function"){b.callback=null,m=b.priorityLevel;var oe=V(b.expirationTime<=le);le=e.unstable_now(),typeof oe=="function"?b.callback=oe:b===i(g)&&o(g),$(le)}else o(g);b=i(g)}if(b!==null)var Se=!0;else{var se=i(y);se!==null&&_e(F,se.startTime-le),Se=!1}return Se}finally{b=null,m=j,w=!1}}var de=!1,O=null,K=-1,ce=5,he=-1;function R(){return!(e.unstable_now()-heZ||125V?(Z.sortIndex=j,n(y,Z),i(g)===null&&Z===i(y)&&(S?(T(K),K=-1):S=!0,_e(F,j-V))):(Z.sortIndex=oe,n(g,Z),N||w||(N=!0,Ce(W))),Z},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(Z){var le=m;return function(){var j=m;m=le;try{return Z.apply(this,arguments)}finally{m=j}}}}(fd)),fd}var Em;function Q1(){return Em||(Em=1,dd.exports=Z1()),dd.exports}/** + */var _m;function Z1(){return _m||(_m=1,function(e){function n(Z,ue){var j=Z.length;Z.push(ue);e:for(;0>>1,ae=Z[V];if(0>>1;Vs(re,j))tes(Q,re)?(Z[V]=Q,Z[te]=j,V=te):(Z[V]=re,Z[le]=j,V=le);else if(tes(Q,j))Z[V]=Q,Z[te]=j,V=te;else break e}}return ue}function s(Z,ue){var j=Z.sortIndex-ue.sortIndex;return j!==0?j:Z.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var g=[],y=[],x=1,b=null,m=3,w=!1,N=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(Z){for(var ue=i(y);ue!==null;){if(ue.callback===null)o(y);else if(ue.startTime<=Z)o(y),ue.sortIndex=ue.expirationTime,n(g,ue);else break;ue=i(y)}}function F(Z){if(S=!1,$(Z),!N)if(i(g)!==null)N=!0,Ce(W);else{var ue=i(y);ue!==null&&Ee(F,ue.startTime-Z)}}function W(Z,ue){N=!1,S&&(S=!1,T(K),K=-1),w=!0;var j=m;try{for($(ue),b=i(g);b!==null&&(!(b.expirationTime>ue)||Z&&!R());){var V=b.callback;if(typeof V=="function"){b.callback=null,m=b.priorityLevel;var ae=V(b.expirationTime<=ue);ue=e.unstable_now(),typeof ae=="function"?b.callback=ae:b===i(g)&&o(g),$(ue)}else o(g);b=i(g)}if(b!==null)var Se=!0;else{var le=i(y);le!==null&&Ee(F,le.startTime-ue),Se=!1}return Se}finally{b=null,m=j,w=!1}}var fe=!1,O=null,K=-1,de=5,pe=-1;function R(){return!(e.unstable_now()-peZ||125V?(Z.sortIndex=j,n(y,Z),i(g)===null&&Z===i(y)&&(S?(T(K),K=-1):S=!0,Ee(F,j-V))):(Z.sortIndex=ae,n(g,Z),N||w||(N=!0,Ce(W))),Z},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(Z){var ue=m;return function(){var j=m;m=ue;try{return Z.apply(this,arguments)}finally{m=j}}}}(fd)),fd}var Em;function Q1(){return Em||(Em=1,dd.exports=Z1()),dd.exports}/** * @license React * react-dom.production.min.js * @@ -31,14 +31,14 @@ function Jg(e,n){for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},b={};function m(t){return g.call(b,t)?!0:g.call(x,t)?!1:y.test(t)?b[t]=!0:(x[t]=!0,!1)}function w(t,r,a,l){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function N(t,r,a,l){if(r===null||typeof r>"u"||w(t,r,a,l))return!0;if(l)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function S(t,r,a,l,c,p,C){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=a,this.propertyName=t,this.type=r,this.sanitizeURL=p,this.removeEmptyString=C}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];_[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){_[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_[t]=new S(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){_[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){_[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){_[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){_[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){_[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function M(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(T,M);_[r]=new S(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(T,M);_[r]=new S(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(T,M);_[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),_.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function $(t,r,a,l){var c=_.hasOwnProperty(r)?_[r]:null;(c!==null?c.type!==0:l||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},b={};function m(t){return g.call(b,t)?!0:g.call(x,t)?!1:y.test(t)?b[t]=!0:(x[t]=!0,!1)}function w(t,r,a,l){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function N(t,r,a,l){if(r===null||typeof r>"u"||w(t,r,a,l))return!0;if(l)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function S(t,r,a,l,c,p,C){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=a,this.propertyName=t,this.type=r,this.sanitizeURL=p,this.removeEmptyString=C}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];_[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){_[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_[t]=new S(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){_[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){_[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){_[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){_[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){_[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function M(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(T,M);_[r]=new S(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(T,M);_[r]=new S(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(T,M);_[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),_.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function $(t,r,a,l){var c=_.hasOwnProperty(r)?_[r]:null;(c!==null?c.type!==0:l||!(2E||c[C]!==p[E]){var L=` -`+c[C].replace(" at new "," at ");return t.displayName&&L.includes("")&&(L=L.replace("",t.displayName)),L}while(1<=C&&0<=E);break}}}finally{Se=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?oe(t):""}function re(t){switch(t.tag){case 5:return oe(t.type);case 16:return oe("Lazy");case 13:return oe("Suspense");case 19:return oe("SuspenseList");case 0:case 2:case 15:return t=se(t.type,!1),t;case 11:return t=se(t.type.render,!1),t;case 1:return t=se(t.type,!0),t;default:return""}}function te(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case de:return"Portal";case ce:return"Profiler";case K:return"StrictMode";case G:return"Suspense";case ee:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case he:return(t._context.displayName||"Context")+".Provider";case H:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case pe:return r=t.displayName||null,r!==null?r:te(t.type)||"Memo";case Ce:r=t._payload,t=t._init;try{return te(t(r))}catch{}}return null}function Q(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(r);case 8:return r===K?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Y(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Je(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function an(t){var r=Je(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,p=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(C){l=""+C,p.call(this,C)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ut(t){t._valueTracker||(t._valueTracker=an(t))}function ot(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),l="";return t&&(l=Je(t)?t.checked?"true":"false":t.value),t=l,t!==a?(r.setValue(t),!0):!1}function vt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function lt(t,r){var a=r.checked;return j({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function pt(t,r){var a=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;a=Y(r.value!=null?r.value:a),t._wrapperState={initialChecked:l,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function ct(t,r){r=r.checked,r!=null&&$(t,"checked",r,!1)}function dt(t,r){ct(t,r);var a=Y(r.value),l=r.type;if(a!=null)l==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?It(t,r.type,a):r.hasOwnProperty("defaultValue")&&It(t,r.type,Y(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function yt(t,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,a||r===t.value||(t.value=r),t.defaultValue=r}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function It(t,r,a){(r!=="number"||vt(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var sn=Array.isArray;function pn(t,r,a,l){if(t=t.options,r){r={};for(var c=0;c"+r.valueOf().toString()+"",r=Ht.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function Ct(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var wt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ln=["Webkit","ms","Moz","O"];Object.keys(wt).forEach(function(t){ln.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),wt[r]=wt[t]})});function Vt(t,r,a){return r==null||typeof r=="boolean"||r===""?"":a||typeof r!="number"||r===0||wt.hasOwnProperty(t)&&wt[t]?(""+r).trim():r+"px"}function yr(t,r){t=t.style;for(var a in r)if(r.hasOwnProperty(a)){var l=a.indexOf("--")===0,c=Vt(a,r[a],l);a==="float"&&(a="cssFloat"),l?t.setProperty(a,c):t[a]=c}}var Ri=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function si(t,r){if(r){if(Ri[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Ar(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $r=null;function Mn(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fr=null,un=null,Dn=null;function zr(t){if(t=Da(t)){if(typeof Fr!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Qs(r),Fr(t.stateNode,t.type,r))}}function wr(t){un?Dn?Dn.push(t):Dn=[t]:un=t}function Ai(){if(un){var t=un,r=Dn;if(Dn=un=null,zr(t),r)for(t=0;t>>=0,t===0?32:31-(br(t)/ci|0)|0}var Ur=64,Cr=4194304;function zi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function yo(t,r){var a=t.pendingLanes;if(a===0)return 0;var l=0,c=t.suspendedLanes,p=t.pingedLanes,C=a&268435455;if(C!==0){var E=C&~c;E!==0?l=zi(E):(p&=C,p!==0&&(l=zi(p)))}else C=a&~c,C!==0?l=zi(C):p!==0&&(l=zi(p));if(l===0)return 0;if(r!==0&&r!==l&&(r&c)===0&&(c=l&-l,p=r&-r,c>=p||c===16&&(p&4194240)!==0))return r;if((l&4)!==0&&(l|=a&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0a;a++)r.push(t);return r}function Bi(t,r,a){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-We(r),t[r]=a}function Au(t,r){var a=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0=_a),fh=" ",hh=!1;function ph(t,r){switch(t){case"keyup":return Fy.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Eo=!1;function By(t,r){switch(t){case"compositionend":return mh(r);case"keypress":return r.which!==32?null:(hh=!0,fh);case"textInput":return t=r.data,t===fh&&hh?null:t;default:return null}}function Uy(t,r){if(Eo)return t==="compositionend"||!Uu&&ph(t,r)?(t=me(),Le=Ee=ke=null,Eo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:a,offset:r-t};t=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ch(a)}}function _h(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?_h(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Eh(){for(var t=window,r=vt();r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=vt(t.document)}return r}function qu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Yy(t){var r=Eh(),a=t.focusedElem,l=t.selectionRange;if(r!==a&&a&&a.ownerDocument&&_h(a.ownerDocument.documentElement,a)){if(l!==null&&qu(a)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in a)a.selectionStart=r,a.selectionEnd=Math.min(t,a.value.length);else if(t=(r=a.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=a.textContent.length,p=Math.min(l.start,c);l=l.end===void 0?p:Math.min(l.end,c),!t.extend&&p>l&&(c=l,l=p,p=c),c=Sh(a,p);var C=Sh(a,l);c&&C&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==C.node||t.focusOffset!==C.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),p>l?(t.addRange(r),t.extend(C.node,C.offset)):(r.setEnd(C.node,C.offset),t.addRange(r)))}}for(r=[],t=a;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,No=null,Wu=null,ja=null,Gu=!1;function Nh(t,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Gu||No==null||No!==vt(l)||(l=No,"selectionStart"in l&&qu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ja&&ka(ja,l)||(ja=l,l=Ws(Wu,"onSelect"),0Lo||(t.current=oc[Lo],oc[Lo]=null,Lo--)}function ht(t,r){Lo++,oc[Lo]=t.current,t.current=r}var vi={},en=gi(vi),wn=gi(!1),Gi=vi;function Mo(t,r){var a=t.type.contextTypes;if(!a)return vi;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var c={},p;for(p in a)c[p]=r[p];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function xn(t){return t=t.childContextTypes,t!=null}function Ks(){gt(wn),gt(en)}function Bh(t,r,a){if(en.current!==vi)throw Error(i(168));ht(en,r),ht(wn,a)}function Uh(t,r,a){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return a;l=l.getChildContext();for(var c in l)if(!(c in r))throw Error(i(108,Q(t)||"Unknown",c));return j({},a,l)}function Ys(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||vi,Gi=en.current,ht(en,t),ht(wn,wn.current),!0}function Hh(t,r,a){var l=t.stateNode;if(!l)throw Error(i(169));a?(t=Uh(t,r,Gi),l.__reactInternalMemoizedMergedChildContext=t,gt(wn),gt(en),ht(en,t)):gt(wn),ht(wn,a)}var qr=null,Xs=!1,ac=!1;function Vh(t){qr===null?qr=[t]:qr.push(t)}function u1(t){Xs=!0,Vh(t)}function yi(){if(!ac&&qr!==null){ac=!0;var t=0,r=tt;try{var a=qr;for(tt=1;t>=C,c-=C,Wr=1<<32-We(r)+c|a<Ae?(Gt=Ie,Ie=null):Gt=Ie.sibling;var et=J(A,Ie,z[Ae],ae);if(et===null){Ie===null&&(Ie=Gt);break}t&&Ie&&et.alternate===null&&r(A,Ie),D=p(et,D,Ae),Oe===null?Pe=et:Oe.sibling=et,Oe=et,Ie=Gt}if(Ae===z.length)return a(A,Ie),xt&&Qi(A,Ae),Pe;if(Ie===null){for(;AeAe?(Gt=Ie,Ie=null):Gt=Ie.sibling;var ki=J(A,Ie,et.value,ae);if(ki===null){Ie===null&&(Ie=Gt);break}t&&Ie&&ki.alternate===null&&r(A,Ie),D=p(ki,D,Ae),Oe===null?Pe=ki:Oe.sibling=ki,Oe=ki,Ie=Gt}if(et.done)return a(A,Ie),xt&&Qi(A,Ae),Pe;if(Ie===null){for(;!et.done;Ae++,et=z.next())et=ie(A,et.value,ae),et!==null&&(D=p(et,D,Ae),Oe===null?Pe=et:Oe.sibling=et,Oe=et);return xt&&Qi(A,Ae),Pe}for(Ie=l(A,Ie);!et.done;Ae++,et=z.next())et=ge(Ie,A,Ae,et.value,ae),et!==null&&(t&&et.alternate!==null&&Ie.delete(et.key===null?Ae:et.key),D=p(et,D,Ae),Oe===null?Pe=et:Oe.sibling=et,Oe=et);return t&&Ie.forEach(function(H1){return r(A,H1)}),xt&&Qi(A,Ae),Pe}function Dt(A,D,z,ae){if(typeof z=="object"&&z!==null&&z.type===O&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case W:e:{for(var Pe=z.key,Oe=D;Oe!==null;){if(Oe.key===Pe){if(Pe=z.type,Pe===O){if(Oe.tag===7){a(A,Oe.sibling),D=c(Oe,z.props.children),D.return=A,A=D;break e}}else if(Oe.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===Ce&&ip(Pe)===Oe.type){a(A,Oe.sibling),D=c(Oe,z.props),D.ref=Oa(A,Oe,z),D.return=A,A=D;break e}a(A,Oe);break}else r(A,Oe);Oe=Oe.sibling}z.type===O?(D=ro(z.props.children,A.mode,ae,z.key),D.return=A,A=D):(ae=Nl(z.type,z.key,z.props,null,A.mode,ae),ae.ref=Oa(A,D,z),ae.return=A,A=ae)}return C(A);case de:e:{for(Oe=z.key;D!==null;){if(D.key===Oe)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){a(A,D.sibling),D=c(D,z.children||[]),D.return=A,A=D;break e}else{a(A,D);break}else r(A,D);D=D.sibling}D=rd(z,A.mode,ae),D.return=A,A=D}return C(A);case Ce:return Oe=z._init,Dt(A,D,Oe(z._payload),ae)}if(sn(z))return Ne(A,D,z,ae);if(le(z))return je(A,D,z,ae);sl(A,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,D!==null&&D.tag===6?(a(A,D.sibling),D=c(D,z),D.return=A,A=D):(a(A,D),D=nd(z,A.mode,ae),D.return=A,A=D),C(A)):a(A,D)}return Dt}var $o=op(!0),ap=op(!1),Ia={},kr=gi(Ia),Ra=gi(Ia),Aa=gi(Ia);function Yi(t){if(t===Ia)throw Error(i(174));return t}function xc(t,r){switch(ht(Aa,r),ht(Ra,t),ht(kr,Ia),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Yn(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Yn(r,t)}gt(kr),ht(kr,r)}function Fo(){gt(kr),gt(Ra),gt(Aa)}function sp(t){Yi(Aa.current);var r=Yi(kr.current),a=Yn(r,t.type);r!==a&&(ht(Ra,t),ht(kr,a))}function bc(t){Ra.current===t&&(gt(kr),gt(Ra))}var _t=gi(0);function ll(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Cc=[];function Sc(){for(var t=0;ta?a:4,t(!0);var l=_c.transition;_c.transition={};try{t(!1),r()}finally{tt=a,_c.transition=l}}function Ep(){return Gn().memoizedState}function h1(t,r,a){var l=_i(t);if(a={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null},Np(t))kp(r,a);else if(a=Kh(t,r,a,l),a!==null){var c=fn();pr(a,t,l,c),jp(a,r,l)}}function p1(t,r,a){var l=_i(t),c={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null};if(Np(t))kp(r,c);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var C=r.lastRenderedState,E=p(C,a);if(c.hasEagerState=!0,c.eagerState=E,ur(E,C)){var L=r.interleaved;L===null?(c.next=c,gc(r)):(c.next=L.next,L.next=c),r.interleaved=c;return}}catch{}finally{}a=Kh(t,r,c,l),a!==null&&(c=fn(),pr(a,t,l,c),jp(a,r,l))}}function Np(t){var r=t.alternate;return t===Et||r!==null&&r===Et}function kp(t,r){$a=cl=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function jp(t,r,a){if((a&4194240)!==0){var l=r.lanes;l&=t.pendingLanes,a|=l,r.lanes=a,ma(t,a)}}var hl={readContext:Wn,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},m1={readContext:Wn,useCallback:function(t,r){return jr().memoizedState=[t,r===void 0?null:r],t},useContext:Wn,useEffect:vp,useImperativeHandle:function(t,r,a){return a=a!=null?a.concat([t]):null,dl(4194308,4,xp.bind(null,r,t),a)},useLayoutEffect:function(t,r){return dl(4194308,4,t,r)},useInsertionEffect:function(t,r){return dl(4,2,t,r)},useMemo:function(t,r){var a=jr();return r=r===void 0?null:r,t=t(),a.memoizedState=[t,r],t},useReducer:function(t,r,a){var l=jr();return r=a!==void 0?a(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=h1.bind(null,Et,t),[l.memoizedState,t]},useRef:function(t){var r=jr();return t={current:t},r.memoizedState=t},useState:mp,useDebugValue:Lc,useDeferredValue:function(t){return jr().memoizedState=t},useTransition:function(){var t=mp(!1),r=t[0];return t=f1.bind(null,t[1]),jr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,a){var l=Et,c=jr();if(xt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=r(),Wt===null)throw Error(i(349));(Xi&30)!==0||cp(l,r,a)}c.memoizedState=a;var p={value:a,getSnapshot:r};return c.queue=p,vp(fp.bind(null,l,p,t),[t]),l.flags|=2048,Ba(9,dp.bind(null,l,p,a,r),void 0,null),a},useId:function(){var t=jr(),r=Wt.identifierPrefix;if(xt){var a=Gr,l=Wr;a=(l&~(1<<32-We(l)-1)).toString(32)+a,r=":"+r+"R"+a,a=Fa++,0")&&(L=L.replace("",t.displayName)),L}while(1<=C&&0<=E);break}}}finally{Se=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?ae(t):""}function re(t){switch(t.tag){case 5:return ae(t.type);case 16:return ae("Lazy");case 13:return ae("Suspense");case 19:return ae("SuspenseList");case 0:case 2:case 15:return t=le(t.type,!1),t;case 11:return t=le(t.type.render,!1),t;case 1:return t=le(t.type,!0),t;default:return""}}function te(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case fe:return"Portal";case de:return"Profiler";case K:return"StrictMode";case G:return"Suspense";case ee:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case pe:return(t._context.displayName||"Context")+".Provider";case H:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case me:return r=t.displayName||null,r!==null?r:te(t.type)||"Memo";case Ce:r=t._payload,t=t._init;try{return te(t(r))}catch{}}return null}function Q(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(r);case 8:return r===K?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Y(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Je(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function an(t){var r=Je(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,p=a.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(C){l=""+C,p.call(this,C)}}),Object.defineProperty(t,r,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ut(t){t._valueTracker||(t._valueTracker=an(t))}function ot(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var a=r.getValue(),l="";return t&&(l=Je(t)?t.checked?"true":"false":t.value),t=l,t!==a?(r.setValue(t),!0):!1}function vt(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function lt(t,r){var a=r.checked;return j({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function pt(t,r){var a=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;a=Y(r.value!=null?r.value:a),t._wrapperState={initialChecked:l,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function ct(t,r){r=r.checked,r!=null&&$(t,"checked",r,!1)}function dt(t,r){ct(t,r);var a=Y(r.value),l=r.type;if(a!=null)l==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?Ot(t,r.type,a):r.hasOwnProperty("defaultValue")&&Ot(t,r.type,Y(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function yt(t,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,a||r===t.value||(t.value=r),t.defaultValue=r}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function Ot(t,r,a){(r!=="number"||vt(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var sn=Array.isArray;function pn(t,r,a,l){if(t=t.options,r){r={};for(var c=0;c"+r.valueOf().toString()+"",r=Ht.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function Ct(t,r){if(r){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=r;return}}t.textContent=r}var wt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ln=["Webkit","ms","Moz","O"];Object.keys(wt).forEach(function(t){ln.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),wt[r]=wt[t]})});function Vt(t,r,a){return r==null||typeof r=="boolean"||r===""?"":a||typeof r!="number"||r===0||wt.hasOwnProperty(t)&&wt[t]?(""+r).trim():r+"px"}function yr(t,r){t=t.style;for(var a in r)if(r.hasOwnProperty(a)){var l=a.indexOf("--")===0,c=Vt(a,r[a],l);a==="float"&&(a="cssFloat"),l?t.setProperty(a,c):t[a]=c}}var Ri=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function si(t,r){if(r){if(Ri[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Ar(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $r=null;function Mn(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fr=null,un=null,Dn=null;function zr(t){if(t=Da(t)){if(typeof Fr!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Qs(r),Fr(t.stateNode,t.type,r))}}function wr(t){un?Dn?Dn.push(t):Dn=[t]:un=t}function Ai(){if(un){var t=un,r=Dn;if(Dn=un=null,zr(t),r)for(t=0;t>>=0,t===0?32:31-(br(t)/ci|0)|0}var Ur=64,Cr=4194304;function zi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function yo(t,r){var a=t.pendingLanes;if(a===0)return 0;var l=0,c=t.suspendedLanes,p=t.pingedLanes,C=a&268435455;if(C!==0){var E=C&~c;E!==0?l=zi(E):(p&=C,p!==0&&(l=zi(p)))}else C=a&~c,C!==0?l=zi(C):p!==0&&(l=zi(p));if(l===0)return 0;if(r!==0&&r!==l&&(r&c)===0&&(c=l&-l,p=r&-r,c>=p||c===16&&(p&4194240)!==0))return r;if((l&4)!==0&&(l|=a&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0a;a++)r.push(t);return r}function Bi(t,r,a){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-qe(r),t[r]=a}function Au(t,r){var a=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0=_a),fh=" ",hh=!1;function ph(t,r){switch(t){case"keyup":return Fy.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Eo=!1;function By(t,r){switch(t){case"compositionend":return mh(r);case"keypress":return r.which!==32?null:(hh=!0,fh);case"textInput":return t=r.data,t===fh&&hh?null:t;default:return null}}function Uy(t,r){if(Eo)return t==="compositionend"||!Uu&&ph(t,r)?(t=De(),oe=_e=ke=null,Eo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:a,offset:r-t};t=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ch(a)}}function _h(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?_h(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Eh(){for(var t=window,r=vt();r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=vt(t.document)}return r}function qu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Yy(t){var r=Eh(),a=t.focusedElem,l=t.selectionRange;if(r!==a&&a&&a.ownerDocument&&_h(a.ownerDocument.documentElement,a)){if(l!==null&&qu(a)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in a)a.selectionStart=r,a.selectionEnd=Math.min(t,a.value.length);else if(t=(r=a.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=a.textContent.length,p=Math.min(l.start,c);l=l.end===void 0?p:Math.min(l.end,c),!t.extend&&p>l&&(c=l,l=p,p=c),c=Sh(a,p);var C=Sh(a,l);c&&C&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==C.node||t.focusOffset!==C.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),p>l?(t.addRange(r),t.extend(C.node,C.offset)):(r.setEnd(C.node,C.offset),t.addRange(r)))}}for(r=[],t=a;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,No=null,Wu=null,ja=null,Gu=!1;function Nh(t,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Gu||No==null||No!==vt(l)||(l=No,"selectionStart"in l&&qu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ja&&ka(ja,l)||(ja=l,l=Ws(Wu,"onSelect"),0Lo||(t.current=oc[Lo],oc[Lo]=null,Lo--)}function ht(t,r){Lo++,oc[Lo]=t.current,t.current=r}var vi={},en=gi(vi),wn=gi(!1),Gi=vi;function Mo(t,r){var a=t.type.contextTypes;if(!a)return vi;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var c={},p;for(p in a)c[p]=r[p];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function xn(t){return t=t.childContextTypes,t!=null}function Ks(){gt(wn),gt(en)}function Bh(t,r,a){if(en.current!==vi)throw Error(i(168));ht(en,r),ht(wn,a)}function Uh(t,r,a){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return a;l=l.getChildContext();for(var c in l)if(!(c in r))throw Error(i(108,Q(t)||"Unknown",c));return j({},a,l)}function Ys(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||vi,Gi=en.current,ht(en,t),ht(wn,wn.current),!0}function Hh(t,r,a){var l=t.stateNode;if(!l)throw Error(i(169));a?(t=Uh(t,r,Gi),l.__reactInternalMemoizedMergedChildContext=t,gt(wn),gt(en),ht(en,t)):gt(wn),ht(wn,a)}var qr=null,Xs=!1,ac=!1;function Vh(t){qr===null?qr=[t]:qr.push(t)}function u1(t){Xs=!0,Vh(t)}function yi(){if(!ac&&qr!==null){ac=!0;var t=0,r=tt;try{var a=qr;for(tt=1;t>=C,c-=C,Wr=1<<32-qe(r)+c|a<Re?(Gt=Ie,Ie=null):Gt=Ie.sibling;var et=J(A,Ie,z[Re],se);if(et===null){Ie===null&&(Ie=Gt);break}t&&Ie&&et.alternate===null&&r(A,Ie),D=p(et,D,Re),Oe===null?Pe=et:Oe.sibling=et,Oe=et,Ie=Gt}if(Re===z.length)return a(A,Ie),xt&&Qi(A,Re),Pe;if(Ie===null){for(;ReRe?(Gt=Ie,Ie=null):Gt=Ie.sibling;var ki=J(A,Ie,et.value,se);if(ki===null){Ie===null&&(Ie=Gt);break}t&&Ie&&ki.alternate===null&&r(A,Ie),D=p(ki,D,Re),Oe===null?Pe=ki:Oe.sibling=ki,Oe=ki,Ie=Gt}if(et.done)return a(A,Ie),xt&&Qi(A,Re),Pe;if(Ie===null){for(;!et.done;Re++,et=z.next())et=ie(A,et.value,se),et!==null&&(D=p(et,D,Re),Oe===null?Pe=et:Oe.sibling=et,Oe=et);return xt&&Qi(A,Re),Pe}for(Ie=l(A,Ie);!et.done;Re++,et=z.next())et=ge(Ie,A,Re,et.value,se),et!==null&&(t&&et.alternate!==null&&Ie.delete(et.key===null?Re:et.key),D=p(et,D,Re),Oe===null?Pe=et:Oe.sibling=et,Oe=et);return t&&Ie.forEach(function(H1){return r(A,H1)}),xt&&Qi(A,Re),Pe}function Mt(A,D,z,se){if(typeof z=="object"&&z!==null&&z.type===O&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case W:e:{for(var Pe=z.key,Oe=D;Oe!==null;){if(Oe.key===Pe){if(Pe=z.type,Pe===O){if(Oe.tag===7){a(A,Oe.sibling),D=c(Oe,z.props.children),D.return=A,A=D;break e}}else if(Oe.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===Ce&&ip(Pe)===Oe.type){a(A,Oe.sibling),D=c(Oe,z.props),D.ref=Oa(A,Oe,z),D.return=A,A=D;break e}a(A,Oe);break}else r(A,Oe);Oe=Oe.sibling}z.type===O?(D=ro(z.props.children,A.mode,se,z.key),D.return=A,A=D):(se=Nl(z.type,z.key,z.props,null,A.mode,se),se.ref=Oa(A,D,z),se.return=A,A=se)}return C(A);case fe:e:{for(Oe=z.key;D!==null;){if(D.key===Oe)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){a(A,D.sibling),D=c(D,z.children||[]),D.return=A,A=D;break e}else{a(A,D);break}else r(A,D);D=D.sibling}D=rd(z,A.mode,se),D.return=A,A=D}return C(A);case Ce:return Oe=z._init,Mt(A,D,Oe(z._payload),se)}if(sn(z))return Ne(A,D,z,se);if(ue(z))return je(A,D,z,se);sl(A,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,D!==null&&D.tag===6?(a(A,D.sibling),D=c(D,z),D.return=A,A=D):(a(A,D),D=nd(z,A.mode,se),D.return=A,A=D),C(A)):a(A,D)}return Mt}var $o=op(!0),ap=op(!1),Ia={},kr=gi(Ia),Ra=gi(Ia),Aa=gi(Ia);function Yi(t){if(t===Ia)throw Error(i(174));return t}function xc(t,r){switch(ht(Aa,r),ht(Ra,t),ht(kr,Ia),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Yn(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Yn(r,t)}gt(kr),ht(kr,r)}function Fo(){gt(kr),gt(Ra),gt(Aa)}function sp(t){Yi(Aa.current);var r=Yi(kr.current),a=Yn(r,t.type);r!==a&&(ht(Ra,t),ht(kr,a))}function bc(t){Ra.current===t&&(gt(kr),gt(Ra))}var _t=gi(0);function ll(t){for(var r=t;r!==null;){if(r.tag===13){var a=r.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Cc=[];function Sc(){for(var t=0;ta?a:4,t(!0);var l=_c.transition;_c.transition={};try{t(!1),r()}finally{tt=a,_c.transition=l}}function Ep(){return Gn().memoizedState}function h1(t,r,a){var l=_i(t);if(a={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null},Np(t))kp(r,a);else if(a=Kh(t,r,a,l),a!==null){var c=fn();pr(a,t,l,c),jp(a,r,l)}}function p1(t,r,a){var l=_i(t),c={lane:l,action:a,hasEagerState:!1,eagerState:null,next:null};if(Np(t))kp(r,c);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var C=r.lastRenderedState,E=p(C,a);if(c.hasEagerState=!0,c.eagerState=E,ur(E,C)){var L=r.interleaved;L===null?(c.next=c,gc(r)):(c.next=L.next,L.next=c),r.interleaved=c;return}}catch{}finally{}a=Kh(t,r,c,l),a!==null&&(c=fn(),pr(a,t,l,c),jp(a,r,l))}}function Np(t){var r=t.alternate;return t===Et||r!==null&&r===Et}function kp(t,r){$a=cl=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function jp(t,r,a){if((a&4194240)!==0){var l=r.lanes;l&=t.pendingLanes,a|=l,r.lanes=a,ma(t,a)}}var hl={readContext:Wn,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},m1={readContext:Wn,useCallback:function(t,r){return jr().memoizedState=[t,r===void 0?null:r],t},useContext:Wn,useEffect:vp,useImperativeHandle:function(t,r,a){return a=a!=null?a.concat([t]):null,dl(4194308,4,xp.bind(null,r,t),a)},useLayoutEffect:function(t,r){return dl(4194308,4,t,r)},useInsertionEffect:function(t,r){return dl(4,2,t,r)},useMemo:function(t,r){var a=jr();return r=r===void 0?null:r,t=t(),a.memoizedState=[t,r],t},useReducer:function(t,r,a){var l=jr();return r=a!==void 0?a(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=h1.bind(null,Et,t),[l.memoizedState,t]},useRef:function(t){var r=jr();return t={current:t},r.memoizedState=t},useState:mp,useDebugValue:Lc,useDeferredValue:function(t){return jr().memoizedState=t},useTransition:function(){var t=mp(!1),r=t[0];return t=f1.bind(null,t[1]),jr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,a){var l=Et,c=jr();if(xt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=r(),Wt===null)throw Error(i(349));(Xi&30)!==0||cp(l,r,a)}c.memoizedState=a;var p={value:a,getSnapshot:r};return c.queue=p,vp(fp.bind(null,l,p,t),[t]),l.flags|=2048,Ba(9,dp.bind(null,l,p,a,r),void 0,null),a},useId:function(){var t=jr(),r=Wt.identifierPrefix;if(xt){var a=Gr,l=Wr;a=(l&~(1<<32-qe(l)-1)).toString(32)+a,r=":"+r+"R"+a,a=Fa++,0<\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=C.createElement(a,{is:l.is}):(t=C.createElement(a),a==="select"&&(C=t,l.multiple?C.multiple=!0:l.size&&(C.size=l.size))):t=C.createElementNS(t,a),t[Nr]=r,t[Ma]=l,qp(t,r,!1,!1),r.stateNode=t;e:{switch(C=Ar(a,l),a){case"dialog":mt("cancel",t),mt("close",t),c=l;break;case"iframe":case"object":case"embed":mt("load",t),c=l;break;case"video":case"audio":for(c=0;cHo&&(r.flags|=128,l=!0,Ua(p,!1),r.lanes=4194304)}else{if(!l)if(t=ll(C),t!==null){if(r.flags|=128,l=!0,a=t.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),Ua(p,!0),p.tail===null&&p.tailMode==="hidden"&&!C.alternate&&!xt)return nn(r),null}else 2*qe()-p.renderingStartTime>Ho&&a!==1073741824&&(r.flags|=128,l=!0,Ua(p,!1),r.lanes=4194304);p.isBackwards?(C.sibling=r.child,r.child=C):(a=p.last,a!==null?a.sibling=C:r.child=C,p.last=C)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=qe(),r.sibling=null,a=_t.current,ht(_t,l?a&1|2:a&1),r):(nn(r),null);case 22:case 23:return Jc(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?($n&1073741824)!==0&&(nn(r),r.subtreeFlags&6&&(r.flags|=8192)):nn(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function S1(t,r){switch(lc(r),r.tag){case 1:return xn(r.type)&&Ks(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Fo(),gt(wn),gt(en),Sc(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return bc(r),null;case 13:if(gt(_t),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Io()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return gt(_t),null;case 4:return Fo(),null;case 10:return pc(r.type._context),null;case 22:case 23:return Jc(),null;case 24:return null;default:return null}}var gl=!1,rn=!1,_1=typeof WeakSet=="function"?WeakSet:Set,be=null;function Bo(t,r){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(l){kt(t,r,l)}else a.current=null}function Bc(t,r,a){try{a()}catch(l){kt(t,r,l)}}var Zp=!1;function E1(t,r){if(Ju=qi,t=Eh(),qu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var c=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var C=0,E=-1,L=-1,B=0,ne=0,ie=t,J=null;t:for(;;){for(var ge;ie!==a||c!==0&&ie.nodeType!==3||(E=C+c),ie!==p||l!==0&&ie.nodeType!==3||(L=C+l),ie.nodeType===3&&(C+=ie.nodeValue.length),(ge=ie.firstChild)!==null;)J=ie,ie=ge;for(;;){if(ie===t)break t;if(J===a&&++B===c&&(E=C),J===p&&++ne===l&&(L=C),(ge=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=ge}a=E===-1||L===-1?null:{start:E,end:L}}else a=null}a=a||{start:0,end:0}}else a=null;for(ec={focusedElem:t,selectionRange:a},qi=!1,be=r;be!==null;)if(r=be,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,be=t;else for(;be!==null;){r=be;try{var Ne=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Ne!==null){var je=Ne.memoizedProps,Dt=Ne.memoizedState,A=r.stateNode,D=A.getSnapshotBeforeUpdate(r.elementType===r.type?je:dr(r.type,je),Dt);A.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var z=r.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ae){kt(r,r.return,ae)}if(t=r.sibling,t!==null){t.return=r.return,be=t;break}be=r.return}return Ne=Zp,Zp=!1,Ne}function Ha(t,r,a){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&t)===t){var p=c.destroy;c.destroy=void 0,p!==void 0&&Bc(r,a,p)}c=c.next}while(c!==l)}}function vl(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&t)===t){var l=a.create;a.destroy=l()}a=a.next}while(a!==r)}}function Uc(t){var r=t.ref;if(r!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof r=="function"?r(t):r.current=t}}function Qp(t){var r=t.alternate;r!==null&&(t.alternate=null,Qp(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[Nr],delete r[Ma],delete r[ic],delete r[s1],delete r[l1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Kp(t){return t.tag===5||t.tag===3||t.tag===4}function Yp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Kp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Hc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.nodeType===8?a.parentNode.insertBefore(t,r):a.insertBefore(t,r):(a.nodeType===8?(r=a.parentNode,r.insertBefore(t,a)):(r=a,r.appendChild(t)),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Zs));else if(l!==4&&(t=t.child,t!==null))for(Hc(t,r,a),t=t.sibling;t!==null;)Hc(t,r,a),t=t.sibling}function Vc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(Vc(t,r,a),t=t.sibling;t!==null;)Vc(t,r,a),t=t.sibling}var Xt=null,fr=!1;function bi(t,r,a){for(a=a.child;a!==null;)Xp(t,r,a),a=a.sibling}function Xp(t,r,a){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(nt,a)}catch{}switch(a.tag){case 5:rn||Bo(a,r);case 6:var l=Xt,c=fr;Xt=null,bi(t,r,a),Xt=l,fr=c,Xt!==null&&(fr?(t=Xt,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):Xt.removeChild(a.stateNode));break;case 18:Xt!==null&&(fr?(t=Xt,a=a.stateNode,t.nodeType===8?rc(t.parentNode,a):t.nodeType===1&&rc(t,a),fi(t)):rc(Xt,a.stateNode));break;case 4:l=Xt,c=fr,Xt=a.stateNode.containerInfo,fr=!0,bi(t,r,a),Xt=l,fr=c;break;case 0:case 11:case 14:case 15:if(!rn&&(l=a.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var p=c,C=p.destroy;p=p.tag,C!==void 0&&((p&2)!==0||(p&4)!==0)&&Bc(a,r,C),c=c.next}while(c!==l)}bi(t,r,a);break;case 1:if(!rn&&(Bo(a,r),l=a.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=a.memoizedProps,l.state=a.memoizedState,l.componentWillUnmount()}catch(E){kt(a,r,E)}bi(t,r,a);break;case 21:bi(t,r,a);break;case 22:a.mode&1?(rn=(l=rn)||a.memoizedState!==null,bi(t,r,a),rn=l):bi(t,r,a);break;default:bi(t,r,a)}}function Jp(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new _1),r.forEach(function(l){var c=O1.bind(null,t,l);a.has(l)||(a.add(l),l.then(c,c))})}}function hr(t,r){var a=r.deletions;if(a!==null)for(var l=0;lc&&(c=C),l&=~p}if(l=c,l=qe()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*k1(l/1960))-l,10t?16:t,Si===null)var l=!1;else{if(t=Si,Si=null,Cl=0,(Xe&6)!==0)throw Error(i(331));var c=Xe;for(Xe|=4,be=t.current;be!==null;){var p=be,C=p.child;if((be.flags&16)!==0){var E=p.deletions;if(E!==null){for(var L=0;Lqe()-Gc?to(t,0):Wc|=a),Sn(t,r)}function fm(t,r){r===0&&((t.mode&1)===0?r=1:(r=Cr,Cr<<=1,(Cr&130023424)===0&&(Cr=4194304)));var a=fn();t=Zr(t,r),t!==null&&(Bi(t,r,a),Sn(t,a))}function D1(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),fm(t,a)}function O1(t,r){var a=0;switch(t.tag){case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(a=c.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(r),fm(t,a)}var hm;hm=function(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps||wn.current)bn=!0;else{if((t.lanes&a)===0&&(r.flags&128)===0)return bn=!1,b1(t,r,a);bn=(t.flags&131072)!==0}else bn=!1,xt&&(r.flags&1048576)!==0&&qh(r,el,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;ml(t,r),t=r.pendingProps;var c=Mo(r,en.current);Ao(r,a),c=Nc(null,r,l,t,c,a);var p=kc();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,xn(l)?(p=!0,Ys(r)):p=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,vc(r),c.updater=al,r.stateNode=c,c._reactInternals=r,wc(r,l,t,a),r=Ic(null,r,l,!0,p,a)):(r.tag=0,xt&&p&&sc(r),dn(null,r,c,a),r=r.child),r;case 16:l=r.elementType;e:{switch(ml(t,r),t=r.pendingProps,c=l._init,l=c(l._payload),r.type=l,c=r.tag=R1(l),t=dr(l,t),c){case 0:r=Oc(null,r,l,t,a);break e;case 1:r=Fp(null,r,l,t,a);break e;case 11:r=Op(null,r,l,t,a);break e;case 14:r=Ip(null,r,l,dr(l.type,t),a);break e}throw Error(i(306,l,""))}return r;case 0:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),Oc(t,r,l,c,a);case 1:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),Fp(t,r,l,c,a);case 3:e:{if(zp(r),t===null)throw Error(i(387));l=r.pendingProps,p=r.memoizedState,c=p.element,Yh(t,r),ol(r,l,null,a);var C=r.memoizedState;if(l=C.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){c=zo(Error(i(423)),r),r=Bp(t,r,l,a,c);break e}else if(l!==c){c=zo(Error(i(424)),r),r=Bp(t,r,l,a,c);break e}else for(An=mi(r.stateNode.containerInfo.firstChild),Rn=r,xt=!0,cr=null,a=ap(r,null,l,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Io(),l===c){r=Kr(t,r,a);break e}dn(t,r,l,a)}r=r.child}return r;case 5:return sp(r),t===null&&cc(r),l=r.type,c=r.pendingProps,p=t!==null?t.memoizedProps:null,C=c.children,tc(l,c)?C=null:p!==null&&tc(l,p)&&(r.flags|=32),$p(t,r),dn(t,r,C,a),r.child;case 6:return t===null&&cc(r),null;case 13:return Up(t,r,a);case 4:return xc(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=$o(r,null,l,a):dn(t,r,l,a),r.child;case 11:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),Op(t,r,l,c,a);case 7:return dn(t,r,r.pendingProps,a),r.child;case 8:return dn(t,r,r.pendingProps.children,a),r.child;case 12:return dn(t,r,r.pendingProps.children,a),r.child;case 10:e:{if(l=r.type._context,c=r.pendingProps,p=r.memoizedProps,C=c.value,ht(nl,l._currentValue),l._currentValue=C,p!==null)if(ur(p.value,C)){if(p.children===c.children&&!wn.current){r=Kr(t,r,a);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var E=p.dependencies;if(E!==null){C=p.child;for(var L=E.firstContext;L!==null;){if(L.context===l){if(p.tag===1){L=Qr(-1,a&-a),L.tag=2;var B=p.updateQueue;if(B!==null){B=B.shared;var ne=B.pending;ne===null?L.next=L:(L.next=ne.next,ne.next=L),B.pending=L}}p.lanes|=a,L=p.alternate,L!==null&&(L.lanes|=a),mc(p.return,a,r),E.lanes|=a;break}L=L.next}}else if(p.tag===10)C=p.type===r.type?null:p.child;else if(p.tag===18){if(C=p.return,C===null)throw Error(i(341));C.lanes|=a,E=C.alternate,E!==null&&(E.lanes|=a),mc(C,a,r),C=p.sibling}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===r){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}dn(t,r,c.children,a),r=r.child}return r;case 9:return c=r.type,l=r.pendingProps.children,Ao(r,a),c=Wn(c),l=l(c),r.flags|=1,dn(t,r,l,a),r.child;case 14:return l=r.type,c=dr(l,r.pendingProps),c=dr(l.type,c),Ip(t,r,l,c,a);case 15:return Rp(t,r,r.type,r.pendingProps,a);case 17:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),ml(t,r),r.tag=1,xn(l)?(t=!0,Ys(r)):t=!1,Ao(r,a),np(r,l,c),wc(r,l,c,a),Ic(null,r,l,!0,t,a);case 19:return Vp(t,r,a);case 22:return Ap(t,r,a)}throw Error(i(156,r.tag))};function pm(t,r){return at(t,r)}function I1(t,r,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(t,r,a,l){return new I1(t,r,a,l)}function td(t){return t=t.prototype,!(!t||!t.isReactComponent)}function R1(t){if(typeof t=="function")return td(t)?1:0;if(t!=null){if(t=t.$$typeof,t===H)return 11;if(t===pe)return 14}return 2}function Ni(t,r){var a=t.alternate;return a===null?(a=Qn(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Nl(t,r,a,l,c,p){var C=2;if(l=t,typeof t=="function")td(t)&&(C=1);else if(typeof t=="string")C=5;else e:switch(t){case O:return ro(a.children,c,p,r);case K:C=8,c|=8;break;case ce:return t=Qn(12,a,r,c|2),t.elementType=ce,t.lanes=p,t;case G:return t=Qn(13,a,r,c),t.elementType=G,t.lanes=p,t;case ee:return t=Qn(19,a,r,c),t.elementType=ee,t.lanes=p,t;case _e:return kl(a,c,p,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case he:C=10;break e;case R:C=9;break e;case H:C=11;break e;case pe:C=14;break e;case Ce:C=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Qn(C,a,r,c),r.elementType=t,r.type=l,r.lanes=p,r}function ro(t,r,a,l){return t=Qn(7,t,l,r),t.lanes=a,t}function kl(t,r,a,l){return t=Qn(22,t,l,r),t.elementType=_e,t.lanes=a,t.stateNode={isHidden:!1},t}function nd(t,r,a){return t=Qn(6,t,null,r),t.lanes=a,t}function rd(t,r,a){return r=Qn(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function A1(t,r,a,l,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pa(0),this.expirationTimes=pa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pa(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function id(t,r,a,l,c,p,C,E,L){return t=new A1(t,r,a,E,L),r===1?(r=1,p===!0&&(r|=8)):r=0,p=Qn(3,null,null,r),t.current=p,p.stateNode=t,p.memoizedState={element:l,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},vc(p),t}function $1(t,r,a){var l=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),cd.exports=K1(),cd.exports}var jm;function Y1(){if(jm)return Ol;jm=1;var e=t0();return Ol.createRoot=e.createRoot,Ol.hydrateRoot=e.hydrateRoot,Ol}var X1=Y1();const J1="modulepreload",ew=function(e){return"/"+e},Tm={},Kn=function(n,i,o){let s=Promise.resolve();if(i&&i.length>0){let g=function(y){return Promise.all(y.map(x=>Promise.resolve(x).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");s=g(i.map(y=>{if(y=ew(y),y in Tm)return;Tm[y]=!0;const x=y.endsWith(".css"),b=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${b}`))return;const m=document.createElement("link");if(m.rel=x?"stylesheet":J1,x||(m.as="script"),m.crossOrigin="",m.href=y,f&&m.setAttribute("nonce",f),document.head.appendChild(m),x)return new Promise((w,N)=>{m.addEventListener("load",w),m.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return s.then(d=>{for(const f of d||[])f.status==="rejected"&&u(f.reason);return n().catch(u)})};var pf=t0();const tw=e0(pf),nw=Jg({__proto__:null,default:tw},[pf]);/** +`+p.stack}return{value:t,source:r,stack:c,digest:null}}function Mc(t,r,a){return{value:t,source:null,stack:a??null,digest:r??null}}function Dc(t,r){try{console.error(r.value)}catch(a){setTimeout(function(){throw a})}}var y1=typeof WeakMap=="function"?WeakMap:Map;function Tp(t,r,a){a=Qr(-1,a),a.tag=3,a.payload={element:null};var l=r.value;return a.callback=function(){xl||(xl=!0,Zc=l),Dc(t,r)},a}function Pp(t,r,a){a=Qr(-1,a),a.tag=3;var l=t.type.getDerivedStateFromError;if(typeof l=="function"){var c=r.value;a.payload=function(){return l(c)},a.callback=function(){Dc(t,r)}}var p=t.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(a.callback=function(){Dc(t,r),typeof l!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var C=r.stack;this.componentDidCatch(r.value,{componentStack:C!==null?C:""})}),a}function Lp(t,r,a){var l=t.pingCache;if(l===null){l=t.pingCache=new y1;var c=new Set;l.set(r,c)}else c=l.get(r),c===void 0&&(c=new Set,l.set(r,c));c.has(a)||(c.add(a),t=M1.bind(null,t,r,a),r.then(t,t))}function Mp(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Dp(t,r,a,l,c){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(r=Qr(-1,1),r.tag=2,xi(a,r,1))),a.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var w1=F.ReactCurrentOwner,bn=!1;function dn(t,r,a,l){r.child=t===null?ap(r,null,a,l):$o(r,t.child,a,l)}function Op(t,r,a,l,c){a=a.render;var p=r.ref;return Ao(r,c),l=Nc(t,r,a,l,p,c),a=kc(),t!==null&&!bn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,Kr(t,r,c)):(xt&&a&&sc(r),r.flags|=1,dn(t,r,l,c),r.child)}function Ip(t,r,a,l,c){if(t===null){var p=a.type;return typeof p=="function"&&!td(p)&&p.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(r.tag=15,r.type=p,Rp(t,r,p,l,c)):(t=Nl(a.type,null,l,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(p=t.child,(t.lanes&c)===0){var C=p.memoizedProps;if(a=a.compare,a=a!==null?a:ka,a(C,l)&&t.ref===r.ref)return Kr(t,r,c)}return r.flags|=1,t=Ni(p,l),t.ref=r.ref,t.return=r,r.child=t}function Rp(t,r,a,l,c){if(t!==null){var p=t.memoizedProps;if(ka(p,l)&&t.ref===r.ref)if(bn=!1,r.pendingProps=l=p,(t.lanes&c)!==0)(t.flags&131072)!==0&&(bn=!0);else return r.lanes=t.lanes,Kr(t,r,c)}return Oc(t,r,a,l,c)}function Ap(t,r,a){var l=r.pendingProps,c=l.children,p=t!==null?t.memoizedState:null;if(l.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},ht(Uo,$n),$n|=a;else{if((a&1073741824)===0)return t=p!==null?p.baseLanes|a:a,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,ht(Uo,$n),$n|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=p!==null?p.baseLanes:a,ht(Uo,$n),$n|=l}else p!==null?(l=p.baseLanes|a,r.memoizedState=null):l=a,ht(Uo,$n),$n|=l;return dn(t,r,c,a),r.child}function $p(t,r){var a=r.ref;(t===null&&a!==null||t!==null&&t.ref!==a)&&(r.flags|=512,r.flags|=2097152)}function Oc(t,r,a,l,c){var p=xn(a)?Gi:en.current;return p=Mo(r,p),Ao(r,c),a=Nc(t,r,a,l,p,c),l=kc(),t!==null&&!bn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,Kr(t,r,c)):(xt&&l&&sc(r),r.flags|=1,dn(t,r,a,c),r.child)}function Fp(t,r,a,l,c){if(xn(a)){var p=!0;Ys(r)}else p=!1;if(Ao(r,c),r.stateNode===null)ml(t,r),np(r,a,l),wc(r,a,l,c),l=!0;else if(t===null){var C=r.stateNode,E=r.memoizedProps;C.props=E;var L=C.context,B=a.contextType;typeof B=="object"&&B!==null?B=Wn(B):(B=xn(a)?Gi:en.current,B=Mo(r,B));var ne=a.getDerivedStateFromProps,ie=typeof ne=="function"||typeof C.getSnapshotBeforeUpdate=="function";ie||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(E!==l||L!==B)&&rp(r,C,l,B),wi=!1;var J=r.memoizedState;C.state=J,ol(r,l,C,c),L=r.memoizedState,E!==l||J!==L||wn.current||wi?(typeof ne=="function"&&(yc(r,a,ne,l),L=r.memoizedState),(E=wi||tp(r,a,E,l,J,L,B))?(ie||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(r.flags|=4194308)):(typeof C.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=L),C.props=l,C.state=L,C.context=B,l=E):(typeof C.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{C=r.stateNode,Yh(t,r),E=r.memoizedProps,B=r.type===r.elementType?E:dr(r.type,E),C.props=B,ie=r.pendingProps,J=C.context,L=a.contextType,typeof L=="object"&&L!==null?L=Wn(L):(L=xn(a)?Gi:en.current,L=Mo(r,L));var ge=a.getDerivedStateFromProps;(ne=typeof ge=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(E!==ie||J!==L)&&rp(r,C,l,L),wi=!1,J=r.memoizedState,C.state=J,ol(r,l,C,c);var Ne=r.memoizedState;E!==ie||J!==Ne||wn.current||wi?(typeof ge=="function"&&(yc(r,a,ge,l),Ne=r.memoizedState),(B=wi||tp(r,a,B,l,J,Ne,L)||!1)?(ne||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(l,Ne,L),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(l,Ne,L)),typeof C.componentDidUpdate=="function"&&(r.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof C.componentDidUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(r.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=Ne),C.props=l,C.state=Ne,C.context=L,l=B):(typeof C.componentDidUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(r.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&J===t.memoizedState||(r.flags|=1024),l=!1)}return Ic(t,r,a,l,p,c)}function Ic(t,r,a,l,c,p){$p(t,r);var C=(r.flags&128)!==0;if(!l&&!C)return c&&Hh(r,a,!1),Kr(t,r,p);l=r.stateNode,w1.current=r;var E=C&&typeof a.getDerivedStateFromError!="function"?null:l.render();return r.flags|=1,t!==null&&C?(r.child=$o(r,t.child,null,p),r.child=$o(r,null,E,p)):dn(t,r,E,p),r.memoizedState=l.state,c&&Hh(r,a,!0),r.child}function zp(t){var r=t.stateNode;r.pendingContext?Bh(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Bh(t,r.context,!1),xc(t,r.containerInfo)}function Bp(t,r,a,l,c){return Io(),dc(c),r.flags|=256,dn(t,r,a,l),r.child}var Rc={dehydrated:null,treeContext:null,retryLane:0};function Ac(t){return{baseLanes:t,cachePool:null,transitions:null}}function Up(t,r,a){var l=r.pendingProps,c=_t.current,p=!1,C=(r.flags&128)!==0,E;if((E=C)||(E=t!==null&&t.memoizedState===null?!1:(c&2)!==0),E?(p=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),ht(_t,c&1),t===null)return cc(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(C=l.children,t=l.fallback,p?(l=r.mode,p=r.child,C={mode:"hidden",children:C},(l&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=C):p=kl(C,l,0,null),t=ro(t,l,a,null),p.return=r,t.return=r,p.sibling=t,r.child=p,r.child.memoizedState=Ac(a),r.memoizedState=Rc,t):$c(r,C));if(c=t.memoizedState,c!==null&&(E=c.dehydrated,E!==null))return x1(t,r,C,l,E,c,a);if(p){p=l.fallback,C=r.mode,c=t.child,E=c.sibling;var L={mode:"hidden",children:l.children};return(C&1)===0&&r.child!==c?(l=r.child,l.childLanes=0,l.pendingProps=L,r.deletions=null):(l=Ni(c,L),l.subtreeFlags=c.subtreeFlags&14680064),E!==null?p=Ni(E,p):(p=ro(p,C,a,null),p.flags|=2),p.return=r,l.return=r,l.sibling=p,r.child=l,l=p,p=r.child,C=t.child.memoizedState,C=C===null?Ac(a):{baseLanes:C.baseLanes|a,cachePool:null,transitions:C.transitions},p.memoizedState=C,p.childLanes=t.childLanes&~a,r.memoizedState=Rc,l}return p=t.child,t=p.sibling,l=Ni(p,{mode:"visible",children:l.children}),(r.mode&1)===0&&(l.lanes=a),l.return=r,l.sibling=null,t!==null&&(a=r.deletions,a===null?(r.deletions=[t],r.flags|=16):a.push(t)),r.child=l,r.memoizedState=null,l}function $c(t,r){return r=kl({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function pl(t,r,a,l){return l!==null&&dc(l),$o(r,t.child,null,a),t=$c(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function x1(t,r,a,l,c,p,C){if(a)return r.flags&256?(r.flags&=-257,l=Mc(Error(i(422))),pl(t,r,C,l)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(p=l.fallback,c=r.mode,l=kl({mode:"visible",children:l.children},c,0,null),p=ro(p,c,C,null),p.flags|=2,l.return=r,p.return=r,l.sibling=p,r.child=l,(r.mode&1)!==0&&$o(r,t.child,null,C),r.child.memoizedState=Ac(C),r.memoizedState=Rc,p);if((r.mode&1)===0)return pl(t,r,C,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var E=l.dgst;return l=E,p=Error(i(419)),l=Mc(p,l,void 0),pl(t,r,C,l)}if(E=(C&t.childLanes)!==0,bn||E){if(l=Wt,l!==null){switch(C&-C){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|C))!==0?0:c,c!==0&&c!==p.retryLane&&(p.retryLane=c,Zr(t,c),pr(l,t,c,-1))}return ed(),l=Mc(Error(i(421))),pl(t,r,C,l)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=D1.bind(null,t),c._reactRetry=r,null):(t=p.treeContext,An=mi(c.nextSibling),Rn=r,xt=!0,cr=null,t!==null&&(Vn[qn++]=Wr,Vn[qn++]=Gr,Vn[qn++]=Zi,Wr=t.id,Gr=t.overflow,Zi=r),r=$c(r,l.children),r.flags|=4096,r)}function Hp(t,r,a){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),mc(t.return,r,a)}function Fc(t,r,a,l,c){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:c}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=a,p.tailMode=c)}function Vp(t,r,a){var l=r.pendingProps,c=l.revealOrder,p=l.tail;if(dn(t,r,l.children,a),l=_t.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hp(t,a,r);else if(t.tag===19)Hp(t,a,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}if(ht(_t,l),(r.mode&1)===0)r.memoizedState=null;else switch(c){case"forwards":for(a=r.child,c=null;a!==null;)t=a.alternate,t!==null&&ll(t)===null&&(c=a),a=a.sibling;a=c,a===null?(c=r.child,r.child=null):(c=a.sibling,a.sibling=null),Fc(r,!1,c,a,p);break;case"backwards":for(a=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&ll(t)===null){r.child=c;break}t=c.sibling,c.sibling=a,a=c,c=t}Fc(r,!0,a,null,p);break;case"together":Fc(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function ml(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function Kr(t,r,a){if(t!==null&&(r.dependencies=t.dependencies),Ji|=r.lanes,(a&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,a=Ni(t,t.pendingProps),r.child=a,a.return=r;t.sibling!==null;)t=t.sibling,a=a.sibling=Ni(t,t.pendingProps),a.return=r;a.sibling=null}return r.child}function b1(t,r,a){switch(r.tag){case 3:zp(r),Io();break;case 5:sp(r);break;case 1:xn(r.type)&&Ys(r);break;case 4:xc(r,r.stateNode.containerInfo);break;case 10:var l=r.type._context,c=r.memoizedProps.value;ht(nl,l._currentValue),l._currentValue=c;break;case 13:if(l=r.memoizedState,l!==null)return l.dehydrated!==null?(ht(_t,_t.current&1),r.flags|=128,null):(a&r.child.childLanes)!==0?Up(t,r,a):(ht(_t,_t.current&1),t=Kr(t,r,a),t!==null?t.sibling:null);ht(_t,_t.current&1);break;case 19:if(l=(a&r.childLanes)!==0,(t.flags&128)!==0){if(l)return Vp(t,r,a);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ht(_t,_t.current),l)break;return null;case 22:case 23:return r.lanes=0,Ap(t,r,a)}return Kr(t,r,a)}var qp,zc,Wp,Gp;qp=function(t,r){for(var a=r.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},zc=function(){},Wp=function(t,r,a,l){var c=t.memoizedProps;if(c!==l){t=r.stateNode,Yi(kr.current);var p=null;switch(a){case"input":c=lt(t,c),l=lt(t,l),p=[];break;case"select":c=j({},c,{value:void 0}),l=j({},l,{value:void 0}),p=[];break;case"textarea":c=Ln(t,c),l=Ln(t,l),p=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(t.onclick=Zs)}si(a,l);var C;a=null;for(B in c)if(!l.hasOwnProperty(B)&&c.hasOwnProperty(B)&&c[B]!=null)if(B==="style"){var E=c[B];for(C in E)E.hasOwnProperty(C)&&(a||(a={}),a[C]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(s.hasOwnProperty(B)?p||(p=[]):(p=p||[]).push(B,null));for(B in l){var L=l[B];if(E=c?.[B],l.hasOwnProperty(B)&&L!==E&&(L!=null||E!=null))if(B==="style")if(E){for(C in E)!E.hasOwnProperty(C)||L&&L.hasOwnProperty(C)||(a||(a={}),a[C]="");for(C in L)L.hasOwnProperty(C)&&E[C]!==L[C]&&(a||(a={}),a[C]=L[C])}else a||(p||(p=[]),p.push(B,a)),a=L;else B==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,E=E?E.__html:void 0,L!=null&&E!==L&&(p=p||[]).push(B,L)):B==="children"?typeof L!="string"&&typeof L!="number"||(p=p||[]).push(B,""+L):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(s.hasOwnProperty(B)?(L!=null&&B==="onScroll"&&mt("scroll",t),p||E===L||(p=[])):(p=p||[]).push(B,L))}a&&(p=p||[]).push("style",a);var B=p;(r.updateQueue=B)&&(r.flags|=4)}},Gp=function(t,r,a,l){a!==l&&(r.flags|=4)};function Ua(t,r){if(!xt)switch(t.tailMode){case"hidden":r=t.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function nn(t){var r=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(r)for(var c=t.child;c!==null;)a|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)a|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=l,t.childLanes=a,r}function C1(t,r,a){var l=r.pendingProps;switch(lc(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nn(r),null;case 1:return xn(r.type)&&Ks(),nn(r),null;case 3:return l=r.stateNode,Fo(),gt(wn),gt(en),Sc(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(tl(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,cr!==null&&(Yc(cr),cr=null))),zc(t,r),nn(r),null;case 5:bc(r);var c=Yi(Aa.current);if(a=r.type,t!==null&&r.stateNode!=null)Wp(t,r,a,l,c),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!l){if(r.stateNode===null)throw Error(i(166));return nn(r),null}if(t=Yi(kr.current),tl(r)){l=r.stateNode,a=r.type;var p=r.memoizedProps;switch(l[Nr]=r,l[Ma]=p,t=(r.mode&1)!==0,a){case"dialog":mt("cancel",l),mt("close",l);break;case"iframe":case"object":case"embed":mt("load",l);break;case"video":case"audio":for(c=0;c<\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=C.createElement(a,{is:l.is}):(t=C.createElement(a),a==="select"&&(C=t,l.multiple?C.multiple=!0:l.size&&(C.size=l.size))):t=C.createElementNS(t,a),t[Nr]=r,t[Ma]=l,qp(t,r,!1,!1),r.stateNode=t;e:{switch(C=Ar(a,l),a){case"dialog":mt("cancel",t),mt("close",t),c=l;break;case"iframe":case"object":case"embed":mt("load",t),c=l;break;case"video":case"audio":for(c=0;cHo&&(r.flags|=128,l=!0,Ua(p,!1),r.lanes=4194304)}else{if(!l)if(t=ll(C),t!==null){if(r.flags|=128,l=!0,a=t.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),Ua(p,!0),p.tail===null&&p.tailMode==="hidden"&&!C.alternate&&!xt)return nn(r),null}else 2*Ve()-p.renderingStartTime>Ho&&a!==1073741824&&(r.flags|=128,l=!0,Ua(p,!1),r.lanes=4194304);p.isBackwards?(C.sibling=r.child,r.child=C):(a=p.last,a!==null?a.sibling=C:r.child=C,p.last=C)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Ve(),r.sibling=null,a=_t.current,ht(_t,l?a&1|2:a&1),r):(nn(r),null);case 22:case 23:return Jc(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?($n&1073741824)!==0&&(nn(r),r.subtreeFlags&6&&(r.flags|=8192)):nn(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function S1(t,r){switch(lc(r),r.tag){case 1:return xn(r.type)&&Ks(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Fo(),gt(wn),gt(en),Sc(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return bc(r),null;case 13:if(gt(_t),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Io()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return gt(_t),null;case 4:return Fo(),null;case 10:return pc(r.type._context),null;case 22:case 23:return Jc(),null;case 24:return null;default:return null}}var gl=!1,rn=!1,_1=typeof WeakSet=="function"?WeakSet:Set,be=null;function Bo(t,r){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(l){Nt(t,r,l)}else a.current=null}function Bc(t,r,a){try{a()}catch(l){Nt(t,r,l)}}var Zp=!1;function E1(t,r){if(Ju=qi,t=Eh(),qu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var c=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var C=0,E=-1,L=-1,B=0,ne=0,ie=t,J=null;t:for(;;){for(var ge;ie!==a||c!==0&&ie.nodeType!==3||(E=C+c),ie!==p||l!==0&&ie.nodeType!==3||(L=C+l),ie.nodeType===3&&(C+=ie.nodeValue.length),(ge=ie.firstChild)!==null;)J=ie,ie=ge;for(;;){if(ie===t)break t;if(J===a&&++B===c&&(E=C),J===p&&++ne===l&&(L=C),(ge=ie.nextSibling)!==null)break;ie=J,J=ie.parentNode}ie=ge}a=E===-1||L===-1?null:{start:E,end:L}}else a=null}a=a||{start:0,end:0}}else a=null;for(ec={focusedElem:t,selectionRange:a},qi=!1,be=r;be!==null;)if(r=be,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,be=t;else for(;be!==null;){r=be;try{var Ne=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Ne!==null){var je=Ne.memoizedProps,Mt=Ne.memoizedState,A=r.stateNode,D=A.getSnapshotBeforeUpdate(r.elementType===r.type?je:dr(r.type,je),Mt);A.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var z=r.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(se){Nt(r,r.return,se)}if(t=r.sibling,t!==null){t.return=r.return,be=t;break}be=r.return}return Ne=Zp,Zp=!1,Ne}function Ha(t,r,a){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&t)===t){var p=c.destroy;c.destroy=void 0,p!==void 0&&Bc(r,a,p)}c=c.next}while(c!==l)}}function vl(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&t)===t){var l=a.create;a.destroy=l()}a=a.next}while(a!==r)}}function Uc(t){var r=t.ref;if(r!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof r=="function"?r(t):r.current=t}}function Qp(t){var r=t.alternate;r!==null&&(t.alternate=null,Qp(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[Nr],delete r[Ma],delete r[ic],delete r[s1],delete r[l1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Kp(t){return t.tag===5||t.tag===3||t.tag===4}function Yp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Kp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Hc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.nodeType===8?a.parentNode.insertBefore(t,r):a.insertBefore(t,r):(a.nodeType===8?(r=a.parentNode,r.insertBefore(t,a)):(r=a,r.appendChild(t)),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=Zs));else if(l!==4&&(t=t.child,t!==null))for(Hc(t,r,a),t=t.sibling;t!==null;)Hc(t,r,a),t=t.sibling}function Vc(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(Vc(t,r,a),t=t.sibling;t!==null;)Vc(t,r,a),t=t.sibling}var Xt=null,fr=!1;function bi(t,r,a){for(a=a.child;a!==null;)Xp(t,r,a),a=a.sibling}function Xp(t,r,a){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(nt,a)}catch{}switch(a.tag){case 5:rn||Bo(a,r);case 6:var l=Xt,c=fr;Xt=null,bi(t,r,a),Xt=l,fr=c,Xt!==null&&(fr?(t=Xt,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):Xt.removeChild(a.stateNode));break;case 18:Xt!==null&&(fr?(t=Xt,a=a.stateNode,t.nodeType===8?rc(t.parentNode,a):t.nodeType===1&&rc(t,a),fi(t)):rc(Xt,a.stateNode));break;case 4:l=Xt,c=fr,Xt=a.stateNode.containerInfo,fr=!0,bi(t,r,a),Xt=l,fr=c;break;case 0:case 11:case 14:case 15:if(!rn&&(l=a.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var p=c,C=p.destroy;p=p.tag,C!==void 0&&((p&2)!==0||(p&4)!==0)&&Bc(a,r,C),c=c.next}while(c!==l)}bi(t,r,a);break;case 1:if(!rn&&(Bo(a,r),l=a.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=a.memoizedProps,l.state=a.memoizedState,l.componentWillUnmount()}catch(E){Nt(a,r,E)}bi(t,r,a);break;case 21:bi(t,r,a);break;case 22:a.mode&1?(rn=(l=rn)||a.memoizedState!==null,bi(t,r,a),rn=l):bi(t,r,a);break;default:bi(t,r,a)}}function Jp(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new _1),r.forEach(function(l){var c=O1.bind(null,t,l);a.has(l)||(a.add(l),l.then(c,c))})}}function hr(t,r){var a=r.deletions;if(a!==null)for(var l=0;lc&&(c=C),l&=~p}if(l=c,l=Ve()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*k1(l/1960))-l,10t?16:t,Si===null)var l=!1;else{if(t=Si,Si=null,Cl=0,(Xe&6)!==0)throw Error(i(331));var c=Xe;for(Xe|=4,be=t.current;be!==null;){var p=be,C=p.child;if((be.flags&16)!==0){var E=p.deletions;if(E!==null){for(var L=0;LVe()-Gc?to(t,0):Wc|=a),Sn(t,r)}function fm(t,r){r===0&&((t.mode&1)===0?r=1:(r=Cr,Cr<<=1,(Cr&130023424)===0&&(Cr=4194304)));var a=fn();t=Zr(t,r),t!==null&&(Bi(t,r,a),Sn(t,a))}function D1(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),fm(t,a)}function O1(t,r){var a=0;switch(t.tag){case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(a=c.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(r),fm(t,a)}var hm;hm=function(t,r,a){if(t!==null)if(t.memoizedProps!==r.pendingProps||wn.current)bn=!0;else{if((t.lanes&a)===0&&(r.flags&128)===0)return bn=!1,b1(t,r,a);bn=(t.flags&131072)!==0}else bn=!1,xt&&(r.flags&1048576)!==0&&qh(r,el,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;ml(t,r),t=r.pendingProps;var c=Mo(r,en.current);Ao(r,a),c=Nc(null,r,l,t,c,a);var p=kc();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,xn(l)?(p=!0,Ys(r)):p=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,vc(r),c.updater=al,r.stateNode=c,c._reactInternals=r,wc(r,l,t,a),r=Ic(null,r,l,!0,p,a)):(r.tag=0,xt&&p&&sc(r),dn(null,r,c,a),r=r.child),r;case 16:l=r.elementType;e:{switch(ml(t,r),t=r.pendingProps,c=l._init,l=c(l._payload),r.type=l,c=r.tag=R1(l),t=dr(l,t),c){case 0:r=Oc(null,r,l,t,a);break e;case 1:r=Fp(null,r,l,t,a);break e;case 11:r=Op(null,r,l,t,a);break e;case 14:r=Ip(null,r,l,dr(l.type,t),a);break e}throw Error(i(306,l,""))}return r;case 0:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),Oc(t,r,l,c,a);case 1:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),Fp(t,r,l,c,a);case 3:e:{if(zp(r),t===null)throw Error(i(387));l=r.pendingProps,p=r.memoizedState,c=p.element,Yh(t,r),ol(r,l,null,a);var C=r.memoizedState;if(l=C.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){c=zo(Error(i(423)),r),r=Bp(t,r,l,a,c);break e}else if(l!==c){c=zo(Error(i(424)),r),r=Bp(t,r,l,a,c);break e}else for(An=mi(r.stateNode.containerInfo.firstChild),Rn=r,xt=!0,cr=null,a=ap(r,null,l,a),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Io(),l===c){r=Kr(t,r,a);break e}dn(t,r,l,a)}r=r.child}return r;case 5:return sp(r),t===null&&cc(r),l=r.type,c=r.pendingProps,p=t!==null?t.memoizedProps:null,C=c.children,tc(l,c)?C=null:p!==null&&tc(l,p)&&(r.flags|=32),$p(t,r),dn(t,r,C,a),r.child;case 6:return t===null&&cc(r),null;case 13:return Up(t,r,a);case 4:return xc(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=$o(r,null,l,a):dn(t,r,l,a),r.child;case 11:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),Op(t,r,l,c,a);case 7:return dn(t,r,r.pendingProps,a),r.child;case 8:return dn(t,r,r.pendingProps.children,a),r.child;case 12:return dn(t,r,r.pendingProps.children,a),r.child;case 10:e:{if(l=r.type._context,c=r.pendingProps,p=r.memoizedProps,C=c.value,ht(nl,l._currentValue),l._currentValue=C,p!==null)if(ur(p.value,C)){if(p.children===c.children&&!wn.current){r=Kr(t,r,a);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var E=p.dependencies;if(E!==null){C=p.child;for(var L=E.firstContext;L!==null;){if(L.context===l){if(p.tag===1){L=Qr(-1,a&-a),L.tag=2;var B=p.updateQueue;if(B!==null){B=B.shared;var ne=B.pending;ne===null?L.next=L:(L.next=ne.next,ne.next=L),B.pending=L}}p.lanes|=a,L=p.alternate,L!==null&&(L.lanes|=a),mc(p.return,a,r),E.lanes|=a;break}L=L.next}}else if(p.tag===10)C=p.type===r.type?null:p.child;else if(p.tag===18){if(C=p.return,C===null)throw Error(i(341));C.lanes|=a,E=C.alternate,E!==null&&(E.lanes|=a),mc(C,a,r),C=p.sibling}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===r){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}dn(t,r,c.children,a),r=r.child}return r;case 9:return c=r.type,l=r.pendingProps.children,Ao(r,a),c=Wn(c),l=l(c),r.flags|=1,dn(t,r,l,a),r.child;case 14:return l=r.type,c=dr(l,r.pendingProps),c=dr(l.type,c),Ip(t,r,l,c,a);case 15:return Rp(t,r,r.type,r.pendingProps,a);case 17:return l=r.type,c=r.pendingProps,c=r.elementType===l?c:dr(l,c),ml(t,r),r.tag=1,xn(l)?(t=!0,Ys(r)):t=!1,Ao(r,a),np(r,l,c),wc(r,l,c,a),Ic(null,r,l,!0,t,a);case 19:return Vp(t,r,a);case 22:return Ap(t,r,a)}throw Error(i(156,r.tag))};function pm(t,r){return at(t,r)}function I1(t,r,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(t,r,a,l){return new I1(t,r,a,l)}function td(t){return t=t.prototype,!(!t||!t.isReactComponent)}function R1(t){if(typeof t=="function")return td(t)?1:0;if(t!=null){if(t=t.$$typeof,t===H)return 11;if(t===me)return 14}return 2}function Ni(t,r){var a=t.alternate;return a===null?(a=Qn(t.tag,r,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=r,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,r=t.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Nl(t,r,a,l,c,p){var C=2;if(l=t,typeof t=="function")td(t)&&(C=1);else if(typeof t=="string")C=5;else e:switch(t){case O:return ro(a.children,c,p,r);case K:C=8,c|=8;break;case de:return t=Qn(12,a,r,c|2),t.elementType=de,t.lanes=p,t;case G:return t=Qn(13,a,r,c),t.elementType=G,t.lanes=p,t;case ee:return t=Qn(19,a,r,c),t.elementType=ee,t.lanes=p,t;case Ee:return kl(a,c,p,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case pe:C=10;break e;case R:C=9;break e;case H:C=11;break e;case me:C=14;break e;case Ce:C=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Qn(C,a,r,c),r.elementType=t,r.type=l,r.lanes=p,r}function ro(t,r,a,l){return t=Qn(7,t,l,r),t.lanes=a,t}function kl(t,r,a,l){return t=Qn(22,t,l,r),t.elementType=Ee,t.lanes=a,t.stateNode={isHidden:!1},t}function nd(t,r,a){return t=Qn(6,t,null,r),t.lanes=a,t}function rd(t,r,a){return r=Qn(4,t.children!==null?t.children:[],t.key,r),r.lanes=a,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function A1(t,r,a,l,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pa(0),this.expirationTimes=pa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pa(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function id(t,r,a,l,c,p,C,E,L){return t=new A1(t,r,a,E,L),r===1?(r=1,p===!0&&(r|=8)):r=0,p=Qn(3,null,null,r),t.current=p,p.stateNode=t,p.memoizedState={element:l,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},vc(p),t}function $1(t,r,a){var l=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),cd.exports=K1(),cd.exports}var jm;function Y1(){if(jm)return Ol;jm=1;var e=t0();return Ol.createRoot=e.createRoot,Ol.hydrateRoot=e.hydrateRoot,Ol}var X1=Y1();const J1="modulepreload",ew=function(e){return"/"+e},Tm={},Kn=function(n,i,o){let s=Promise.resolve();if(i&&i.length>0){let g=function(y){return Promise.all(y.map(x=>Promise.resolve(x).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");s=g(i.map(y=>{if(y=ew(y),y in Tm)return;Tm[y]=!0;const x=y.endsWith(".css"),b=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${b}`))return;const m=document.createElement("link");if(m.rel=x?"stylesheet":J1,x||(m.as="script"),m.crossOrigin="",m.href=y,f&&m.setAttribute("nonce",f),document.head.appendChild(m),x)return new Promise((w,N)=>{m.addEventListener("load",w),m.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return s.then(d=>{for(const f of d||[])f.status==="rejected"&&u(f.reason);return n().catch(u)})};var pf=t0();const tw=e0(pf),nw=Jg({__proto__:null,default:tw},[pf]);/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -47,8 +47,8 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var n=1;n"u")throw new Error(n)}function na(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function iw(){return Math.random().toString(36).substr(2,8)}function Lm(e,n){return{usr:e.state,key:e.key,idx:n}}function hs(e,n,i,o){return i===void 0&&(i=null),bt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?Oi(n):n,{state:i,key:n&&n.key||o||iw()})}function fo(e){let{pathname:n="/",search:i="",hash:o=""}=e;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Oi(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substr(i),e=e.substr(0,i));let o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),e&&(n.pathname=e)}return n}function ow(e,n,i,o){o===void 0&&(o={});let{window:s=document.defaultView,v5Compat:u=!1}=o,d=s.history,f=$t.Pop,g=null,y=x();y==null&&(y=0,d.replaceState(bt({},d.state,{idx:y}),""));function x(){return(d.state||{idx:null}).idx}function b(){f=$t.Pop;let _=x(),T=_==null?null:_-y;y=_,g&&g({action:f,location:S.location,delta:T})}function m(_,T){f=$t.Push;let M=hs(S.location,_,T);y=x()+1;let $=Lm(M,y),F=S.createHref(M);try{d.pushState($,"",F)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;s.location.assign(F)}u&&g&&g({action:f,location:S.location,delta:1})}function w(_,T){f=$t.Replace;let M=hs(S.location,_,T);y=x();let $=Lm(M,y),F=S.createHref(M);d.replaceState($,"",F),u&&g&&g({action:f,location:S.location,delta:0})}function N(_){let T=s.location.origin!=="null"?s.location.origin:s.location.href,M=typeof _=="string"?_:fo(_);return M=M.replace(/ $/,"%20"),Ke(T,"No window.location.(origin|href) available to create URL for href: "+M),new URL(M,T)}let S={get action(){return f},get location(){return e(s,d)},listen(_){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(Pm,b),g=_,()=>{s.removeEventListener(Pm,b),g=null}},createHref(_){return n(s,_)},createURL:N,encodeLocation(_){let T=N(_);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:m,replace:w,go(_){return d.go(_)}};return S}var rt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rt||(rt={}));const aw=new Set(["lazy","caseSensitive","path","id","index","children"]);function sw(e){return e.index===!0}function lu(e,n,i,o){return i===void 0&&(i=[]),o===void 0&&(o={}),e.map((s,u)=>{let d=[...i,String(u)],f=typeof s.id=="string"?s.id:d.join("-");if(Ke(s.index!==!0||!s.children,"Cannot specify children on an index route"),Ke(!o[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),sw(s)){let g=bt({},s,n(s),{id:f});return o[f]=g,g}else{let g=bt({},s,n(s),{id:f,children:void 0});return o[f]=g,s.children&&(g.children=lu(s.children,n,d,o)),g}})}function ao(e,n,i){return i===void 0&&(i="/"),eu(e,n,i,!1)}function eu(e,n,i,o){let s=typeof n=="string"?Oi(n):n,u=la(s.pathname||"/",i);if(u==null)return null;let d=n0(e);uw(d);let f=null;for(let g=0;f==null&&g{let g={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};g.relativePath.startsWith("/")&&(Ke(g.relativePath.startsWith(o),'Absolute route path "'+g.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),g.relativePath=g.relativePath.slice(o.length));let y=ni([o,g.relativePath]),x=i.concat(g);u.children&&u.children.length>0&&(Ke(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+y+'".')),n0(u.children,n,x,y)),!(u.path==null&&!u.index)&&n.push({path:y,score:gw(y,u.index),routesMeta:x})};return e.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))s(u,d);else for(let g of r0(u.path))s(u,d,g)}),n}function r0(e){let n=e.split("/");if(n.length===0)return[];let[i,...o]=n,s=i.endsWith("?"),u=i.replace(/\?$/,"");if(o.length===0)return s?[u,""]:[u];let d=r0(o.join("/")),f=[];return f.push(...d.map(g=>g===""?u:[u,g].join("/"))),s&&f.push(...d),f.map(g=>e.startsWith("/")&&g===""?"/":g)}function uw(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:vw(n.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}const cw=/^:[\w-]+$/,dw=3,fw=2,hw=1,pw=10,mw=-2,Mm=e=>e==="*";function gw(e,n){let i=e.split("/"),o=i.length;return i.some(Mm)&&(o+=mw),n&&(o+=fw),i.filter(s=>!Mm(s)).reduce((s,u)=>s+(cw.test(u)?dw:u===""?hw:pw),o)}function vw(e,n){return e.length===n.length&&e.slice(0,-1).every((o,s)=>o===n[s])?e[e.length-1]-n[n.length-1]:0}function yw(e,n,i){i===void 0&&(i=!1);let{routesMeta:o}=e,s={},u="/",d=[];for(let f=0;f{let{paramName:m,isOptional:w}=x;if(m==="*"){let S=f[b]||"";d=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const N=f[b];return w&&!N?y[m]=void 0:y[m]=(N||"").replace(/%2F/g,"/"),y},{}),pathname:u,pathnameBase:d,pattern:e}}function ww(e,n,i){n===void 0&&(n=!1),i===void 0&&(i=!0),na(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,g)=>(o.push({paramName:f,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),o]}function xw(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return na(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function la(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,o=e.charAt(i);return o&&o!=="/"?null:e.slice(i)||"/"}function bw(e,n){n===void 0&&(n="/");let{pathname:i,search:o="",hash:s=""}=typeof e=="string"?Oi(e):e;return{pathname:i?i.startsWith("/")?i:Cw(i,n):n,search:_w(o),hash:Ew(s)}}function Cw(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function hd(e,n,i,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function i0(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function mf(e,n){let i=i0(e);return n?i.map((o,s)=>s===i.length-1?o.pathname:o.pathnameBase):i.map(o=>o.pathnameBase)}function gf(e,n,i,o){o===void 0&&(o=!1);let s;typeof e=="string"?s=Oi(e):(s=bt({},e),Ke(!s.pathname||!s.pathname.includes("?"),hd("?","pathname","search",s)),Ke(!s.pathname||!s.pathname.includes("#"),hd("#","pathname","hash",s)),Ke(!s.search||!s.search.includes("#"),hd("#","search","hash",s)));let u=e===""||s.pathname==="",d=u?"/":s.pathname,f;if(d==null)f=i;else{let b=n.length-1;if(!o&&d.startsWith("..")){let m=d.split("/");for(;m[0]==="..";)m.shift(),b-=1;s.pathname=m.join("/")}f=b>=0?n[b]:"/"}let g=bw(s,f),y=d&&d!=="/"&&d.endsWith("/"),x=(u||d===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(y||x)&&(g.pathname+="/"),g}const ni=e=>e.join("/").replace(/\/\/+/g,"/"),Sw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_w=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ew=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class uu{constructor(n,i,o,s){s===void 0&&(s=!1),this.status=n,this.statusText=i||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}}function ps(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o0=["post","put","patch","delete"],Nw=new Set(o0),kw=["get",...o0],jw=new Set(kw),Tw=new Set([301,302,303,307,308]),Pw=new Set([307,308]),pd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Lw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qa={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),a0="remix-router-transitions";function Dw(e){const n=e.window?e.window:typeof window<"u"?window:void 0,i=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u",o=!i;Ke(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s;if(e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let P=e.detectErrorBoundary;s=I=>({hasErrorBoundary:P(I)})}else s=Mw;let u={},d=lu(e.routes,s,void 0,u),f,g=e.basename||"/",y=e.dataStrategy||Aw,x=e.patchRoutesOnNavigation,b=bt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,w=new Set,N=null,S=null,_=null,T=e.hydrationData!=null,M=ao(d,e.history.location,g),$=!1,F=null;if(M==null&&!x){let P=En(404,{pathname:e.history.location.pathname}),{matches:I,route:U}=Vm(d);M=I,F={[U.id]:P}}M&&!e.hydrationData&&Xn(M,d,e.history.location.pathname).active&&(M=null);let W;if(M)if(M.some(P=>P.route.lazy))W=!1;else if(!M.some(P=>P.route.loader))W=!0;else if(b.v7_partialHydration){let P=e.hydrationData?e.hydrationData.loaderData:null,I=e.hydrationData?e.hydrationData.errors:null;if(I){let U=M.findIndex(X=>I[X.route.id]!==void 0);W=M.slice(0,U+1).every(X=>!Fd(X.route,P,I))}else W=M.every(U=>!Fd(U.route,P,I))}else W=e.hydrationData!=null;else if(W=!1,M=[],b.v7_partialHydration){let P=Xn(null,d,e.history.location.pathname);P.active&&P.matches&&($=!0,M=P.matches)}let de,O={historyAction:e.history.action,location:e.history.location,matches:M,initialized:W,navigation:pd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||F,fetchers:new Map,blockers:new Map},K=$t.Pop,ce=!1,he,R=!1,H=new Map,G=null,ee=!1,pe=!1,Ce=[],_e=new Set,Z=new Map,le=0,j=-1,V=new Map,oe=new Set,Se=new Map,se=new Map,re=new Set,te=new Map,Q=new Map,Y;function Je(){if(m=e.history.listen(P=>{let{action:I,location:U,delta:X}=P;if(Y){Y(),Y=void 0;return}na(Q.size===0||X!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ue=Fr({currentLocation:O.location,nextLocation:U,historyAction:I});if(ue&&X!=null){let Te=new Promise(De=>{Y=De});e.history.go(X*-1),Mn(ue,{state:"blocked",location:U,proceed(){Mn(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Te.then(()=>e.history.go(X))},reset(){let De=new Map(O.blockers);De.set(ue,Qa),ot({blockers:De})}});return}return ct(I,U)}),i){Yw(n,H);let P=()=>Xw(n,H);n.addEventListener("pagehide",P),G=()=>n.removeEventListener("pagehide",P)}return O.initialized||ct($t.Pop,O.location,{initialHydration:!0}),de}function an(){m&&m(),G&&G(),w.clear(),he&&he.abort(),O.fetchers.forEach((P,I)=>wt(I)),O.blockers.forEach((P,I)=>$r(I))}function Ut(P){return w.add(P),()=>w.delete(P)}function ot(P,I){I===void 0&&(I={}),O=bt({},O,P);let U=[],X=[];b.v7_fetcherPersist&&O.fetchers.forEach((ue,Te)=>{ue.state==="idle"&&(re.has(Te)?X.push(Te):U.push(Te))}),re.forEach(ue=>{!O.fetchers.has(ue)&&!Z.has(ue)&&X.push(ue)}),[...w].forEach(ue=>ue(O,{deletedFetchers:X,viewTransitionOpts:I.viewTransitionOpts,flushSync:I.flushSync===!0})),b.v7_fetcherPersist?(U.forEach(ue=>O.fetchers.delete(ue)),X.forEach(ue=>wt(ue))):X.forEach(ue=>re.delete(ue))}function vt(P,I,U){var X,ue;let{flushSync:Te}=U===void 0?{}:U,De=O.actionData!=null&&O.navigation.formMethod!=null&&mr(O.navigation.formMethod)&&O.navigation.state==="loading"&&((X=P.state)==null?void 0:X._isRedirect)!==!0,ye;I.actionData?Object.keys(I.actionData).length>0?ye=I.actionData:ye=null:De?ye=O.actionData:ye=null;let xe=I.loaderData?Um(O.loaderData,I.loaderData,I.matches||[],I.errors):O.loaderData,we=O.blockers;we.size>0&&(we=new Map(we),we.forEach((He,Tt)=>we.set(Tt,Qa)));let ve=ce===!0||O.navigation.formMethod!=null&&mr(O.navigation.formMethod)&&((ue=P.state)==null?void 0:ue._isRedirect)!==!0;f&&(d=f,f=void 0),ee||K===$t.Pop||(K===$t.Push?e.history.push(P,P.state):K===$t.Replace&&e.history.replace(P,P.state));let Fe;if(K===$t.Pop){let He=H.get(O.location.pathname);He&&He.has(P.pathname)?Fe={currentLocation:O.location,nextLocation:P}:H.has(P.pathname)&&(Fe={currentLocation:P,nextLocation:O.location})}else if(R){let He=H.get(O.location.pathname);He?He.add(P.pathname):(He=new Set([P.pathname]),H.set(O.location.pathname,He)),Fe={currentLocation:O.location,nextLocation:P}}ot(bt({},I,{actionData:ye,loaderData:xe,historyAction:K,location:P,initialized:!0,navigation:pd,revalidation:"idle",restoreScrollPosition:$i(P,I.matches||O.matches),preventScrollReset:ve,blockers:we}),{viewTransitionOpts:Fe,flushSync:Te===!0}),K=$t.Pop,ce=!1,R=!1,ee=!1,pe=!1,Ce=[]}async function lt(P,I){if(typeof P=="number"){e.history.go(P);return}let U=$d(O.location,O.matches,g,b.v7_prependBasename,P,b.v7_relativeSplatPath,I?.fromRouteId,I?.relative),{path:X,submission:ue,error:Te}=Om(b.v7_normalizeFormMethod,!1,U,I),De=O.location,ye=hs(O.location,X,I&&I.state);ye=bt({},ye,e.history.encodeLocation(ye));let xe=I&&I.replace!=null?I.replace:void 0,we=$t.Push;xe===!0?we=$t.Replace:xe===!1||ue!=null&&mr(ue.formMethod)&&ue.formAction===O.location.pathname+O.location.search&&(we=$t.Replace);let ve=I&&"preventScrollReset"in I?I.preventScrollReset===!0:void 0,Fe=(I&&I.flushSync)===!0,He=Fr({currentLocation:De,nextLocation:ye,historyAction:we});if(He){Mn(He,{state:"blocked",location:ye,proceed(){Mn(He,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),lt(P,I)},reset(){let Tt=new Map(O.blockers);Tt.set(He,Qa),ot({blockers:Tt})}});return}return await ct(we,ye,{submission:ue,pendingError:Te,preventScrollReset:ve,replace:I&&I.replace,enableViewTransition:I&&I.viewTransition,flushSync:Fe})}function pt(){if(Yn(),ot({revalidation:"loading"}),O.navigation.state!=="submitting"){if(O.navigation.state==="idle"){ct(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}ct(K||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:R===!0})}}async function ct(P,I,U){he&&he.abort(),he=null,K=P,ee=(U&&U.startUninterruptedRevalidation)===!0,Ai(O.location,O.matches),ce=(U&&U.preventScrollReset)===!0,R=(U&&U.enableViewTransition)===!0;let X=f||d,ue=U&&U.overrideNavigation,Te=U!=null&&U.initialHydration&&O.matches&&O.matches.length>0&&!$?O.matches:ao(X,I,g),De=(U&&U.flushSync)===!0;if(Te&&O.initialized&&!pe&&Hw(O.location,I)&&!(U&&U.submission&&mr(U.submission.formMethod))){vt(I,{matches:Te},{flushSync:De});return}let ye=Xn(Te,X,I.pathname);if(ye.active&&ye.matches&&(Te=ye.matches),!Te){let{error:Ye,notFoundMatches:Qe,route:at}=un(I.pathname);vt(I,{matches:Qe,loaderData:{},errors:{[at.id]:Ye}},{flushSync:De});return}he=new AbortController;let xe=qo(e.history,I,he.signal,U&&U.submission),we;if(U&&U.pendingError)we=[so(Te).route.id,{type:rt.error,error:U.pendingError}];else if(U&&U.submission&&mr(U.submission.formMethod)){let Ye=await dt(xe,I,U.submission,Te,ye.active,{replace:U.replace,flushSync:De});if(Ye.shortCircuited)return;if(Ye.pendingActionResult){let[Qe,at]=Ye.pendingActionResult;if(zn(at)&&ps(at.error)&&at.error.status===404){he=null,vt(I,{matches:Ye.matches,loaderData:{},errors:{[Qe]:at.error}});return}}Te=Ye.matches||Te,we=Ye.pendingActionResult,ue=md(I,U.submission),De=!1,ye.active=!1,xe=qo(e.history,xe.url,xe.signal)}let{shortCircuited:ve,matches:Fe,loaderData:He,errors:Tt}=await yt(xe,I,Te,ye.active,ue,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,De,we);ve||(he=null,vt(I,bt({matches:Fe||Te},Hm(we),{loaderData:He,errors:Tt})))}async function dt(P,I,U,X,ue,Te){Te===void 0&&(Te={}),Yn();let De=Qw(I,U);if(ot({navigation:De},{flushSync:Te.flushSync===!0}),ue){let we=await xr(X,I.pathname,P.signal);if(we.type==="aborted")return{shortCircuited:!0};if(we.type==="error"){let ve=so(we.partialMatches).route.id;return{matches:we.partialMatches,pendingActionResult:[ve,{type:rt.error,error:we.error}]}}else if(we.matches)X=we.matches;else{let{notFoundMatches:ve,error:Fe,route:He}=un(I.pathname);return{matches:ve,pendingActionResult:[He.id,{type:rt.error,error:Fe}]}}}let ye,xe=ss(X,I);if(!xe.route.action&&!xe.route.lazy)ye={type:rt.error,error:En(405,{method:P.method,pathname:I.pathname,routeId:xe.route.id})};else if(ye=(await gn("action",O,P,[xe],X,null))[xe.route.id],P.signal.aborted)return{shortCircuited:!0};if(uo(ye)){let we;return Te&&Te.replace!=null?we=Te.replace:we=Fm(ye.response.headers.get("Location"),new URL(P.url),g)===O.location.pathname+O.location.search,await mn(P,ye,!0,{submission:U,replace:we}),{shortCircuited:!0}}if(Mi(ye))throw En(400,{type:"defer-action"});if(zn(ye)){let we=so(X,xe.route.id);return(Te&&Te.replace)!==!0&&(K=$t.Push),{matches:X,pendingActionResult:[we.route.id,ye]}}return{matches:X,pendingActionResult:[xe.route.id,ye]}}async function yt(P,I,U,X,ue,Te,De,ye,xe,we,ve){let Fe=ue||md(I,Te),He=Te||De||Wm(Fe),Tt=!ee&&(!b.v7_partialHydration||!xe);if(X){if(Tt){let nt=It(ve);ot(bt({navigation:Fe},nt!==void 0?{actionData:nt}:{}),{flushSync:we})}let Ve=await xr(U,I.pathname,P.signal);if(Ve.type==="aborted")return{shortCircuited:!0};if(Ve.type==="error"){let nt=so(Ve.partialMatches).route.id;return{matches:Ve.partialMatches,loaderData:{},errors:{[nt]:Ve.error}}}else if(Ve.matches)U=Ve.matches;else{let{error:nt,notFoundMatches:Pt,route:Br}=un(I.pathname);return{matches:Pt,loaderData:{},errors:{[Br.id]:nt}}}}let Ye=f||d,[Qe,at]=Rm(e.history,O,U,He,I,b.v7_partialHydration&&xe===!0,b.v7_skipActionErrorRevalidation,pe,Ce,_e,re,Se,oe,Ye,g,ve);if(Dn(Ve=>!(U&&U.some(nt=>nt.route.id===Ve))||Qe&&Qe.some(nt=>nt.route.id===Ve)),j=++le,Qe.length===0&&at.length===0){let Ve=Ri();return vt(I,bt({matches:U,loaderData:{},errors:ve&&zn(ve[1])?{[ve[0]]:ve[1].error}:null},Hm(ve),Ve?{fetchers:new Map(O.fetchers)}:{}),{flushSync:we}),{shortCircuited:!0}}if(Tt){let Ve={};if(!X){Ve.navigation=Fe;let nt=It(ve);nt!==void 0&&(Ve.actionData=nt)}at.length>0&&(Ve.fetchers=sn(at)),ot(Ve,{flushSync:we})}at.forEach(Ve=>{Vt(Ve.key),Ve.controller&&Z.set(Ve.key,Ve.controller)});let Jn=()=>at.forEach(Ve=>Vt(Ve.key));he&&he.signal.addEventListener("abort",Jn);let{loaderResults:vn,fetcherResults:yn}=await Rr(O,U,Qe,at,P);if(P.signal.aborted)return{shortCircuited:!0};he&&he.signal.removeEventListener("abort",Jn),at.forEach(Ve=>Z.delete(Ve.key));let qe=Il(vn);if(qe)return await mn(P,qe.result,!0,{replace:ye}),{shortCircuited:!0};if(qe=Il(yn),qe)return oe.add(qe.key),await mn(P,qe.result,!0,{replace:ye}),{shortCircuited:!0};let{loaderData:Fi,errors:cn}=Bm(O,U,vn,ve,at,yn,te);te.forEach((Ve,nt)=>{Ve.subscribe(Pt=>{(Pt||Ve.done)&&te.delete(nt)})}),b.v7_partialHydration&&xe&&O.errors&&(cn=bt({},O.errors,cn));let Hn=Ri(),Ft=si(j),ui=Hn||Ft||at.length>0;return bt({matches:U,loaderData:Fi,errors:cn},ui?{fetchers:new Map(O.fetchers)}:{})}function It(P){if(P&&!zn(P[1]))return{[P[0]]:P[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function sn(P){return P.forEach(I=>{let U=O.fetchers.get(I.key),X=Ka(void 0,U?U.data:void 0);O.fetchers.set(I.key,X)}),new Map(O.fetchers)}function pn(P,I,U,X){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Vt(P);let ue=(X&&X.flushSync)===!0,Te=f||d,De=$d(O.location,O.matches,g,b.v7_prependBasename,U,b.v7_relativeSplatPath,I,X?.relative),ye=ao(Te,De,g),xe=Xn(ye,Te,De);if(xe.active&&xe.matches&&(ye=xe.matches),!ye){Yt(P,I,En(404,{pathname:De}),{flushSync:ue});return}let{path:we,submission:ve,error:Fe}=Om(b.v7_normalizeFormMethod,!0,De,X);if(Fe){Yt(P,I,Fe,{flushSync:ue});return}let He=ss(ye,we),Tt=(X&&X.preventScrollReset)===!0;if(ve&&mr(ve.formMethod)){Ln(P,I,we,He,ye,xe.active,ue,Tt,ve);return}Se.set(P,{routeId:I,path:we}),ai(P,I,we,He,ye,xe.active,ue,Tt,ve)}async function Ln(P,I,U,X,ue,Te,De,ye,xe){Yn(),Se.delete(P);function we(We){if(!We.route.action&&!We.route.lazy){let br=En(405,{method:xe.formMethod,pathname:U,routeId:I});return Yt(P,I,br,{flushSync:De}),!0}return!1}if(!Te&&we(X))return;let ve=O.fetchers.get(P);Ht(P,Kw(xe,ve),{flushSync:De});let Fe=new AbortController,He=qo(e.history,U,Fe.signal,xe);if(Te){let We=await xr(ue,new URL(He.url).pathname,He.signal,P);if(We.type==="aborted")return;if(We.type==="error"){Yt(P,I,We.error,{flushSync:De});return}else if(We.matches){if(ue=We.matches,X=ss(ue,U),we(X))return}else{Yt(P,I,En(404,{pathname:U}),{flushSync:De});return}}Z.set(P,Fe);let Tt=le,Qe=(await gn("action",O,He,[X],ue,P))[X.route.id];if(He.signal.aborted){Z.get(P)===Fe&&Z.delete(P);return}if(b.v7_fetcherPersist&&re.has(P)){if(uo(Qe)||zn(Qe)){Ht(P,Li(void 0));return}}else{if(uo(Qe))if(Z.delete(P),j>Tt){Ht(P,Li(void 0));return}else return oe.add(P),Ht(P,Ka(xe)),mn(He,Qe,!1,{fetcherSubmission:xe,preventScrollReset:ye});if(zn(Qe)){Yt(P,I,Qe.error);return}}if(Mi(Qe))throw En(400,{type:"defer-action"});let at=O.navigation.location||O.location,Jn=qo(e.history,at,Fe.signal),vn=f||d,yn=O.navigation.state!=="idle"?ao(vn,O.navigation.location,g):O.matches;Ke(yn,"Didn't find any matches after fetcher action");let qe=++le;V.set(P,qe);let Fi=Ka(xe,Qe.data);O.fetchers.set(P,Fi);let[cn,Hn]=Rm(e.history,O,yn,xe,at,!1,b.v7_skipActionErrorRevalidation,pe,Ce,_e,re,Se,oe,vn,g,[X.route.id,Qe]);Hn.filter(We=>We.key!==P).forEach(We=>{let br=We.key,ci=O.fetchers.get(br),da=Ka(void 0,ci?ci.data:void 0);O.fetchers.set(br,da),Vt(br),We.controller&&Z.set(br,We.controller)}),ot({fetchers:new Map(O.fetchers)});let Ft=()=>Hn.forEach(We=>Vt(We.key));Fe.signal.addEventListener("abort",Ft);let{loaderResults:ui,fetcherResults:Ve}=await Rr(O,yn,cn,Hn,Jn);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",Ft),V.delete(P),Z.delete(P),Hn.forEach(We=>Z.delete(We.key));let nt=Il(ui);if(nt)return mn(Jn,nt.result,!1,{preventScrollReset:ye});if(nt=Il(Ve),nt)return oe.add(nt.key),mn(Jn,nt.result,!1,{preventScrollReset:ye});let{loaderData:Pt,errors:Br}=Bm(O,yn,ui,void 0,Hn,Ve,te);if(O.fetchers.has(P)){let We=Li(Qe.data);O.fetchers.set(P,We)}si(qe),O.navigation.state==="loading"&&qe>j?(Ke(K,"Expected pending action"),he&&he.abort(),vt(O.navigation.location,{matches:yn,loaderData:Pt,errors:Br,fetchers:new Map(O.fetchers)})):(ot({errors:Br,loaderData:Um(O.loaderData,Pt,yn,Br),fetchers:new Map(O.fetchers)}),pe=!1)}async function ai(P,I,U,X,ue,Te,De,ye,xe){let we=O.fetchers.get(P);Ht(P,Ka(xe,we?we.data:void 0),{flushSync:De});let ve=new AbortController,Fe=qo(e.history,U,ve.signal);if(Te){let Qe=await xr(ue,new URL(Fe.url).pathname,Fe.signal,P);if(Qe.type==="aborted")return;if(Qe.type==="error"){Yt(P,I,Qe.error,{flushSync:De});return}else if(Qe.matches)ue=Qe.matches,X=ss(ue,U);else{Yt(P,I,En(404,{pathname:U}),{flushSync:De});return}}Z.set(P,ve);let He=le,Ye=(await gn("loader",O,Fe,[X],ue,P))[X.route.id];if(Mi(Ye)&&(Ye=await yf(Ye,Fe.signal,!0)||Ye),Z.get(P)===ve&&Z.delete(P),!Fe.signal.aborted){if(re.has(P)){Ht(P,Li(void 0));return}if(uo(Ye))if(j>He){Ht(P,Li(void 0));return}else{oe.add(P),await mn(Fe,Ye,!1,{preventScrollReset:ye});return}if(zn(Ye)){Yt(P,I,Ye.error);return}Ke(!Mi(Ye),"Unhandled fetcher deferred data"),Ht(P,Li(Ye.data))}}async function mn(P,I,U,X){let{submission:ue,fetcherSubmission:Te,preventScrollReset:De,replace:ye}=X===void 0?{}:X;I.response.headers.has("X-Remix-Revalidate")&&(pe=!0);let xe=I.response.headers.get("Location");Ke(xe,"Expected a Location header on the redirect Response"),xe=Fm(xe,new URL(P.url),g);let we=hs(O.location,xe,{_isRedirect:!0});if(i){let Qe=!1;if(I.response.headers.has("X-Remix-Reload-Document"))Qe=!0;else if(vf.test(xe)){const at=e.history.createURL(xe);Qe=at.origin!==n.location.origin||la(at.pathname,g)==null}if(Qe){ye?n.location.replace(xe):n.location.assign(xe);return}}he=null;let ve=ye===!0||I.response.headers.has("X-Remix-Replace")?$t.Replace:$t.Push,{formMethod:Fe,formAction:He,formEncType:Tt}=O.navigation;!ue&&!Te&&Fe&&He&&Tt&&(ue=Wm(O.navigation));let Ye=ue||Te;if(Pw.has(I.response.status)&&Ye&&mr(Ye.formMethod))await ct(ve,we,{submission:bt({},Ye,{formAction:xe}),preventScrollReset:De||ce,enableViewTransition:U?R:void 0});else{let Qe=md(we,ue);await ct(ve,we,{overrideNavigation:Qe,fetcherSubmission:Te,preventScrollReset:De||ce,enableViewTransition:U?R:void 0})}}async function gn(P,I,U,X,ue,Te){let De,ye={};try{De=await $w(y,P,I,U,X,ue,Te,u,s)}catch(xe){return X.forEach(we=>{ye[we.route.id]={type:rt.error,error:xe}}),ye}for(let[xe,we]of Object.entries(De))if(Vw(we)){let ve=we.result;ye[xe]={type:rt.redirect,response:Bw(ve,U,xe,ue,g,b.v7_relativeSplatPath)}}else ye[xe]=await zw(we);return ye}async function Rr(P,I,U,X,ue){let Te=P.matches,De=gn("loader",P,ue,U,I,null),ye=Promise.all(X.map(async ve=>{if(ve.matches&&ve.match&&ve.controller){let He=(await gn("loader",P,qo(e.history,ve.path,ve.controller.signal),[ve.match],ve.matches,ve.key))[ve.match.route.id];return{[ve.key]:He}}else return Promise.resolve({[ve.key]:{type:rt.error,error:En(404,{pathname:ve.path})}})})),xe=await De,we=(await ye).reduce((ve,Fe)=>Object.assign(ve,Fe),{});return await Promise.all([Gw(I,xe,ue.signal,Te,P.loaderData),Zw(I,we,X)]),{loaderResults:xe,fetcherResults:we}}function Yn(){pe=!0,Ce.push(...Dn()),Se.forEach((P,I)=>{Z.has(I)&&_e.add(I),Vt(I)})}function Ht(P,I,U){U===void 0&&(U={}),O.fetchers.set(P,I),ot({fetchers:new Map(O.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Yt(P,I,U,X){X===void 0&&(X={});let ue=so(O.matches,I);wt(P),ot({errors:{[ue.route.id]:U},fetchers:new Map(O.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function Ct(P){return se.set(P,(se.get(P)||0)+1),re.has(P)&&re.delete(P),O.fetchers.get(P)||Lw}function wt(P){let I=O.fetchers.get(P);Z.has(P)&&!(I&&I.state==="loading"&&V.has(P))&&Vt(P),Se.delete(P),V.delete(P),oe.delete(P),b.v7_fetcherPersist&&re.delete(P),_e.delete(P),O.fetchers.delete(P)}function ln(P){let I=(se.get(P)||0)-1;I<=0?(se.delete(P),re.add(P),b.v7_fetcherPersist||wt(P)):se.set(P,I),ot({fetchers:new Map(O.fetchers)})}function Vt(P){let I=Z.get(P);I&&(I.abort(),Z.delete(P))}function yr(P){for(let I of P){let U=Ct(I),X=Li(U.data);O.fetchers.set(I,X)}}function Ri(){let P=[],I=!1;for(let U of oe){let X=O.fetchers.get(U);Ke(X,"Expected fetcher: "+U),X.state==="loading"&&(oe.delete(U),P.push(U),I=!0)}return yr(P),I}function si(P){let I=[];for(let[U,X]of V)if(X0}function Ar(P,I){let U=O.blockers.get(P)||Qa;return Q.get(P)!==I&&Q.set(P,I),U}function $r(P){O.blockers.delete(P),Q.delete(P)}function Mn(P,I){let U=O.blockers.get(P)||Qa;Ke(U.state==="unblocked"&&I.state==="blocked"||U.state==="blocked"&&I.state==="blocked"||U.state==="blocked"&&I.state==="proceeding"||U.state==="blocked"&&I.state==="unblocked"||U.state==="proceeding"&&I.state==="unblocked","Invalid blocker state transition: "+U.state+" -> "+I.state);let X=new Map(O.blockers);X.set(P,I),ot({blockers:X})}function Fr(P){let{currentLocation:I,nextLocation:U,historyAction:X}=P;if(Q.size===0)return;Q.size>1&&na(!1,"A router only supports one blocker at a time");let ue=Array.from(Q.entries()),[Te,De]=ue[ue.length-1],ye=O.blockers.get(Te);if(!(ye&&ye.state==="proceeding")&&De({currentLocation:I,nextLocation:U,historyAction:X}))return Te}function un(P){let I=En(404,{pathname:P}),U=f||d,{matches:X,route:ue}=Vm(U);return Dn(),{notFoundMatches:X,route:ue,error:I}}function Dn(P){let I=[];return te.forEach((U,X)=>{(!P||P(X))&&(U.cancel(),I.push(X),te.delete(X))}),I}function zr(P,I,U){if(N=P,_=I,S=U||null,!T&&O.navigation===pd){T=!0;let X=$i(O.location,O.matches);X!=null&&ot({restoreScrollPosition:X})}return()=>{N=null,_=null,S=null}}function wr(P,I){return S&&S(P,I.map(X=>lw(X,O.loaderData)))||P.key}function Ai(P,I){if(N&&_){let U=wr(P,I);N[U]=_()}}function $i(P,I){if(N){let U=wr(P,I),X=N[U];if(typeof X=="number")return X}return null}function Xn(P,I,U){if(x)if(P){if(Object.keys(P[0].params).length>0)return{active:!0,matches:eu(I,U,g,!0)}}else return{active:!0,matches:eu(I,U,g,!0)||[]};return{active:!1,matches:null}}async function xr(P,I,U,X){if(!x)return{type:"success",matches:P};let ue=P;for(;;){let Te=f==null,De=f||d,ye=u;try{await x({signal:U,path:I,matches:ue,fetcherKey:X,patch:(ve,Fe)=>{U.aborted||$m(ve,Fe,De,ye,s)}})}catch(ve){return{type:"error",error:ve,partialMatches:ue}}finally{Te&&!U.aborted&&(d=[...d])}if(U.aborted)return{type:"aborted"};let xe=ao(De,I,g);if(xe)return{type:"success",matches:xe};let we=eu(De,I,g,!0);if(!we||ue.length===we.length&&ue.every((ve,Fe)=>ve.route.id===we[Fe].route.id))return{type:"success",matches:null};ue=we}}function li(P){u={},f=lu(P,s,void 0,u)}function On(P,I){let U=f==null;$m(P,I,f||d,u,s),U&&(d=[...d],ot({}))}return de={get basename(){return g},get future(){return b},get state(){return O},get routes(){return d},get window(){return n},initialize:Je,subscribe:Ut,enableScrollRestoration:zr,navigate:lt,fetch:pn,revalidate:pt,createHref:P=>e.history.createHref(P),encodeLocation:P=>e.history.encodeLocation(P),getFetcher:Ct,deleteFetcher:ln,dispose:an,getBlocker:Ar,deleteBlocker:$r,patchRoutes:On,_internalFetchControllers:Z,_internalActiveDeferreds:te,_internalSetRoutes:li},de}function Ow(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $d(e,n,i,o,s,u,d,f){let g,y;if(d){g=[];for(let b of n)if(g.push(b),b.route.id===d){y=b;break}}else g=n,y=n[n.length-1];let x=gf(s||".",mf(g,u),la(e.pathname,i)||e.pathname,f==="path");if(s==null&&(x.search=e.search,x.hash=e.hash),(s==null||s===""||s===".")&&y){let b=wf(x.search);if(y.route.index&&!b)x.search=x.search?x.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&b){let m=new URLSearchParams(x.search),w=m.getAll("index");m.delete("index"),w.filter(S=>S).forEach(S=>m.append("index",S));let N=m.toString();x.search=N?"?"+N:""}}return o&&i!=="/"&&(x.pathname=x.pathname==="/"?i:ni([i,x.pathname])),fo(x)}function Om(e,n,i,o){if(!o||!Ow(o))return{path:i};if(o.formMethod&&!Ww(o.formMethod))return{path:i,error:En(405,{method:o.formMethod})};let s=()=>({path:i,error:En(400,{type:"invalid-body"})}),u=o.formMethod||"get",d=e?u.toUpperCase():u.toLowerCase(),f=u0(i);if(o.body!==void 0){if(o.formEncType==="text/plain"){if(!mr(d))return s();let m=typeof o.body=="string"?o.body:o.body instanceof FormData||o.body instanceof URLSearchParams?Array.from(o.body.entries()).reduce((w,N)=>{let[S,_]=N;return""+w+S+"="+_+` -`},""):String(o.body);return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:void 0,text:m}}}else if(o.formEncType==="application/json"){if(!mr(d))return s();try{let m=typeof o.body=="string"?JSON.parse(o.body):o.body;return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:m,text:void 0}}}catch{return s()}}}Ke(typeof FormData=="function","FormData is not available in this environment");let g,y;if(o.formData)g=zd(o.formData),y=o.formData;else if(o.body instanceof FormData)g=zd(o.body),y=o.body;else if(o.body instanceof URLSearchParams)g=o.body,y=zm(g);else if(o.body==null)g=new URLSearchParams,y=new FormData;else try{g=new URLSearchParams(o.body),y=zm(g)}catch{return s()}let x={formMethod:d,formAction:f,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(mr(x.formMethod))return{path:i,submission:x};let b=Oi(i);return n&&b.search&&wf(b.search)&&g.append("index",""),b.search="?"+g,{path:fo(b),submission:x}}function Im(e,n,i){i===void 0&&(i=!1);let o=e.findIndex(s=>s.route.id===n);return o>=0?e.slice(0,i?o+1:o):e}function Rm(e,n,i,o,s,u,d,f,g,y,x,b,m,w,N,S){let _=S?zn(S[1])?S[1].error:S[1].data:void 0,T=e.createURL(n.location),M=e.createURL(s),$=i;u&&n.errors?$=Im(i,Object.keys(n.errors)[0],!0):S&&zn(S[1])&&($=Im(i,S[0]));let F=S?S[1].statusCode:void 0,W=d&&F&&F>=400,de=$.filter((K,ce)=>{let{route:he}=K;if(he.lazy)return!0;if(he.loader==null)return!1;if(u)return Fd(he,n.loaderData,n.errors);if(Iw(n.loaderData,n.matches[ce],K)||g.some(G=>G===K.route.id))return!0;let R=n.matches[ce],H=K;return Am(K,bt({currentUrl:T,currentParams:R.params,nextUrl:M,nextParams:H.params},o,{actionResult:_,actionStatus:F,defaultShouldRevalidate:W?!1:f||T.pathname+T.search===M.pathname+M.search||T.search!==M.search||s0(R,H)}))}),O=[];return b.forEach((K,ce)=>{if(u||!i.some(ee=>ee.route.id===K.routeId)||x.has(ce))return;let he=ao(w,K.path,N);if(!he){O.push({key:ce,routeId:K.routeId,path:K.path,matches:null,match:null,controller:null});return}let R=n.fetchers.get(ce),H=ss(he,K.path),G=!1;m.has(ce)?G=!1:y.has(ce)?(y.delete(ce),G=!0):R&&R.state!=="idle"&&R.data===void 0?G=f:G=Am(H,bt({currentUrl:T,currentParams:n.matches[n.matches.length-1].params,nextUrl:M,nextParams:i[i.length-1].params},o,{actionResult:_,actionStatus:F,defaultShouldRevalidate:W?!1:f})),G&&O.push({key:ce,routeId:K.routeId,path:K.path,matches:he,match:H,controller:new AbortController})}),[de,O]}function Fd(e,n,i){if(e.lazy)return!0;if(!e.loader)return!1;let o=n!=null&&n[e.id]!==void 0,s=i!=null&&i[e.id]!==void 0;return!o&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!o&&!s}function Iw(e,n,i){let o=!n||i.route.id!==n.route.id,s=e[i.route.id]===void 0;return o||s}function s0(e,n){let i=e.route.path;return e.pathname!==n.pathname||i!=null&&i.endsWith("*")&&e.params["*"]!==n.params["*"]}function Am(e,n){if(e.route.shouldRevalidate){let i=e.route.shouldRevalidate(n);if(typeof i=="boolean")return i}return n.defaultShouldRevalidate}function $m(e,n,i,o,s){var u;let d;if(e){let y=o[e];Ke(y,"No route found to patch children into: routeId = "+e),y.children||(y.children=[]),d=y.children}else d=i;let f=n.filter(y=>!d.some(x=>l0(y,x))),g=lu(f,s,[e||"_","patch",String(((u=d)==null?void 0:u.length)||"0")],o);d.push(...g)}function l0(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((i,o)=>{var s;return(s=n.children)==null?void 0:s.some(u=>l0(i,u))}):!1}async function Rw(e,n,i){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let s=i[e.id];Ke(s,"No route found in manifest");let u={};for(let d in o){let g=s[d]!==void 0&&d!=="hasErrorBoundary";na(!g,'Route "'+s.id+'" has a static property "'+d+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+d+'" will be ignored.')),!g&&!aw.has(d)&&(u[d]=o[d])}Object.assign(s,u),Object.assign(s,bt({},n(s),{lazy:void 0}))}async function Aw(e){let{matches:n}=e,i=n.filter(s=>s.shouldLoad);return(await Promise.all(i.map(s=>s.resolve()))).reduce((s,u,d)=>Object.assign(s,{[i[d].route.id]:u}),{})}async function $w(e,n,i,o,s,u,d,f,g,y){let x=u.map(w=>w.route.lazy?Rw(w.route,g,f):void 0),b=u.map((w,N)=>{let S=x[N],_=s.some(M=>M.route.id===w.route.id);return bt({},w,{shouldLoad:_,resolve:async M=>(M&&o.method==="GET"&&(w.route.lazy||w.route.loader)&&(_=!0),_?Fw(n,o,w,S,M,y):Promise.resolve({type:rt.data,result:void 0}))})}),m=await e({matches:b,request:o,params:u[0].params,fetcherKey:d,context:y});try{await Promise.all(x)}catch{}return m}async function Fw(e,n,i,o,s,u){let d,f,g=y=>{let x,b=new Promise((N,S)=>x=S);f=()=>x(),n.signal.addEventListener("abort",f);let m=N=>typeof y!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+i.route.id+"]"))):y({request:n,params:i.params,context:u},...N!==void 0?[N]:[]),w=(async()=>{try{return{type:"data",result:await(s?s(S=>m(S)):m())}}catch(N){return{type:"error",result:N}}})();return Promise.race([w,b])};try{let y=i.route[e];if(o)if(y){let x,[b]=await Promise.all([g(y).catch(m=>{x=m}),o]);if(x!==void 0)throw x;d=b}else if(await o,y=i.route[e],y)d=await g(y);else if(e==="action"){let x=new URL(n.url),b=x.pathname+x.search;throw En(405,{method:n.method,pathname:b,routeId:i.route.id})}else return{type:rt.data,result:void 0};else if(y)d=await g(y);else{let x=new URL(n.url),b=x.pathname+x.search;throw En(404,{pathname:b})}Ke(d.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+i.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){return{type:rt.error,result:y}}finally{f&&n.signal.removeEventListener("abort",f)}return d}async function zw(e){let{result:n,type:i}=e;if(c0(n)){let b;try{let m=n.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?n.body==null?b=null:b=await n.json():b=await n.text()}catch(m){return{type:rt.error,error:m}}return i===rt.error?{type:rt.error,error:new uu(n.status,n.statusText,b),statusCode:n.status,headers:n.headers}:{type:rt.data,data:b,statusCode:n.status,headers:n.headers}}if(i===rt.error){if(qm(n)){var o,s;if(n.data instanceof Error){var u,d;return{type:rt.error,error:n.data,statusCode:(u=n.init)==null?void 0:u.status,headers:(d=n.init)!=null&&d.headers?new Headers(n.init.headers):void 0}}return{type:rt.error,error:new uu(((o=n.init)==null?void 0:o.status)||500,void 0,n.data),statusCode:ps(n)?n.status:void 0,headers:(s=n.init)!=null&&s.headers?new Headers(n.init.headers):void 0}}return{type:rt.error,error:n,statusCode:ps(n)?n.status:void 0}}if(qw(n)){var f,g;return{type:rt.deferred,deferredData:n,statusCode:(f=n.init)==null?void 0:f.status,headers:((g=n.init)==null?void 0:g.headers)&&new Headers(n.init.headers)}}if(qm(n)){var y,x;return{type:rt.data,data:n.data,statusCode:(y=n.init)==null?void 0:y.status,headers:(x=n.init)!=null&&x.headers?new Headers(n.init.headers):void 0}}return{type:rt.data,data:n}}function Bw(e,n,i,o,s,u){let d=e.headers.get("Location");if(Ke(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!vf.test(d)){let f=o.slice(0,o.findIndex(g=>g.route.id===i)+1);d=$d(new URL(n.url),f,s,!0,d,u),e.headers.set("Location",d)}return e}function Fm(e,n,i){if(vf.test(e)){let o=e,s=o.startsWith("//")?new URL(n.protocol+o):new URL(o),u=la(s.pathname,i)!=null;if(s.origin===n.origin&&u)return s.pathname+s.search+s.hash}return e}function qo(e,n,i,o){let s=e.createURL(u0(n)).toString(),u={signal:i};if(o&&mr(o.formMethod)){let{formMethod:d,formEncType:f}=o;u.method=d.toUpperCase(),f==="application/json"?(u.headers=new Headers({"Content-Type":f}),u.body=JSON.stringify(o.json)):f==="text/plain"?u.body=o.text:f==="application/x-www-form-urlencoded"&&o.formData?u.body=zd(o.formData):u.body=o.formData}return new Request(s,u)}function zd(e){let n=new URLSearchParams;for(let[i,o]of e.entries())n.append(i,typeof o=="string"?o:o.name);return n}function zm(e){let n=new FormData;for(let[i,o]of e.entries())n.append(i,o);return n}function Uw(e,n,i,o,s){let u={},d=null,f,g=!1,y={},x=i&&zn(i[1])?i[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in n))return;let m=b.route.id,w=n[m];if(Ke(!uo(w),"Cannot handle redirect results in processLoaderData"),zn(w)){let N=w.error;x!==void 0&&(N=x,x=void 0),d=d||{};{let S=so(e,m);d[S.route.id]==null&&(d[S.route.id]=N)}u[m]=void 0,g||(g=!0,f=ps(w.error)?w.error.status:500),w.headers&&(y[m]=w.headers)}else Mi(w)?(o.set(m,w.deferredData),u[m]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!g&&(f=w.statusCode),w.headers&&(y[m]=w.headers)):(u[m]=w.data,w.statusCode&&w.statusCode!==200&&!g&&(f=w.statusCode),w.headers&&(y[m]=w.headers))}),x!==void 0&&i&&(d={[i[0]]:x},u[i[0]]=void 0),{loaderData:u,errors:d,statusCode:f||200,loaderHeaders:y}}function Bm(e,n,i,o,s,u,d){let{loaderData:f,errors:g}=Uw(n,i,o,d);return s.forEach(y=>{let{key:x,match:b,controller:m}=y,w=u[x];if(Ke(w,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(zn(w)){let N=so(e.matches,b?.route.id);g&&g[N.route.id]||(g=bt({},g,{[N.route.id]:w.error})),e.fetchers.delete(x)}else if(uo(w))Ke(!1,"Unhandled fetcher revalidation redirect");else if(Mi(w))Ke(!1,"Unhandled fetcher deferred data");else{let N=Li(w.data);e.fetchers.set(x,N)}}),{loaderData:f,errors:g}}function Um(e,n,i,o){let s=bt({},n);for(let u of i){let d=u.route.id;if(n.hasOwnProperty(d)?n[d]!==void 0&&(s[d]=n[d]):e[d]!==void 0&&u.route.loader&&(s[d]=e[d]),o&&o.hasOwnProperty(d))break}return s}function Hm(e){return e?zn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function so(e,n){return(n?e.slice(0,e.findIndex(o=>o.route.id===n)+1):[...e]).reverse().find(o=>o.route.hasErrorBoundary===!0)||e[0]}function Vm(e){let n=e.length===1?e[0]:e.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function En(e,n){let{pathname:i,routeId:o,method:s,type:u,message:d}=n===void 0?{}:n,f="Unknown Server Error",g="Unknown @remix-run/router error";return e===400?(f="Bad Request",s&&i&&o?g="You made a "+s+' request to "'+i+'" but '+('did not provide a `loader` for route "'+o+'", ')+"so there is no way to handle the request.":u==="defer-action"?g="defer() is not supported in actions":u==="invalid-body"&&(g="Unable to encode submission body")):e===403?(f="Forbidden",g='Route "'+o+'" does not match URL "'+i+'"'):e===404?(f="Not Found",g='No route matches URL "'+i+'"'):e===405&&(f="Method Not Allowed",s&&i&&o?g="You made a "+s.toUpperCase()+' request to "'+i+'" but '+('did not provide an `action` for route "'+o+'", ')+"so there is no way to handle the request.":s&&(g='Invalid request method "'+s.toUpperCase()+'"')),new uu(e||500,f,new Error(g),!0)}function Il(e){let n=Object.entries(e);for(let i=n.length-1;i>=0;i--){let[o,s]=n[i];if(uo(s))return{key:o,result:s}}}function u0(e){let n=typeof e=="string"?Oi(e):e;return fo(bt({},n,{hash:""}))}function Hw(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function Vw(e){return c0(e.result)&&Tw.has(e.result.status)}function Mi(e){return e.type===rt.deferred}function zn(e){return e.type===rt.error}function uo(e){return(e&&e.type)===rt.redirect}function qm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function qw(e){let n=e;return n&&typeof n=="object"&&typeof n.data=="object"&&typeof n.subscribe=="function"&&typeof n.cancel=="function"&&typeof n.resolveData=="function"}function c0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ww(e){return jw.has(e.toLowerCase())}function mr(e){return Nw.has(e.toLowerCase())}async function Gw(e,n,i,o,s){let u=Object.entries(n);for(let d=0;dm?.route.id===f);if(!y)continue;let x=o.find(m=>m.route.id===y.route.id),b=x!=null&&!s0(x,y)&&(s&&s[y.route.id])!==void 0;Mi(g)&&b&&await yf(g,i,!1).then(m=>{m&&(n[f]=m)})}}async function Zw(e,n,i){for(let o=0;oy?.route.id===u)&&Mi(f)&&(Ke(d,"Expected an AbortController for revalidating fetcher deferred result"),await yf(f,d.signal,!0).then(y=>{y&&(n[s]=y)}))}}async function yf(e,n,i){if(i===void 0&&(i=!1),!await e.deferredData.resolveData(n)){if(i)try{return{type:rt.data,data:e.deferredData.unwrappedData}}catch(s){return{type:rt.error,error:s}}return{type:rt.data,data:e.deferredData.data}}}function wf(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function ss(e,n){let i=typeof n=="string"?Oi(n).search:n.search;if(e[e.length-1].route.index&&wf(i||""))return e[e.length-1];let o=i0(e);return o[o.length-1]}function Wm(e){let{formMethod:n,formAction:i,formEncType:o,text:s,formData:u,json:d}=e;if(!(!n||!i||!o)){if(s!=null)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:void 0,text:s};if(u!=null)return{formMethod:n,formAction:i,formEncType:o,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:d,text:void 0}}}function md(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Qw(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function Ka(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function Kw(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Li(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Yw(e,n){try{let i=e.sessionStorage.getItem(a0);if(i){let o=JSON.parse(i);for(let[s,u]of Object.entries(o||{}))u&&Array.isArray(u)&&n.set(s,new Set(u||[]))}}catch{}}function Xw(e,n){if(n.size>0){let i={};for(let[o,s]of n)i[o]=[...s];try{e.sessionStorage.setItem(a0,JSON.stringify(i))}catch(o){na(!1,"Failed to save applied view transitions in sessionStorage ("+o+").")}}}/** + */function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var n=1;n"u")throw new Error(n)}function na(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function iw(){return Math.random().toString(36).substr(2,8)}function Lm(e,n){return{usr:e.state,key:e.key,idx:n}}function hs(e,n,i,o){return i===void 0&&(i=null),bt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?Oi(n):n,{state:i,key:n&&n.key||o||iw()})}function fo(e){let{pathname:n="/",search:i="",hash:o=""}=e;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Oi(e){let n={};if(e){let i=e.indexOf("#");i>=0&&(n.hash=e.substr(i),e=e.substr(0,i));let o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),e&&(n.pathname=e)}return n}function ow(e,n,i,o){o===void 0&&(o={});let{window:s=document.defaultView,v5Compat:u=!1}=o,d=s.history,f=$t.Pop,g=null,y=x();y==null&&(y=0,d.replaceState(bt({},d.state,{idx:y}),""));function x(){return(d.state||{idx:null}).idx}function b(){f=$t.Pop;let _=x(),T=_==null?null:_-y;y=_,g&&g({action:f,location:S.location,delta:T})}function m(_,T){f=$t.Push;let M=hs(S.location,_,T);y=x()+1;let $=Lm(M,y),F=S.createHref(M);try{d.pushState($,"",F)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;s.location.assign(F)}u&&g&&g({action:f,location:S.location,delta:1})}function w(_,T){f=$t.Replace;let M=hs(S.location,_,T);y=x();let $=Lm(M,y),F=S.createHref(M);d.replaceState($,"",F),u&&g&&g({action:f,location:S.location,delta:0})}function N(_){let T=s.location.origin!=="null"?s.location.origin:s.location.href,M=typeof _=="string"?_:fo(_);return M=M.replace(/ $/,"%20"),Qe(T,"No window.location.(origin|href) available to create URL for href: "+M),new URL(M,T)}let S={get action(){return f},get location(){return e(s,d)},listen(_){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(Pm,b),g=_,()=>{s.removeEventListener(Pm,b),g=null}},createHref(_){return n(s,_)},createURL:N,encodeLocation(_){let T=N(_);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:m,replace:w,go(_){return d.go(_)}};return S}var rt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rt||(rt={}));const aw=new Set(["lazy","caseSensitive","path","id","index","children"]);function sw(e){return e.index===!0}function lu(e,n,i,o){return i===void 0&&(i=[]),o===void 0&&(o={}),e.map((s,u)=>{let d=[...i,String(u)],f=typeof s.id=="string"?s.id:d.join("-");if(Qe(s.index!==!0||!s.children,"Cannot specify children on an index route"),Qe(!o[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),sw(s)){let g=bt({},s,n(s),{id:f});return o[f]=g,g}else{let g=bt({},s,n(s),{id:f,children:void 0});return o[f]=g,s.children&&(g.children=lu(s.children,n,d,o)),g}})}function ao(e,n,i){return i===void 0&&(i="/"),eu(e,n,i,!1)}function eu(e,n,i,o){let s=typeof n=="string"?Oi(n):n,u=la(s.pathname||"/",i);if(u==null)return null;let d=n0(e);uw(d);let f=null;for(let g=0;f==null&&g{let g={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};g.relativePath.startsWith("/")&&(Qe(g.relativePath.startsWith(o),'Absolute route path "'+g.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),g.relativePath=g.relativePath.slice(o.length));let y=ni([o,g.relativePath]),x=i.concat(g);u.children&&u.children.length>0&&(Qe(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+y+'".')),n0(u.children,n,x,y)),!(u.path==null&&!u.index)&&n.push({path:y,score:gw(y,u.index),routesMeta:x})};return e.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))s(u,d);else for(let g of r0(u.path))s(u,d,g)}),n}function r0(e){let n=e.split("/");if(n.length===0)return[];let[i,...o]=n,s=i.endsWith("?"),u=i.replace(/\?$/,"");if(o.length===0)return s?[u,""]:[u];let d=r0(o.join("/")),f=[];return f.push(...d.map(g=>g===""?u:[u,g].join("/"))),s&&f.push(...d),f.map(g=>e.startsWith("/")&&g===""?"/":g)}function uw(e){e.sort((n,i)=>n.score!==i.score?i.score-n.score:vw(n.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}const cw=/^:[\w-]+$/,dw=3,fw=2,hw=1,pw=10,mw=-2,Mm=e=>e==="*";function gw(e,n){let i=e.split("/"),o=i.length;return i.some(Mm)&&(o+=mw),n&&(o+=fw),i.filter(s=>!Mm(s)).reduce((s,u)=>s+(cw.test(u)?dw:u===""?hw:pw),o)}function vw(e,n){return e.length===n.length&&e.slice(0,-1).every((o,s)=>o===n[s])?e[e.length-1]-n[n.length-1]:0}function yw(e,n,i){i===void 0&&(i=!1);let{routesMeta:o}=e,s={},u="/",d=[];for(let f=0;f{let{paramName:m,isOptional:w}=x;if(m==="*"){let S=f[b]||"";d=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const N=f[b];return w&&!N?y[m]=void 0:y[m]=(N||"").replace(/%2F/g,"/"),y},{}),pathname:u,pathnameBase:d,pattern:e}}function ww(e,n,i){n===void 0&&(n=!1),i===void 0&&(i=!0),na(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,g)=>(o.push({paramName:f,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),o]}function xw(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return na(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function la(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,o=e.charAt(i);return o&&o!=="/"?null:e.slice(i)||"/"}function bw(e,n){n===void 0&&(n="/");let{pathname:i,search:o="",hash:s=""}=typeof e=="string"?Oi(e):e;return{pathname:i?i.startsWith("/")?i:Cw(i,n):n,search:_w(o),hash:Ew(s)}}function Cw(e,n){let i=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?i.length>1&&i.pop():s!=="."&&i.push(s)}),i.length>1?i.join("/"):"/"}function hd(e,n,i,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function i0(e){return e.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function mf(e,n){let i=i0(e);return n?i.map((o,s)=>s===i.length-1?o.pathname:o.pathnameBase):i.map(o=>o.pathnameBase)}function gf(e,n,i,o){o===void 0&&(o=!1);let s;typeof e=="string"?s=Oi(e):(s=bt({},e),Qe(!s.pathname||!s.pathname.includes("?"),hd("?","pathname","search",s)),Qe(!s.pathname||!s.pathname.includes("#"),hd("#","pathname","hash",s)),Qe(!s.search||!s.search.includes("#"),hd("#","search","hash",s)));let u=e===""||s.pathname==="",d=u?"/":s.pathname,f;if(d==null)f=i;else{let b=n.length-1;if(!o&&d.startsWith("..")){let m=d.split("/");for(;m[0]==="..";)m.shift(),b-=1;s.pathname=m.join("/")}f=b>=0?n[b]:"/"}let g=bw(s,f),y=d&&d!=="/"&&d.endsWith("/"),x=(u||d===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(y||x)&&(g.pathname+="/"),g}const ni=e=>e.join("/").replace(/\/\/+/g,"/"),Sw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_w=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ew=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class uu{constructor(n,i,o,s){s===void 0&&(s=!1),this.status=n,this.statusText=i||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}}function ps(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o0=["post","put","patch","delete"],Nw=new Set(o0),kw=["get",...o0],jw=new Set(kw),Tw=new Set([301,302,303,307,308]),Pw=new Set([307,308]),pd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Lw={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qa={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mw=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),a0="remix-router-transitions";function Dw(e){const n=e.window?e.window:typeof window<"u"?window:void 0,i=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u",o=!i;Qe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s;if(e.mapRouteProperties)s=e.mapRouteProperties;else if(e.detectErrorBoundary){let P=e.detectErrorBoundary;s=I=>({hasErrorBoundary:P(I)})}else s=Mw;let u={},d=lu(e.routes,s,void 0,u),f,g=e.basename||"/",y=e.dataStrategy||Aw,x=e.patchRoutesOnNavigation,b=bt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,w=new Set,N=null,S=null,_=null,T=e.hydrationData!=null,M=ao(d,e.history.location,g),$=!1,F=null;if(M==null&&!x){let P=En(404,{pathname:e.history.location.pathname}),{matches:I,route:U}=Vm(d);M=I,F={[U.id]:P}}M&&!e.hydrationData&&Xn(M,d,e.history.location.pathname).active&&(M=null);let W;if(M)if(M.some(P=>P.route.lazy))W=!1;else if(!M.some(P=>P.route.loader))W=!0;else if(b.v7_partialHydration){let P=e.hydrationData?e.hydrationData.loaderData:null,I=e.hydrationData?e.hydrationData.errors:null;if(I){let U=M.findIndex(X=>I[X.route.id]!==void 0);W=M.slice(0,U+1).every(X=>!Fd(X.route,P,I))}else W=M.every(U=>!Fd(U.route,P,I))}else W=e.hydrationData!=null;else if(W=!1,M=[],b.v7_partialHydration){let P=Xn(null,d,e.history.location.pathname);P.active&&P.matches&&($=!0,M=P.matches)}let fe,O={historyAction:e.history.action,location:e.history.location,matches:M,initialized:W,navigation:pd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||F,fetchers:new Map,blockers:new Map},K=$t.Pop,de=!1,pe,R=!1,H=new Map,G=null,ee=!1,me=!1,Ce=[],Ee=new Set,Z=new Map,ue=0,j=-1,V=new Map,ae=new Set,Se=new Map,le=new Map,re=new Set,te=new Map,Q=new Map,Y;function Je(){if(m=e.history.listen(P=>{let{action:I,location:U,delta:X}=P;if(Y){Y(),Y=void 0;return}na(Q.size===0||X!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ce=Fr({currentLocation:O.location,nextLocation:U,historyAction:I});if(ce&&X!=null){let Te=new Promise(Me=>{Y=Me});e.history.go(X*-1),Mn(ce,{state:"blocked",location:U,proceed(){Mn(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Te.then(()=>e.history.go(X))},reset(){let Me=new Map(O.blockers);Me.set(ce,Qa),ot({blockers:Me})}});return}return ct(I,U)}),i){Yw(n,H);let P=()=>Xw(n,H);n.addEventListener("pagehide",P),G=()=>n.removeEventListener("pagehide",P)}return O.initialized||ct($t.Pop,O.location,{initialHydration:!0}),fe}function an(){m&&m(),G&&G(),w.clear(),pe&&pe.abort(),O.fetchers.forEach((P,I)=>wt(I)),O.blockers.forEach((P,I)=>$r(I))}function Ut(P){return w.add(P),()=>w.delete(P)}function ot(P,I){I===void 0&&(I={}),O=bt({},O,P);let U=[],X=[];b.v7_fetcherPersist&&O.fetchers.forEach((ce,Te)=>{ce.state==="idle"&&(re.has(Te)?X.push(Te):U.push(Te))}),re.forEach(ce=>{!O.fetchers.has(ce)&&!Z.has(ce)&&X.push(ce)}),[...w].forEach(ce=>ce(O,{deletedFetchers:X,viewTransitionOpts:I.viewTransitionOpts,flushSync:I.flushSync===!0})),b.v7_fetcherPersist?(U.forEach(ce=>O.fetchers.delete(ce)),X.forEach(ce=>wt(ce))):X.forEach(ce=>re.delete(ce))}function vt(P,I,U){var X,ce;let{flushSync:Te}=U===void 0?{}:U,Me=O.actionData!=null&&O.navigation.formMethod!=null&&mr(O.navigation.formMethod)&&O.navigation.state==="loading"&&((X=P.state)==null?void 0:X._isRedirect)!==!0,ye;I.actionData?Object.keys(I.actionData).length>0?ye=I.actionData:ye=null:Me?ye=O.actionData:ye=null;let xe=I.loaderData?Um(O.loaderData,I.loaderData,I.matches||[],I.errors):O.loaderData,we=O.blockers;we.size>0&&(we=new Map(we),we.forEach((Ue,jt)=>we.set(jt,Qa)));let ve=de===!0||O.navigation.formMethod!=null&&mr(O.navigation.formMethod)&&((ce=P.state)==null?void 0:ce._isRedirect)!==!0;f&&(d=f,f=void 0),ee||K===$t.Pop||(K===$t.Push?e.history.push(P,P.state):K===$t.Replace&&e.history.replace(P,P.state));let $e;if(K===$t.Pop){let Ue=H.get(O.location.pathname);Ue&&Ue.has(P.pathname)?$e={currentLocation:O.location,nextLocation:P}:H.has(P.pathname)&&($e={currentLocation:P,nextLocation:O.location})}else if(R){let Ue=H.get(O.location.pathname);Ue?Ue.add(P.pathname):(Ue=new Set([P.pathname]),H.set(O.location.pathname,Ue)),$e={currentLocation:O.location,nextLocation:P}}ot(bt({},I,{actionData:ye,loaderData:xe,historyAction:K,location:P,initialized:!0,navigation:pd,revalidation:"idle",restoreScrollPosition:$i(P,I.matches||O.matches),preventScrollReset:ve,blockers:we}),{viewTransitionOpts:$e,flushSync:Te===!0}),K=$t.Pop,de=!1,R=!1,ee=!1,me=!1,Ce=[]}async function lt(P,I){if(typeof P=="number"){e.history.go(P);return}let U=$d(O.location,O.matches,g,b.v7_prependBasename,P,b.v7_relativeSplatPath,I?.fromRouteId,I?.relative),{path:X,submission:ce,error:Te}=Om(b.v7_normalizeFormMethod,!1,U,I),Me=O.location,ye=hs(O.location,X,I&&I.state);ye=bt({},ye,e.history.encodeLocation(ye));let xe=I&&I.replace!=null?I.replace:void 0,we=$t.Push;xe===!0?we=$t.Replace:xe===!1||ce!=null&&mr(ce.formMethod)&&ce.formAction===O.location.pathname+O.location.search&&(we=$t.Replace);let ve=I&&"preventScrollReset"in I?I.preventScrollReset===!0:void 0,$e=(I&&I.flushSync)===!0,Ue=Fr({currentLocation:Me,nextLocation:ye,historyAction:we});if(Ue){Mn(Ue,{state:"blocked",location:ye,proceed(){Mn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),lt(P,I)},reset(){let jt=new Map(O.blockers);jt.set(Ue,Qa),ot({blockers:jt})}});return}return await ct(we,ye,{submission:ce,pendingError:Te,preventScrollReset:ve,replace:I&&I.replace,enableViewTransition:I&&I.viewTransition,flushSync:$e})}function pt(){if(Yn(),ot({revalidation:"loading"}),O.navigation.state!=="submitting"){if(O.navigation.state==="idle"){ct(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}ct(K||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:R===!0})}}async function ct(P,I,U){pe&&pe.abort(),pe=null,K=P,ee=(U&&U.startUninterruptedRevalidation)===!0,Ai(O.location,O.matches),de=(U&&U.preventScrollReset)===!0,R=(U&&U.enableViewTransition)===!0;let X=f||d,ce=U&&U.overrideNavigation,Te=U!=null&&U.initialHydration&&O.matches&&O.matches.length>0&&!$?O.matches:ao(X,I,g),Me=(U&&U.flushSync)===!0;if(Te&&O.initialized&&!me&&Hw(O.location,I)&&!(U&&U.submission&&mr(U.submission.formMethod))){vt(I,{matches:Te},{flushSync:Me});return}let ye=Xn(Te,X,I.pathname);if(ye.active&&ye.matches&&(Te=ye.matches),!Te){let{error:Ye,notFoundMatches:Ze,route:at}=un(I.pathname);vt(I,{matches:Ze,loaderData:{},errors:{[at.id]:Ye}},{flushSync:Me});return}pe=new AbortController;let xe=qo(e.history,I,pe.signal,U&&U.submission),we;if(U&&U.pendingError)we=[so(Te).route.id,{type:rt.error,error:U.pendingError}];else if(U&&U.submission&&mr(U.submission.formMethod)){let Ye=await dt(xe,I,U.submission,Te,ye.active,{replace:U.replace,flushSync:Me});if(Ye.shortCircuited)return;if(Ye.pendingActionResult){let[Ze,at]=Ye.pendingActionResult;if(zn(at)&&ps(at.error)&&at.error.status===404){pe=null,vt(I,{matches:Ye.matches,loaderData:{},errors:{[Ze]:at.error}});return}}Te=Ye.matches||Te,we=Ye.pendingActionResult,ce=md(I,U.submission),Me=!1,ye.active=!1,xe=qo(e.history,xe.url,xe.signal)}let{shortCircuited:ve,matches:$e,loaderData:Ue,errors:jt}=await yt(xe,I,Te,ye.active,ce,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,Me,we);ve||(pe=null,vt(I,bt({matches:$e||Te},Hm(we),{loaderData:Ue,errors:jt})))}async function dt(P,I,U,X,ce,Te){Te===void 0&&(Te={}),Yn();let Me=Qw(I,U);if(ot({navigation:Me},{flushSync:Te.flushSync===!0}),ce){let we=await xr(X,I.pathname,P.signal);if(we.type==="aborted")return{shortCircuited:!0};if(we.type==="error"){let ve=so(we.partialMatches).route.id;return{matches:we.partialMatches,pendingActionResult:[ve,{type:rt.error,error:we.error}]}}else if(we.matches)X=we.matches;else{let{notFoundMatches:ve,error:$e,route:Ue}=un(I.pathname);return{matches:ve,pendingActionResult:[Ue.id,{type:rt.error,error:$e}]}}}let ye,xe=ss(X,I);if(!xe.route.action&&!xe.route.lazy)ye={type:rt.error,error:En(405,{method:P.method,pathname:I.pathname,routeId:xe.route.id})};else if(ye=(await gn("action",O,P,[xe],X,null))[xe.route.id],P.signal.aborted)return{shortCircuited:!0};if(uo(ye)){let we;return Te&&Te.replace!=null?we=Te.replace:we=Fm(ye.response.headers.get("Location"),new URL(P.url),g)===O.location.pathname+O.location.search,await mn(P,ye,!0,{submission:U,replace:we}),{shortCircuited:!0}}if(Mi(ye))throw En(400,{type:"defer-action"});if(zn(ye)){let we=so(X,xe.route.id);return(Te&&Te.replace)!==!0&&(K=$t.Push),{matches:X,pendingActionResult:[we.route.id,ye]}}return{matches:X,pendingActionResult:[xe.route.id,ye]}}async function yt(P,I,U,X,ce,Te,Me,ye,xe,we,ve){let $e=ce||md(I,Te),Ue=Te||Me||Wm($e),jt=!ee&&(!b.v7_partialHydration||!xe);if(X){if(jt){let nt=Ot(ve);ot(bt({navigation:$e},nt!==void 0?{actionData:nt}:{}),{flushSync:we})}let He=await xr(U,I.pathname,P.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let nt=so(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[nt]:He.error}}}else if(He.matches)U=He.matches;else{let{error:nt,notFoundMatches:Tt,route:Br}=un(I.pathname);return{matches:Tt,loaderData:{},errors:{[Br.id]:nt}}}}let Ye=f||d,[Ze,at]=Rm(e.history,O,U,Ue,I,b.v7_partialHydration&&xe===!0,b.v7_skipActionErrorRevalidation,me,Ce,Ee,re,Se,ae,Ye,g,ve);if(Dn(He=>!(U&&U.some(nt=>nt.route.id===He))||Ze&&Ze.some(nt=>nt.route.id===He)),j=++ue,Ze.length===0&&at.length===0){let He=Ri();return vt(I,bt({matches:U,loaderData:{},errors:ve&&zn(ve[1])?{[ve[0]]:ve[1].error}:null},Hm(ve),He?{fetchers:new Map(O.fetchers)}:{}),{flushSync:we}),{shortCircuited:!0}}if(jt){let He={};if(!X){He.navigation=$e;let nt=Ot(ve);nt!==void 0&&(He.actionData=nt)}at.length>0&&(He.fetchers=sn(at)),ot(He,{flushSync:we})}at.forEach(He=>{Vt(He.key),He.controller&&Z.set(He.key,He.controller)});let Jn=()=>at.forEach(He=>Vt(He.key));pe&&pe.signal.addEventListener("abort",Jn);let{loaderResults:vn,fetcherResults:yn}=await Rr(O,U,Ze,at,P);if(P.signal.aborted)return{shortCircuited:!0};pe&&pe.signal.removeEventListener("abort",Jn),at.forEach(He=>Z.delete(He.key));let Ve=Il(vn);if(Ve)return await mn(P,Ve.result,!0,{replace:ye}),{shortCircuited:!0};if(Ve=Il(yn),Ve)return ae.add(Ve.key),await mn(P,Ve.result,!0,{replace:ye}),{shortCircuited:!0};let{loaderData:Fi,errors:cn}=Bm(O,U,vn,ve,at,yn,te);te.forEach((He,nt)=>{He.subscribe(Tt=>{(Tt||He.done)&&te.delete(nt)})}),b.v7_partialHydration&&xe&&O.errors&&(cn=bt({},O.errors,cn));let Hn=Ri(),Ft=si(j),ui=Hn||Ft||at.length>0;return bt({matches:U,loaderData:Fi,errors:cn},ui?{fetchers:new Map(O.fetchers)}:{})}function Ot(P){if(P&&!zn(P[1]))return{[P[0]]:P[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function sn(P){return P.forEach(I=>{let U=O.fetchers.get(I.key),X=Ka(void 0,U?U.data:void 0);O.fetchers.set(I.key,X)}),new Map(O.fetchers)}function pn(P,I,U,X){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Vt(P);let ce=(X&&X.flushSync)===!0,Te=f||d,Me=$d(O.location,O.matches,g,b.v7_prependBasename,U,b.v7_relativeSplatPath,I,X?.relative),ye=ao(Te,Me,g),xe=Xn(ye,Te,Me);if(xe.active&&xe.matches&&(ye=xe.matches),!ye){Yt(P,I,En(404,{pathname:Me}),{flushSync:ce});return}let{path:we,submission:ve,error:$e}=Om(b.v7_normalizeFormMethod,!0,Me,X);if($e){Yt(P,I,$e,{flushSync:ce});return}let Ue=ss(ye,we),jt=(X&&X.preventScrollReset)===!0;if(ve&&mr(ve.formMethod)){Ln(P,I,we,Ue,ye,xe.active,ce,jt,ve);return}Se.set(P,{routeId:I,path:we}),ai(P,I,we,Ue,ye,xe.active,ce,jt,ve)}async function Ln(P,I,U,X,ce,Te,Me,ye,xe){Yn(),Se.delete(P);function we(qe){if(!qe.route.action&&!qe.route.lazy){let br=En(405,{method:xe.formMethod,pathname:U,routeId:I});return Yt(P,I,br,{flushSync:Me}),!0}return!1}if(!Te&&we(X))return;let ve=O.fetchers.get(P);Ht(P,Kw(xe,ve),{flushSync:Me});let $e=new AbortController,Ue=qo(e.history,U,$e.signal,xe);if(Te){let qe=await xr(ce,new URL(Ue.url).pathname,Ue.signal,P);if(qe.type==="aborted")return;if(qe.type==="error"){Yt(P,I,qe.error,{flushSync:Me});return}else if(qe.matches){if(ce=qe.matches,X=ss(ce,U),we(X))return}else{Yt(P,I,En(404,{pathname:U}),{flushSync:Me});return}}Z.set(P,$e);let jt=ue,Ze=(await gn("action",O,Ue,[X],ce,P))[X.route.id];if(Ue.signal.aborted){Z.get(P)===$e&&Z.delete(P);return}if(b.v7_fetcherPersist&&re.has(P)){if(uo(Ze)||zn(Ze)){Ht(P,Li(void 0));return}}else{if(uo(Ze))if(Z.delete(P),j>jt){Ht(P,Li(void 0));return}else return ae.add(P),Ht(P,Ka(xe)),mn(Ue,Ze,!1,{fetcherSubmission:xe,preventScrollReset:ye});if(zn(Ze)){Yt(P,I,Ze.error);return}}if(Mi(Ze))throw En(400,{type:"defer-action"});let at=O.navigation.location||O.location,Jn=qo(e.history,at,$e.signal),vn=f||d,yn=O.navigation.state!=="idle"?ao(vn,O.navigation.location,g):O.matches;Qe(yn,"Didn't find any matches after fetcher action");let Ve=++ue;V.set(P,Ve);let Fi=Ka(xe,Ze.data);O.fetchers.set(P,Fi);let[cn,Hn]=Rm(e.history,O,yn,xe,at,!1,b.v7_skipActionErrorRevalidation,me,Ce,Ee,re,Se,ae,vn,g,[X.route.id,Ze]);Hn.filter(qe=>qe.key!==P).forEach(qe=>{let br=qe.key,ci=O.fetchers.get(br),da=Ka(void 0,ci?ci.data:void 0);O.fetchers.set(br,da),Vt(br),qe.controller&&Z.set(br,qe.controller)}),ot({fetchers:new Map(O.fetchers)});let Ft=()=>Hn.forEach(qe=>Vt(qe.key));$e.signal.addEventListener("abort",Ft);let{loaderResults:ui,fetcherResults:He}=await Rr(O,yn,cn,Hn,Jn);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",Ft),V.delete(P),Z.delete(P),Hn.forEach(qe=>Z.delete(qe.key));let nt=Il(ui);if(nt)return mn(Jn,nt.result,!1,{preventScrollReset:ye});if(nt=Il(He),nt)return ae.add(nt.key),mn(Jn,nt.result,!1,{preventScrollReset:ye});let{loaderData:Tt,errors:Br}=Bm(O,yn,ui,void 0,Hn,He,te);if(O.fetchers.has(P)){let qe=Li(Ze.data);O.fetchers.set(P,qe)}si(Ve),O.navigation.state==="loading"&&Ve>j?(Qe(K,"Expected pending action"),pe&&pe.abort(),vt(O.navigation.location,{matches:yn,loaderData:Tt,errors:Br,fetchers:new Map(O.fetchers)})):(ot({errors:Br,loaderData:Um(O.loaderData,Tt,yn,Br),fetchers:new Map(O.fetchers)}),me=!1)}async function ai(P,I,U,X,ce,Te,Me,ye,xe){let we=O.fetchers.get(P);Ht(P,Ka(xe,we?we.data:void 0),{flushSync:Me});let ve=new AbortController,$e=qo(e.history,U,ve.signal);if(Te){let Ze=await xr(ce,new URL($e.url).pathname,$e.signal,P);if(Ze.type==="aborted")return;if(Ze.type==="error"){Yt(P,I,Ze.error,{flushSync:Me});return}else if(Ze.matches)ce=Ze.matches,X=ss(ce,U);else{Yt(P,I,En(404,{pathname:U}),{flushSync:Me});return}}Z.set(P,ve);let Ue=ue,Ye=(await gn("loader",O,$e,[X],ce,P))[X.route.id];if(Mi(Ye)&&(Ye=await yf(Ye,$e.signal,!0)||Ye),Z.get(P)===ve&&Z.delete(P),!$e.signal.aborted){if(re.has(P)){Ht(P,Li(void 0));return}if(uo(Ye))if(j>Ue){Ht(P,Li(void 0));return}else{ae.add(P),await mn($e,Ye,!1,{preventScrollReset:ye});return}if(zn(Ye)){Yt(P,I,Ye.error);return}Qe(!Mi(Ye),"Unhandled fetcher deferred data"),Ht(P,Li(Ye.data))}}async function mn(P,I,U,X){let{submission:ce,fetcherSubmission:Te,preventScrollReset:Me,replace:ye}=X===void 0?{}:X;I.response.headers.has("X-Remix-Revalidate")&&(me=!0);let xe=I.response.headers.get("Location");Qe(xe,"Expected a Location header on the redirect Response"),xe=Fm(xe,new URL(P.url),g);let we=hs(O.location,xe,{_isRedirect:!0});if(i){let Ze=!1;if(I.response.headers.has("X-Remix-Reload-Document"))Ze=!0;else if(vf.test(xe)){const at=e.history.createURL(xe);Ze=at.origin!==n.location.origin||la(at.pathname,g)==null}if(Ze){ye?n.location.replace(xe):n.location.assign(xe);return}}pe=null;let ve=ye===!0||I.response.headers.has("X-Remix-Replace")?$t.Replace:$t.Push,{formMethod:$e,formAction:Ue,formEncType:jt}=O.navigation;!ce&&!Te&&$e&&Ue&&jt&&(ce=Wm(O.navigation));let Ye=ce||Te;if(Pw.has(I.response.status)&&Ye&&mr(Ye.formMethod))await ct(ve,we,{submission:bt({},Ye,{formAction:xe}),preventScrollReset:Me||de,enableViewTransition:U?R:void 0});else{let Ze=md(we,ce);await ct(ve,we,{overrideNavigation:Ze,fetcherSubmission:Te,preventScrollReset:Me||de,enableViewTransition:U?R:void 0})}}async function gn(P,I,U,X,ce,Te){let Me,ye={};try{Me=await $w(y,P,I,U,X,ce,Te,u,s)}catch(xe){return X.forEach(we=>{ye[we.route.id]={type:rt.error,error:xe}}),ye}for(let[xe,we]of Object.entries(Me))if(Vw(we)){let ve=we.result;ye[xe]={type:rt.redirect,response:Bw(ve,U,xe,ce,g,b.v7_relativeSplatPath)}}else ye[xe]=await zw(we);return ye}async function Rr(P,I,U,X,ce){let Te=P.matches,Me=gn("loader",P,ce,U,I,null),ye=Promise.all(X.map(async ve=>{if(ve.matches&&ve.match&&ve.controller){let Ue=(await gn("loader",P,qo(e.history,ve.path,ve.controller.signal),[ve.match],ve.matches,ve.key))[ve.match.route.id];return{[ve.key]:Ue}}else return Promise.resolve({[ve.key]:{type:rt.error,error:En(404,{pathname:ve.path})}})})),xe=await Me,we=(await ye).reduce((ve,$e)=>Object.assign(ve,$e),{});return await Promise.all([Gw(I,xe,ce.signal,Te,P.loaderData),Zw(I,we,X)]),{loaderResults:xe,fetcherResults:we}}function Yn(){me=!0,Ce.push(...Dn()),Se.forEach((P,I)=>{Z.has(I)&&Ee.add(I),Vt(I)})}function Ht(P,I,U){U===void 0&&(U={}),O.fetchers.set(P,I),ot({fetchers:new Map(O.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Yt(P,I,U,X){X===void 0&&(X={});let ce=so(O.matches,I);wt(P),ot({errors:{[ce.route.id]:U},fetchers:new Map(O.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function Ct(P){return le.set(P,(le.get(P)||0)+1),re.has(P)&&re.delete(P),O.fetchers.get(P)||Lw}function wt(P){let I=O.fetchers.get(P);Z.has(P)&&!(I&&I.state==="loading"&&V.has(P))&&Vt(P),Se.delete(P),V.delete(P),ae.delete(P),b.v7_fetcherPersist&&re.delete(P),Ee.delete(P),O.fetchers.delete(P)}function ln(P){let I=(le.get(P)||0)-1;I<=0?(le.delete(P),re.add(P),b.v7_fetcherPersist||wt(P)):le.set(P,I),ot({fetchers:new Map(O.fetchers)})}function Vt(P){let I=Z.get(P);I&&(I.abort(),Z.delete(P))}function yr(P){for(let I of P){let U=Ct(I),X=Li(U.data);O.fetchers.set(I,X)}}function Ri(){let P=[],I=!1;for(let U of ae){let X=O.fetchers.get(U);Qe(X,"Expected fetcher: "+U),X.state==="loading"&&(ae.delete(U),P.push(U),I=!0)}return yr(P),I}function si(P){let I=[];for(let[U,X]of V)if(X0}function Ar(P,I){let U=O.blockers.get(P)||Qa;return Q.get(P)!==I&&Q.set(P,I),U}function $r(P){O.blockers.delete(P),Q.delete(P)}function Mn(P,I){let U=O.blockers.get(P)||Qa;Qe(U.state==="unblocked"&&I.state==="blocked"||U.state==="blocked"&&I.state==="blocked"||U.state==="blocked"&&I.state==="proceeding"||U.state==="blocked"&&I.state==="unblocked"||U.state==="proceeding"&&I.state==="unblocked","Invalid blocker state transition: "+U.state+" -> "+I.state);let X=new Map(O.blockers);X.set(P,I),ot({blockers:X})}function Fr(P){let{currentLocation:I,nextLocation:U,historyAction:X}=P;if(Q.size===0)return;Q.size>1&&na(!1,"A router only supports one blocker at a time");let ce=Array.from(Q.entries()),[Te,Me]=ce[ce.length-1],ye=O.blockers.get(Te);if(!(ye&&ye.state==="proceeding")&&Me({currentLocation:I,nextLocation:U,historyAction:X}))return Te}function un(P){let I=En(404,{pathname:P}),U=f||d,{matches:X,route:ce}=Vm(U);return Dn(),{notFoundMatches:X,route:ce,error:I}}function Dn(P){let I=[];return te.forEach((U,X)=>{(!P||P(X))&&(U.cancel(),I.push(X),te.delete(X))}),I}function zr(P,I,U){if(N=P,_=I,S=U||null,!T&&O.navigation===pd){T=!0;let X=$i(O.location,O.matches);X!=null&&ot({restoreScrollPosition:X})}return()=>{N=null,_=null,S=null}}function wr(P,I){return S&&S(P,I.map(X=>lw(X,O.loaderData)))||P.key}function Ai(P,I){if(N&&_){let U=wr(P,I);N[U]=_()}}function $i(P,I){if(N){let U=wr(P,I),X=N[U];if(typeof X=="number")return X}return null}function Xn(P,I,U){if(x)if(P){if(Object.keys(P[0].params).length>0)return{active:!0,matches:eu(I,U,g,!0)}}else return{active:!0,matches:eu(I,U,g,!0)||[]};return{active:!1,matches:null}}async function xr(P,I,U,X){if(!x)return{type:"success",matches:P};let ce=P;for(;;){let Te=f==null,Me=f||d,ye=u;try{await x({signal:U,path:I,matches:ce,fetcherKey:X,patch:(ve,$e)=>{U.aborted||$m(ve,$e,Me,ye,s)}})}catch(ve){return{type:"error",error:ve,partialMatches:ce}}finally{Te&&!U.aborted&&(d=[...d])}if(U.aborted)return{type:"aborted"};let xe=ao(Me,I,g);if(xe)return{type:"success",matches:xe};let we=eu(Me,I,g,!0);if(!we||ce.length===we.length&&ce.every((ve,$e)=>ve.route.id===we[$e].route.id))return{type:"success",matches:null};ce=we}}function li(P){u={},f=lu(P,s,void 0,u)}function On(P,I){let U=f==null;$m(P,I,f||d,u,s),U&&(d=[...d],ot({}))}return fe={get basename(){return g},get future(){return b},get state(){return O},get routes(){return d},get window(){return n},initialize:Je,subscribe:Ut,enableScrollRestoration:zr,navigate:lt,fetch:pn,revalidate:pt,createHref:P=>e.history.createHref(P),encodeLocation:P=>e.history.encodeLocation(P),getFetcher:Ct,deleteFetcher:ln,dispose:an,getBlocker:Ar,deleteBlocker:$r,patchRoutes:On,_internalFetchControllers:Z,_internalActiveDeferreds:te,_internalSetRoutes:li},fe}function Ow(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $d(e,n,i,o,s,u,d,f){let g,y;if(d){g=[];for(let b of n)if(g.push(b),b.route.id===d){y=b;break}}else g=n,y=n[n.length-1];let x=gf(s||".",mf(g,u),la(e.pathname,i)||e.pathname,f==="path");if(s==null&&(x.search=e.search,x.hash=e.hash),(s==null||s===""||s===".")&&y){let b=wf(x.search);if(y.route.index&&!b)x.search=x.search?x.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&b){let m=new URLSearchParams(x.search),w=m.getAll("index");m.delete("index"),w.filter(S=>S).forEach(S=>m.append("index",S));let N=m.toString();x.search=N?"?"+N:""}}return o&&i!=="/"&&(x.pathname=x.pathname==="/"?i:ni([i,x.pathname])),fo(x)}function Om(e,n,i,o){if(!o||!Ow(o))return{path:i};if(o.formMethod&&!Ww(o.formMethod))return{path:i,error:En(405,{method:o.formMethod})};let s=()=>({path:i,error:En(400,{type:"invalid-body"})}),u=o.formMethod||"get",d=e?u.toUpperCase():u.toLowerCase(),f=u0(i);if(o.body!==void 0){if(o.formEncType==="text/plain"){if(!mr(d))return s();let m=typeof o.body=="string"?o.body:o.body instanceof FormData||o.body instanceof URLSearchParams?Array.from(o.body.entries()).reduce((w,N)=>{let[S,_]=N;return""+w+S+"="+_+` +`},""):String(o.body);return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:void 0,text:m}}}else if(o.formEncType==="application/json"){if(!mr(d))return s();try{let m=typeof o.body=="string"?JSON.parse(o.body):o.body;return{path:i,submission:{formMethod:d,formAction:f,formEncType:o.formEncType,formData:void 0,json:m,text:void 0}}}catch{return s()}}}Qe(typeof FormData=="function","FormData is not available in this environment");let g,y;if(o.formData)g=zd(o.formData),y=o.formData;else if(o.body instanceof FormData)g=zd(o.body),y=o.body;else if(o.body instanceof URLSearchParams)g=o.body,y=zm(g);else if(o.body==null)g=new URLSearchParams,y=new FormData;else try{g=new URLSearchParams(o.body),y=zm(g)}catch{return s()}let x={formMethod:d,formAction:f,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(mr(x.formMethod))return{path:i,submission:x};let b=Oi(i);return n&&b.search&&wf(b.search)&&g.append("index",""),b.search="?"+g,{path:fo(b),submission:x}}function Im(e,n,i){i===void 0&&(i=!1);let o=e.findIndex(s=>s.route.id===n);return o>=0?e.slice(0,i?o+1:o):e}function Rm(e,n,i,o,s,u,d,f,g,y,x,b,m,w,N,S){let _=S?zn(S[1])?S[1].error:S[1].data:void 0,T=e.createURL(n.location),M=e.createURL(s),$=i;u&&n.errors?$=Im(i,Object.keys(n.errors)[0],!0):S&&zn(S[1])&&($=Im(i,S[0]));let F=S?S[1].statusCode:void 0,W=d&&F&&F>=400,fe=$.filter((K,de)=>{let{route:pe}=K;if(pe.lazy)return!0;if(pe.loader==null)return!1;if(u)return Fd(pe,n.loaderData,n.errors);if(Iw(n.loaderData,n.matches[de],K)||g.some(G=>G===K.route.id))return!0;let R=n.matches[de],H=K;return Am(K,bt({currentUrl:T,currentParams:R.params,nextUrl:M,nextParams:H.params},o,{actionResult:_,actionStatus:F,defaultShouldRevalidate:W?!1:f||T.pathname+T.search===M.pathname+M.search||T.search!==M.search||s0(R,H)}))}),O=[];return b.forEach((K,de)=>{if(u||!i.some(ee=>ee.route.id===K.routeId)||x.has(de))return;let pe=ao(w,K.path,N);if(!pe){O.push({key:de,routeId:K.routeId,path:K.path,matches:null,match:null,controller:null});return}let R=n.fetchers.get(de),H=ss(pe,K.path),G=!1;m.has(de)?G=!1:y.has(de)?(y.delete(de),G=!0):R&&R.state!=="idle"&&R.data===void 0?G=f:G=Am(H,bt({currentUrl:T,currentParams:n.matches[n.matches.length-1].params,nextUrl:M,nextParams:i[i.length-1].params},o,{actionResult:_,actionStatus:F,defaultShouldRevalidate:W?!1:f})),G&&O.push({key:de,routeId:K.routeId,path:K.path,matches:pe,match:H,controller:new AbortController})}),[fe,O]}function Fd(e,n,i){if(e.lazy)return!0;if(!e.loader)return!1;let o=n!=null&&n[e.id]!==void 0,s=i!=null&&i[e.id]!==void 0;return!o&&s?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!o&&!s}function Iw(e,n,i){let o=!n||i.route.id!==n.route.id,s=e[i.route.id]===void 0;return o||s}function s0(e,n){let i=e.route.path;return e.pathname!==n.pathname||i!=null&&i.endsWith("*")&&e.params["*"]!==n.params["*"]}function Am(e,n){if(e.route.shouldRevalidate){let i=e.route.shouldRevalidate(n);if(typeof i=="boolean")return i}return n.defaultShouldRevalidate}function $m(e,n,i,o,s){var u;let d;if(e){let y=o[e];Qe(y,"No route found to patch children into: routeId = "+e),y.children||(y.children=[]),d=y.children}else d=i;let f=n.filter(y=>!d.some(x=>l0(y,x))),g=lu(f,s,[e||"_","patch",String(((u=d)==null?void 0:u.length)||"0")],o);d.push(...g)}function l0(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((i,o)=>{var s;return(s=n.children)==null?void 0:s.some(u=>l0(i,u))}):!1}async function Rw(e,n,i){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let s=i[e.id];Qe(s,"No route found in manifest");let u={};for(let d in o){let g=s[d]!==void 0&&d!=="hasErrorBoundary";na(!g,'Route "'+s.id+'" has a static property "'+d+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+d+'" will be ignored.')),!g&&!aw.has(d)&&(u[d]=o[d])}Object.assign(s,u),Object.assign(s,bt({},n(s),{lazy:void 0}))}async function Aw(e){let{matches:n}=e,i=n.filter(s=>s.shouldLoad);return(await Promise.all(i.map(s=>s.resolve()))).reduce((s,u,d)=>Object.assign(s,{[i[d].route.id]:u}),{})}async function $w(e,n,i,o,s,u,d,f,g,y){let x=u.map(w=>w.route.lazy?Rw(w.route,g,f):void 0),b=u.map((w,N)=>{let S=x[N],_=s.some(M=>M.route.id===w.route.id);return bt({},w,{shouldLoad:_,resolve:async M=>(M&&o.method==="GET"&&(w.route.lazy||w.route.loader)&&(_=!0),_?Fw(n,o,w,S,M,y):Promise.resolve({type:rt.data,result:void 0}))})}),m=await e({matches:b,request:o,params:u[0].params,fetcherKey:d,context:y});try{await Promise.all(x)}catch{}return m}async function Fw(e,n,i,o,s,u){let d,f,g=y=>{let x,b=new Promise((N,S)=>x=S);f=()=>x(),n.signal.addEventListener("abort",f);let m=N=>typeof y!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+i.route.id+"]"))):y({request:n,params:i.params,context:u},...N!==void 0?[N]:[]),w=(async()=>{try{return{type:"data",result:await(s?s(S=>m(S)):m())}}catch(N){return{type:"error",result:N}}})();return Promise.race([w,b])};try{let y=i.route[e];if(o)if(y){let x,[b]=await Promise.all([g(y).catch(m=>{x=m}),o]);if(x!==void 0)throw x;d=b}else if(await o,y=i.route[e],y)d=await g(y);else if(e==="action"){let x=new URL(n.url),b=x.pathname+x.search;throw En(405,{method:n.method,pathname:b,routeId:i.route.id})}else return{type:rt.data,result:void 0};else if(y)d=await g(y);else{let x=new URL(n.url),b=x.pathname+x.search;throw En(404,{pathname:b})}Qe(d.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+i.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){return{type:rt.error,result:y}}finally{f&&n.signal.removeEventListener("abort",f)}return d}async function zw(e){let{result:n,type:i}=e;if(c0(n)){let b;try{let m=n.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?n.body==null?b=null:b=await n.json():b=await n.text()}catch(m){return{type:rt.error,error:m}}return i===rt.error?{type:rt.error,error:new uu(n.status,n.statusText,b),statusCode:n.status,headers:n.headers}:{type:rt.data,data:b,statusCode:n.status,headers:n.headers}}if(i===rt.error){if(qm(n)){var o,s;if(n.data instanceof Error){var u,d;return{type:rt.error,error:n.data,statusCode:(u=n.init)==null?void 0:u.status,headers:(d=n.init)!=null&&d.headers?new Headers(n.init.headers):void 0}}return{type:rt.error,error:new uu(((o=n.init)==null?void 0:o.status)||500,void 0,n.data),statusCode:ps(n)?n.status:void 0,headers:(s=n.init)!=null&&s.headers?new Headers(n.init.headers):void 0}}return{type:rt.error,error:n,statusCode:ps(n)?n.status:void 0}}if(qw(n)){var f,g;return{type:rt.deferred,deferredData:n,statusCode:(f=n.init)==null?void 0:f.status,headers:((g=n.init)==null?void 0:g.headers)&&new Headers(n.init.headers)}}if(qm(n)){var y,x;return{type:rt.data,data:n.data,statusCode:(y=n.init)==null?void 0:y.status,headers:(x=n.init)!=null&&x.headers?new Headers(n.init.headers):void 0}}return{type:rt.data,data:n}}function Bw(e,n,i,o,s,u){let d=e.headers.get("Location");if(Qe(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!vf.test(d)){let f=o.slice(0,o.findIndex(g=>g.route.id===i)+1);d=$d(new URL(n.url),f,s,!0,d,u),e.headers.set("Location",d)}return e}function Fm(e,n,i){if(vf.test(e)){let o=e,s=o.startsWith("//")?new URL(n.protocol+o):new URL(o),u=la(s.pathname,i)!=null;if(s.origin===n.origin&&u)return s.pathname+s.search+s.hash}return e}function qo(e,n,i,o){let s=e.createURL(u0(n)).toString(),u={signal:i};if(o&&mr(o.formMethod)){let{formMethod:d,formEncType:f}=o;u.method=d.toUpperCase(),f==="application/json"?(u.headers=new Headers({"Content-Type":f}),u.body=JSON.stringify(o.json)):f==="text/plain"?u.body=o.text:f==="application/x-www-form-urlencoded"&&o.formData?u.body=zd(o.formData):u.body=o.formData}return new Request(s,u)}function zd(e){let n=new URLSearchParams;for(let[i,o]of e.entries())n.append(i,typeof o=="string"?o:o.name);return n}function zm(e){let n=new FormData;for(let[i,o]of e.entries())n.append(i,o);return n}function Uw(e,n,i,o,s){let u={},d=null,f,g=!1,y={},x=i&&zn(i[1])?i[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in n))return;let m=b.route.id,w=n[m];if(Qe(!uo(w),"Cannot handle redirect results in processLoaderData"),zn(w)){let N=w.error;x!==void 0&&(N=x,x=void 0),d=d||{};{let S=so(e,m);d[S.route.id]==null&&(d[S.route.id]=N)}u[m]=void 0,g||(g=!0,f=ps(w.error)?w.error.status:500),w.headers&&(y[m]=w.headers)}else Mi(w)?(o.set(m,w.deferredData),u[m]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!g&&(f=w.statusCode),w.headers&&(y[m]=w.headers)):(u[m]=w.data,w.statusCode&&w.statusCode!==200&&!g&&(f=w.statusCode),w.headers&&(y[m]=w.headers))}),x!==void 0&&i&&(d={[i[0]]:x},u[i[0]]=void 0),{loaderData:u,errors:d,statusCode:f||200,loaderHeaders:y}}function Bm(e,n,i,o,s,u,d){let{loaderData:f,errors:g}=Uw(n,i,o,d);return s.forEach(y=>{let{key:x,match:b,controller:m}=y,w=u[x];if(Qe(w,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(zn(w)){let N=so(e.matches,b?.route.id);g&&g[N.route.id]||(g=bt({},g,{[N.route.id]:w.error})),e.fetchers.delete(x)}else if(uo(w))Qe(!1,"Unhandled fetcher revalidation redirect");else if(Mi(w))Qe(!1,"Unhandled fetcher deferred data");else{let N=Li(w.data);e.fetchers.set(x,N)}}),{loaderData:f,errors:g}}function Um(e,n,i,o){let s=bt({},n);for(let u of i){let d=u.route.id;if(n.hasOwnProperty(d)?n[d]!==void 0&&(s[d]=n[d]):e[d]!==void 0&&u.route.loader&&(s[d]=e[d]),o&&o.hasOwnProperty(d))break}return s}function Hm(e){return e?zn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function so(e,n){return(n?e.slice(0,e.findIndex(o=>o.route.id===n)+1):[...e]).reverse().find(o=>o.route.hasErrorBoundary===!0)||e[0]}function Vm(e){let n=e.length===1?e[0]:e.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function En(e,n){let{pathname:i,routeId:o,method:s,type:u,message:d}=n===void 0?{}:n,f="Unknown Server Error",g="Unknown @remix-run/router error";return e===400?(f="Bad Request",s&&i&&o?g="You made a "+s+' request to "'+i+'" but '+('did not provide a `loader` for route "'+o+'", ')+"so there is no way to handle the request.":u==="defer-action"?g="defer() is not supported in actions":u==="invalid-body"&&(g="Unable to encode submission body")):e===403?(f="Forbidden",g='Route "'+o+'" does not match URL "'+i+'"'):e===404?(f="Not Found",g='No route matches URL "'+i+'"'):e===405&&(f="Method Not Allowed",s&&i&&o?g="You made a "+s.toUpperCase()+' request to "'+i+'" but '+('did not provide an `action` for route "'+o+'", ')+"so there is no way to handle the request.":s&&(g='Invalid request method "'+s.toUpperCase()+'"')),new uu(e||500,f,new Error(g),!0)}function Il(e){let n=Object.entries(e);for(let i=n.length-1;i>=0;i--){let[o,s]=n[i];if(uo(s))return{key:o,result:s}}}function u0(e){let n=typeof e=="string"?Oi(e):e;return fo(bt({},n,{hash:""}))}function Hw(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function Vw(e){return c0(e.result)&&Tw.has(e.result.status)}function Mi(e){return e.type===rt.deferred}function zn(e){return e.type===rt.error}function uo(e){return(e&&e.type)===rt.redirect}function qm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function qw(e){let n=e;return n&&typeof n=="object"&&typeof n.data=="object"&&typeof n.subscribe=="function"&&typeof n.cancel=="function"&&typeof n.resolveData=="function"}function c0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ww(e){return jw.has(e.toLowerCase())}function mr(e){return Nw.has(e.toLowerCase())}async function Gw(e,n,i,o,s){let u=Object.entries(n);for(let d=0;dm?.route.id===f);if(!y)continue;let x=o.find(m=>m.route.id===y.route.id),b=x!=null&&!s0(x,y)&&(s&&s[y.route.id])!==void 0;Mi(g)&&b&&await yf(g,i,!1).then(m=>{m&&(n[f]=m)})}}async function Zw(e,n,i){for(let o=0;oy?.route.id===u)&&Mi(f)&&(Qe(d,"Expected an AbortController for revalidating fetcher deferred result"),await yf(f,d.signal,!0).then(y=>{y&&(n[s]=y)}))}}async function yf(e,n,i){if(i===void 0&&(i=!1),!await e.deferredData.resolveData(n)){if(i)try{return{type:rt.data,data:e.deferredData.unwrappedData}}catch(s){return{type:rt.error,error:s}}return{type:rt.data,data:e.deferredData.data}}}function wf(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function ss(e,n){let i=typeof n=="string"?Oi(n).search:n.search;if(e[e.length-1].route.index&&wf(i||""))return e[e.length-1];let o=i0(e);return o[o.length-1]}function Wm(e){let{formMethod:n,formAction:i,formEncType:o,text:s,formData:u,json:d}=e;if(!(!n||!i||!o)){if(s!=null)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:void 0,text:s};if(u!=null)return{formMethod:n,formAction:i,formEncType:o,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:i,formEncType:o,formData:void 0,json:d,text:void 0}}}function md(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Qw(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function Ka(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function Kw(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Li(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Yw(e,n){try{let i=e.sessionStorage.getItem(a0);if(i){let o=JSON.parse(i);for(let[s,u]of Object.entries(o||{}))u&&Array.isArray(u)&&n.set(s,new Set(u||[]))}}catch{}}function Xw(e,n){if(n.size>0){let i={};for(let[o,s]of n)i[o]=[...s];try{e.sessionStorage.setItem(a0,JSON.stringify(i))}catch(o){na(!1,"Failed to save applied view transitions in sessionStorage ("+o+").")}}}/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var n=1;n{f.current=!0}),v.useCallback(function(y,x){if(x===void 0&&(x={}),!f.current)return;if(typeof y=="number"){o.go(y);return}let b=gf(y,JSON.parse(d),u,x.relative==="path");e==null&&n!=="/"&&(b.pathname=b.pathname==="/"?n:ni([n,b.pathname])),(x.replace?o.replace:o.push)(b,x.state,x)},[n,o,d,u,e])}const tx=v.createContext(null);function nx(e){let n=v.useContext(oi).outlet;return n&&v.createElement(tx.Provider,{value:e},n)}function h4(){let{matches:e}=v.useContext(oi),n=e[e.length-1];return n?n.params:{}}function p0(e,n){let{relative:i}=n===void 0?{}:n,{future:o}=v.useContext(go),{matches:s}=v.useContext(oi),{pathname:u}=ua(),d=JSON.stringify(mf(s,o.v7_relativeSplatPath));return v.useMemo(()=>gf(e,JSON.parse(d),u,i==="path"),[e,d,u,i])}function rx(e,n,i,o){Ns()||Ke(!1);let{navigator:s}=v.useContext(go),{matches:u}=v.useContext(oi),d=u[u.length-1],f=d?d.params:{};d&&d.pathname;let g=d?d.pathnameBase:"/";d&&d.route;let y=ua(),x;x=y;let b=x.pathname||"/",m=b;if(g!=="/"){let S=g.replace(/^\//,"").split("/");m="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=ao(e,{pathname:m});return lx(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},f,S.params),pathname:ni([g,s.encodeLocation?s.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?g:ni([g,s.encodeLocation?s.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),u,i,o)}function ix(){let e=fx(),n=ps(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},n),i?v.createElement("pre",{style:s},i):null,null)}const ox=v.createElement(ix,null);class ax extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){console.error("React Router caught the following error during render",n,i)}render(){return this.state.error!==void 0?v.createElement(oi.Provider,{value:this.props.routeContext},v.createElement(f0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sx(e){let{routeContext:n,match:i,children:o}=e,s=v.useContext(Su);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),v.createElement(oi.Provider,{value:n},o)}function lx(e,n,i,o){var s;if(n===void 0&&(n=[]),i===void 0&&(i=null),o===void 0&&(o=null),e==null){var u;if(!i)return null;if(i.errors)e=i.matches;else if((u=o)!=null&&u.v7_partialHydration&&n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let d=e,f=(s=i)==null?void 0:s.errors;if(f!=null){let x=d.findIndex(b=>b.route.id&&f?.[b.route.id]!==void 0);x>=0||Ke(!1),d=d.slice(0,Math.min(d.length,x+1))}let g=!1,y=-1;if(i&&o&&o.v7_partialHydration)for(let x=0;x=0?d=d.slice(0,y+1):d=[d[0]];break}}}return d.reduceRight((x,b,m)=>{let w,N=!1,S=null,_=null;i&&(w=f&&b.route.id?f[b.route.id]:void 0,S=b.route.errorElement||ox,g&&(y<0&&m===0?(px("route-fallback"),N=!0,_=null):y===m&&(N=!0,_=b.route.hydrateFallbackElement||null)));let T=n.concat(d.slice(0,m+1)),M=()=>{let $;return w?$=S:N?$=_:b.route.Component?$=v.createElement(b.route.Component,null):b.route.element?$=b.route.element:$=x,v.createElement(sx,{match:b,routeContext:{outlet:x,matches:T,isDataRoute:i!=null},children:$})};return i&&(b.route.ErrorBoundary||b.route.errorElement||m===0)?v.createElement(ax,{location:i.location,revalidation:i.revalidation,component:S,error:w,children:M(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):M()},null)}var m0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(m0||{}),g0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(g0||{});function ux(e){let n=v.useContext(Su);return n||Ke(!1),n}function cx(e){let n=v.useContext(d0);return n||Ke(!1),n}function dx(e){let n=v.useContext(oi);return n||Ke(!1),n}function v0(e){let n=dx(),i=n.matches[n.matches.length-1];return i.route.id||Ke(!1),i.route.id}function fx(){var e;let n=v.useContext(f0),i=cx(),o=v0();return n!==void 0?n:(e=i.errors)==null?void 0:e[o]}function hx(){let{router:e}=ux(m0.UseNavigateStable),n=v0(g0.UseNavigateStable),i=v.useRef(!1);return h0(()=>{i.current=!0}),v.useCallback(function(s,u){u===void 0&&(u={}),i.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,cu({fromRouteId:n},u)))},[e,n])}const Gm={};function px(e,n,i){Gm[e]||(Gm[e]=!0)}function mx(e,n){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!n||n.v7_relativeSplatPath),n&&(n.v7_fetcherPersist,n.v7_normalizeFormMethod,n.v7_partialHydration,n.v7_skipActionErrorRevalidation)}function gx(e){return nx(e.context)}function vx(e){let{basename:n="/",children:i=null,location:o,navigationType:s=$t.Pop,navigator:u,static:d=!1,future:f}=e;Ns()&&Ke(!1);let g=n.replace(/^\/*/,"/"),y=v.useMemo(()=>({basename:g,navigator:u,static:d,future:cu({v7_relativeSplatPath:!1},f)}),[g,f,u,d]);typeof o=="string"&&(o=Oi(o));let{pathname:x="/",search:b="",hash:m="",state:w=null,key:N="default"}=o,S=v.useMemo(()=>{let _=la(x,g);return _==null?null:{location:{pathname:_,search:b,hash:m,state:w,key:N},navigationType:s}},[g,x,b,m,w,N,s]);return S==null?null:v.createElement(go.Provider,{value:y},v.createElement(xf.Provider,{children:i,value:S}))}new Promise(()=>{});function yx(e){let n={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(n,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}/** + */function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var n=1;n{f.current=!0}),v.useCallback(function(y,x){if(x===void 0&&(x={}),!f.current)return;if(typeof y=="number"){o.go(y);return}let b=gf(y,JSON.parse(d),u,x.relative==="path");e==null&&n!=="/"&&(b.pathname=b.pathname==="/"?n:ni([n,b.pathname])),(x.replace?o.replace:o.push)(b,x.state,x)},[n,o,d,u,e])}const tx=v.createContext(null);function nx(e){let n=v.useContext(oi).outlet;return n&&v.createElement(tx.Provider,{value:e},n)}function hL(){let{matches:e}=v.useContext(oi),n=e[e.length-1];return n?n.params:{}}function p0(e,n){let{relative:i}=n===void 0?{}:n,{future:o}=v.useContext(go),{matches:s}=v.useContext(oi),{pathname:u}=ua(),d=JSON.stringify(mf(s,o.v7_relativeSplatPath));return v.useMemo(()=>gf(e,JSON.parse(d),u,i==="path"),[e,d,u,i])}function rx(e,n,i,o){Ns()||Qe(!1);let{navigator:s}=v.useContext(go),{matches:u}=v.useContext(oi),d=u[u.length-1],f=d?d.params:{};d&&d.pathname;let g=d?d.pathnameBase:"/";d&&d.route;let y=ua(),x;x=y;let b=x.pathname||"/",m=b;if(g!=="/"){let S=g.replace(/^\//,"").split("/");m="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=ao(e,{pathname:m});return lx(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},f,S.params),pathname:ni([g,s.encodeLocation?s.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?g:ni([g,s.encodeLocation?s.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),u,i,o)}function ix(){let e=fx(),n=ps(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},n),i?v.createElement("pre",{style:s},i):null,null)}const ox=v.createElement(ix,null);class ax extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){console.error("React Router caught the following error during render",n,i)}render(){return this.state.error!==void 0?v.createElement(oi.Provider,{value:this.props.routeContext},v.createElement(f0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sx(e){let{routeContext:n,match:i,children:o}=e,s=v.useContext(Su);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),v.createElement(oi.Provider,{value:n},o)}function lx(e,n,i,o){var s;if(n===void 0&&(n=[]),i===void 0&&(i=null),o===void 0&&(o=null),e==null){var u;if(!i)return null;if(i.errors)e=i.matches;else if((u=o)!=null&&u.v7_partialHydration&&n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let d=e,f=(s=i)==null?void 0:s.errors;if(f!=null){let x=d.findIndex(b=>b.route.id&&f?.[b.route.id]!==void 0);x>=0||Qe(!1),d=d.slice(0,Math.min(d.length,x+1))}let g=!1,y=-1;if(i&&o&&o.v7_partialHydration)for(let x=0;x=0?d=d.slice(0,y+1):d=[d[0]];break}}}return d.reduceRight((x,b,m)=>{let w,N=!1,S=null,_=null;i&&(w=f&&b.route.id?f[b.route.id]:void 0,S=b.route.errorElement||ox,g&&(y<0&&m===0?(px("route-fallback"),N=!0,_=null):y===m&&(N=!0,_=b.route.hydrateFallbackElement||null)));let T=n.concat(d.slice(0,m+1)),M=()=>{let $;return w?$=S:N?$=_:b.route.Component?$=v.createElement(b.route.Component,null):b.route.element?$=b.route.element:$=x,v.createElement(sx,{match:b,routeContext:{outlet:x,matches:T,isDataRoute:i!=null},children:$})};return i&&(b.route.ErrorBoundary||b.route.errorElement||m===0)?v.createElement(ax,{location:i.location,revalidation:i.revalidation,component:S,error:w,children:M(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):M()},null)}var m0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(m0||{}),g0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(g0||{});function ux(e){let n=v.useContext(Su);return n||Qe(!1),n}function cx(e){let n=v.useContext(d0);return n||Qe(!1),n}function dx(e){let n=v.useContext(oi);return n||Qe(!1),n}function v0(e){let n=dx(),i=n.matches[n.matches.length-1];return i.route.id||Qe(!1),i.route.id}function fx(){var e;let n=v.useContext(f0),i=cx(),o=v0();return n!==void 0?n:(e=i.errors)==null?void 0:e[o]}function hx(){let{router:e}=ux(m0.UseNavigateStable),n=v0(g0.UseNavigateStable),i=v.useRef(!1);return h0(()=>{i.current=!0}),v.useCallback(function(s,u){u===void 0&&(u={}),i.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,cu({fromRouteId:n},u)))},[e,n])}const Gm={};function px(e,n,i){Gm[e]||(Gm[e]=!0)}function mx(e,n){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!n||n.v7_relativeSplatPath),n&&(n.v7_fetcherPersist,n.v7_normalizeFormMethod,n.v7_partialHydration,n.v7_skipActionErrorRevalidation)}function gx(e){return nx(e.context)}function vx(e){let{basename:n="/",children:i=null,location:o,navigationType:s=$t.Pop,navigator:u,static:d=!1,future:f}=e;Ns()&&Qe(!1);let g=n.replace(/^\/*/,"/"),y=v.useMemo(()=>({basename:g,navigator:u,static:d,future:cu({v7_relativeSplatPath:!1},f)}),[g,f,u,d]);typeof o=="string"&&(o=Oi(o));let{pathname:x="/",search:b="",hash:m="",state:w=null,key:N="default"}=o,S=v.useMemo(()=>{let _=la(x,g);return _==null?null:{location:{pathname:_,search:b,hash:m,state:w,key:N},navigationType:s}},[g,x,b,m,w,N,s]);return S==null?null:v.createElement(go.Provider,{value:y},v.createElement(xf.Provider,{children:i,value:S}))}new Promise(()=>{});function yx(e){let n={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(n,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. @@ -66,8 +66,8 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(i[s]=e[s]);return i}function xx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bx(e,n){return e.button===0&&(!n||n==="_self")&&!xx(e)}function Bd(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,i)=>{let o=e[i];return n.concat(Array.isArray(o)?o.map(s=>[i,s]):[[i,o]])},[]))}function Cx(e,n){let i=Bd(e);return n&&n.forEach((o,s)=>{i.has(s)||n.getAll(s).forEach(u=>{i.append(s,u)})}),i}const Sx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_x="6";try{window.__reactRouterVersion=_x}catch{}function Ex(e,n){return Dw({basename:n?.basename,future:ms({},n?.future,{v7_prependBasename:!0}),history:rw({window:n?.window}),hydrationData:n?.hydrationData||Nx(),routes:e,mapRouteProperties:yx,dataStrategy:n?.dataStrategy,patchRoutesOnNavigation:n?.patchRoutesOnNavigation,window:n?.window}).initialize()}function Nx(){var e;let n=(e=window)==null?void 0:e.__staticRouterHydrationData;return n&&n.errors&&(n=ms({},n,{errors:kx(n.errors)})),n}function kx(e){if(!e)return null;let n=Object.entries(e),i={};for(let[o,s]of n)if(s&&s.__type==="RouteErrorResponse")i[o]=new uu(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let u=window[s.__subType];if(typeof u=="function")try{let d=new u(s.message);d.stack="",i[o]=d}catch{}}if(i[o]==null){let u=new Error(s.message);u.stack="",i[o]=u}}else i[o]=s;return i}const jx=v.createContext({isTransitioning:!1}),Tx=v.createContext(new Map),Px="startTransition",Zm=G1[Px],Lx="flushSync",Qm=nw[Lx];function Mx(e){Zm?Zm(e):e()}function Ya(e){Qm?Qm(e):e()}class Dx{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",n(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",i(o))}})}}function Ox(e){let{fallbackElement:n,router:i,future:o}=e,[s,u]=v.useState(i.state),[d,f]=v.useState(),[g,y]=v.useState({isTransitioning:!1}),[x,b]=v.useState(),[m,w]=v.useState(),[N,S]=v.useState(),_=v.useRef(new Map),{v7_startTransition:T}=o||{},M=v.useCallback(K=>{T?Mx(K):K()},[T]),$=v.useCallback((K,ce)=>{let{deletedFetchers:he,flushSync:R,viewTransitionOpts:H}=ce;K.fetchers.forEach((ee,pe)=>{ee.data!==void 0&&_.current.set(pe,ee.data)}),he.forEach(ee=>_.current.delete(ee));let G=i.window==null||i.window.document==null||typeof i.window.document.startViewTransition!="function";if(!H||G){R?Ya(()=>u(K)):M(()=>u(K));return}if(R){Ya(()=>{m&&(x&&x.resolve(),m.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let ee=i.window.document.startViewTransition(()=>{Ya(()=>u(K))});ee.finished.finally(()=>{Ya(()=>{b(void 0),w(void 0),f(void 0),y({isTransitioning:!1})})}),Ya(()=>w(ee));return}m?(x&&x.resolve(),m.skipTransition(),S({state:K,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(f(K),y({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[i.window,m,x,_,M]);v.useLayoutEffect(()=>i.subscribe($),[i,$]),v.useEffect(()=>{g.isTransitioning&&!g.flushSync&&b(new Dx)},[g]),v.useEffect(()=>{if(x&&d&&i.window){let K=d,ce=x.promise,he=i.window.document.startViewTransition(async()=>{M(()=>u(K)),await ce});he.finished.finally(()=>{b(void 0),w(void 0),f(void 0),y({isTransitioning:!1})}),w(he)}},[M,d,x,i.window]),v.useEffect(()=>{x&&d&&s.location.key===d.location.key&&x.resolve()},[x,m,s.location,d]),v.useEffect(()=>{!g.isTransitioning&&N&&(f(N.state),y({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}),S(void 0))},[g.isTransitioning,N]),v.useEffect(()=>{},[]);let F=v.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:K=>i.navigate(K),push:(K,ce,he)=>i.navigate(K,{state:ce,preventScrollReset:he?.preventScrollReset}),replace:(K,ce,he)=>i.navigate(K,{replace:!0,state:ce,preventScrollReset:he?.preventScrollReset})}),[i]),W=i.basename||"/",de=v.useMemo(()=>({router:i,navigator:F,static:!1,basename:W}),[i,F,W]),O=v.useMemo(()=>({v7_relativeSplatPath:i.future.v7_relativeSplatPath}),[i.future.v7_relativeSplatPath]);return v.useEffect(()=>mx(o,i.future),[o,i.future]),v.createElement(v.Fragment,null,v.createElement(Su.Provider,{value:de},v.createElement(d0.Provider,{value:s},v.createElement(Tx.Provider,{value:_.current},v.createElement(jx.Provider,{value:g},v.createElement(vx,{basename:W,location:s.location,navigationType:s.historyAction,navigator:F,future:O},s.initialized||i.future.v7_partialHydration?v.createElement(Ix,{routes:i.routes,future:i.future,state:s}):n))))),null)}const Ix=v.memo(Rx);function Rx(e){let{routes:n,future:i,state:o}=e;return rx(n,void 0,o,i)}const Ax=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fx=v.forwardRef(function(n,i){let{onClick:o,relative:s,reloadDocument:u,replace:d,state:f,target:g,to:y,preventScrollReset:x,viewTransition:b}=n,m=wx(n,Sx),{basename:w}=v.useContext(go),N,S=!1;if(typeof y=="string"&&$x.test(y)&&(N=y,Ax))try{let $=new URL(window.location.href),F=y.startsWith("//")?new URL($.protocol+y):new URL(y),W=la(F.pathname,w);F.origin===$.origin&&W!=null?y=W+F.search+F.hash:S=!0}catch{}let _=Jw(y,{relative:s}),T=zx(y,{replace:d,state:f,target:g,preventScrollReset:x,relative:s,viewTransition:b});function M($){o&&o($),$.defaultPrevented||T($)}return v.createElement("a",ms({},m,{href:N||_,onClick:S||u?o:M,ref:i,target:g}))});var Km;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Km||(Km={}));var Ym;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ym||(Ym={}));function zx(e,n){let{target:i,replace:o,state:s,preventScrollReset:u,relative:d,viewTransition:f}=n===void 0?{}:n,g=ks(),y=ua(),x=p0(e,{relative:d});return v.useCallback(b=>{if(bx(b,i)){b.preventDefault();let m=o!==void 0?o:fo(y)===fo(x);g(e,{replace:m,state:s,preventScrollReset:u,relative:d,viewTransition:f})}},[y,g,x,o,s,i,e,u,d,f])}function Bx(e){let n=v.useRef(Bd(e)),i=v.useRef(!1),o=ua(),s=v.useMemo(()=>Cx(o.search,i.current?null:n.current),[o.search]),u=ks(),d=v.useCallback((f,g)=>{const y=Bd(typeof f=="function"?f(s):f);i.current=!0,u("?"+y,g)},[u,s]);return[s,d]}function Ux(e){return typeof e=="number"?Number.isNaN(e):!1}function ze(e){return e==null||Ux(e)}function Ot(e){return!ze(e)}function Hx(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return ze(e)||e===!1||n.includes(e)}function bf(e){return Hx(e,[""])}function js(e){return!bf(e)}const Vx=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Vx.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});const qx={sorting:void 0,setSorting:e=>{console.warn("Trying to set to ",e)}},p4=v.createContext(qx),Wx=v.createContext({alerts:[],addAlert:()=>{console.warn("AlertContext::addAlert called before it was initialized")},removeAlert:()=>{console.warn("AlertContext::removeAlert called before it was initialized")},updateAlert:()=>{console.warn("AlertContext::updateAlert called before it was initialized")}}),m4=v.createContext({setShowDropdown:()=>{console.warn("DropdownMenuContext::setShowDropdown called without a provider")}}),y0=v.createContext({currentLanguage:"en",setCurrentLanguage:()=>{console.warn("LanguageContext::setCurrentLanguage called without a provider")},languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{console.warn("LanguageContext::setLanguageNamespaceStatus called without a provider")},strings:{},setStrings:()=>{console.warn("LanguageContext::setStrings called without a provider")},registerNamespace:()=>{console.warn("LanguageContext::registerNamespace called without a provider")}});v.createContext({variant:"primary"});function Gx(e){return typeof e=="number"?Number.isNaN(e):!1}function Zx(e){return e==null||Gx(e)}function Qx(e,n){if(Zx(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const Kx=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Kx.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});function Me(){for(var e=arguments.length,n=new Array(e),i=0;i{d&&d(u,b)},[d,u]);return h.jsx("button",{ref:s,name:typeof u=="string"?u:void 0,type:g,className:Me(Xm.rawButton,f&&Xm.focused,i),disabled:o,onClick:d?x:void 0,...y,children:n})}function Xa(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";if(ze(e))return"";const o=String(e);return o.length>=n?o:Array(n-o.length+1).join(i)+o}function Jx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i="";const o=n?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789":"abcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;sn+i,0)}function Sf(e,n,i){const o=Math.min(n,i),s=Math.max(n,i);return Math.max(o,Math.min(s,e))}function Dr(e){const[n]=v.useState(()=>`_${Jx()}`),{spacing:i,variant:o="md",mode:s="gap",inner:u}=e;return v.useEffect(()=>{const d=["var(--go-ui-spacing-4xs)","var(--go-ui-spacing-3xs)","var(--go-ui-spacing-2xs)","var(--go-ui-spacing-xs)","var(--go-ui-spacing-sm)","var(--go-ui-spacing-md)","var(--go-ui-spacing-lg)","var(--go-ui-spacing-xl)","var(--go-ui-spacing-2xl)","var(--go-ui-spacing-3xl)","var(--go-ui-spacing-4xl)"];let f="0";if(i!=="none"){const x={condensed:-3,compact:-2,cozy:-1,default:0,comfortable:1,relaxed:2,loose:3},b={xs:3,sm:4,md:5,lg:6,xl:7},m=u?b[o]-1:b[o],w=x[i];f=d[Sf(m+w,0,d.length-1)]}if(ze(i))return;const g=document.createElement("style");if(document.head.appendChild(g),!g.sheet){g.remove();return}let y;return s==="gap"||s==="grid-gap"?y=`gap: ${f};`:s==="padding-h"?y=`padding-left: ${f}; padding-right: ${f};`:s==="padding-v"&&(y=`padding-top: ${f}; padding-bottom: ${f};`),g.sheet.insertRule(`.${n} { ${y} }`),()=>{g.remove()}},[i,o,s,u,n]),n}const rb="_basic-layout_v9jro_1",ib="_with-wrap_v9jro_5",ob="_icons-container_v9jro_9",ab="_children-container_v9jro_14",sb="_actions-container_v9jro_19",Ja={basicLayout:rb,withWrap:ib,iconsContainer:ob,childrenContainer:ab,actionsContainer:sb};function Ts(e){const{className:n,icons:i,children:o,actions:s,iconsContainerClassName:u,childrenContainerClassName:d,actionsContainerClassName:f,withoutWrap:g,spacing:y="default",variant:x="md"}=e,b=Dr({spacing:y,variant:x,mode:"gap"}),m=Dr({spacing:y,variant:x,mode:"gap",inner:!0}),w=Me(Ja.basicLayout,!g&&Ja.withWrap,b,n),N=ze(i)&&ze(o)&&ze(s)?null:h.jsxs(h.Fragment,{children:[i&&h.jsx("div",{className:Me(Ja.iconsContainer,m,u),children:i}),h.jsx("div",{className:Me(Ja.childrenContainer,m,d),children:o}),s&&h.jsx("div",{className:Me(Ja.actionsContainer,m,f),children:s})]});return{containerClassName:w,content:N}}const lb="_button_18a84_1",ub="_ellipsized_18a84_29",cb="_children_18a84_32",db="_overflow-wrapper_18a84_36",fb="_primary_18a84_44",hb="_secondary_18a84_45",pb="_no-spacing_18a84_50",mb="_condensed-spacing_18a84_54",gb="_compact-spacing_18a84_58",vb="_cozy-spacing_18a84_62",yb="_default-spacing_18a84_66",wb="_comfortable-spacing_18a84_70",xb="_relaxed-spacing_18a84_74",bb="_loose-spacing_18a84_78",Cb="_disabled_18a84_88",Sb="_tertiary_18a84_116",_b="_tertiary-on-dark_18a84_130",Eb="_dropdown-item_18a84_144",Qt={button:lb,ellipsized:ub,children:cb,overflowWrapper:db,primary:fb,secondary:hb,noSpacing:pb,condensedSpacing:mb,compactSpacing:gb,cozySpacing:vb,defaultSpacing:yb,comfortableSpacing:wb,relaxedSpacing:xb,looseSpacing:bb,disabled:Cb,tertiary:Sb,tertiaryOnDark:_b,dropdownItem:Eb},Nb={primary:Qt.primary,secondary:Qt.secondary,tertiary:Qt.tertiary,"tertiary-on-dark":Qt.tertiaryOnDark,"dropdown-item":Qt.dropdownItem},kb={none:Qt.noSpacing,condensed:Qt.condensedSpacing,compact:Qt.compactSpacing,cozy:Qt.cozySpacing,default:Qt.defaultSpacing,comfortable:Qt.comfortableSpacing,relaxed:Qt.relaxedSpacing,loose:Qt.looseSpacing};function jb(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:g,variant:y="primary",spacing:x="default",ellipsize:b}=e,m=Me(Qt.button,Nb[y],kb[x],d&&Qt.disabled,b&&Qt.ellipsized,u),w=v.useMemo(()=>b?h.jsx("div",{className:Qt.overflowWrapper,children:o}):o,[b,o]),{content:N,containerClassName:S}=Ts({className:m,icons:f,children:w,actions:n,iconsContainerClassName:g,childrenContainerClassName:Me(Qt.children,s),actionsContainerClassName:i,spacing:x,withoutWrap:!0,variant:"xs"});return{className:S,children:N,disabled:d}}function Ue(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:g,name:y,onClick:x,variant:b,type:m="button",spacing:w,...N}=e,S=v.useCallback((T,M)=>{x&&x(T,M)},[x]),_=jb({variant:b,className:u,actionsContainerClassName:i,iconsContainerClassName:g,childrenContainerClassName:s,children:o,icons:f,actions:n,spacing:w,disabled:d||m!=="submit"&&ze(x)});return h.jsx(Cf,{name:y,type:m,onClick:S,...N,..._})}const Tb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#alert-line_svg__a)"},v.createElement("path",{d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0Zm-8.66 16h15.588L12 5.5 4.206 19ZM11 16h2v2h-2v-2Zm0-7h2v5h-2V9Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"alert-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),w0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56","aria-hidden":"true",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#analysis_svg__a)"},v.createElement("path",{d:"m12.384 37.796-7.179 7.18a4.115 4.115 0 0 0 5.82 5.819l7.179-7.18a24.009 24.009 0 0 1-5.82-5.819Zm13.619-13.798h-4a1.003 1.003 0 0 0-1 1v4.94a12.572 12.572 0 0 0 6 5.518V24.998a1.003 1.003 0 0 0-1-1Zm15.998-6h-4a1.003 1.003 0 0 0-1 1v16.458a12.572 12.572 0 0 0 6-5.519V18.998a1.003 1.003 0 0 0-1-1Zm-7.999 3h-4a1.003 1.003 0 0 0-1 1v14.138c1.972.48 4.029.48 6 0V21.998a1.003 1.003 0 0 0-1-1Z"}),v.createElement("path",{d:"M32.002 4a19.998 19.998 0 1 0 0 39.995 19.998 19.998 0 0 0 0-39.995Zm10.999 30.177a14.998 14.998 0 1 1-21.998-20.394 14.998 14.998 0 0 1 21.998 20.394Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"analysis_svg__a"},v.createElement("path",{d:"M0 0h56v56H0z"})))),Pb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-down-small-fill_svg__a)"},v.createElement("path",{d:"m12 16-6-6h12l-6 6Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-down-small-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Lb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-right-line_svg__a)"},v.createElement("path",{d:"m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2h12.172Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-right-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Mb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-up-small-fill_svg__a)"},v.createElement("path",{d:"m12 8 6 6H6l6-6Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-up-small-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Db=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#check-double-fill_svg__a)"},v.createElement("path",{d:"m11.602 13.76 1.412 1.412 8.466-8.466 1.414 1.414-9.88 9.88-6.364-6.364 1.414-1.414 2.125 2.125 1.413 1.412Zm.002-2.829 4.952-4.952 1.41 1.41-4.952 4.952-1.41-1.41Zm-2.827 5.656L7.364 18 1 11.636l1.414-1.414 1.413 1.412-.001.002 4.951 4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"check-double-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ob=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#check-line_svg__a)"},v.createElement("path",{d:"m10 15.171 9.192-9.192 1.415 1.414L10 18l-6.364-6.364 1.414-1.414 4.95 4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"check-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ib=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-blank-circle-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-blank-circle-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),x0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-blank-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-blank-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Rb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-indeterminate-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm2 6h10v2H7v-2Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-indeterminate-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),b0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm6.003 11L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ab=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#chevron-left-line_svg__a)"},v.createElement("path",{d:"M11.05 12 16 7.05l-1.413-1.414L8.223 12l6.364 6.364L16 16.95 11.05 12Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"chevron-left-line_svg__a"},v.createElement("path",{d:"M0 24h24V0H0z"})))),$b=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#chevron-right-line_svg__a)"},v.createElement("path",{d:"m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414 4.95-4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"chevron-right-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Fb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{fillRule:"evenodd",d:"m13.057 11.996 4.716-4.716a.75.75 0 1 0-1.06-1.06l-4.717 4.716L7.28 6.22a.75.75 0 1 0-1.06 1.06l4.716 4.716-4.716 4.716a.75.75 0 1 0 1.06 1.06l4.716-4.715 4.716 4.716a.748.748 0 0 0 1.061 0 .75.75 0 0 0 0-1.061l-4.716-4.716Z",clipRule:"evenodd"})),_f=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#delete-bin-line_svg__a)"},v.createElement("path",{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3Zm1 2H6v12h12V8Zm-9 3h2v6H9v-6Zm4 0h2v6h-2v-6ZM9 4v2h6V4H9Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"delete-bin-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),zb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 32 32",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{d:"M17.949 6.651a1.834 1.834 0 1 0-1.833 1.834c1.01 0 1.833-.822 1.833-1.834Zm-7.806 15.847a1.836 1.836 0 0 0-1.833 1.834c0 1.01.822 1.832 1.833 1.832a1.835 1.835 0 0 0 1.833-1.832 1.836 1.836 0 0 0-1.833-1.834Zm5.973-10.343a2.506 2.506 0 1 0 .001 5.012 2.506 2.506 0 0 0-.001-5.012Zm5.973 10.343a1.834 1.834 0 1 0 1.833 1.834 1.836 1.836 0 0 0-1.833-1.834Z"}),v.createElement("path",{fillRule:"evenodd",d:"M0 16C0 7.163 7.164 0 16 0c8.837 0 16 7.163 16 16 0 8.836-7.164 16-16 16S0 24.836 0 16Zm22.089 11.044a2.716 2.716 0 0 1-2.713-2.713c0-.828.375-1.57.962-2.068l-2.589-4.324a3.643 3.643 0 0 1-3.266 0l-2.589 4.324a2.7 2.7 0 0 1 .962 2.068 2.716 2.716 0 0 1-2.713 2.713A2.716 2.716 0 0 1 7.43 24.33a2.716 2.716 0 0 1 2.713-2.713c.352 0 .688.07.997.192l2.606-4.354a3.664 3.664 0 0 1 1.93-6.43v-1.7a2.714 2.714 0 0 1-2.273-2.674 2.716 2.716 0 0 1 2.714-2.713 2.716 2.716 0 0 1 2.712 2.713 2.714 2.714 0 0 1-2.272 2.674v1.7a3.664 3.664 0 0 1 3.226 3.636 3.651 3.651 0 0 1-1.297 2.794l2.607 4.354c.31-.122.645-.192.997-.192a2.716 2.716 0 0 1 2.712 2.713 2.716 2.716 0 0 1-2.713 2.713ZM4.497 14.677c0-1.958 1.228-3.59 3.282-3.59 1.497 0 2.754.798 2.936 2.342H9.544c-.114-.901-.901-1.363-1.765-1.363-1.47 0-2.083 1.295-2.083 2.61 0 1.316.613 2.61 2.083 2.61 1.227.02 1.899-.719 1.919-1.88H7.875v-.912h2.917v3.609h-.768l-.182-.806c-.643.73-1.227.969-2.062.969-2.055 0-3.283-1.632-3.283-3.59Z",clipRule:"evenodd"})),Bb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#menu-line_svg__a)"},v.createElement("path",{d:"M3 4h18v2H3V4Zm0 7h18v2H3v-2Zm0 7h18v2H3v-2Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"menu-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ub=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#question-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm-1-5h2v2h-2v-2Zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.5 3.5 0 1 1 13 13.355Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"question-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Hb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#radio-button-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm0-3a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"radio-button-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Vb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#search-line_svg__a)"},v.createElement("path",{d:"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"search-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),qb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 25 25",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{d:"M8.775 9.71a2.284 2.284 0 0 0-2.2 1.66H4.623a.623.623 0 0 0 0 1.247h1.952a2.284 2.284 0 0 0 4.401 0h8.804a.623.623 0 0 0 0-1.246h-8.804a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.076 1.038 1.038 0 0 1 0 2.076ZM15.627 4a2.284 2.284 0 0 0-2.2 1.661H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 1 0 0-1.246h-1.952A2.284 2.284 0 0 0 15.628 4Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Zm0 8.098a2.284 2.284 0 0 0-2.2 1.66H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 0 0 0-1.245h-1.952a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Z"})),C0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#upload-cloud-line_svg__a)"},v.createElement("path",{d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12l-10 .02c-3.356-.275-6-3.079-6-6.5Zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503-.12-.942a6 6 0 0 0-11.903 0l-.12.942-.805.503a4.5 4.5 0 0 0 2.029 8.31l.173.012h9.35l.173-.013ZM13 13v4h-2v-4H8l4-5 4 5h-3Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"upload-cloud-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Wb="_spinner_50bgg_1",Gb="_spinner-bounce_50bgg_9",Rl={spinner:Wb,spinnerBounce:Gb};function Xo(e){const{className:n}=e;return h.jsxs("div",{className:Me(Rl.spinner,n),children:[h.jsx("div",{className:Rl.spinnerBounce}),h.jsx("div",{className:Rl.spinnerBounce}),h.jsx("div",{className:Rl.spinnerBounce})]})}const Zb="_message_176iw_1",Qb="_icon_176iw_13",Kb="_spinner_176iw_17",Yb="_title_176iw_22",Xb="_errored_176iw_27",Jb="_compact_176iw_33",ji={message:Zb,icon:Qb,spinner:Kb,title:Yb,errored:Xb,compact:Jb};function eC(e){const{className:n,pending:i=!1,variant:o,icon:s,title:u,description:d,actions:f,compact:g=!1,errored:y,erroredTitle:x,erroredDescription:b}=e,m=Ot(y?x:u),w=Ot(y?b:d);return h.jsxs("div",{className:Me(ji.message,o==="error"&&ji.errored,g&&ji.compact,n),children:[(s||i)&&h.jsxs("div",{className:ji.icon,children:[i&&h.jsx(Xo,{className:ji.spinner}),!i&&s]}),m&&h.jsx("div",{className:ji.title,children:y?x:u}),w&&h.jsx("div",{className:ji.description,children:d}),f&&h.jsx("div",{className:ji.actions,children:f})]})}function S0(e){const{strings:n,registerNamespace:i}=v.useContext(y0);return v.useEffect(()=>{i(e.namespace,e.strings)},[i,e]),n[e.namespace]??e.strings}const tC="common",nC={messageTitleFetching:"Fetching data...",messageTitleFilteredDataNotAvailable:"Data is not available for selected filter!",messageTitleDataNotAvailable:"Data is not available!",messageTitleDataFailedToFetch:"Failed to fetch data!"},rC={namespace:tC,strings:nC},iC="_default-message_wu986_1",oC="_overlay_wu986_2",Jm={defaultMessage:iC,overlay:oC};function _0(e){const{className:n,compact:i,pending:o,overlayPending:s,filtered:u,empty:d,errored:f,emptyMessage:g,filteredEmptyMessage:y,pendingMessage:x,errorMessage:b}=e,m=S0(rC),w=v.useMemo(()=>o?x??m.messageTitleFetching:f?b??m.messageTitleDataFailedToFetch:u?y??m.messageTitleFilteredDataNotAvailable:d?g??m.messageTitleDataNotAvailable:null,[d,o,u,f,g,y,x,b,m]);return!d&&!o&&!f?null:h.jsx(eC,{className:Me(Jm.defaultMessage,o&&s&&Jm.overlay,n),icon:h.jsx(w0,{}),compact:i,title:w,pending:o})}const aC="_filter-bar_16xsj_1",sC="_grid-with-actions_16xsj_6",lC="_grid_16xsj_6",uC="_actions_16xsj_15",us={filterBar:aC,gridWithActions:sC,grid:lC,actions:uC};function eg(e){const{grid:n,actions:i,spacing:o="default"}=e,s=Dr({spacing:o,mode:"gap"}),u=Dr({spacing:o,mode:"gap",inner:!0}),d=Dr({spacing:o,mode:"grid-gap"});return ze(n)&&ze(i)?null:h.jsxs("div",{className:Me(us.gridWithActions,s),children:[h.jsx("div",{className:Me(us.grid,d),children:n}),Ot(i)&&h.jsx("div",{className:Me(us.actions,u),children:i})]})}function cC(e){const{className:n,filters:i,filterActions:o,search:s,searchActions:u,filterPreview:d,spacing:f}=e;return ze(i)&&ze(o)&&ze(s)&&ze(u)&&ze(d)?null:h.jsxs("div",{className:Me(us.filterBar,n),children:[h.jsx(eg,{grid:i,actions:o,spacing:f}),h.jsx(eg,{grid:s,actions:u,spacing:f}),Ot(d)&&h.jsx("div",{className:us.filterPreview,children:d})]})}function dC(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:g,withoutWrap:y}=e,{content:x,containerClassName:b}=Ts({actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:g,withoutWrap:y});return h.jsx("div",{className:b,children:x})}function fC(e,n,i){const[o,s]=v.useState(()=>e);return v.useEffect(()=>{const u=setTimeout(()=>{s(e)},300);return()=>{clearTimeout(u)}},[e,n,i]),o}function hC(e,n=!1){const[i,o]=v.useState(()=>{var s;const u=(s=e.current)==null?void 0:s.getBoundingClientRect();return{width:u?.width??0,height:u?.height??0}});return v.useEffect(()=>{const s=new ResizeObserver(d=>{const f=d.at(0),g=f?.contentRect;g&&o({width:g.width,height:g.height})}),u=e.current;return!n&&Ot(u)&&s.observe(u),()=>{!n&&Ot(u)&&s.unobserve(u)}},[n,e]),fC(i)}const pC="_heading_1uxwj_1",mC="_level-one_1uxwj_9",gC="_level-two_1uxwj_17",vC="_level-three_1uxwj_25",yC="_level-four_1uxwj_33",wC="_level-five_1uxwj_37",xC="_level-six_1uxwj_41",bC="_ellipsized-text_1uxwj_45",CC="_ellipsized_1uxwj_45",ei={heading:pC,levelOne:mC,levelTwo:gC,levelThree:vC,levelFour:yC,levelFive:wC,levelSix:xC,ellipsizedText:bC,ellipsized:CC},SC={1:ei.levelOne,2:ei.levelTwo,3:ei.levelThree,4:ei.levelFour,5:ei.levelFive,6:ei.levelSix};function kn(e){const{className:n,level:i=3,children:o,ellipsize:s}=e,u=`h${i}`,d=v.useRef(null),f=hC(d);return o?h.jsxs(u,{className:Me(ei.heading,s&&ei.ellipsized,SC[i],n),ref:d,children:[s&&h.jsx("div",{className:ei.ellipsizedText,style:{width:`${f.width}px`},title:typeof o=="string"?o:void 0,children:o}),!s&&o]}):null}const _C="_header_537v1_1",EC={header:_C};function NC(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,elementRef:d,ellipsizeHeading:f,heading:g,headingClassName:y,headingLevel:x,headingDescription:b,headingDescriptionContainerClassName:m,icons:w,iconsContainerClassName:N,headingSectionClassName:S,headingContainerClassName:_,wrapHeadingContent:T=!1,spacing:M="default"}=e,$=v.useMemo(()=>ze(g)&&ze(b)?null:h.jsxs(h.Fragment,{children:[h.jsx(kn,{level:x,className:y,ellipsize:f,children:g}),b&&h.jsx("div",{className:m,children:b})]}),[g,f,b,y,m,x]),{content:F,containerClassName:W}=Ts({actions:n,actionsContainerClassName:i,children:$,childrenContainerClassName:_,className:S,icons:w,iconsContainerClassName:N,withoutWrap:!T,spacing:M,variant:"sm"}),de=Dr({spacing:M,inner:!0});return!F&&!o?null:h.jsxs("div",{className:Me(EC.header,de,u),ref:d,children:[F&&h.jsx("div",{className:W,children:F}),o&&h.jsx("div",{className:s,children:o})]})}const kC="_container_lyve2_1",jC="_header_lyve2_8",TC="_centered-header-description-container_lyve2_11",PC="_centered-description_lyve2_16",LC="_with-border-and-header-background_lyve2_23",MC="_border_lyve2_33",DC="_content_lyve2_39",OC="_pending-overlaid_lyve2_42",IC="_message_lyve2_47",RC="_footer_lyve2_53",AC="_with-grid-view_lyve2_57",$C="_two-columns_lyve2_67",FC="_three-columns_lyve2_82",zC="_four-columns_lyve2_96",BC="_five-columns_lyve2_100",UC="_with-vertical-view_lyve2_105",HC="_with-overflow-in-content_lyve2_112",Zt={container:kC,header:jC,centeredHeaderDescriptionContainer:TC,centeredDescription:PC,withBorderAndHeaderBackground:LC,border:MC,content:DC,pendingOverlaid:OC,message:IC,footer:RC,withGridView:AC,twoColumns:$C,threeColumns:FC,fourColumns:zC,fiveColumns:BC,withVerticalView:UC,withOverflowInContent:HC},VC={2:Zt.twoColumns,3:Zt.threeColumns,4:Zt.fourColumns,5:Zt.fiveColumns};function on(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,containerRef:d,contentViewType:f="default",ellipsizeHeading:g,filters:y,filterActions:x,footerActions:b,footerActionsContainerClassName:m,footerClassName:w,footerContent:N,footerContentClassName:S,footerIcons:_,headerClassName:T,headerDescription:M,withCenteredHeaderDescription:$,headerDescriptionContainerClassName:F,headerElementRef:W,heading:de,headingClassName:O,headingContainerClassName:K,headingDescription:ce,headingDescriptionContainerClassName:he,headingLevel:R,headingSectionClassName:H,icons:G,iconsContainerClassName:ee,numPreferredGridContentColumns:pe=2,spacing:Ce="default",withHeaderBorder:_e=!1,withFooterBorder:Z=!1,withBorderAndHeaderBackground:le=!1,withOverflowInContent:j=!1,withInternalPadding:V=!1,withoutWrapInHeading:oe=!1,withoutWrapInFooter:Se=!1,pending:se=!1,overlayPending:re=!1,empty:te=!1,errored:Q=!1,filtered:Y=!1,compactMessage:Je=!1,errorMessage:an,emptyMessage:Ut,pendingMessage:ot,filteredEmptyMessage:vt}=e,lt=_||N||b,pt=de||n||G||M||ce,ct=Dr({spacing:Ce}),dt=Dr({spacing:Ce,mode:"padding-h"}),yt=Dr({spacing:Ce,mode:"padding-v"}),It=Dr({spacing:Ce,mode:"gap",inner:!0}),sn=v.useMemo(()=>ze(M)?null:$?h.jsx("div",{className:Zt.centeredDescription,children:M}):M,[M,$]);return!pt&&!y&&!o&&!lt&&!te&&!se&&!Q&&!Y?null:h.jsxs("div",{ref:d,className:Me(Zt.container,!le&&ct,V&&yt,j&&Zt.withOverflowInContent,le&&Zt.withBorderAndHeaderBackground,f==="grid"&&Zt.withGridView,f==="grid"&&VC[pe],f==="vertical"&&Zt.withVerticalView,u),children:[pt&&h.jsx(NC,{actions:n,className:Me(Zt.header,le&&yt,(V||le)&&dt,T),elementRef:W,actionsContainerClassName:i,ellipsizeHeading:g,heading:de,headingLevel:R,icons:G,iconsContainerClassName:ee,childrenContainerClassName:Me($&&Zt.centeredHeaderDescriptionContainer,F),headingSectionClassName:H,headingClassName:O,headingContainerClassName:K,wrapHeadingContent:!oe,headingDescription:ce,headingDescriptionContainerClassName:he,spacing:Ce,children:sn}),_e&&h.jsx("div",{className:Zt.border}),h.jsx(cC,{filters:y,filterActions:x,spacing:Ce,className:Me(V&&dt)}),(o||te||se||Q||Y)&&h.jsxs("div",{className:Me(Zt.content,f!=="default"&&It,(V||le)&&dt,le&&yt,re&&se&&Zt.pendingOverlaid,s),children:[h.jsx(_0,{className:Zt.message,pending:se,filtered:Y,errored:Q,empty:te,compact:Je,overlayPending:re,emptyMessage:Ut,filteredEmptyMessage:vt,pendingMessage:ot,errorMessage:an}),!te&&!Q&&(!se||re)&&o]}),lt&&Z&&h.jsx("div",{className:Zt.border}),lt&&h.jsx(dC,{actions:b,icons:_,childrenContainerClassName:S,className:Me(Zt.footer,V&&dt,le&&yt,w),actionsContainerClassName:m,spacing:Ce,withoutWrap:Se,children:N})]})}function qC(e){const{children:n,container:i=document.body,portalKey:o}=e;return h.jsx(h.Fragment,{children:pf.createPortal(n,i,o)})}const WC="yyyy-MM-dd",g4="-",v4=108;function cs(e,n,i){return ze(e)?void 0:e.reduce((o,s,u)=>{const d=n(s,u);return o[d]=i?i(s,d,u,o):s,o},{})}function Ef(e,n){return function(i,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const u=Ot(i)?e(i):void 0,d=Ot(o)?e(o):void 0;return u===d?0:ze(u)?s*1:ze(d)?s*-1:s*n(u,d)}}const y4=Ef(e=>e,(e,n)=>e.localeCompare(n)),w4=Ef(e=>e,(e,n)=>e-n),GC=(e,n,i,o)=>i?Ef(s=>s,(s,u)=>{const d=i.toLowerCase(),f=s.toLowerCase().indexOf(d),g=u.toLowerCase().indexOf(d);return f===g||f===-1&&g===-1?s.localeCompare(u):g===-1?-1:f===-1?1:f-g})(e,n,o):0,ZC=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],QC=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var ti=function(e){return e.time="time",e.date="date",e}(ti||{});function tg(e,n){let i,o;return n.forEach(s=>{const u=e.indexOf(s);if(u===-1)return;const d=u+s.length;(i===void 0||uo)&&(o=d)}),{start:i,end:o}}function KC(e){const{start:n,end:i}=tg(e,["yyyy","yy","MMM","MM","dd","EEE"]),{start:o,end:s}=tg(e,["hh","mm","ss","aaa"]),u=e.length,d=(f,g)=>f===void 0||g===void 0?"":e.substring(f,g);return n===void 0&&o===void 0?[{value:e}].filter(f=>f.value!==""):n===void 0?[{value:d(0,o)},{type:ti.time,value:d(o,s)},{value:d(s,u)}].filter(f=>f.value!==""):o===void 0?[{value:d(0,n)},{type:ti.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!==""):nf.value!==""):[{value:d(0,o)},{type:ti.time,value:d(o,s)},{value:d(s,n)},{type:ti.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!=="")}function YC(e,n){return e.map(i=>{if(i.type===ti.date){const o=n.getFullYear(),s=n.getMonth(),u=n.getDate(),d=QC[n.getDay()],f={...i};return f.value=f.value.replace("yyyy",String(o)).replace("yy",String(o%100)).replace("MMM",ZC[s]).replace("MM",Xa(s+1,2)).replace("EEE",d).replace("dd",Xa(u,2)),f}if(i.type===ti.time){const o=i.value.indexOf("aaa"),s=n.getHours(),u=o>=0?(s-1)%12+1:s,d=s>=12?"PM":"AM",f=n.getMinutes(),g=n.getSeconds(),y={...i};return y.value=y.value.replace("hh",Xa(u,2)).replace("mm",Xa(f,2)).replace("ss",Xa(g,2)).replace("aaa",d),y}return i})}function x4(e,n,i=!0){if(ze(e)||ze(n))return;if(n===0)return 0;const o=e*100/n;return i?Sf(o,0,100):o}function XC(e){if(ze(e))return;const n=e.filter(Ot);if(n.length!==0)return n}function b4(e){const n=XC(e);if(!ze(n))return nb(n)}function ho(e,n,i){return bf(n)?e:e.filter(o=>eb(i(o),n)).sort((o,s)=>GC(i(o),i(s),n))}function ng(e){if(e<1e3)return 2;const n=new Intl.NumberFormat("default",{notation:"compact"}).formatToParts(e).find(({type:i})=>i==="fraction");return ze(n)||bf(n.value)?0:Number(n.value)>.1?1:0}function C4(e,n){if(ze(e))return;const i={};if(ze(n))return i.maximumFractionDigits=ng(e),new Intl.NumberFormat("default",i).format(e);const{currency:o,unit:s,maximumFractionDigits:u,compact:d,separatorHidden:f,language:g}=n;return js(s)&&(i.unit=s,i.unitDisplay="short"),o&&(i.currencyDisplay="narrowSymbol",i.style="currency"),d&&(i.notation="compact",i.compactDisplay="short"),i.useGrouping=!f,Ot(u)?i.maximumFractionDigits=u:i.maximumFractionDigits=ng(e),new Intl.NumberFormat(g,i).format(e)}function S4(e,n=WC){if(ze(e))return;const i=new Date(e);return Number.isNaN(i.getTime())?void 0:YC(KC(n),i).map(o=>o.value).join("")}const du=parseFloat(getComputedStyle(document.documentElement).fontSize),JC=16*du,gd=.5*du,eS={vertical:"bottom",horizontal:"right"};function tS(e){const n=window.innerWidth/2,i=window.innerHeight/2,o=e.x+e.width/2,s=e.y+e.height/2;return{horizontal:o{if(ze(e.current))return;const u=e.current.getBoundingClientRect(),{x:d,y:f,width:g,height:y}=u,x=du,b=x,m=window.innerWidth-x,w=window.innerWidth-2*x,N=tS(u),S=d+g/2,_=Sf(Ot(n)?n*du:g,JC,w);let T=S-_/2,M=S+_/2;if(Tm){const $=M-m-x;M=m,T-=$}o({content:{bottom:N.vertical==="bottom"?`${window.innerHeight-f+gd}px`:"unset",top:N.vertical==="top"?`${f+y+gd}px`:"unset",left:N.horizontal==="left"?`${T}px`:"unset",right:N.horizontal==="right"?`${window.innerWidth-M}px`:"unset"},pointer:{left:`${S}px`,top:N.vertical==="top"?`${f+y}px`:`${f-gd}px`,right:"unset",bottom:"unset"},width:`${M-T}px`,orientation:N})},[e,n]);return v.useEffect(()=>{s();const u=s,d=s;return window.addEventListener("scroll",u,!0),window.addEventListener("resize",d,!0),()=>{window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",d,!0)}},[s]),i}const rS="_popup_cws49_1",iS="_top-orientation_cws49_9",oS="_pointer_cws49_15",aS="_icon_cws49_25",es={popup:rS,topOrientation:iS,pointer:oS,icon:aS};function E0(e){const{parentRef:n,elementRef:i,children:o,className:s,pointerClassName:u,preferredWidth:d}=e,{content:f,pointer:g,width:y,orientation:x}=nS(n,d);return h.jsxs(qC,{children:[h.jsx("div",{ref:i,style:{...f,width:y},className:Me(es.popup,x.vertical==="bottom"&&es.topOrientation,s),children:o}),h.jsx("div",{className:Me(es.pointer,x.vertical==="bottom"&&es.topOrientation,u),style:{...g},children:h.jsx("svg",{className:es.icon,viewBox:"0 0 200 100",children:h.jsx("path",{d:"M0 100 L100 0 L200 100Z"})})})]})}const sS="_input-error_1sxiz_1",lS="_pointer_1sxiz_14",Al={inputError:sS,pointer:lS};function Nf(e){const{children:n,className:i,disabled:o}=e,[s,u]=v.useState(!1),d=v.useRef(),f=v.useRef(null);return v.useEffect(()=>{if(ze(f.current))return;const{current:{parentElement:g}}=f;ze(g)||(d.current=g,u(!0))},[]),h.jsxs(h.Fragment,{children:[!s&&h.jsx("div",{className:Al.tooltipDummy,ref:f}),n&&!o&&h.jsxs(E0,{className:Me(Al.inputError,i),pointerClassName:Al.pointer,parentRef:d,children:[h.jsx(Tb,{className:Al.icon}),n]})]})}const uS="_input-label_3lsx4_1",cS="_disabled_3lsx4_7",dS="_required_3lsx4_11",vd={inputLabel:uS,disabled:cS,required:dS};function N0(e){const{children:n,className:i,disabled:o,required:s}=e;return n?h.jsxs("div",{className:Me(vd.inputLabel,o&&vd.disabled,i),children:[n,s&&h.jsx("span",{"aria-hidden":!0,className:vd.required,children:"*"})]}):null}function k0(e){const{data:n,keySelector:i,renderer:o,rendererParams:s}=e;return ze(n)?null:n.map((u,d)=>{const f=i(u,d),g=s(f,u,d,n);return h.jsx(o,{...g},String(f))})}const fS="_radio_1uudv_1",hS="_icon_1uudv_5",pS="_content_1uudv_10",mS="_description_1uudv_16",gS="_input_1uudv_21",vS="_active_1uudv_37",yS="_disabled_1uudv_43",wS="_read-only_1uudv_55",Xr={radio:fS,icon:hS,content:pS,description:mS,input:gS,active:vS,disabled:yS,readOnly:wS};function xS(e){const{name:n,label:i,description:o,className:s,value:u,inputName:d,onClick:f,disabled:g,readOnly:y,actions:x}=e,b=gr.useCallback(()=>{f&&f(n)},[n,f]),{content:m,containerClassName:w}=Ts({icons:u?h.jsx(Hb,{className:Xr.icon}):h.jsx(Ib,{className:Xr.icon}),actions:x,childrenContainerClassName:Xr.content,children:h.jsxs(h.Fragment,{children:[i,o&&h.jsx("div",{className:Xr.description,children:o})]}),spacing:"compact",withoutWrap:!0});return h.jsxs("label",{className:Me(Xr.radio,u&&Xr.active,g&&Xr.disabled,y&&Xr.readOnly,w,s),children:[h.jsx("input",{className:Xr.input,type:"radio",name:typeof d=="string"?d:void 0,checked:u,onClick:b,disabled:g,readOnly:!0}),m]})}const bS="_radio-input_17cft_1",CS="_radio-list-container_17cft_6",SS="_disabled_17cft_13",_S="_input-hint_17cft_18",$l={radioInput:bS,radioListContainer:CS,disabled:SS,inputHint:_S};function ES(e){return!!e.clearable}function NS(e){const n=ES(e),{className:i,name:o,options:s,value:u,keySelector:d,labelSelector:f,descriptionSelector:g,label:y,labelContainerClassName:x,hint:b,hintContainerClassName:m,listContainerClassName:w,error:N,renderer:S=xS,rendererParams:_,disabled:T,readOnly:M,required:$,onChange:F,withAsterisk:W}=e,de=gr.useCallback(ce=>{M||(n&&e.onChange(ce===u?void 0:ce,o),!n&&Ot(ce)&&F(ce,o))},[u,e,F,n,M,o]),O=gr.useCallback((ce,he)=>{const R={inputName:o,label:f(he),description:g?g(he):void 0,name:ce,onClick:de,value:ce===u,disabled:T,readOnly:M};return{..._?_(he):void 0,...R}},[o,f,u,de,_,T,M,g]),K=W??$;return h.jsxs("div",{className:Me($l.radioInput,T&&$l.disabled,i),children:[h.jsx(N0,{className:x,disabled:T,required:K,children:y}),h.jsx("div",{className:Me($l.radioListContainer,w),children:h.jsx(k0,{data:s,rendererParams:O,renderer:S,keySelector:d})}),b&&h.jsx("div",{className:Me($l.inputHint,m),children:b}),h.jsx(Nf,{children:N})]})}const kS="_button_1vbet_1",jS="_round_1vbet_31",TS="_primary_1vbet_34",PS="_secondary_1vbet_51",LS="_tertiary_1vbet_69",yd={button:kS,round:jS,primary:TS,secondary:PS,tertiary:LS};function kf(e){const{ariaLabel:n,children:i,className:o,variant:s,round:u=!0,...d}=e,f=Me(yd.button,yd[s],u&&yd.round,o);return h.jsx(Cf,{className:f,"aria-label":n,...d,children:i})}function MS(e){const{className:n,indeterminate:i,value:o}=e;return h.jsxs(h.Fragment,{children:[i&&h.jsx(Rb,{className:n}),o&&!i&&h.jsx(b0,{className:n}),!o&&!i&&h.jsx(x0,{className:n})]})}const DS="_checkbox_12g7n_1",OS="_with-background_12g7n_7",IS="_checkmark-container_12g7n_12",RS="_input_12g7n_18",AS="_content_12g7n_33",$S="_description_12g7n_40",FS="_checked_12g7n_45",zS="_checkmark_12g7n_12",BS="_disabled-checkbox_12g7n_58",Pr={checkbox:DS,withBackground:OS,checkmarkContainer:IS,input:RS,content:AS,description:$S,checked:FS,checkmark:zS,disabledCheckbox:BS};function wd(e){const{className:n,checkmark:i=MS,checkmarkClassName:o,checkmarkContainerClassName:s,disabled:u,error:d,indeterminate:f,inputClassName:g,invertedLogic:y=!1,label:x,labelContainerClassName:b,name:m,onChange:w,readOnly:N,tooltip:S,value:_,description:T,withBackground:M,...$}=e,F=v.useCallback(O=>{const K=O.currentTarget.checked;w(y?!K:K,m)},[m,w,y]),W=y?!_:_,de=Me(Pr.checkbox,n,!f&&W&&Pr.checked,M&&Pr.withBackground,u&&Pr.disabledCheckbox,N&&Pr.readOnly);return h.jsxs("label",{className:de,title:S,children:[h.jsxs("div",{className:Me(Pr.checkmarkContainer,s),children:[h.jsx("input",{onChange:F,className:Me(Pr.input,g),type:"checkbox",checked:W??!1,disabled:u||N,readOnly:N,...$}),h.jsx(i,{className:Me(Pr.checkmark,o),value:W??!1,indeterminate:f,"aria-hidden":"true"})]}),(x||T)&&h.jsxs("div",{className:Pr.content,children:[x&&h.jsx("div",{className:b,children:x}),T&&h.jsx("div",{className:Pr.description,children:T})]}),d&&h.jsx(Nf,{children:d})]})}var $e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function US(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function o(){return this instanceof o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(i,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),i}var Tn=function(){return Tn=Object.assign||function(e){for(var n,i=1,o=arguments.length;i=0}).sort(w_)},b_=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],If=b_.join(","),C_="".concat(If,", [data-focus-guard]"),Z0=function(e,n){return Ir((e.shadowRoot||e).children).reduce(function(i,o){return i.concat(o.matches(n?C_:If)?[o]:[],Z0(o))},[])},S_=function(e,n){var i;return e instanceof HTMLIFrameElement&&!((i=e.contentDocument)===null||i===void 0)&&i.body?ra([e.contentDocument.body],n):[e]},ra=function(e,n){return e.reduce(function(i,o){var s,u=Z0(o,n),d=(s=[]).concat.apply(s,u.map(function(f){return S_(f,n)}));return i.concat(d,o.parentNode?Ir(o.parentNode.querySelectorAll(If)).filter(function(f){return f===o}):[])},[])},__=function(e){var n=e.querySelectorAll("[".concat(XS,"]"));return Ir(n).map(function(i){return ra([i])}).reduce(function(i,o){return i.concat(o)},[])},Rf=function(e,n){return Ir(e).filter(function(i){return H0(n,i)}).filter(function(i){return g_(i)})},sg=function(e,n){return n===void 0&&(n=new Map),Ir(e).filter(function(i){return V0(n,i)})},Af=function(e,n,i){return Of(Rf(ra(e,i),n),!0,i)},vs=function(e,n){return Of(Rf(ra(e),n),!1)},E_=function(e,n){return Rf(__(e),n)},co=function(e,n){return e.shadowRoot?co(e.shadowRoot,n):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,n)?!0:Ir(e.children).some(function(i){var o;if(i instanceof HTMLIFrameElement){var s=(o=i.contentDocument)===null||o===void 0?void 0:o.body;return s?co(s,n):!1}return co(i,n)})},N_=function(e){for(var n=new Set,i=e.length,o=0;o0&&n.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(o)}return e.filter(function(d,f){return!n.has(f)})},Q0=function(e){return e.parentNode?Q0(e.parentNode):e},$f=function(e){var n=po(e);return n.filter(Boolean).reduce(function(i,o){var s=o.getAttribute(Ud);return i.push.apply(i,s?N_(Ir(Q0(o).querySelectorAll("[".concat(Ud,'="').concat(s,'"]:not([').concat(D0,'="disabled"])')))):[o]),i},[])},k_=function(e){try{return e()}catch{return}},ys=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var n=e.activeElement;return n.shadowRoot?ys(n.shadowRoot):n instanceof HTMLIFrameElement&&k_(function(){return n.contentWindow.document})?ys(n.contentWindow.document):n}},j_=function(e,n){return e===n},T_=function(e,n){return!!Ir(e.querySelectorAll("iframe")).some(function(i){return j_(i,n)})},K0=function(e,n){return n===void 0&&(n=ys(z0(e).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:$f(e).some(function(i){return co(i,n)||T_(i,n)})},P_=function(e){e===void 0&&(e=document);var n=ys(e);return n?Ir(e.querySelectorAll("[".concat(YS,"]"))).some(function(i){return co(i,n)}):!1},L_=function(e,n){return n.filter(G0).filter(function(i){return i.name===e.name}).filter(function(i){return i.checked})[0]||e},Ff=function(e,n){return G0(e)&&e.name?L_(e,n):e},M_=function(e){var n=new Set;return e.forEach(function(i){return n.add(Ff(i,e))}),e.filter(function(i){return n.has(i)})},lg=function(e){return e[0]&&e.length>1?Ff(e[0],e):e[0]},ug=function(e,n){return e.indexOf(Ff(n,e))},qd="NEW_FOCUS",D_=function(e,n,i,o,s){var u=e.length,d=e[0],f=e[u-1],g=Df(o);if(!(o&&e.indexOf(o)>=0)){var y=o!==void 0?i.indexOf(o):-1,x=s?i.indexOf(s):y,b=s?e.indexOf(s):-1;if(y===-1)return b!==-1?b:qd;if(b===-1)return qd;var m=y-x,w=i.indexOf(d),N=i.indexOf(f),S=M_(i),_=o!==void 0?S.indexOf(o):-1,T=_-(s?S.indexOf(s):y);if(!m&&b>=0||n.length===0)return b;var M=ug(e,n[0]),$=ug(e,n[n.length-1]);if(y<=w&&g&&Math.abs(m)>1)return $;if(y>=N&&g&&Math.abs(m)>1)return M;if(m&&Math.abs(T)>1)return b;if(y<=w)return $;if(y>N)return M;if(m)return Math.abs(m)>1?b:(u+b+m)%u}},O_=function(e){return function(n){var i,o=(i=q0(n))===null||i===void 0?void 0:i.autofocus;return n.autofocus||o!==void 0&&o!=="false"||e.indexOf(n)>=0}},cg=function(e,n,i){var o=e.map(function(u){var d=u.node;return d}),s=sg(o.filter(O_(i)));return s&&s.length?lg(s):lg(sg(n))},Wd=function(e,n){return n===void 0&&(n=[]),n.push(e),e.parentNode&&Wd(e.parentNode.host||e.parentNode,n),n},Ed=function(e,n){for(var i=Wd(e),o=Wd(n),s=0;s=0)return u}return!1},Y0=function(e,n,i){var o=po(e),s=po(n),u=o[0],d=!1;return s.filter(Boolean).forEach(function(f){d=Ed(d||f,f)||d,i.filter(Boolean).forEach(function(g){var y=Ed(u,g);y&&(!d||co(y,d)?d=y:d=Ed(y,d))})}),d},dg=function(e,n){return e.reduce(function(i,o){return i.concat(E_(o,n))},[])},I_=function(e,n){var i=new Map;return n.forEach(function(o){return i.set(o.node,o)}),e.map(function(o){return i.get(o)}).filter(y_)},R_=function(e,n){var i=ys(po(e).length>0?document:z0(e).ownerDocument),o=$f(e).filter(Vd),s=Y0(i||e,e,o),u=new Map,d=vs(o,u),f=d.filter(function(N){var S=N.node;return Vd(S)});if(f[0]){var g=vs([s],u).map(function(N){var S=N.node;return S}),y=I_(g,f),x=y.map(function(N){var S=N.node;return S}),b=y.filter(function(N){var S=N.tabIndex;return S>=0}).map(function(N){var S=N.node;return S}),m=D_(x,b,g,i,n);if(m===qd){var w=cg(d,b,dg(o,u))||cg(d,x,dg(o,u));if(w)return{node:w};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:y[m]}},A_=function(e){var n=$f(e).filter(Vd),i=Y0(e,e,n),o=Of(ra([i],!0),!0,!0),s=ra(n,!1);return o.map(function(u){var d=u.node,f=u.index;return{node:d,index:f,lockItem:s.indexOf(d)>=0,guard:Df(d)}})},zf=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Nd=0,kd=!1,X0=function(e,n,i){i===void 0&&(i={});var o=R_(e,n);if(!kd&&o){if(Nd>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),kd=!0,setTimeout(function(){kd=!1},1);return}Nd++,zf(o.node,i.focusOptions),Nd--}};function ts(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var n=e?new WeakRef(e):null;return function(){return n?.deref()||null}}var $_=function(e){if(!e)return null;for(var n=[],i=e;i&&i!==document.body;)n.push({current:ts(i),parent:ts(i.parentElement),left:ts(i.previousElementSibling),right:ts(i.nextElementSibling)}),i=i.parentElement;return{element:ts(e),stack:n,ownerDocument:e.ownerDocument}},F_=function(e){var n,i,o,s,u;if(e)for(var d=e.stack,f=e.ownerDocument,g=new Map,y=0,x=d;y-1&&(S.filter(function(T){var M=T.guard,$=T.node;return M&&$.dataset.focusAutoGuard}).forEach(function(T){var M=T.node;return M.removeAttribute("tabIndex")}),hg(_,S.length,1,S),hg(_,-1,-1,S))}}}return e},iv=function(e){pu()&&e&&(e.stopPropagation(),e.preventDefault())},Uf=function(){return Mf(pu)},nE=function(e){var n=e.target,i=e.currentTarget;i.contains(n)||K_(i,n)},rE=function(){return null},ov=function(){Bf=!0},av=function(){Bf=!1,ws="just",Mf(function(){ws="meanwhile"})},iE=function(){document.addEventListener("focusin",iv),document.addEventListener("focusout",Uf),window.addEventListener("focus",ov),window.addEventListener("blur",av)},oE=function(){document.removeEventListener("focusin",iv),document.removeEventListener("focusout",Uf),window.removeEventListener("focus",ov),window.removeEventListener("blur",av)};function aE(e){return e.filter(function(n){var i=n.disabled;return!i})}var sv={moveFocusInside:X0,focusInside:K0,focusNextElement:H_,focusPrevElement:V_,focusFirstElement:q_,focusLastElement:W_,captureFocusRestore:J0};function sE(e){var n=e.slice(-1)[0];n&&!Jo&&iE();var i=Jo,o=i&&n&&n.id===i.id;Jo=n,i&&!o&&(i.onDeactivation(),e.filter(function(s){var u=s.id;return u===i.id}).length||i.returnFocus(!n)),n?(Fn=null,(!o||i.observed!==n.observed)&&n.onActivation(sv),pu(),Mf(pu)):(oE(),Fn=null)}O0.assignSyncMedium(nE);I0.assignMedium(Uf);e_.assignMedium(function(e){return e(sv)});const lE=c_(aE,sE)(rE);Pf(R0,lE);var uE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function cE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=uE();return n&&e.setAttribute("nonce",n),e}function dE(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function fE(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var hE=function(){var e=0,n=null;return{add:function(i){e==0&&(n=cE())&&(dE(n,i),fE(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},pE=function(){var e=hE();return function(n,i){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&i])}},Hf=function(){var e=pE(),n=function(i){var o=i.styles,s=i.dynamic;return e(o,s),null};return n},mE={left:0,top:0,right:0,gap:0},jd=function(e){return parseInt(e||"",10)||0},gE=function(e){var n=window.getComputedStyle(document.body),i=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[jd(i),jd(o),jd(s)]},vE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mE;var n=gE(e),i=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-i+n[2]-n[0])}},yE=Hf(),ta="data-scroll-locked",wE=function(e,n,i,o){var s=e.left,u=e.top,d=e.right,f=e.gap;return i===void 0&&(i="margin"),` - .`.concat(qS,` { + */function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(i[s]=e[s]);return i}function xx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bx(e,n){return e.button===0&&(!n||n==="_self")&&!xx(e)}function Bd(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,i)=>{let o=e[i];return n.concat(Array.isArray(o)?o.map(s=>[i,s]):[[i,o]])},[]))}function Cx(e,n){let i=Bd(e);return n&&n.forEach((o,s)=>{i.has(s)||n.getAll(s).forEach(u=>{i.append(s,u)})}),i}const Sx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_x="6";try{window.__reactRouterVersion=_x}catch{}function Ex(e,n){return Dw({basename:n?.basename,future:ms({},n?.future,{v7_prependBasename:!0}),history:rw({window:n?.window}),hydrationData:n?.hydrationData||Nx(),routes:e,mapRouteProperties:yx,dataStrategy:n?.dataStrategy,patchRoutesOnNavigation:n?.patchRoutesOnNavigation,window:n?.window}).initialize()}function Nx(){var e;let n=(e=window)==null?void 0:e.__staticRouterHydrationData;return n&&n.errors&&(n=ms({},n,{errors:kx(n.errors)})),n}function kx(e){if(!e)return null;let n=Object.entries(e),i={};for(let[o,s]of n)if(s&&s.__type==="RouteErrorResponse")i[o]=new uu(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let u=window[s.__subType];if(typeof u=="function")try{let d=new u(s.message);d.stack="",i[o]=d}catch{}}if(i[o]==null){let u=new Error(s.message);u.stack="",i[o]=u}}else i[o]=s;return i}const jx=v.createContext({isTransitioning:!1}),Tx=v.createContext(new Map),Px="startTransition",Zm=G1[Px],Lx="flushSync",Qm=nw[Lx];function Mx(e){Zm?Zm(e):e()}function Ya(e){Qm?Qm(e):e()}class Dx{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",n(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",i(o))}})}}function Ox(e){let{fallbackElement:n,router:i,future:o}=e,[s,u]=v.useState(i.state),[d,f]=v.useState(),[g,y]=v.useState({isTransitioning:!1}),[x,b]=v.useState(),[m,w]=v.useState(),[N,S]=v.useState(),_=v.useRef(new Map),{v7_startTransition:T}=o||{},M=v.useCallback(K=>{T?Mx(K):K()},[T]),$=v.useCallback((K,de)=>{let{deletedFetchers:pe,flushSync:R,viewTransitionOpts:H}=de;K.fetchers.forEach((ee,me)=>{ee.data!==void 0&&_.current.set(me,ee.data)}),pe.forEach(ee=>_.current.delete(ee));let G=i.window==null||i.window.document==null||typeof i.window.document.startViewTransition!="function";if(!H||G){R?Ya(()=>u(K)):M(()=>u(K));return}if(R){Ya(()=>{m&&(x&&x.resolve(),m.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let ee=i.window.document.startViewTransition(()=>{Ya(()=>u(K))});ee.finished.finally(()=>{Ya(()=>{b(void 0),w(void 0),f(void 0),y({isTransitioning:!1})})}),Ya(()=>w(ee));return}m?(x&&x.resolve(),m.skipTransition(),S({state:K,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(f(K),y({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[i.window,m,x,_,M]);v.useLayoutEffect(()=>i.subscribe($),[i,$]),v.useEffect(()=>{g.isTransitioning&&!g.flushSync&&b(new Dx)},[g]),v.useEffect(()=>{if(x&&d&&i.window){let K=d,de=x.promise,pe=i.window.document.startViewTransition(async()=>{M(()=>u(K)),await de});pe.finished.finally(()=>{b(void 0),w(void 0),f(void 0),y({isTransitioning:!1})}),w(pe)}},[M,d,x,i.window]),v.useEffect(()=>{x&&d&&s.location.key===d.location.key&&x.resolve()},[x,m,s.location,d]),v.useEffect(()=>{!g.isTransitioning&&N&&(f(N.state),y({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}),S(void 0))},[g.isTransitioning,N]),v.useEffect(()=>{},[]);let F=v.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:K=>i.navigate(K),push:(K,de,pe)=>i.navigate(K,{state:de,preventScrollReset:pe?.preventScrollReset}),replace:(K,de,pe)=>i.navigate(K,{replace:!0,state:de,preventScrollReset:pe?.preventScrollReset})}),[i]),W=i.basename||"/",fe=v.useMemo(()=>({router:i,navigator:F,static:!1,basename:W}),[i,F,W]),O=v.useMemo(()=>({v7_relativeSplatPath:i.future.v7_relativeSplatPath}),[i.future.v7_relativeSplatPath]);return v.useEffect(()=>mx(o,i.future),[o,i.future]),v.createElement(v.Fragment,null,v.createElement(Su.Provider,{value:fe},v.createElement(d0.Provider,{value:s},v.createElement(Tx.Provider,{value:_.current},v.createElement(jx.Provider,{value:g},v.createElement(vx,{basename:W,location:s.location,navigationType:s.historyAction,navigator:F,future:O},s.initialized||i.future.v7_partialHydration?v.createElement(Ix,{routes:i.routes,future:i.future,state:s}):n))))),null)}const Ix=v.memo(Rx);function Rx(e){let{routes:n,future:i,state:o}=e;return rx(n,void 0,o,i)}const Ax=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fx=v.forwardRef(function(n,i){let{onClick:o,relative:s,reloadDocument:u,replace:d,state:f,target:g,to:y,preventScrollReset:x,viewTransition:b}=n,m=wx(n,Sx),{basename:w}=v.useContext(go),N,S=!1;if(typeof y=="string"&&$x.test(y)&&(N=y,Ax))try{let $=new URL(window.location.href),F=y.startsWith("//")?new URL($.protocol+y):new URL(y),W=la(F.pathname,w);F.origin===$.origin&&W!=null?y=W+F.search+F.hash:S=!0}catch{}let _=Jw(y,{relative:s}),T=zx(y,{replace:d,state:f,target:g,preventScrollReset:x,relative:s,viewTransition:b});function M($){o&&o($),$.defaultPrevented||T($)}return v.createElement("a",ms({},m,{href:N||_,onClick:S||u?o:M,ref:i,target:g}))});var Km;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Km||(Km={}));var Ym;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ym||(Ym={}));function zx(e,n){let{target:i,replace:o,state:s,preventScrollReset:u,relative:d,viewTransition:f}=n===void 0?{}:n,g=ks(),y=ua(),x=p0(e,{relative:d});return v.useCallback(b=>{if(bx(b,i)){b.preventDefault();let m=o!==void 0?o:fo(y)===fo(x);g(e,{replace:m,state:s,preventScrollReset:u,relative:d,viewTransition:f})}},[y,g,x,o,s,i,e,u,d,f])}function Bx(e){let n=v.useRef(Bd(e)),i=v.useRef(!1),o=ua(),s=v.useMemo(()=>Cx(o.search,i.current?null:n.current),[o.search]),u=ks(),d=v.useCallback((f,g)=>{const y=Bd(typeof f=="function"?f(s):f);i.current=!0,u("?"+y,g)},[u,s]);return[s,d]}function Ux(e){return typeof e=="number"?Number.isNaN(e):!1}function Fe(e){return e==null||Ux(e)}function Dt(e){return!Fe(e)}function Hx(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Fe(e)||e===!1||n.includes(e)}function bf(e){return Hx(e,[""])}function js(e){return!bf(e)}const Vx=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Vx.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});const qx={sorting:void 0,setSorting:e=>{console.warn("Trying to set to ",e)}},pL=v.createContext(qx),Wx=v.createContext({alerts:[],addAlert:()=>{console.warn("AlertContext::addAlert called before it was initialized")},removeAlert:()=>{console.warn("AlertContext::removeAlert called before it was initialized")},updateAlert:()=>{console.warn("AlertContext::updateAlert called before it was initialized")}}),mL=v.createContext({setShowDropdown:()=>{console.warn("DropdownMenuContext::setShowDropdown called without a provider")}}),y0=v.createContext({currentLanguage:"en",setCurrentLanguage:()=>{console.warn("LanguageContext::setCurrentLanguage called without a provider")},languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{console.warn("LanguageContext::setLanguageNamespaceStatus called without a provider")},strings:{},setStrings:()=>{console.warn("LanguageContext::setStrings called without a provider")},registerNamespace:()=>{console.warn("LanguageContext::registerNamespace called without a provider")}});v.createContext({variant:"primary"});function Gx(e){return typeof e=="number"?Number.isNaN(e):!1}function Zx(e){return e==null||Gx(e)}function Qx(e,n){if(Zx(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const Kx=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol"];Kx.reduce((e,n)=>({...e,[`[object ${n}]`]:n.toLowerCase()}),{});function Le(){for(var e=arguments.length,n=new Array(e),i=0;i{d&&d(u,b)},[d,u]);return h.jsx("button",{ref:s,name:typeof u=="string"?u:void 0,type:g,className:Le(Xm.rawButton,f&&Xm.focused,i),disabled:o,onClick:d?x:void 0,...y,children:n})}function Xa(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";if(Fe(e))return"";const o=String(e);return o.length>=n?o:Array(n-o.length+1).join(i)+o}function Jx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i="";const o=n?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789":"abcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;sn+i,0)}function Sf(e,n,i){const o=Math.min(n,i),s=Math.max(n,i);return Math.max(o,Math.min(s,e))}function Dr(e){const[n]=v.useState(()=>`_${Jx()}`),{spacing:i,variant:o="md",mode:s="gap",inner:u}=e;return v.useEffect(()=>{const d=["var(--go-ui-spacing-4xs)","var(--go-ui-spacing-3xs)","var(--go-ui-spacing-2xs)","var(--go-ui-spacing-xs)","var(--go-ui-spacing-sm)","var(--go-ui-spacing-md)","var(--go-ui-spacing-lg)","var(--go-ui-spacing-xl)","var(--go-ui-spacing-2xl)","var(--go-ui-spacing-3xl)","var(--go-ui-spacing-4xl)"];let f="0";if(i!=="none"){const x={condensed:-3,compact:-2,cozy:-1,default:0,comfortable:1,relaxed:2,loose:3},b={xs:3,sm:4,md:5,lg:6,xl:7},m=u?b[o]-1:b[o],w=x[i];f=d[Sf(m+w,0,d.length-1)]}if(Fe(i))return;const g=document.createElement("style");if(document.head.appendChild(g),!g.sheet){g.remove();return}let y;return s==="gap"||s==="grid-gap"?y=`gap: ${f};`:s==="padding-h"?y=`padding-left: ${f}; padding-right: ${f};`:s==="padding-v"&&(y=`padding-top: ${f}; padding-bottom: ${f};`),g.sheet.insertRule(`.${n} { ${y} }`),()=>{g.remove()}},[i,o,s,u,n]),n}const rb="_basic-layout_v9jro_1",ib="_with-wrap_v9jro_5",ob="_icons-container_v9jro_9",ab="_children-container_v9jro_14",sb="_actions-container_v9jro_19",Ja={basicLayout:rb,withWrap:ib,iconsContainer:ob,childrenContainer:ab,actionsContainer:sb};function Ts(e){const{className:n,icons:i,children:o,actions:s,iconsContainerClassName:u,childrenContainerClassName:d,actionsContainerClassName:f,withoutWrap:g,spacing:y="default",variant:x="md"}=e,b=Dr({spacing:y,variant:x,mode:"gap"}),m=Dr({spacing:y,variant:x,mode:"gap",inner:!0}),w=Le(Ja.basicLayout,!g&&Ja.withWrap,b,n),N=Fe(i)&&Fe(o)&&Fe(s)?null:h.jsxs(h.Fragment,{children:[i&&h.jsx("div",{className:Le(Ja.iconsContainer,m,u),children:i}),h.jsx("div",{className:Le(Ja.childrenContainer,m,d),children:o}),s&&h.jsx("div",{className:Le(Ja.actionsContainer,m,f),children:s})]});return{containerClassName:w,content:N}}const lb="_button_18a84_1",ub="_ellipsized_18a84_29",cb="_children_18a84_32",db="_overflow-wrapper_18a84_36",fb="_primary_18a84_44",hb="_secondary_18a84_45",pb="_no-spacing_18a84_50",mb="_condensed-spacing_18a84_54",gb="_compact-spacing_18a84_58",vb="_cozy-spacing_18a84_62",yb="_default-spacing_18a84_66",wb="_comfortable-spacing_18a84_70",xb="_relaxed-spacing_18a84_74",bb="_loose-spacing_18a84_78",Cb="_disabled_18a84_88",Sb="_tertiary_18a84_116",_b="_tertiary-on-dark_18a84_130",Eb="_dropdown-item_18a84_144",Qt={button:lb,ellipsized:ub,children:cb,overflowWrapper:db,primary:fb,secondary:hb,noSpacing:pb,condensedSpacing:mb,compactSpacing:gb,cozySpacing:vb,defaultSpacing:yb,comfortableSpacing:wb,relaxedSpacing:xb,looseSpacing:bb,disabled:Cb,tertiary:Sb,tertiaryOnDark:_b,dropdownItem:Eb},Nb={primary:Qt.primary,secondary:Qt.secondary,tertiary:Qt.tertiary,"tertiary-on-dark":Qt.tertiaryOnDark,"dropdown-item":Qt.dropdownItem},kb={none:Qt.noSpacing,condensed:Qt.condensedSpacing,compact:Qt.compactSpacing,cozy:Qt.cozySpacing,default:Qt.defaultSpacing,comfortable:Qt.comfortableSpacing,relaxed:Qt.relaxedSpacing,loose:Qt.looseSpacing};function jb(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:g,variant:y="primary",spacing:x="default",ellipsize:b}=e,m=Le(Qt.button,Nb[y],kb[x],d&&Qt.disabled,b&&Qt.ellipsized,u),w=v.useMemo(()=>b?h.jsx("div",{className:Qt.overflowWrapper,children:o}):o,[b,o]),{content:N,containerClassName:S}=Ts({className:m,icons:f,children:w,actions:n,iconsContainerClassName:g,childrenContainerClassName:Le(Qt.children,s),actionsContainerClassName:i,spacing:x,withoutWrap:!0,variant:"xs"});return{className:S,children:N,disabled:d}}function Be(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,disabled:d,icons:f,iconsContainerClassName:g,name:y,onClick:x,variant:b,type:m="button",spacing:w,...N}=e,S=v.useCallback((T,M)=>{x&&x(T,M)},[x]),_=jb({variant:b,className:u,actionsContainerClassName:i,iconsContainerClassName:g,childrenContainerClassName:s,children:o,icons:f,actions:n,spacing:w,disabled:d||m!=="submit"&&Fe(x)});return h.jsx(Cf,{name:y,type:m,onClick:S,...N,..._})}const Tb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#alert-line_svg__a)"},v.createElement("path",{d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0Zm-8.66 16h15.588L12 5.5 4.206 19ZM11 16h2v2h-2v-2Zm0-7h2v5h-2V9Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"alert-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),w0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56","aria-hidden":"true",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#analysis_svg__a)"},v.createElement("path",{d:"m12.384 37.796-7.179 7.18a4.115 4.115 0 0 0 5.82 5.819l7.179-7.18a24.009 24.009 0 0 1-5.82-5.819Zm13.619-13.798h-4a1.003 1.003 0 0 0-1 1v4.94a12.572 12.572 0 0 0 6 5.518V24.998a1.003 1.003 0 0 0-1-1Zm15.998-6h-4a1.003 1.003 0 0 0-1 1v16.458a12.572 12.572 0 0 0 6-5.519V18.998a1.003 1.003 0 0 0-1-1Zm-7.999 3h-4a1.003 1.003 0 0 0-1 1v14.138c1.972.48 4.029.48 6 0V21.998a1.003 1.003 0 0 0-1-1Z"}),v.createElement("path",{d:"M32.002 4a19.998 19.998 0 1 0 0 39.995 19.998 19.998 0 0 0 0-39.995Zm10.999 30.177a14.998 14.998 0 1 1-21.998-20.394 14.998 14.998 0 0 1 21.998 20.394Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"analysis_svg__a"},v.createElement("path",{d:"M0 0h56v56H0z"})))),Pb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-down-small-fill_svg__a)"},v.createElement("path",{d:"m12 16-6-6h12l-6 6Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-down-small-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Lb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-right-line_svg__a)"},v.createElement("path",{d:"m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2h12.172Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-right-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Mb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#arrow-up-small-fill_svg__a)"},v.createElement("path",{d:"m12 8 6 6H6l6-6Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"arrow-up-small-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Db=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#check-double-fill_svg__a)"},v.createElement("path",{d:"m11.602 13.76 1.412 1.412 8.466-8.466 1.414 1.414-9.88 9.88-6.364-6.364 1.414-1.414 2.125 2.125 1.413 1.412Zm.002-2.829 4.952-4.952 1.41 1.41-4.952 4.952-1.41-1.41Zm-2.827 5.656L7.364 18 1 11.636l1.414-1.414 1.413 1.412-.001.002 4.951 4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"check-double-fill_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ob=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#check-line_svg__a)"},v.createElement("path",{d:"m10 15.171 9.192-9.192 1.415 1.414L10 18l-6.364-6.364 1.414-1.414 4.95 4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"check-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ib=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-blank-circle-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-blank-circle-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),x0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-blank-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-blank-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Rb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-indeterminate-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm2 6h10v2H7v-2Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-indeterminate-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),b0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#checkbox-line_svg__a)"},v.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1 2v14h14V5H5Zm6.003 11L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414L11.003 16Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"checkbox-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ab=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#chevron-left-line_svg__a)"},v.createElement("path",{d:"M11.05 12 16 7.05l-1.413-1.414L8.223 12l6.364 6.364L16 16.95 11.05 12Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"chevron-left-line_svg__a"},v.createElement("path",{d:"M0 24h24V0H0z"})))),$b=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#chevron-right-line_svg__a)"},v.createElement("path",{d:"m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414 4.95-4.95Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"chevron-right-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Fb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{fillRule:"evenodd",d:"m13.057 11.996 4.716-4.716a.75.75 0 1 0-1.06-1.06l-4.717 4.716L7.28 6.22a.75.75 0 1 0-1.06 1.06l4.716 4.716-4.716 4.716a.75.75 0 1 0 1.06 1.06l4.716-4.715 4.716 4.716a.748.748 0 0 0 1.061 0 .75.75 0 0 0 0-1.061l-4.716-4.716Z",clipRule:"evenodd"})),_f=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#delete-bin-line_svg__a)"},v.createElement("path",{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3Zm1 2H6v12h12V8Zm-9 3h2v6H9v-6Zm4 0h2v6h-2v-6ZM9 4v2h6V4H9Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"delete-bin-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),zb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#menu-line_svg__a)"},v.createElement("path",{d:"M3 4h18v2H3V4Zm0 7h18v2H3v-2Zm0 7h18v2H3v-2Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"menu-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Bb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#question-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm-1-5h2v2h-2v-2Zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.5 3.5 0 1 1 13 13.355Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"question-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Ub=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#radio-button-line_svg__a)"},v.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20Zm0-3a5 5 0 1 1 0-10 5 5 0 0 1 0 10Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"radio-button-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Hb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#search-line_svg__a)"},v.createElement("path",{d:"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"search-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),Vb=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 25 25",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("path",{d:"M8.775 9.71a2.284 2.284 0 0 0-2.2 1.66H4.623a.623.623 0 0 0 0 1.247h1.952a2.284 2.284 0 0 0 4.401 0h8.804a.623.623 0 0 0 0-1.246h-8.804a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.076 1.038 1.038 0 0 1 0 2.076ZM15.627 4a2.284 2.284 0 0 0-2.2 1.661H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 1 0 0-1.246h-1.952A2.284 2.284 0 0 0 15.628 4Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Zm0 8.098a2.284 2.284 0 0 0-2.2 1.66H4.622a.623.623 0 0 0 0 1.246h8.803a2.285 2.285 0 0 0 4.402 0h1.952a.623.623 0 0 0 0-1.245h-1.952a2.284 2.284 0 0 0-2.2-1.661Zm0 3.322a1.038 1.038 0 1 1 0-2.077 1.038 1.038 0 0 1 0 2.077Z"})),C0=({title:e,titleId:n,...i})=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-labelledby":n},i),e?v.createElement("title",{id:n},e):null,v.createElement("g",{clipPath:"url(#upload-cloud-line_svg__a)"},v.createElement("path",{d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12l-10 .02c-3.356-.275-6-3.079-6-6.5Zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503-.12-.942a6 6 0 0 0-11.903 0l-.12.942-.805.503a4.5 4.5 0 0 0 2.029 8.31l.173.012h9.35l.173-.013ZM13 13v4h-2v-4H8l4-5 4 5h-3Z"})),v.createElement("defs",null,v.createElement("clipPath",{id:"upload-cloud-line_svg__a"},v.createElement("path",{d:"M0 0h24v24H0z"})))),qb="_spinner_50bgg_1",Wb="_spinner-bounce_50bgg_9",Rl={spinner:qb,spinnerBounce:Wb};function Xo(e){const{className:n}=e;return h.jsxs("div",{className:Le(Rl.spinner,n),children:[h.jsx("div",{className:Rl.spinnerBounce}),h.jsx("div",{className:Rl.spinnerBounce}),h.jsx("div",{className:Rl.spinnerBounce})]})}const Gb="_message_176iw_1",Zb="_icon_176iw_13",Qb="_spinner_176iw_17",Kb="_title_176iw_22",Yb="_errored_176iw_27",Xb="_compact_176iw_33",ji={message:Gb,icon:Zb,spinner:Qb,title:Kb,errored:Yb,compact:Xb};function Jb(e){const{className:n,pending:i=!1,variant:o,icon:s,title:u,description:d,actions:f,compact:g=!1,errored:y,erroredTitle:x,erroredDescription:b}=e,m=Dt(y?x:u),w=Dt(y?b:d);return h.jsxs("div",{className:Le(ji.message,o==="error"&&ji.errored,g&&ji.compact,n),children:[(s||i)&&h.jsxs("div",{className:ji.icon,children:[i&&h.jsx(Xo,{className:ji.spinner}),!i&&s]}),m&&h.jsx("div",{className:ji.title,children:y?x:u}),w&&h.jsx("div",{className:ji.description,children:d}),f&&h.jsx("div",{className:ji.actions,children:f})]})}function S0(e){const{strings:n,registerNamespace:i}=v.useContext(y0);return v.useEffect(()=>{i(e.namespace,e.strings)},[i,e]),n[e.namespace]??e.strings}const eC="common",tC={messageTitleFetching:"Fetching data...",messageTitleFilteredDataNotAvailable:"Data is not available for selected filter!",messageTitleDataNotAvailable:"Data is not available!",messageTitleDataFailedToFetch:"Failed to fetch data!"},nC={namespace:eC,strings:tC},rC="_default-message_wu986_1",iC="_overlay_wu986_2",Jm={defaultMessage:rC,overlay:iC};function _0(e){const{className:n,compact:i,pending:o,overlayPending:s,filtered:u,empty:d,errored:f,emptyMessage:g,filteredEmptyMessage:y,pendingMessage:x,errorMessage:b}=e,m=S0(nC),w=v.useMemo(()=>o?x??m.messageTitleFetching:f?b??m.messageTitleDataFailedToFetch:u?y??m.messageTitleFilteredDataNotAvailable:d?g??m.messageTitleDataNotAvailable:null,[d,o,u,f,g,y,x,b,m]);return!d&&!o&&!f?null:h.jsx(Jb,{className:Le(Jm.defaultMessage,o&&s&&Jm.overlay,n),icon:h.jsx(w0,{}),compact:i,title:w,pending:o})}const oC="_filter-bar_16xsj_1",aC="_grid-with-actions_16xsj_6",sC="_grid_16xsj_6",lC="_actions_16xsj_15",us={filterBar:oC,gridWithActions:aC,grid:sC,actions:lC};function eg(e){const{grid:n,actions:i,spacing:o="default"}=e,s=Dr({spacing:o,mode:"gap"}),u=Dr({spacing:o,mode:"gap",inner:!0}),d=Dr({spacing:o,mode:"grid-gap"});return Fe(n)&&Fe(i)?null:h.jsxs("div",{className:Le(us.gridWithActions,s),children:[h.jsx("div",{className:Le(us.grid,d),children:n}),Dt(i)&&h.jsx("div",{className:Le(us.actions,u),children:i})]})}function uC(e){const{className:n,filters:i,filterActions:o,search:s,searchActions:u,filterPreview:d,spacing:f}=e;return Fe(i)&&Fe(o)&&Fe(s)&&Fe(u)&&Fe(d)?null:h.jsxs("div",{className:Le(us.filterBar,n),children:[h.jsx(eg,{grid:i,actions:o,spacing:f}),h.jsx(eg,{grid:s,actions:u,spacing:f}),Dt(d)&&h.jsx("div",{className:us.filterPreview,children:d})]})}function cC(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:g,withoutWrap:y}=e,{content:x,containerClassName:b}=Ts({actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,icons:d,iconsContainerClassName:f,spacing:g,withoutWrap:y});return h.jsx("div",{className:b,children:x})}function dC(e,n,i){const[o,s]=v.useState(()=>e);return v.useEffect(()=>{const u=setTimeout(()=>{s(e)},300);return()=>{clearTimeout(u)}},[e,n,i]),o}function fC(e,n=!1){const[i,o]=v.useState(()=>{var s;const u=(s=e.current)==null?void 0:s.getBoundingClientRect();return{width:u?.width??0,height:u?.height??0}});return v.useEffect(()=>{const s=new ResizeObserver(d=>{const f=d.at(0),g=f?.contentRect;g&&o({width:g.width,height:g.height})}),u=e.current;return!n&&Dt(u)&&s.observe(u),()=>{!n&&Dt(u)&&s.unobserve(u)}},[n,e]),dC(i)}const hC="_heading_1uxwj_1",pC="_level-one_1uxwj_9",mC="_level-two_1uxwj_17",gC="_level-three_1uxwj_25",vC="_level-four_1uxwj_33",yC="_level-five_1uxwj_37",wC="_level-six_1uxwj_41",xC="_ellipsized-text_1uxwj_45",bC="_ellipsized_1uxwj_45",ei={heading:hC,levelOne:pC,levelTwo:mC,levelThree:gC,levelFour:vC,levelFive:yC,levelSix:wC,ellipsizedText:xC,ellipsized:bC},CC={1:ei.levelOne,2:ei.levelTwo,3:ei.levelThree,4:ei.levelFour,5:ei.levelFive,6:ei.levelSix};function kn(e){const{className:n,level:i=3,children:o,ellipsize:s}=e,u=`h${i}`,d=v.useRef(null),f=fC(d);return o?h.jsxs(u,{className:Le(ei.heading,s&&ei.ellipsized,CC[i],n),ref:d,children:[s&&h.jsx("div",{className:ei.ellipsizedText,style:{width:`${f.width}px`},title:typeof o=="string"?o:void 0,children:o}),!s&&o]}):null}const SC="_header_537v1_1",_C={header:SC};function EC(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,elementRef:d,ellipsizeHeading:f,heading:g,headingClassName:y,headingLevel:x,headingDescription:b,headingDescriptionContainerClassName:m,icons:w,iconsContainerClassName:N,headingSectionClassName:S,headingContainerClassName:_,wrapHeadingContent:T=!1,spacing:M="default"}=e,$=v.useMemo(()=>Fe(g)&&Fe(b)?null:h.jsxs(h.Fragment,{children:[h.jsx(kn,{level:x,className:y,ellipsize:f,children:g}),b&&h.jsx("div",{className:m,children:b})]}),[g,f,b,y,m,x]),{content:F,containerClassName:W}=Ts({actions:n,actionsContainerClassName:i,children:$,childrenContainerClassName:_,className:S,icons:w,iconsContainerClassName:N,withoutWrap:!T,spacing:M,variant:"sm"}),fe=Dr({spacing:M,inner:!0});return!F&&!o?null:h.jsxs("div",{className:Le(_C.header,fe,u),ref:d,children:[F&&h.jsx("div",{className:W,children:F}),o&&h.jsx("div",{className:s,children:o})]})}const NC="_container_lyve2_1",kC="_header_lyve2_8",jC="_centered-header-description-container_lyve2_11",TC="_centered-description_lyve2_16",PC="_with-border-and-header-background_lyve2_23",LC="_border_lyve2_33",MC="_content_lyve2_39",DC="_pending-overlaid_lyve2_42",OC="_message_lyve2_47",IC="_footer_lyve2_53",RC="_with-grid-view_lyve2_57",AC="_two-columns_lyve2_67",$C="_three-columns_lyve2_82",FC="_four-columns_lyve2_96",zC="_five-columns_lyve2_100",BC="_with-vertical-view_lyve2_105",UC="_with-overflow-in-content_lyve2_112",Zt={container:NC,header:kC,centeredHeaderDescriptionContainer:jC,centeredDescription:TC,withBorderAndHeaderBackground:PC,border:LC,content:MC,pendingOverlaid:DC,message:OC,footer:IC,withGridView:RC,twoColumns:AC,threeColumns:$C,fourColumns:FC,fiveColumns:zC,withVerticalView:BC,withOverflowInContent:UC},HC={2:Zt.twoColumns,3:Zt.threeColumns,4:Zt.fourColumns,5:Zt.fiveColumns};function on(e){const{actions:n,actionsContainerClassName:i,children:o,childrenContainerClassName:s,className:u,containerRef:d,contentViewType:f="default",ellipsizeHeading:g,filters:y,filterActions:x,footerActions:b,footerActionsContainerClassName:m,footerClassName:w,footerContent:N,footerContentClassName:S,footerIcons:_,headerClassName:T,headerDescription:M,withCenteredHeaderDescription:$,headerDescriptionContainerClassName:F,headerElementRef:W,heading:fe,headingClassName:O,headingContainerClassName:K,headingDescription:de,headingDescriptionContainerClassName:pe,headingLevel:R,headingSectionClassName:H,icons:G,iconsContainerClassName:ee,numPreferredGridContentColumns:me=2,spacing:Ce="default",withHeaderBorder:Ee=!1,withFooterBorder:Z=!1,withBorderAndHeaderBackground:ue=!1,withOverflowInContent:j=!1,withInternalPadding:V=!1,withoutWrapInHeading:ae=!1,withoutWrapInFooter:Se=!1,pending:le=!1,overlayPending:re=!1,empty:te=!1,errored:Q=!1,filtered:Y=!1,compactMessage:Je=!1,errorMessage:an,emptyMessage:Ut,pendingMessage:ot,filteredEmptyMessage:vt}=e,lt=_||N||b,pt=fe||n||G||M||de,ct=Dr({spacing:Ce}),dt=Dr({spacing:Ce,mode:"padding-h"}),yt=Dr({spacing:Ce,mode:"padding-v"}),Ot=Dr({spacing:Ce,mode:"gap",inner:!0}),sn=v.useMemo(()=>Fe(M)?null:$?h.jsx("div",{className:Zt.centeredDescription,children:M}):M,[M,$]);return!pt&&!y&&!o&&!lt&&!te&&!le&&!Q&&!Y?null:h.jsxs("div",{ref:d,className:Le(Zt.container,!ue&&ct,V&&yt,j&&Zt.withOverflowInContent,ue&&Zt.withBorderAndHeaderBackground,f==="grid"&&Zt.withGridView,f==="grid"&&HC[me],f==="vertical"&&Zt.withVerticalView,u),children:[pt&&h.jsx(EC,{actions:n,className:Le(Zt.header,ue&&yt,(V||ue)&&dt,T),elementRef:W,actionsContainerClassName:i,ellipsizeHeading:g,heading:fe,headingLevel:R,icons:G,iconsContainerClassName:ee,childrenContainerClassName:Le($&&Zt.centeredHeaderDescriptionContainer,F),headingSectionClassName:H,headingClassName:O,headingContainerClassName:K,wrapHeadingContent:!ae,headingDescription:de,headingDescriptionContainerClassName:pe,spacing:Ce,children:sn}),Ee&&h.jsx("div",{className:Zt.border}),h.jsx(uC,{filters:y,filterActions:x,spacing:Ce,className:Le(V&&dt)}),(o||te||le||Q||Y)&&h.jsxs("div",{className:Le(Zt.content,f!=="default"&&Ot,(V||ue)&&dt,ue&&yt,re&&le&&Zt.pendingOverlaid,s),children:[h.jsx(_0,{className:Zt.message,pending:le,filtered:Y,errored:Q,empty:te,compact:Je,overlayPending:re,emptyMessage:Ut,filteredEmptyMessage:vt,pendingMessage:ot,errorMessage:an}),!te&&!Q&&(!le||re)&&o]}),lt&&Z&&h.jsx("div",{className:Zt.border}),lt&&h.jsx(cC,{actions:b,icons:_,childrenContainerClassName:S,className:Le(Zt.footer,V&&dt,ue&&yt,w),actionsContainerClassName:m,spacing:Ce,withoutWrap:Se,children:N})]})}function VC(e){const{children:n,container:i=document.body,portalKey:o}=e;return h.jsx(h.Fragment,{children:pf.createPortal(n,i,o)})}const qC="yyyy-MM-dd",gL="-",vL=108;function cs(e,n,i){return Fe(e)?void 0:e.reduce((o,s,u)=>{const d=n(s,u);return o[d]=i?i(s,d,u,o):s,o},{})}function Ef(e,n){return function(i,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const u=Dt(i)?e(i):void 0,d=Dt(o)?e(o):void 0;return u===d?0:Fe(u)?s*1:Fe(d)?s*-1:s*n(u,d)}}const yL=Ef(e=>e,(e,n)=>e.localeCompare(n)),wL=Ef(e=>e,(e,n)=>e-n),WC=(e,n,i,o)=>i?Ef(s=>s,(s,u)=>{const d=i.toLowerCase(),f=s.toLowerCase().indexOf(d),g=u.toLowerCase().indexOf(d);return f===g||f===-1&&g===-1?s.localeCompare(u):g===-1?-1:f===-1?1:f-g})(e,n,o):0,GC=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ZC=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var ti=function(e){return e.time="time",e.date="date",e}(ti||{});function tg(e,n){let i,o;return n.forEach(s=>{const u=e.indexOf(s);if(u===-1)return;const d=u+s.length;(i===void 0||uo)&&(o=d)}),{start:i,end:o}}function QC(e){const{start:n,end:i}=tg(e,["yyyy","yy","MMM","MM","dd","EEE"]),{start:o,end:s}=tg(e,["hh","mm","ss","aaa"]),u=e.length,d=(f,g)=>f===void 0||g===void 0?"":e.substring(f,g);return n===void 0&&o===void 0?[{value:e}].filter(f=>f.value!==""):n===void 0?[{value:d(0,o)},{type:ti.time,value:d(o,s)},{value:d(s,u)}].filter(f=>f.value!==""):o===void 0?[{value:d(0,n)},{type:ti.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!==""):nf.value!==""):[{value:d(0,o)},{type:ti.time,value:d(o,s)},{value:d(s,n)},{type:ti.date,value:d(n,i)},{value:d(i,u)}].filter(f=>f.value!=="")}function KC(e,n){return e.map(i=>{if(i.type===ti.date){const o=n.getFullYear(),s=n.getMonth(),u=n.getDate(),d=ZC[n.getDay()],f={...i};return f.value=f.value.replace("yyyy",String(o)).replace("yy",String(o%100)).replace("MMM",GC[s]).replace("MM",Xa(s+1,2)).replace("EEE",d).replace("dd",Xa(u,2)),f}if(i.type===ti.time){const o=i.value.indexOf("aaa"),s=n.getHours(),u=o>=0?(s-1)%12+1:s,d=s>=12?"PM":"AM",f=n.getMinutes(),g=n.getSeconds(),y={...i};return y.value=y.value.replace("hh",Xa(u,2)).replace("mm",Xa(f,2)).replace("ss",Xa(g,2)).replace("aaa",d),y}return i})}function xL(e,n,i=!0){if(Fe(e)||Fe(n))return;if(n===0)return 0;const o=e*100/n;return i?Sf(o,0,100):o}function YC(e){if(Fe(e))return;const n=e.filter(Dt);if(n.length!==0)return n}function bL(e){const n=YC(e);if(!Fe(n))return nb(n)}function ho(e,n,i){return bf(n)?e:e.filter(o=>eb(i(o),n)).sort((o,s)=>WC(i(o),i(s),n))}function ng(e){if(e<1e3)return 2;const n=new Intl.NumberFormat("default",{notation:"compact"}).formatToParts(e).find(({type:i})=>i==="fraction");return Fe(n)||bf(n.value)?0:Number(n.value)>.1?1:0}function CL(e,n){if(Fe(e))return;const i={};if(Fe(n))return i.maximumFractionDigits=ng(e),new Intl.NumberFormat("default",i).format(e);const{currency:o,unit:s,maximumFractionDigits:u,compact:d,separatorHidden:f,language:g}=n;return js(s)&&(i.unit=s,i.unitDisplay="short"),o&&(i.currencyDisplay="narrowSymbol",i.style="currency"),d&&(i.notation="compact",i.compactDisplay="short"),i.useGrouping=!f,Dt(u)?i.maximumFractionDigits=u:i.maximumFractionDigits=ng(e),new Intl.NumberFormat(g,i).format(e)}function SL(e,n=qC){if(Fe(e))return;const i=new Date(e);return Number.isNaN(i.getTime())?void 0:KC(QC(n),i).map(o=>o.value).join("")}const du=parseFloat(getComputedStyle(document.documentElement).fontSize),XC=16*du,gd=.5*du,JC={vertical:"bottom",horizontal:"right"};function eS(e){const n=window.innerWidth/2,i=window.innerHeight/2,o=e.x+e.width/2,s=e.y+e.height/2;return{horizontal:o{if(Fe(e.current))return;const u=e.current.getBoundingClientRect(),{x:d,y:f,width:g,height:y}=u,x=du,b=x,m=window.innerWidth-x,w=window.innerWidth-2*x,N=eS(u),S=d+g/2,_=Sf(Dt(n)?n*du:g,XC,w);let T=S-_/2,M=S+_/2;if(Tm){const $=M-m-x;M=m,T-=$}o({content:{bottom:N.vertical==="bottom"?`${window.innerHeight-f+gd}px`:"unset",top:N.vertical==="top"?`${f+y+gd}px`:"unset",left:N.horizontal==="left"?`${T}px`:"unset",right:N.horizontal==="right"?`${window.innerWidth-M}px`:"unset"},pointer:{left:`${S}px`,top:N.vertical==="top"?`${f+y}px`:`${f-gd}px`,right:"unset",bottom:"unset"},width:`${M-T}px`,orientation:N})},[e,n]);return v.useEffect(()=>{s();const u=s,d=s;return window.addEventListener("scroll",u,!0),window.addEventListener("resize",d,!0),()=>{window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",d,!0)}},[s]),i}const nS="_popup_cws49_1",rS="_top-orientation_cws49_9",iS="_pointer_cws49_15",oS="_icon_cws49_25",es={popup:nS,topOrientation:rS,pointer:iS,icon:oS};function E0(e){const{parentRef:n,elementRef:i,children:o,className:s,pointerClassName:u,preferredWidth:d}=e,{content:f,pointer:g,width:y,orientation:x}=tS(n,d);return h.jsxs(VC,{children:[h.jsx("div",{ref:i,style:{...f,width:y},className:Le(es.popup,x.vertical==="bottom"&&es.topOrientation,s),children:o}),h.jsx("div",{className:Le(es.pointer,x.vertical==="bottom"&&es.topOrientation,u),style:{...g},children:h.jsx("svg",{className:es.icon,viewBox:"0 0 200 100",children:h.jsx("path",{d:"M0 100 L100 0 L200 100Z"})})})]})}const aS="_input-error_1sxiz_1",sS="_pointer_1sxiz_14",Al={inputError:aS,pointer:sS};function Nf(e){const{children:n,className:i,disabled:o}=e,[s,u]=v.useState(!1),d=v.useRef(),f=v.useRef(null);return v.useEffect(()=>{if(Fe(f.current))return;const{current:{parentElement:g}}=f;Fe(g)||(d.current=g,u(!0))},[]),h.jsxs(h.Fragment,{children:[!s&&h.jsx("div",{className:Al.tooltipDummy,ref:f}),n&&!o&&h.jsxs(E0,{className:Le(Al.inputError,i),pointerClassName:Al.pointer,parentRef:d,children:[h.jsx(Tb,{className:Al.icon}),n]})]})}const lS="_input-label_3lsx4_1",uS="_disabled_3lsx4_7",cS="_required_3lsx4_11",vd={inputLabel:lS,disabled:uS,required:cS};function N0(e){const{children:n,className:i,disabled:o,required:s}=e;return n?h.jsxs("div",{className:Le(vd.inputLabel,o&&vd.disabled,i),children:[n,s&&h.jsx("span",{"aria-hidden":!0,className:vd.required,children:"*"})]}):null}function k0(e){const{data:n,keySelector:i,renderer:o,rendererParams:s}=e;return Fe(n)?null:n.map((u,d)=>{const f=i(u,d),g=s(f,u,d,n);return h.jsx(o,{...g},String(f))})}const dS="_radio_1uudv_1",fS="_icon_1uudv_5",hS="_content_1uudv_10",pS="_description_1uudv_16",mS="_input_1uudv_21",gS="_active_1uudv_37",vS="_disabled_1uudv_43",yS="_read-only_1uudv_55",Xr={radio:dS,icon:fS,content:hS,description:pS,input:mS,active:gS,disabled:vS,readOnly:yS};function wS(e){const{name:n,label:i,description:o,className:s,value:u,inputName:d,onClick:f,disabled:g,readOnly:y,actions:x}=e,b=gr.useCallback(()=>{f&&f(n)},[n,f]),{content:m,containerClassName:w}=Ts({icons:u?h.jsx(Ub,{className:Xr.icon}):h.jsx(Ib,{className:Xr.icon}),actions:x,childrenContainerClassName:Xr.content,children:h.jsxs(h.Fragment,{children:[i,o&&h.jsx("div",{className:Xr.description,children:o})]}),spacing:"compact",withoutWrap:!0});return h.jsxs("label",{className:Le(Xr.radio,u&&Xr.active,g&&Xr.disabled,y&&Xr.readOnly,w,s),children:[h.jsx("input",{className:Xr.input,type:"radio",name:typeof d=="string"?d:void 0,checked:u,onClick:b,disabled:g,readOnly:!0}),m]})}const xS="_radio-input_17cft_1",bS="_radio-list-container_17cft_6",CS="_disabled_17cft_13",SS="_input-hint_17cft_18",$l={radioInput:xS,radioListContainer:bS,disabled:CS,inputHint:SS};function _S(e){return!!e.clearable}function ES(e){const n=_S(e),{className:i,name:o,options:s,value:u,keySelector:d,labelSelector:f,descriptionSelector:g,label:y,labelContainerClassName:x,hint:b,hintContainerClassName:m,listContainerClassName:w,error:N,renderer:S=wS,rendererParams:_,disabled:T,readOnly:M,required:$,onChange:F,withAsterisk:W}=e,fe=gr.useCallback(de=>{M||(n&&e.onChange(de===u?void 0:de,o),!n&&Dt(de)&&F(de,o))},[u,e,F,n,M,o]),O=gr.useCallback((de,pe)=>{const R={inputName:o,label:f(pe),description:g?g(pe):void 0,name:de,onClick:fe,value:de===u,disabled:T,readOnly:M};return{..._?_(pe):void 0,...R}},[o,f,u,fe,_,T,M,g]),K=W??$;return h.jsxs("div",{className:Le($l.radioInput,T&&$l.disabled,i),children:[h.jsx(N0,{className:x,disabled:T,required:K,children:y}),h.jsx("div",{className:Le($l.radioListContainer,w),children:h.jsx(k0,{data:s,rendererParams:O,renderer:S,keySelector:d})}),b&&h.jsx("div",{className:Le($l.inputHint,m),children:b}),h.jsx(Nf,{children:N})]})}const NS="_button_1vbet_1",kS="_round_1vbet_31",jS="_primary_1vbet_34",TS="_secondary_1vbet_51",PS="_tertiary_1vbet_69",yd={button:NS,round:kS,primary:jS,secondary:TS,tertiary:PS};function kf(e){const{ariaLabel:n,children:i,className:o,variant:s,round:u=!0,...d}=e,f=Le(yd.button,yd[s],u&&yd.round,o);return h.jsx(Cf,{className:f,"aria-label":n,...d,children:i})}function LS(e){const{className:n,indeterminate:i,value:o}=e;return h.jsxs(h.Fragment,{children:[i&&h.jsx(Rb,{className:n}),o&&!i&&h.jsx(b0,{className:n}),!o&&!i&&h.jsx(x0,{className:n})]})}const MS="_checkbox_12g7n_1",DS="_with-background_12g7n_7",OS="_checkmark-container_12g7n_12",IS="_input_12g7n_18",RS="_content_12g7n_33",AS="_description_12g7n_40",$S="_checked_12g7n_45",FS="_checkmark_12g7n_12",zS="_disabled-checkbox_12g7n_58",Pr={checkbox:MS,withBackground:DS,checkmarkContainer:OS,input:IS,content:RS,description:AS,checked:$S,checkmark:FS,disabledCheckbox:zS};function wd(e){const{className:n,checkmark:i=LS,checkmarkClassName:o,checkmarkContainerClassName:s,disabled:u,error:d,indeterminate:f,inputClassName:g,invertedLogic:y=!1,label:x,labelContainerClassName:b,name:m,onChange:w,readOnly:N,tooltip:S,value:_,description:T,withBackground:M,...$}=e,F=v.useCallback(O=>{const K=O.currentTarget.checked;w(y?!K:K,m)},[m,w,y]),W=y?!_:_,fe=Le(Pr.checkbox,n,!f&&W&&Pr.checked,M&&Pr.withBackground,u&&Pr.disabledCheckbox,N&&Pr.readOnly);return h.jsxs("label",{className:fe,title:S,children:[h.jsxs("div",{className:Le(Pr.checkmarkContainer,s),children:[h.jsx("input",{onChange:F,className:Le(Pr.input,g),type:"checkbox",checked:W??!1,disabled:u||N,readOnly:N,...$}),h.jsx(i,{className:Le(Pr.checkmark,o),value:W??!1,indeterminate:f,"aria-hidden":"true"})]}),(x||T)&&h.jsxs("div",{className:Pr.content,children:[x&&h.jsx("div",{className:b,children:x}),T&&h.jsx("div",{className:Pr.description,children:T})]}),d&&h.jsx(Nf,{children:d})]})}var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function BS(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function o(){return this instanceof o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(i,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),i}var Tn=function(){return Tn=Object.assign||function(e){for(var n,i=1,o=arguments.length;i=0}).sort(y_)},x_=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],If=x_.join(","),b_="".concat(If,", [data-focus-guard]"),Z0=function(e,n){return Ir((e.shadowRoot||e).children).reduce(function(i,o){return i.concat(o.matches(n?b_:If)?[o]:[],Z0(o))},[])},C_=function(e,n){var i;return e instanceof HTMLIFrameElement&&!((i=e.contentDocument)===null||i===void 0)&&i.body?ra([e.contentDocument.body],n):[e]},ra=function(e,n){return e.reduce(function(i,o){var s,u=Z0(o,n),d=(s=[]).concat.apply(s,u.map(function(f){return C_(f,n)}));return i.concat(d,o.parentNode?Ir(o.parentNode.querySelectorAll(If)).filter(function(f){return f===o}):[])},[])},S_=function(e){var n=e.querySelectorAll("[".concat(YS,"]"));return Ir(n).map(function(i){return ra([i])}).reduce(function(i,o){return i.concat(o)},[])},Rf=function(e,n){return Ir(e).filter(function(i){return H0(n,i)}).filter(function(i){return m_(i)})},sg=function(e,n){return n===void 0&&(n=new Map),Ir(e).filter(function(i){return V0(n,i)})},Af=function(e,n,i){return Of(Rf(ra(e,i),n),!0,i)},vs=function(e,n){return Of(Rf(ra(e),n),!1)},__=function(e,n){return Rf(S_(e),n)},co=function(e,n){return e.shadowRoot?co(e.shadowRoot,n):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,n)?!0:Ir(e.children).some(function(i){var o;if(i instanceof HTMLIFrameElement){var s=(o=i.contentDocument)===null||o===void 0?void 0:o.body;return s?co(s,n):!1}return co(i,n)})},E_=function(e){for(var n=new Set,i=e.length,o=0;o0&&n.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(o)}return e.filter(function(d,f){return!n.has(f)})},Q0=function(e){return e.parentNode?Q0(e.parentNode):e},$f=function(e){var n=po(e);return n.filter(Boolean).reduce(function(i,o){var s=o.getAttribute(Ud);return i.push.apply(i,s?E_(Ir(Q0(o).querySelectorAll("[".concat(Ud,'="').concat(s,'"]:not([').concat(D0,'="disabled"])')))):[o]),i},[])},N_=function(e){try{return e()}catch{return}},ys=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var n=e.activeElement;return n.shadowRoot?ys(n.shadowRoot):n instanceof HTMLIFrameElement&&N_(function(){return n.contentWindow.document})?ys(n.contentWindow.document):n}},k_=function(e,n){return e===n},j_=function(e,n){return!!Ir(e.querySelectorAll("iframe")).some(function(i){return k_(i,n)})},K0=function(e,n){return n===void 0&&(n=ys(z0(e).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:$f(e).some(function(i){return co(i,n)||j_(i,n)})},T_=function(e){e===void 0&&(e=document);var n=ys(e);return n?Ir(e.querySelectorAll("[".concat(KS,"]"))).some(function(i){return co(i,n)}):!1},P_=function(e,n){return n.filter(G0).filter(function(i){return i.name===e.name}).filter(function(i){return i.checked})[0]||e},Ff=function(e,n){return G0(e)&&e.name?P_(e,n):e},L_=function(e){var n=new Set;return e.forEach(function(i){return n.add(Ff(i,e))}),e.filter(function(i){return n.has(i)})},lg=function(e){return e[0]&&e.length>1?Ff(e[0],e):e[0]},ug=function(e,n){return e.indexOf(Ff(n,e))},qd="NEW_FOCUS",M_=function(e,n,i,o,s){var u=e.length,d=e[0],f=e[u-1],g=Df(o);if(!(o&&e.indexOf(o)>=0)){var y=o!==void 0?i.indexOf(o):-1,x=s?i.indexOf(s):y,b=s?e.indexOf(s):-1;if(y===-1)return b!==-1?b:qd;if(b===-1)return qd;var m=y-x,w=i.indexOf(d),N=i.indexOf(f),S=L_(i),_=o!==void 0?S.indexOf(o):-1,T=_-(s?S.indexOf(s):y);if(!m&&b>=0||n.length===0)return b;var M=ug(e,n[0]),$=ug(e,n[n.length-1]);if(y<=w&&g&&Math.abs(m)>1)return $;if(y>=N&&g&&Math.abs(m)>1)return M;if(m&&Math.abs(T)>1)return b;if(y<=w)return $;if(y>N)return M;if(m)return Math.abs(m)>1?b:(u+b+m)%u}},D_=function(e){return function(n){var i,o=(i=q0(n))===null||i===void 0?void 0:i.autofocus;return n.autofocus||o!==void 0&&o!=="false"||e.indexOf(n)>=0}},cg=function(e,n,i){var o=e.map(function(u){var d=u.node;return d}),s=sg(o.filter(D_(i)));return s&&s.length?lg(s):lg(sg(n))},Wd=function(e,n){return n===void 0&&(n=[]),n.push(e),e.parentNode&&Wd(e.parentNode.host||e.parentNode,n),n},Ed=function(e,n){for(var i=Wd(e),o=Wd(n),s=0;s=0)return u}return!1},Y0=function(e,n,i){var o=po(e),s=po(n),u=o[0],d=!1;return s.filter(Boolean).forEach(function(f){d=Ed(d||f,f)||d,i.filter(Boolean).forEach(function(g){var y=Ed(u,g);y&&(!d||co(y,d)?d=y:d=Ed(y,d))})}),d},dg=function(e,n){return e.reduce(function(i,o){return i.concat(__(o,n))},[])},O_=function(e,n){var i=new Map;return n.forEach(function(o){return i.set(o.node,o)}),e.map(function(o){return i.get(o)}).filter(v_)},I_=function(e,n){var i=ys(po(e).length>0?document:z0(e).ownerDocument),o=$f(e).filter(Vd),s=Y0(i||e,e,o),u=new Map,d=vs(o,u),f=d.filter(function(N){var S=N.node;return Vd(S)});if(f[0]){var g=vs([s],u).map(function(N){var S=N.node;return S}),y=O_(g,f),x=y.map(function(N){var S=N.node;return S}),b=y.filter(function(N){var S=N.tabIndex;return S>=0}).map(function(N){var S=N.node;return S}),m=M_(x,b,g,i,n);if(m===qd){var w=cg(d,b,dg(o,u))||cg(d,x,dg(o,u));if(w)return{node:w};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:y[m]}},R_=function(e){var n=$f(e).filter(Vd),i=Y0(e,e,n),o=Of(ra([i],!0),!0,!0),s=ra(n,!1);return o.map(function(u){var d=u.node,f=u.index;return{node:d,index:f,lockItem:s.indexOf(d)>=0,guard:Df(d)}})},zf=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Nd=0,kd=!1,X0=function(e,n,i){i===void 0&&(i={});var o=I_(e,n);if(!kd&&o){if(Nd>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),kd=!0,setTimeout(function(){kd=!1},1);return}Nd++,zf(o.node,i.focusOptions),Nd--}};function ts(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var n=e?new WeakRef(e):null;return function(){return n?.deref()||null}}var A_=function(e){if(!e)return null;for(var n=[],i=e;i&&i!==document.body;)n.push({current:ts(i),parent:ts(i.parentElement),left:ts(i.previousElementSibling),right:ts(i.nextElementSibling)}),i=i.parentElement;return{element:ts(e),stack:n,ownerDocument:e.ownerDocument}},$_=function(e){var n,i,o,s,u;if(e)for(var d=e.stack,f=e.ownerDocument,g=new Map,y=0,x=d;y-1&&(S.filter(function(T){var M=T.guard,$=T.node;return M&&$.dataset.focusAutoGuard}).forEach(function(T){var M=T.node;return M.removeAttribute("tabIndex")}),hg(_,S.length,1,S),hg(_,-1,-1,S))}}}return e},iv=function(e){pu()&&e&&(e.stopPropagation(),e.preventDefault())},Uf=function(){return Mf(pu)},tE=function(e){var n=e.target,i=e.currentTarget;i.contains(n)||Q_(i,n)},nE=function(){return null},ov=function(){Bf=!0},av=function(){Bf=!1,ws="just",Mf(function(){ws="meanwhile"})},rE=function(){document.addEventListener("focusin",iv),document.addEventListener("focusout",Uf),window.addEventListener("focus",ov),window.addEventListener("blur",av)},iE=function(){document.removeEventListener("focusin",iv),document.removeEventListener("focusout",Uf),window.removeEventListener("focus",ov),window.removeEventListener("blur",av)};function oE(e){return e.filter(function(n){var i=n.disabled;return!i})}var sv={moveFocusInside:X0,focusInside:K0,focusNextElement:U_,focusPrevElement:H_,focusFirstElement:V_,focusLastElement:q_,captureFocusRestore:J0};function aE(e){var n=e.slice(-1)[0];n&&!Jo&&rE();var i=Jo,o=i&&n&&n.id===i.id;Jo=n,i&&!o&&(i.onDeactivation(),e.filter(function(s){var u=s.id;return u===i.id}).length||i.returnFocus(!n)),n?(Fn=null,(!o||i.observed!==n.observed)&&n.onActivation(sv),pu(),Mf(pu)):(iE(),Fn=null)}O0.assignSyncMedium(tE);I0.assignMedium(Uf);JS.assignMedium(function(e){return e(sv)});const sE=u_(oE,aE)(nE);Pf(R0,sE);var lE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=lE();return n&&e.setAttribute("nonce",n),e}function cE(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function dE(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var fE=function(){var e=0,n=null;return{add:function(i){e==0&&(n=uE())&&(cE(n,i),dE(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},hE=function(){var e=fE();return function(n,i){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&i])}},Hf=function(){var e=hE(),n=function(i){var o=i.styles,s=i.dynamic;return e(o,s),null};return n},pE={left:0,top:0,right:0,gap:0},jd=function(e){return parseInt(e||"",10)||0},mE=function(e){var n=window.getComputedStyle(document.body),i=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[jd(i),jd(o),jd(s)]},gE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pE;var n=mE(e),i=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-i+n[2]-n[0])}},vE=Hf(),ta="data-scroll-locked",yE=function(e,n,i,o){var s=e.left,u=e.top,d=e.right,f=e.gap;return i===void 0&&(i="margin"),` + .`.concat(VS,` { overflow: hidden `).concat(o,`; padding-right: `).concat(f,"px ").concat(o,`; } @@ -101,23 +101,23 @@ Error generating stack: `+p.message+` } body[`).concat(ta,`] { - `).concat(WS,": ").concat(f,`px; + `).concat(qS,": ").concat(f,`px; } -`)},pg=function(){var e=parseInt(document.body.getAttribute(ta)||"0",10);return isFinite(e)?e:0},xE=function(){v.useEffect(function(){return document.body.setAttribute(ta,(pg()+1).toString()),function(){var e=pg()-1;e<=0?document.body.removeAttribute(ta):document.body.setAttribute(ta,e.toString())}},[])},bE=function(e){var n=e.noRelative,i=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;xE();var u=v.useMemo(function(){return vE(s)},[s]);return v.createElement(yE,{styles:wE(u,!n,s,i?"":"!important")})},Gd=!1;if(typeof window<"u")try{var Fl=Object.defineProperty({},"passive",{get:function(){return Gd=!0,!0}});window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{Gd=!1}var Wo=Gd?{passive:!1}:!1,CE=function(e){return e.tagName==="TEXTAREA"},lv=function(e,n){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[n]!=="hidden"&&!(i.overflowY===i.overflowX&&!CE(e)&&i[n]==="visible")},SE=function(e){return lv(e,"overflowY")},_E=function(e){return lv(e,"overflowX")},mg=function(e,n){var i=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=uv(e,o);if(s){var u=cv(e,o),d=u[1],f=u[2];if(d>f)return!0}o=o.parentNode}while(o&&o!==i.body);return!1},EE=function(e){var n=e.scrollTop,i=e.scrollHeight,o=e.clientHeight;return[n,i,o]},NE=function(e){var n=e.scrollLeft,i=e.scrollWidth,o=e.clientWidth;return[n,i,o]},uv=function(e,n){return e==="v"?SE(n):_E(n)},cv=function(e,n){return e==="v"?EE(n):NE(n)},kE=function(e,n){return e==="h"&&n==="rtl"?-1:1},jE=function(e,n,i,o,s){var u=kE(e,window.getComputedStyle(n).direction),d=u*o,f=i.target,g=n.contains(f),y=!1,x=d>0,b=0,m=0;do{var w=cv(e,f),N=w[0],S=w[1],_=w[2],T=S-_-u*N;(N||T)&&uv(e,f)&&(b+=T,m+=N),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!g&&f!==document.body||g&&(n.contains(f)||n===f));return(x&&Math.abs(b)<1||!x&&Math.abs(m)<1)&&(y=!0),y},zl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gg=function(e){return[e.deltaX,e.deltaY]},vg=function(e){return e&&"current"in e?e.current:e},TE=function(e,n){return e[0]===n[0]&&e[1]===n[1]},PE=function(e){return` +`)},pg=function(){var e=parseInt(document.body.getAttribute(ta)||"0",10);return isFinite(e)?e:0},wE=function(){v.useEffect(function(){return document.body.setAttribute(ta,(pg()+1).toString()),function(){var e=pg()-1;e<=0?document.body.removeAttribute(ta):document.body.setAttribute(ta,e.toString())}},[])},xE=function(e){var n=e.noRelative,i=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;wE();var u=v.useMemo(function(){return gE(s)},[s]);return v.createElement(vE,{styles:yE(u,!n,s,i?"":"!important")})},Gd=!1;if(typeof window<"u")try{var Fl=Object.defineProperty({},"passive",{get:function(){return Gd=!0,!0}});window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{Gd=!1}var Wo=Gd?{passive:!1}:!1,bE=function(e){return e.tagName==="TEXTAREA"},lv=function(e,n){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[n]!=="hidden"&&!(i.overflowY===i.overflowX&&!bE(e)&&i[n]==="visible")},CE=function(e){return lv(e,"overflowY")},SE=function(e){return lv(e,"overflowX")},mg=function(e,n){var i=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=uv(e,o);if(s){var u=cv(e,o),d=u[1],f=u[2];if(d>f)return!0}o=o.parentNode}while(o&&o!==i.body);return!1},_E=function(e){var n=e.scrollTop,i=e.scrollHeight,o=e.clientHeight;return[n,i,o]},EE=function(e){var n=e.scrollLeft,i=e.scrollWidth,o=e.clientWidth;return[n,i,o]},uv=function(e,n){return e==="v"?CE(n):SE(n)},cv=function(e,n){return e==="v"?_E(n):EE(n)},NE=function(e,n){return e==="h"&&n==="rtl"?-1:1},kE=function(e,n,i,o,s){var u=NE(e,window.getComputedStyle(n).direction),d=u*o,f=i.target,g=n.contains(f),y=!1,x=d>0,b=0,m=0;do{var w=cv(e,f),N=w[0],S=w[1],_=w[2],T=S-_-u*N;(N||T)&&uv(e,f)&&(b+=T,m+=N),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!g&&f!==document.body||g&&(n.contains(f)||n===f));return(x&&Math.abs(b)<1||!x&&Math.abs(m)<1)&&(y=!0),y},zl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gg=function(e){return[e.deltaX,e.deltaY]},vg=function(e){return e&&"current"in e?e.current:e},jE=function(e,n){return e[0]===n[0]&&e[1]===n[1]},TE=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},LE=0,Go=[];function ME(e){var n=v.useRef([]),i=v.useRef([0,0]),o=v.useRef(),s=v.useState(LE++)[0],u=v.useState(Hf)[0],d=v.useRef(e);v.useEffect(function(){d.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=VS([e.lockRef.current],(e.shards||[]).map(vg)).filter(Boolean);return S.forEach(function(_){return _.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(S,_){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var T=zl(S),M=i.current,$="deltaX"in S?S.deltaX:M[0]-T[0],F="deltaY"in S?S.deltaY:M[1]-T[1],W,de=S.target,O=Math.abs($)>Math.abs(F)?"h":"v";if("touches"in S&&O==="h"&&de.type==="range")return!1;var K=mg(O,de);if(!K)return!0;if(K?W=O:(W=O==="v"?"h":"v",K=mg(O,de)),!K)return!1;if(!o.current&&"changedTouches"in S&&($||F)&&(o.current=W),!W)return!0;var ce=o.current||W;return jE(ce,_,S,ce==="h"?$:F)},[]),g=v.useCallback(function(S){var _=S;if(!(!Go.length||Go[Go.length-1]!==u)){var T="deltaY"in _?gg(_):zl(_),M=n.current.filter(function(W){return W.name===_.type&&(W.target===_.target||_.target===W.shadowParent)&&TE(W.delta,T)})[0];if(M&&M.should){_.cancelable&&_.preventDefault();return}if(!M){var $=(d.current.shards||[]).map(vg).filter(Boolean).filter(function(W){return W.contains(_.target)}),F=$.length>0?f(_,$[0]):!d.current.noIsolation;F&&_.cancelable&&_.preventDefault()}}},[]),y=v.useCallback(function(S,_,T,M){var $={name:S,delta:_,target:T,should:M,shadowParent:DE(T)};n.current.push($),setTimeout(function(){n.current=n.current.filter(function(F){return F!==$})},1)},[]),x=v.useCallback(function(S){i.current=zl(S),o.current=void 0},[]),b=v.useCallback(function(S){y(S.type,gg(S),S.target,f(S,e.lockRef.current))},[]),m=v.useCallback(function(S){y(S.type,zl(S),S.target,f(S,e.lockRef.current))},[]);v.useEffect(function(){return Go.push(u),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:m}),document.addEventListener("wheel",g,Wo),document.addEventListener("touchmove",g,Wo),document.addEventListener("touchstart",x,Wo),function(){Go=Go.filter(function(S){return S!==u}),document.removeEventListener("wheel",g,Wo),document.removeEventListener("touchmove",g,Wo),document.removeEventListener("touchstart",x,Wo)}},[]);var w=e.removeScrollBar,N=e.inert;return v.createElement(v.Fragment,null,N?v.createElement(u,{styles:PE(s)}):null,w?v.createElement(bE,{gapMode:e.gapMode}):null)}function DE(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}Pf(M0,ME);var OE=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Zo=new WeakMap,Bl=new WeakMap,Ul={},Td=0,dv=function(e){return e&&(e.host||dv(e.parentNode))},IE=function(e,n){return n.map(function(i){if(e.contains(i))return i;var o=dv(i);return o&&e.contains(o)?o:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},RE=function(e,n,i,o){var s=IE(n,Array.isArray(e)?e:[e]);Ul[i]||(Ul[i]=new WeakMap);var u=Ul[i],d=[],f=new Set,g=new Set(s),y=function(b){!b||f.has(b)||(f.add(b),y(b.parentNode))};s.forEach(y);var x=function(b){!b||g.has(b)||Array.prototype.forEach.call(b.children,function(m){if(f.has(m))x(m);else try{var w=m.getAttribute(o),N=w!==null&&w!=="false",S=(Zo.get(m)||0)+1,_=(u.get(m)||0)+1;Zo.set(m,S),u.set(m,_),d.push(m),S===1&&N&&Bl.set(m,!0),_===1&&m.setAttribute(i,"true"),N||m.setAttribute(o,"true")}catch(T){console.error("aria-hidden: cannot operate on ",m,T)}})};return x(n),f.clear(),Td++,function(){d.forEach(function(b){var m=Zo.get(b)-1,w=u.get(b)-1;Zo.set(b,m),u.set(b,w),m||(Bl.has(b)||b.removeAttribute(o),Bl.delete(b)),w||b.removeAttribute(i)}),Td--,Td||(Zo=new WeakMap,Zo=new WeakMap,Bl=new WeakMap,Ul={})}},AE=function(e,n,i){var o=Array.from(Array.isArray(e)?e:[e]),s=n||OE(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live]"))),RE(o,s,i,"aria-hidden")):function(){return null}},$E=Hf(),FE=` +`)},PE=0,Go=[];function LE(e){var n=v.useRef([]),i=v.useRef([0,0]),o=v.useRef(),s=v.useState(PE++)[0],u=v.useState(Hf)[0],d=v.useRef(e);v.useEffect(function(){d.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=HS([e.lockRef.current],(e.shards||[]).map(vg)).filter(Boolean);return S.forEach(function(_){return _.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(S,_){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var T=zl(S),M=i.current,$="deltaX"in S?S.deltaX:M[0]-T[0],F="deltaY"in S?S.deltaY:M[1]-T[1],W,fe=S.target,O=Math.abs($)>Math.abs(F)?"h":"v";if("touches"in S&&O==="h"&&fe.type==="range")return!1;var K=mg(O,fe);if(!K)return!0;if(K?W=O:(W=O==="v"?"h":"v",K=mg(O,fe)),!K)return!1;if(!o.current&&"changedTouches"in S&&($||F)&&(o.current=W),!W)return!0;var de=o.current||W;return kE(de,_,S,de==="h"?$:F)},[]),g=v.useCallback(function(S){var _=S;if(!(!Go.length||Go[Go.length-1]!==u)){var T="deltaY"in _?gg(_):zl(_),M=n.current.filter(function(W){return W.name===_.type&&(W.target===_.target||_.target===W.shadowParent)&&jE(W.delta,T)})[0];if(M&&M.should){_.cancelable&&_.preventDefault();return}if(!M){var $=(d.current.shards||[]).map(vg).filter(Boolean).filter(function(W){return W.contains(_.target)}),F=$.length>0?f(_,$[0]):!d.current.noIsolation;F&&_.cancelable&&_.preventDefault()}}},[]),y=v.useCallback(function(S,_,T,M){var $={name:S,delta:_,target:T,should:M,shadowParent:ME(T)};n.current.push($),setTimeout(function(){n.current=n.current.filter(function(F){return F!==$})},1)},[]),x=v.useCallback(function(S){i.current=zl(S),o.current=void 0},[]),b=v.useCallback(function(S){y(S.type,gg(S),S.target,f(S,e.lockRef.current))},[]),m=v.useCallback(function(S){y(S.type,zl(S),S.target,f(S,e.lockRef.current))},[]);v.useEffect(function(){return Go.push(u),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:m}),document.addEventListener("wheel",g,Wo),document.addEventListener("touchmove",g,Wo),document.addEventListener("touchstart",x,Wo),function(){Go=Go.filter(function(S){return S!==u}),document.removeEventListener("wheel",g,Wo),document.removeEventListener("touchmove",g,Wo),document.removeEventListener("touchstart",x,Wo)}},[]);var w=e.removeScrollBar,N=e.inert;return v.createElement(v.Fragment,null,N?v.createElement(u,{styles:TE(s)}):null,w?v.createElement(xE,{gapMode:e.gapMode}):null)}function ME(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}Pf(M0,LE);var DE=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Zo=new WeakMap,Bl=new WeakMap,Ul={},Td=0,dv=function(e){return e&&(e.host||dv(e.parentNode))},OE=function(e,n){return n.map(function(i){if(e.contains(i))return i;var o=dv(i);return o&&e.contains(o)?o:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},IE=function(e,n,i,o){var s=OE(n,Array.isArray(e)?e:[e]);Ul[i]||(Ul[i]=new WeakMap);var u=Ul[i],d=[],f=new Set,g=new Set(s),y=function(b){!b||f.has(b)||(f.add(b),y(b.parentNode))};s.forEach(y);var x=function(b){!b||g.has(b)||Array.prototype.forEach.call(b.children,function(m){if(f.has(m))x(m);else try{var w=m.getAttribute(o),N=w!==null&&w!=="false",S=(Zo.get(m)||0)+1,_=(u.get(m)||0)+1;Zo.set(m,S),u.set(m,_),d.push(m),S===1&&N&&Bl.set(m,!0),_===1&&m.setAttribute(i,"true"),N||m.setAttribute(o,"true")}catch(T){console.error("aria-hidden: cannot operate on ",m,T)}})};return x(n),f.clear(),Td++,function(){d.forEach(function(b){var m=Zo.get(b)-1,w=u.get(b)-1;Zo.set(b,m),u.set(b,w),m||(Bl.has(b)||b.removeAttribute(o),Bl.delete(b)),w||b.removeAttribute(i)}),Td--,Td||(Zo=new WeakMap,Zo=new WeakMap,Bl=new WeakMap,Ul={})}},RE=function(e,n,i){var o=Array.from(Array.isArray(e)?e:[e]),s=n||DE(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live]"))),IE(o,s,i,"aria-hidden")):function(){return null}},AE=Hf(),$E=` [`+F0+`] { pointer-events: none !important; } -`,zE=function(){return v.createElement($E,{styles:FE})},yg=function(e){return"current"in e?e.current:e};function BE(e){var n=e.setLockProps,i=e.onEscapeKey,o=e.onClickOutside,s=e.shards,u=e.onActivation,d=e.onDeactivation,f=e.noIsolation,g=v.useState(void 0),y=g[0],x=g[1],b=v.useRef(null),m=v.useRef(0);return v.useEffect(function(){var w=function(T){T.defaultPrevented||(T.code==="Escape"||T.key==="Escape"||T.keyCode===27)&&i&&i(T)},N=function(T){T.defaultPrevented||T.target===b.current||T instanceof MouseEvent&&T.button!==0||s&&s.map(yg).some(function(M){return M&&M.contains(T.target)||M===T.target})||o&&o(T)},S=function(T){N(T),m.current=T.touches.length},_=function(T){m.current=T.touches.length};if(y)return document.addEventListener("keydown",w),document.addEventListener("mousedown",N),document.addEventListener("touchstart",S),document.addEventListener("touchend",_),function(){document.removeEventListener("keydown",w),document.removeEventListener("mousedown",N),document.removeEventListener("touchstart",S),document.removeEventListener("touchend",_)}},[y,o,i]),v.useEffect(function(){if(y)return u&&u(y),function(){d&&d()}},[!!y]),v.useEffect(function(){var w=function(){return null},N=!1,S=function(T){f||(w=AE(HS([T],(s||[]).map(yg)),document.body,F0)),x(function(){return T})},_=function(){w(),N||x(null)};return n({onMouseDown:function(T){b.current=T.target},onTouchStart:function(T){b.current=T.target},onActivation:S,onDeactivation:_}),function(){N=!0,n(!1)}},[]),v.createElement(zE,null)}const UE=Pf($0,BE);var HE=function(e){return v.createElement(UE,Tn({},e))};v.forwardRef(function(e,n){return v.createElement(o_,Tn({},e,{ref:n,sideCar:HE}))});const VE="_input-container_1b4m7_1",qE="_input-section_1b4m7_4",WE="_input_1b4m7_1",GE="_disabled_1b4m7_17",ZE="_errored_1b4m7_25",QE="_general_1b4m7_31",KE="_read-only_1b4m7_38",YE="_input-hint_1b4m7_53",XE="_input-error_1b4m7_58",Lr={inputContainer:VE,inputSection:qE,input:WE,disabled:GE,errored:ZE,general:QE,readOnly:KE,inputHint:YE,inputError:XE};function Vf(e){const{containerRef:n,inputSectionRef:i,actions:o,className:s,disabled:u,error:d,errorOnTooltip:f=!1,hint:g,icons:y,input:x,inputSectionClassName:b,label:m,labelClassName:w,readOnly:N,required:S,variant:_="form",withAsterisk:T,actionsContainerClassName:M,errorContainerClassName:$,hintContainerClassName:F,iconsContainerClassName:W,spacing:de}=e,O=T??S,{content:K,containerClassName:ce}=Ts({className:Me(Lr.inputSection,b),icons:y,iconsContainerClassName:W,actions:o,actionsContainerClassName:M,children:x,childrenContainerClassName:Lr.input,spacing:de,withoutWrap:!0,variant:"xs"});return h.jsxs("div",{ref:n,className:Me(Lr.inputContainer,!!d&&Lr.errored,N&&Lr.readOnly,_==="form"&&Lr.form,_==="general"&&Lr.general,u&&Lr.disabled,s),title:f&&d&&typeof d=="string"?d:void 0,children:[h.jsx(N0,{className:w,disabled:u,required:O,children:m}),h.jsx("div",{ref:i,className:ce,children:K}),g&&h.jsx("div",{className:Me(Lr.inputHint,F),children:g}),!f&&h.jsx(Nf,{disabled:u,className:Me(Lr.inputError,$),children:d})]})}const JE="_raw-input_8rtzt_1",eN={rawInput:JE};function fv(e){const{className:n,onChange:i,elementRef:o,value:s,name:u,...d}=e,f=gr.useCallback(g=>{const y=g.currentTarget.value;i&&i(y===""?void 0:y,u,g)},[u,i]);return h.jsx("input",{...d,ref:o,className:Me(eN.rawInput,n),name:Ot(u)?String(u):void 0,onChange:f,value:s??""})}function tN(e,n,i,o){gr.useEffect(()=>{if(!e)return;const s=u=>{const{current:d}=i,{current:f}=o,g=u.target,y=u&&d?d===u.target||d.contains(g):!1,x=f?f===u.target||f.contains(g):!1;n(y,x,u)};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[e,n,i,o])}var wg={},nN={},xs={},qf={},bs={},Wf={};Object.defineProperty(Wf,"__esModule",{value:!0});Wf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Gf={};Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Zd={};(function(e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var i=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(n=String.fromCodePoint)!==null&&n!==void 0?n:function(u){var d="";return u>65535&&(u-=65536,d+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),d+=String.fromCharCode(u),d};function o(u){var d;return u>=55296&&u<=57343||u>1114111?65533:(d=i.get(u))!==null&&d!==void 0?d:u}e.replaceCodePoint=o;function s(u){return(0,e.fromCodePoint)(o(u))}e.default=s})(Zd);(function(e){var n=$e&&$e.__createBinding||(Object.create?function(R,H,G,ee){ee===void 0&&(ee=G);var pe=Object.getOwnPropertyDescriptor(H,G);(!pe||("get"in pe?!H.__esModule:pe.writable||pe.configurable))&&(pe={enumerable:!0,get:function(){return H[G]}}),Object.defineProperty(R,ee,pe)}:function(R,H,G,ee){ee===void 0&&(ee=G),R[ee]=H[G]}),i=$e&&$e.__setModuleDefault||(Object.create?function(R,H){Object.defineProperty(R,"default",{enumerable:!0,value:H})}:function(R,H){R.default=H}),o=$e&&$e.__importStar||function(R){if(R&&R.__esModule)return R;var H={};if(R!=null)for(var G in R)G!=="default"&&Object.prototype.hasOwnProperty.call(R,G)&&n(H,R,G);return i(H,R),H},s=$e&&$e.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var u=s(Wf);e.htmlDecodeTree=u.default;var d=s(Gf);e.xmlDecodeTree=d.default;var f=o(Zd);e.decodeCodePoint=f.default;var g=Zd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return g.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return g.fromCodePoint}});var y;(function(R){R[R.NUM=35]="NUM",R[R.SEMI=59]="SEMI",R[R.EQUALS=61]="EQUALS",R[R.ZERO=48]="ZERO",R[R.NINE=57]="NINE",R[R.LOWER_A=97]="LOWER_A",R[R.LOWER_F=102]="LOWER_F",R[R.LOWER_X=120]="LOWER_X",R[R.LOWER_Z=122]="LOWER_Z",R[R.UPPER_A=65]="UPPER_A",R[R.UPPER_F=70]="UPPER_F",R[R.UPPER_Z=90]="UPPER_Z"})(y||(y={}));var x=32,b;(function(R){R[R.VALUE_LENGTH=49152]="VALUE_LENGTH",R[R.BRANCH_LENGTH=16256]="BRANCH_LENGTH",R[R.JUMP_TABLE=127]="JUMP_TABLE"})(b=e.BinTrieFlags||(e.BinTrieFlags={}));function m(R){return R>=y.ZERO&&R<=y.NINE}function w(R){return R>=y.UPPER_A&&R<=y.UPPER_F||R>=y.LOWER_A&&R<=y.LOWER_F}function N(R){return R>=y.UPPER_A&&R<=y.UPPER_Z||R>=y.LOWER_A&&R<=y.LOWER_Z||m(R)}function S(R){return R===y.EQUALS||N(R)}var _;(function(R){R[R.EntityStart=0]="EntityStart",R[R.NumericStart=1]="NumericStart",R[R.NumericDecimal=2]="NumericDecimal",R[R.NumericHex=3]="NumericHex",R[R.NamedEntity=4]="NamedEntity"})(_||(_={}));var T;(function(R){R[R.Legacy=0]="Legacy",R[R.Strict=1]="Strict",R[R.Attribute=2]="Attribute"})(T=e.DecodingMode||(e.DecodingMode={}));var M=function(){function R(H,G,ee){this.decodeTree=H,this.emitCodePoint=G,this.errors=ee,this.state=_.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=T.Strict}return R.prototype.startEntity=function(H){this.decodeMode=H,this.state=_.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},R.prototype.write=function(H,G){switch(this.state){case _.EntityStart:return H.charCodeAt(G)===y.NUM?(this.state=_.NumericStart,this.consumed+=1,this.stateNumericStart(H,G+1)):(this.state=_.NamedEntity,this.stateNamedEntity(H,G));case _.NumericStart:return this.stateNumericStart(H,G);case _.NumericDecimal:return this.stateNumericDecimal(H,G);case _.NumericHex:return this.stateNumericHex(H,G);case _.NamedEntity:return this.stateNamedEntity(H,G)}},R.prototype.stateNumericStart=function(H,G){return G>=H.length?-1:(H.charCodeAt(G)|x)===y.LOWER_X?(this.state=_.NumericHex,this.consumed+=1,this.stateNumericHex(H,G+1)):(this.state=_.NumericDecimal,this.stateNumericDecimal(H,G))},R.prototype.addToNumericResult=function(H,G,ee,pe){if(G!==ee){var Ce=ee-G;this.result=this.result*Math.pow(pe,Ce)+parseInt(H.substr(G,Ce),pe),this.consumed+=Ce}},R.prototype.stateNumericHex=function(H,G){for(var ee=G;G>14;G>14,Ce!==0){if(_e===y.SEMI)return this.emitNamedEntityData(this.treeIndex,Ce,this.consumed+this.excess);this.decodeMode!==T.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},R.prototype.emitNotTerminatedNamedEntity=function(){var H,G=this,ee=G.result,pe=G.decodeTree,Ce=(pe[ee]&b.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ee,Ce,this.consumed),(H=this.errors)===null||H===void 0||H.missingSemicolonAfterCharacterReference(),this.consumed},R.prototype.emitNamedEntityData=function(H,G,ee){var pe=this.decodeTree;return this.emitCodePoint(G===1?pe[H]&~b.VALUE_LENGTH:pe[H+1],ee),G===3&&this.emitCodePoint(pe[H+2],ee),ee},R.prototype.end=function(){var H;switch(this.state){case _.NamedEntity:return this.result!==0&&(this.decodeMode!==T.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _.NumericDecimal:return this.emitNumericEntity(0,2);case _.NumericHex:return this.emitNumericEntity(0,3);case _.NumericStart:return(H=this.errors)===null||H===void 0||H.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _.EntityStart:return 0}},R}();e.EntityDecoder=M;function $(R){var H="",G=new M(R,function(ee){return H+=(0,f.fromCodePoint)(ee)});return function(ee,pe){for(var Ce=0,_e=0;(_e=ee.indexOf("&",_e))>=0;){H+=ee.slice(Ce,_e),G.startEntity(pe);var Z=G.write(ee,_e+1);if(Z<0){Ce=_e+G.end();break}Ce=_e+Z,_e=Z===0?Ce+1:Ce}var le=H+ee.slice(Ce);return H="",le}}function F(R,H,G,ee){var pe=(H&b.BRANCH_LENGTH)>>7,Ce=H&b.JUMP_TABLE;if(pe===0)return Ce!==0&&ee===Ce?G:-1;if(Ce){var _e=ee-Ce;return _e<0||_e>=pe?-1:R[G+_e]-1}for(var Z=G,le=Z+pe-1;Z<=le;){var j=Z+le>>>1,V=R[j];if(Vee)le=j-1;else return R[j+pe]}return-1}e.determineBranch=F;var W=$(u.default),de=$(d.default);function O(R,H){return H===void 0&&(H=T.Legacy),W(R,H)}e.decodeHTML=O;function K(R){return W(R,T.Attribute)}e.decodeHTMLAttribute=K;function ce(R){return W(R,T.Strict)}e.decodeHTMLStrict=ce;function he(R){return de(R,T.Strict)}e.decodeXML=he})(bs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var n=bs,i;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(i||(i={}));var o;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(o||(o={}));function s(m){return m===i.Space||m===i.NewLine||m===i.Tab||m===i.FormFeed||m===i.CarriageReturn}function u(m){return m===i.Slash||m===i.Gt||s(m)}function d(m){return m>=i.Zero&&m<=i.Nine}function f(m){return m>=i.LowerA&&m<=i.LowerZ||m>=i.UpperA&&m<=i.UpperZ}function g(m){return m>=i.UpperA&&m<=i.UpperF||m>=i.LowerA&&m<=i.LowerF}var y;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(y=e.QuoteType||(e.QuoteType={}));var x={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},b=function(){function m(w,N){var S=w.xmlMode,_=S===void 0?!1:S,T=w.decodeEntities,M=T===void 0?!0:T;this.cbs=N,this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=_,this.decodeEntities=M,this.entityTrie=_?n.xmlDecodeTree:n.htmlDecodeTree}return m.prototype.reset=function(){this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(w){this.offset+=this.buffer.length,this.buffer=w,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=o.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&w===i.Amp&&(this.state=o.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(w){var N=this.sequenceIndex===this.currentSequence.length,S=N?u(w):(w|32)===this.currentSequence[this.sequenceIndex];if(!S)this.isSpecial=!1;else if(!N){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=o.InTagName,this.stateInTagName(w)},m.prototype.stateInSpecialTag=function(w){if(this.sequenceIndex===this.currentSequence.length){if(w===i.Gt||s(w)){var N=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&w!==i.Semi)this.trieIndex+=S;else{var _=this.index-this.entityExcess+1;_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.entityResult=this.trieIndex,this.trieIndex+=S,this.entityExcess=0,this.sectionStart=this.index+1,S===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var w=(this.entityTrie[this.entityResult]&n.BinTrieFlags.VALUE_LENGTH)>>14;switch(w){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~n.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(w){(w|32)===i.LowerX?(this.entityExcess++,this.state=o.InHexEntity):(this.state=o.InNumericEntity,this.stateInNumericEntity(w))},m.prototype.emitNumericEntity=function(w){var N=this.index-this.entityExcess-1,S=N+2+ +(this.state===o.InHexEntity);S!==this.index&&(N>this.sectionStart&&this.emitPartial(this.sectionStart,N),this.sectionStart=this.index+Number(w),this.emitCodePoint((0,n.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(w){w===i.Semi?this.emitNumericEntity(!0):d(w)?(this.entityResult=this.entityResult*10+(w-i.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(w){w===i.Semi?this.emitNumericEntity(!0):d(w)?(this.entityResult=this.entityResult*16+(w-i.Zero),this.entityExcess++):g(w)?(this.entityResult=this.entityResult*16+((w|32)-i.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===o.Text||this.baseState===o.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===o.Text||this.state===o.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===o.InAttributeValueDq||this.state===o.InAttributeValueSq||this.state===o.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index0&&d.has(this.stack[this.stack.length-1]);){var f=this.stack.pop();(o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,f,!0)}this.isVoidElement(n)||(this.stack.push(n),_g.has(n)?this.foreignContext.push(!0):Eg.has(n)&&this.foreignContext.push(!1)),(u=(s=this.cbs).onopentagname)===null||u===void 0||u.call(s,n),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(n){var i,o;this.startIndex=this.openTagStart,this.attribs&&((o=(i=this.cbs).onopentag)===null||o===void 0||o.call(i,this.tagname,this.attribs,n),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(n){this.endIndex=n,this.endOpenTag(!1),this.startIndex=n+1},e.prototype.onclosetag=function(n,i){var o,s,u,d,f,g;this.endIndex=i;var y=this.getSlice(n,i);if(this.lowerCaseTagNames&&(y=y.toLowerCase()),(_g.has(y)||Eg.has(y))&&this.foreignContext.pop(),this.isVoidElement(y))!this.options.xmlMode&&y==="br"&&((s=(o=this.cbs).onopentagname)===null||s===void 0||s.call(o,"br"),(d=(u=this.cbs).onopentag)===null||d===void 0||d.call(u,"br",{},!0),(g=(f=this.cbs).onclosetag)===null||g===void 0||g.call(f,"br",!1));else{var x=this.stack.lastIndexOf(y);if(x!==-1)if(this.cbs.onclosetag)for(var b=this.stack.length-x;b--;)this.cbs.onclosetag(this.stack.pop(),b!==0);else this.stack.length=x;else!this.options.xmlMode&&y==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=i+1},e.prototype.onselfclosingtag=function(n){this.endIndex=n,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=n+1):this.onopentagend(n)},e.prototype.closeCurrentTag=function(n){var i,o,s=this.tagname;this.endOpenTag(n),this.stack[this.stack.length-1]===s&&((o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,s,!n),this.stack.pop())},e.prototype.onattribname=function(n,i){this.startIndex=n;var o=this.getSlice(n,i);this.attribname=this.lowerCaseAttributeNames?o.toLowerCase():o},e.prototype.onattribdata=function(n,i){this.attribvalue+=this.getSlice(n,i)},e.prototype.onattribentity=function(n){this.attribvalue+=(0,xg.fromCodePoint)(n)},e.prototype.onattribend=function(n,i){var o,s;this.endIndex=i,(s=(o=this.cbs).onattribute)===null||s===void 0||s.call(o,this.attribname,this.attribvalue,n===Hl.QuoteType.Double?'"':n===Hl.QuoteType.Single?"'":n===Hl.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(n){var i=n.search(lN),o=i<0?n:n.substr(0,i);return this.lowerCaseTagNames&&(o=o.toLowerCase()),o},e.prototype.ondeclaration=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("!".concat(s),"!".concat(o))}this.startIndex=i+1},e.prototype.onprocessinginstruction=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("?".concat(s),"?".concat(o))}this.startIndex=i+1},e.prototype.oncomment=function(n,i,o){var s,u,d,f;this.endIndex=i,(u=(s=this.cbs).oncomment)===null||u===void 0||u.call(s,this.getSlice(n,i-o)),(f=(d=this.cbs).oncommentend)===null||f===void 0||f.call(d),this.startIndex=i+1},e.prototype.oncdata=function(n,i,o){var s,u,d,f,g,y,x,b,m,w;this.endIndex=i;var N=this.getSlice(n,i-o);this.options.xmlMode||this.options.recognizeCDATA?((u=(s=this.cbs).oncdatastart)===null||u===void 0||u.call(s),(f=(d=this.cbs).ontext)===null||f===void 0||f.call(d,N),(y=(g=this.cbs).oncdataend)===null||y===void 0||y.call(g)):((b=(x=this.cbs).oncomment)===null||b===void 0||b.call(x,"[CDATA[".concat(N,"]]")),(w=(m=this.cbs).oncommentend)===null||w===void 0||w.call(m)),this.startIndex=i+1},e.prototype.onend=function(){var n,i;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var o=this.stack.length;o>0;this.cbs.onclosetag(this.stack[--o],!0));}(i=(n=this.cbs).onend)===null||i===void 0||i.call(n)},e.prototype.reset=function(){var n,i,o,s;(i=(n=this.cbs).onreset)===null||i===void 0||i.call(n),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(o=this.cbs).onparserinit)===null||s===void 0||s.call(o,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(n){this.reset(),this.end(n)},e.prototype.getSlice=function(n,i){for(;n-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var o=this.buffers[0].slice(n-this.bufferOffset,i-this.bufferOffset);i-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),o+=this.buffers[0].slice(0,i-this.bufferOffset);return o},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".write() after done!"));return}this.buffers.push(n),this.tokenizer.running&&(this.tokenizer.write(n),this.writeIndex++)},e.prototype.end=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".end() after done!"));return}n&&this.write(n),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(i){this.children=i},enumerable:!1,configurable:!0}),n}(Zf);Ze.NodeWithChildren=Eu;var gv=function(e){Ii(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=Pn.ElementType.CDATA,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(Eu);Ze.CDATA=gv;var vv=function(e){Ii(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=Pn.ElementType.Root,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(Eu);Ze.Document=vv;var yv=function(e){Ii(n,e);function n(i,o,s,u){s===void 0&&(s=[]),u===void 0&&(u=i==="script"?Pn.ElementType.Script:i==="style"?Pn.ElementType.Style:Pn.ElementType.Tag);var d=e.call(this,s)||this;return d.name=i,d.attribs=o,d.type=u,d}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tagName",{get:function(){return this.name},set:function(i){this.name=i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var i=this;return Object.keys(this.attribs).map(function(o){var s,u;return{name:o,value:i.attribs[o],namespace:(s=i["x-attribsNamespace"])===null||s===void 0?void 0:s[o],prefix:(u=i["x-attribsPrefix"])===null||u===void 0?void 0:u[o]}})},enumerable:!1,configurable:!0}),n}(Eu);Ze.Element=yv;function wv(e){return(0,Pn.isTag)(e)}Ze.isTag=wv;function xv(e){return e.type===Pn.ElementType.CDATA}Ze.isCDATA=xv;function bv(e){return e.type===Pn.ElementType.Text}Ze.isText=bv;function Cv(e){return e.type===Pn.ElementType.Comment}Ze.isComment=Cv;function Sv(e){return e.type===Pn.ElementType.Directive}Ze.isDirective=Sv;function _v(e){return e.type===Pn.ElementType.Root}Ze.isDocument=_v;function cN(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ze.hasChildren=cN;function Qf(e,n){n===void 0&&(n=!1);var i;if(bv(e))i=new hv(e.data);else if(Cv(e))i=new pv(e.data);else if(wv(e)){var o=n?Pd(e.children):[],s=new yv(e.name,ds({},e.attribs),o);o.forEach(function(g){return g.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=ds({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=ds({},e["x-attribsPrefix"])),i=s}else if(xv(e)){var o=n?Pd(e.children):[],u=new gv(o);o.forEach(function(y){return y.parent=u}),i=u}else if(_v(e)){var o=n?Pd(e.children):[],d=new vv(o);o.forEach(function(y){return y.parent=d}),e["x-mode"]&&(d["x-mode"]=e["x-mode"]),i=d}else if(Sv(e)){var f=new mv(e.name,e.data);e["x-name"]!=null&&(f["x-name"]=e["x-name"],f["x-publicId"]=e["x-publicId"],f["x-systemId"]=e["x-systemId"]),i=f}else throw new Error("Not implemented yet: ".concat(e.type));return i.startIndex=e.startIndex,i.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(i.sourceCodeLocation=e.sourceCodeLocation),i}Ze.cloneNode=Qf;function Pd(e){for(var n=e.map(function(o){return Qf(o,!0)}),i=1;i$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(s,u){return s.codePointAt(u)}:function(s,u){return(s.charCodeAt(u)&64512)===55296?(s.charCodeAt(u)-55296)*1024+s.charCodeAt(u+1)-56320+65536:s.charCodeAt(u)};function i(s){for(var u="",d=0,f;(f=e.xmlReplacer.exec(s))!==null;){var g=f.index,y=s.charCodeAt(g),x=n.get(y);x!==void 0?(u+=s.substring(d,g)+x,d=g+1):(u+="".concat(s.substring(d,g),"&#x").concat((0,e.getCodePoint)(s,g).toString(16),";"),d=e.xmlReplacer.lastIndex+=+((y&64512)===55296))}return u+s.substr(d)}e.encodeXML=i,e.escape=i;function o(s,u){return function(d){for(var f,g=0,y="";f=s.exec(d);)g!==f.index&&(y+=d.substring(g,f.index)),y+=u.get(f[0].charCodeAt(0)),g=f.index+1;return y+d.substring(g)}}e.escapeUTF8=o(/[&<>'"]/g,n),e.escapeAttribute=o(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=o(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(mu);var dN=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mo,"__esModule",{value:!0});mo.encodeNonAsciiHTML=mo.encodeHTML=void 0;var fN=dN(Kf),Nv=mu,hN=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function pN(e){return kv(hN,e)}mo.encodeHTML=pN;function mN(e){return kv(Nv.xmlReplacer,e)}mo.encodeNonAsciiHTML=mN;function kv(e,n){for(var i="",o=0,s;(s=e.exec(n))!==null;){var u=s.index;i+=n.substring(o,u);var d=n.charCodeAt(u),f=fN.default.get(d);if(typeof f=="object"){if(u+10&&(o+=Nu(e.children,n)),(n.xmlMode||!Ng.has(e.name))&&(o+=""))),o}function NN(e){return"<".concat(e.data,">")}function kN(e,n){var i,o=e.data||"";return((i=n.encodeEntities)!==null&&i!==void 0?i:n.decodeEntities)!==!1&&!(!n.xmlMode&&e.parent&&wN.has(e.parent.name))&&(o=n.xmlMode||n.encodeEntities!=="utf8"?(0,gu.encodeXML)(o):(0,gu.escapeText)(o)),o}function jN(e){return"")}function TN(e){return"")}var PN=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.innerText=Bn.textContent=Bn.getText=Bn.getInnerHTML=Bn.getOuterHTML=void 0;var Or=ri,LN=PN(Ps),MN=ca;function Tv(e,n){return(0,LN.default)(e,n)}Bn.getOuterHTML=Tv;function DN(e,n){return(0,Or.hasChildren)(e)?e.children.map(function(i){return Tv(i,n)}).join(""):""}Bn.getInnerHTML=DN;function iu(e){return Array.isArray(e)?e.map(iu).join(""):(0,Or.isTag)(e)?e.name==="br"?` -`:iu(e.children):(0,Or.isCDATA)(e)?iu(e.children):(0,Or.isText)(e)?e.data:""}Bn.getText=iu;function Qd(e){return Array.isArray(e)?e.map(Qd).join(""):(0,Or.hasChildren)(e)&&!(0,Or.isComment)(e)?Qd(e.children):(0,Or.isText)(e)?e.data:""}Bn.textContent=Qd;function Kd(e){return Array.isArray(e)?e.map(Kd).join(""):(0,Or.hasChildren)(e)&&(e.type===MN.ElementType.Tag||(0,Or.isCDATA)(e))?Kd(e.children):(0,Or.isText)(e)?e.data:""}Bn.innerText=Kd;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.prevElementSibling=Kt.nextElementSibling=Kt.getName=Kt.hasAttrib=Kt.getAttributeValue=Kt.getSiblings=Kt.getParent=Kt.getChildren=void 0;var Yf=ri;function Pv(e){return(0,Yf.hasChildren)(e)?e.children:[]}Kt.getChildren=Pv;function Lv(e){return e.parent||null}Kt.getParent=Lv;function ON(e){var n,i,o=Lv(e);if(o!=null)return Pv(o);for(var s=[e],u=e.prev,d=e.next;u!=null;)s.unshift(u),n=u,u=n.prev;for(;d!=null;)s.push(d),i=d,d=i.next;return s}Kt.getSiblings=ON;function IN(e,n){var i;return(i=e.attribs)===null||i===void 0?void 0:i[n]}Kt.getAttributeValue=IN;function RN(e,n){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,n)&&e.attribs[n]!=null}Kt.hasAttrib=RN;function AN(e){return e.name}Kt.getName=AN;function $N(e){for(var n,i=e.next;i!==null&&!(0,Yf.isTag)(i);)n=i,i=n.next;return i}Kt.nextElementSibling=$N;function FN(e){for(var n,i=e.prev;i!==null&&!(0,Yf.isTag)(i);)n=i,i=n.prev;return i}Kt.prevElementSibling=FN;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.prepend=jn.prependChild=jn.append=jn.appendChild=jn.replaceElement=jn.removeElement=void 0;function Ls(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var n=e.parent.children,i=n.lastIndexOf(e);i>=0&&n.splice(i,1)}e.next=null,e.prev=null,e.parent=null}jn.removeElement=Ls;function zN(e,n){var i=n.prev=e.prev;i&&(i.next=n);var o=n.next=e.next;o&&(o.prev=n);var s=n.parent=e.parent;if(s){var u=s.children;u[u.lastIndexOf(e)]=n,e.parent=null}}jn.replaceElement=zN;function BN(e,n){if(Ls(n),n.next=null,n.parent=e,e.children.push(n)>1){var i=e.children[e.children.length-2];i.next=n,n.prev=i}else n.prev=null}jn.appendChild=BN;function UN(e,n){Ls(n);var i=e.parent,o=e.next;if(n.next=o,n.prev=e,e.next=n,n.parent=i,o){if(o.prev=n,i){var s=i.children;s.splice(s.lastIndexOf(o),0,n)}}else i&&i.children.push(n)}jn.append=UN;function HN(e,n){if(Ls(n),n.parent=e,n.prev=null,e.children.unshift(n)!==1){var i=e.children[1];i.prev=n,n.next=i}else n.next=null}jn.prependChild=HN;function VN(e,n){Ls(n);var i=e.parent;if(i){var o=i.children;o.splice(o.indexOf(e),0,n)}e.prev&&(e.prev.next=n),n.parent=i,n.prev=e.prev,n.next=e,e.prev=n}jn.prepend=VN;var hn={};Object.defineProperty(hn,"__esModule",{value:!0});hn.findAll=hn.existsOne=hn.findOne=hn.findOneChild=hn.find=hn.filter=void 0;var ku=ri;function qN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),Mv(e,Array.isArray(n)?n:[n],i,o)}hn.filter=qN;function Mv(e,n,i,o){for(var s=[],u=[n],d=[0];;){if(d[0]>=u[0].length){if(d.length===1)return s;u.shift(),d.shift();continue}var f=u[0][d[0]++];if(e(f)&&(s.push(f),--o<=0))return s;i&&(0,ku.hasChildren)(f)&&f.children.length>0&&(d.unshift(0),u.unshift(f.children))}}hn.find=Mv;function WN(e,n){return n.find(e)}hn.findOneChild=WN;function Dv(e,n,i){i===void 0&&(i=!0);for(var o=null,s=0;s0&&(o=Dv(e,u.children,!0));else continue}return o}hn.findOne=Dv;function Ov(e,n){return n.some(function(i){return(0,ku.isTag)(i)&&(e(i)||Ov(e,i.children))})}hn.existsOne=Ov;function GN(e,n){for(var i=[],o=[n],s=[0];;){if(s[0]>=o[0].length){if(o.length===1)return i;o.shift(),s.shift();continue}var u=o[0][s[0]++];(0,ku.isTag)(u)&&(e(u)&&i.push(u),u.children.length>0&&(s.unshift(0),o.unshift(u.children)))}}hn.findAll=GN;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.getElementsByTagType=Un.getElementsByTagName=Un.getElementById=Un.getElements=Un.testElement=void 0;var lo=ri,ju=hn,vu={tag_name:function(e){return typeof e=="function"?function(n){return(0,lo.isTag)(n)&&e(n.name)}:e==="*"?lo.isTag:function(n){return(0,lo.isTag)(n)&&n.name===e}},tag_type:function(e){return typeof e=="function"?function(n){return e(n.type)}:function(n){return n.type===e}},tag_contains:function(e){return typeof e=="function"?function(n){return(0,lo.isText)(n)&&e(n.data)}:function(n){return(0,lo.isText)(n)&&n.data===e}}};function Iv(e,n){return typeof n=="function"?function(i){return(0,lo.isTag)(i)&&n(i.attribs[e])}:function(i){return(0,lo.isTag)(i)&&i.attribs[e]===n}}function ZN(e,n){return function(i){return e(i)||n(i)}}function Rv(e){var n=Object.keys(e).map(function(i){var o=e[i];return Object.prototype.hasOwnProperty.call(vu,i)?vu[i](o):Iv(i,o)});return n.length===0?null:n.reduce(ZN)}function QN(e,n){var i=Rv(e);return i?i(n):!0}Un.testElement=QN;function KN(e,n,i,o){o===void 0&&(o=1/0);var s=Rv(e);return s?(0,ju.filter)(s,n,i,o):[]}Un.getElements=KN;function YN(e,n,i){return i===void 0&&(i=!0),Array.isArray(n)||(n=[n]),(0,ju.findOne)(Iv("id",e),n,i)}Un.getElementById=YN;function XN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,ju.filter)(vu.tag_name(e),n,i,o)}Un.getElementsByTagName=XN;function JN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,ju.filter)(vu.tag_type(e),n,i,o)}Un.getElementsByTagType=JN;var Av={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var n=ri;function i(d){for(var f=d.length;--f>=0;){var g=d[f];if(f>0&&d.lastIndexOf(g,f-1)>=0){d.splice(f,1);continue}for(var y=g.parent;y;y=y.parent)if(d.includes(y)){d.splice(f,1);break}}return d}e.removeSubsets=i;var o;(function(d){d[d.DISCONNECTED=1]="DISCONNECTED",d[d.PRECEDING=2]="PRECEDING",d[d.FOLLOWING=4]="FOLLOWING",d[d.CONTAINS=8]="CONTAINS",d[d.CONTAINED_BY=16]="CONTAINED_BY"})(o=e.DocumentPosition||(e.DocumentPosition={}));function s(d,f){var g=[],y=[];if(d===f)return 0;for(var x=(0,n.hasChildren)(d)?d:d.parent;x;)g.unshift(x),x=x.parent;for(x=(0,n.hasChildren)(f)?f:f.parent;x;)y.unshift(x),x=x.parent;for(var b=Math.min(g.length,y.length),m=0;mN.indexOf(_)?w===f?o.FOLLOWING|o.CONTAINED_BY:o.FOLLOWING:w===d?o.PRECEDING|o.CONTAINS:o.PRECEDING}e.compareDocumentPosition=s;function u(d){return d=d.filter(function(f,g,y){return!y.includes(f,g+1)}),d.sort(function(f,g){var y=s(f,g);return y&o.PRECEDING?-1:y&o.FOLLOWING?1:0}),d}e.uniqueSort=u})(Av);var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.getFeed=void 0;var ek=Bn,Ms=Un;function tk(e){var n=yu(ak,e);return n?n.name==="feed"?nk(n):rk(n):null}Tu.getFeed=tk;function nk(e){var n,i=e.children,o={type:"atom",items:(0,Ms.getElementsByTagName)("entry",i).map(function(d){var f,g=d.children,y={media:$v(g)};Nn(y,"id","id",g),Nn(y,"title","title",g);var x=(f=yu("link",g))===null||f===void 0?void 0:f.attribs.href;x&&(y.link=x);var b=Di("summary",g)||Di("content",g);b&&(y.description=b);var m=Di("updated",g);return m&&(y.pubDate=new Date(m)),y})};Nn(o,"id","id",i),Nn(o,"title","title",i);var s=(n=yu("link",i))===null||n===void 0?void 0:n.attribs.href;s&&(o.link=s),Nn(o,"description","subtitle",i);var u=Di("updated",i);return u&&(o.updated=new Date(u)),Nn(o,"author","email",i,!0),o}function rk(e){var n,i,o=(i=(n=yu("channel",e.children))===null||n===void 0?void 0:n.children)!==null&&i!==void 0?i:[],s={type:e.name.substr(0,3),id:"",items:(0,Ms.getElementsByTagName)("item",e.children).map(function(d){var f=d.children,g={media:$v(f)};Nn(g,"id","guid",f),Nn(g,"title","title",f),Nn(g,"link","link",f),Nn(g,"description","description",f);var y=Di("pubDate",f)||Di("dc:date",f);return y&&(g.pubDate=new Date(y)),g})};Nn(s,"title","title",o),Nn(s,"link","link",o),Nn(s,"description","description",o);var u=Di("lastBuildDate",o);return u&&(s.updated=new Date(u)),Nn(s,"author","managingEditor",o,!0),s}var ik=["url","type","lang"],ok=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function $v(e){return(0,Ms.getElementsByTagName)("media:content",e).map(function(n){for(var i=n.attribs,o={medium:i.medium,isDefault:!!i.isDefault},s=0,u=ik;s{const y=g.currentTarget.value;i&&i(y===""?void 0:y,u,g)},[u,i]);return h.jsx("input",{...d,ref:o,className:Le(JE.rawInput,n),name:Dt(u)?String(u):void 0,onChange:f,value:s??""})}function eN(e,n,i,o){gr.useEffect(()=>{if(!e)return;const s=u=>{const{current:d}=i,{current:f}=o,g=u.target,y=u&&d?d===u.target||d.contains(g):!1,x=f?f===u.target||f.contains(g):!1;n(y,x,u)};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[e,n,i,o])}var wg={},tN={},xs={},qf={},bs={},Wf={};Object.defineProperty(Wf,"__esModule",{value:!0});Wf.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}));var Gf={};Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}));var Zd={};(function(e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var i=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(n=String.fromCodePoint)!==null&&n!==void 0?n:function(u){var d="";return u>65535&&(u-=65536,d+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),d+=String.fromCharCode(u),d};function o(u){var d;return u>=55296&&u<=57343||u>1114111?65533:(d=i.get(u))!==null&&d!==void 0?d:u}e.replaceCodePoint=o;function s(u){return(0,e.fromCodePoint)(o(u))}e.default=s})(Zd);(function(e){var n=Ae&&Ae.__createBinding||(Object.create?function(R,H,G,ee){ee===void 0&&(ee=G);var me=Object.getOwnPropertyDescriptor(H,G);(!me||("get"in me?!H.__esModule:me.writable||me.configurable))&&(me={enumerable:!0,get:function(){return H[G]}}),Object.defineProperty(R,ee,me)}:function(R,H,G,ee){ee===void 0&&(ee=G),R[ee]=H[G]}),i=Ae&&Ae.__setModuleDefault||(Object.create?function(R,H){Object.defineProperty(R,"default",{enumerable:!0,value:H})}:function(R,H){R.default=H}),o=Ae&&Ae.__importStar||function(R){if(R&&R.__esModule)return R;var H={};if(R!=null)for(var G in R)G!=="default"&&Object.prototype.hasOwnProperty.call(R,G)&&n(H,R,G);return i(H,R),H},s=Ae&&Ae.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var u=s(Wf);e.htmlDecodeTree=u.default;var d=s(Gf);e.xmlDecodeTree=d.default;var f=o(Zd);e.decodeCodePoint=f.default;var g=Zd;Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return g.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return g.fromCodePoint}});var y;(function(R){R[R.NUM=35]="NUM",R[R.SEMI=59]="SEMI",R[R.EQUALS=61]="EQUALS",R[R.ZERO=48]="ZERO",R[R.NINE=57]="NINE",R[R.LOWER_A=97]="LOWER_A",R[R.LOWER_F=102]="LOWER_F",R[R.LOWER_X=120]="LOWER_X",R[R.LOWER_Z=122]="LOWER_Z",R[R.UPPER_A=65]="UPPER_A",R[R.UPPER_F=70]="UPPER_F",R[R.UPPER_Z=90]="UPPER_Z"})(y||(y={}));var x=32,b;(function(R){R[R.VALUE_LENGTH=49152]="VALUE_LENGTH",R[R.BRANCH_LENGTH=16256]="BRANCH_LENGTH",R[R.JUMP_TABLE=127]="JUMP_TABLE"})(b=e.BinTrieFlags||(e.BinTrieFlags={}));function m(R){return R>=y.ZERO&&R<=y.NINE}function w(R){return R>=y.UPPER_A&&R<=y.UPPER_F||R>=y.LOWER_A&&R<=y.LOWER_F}function N(R){return R>=y.UPPER_A&&R<=y.UPPER_Z||R>=y.LOWER_A&&R<=y.LOWER_Z||m(R)}function S(R){return R===y.EQUALS||N(R)}var _;(function(R){R[R.EntityStart=0]="EntityStart",R[R.NumericStart=1]="NumericStart",R[R.NumericDecimal=2]="NumericDecimal",R[R.NumericHex=3]="NumericHex",R[R.NamedEntity=4]="NamedEntity"})(_||(_={}));var T;(function(R){R[R.Legacy=0]="Legacy",R[R.Strict=1]="Strict",R[R.Attribute=2]="Attribute"})(T=e.DecodingMode||(e.DecodingMode={}));var M=function(){function R(H,G,ee){this.decodeTree=H,this.emitCodePoint=G,this.errors=ee,this.state=_.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=T.Strict}return R.prototype.startEntity=function(H){this.decodeMode=H,this.state=_.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},R.prototype.write=function(H,G){switch(this.state){case _.EntityStart:return H.charCodeAt(G)===y.NUM?(this.state=_.NumericStart,this.consumed+=1,this.stateNumericStart(H,G+1)):(this.state=_.NamedEntity,this.stateNamedEntity(H,G));case _.NumericStart:return this.stateNumericStart(H,G);case _.NumericDecimal:return this.stateNumericDecimal(H,G);case _.NumericHex:return this.stateNumericHex(H,G);case _.NamedEntity:return this.stateNamedEntity(H,G)}},R.prototype.stateNumericStart=function(H,G){return G>=H.length?-1:(H.charCodeAt(G)|x)===y.LOWER_X?(this.state=_.NumericHex,this.consumed+=1,this.stateNumericHex(H,G+1)):(this.state=_.NumericDecimal,this.stateNumericDecimal(H,G))},R.prototype.addToNumericResult=function(H,G,ee,me){if(G!==ee){var Ce=ee-G;this.result=this.result*Math.pow(me,Ce)+parseInt(H.substr(G,Ce),me),this.consumed+=Ce}},R.prototype.stateNumericHex=function(H,G){for(var ee=G;G>14;G>14,Ce!==0){if(Ee===y.SEMI)return this.emitNamedEntityData(this.treeIndex,Ce,this.consumed+this.excess);this.decodeMode!==T.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},R.prototype.emitNotTerminatedNamedEntity=function(){var H,G=this,ee=G.result,me=G.decodeTree,Ce=(me[ee]&b.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ee,Ce,this.consumed),(H=this.errors)===null||H===void 0||H.missingSemicolonAfterCharacterReference(),this.consumed},R.prototype.emitNamedEntityData=function(H,G,ee){var me=this.decodeTree;return this.emitCodePoint(G===1?me[H]&~b.VALUE_LENGTH:me[H+1],ee),G===3&&this.emitCodePoint(me[H+2],ee),ee},R.prototype.end=function(){var H;switch(this.state){case _.NamedEntity:return this.result!==0&&(this.decodeMode!==T.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _.NumericDecimal:return this.emitNumericEntity(0,2);case _.NumericHex:return this.emitNumericEntity(0,3);case _.NumericStart:return(H=this.errors)===null||H===void 0||H.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _.EntityStart:return 0}},R}();e.EntityDecoder=M;function $(R){var H="",G=new M(R,function(ee){return H+=(0,f.fromCodePoint)(ee)});return function(ee,me){for(var Ce=0,Ee=0;(Ee=ee.indexOf("&",Ee))>=0;){H+=ee.slice(Ce,Ee),G.startEntity(me);var Z=G.write(ee,Ee+1);if(Z<0){Ce=Ee+G.end();break}Ce=Ee+Z,Ee=Z===0?Ce+1:Ce}var ue=H+ee.slice(Ce);return H="",ue}}function F(R,H,G,ee){var me=(H&b.BRANCH_LENGTH)>>7,Ce=H&b.JUMP_TABLE;if(me===0)return Ce!==0&&ee===Ce?G:-1;if(Ce){var Ee=ee-Ce;return Ee<0||Ee>=me?-1:R[G+Ee]-1}for(var Z=G,ue=Z+me-1;Z<=ue;){var j=Z+ue>>>1,V=R[j];if(Vee)ue=j-1;else return R[j+me]}return-1}e.determineBranch=F;var W=$(u.default),fe=$(d.default);function O(R,H){return H===void 0&&(H=T.Legacy),W(R,H)}e.decodeHTML=O;function K(R){return W(R,T.Attribute)}e.decodeHTMLAttribute=K;function de(R){return W(R,T.Strict)}e.decodeHTMLStrict=de;function pe(R){return fe(R,T.Strict)}e.decodeXML=pe})(bs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var n=bs,i;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(i||(i={}));var o;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(o||(o={}));function s(m){return m===i.Space||m===i.NewLine||m===i.Tab||m===i.FormFeed||m===i.CarriageReturn}function u(m){return m===i.Slash||m===i.Gt||s(m)}function d(m){return m>=i.Zero&&m<=i.Nine}function f(m){return m>=i.LowerA&&m<=i.LowerZ||m>=i.UpperA&&m<=i.UpperZ}function g(m){return m>=i.UpperA&&m<=i.UpperF||m>=i.LowerA&&m<=i.LowerF}var y;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(y=e.QuoteType||(e.QuoteType={}));var x={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},b=function(){function m(w,N){var S=w.xmlMode,_=S===void 0?!1:S,T=w.decodeEntities,M=T===void 0?!0:T;this.cbs=N,this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=_,this.decodeEntities=M,this.entityTrie=_?n.xmlDecodeTree:n.htmlDecodeTree}return m.prototype.reset=function(){this.state=o.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(w){this.offset+=this.buffer.length,this.buffer=w,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=o.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&w===i.Amp&&(this.state=o.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(w){var N=this.sequenceIndex===this.currentSequence.length,S=N?u(w):(w|32)===this.currentSequence[this.sequenceIndex];if(!S)this.isSpecial=!1;else if(!N){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=o.InTagName,this.stateInTagName(w)},m.prototype.stateInSpecialTag=function(w){if(this.sequenceIndex===this.currentSequence.length){if(w===i.Gt||s(w)){var N=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&w!==i.Semi)this.trieIndex+=S;else{var _=this.index-this.entityExcess+1;_>this.sectionStart&&this.emitPartial(this.sectionStart,_),this.entityResult=this.trieIndex,this.trieIndex+=S,this.entityExcess=0,this.sectionStart=this.index+1,S===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var w=(this.entityTrie[this.entityResult]&n.BinTrieFlags.VALUE_LENGTH)>>14;switch(w){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~n.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(w){(w|32)===i.LowerX?(this.entityExcess++,this.state=o.InHexEntity):(this.state=o.InNumericEntity,this.stateInNumericEntity(w))},m.prototype.emitNumericEntity=function(w){var N=this.index-this.entityExcess-1,S=N+2+ +(this.state===o.InHexEntity);S!==this.index&&(N>this.sectionStart&&this.emitPartial(this.sectionStart,N),this.sectionStart=this.index+Number(w),this.emitCodePoint((0,n.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(w){w===i.Semi?this.emitNumericEntity(!0):d(w)?(this.entityResult=this.entityResult*10+(w-i.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(w){w===i.Semi?this.emitNumericEntity(!0):d(w)?(this.entityResult=this.entityResult*16+(w-i.Zero),this.entityExcess++):g(w)?(this.entityResult=this.entityResult*16+((w|32)-i.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===o.Text||this.baseState===o.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===o.Text||this.state===o.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===o.InAttributeValueDq||this.state===o.InAttributeValueSq||this.state===o.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index0&&d.has(this.stack[this.stack.length-1]);){var f=this.stack.pop();(o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,f,!0)}this.isVoidElement(n)||(this.stack.push(n),_g.has(n)?this.foreignContext.push(!0):Eg.has(n)&&this.foreignContext.push(!1)),(u=(s=this.cbs).onopentagname)===null||u===void 0||u.call(s,n),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(n){var i,o;this.startIndex=this.openTagStart,this.attribs&&((o=(i=this.cbs).onopentag)===null||o===void 0||o.call(i,this.tagname,this.attribs,n),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(n){this.endIndex=n,this.endOpenTag(!1),this.startIndex=n+1},e.prototype.onclosetag=function(n,i){var o,s,u,d,f,g;this.endIndex=i;var y=this.getSlice(n,i);if(this.lowerCaseTagNames&&(y=y.toLowerCase()),(_g.has(y)||Eg.has(y))&&this.foreignContext.pop(),this.isVoidElement(y))!this.options.xmlMode&&y==="br"&&((s=(o=this.cbs).onopentagname)===null||s===void 0||s.call(o,"br"),(d=(u=this.cbs).onopentag)===null||d===void 0||d.call(u,"br",{},!0),(g=(f=this.cbs).onclosetag)===null||g===void 0||g.call(f,"br",!1));else{var x=this.stack.lastIndexOf(y);if(x!==-1)if(this.cbs.onclosetag)for(var b=this.stack.length-x;b--;)this.cbs.onclosetag(this.stack.pop(),b!==0);else this.stack.length=x;else!this.options.xmlMode&&y==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=i+1},e.prototype.onselfclosingtag=function(n){this.endIndex=n,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=n+1):this.onopentagend(n)},e.prototype.closeCurrentTag=function(n){var i,o,s=this.tagname;this.endOpenTag(n),this.stack[this.stack.length-1]===s&&((o=(i=this.cbs).onclosetag)===null||o===void 0||o.call(i,s,!n),this.stack.pop())},e.prototype.onattribname=function(n,i){this.startIndex=n;var o=this.getSlice(n,i);this.attribname=this.lowerCaseAttributeNames?o.toLowerCase():o},e.prototype.onattribdata=function(n,i){this.attribvalue+=this.getSlice(n,i)},e.prototype.onattribentity=function(n){this.attribvalue+=(0,xg.fromCodePoint)(n)},e.prototype.onattribend=function(n,i){var o,s;this.endIndex=i,(s=(o=this.cbs).onattribute)===null||s===void 0||s.call(o,this.attribname,this.attribvalue,n===Hl.QuoteType.Double?'"':n===Hl.QuoteType.Single?"'":n===Hl.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(n){var i=n.search(sN),o=i<0?n:n.substr(0,i);return this.lowerCaseTagNames&&(o=o.toLowerCase()),o},e.prototype.ondeclaration=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("!".concat(s),"!".concat(o))}this.startIndex=i+1},e.prototype.onprocessinginstruction=function(n,i){this.endIndex=i;var o=this.getSlice(n,i);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(o);this.cbs.onprocessinginstruction("?".concat(s),"?".concat(o))}this.startIndex=i+1},e.prototype.oncomment=function(n,i,o){var s,u,d,f;this.endIndex=i,(u=(s=this.cbs).oncomment)===null||u===void 0||u.call(s,this.getSlice(n,i-o)),(f=(d=this.cbs).oncommentend)===null||f===void 0||f.call(d),this.startIndex=i+1},e.prototype.oncdata=function(n,i,o){var s,u,d,f,g,y,x,b,m,w;this.endIndex=i;var N=this.getSlice(n,i-o);this.options.xmlMode||this.options.recognizeCDATA?((u=(s=this.cbs).oncdatastart)===null||u===void 0||u.call(s),(f=(d=this.cbs).ontext)===null||f===void 0||f.call(d,N),(y=(g=this.cbs).oncdataend)===null||y===void 0||y.call(g)):((b=(x=this.cbs).oncomment)===null||b===void 0||b.call(x,"[CDATA[".concat(N,"]]")),(w=(m=this.cbs).oncommentend)===null||w===void 0||w.call(m)),this.startIndex=i+1},e.prototype.onend=function(){var n,i;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var o=this.stack.length;o>0;this.cbs.onclosetag(this.stack[--o],!0));}(i=(n=this.cbs).onend)===null||i===void 0||i.call(n)},e.prototype.reset=function(){var n,i,o,s;(i=(n=this.cbs).onreset)===null||i===void 0||i.call(n),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(o=this.cbs).onparserinit)===null||s===void 0||s.call(o,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(n){this.reset(),this.end(n)},e.prototype.getSlice=function(n,i){for(;n-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var o=this.buffers[0].slice(n-this.bufferOffset,i-this.bufferOffset);i-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),o+=this.buffers[0].slice(0,i-this.bufferOffset);return o},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".write() after done!"));return}this.buffers.push(n),this.tokenizer.running&&(this.tokenizer.write(n),this.writeIndex++)},e.prototype.end=function(n){var i,o;if(this.ended){(o=(i=this.cbs).onerror)===null||o===void 0||o.call(i,new Error(".end() after done!"));return}n&&this.write(n),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"childNodes",{get:function(){return this.children},set:function(i){this.children=i},enumerable:!1,configurable:!0}),n}(Zf);Ge.NodeWithChildren=Eu;var gv=function(e){Ii(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=Pn.ElementType.CDATA,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),n}(Eu);Ge.CDATA=gv;var vv=function(e){Ii(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.type=Pn.ElementType.Root,i}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),n}(Eu);Ge.Document=vv;var yv=function(e){Ii(n,e);function n(i,o,s,u){s===void 0&&(s=[]),u===void 0&&(u=i==="script"?Pn.ElementType.Script:i==="style"?Pn.ElementType.Style:Pn.ElementType.Tag);var d=e.call(this,s)||this;return d.name=i,d.attribs=o,d.type=u,d}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tagName",{get:function(){return this.name},set:function(i){this.name=i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"attributes",{get:function(){var i=this;return Object.keys(this.attribs).map(function(o){var s,u;return{name:o,value:i.attribs[o],namespace:(s=i["x-attribsNamespace"])===null||s===void 0?void 0:s[o],prefix:(u=i["x-attribsPrefix"])===null||u===void 0?void 0:u[o]}})},enumerable:!1,configurable:!0}),n}(Eu);Ge.Element=yv;function wv(e){return(0,Pn.isTag)(e)}Ge.isTag=wv;function xv(e){return e.type===Pn.ElementType.CDATA}Ge.isCDATA=xv;function bv(e){return e.type===Pn.ElementType.Text}Ge.isText=bv;function Cv(e){return e.type===Pn.ElementType.Comment}Ge.isComment=Cv;function Sv(e){return e.type===Pn.ElementType.Directive}Ge.isDirective=Sv;function _v(e){return e.type===Pn.ElementType.Root}Ge.isDocument=_v;function uN(e){return Object.prototype.hasOwnProperty.call(e,"children")}Ge.hasChildren=uN;function Qf(e,n){n===void 0&&(n=!1);var i;if(bv(e))i=new hv(e.data);else if(Cv(e))i=new pv(e.data);else if(wv(e)){var o=n?Pd(e.children):[],s=new yv(e.name,ds({},e.attribs),o);o.forEach(function(g){return g.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=ds({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=ds({},e["x-attribsPrefix"])),i=s}else if(xv(e)){var o=n?Pd(e.children):[],u=new gv(o);o.forEach(function(y){return y.parent=u}),i=u}else if(_v(e)){var o=n?Pd(e.children):[],d=new vv(o);o.forEach(function(y){return y.parent=d}),e["x-mode"]&&(d["x-mode"]=e["x-mode"]),i=d}else if(Sv(e)){var f=new mv(e.name,e.data);e["x-name"]!=null&&(f["x-name"]=e["x-name"],f["x-publicId"]=e["x-publicId"],f["x-systemId"]=e["x-systemId"]),i=f}else throw new Error("Not implemented yet: ".concat(e.type));return i.startIndex=e.startIndex,i.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(i.sourceCodeLocation=e.sourceCodeLocation),i}Ge.cloneNode=Qf;function Pd(e){for(var n=e.map(function(o){return Qf(o,!0)}),i=1;i$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(s,u){return s.codePointAt(u)}:function(s,u){return(s.charCodeAt(u)&64512)===55296?(s.charCodeAt(u)-55296)*1024+s.charCodeAt(u+1)-56320+65536:s.charCodeAt(u)};function i(s){for(var u="",d=0,f;(f=e.xmlReplacer.exec(s))!==null;){var g=f.index,y=s.charCodeAt(g),x=n.get(y);x!==void 0?(u+=s.substring(d,g)+x,d=g+1):(u+="".concat(s.substring(d,g),"&#x").concat((0,e.getCodePoint)(s,g).toString(16),";"),d=e.xmlReplacer.lastIndex+=+((y&64512)===55296))}return u+s.substr(d)}e.encodeXML=i,e.escape=i;function o(s,u){return function(d){for(var f,g=0,y="";f=s.exec(d);)g!==f.index&&(y+=d.substring(g,f.index)),y+=u.get(f[0].charCodeAt(0)),g=f.index+1;return y+d.substring(g)}}e.escapeUTF8=o(/[&<>'"]/g,n),e.escapeAttribute=o(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=o(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(mu);var cN=Ae&&Ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mo,"__esModule",{value:!0});mo.encodeNonAsciiHTML=mo.encodeHTML=void 0;var dN=cN(Kf),Nv=mu,fN=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function hN(e){return kv(fN,e)}mo.encodeHTML=hN;function pN(e){return kv(Nv.xmlReplacer,e)}mo.encodeNonAsciiHTML=pN;function kv(e,n){for(var i="",o=0,s;(s=e.exec(n))!==null;){var u=s.index;i+=n.substring(o,u);var d=n.charCodeAt(u),f=dN.default.get(d);if(typeof f=="object"){if(u+10&&(o+=Nu(e.children,n)),(n.xmlMode||!Ng.has(e.name))&&(o+=""))),o}function EN(e){return"<".concat(e.data,">")}function NN(e,n){var i,o=e.data||"";return((i=n.encodeEntities)!==null&&i!==void 0?i:n.decodeEntities)!==!1&&!(!n.xmlMode&&e.parent&&yN.has(e.parent.name))&&(o=n.xmlMode||n.encodeEntities!=="utf8"?(0,gu.encodeXML)(o):(0,gu.escapeText)(o)),o}function kN(e){return"")}function jN(e){return"")}var TN=Ae&&Ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.innerText=Bn.textContent=Bn.getText=Bn.getInnerHTML=Bn.getOuterHTML=void 0;var Or=ri,PN=TN(Ps),LN=ca;function Tv(e,n){return(0,PN.default)(e,n)}Bn.getOuterHTML=Tv;function MN(e,n){return(0,Or.hasChildren)(e)?e.children.map(function(i){return Tv(i,n)}).join(""):""}Bn.getInnerHTML=MN;function iu(e){return Array.isArray(e)?e.map(iu).join(""):(0,Or.isTag)(e)?e.name==="br"?` +`:iu(e.children):(0,Or.isCDATA)(e)?iu(e.children):(0,Or.isText)(e)?e.data:""}Bn.getText=iu;function Qd(e){return Array.isArray(e)?e.map(Qd).join(""):(0,Or.hasChildren)(e)&&!(0,Or.isComment)(e)?Qd(e.children):(0,Or.isText)(e)?e.data:""}Bn.textContent=Qd;function Kd(e){return Array.isArray(e)?e.map(Kd).join(""):(0,Or.hasChildren)(e)&&(e.type===LN.ElementType.Tag||(0,Or.isCDATA)(e))?Kd(e.children):(0,Or.isText)(e)?e.data:""}Bn.innerText=Kd;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.prevElementSibling=Kt.nextElementSibling=Kt.getName=Kt.hasAttrib=Kt.getAttributeValue=Kt.getSiblings=Kt.getParent=Kt.getChildren=void 0;var Yf=ri;function Pv(e){return(0,Yf.hasChildren)(e)?e.children:[]}Kt.getChildren=Pv;function Lv(e){return e.parent||null}Kt.getParent=Lv;function DN(e){var n,i,o=Lv(e);if(o!=null)return Pv(o);for(var s=[e],u=e.prev,d=e.next;u!=null;)s.unshift(u),n=u,u=n.prev;for(;d!=null;)s.push(d),i=d,d=i.next;return s}Kt.getSiblings=DN;function ON(e,n){var i;return(i=e.attribs)===null||i===void 0?void 0:i[n]}Kt.getAttributeValue=ON;function IN(e,n){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,n)&&e.attribs[n]!=null}Kt.hasAttrib=IN;function RN(e){return e.name}Kt.getName=RN;function AN(e){for(var n,i=e.next;i!==null&&!(0,Yf.isTag)(i);)n=i,i=n.next;return i}Kt.nextElementSibling=AN;function $N(e){for(var n,i=e.prev;i!==null&&!(0,Yf.isTag)(i);)n=i,i=n.prev;return i}Kt.prevElementSibling=$N;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.prepend=jn.prependChild=jn.append=jn.appendChild=jn.replaceElement=jn.removeElement=void 0;function Ls(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var n=e.parent.children,i=n.lastIndexOf(e);i>=0&&n.splice(i,1)}e.next=null,e.prev=null,e.parent=null}jn.removeElement=Ls;function FN(e,n){var i=n.prev=e.prev;i&&(i.next=n);var o=n.next=e.next;o&&(o.prev=n);var s=n.parent=e.parent;if(s){var u=s.children;u[u.lastIndexOf(e)]=n,e.parent=null}}jn.replaceElement=FN;function zN(e,n){if(Ls(n),n.next=null,n.parent=e,e.children.push(n)>1){var i=e.children[e.children.length-2];i.next=n,n.prev=i}else n.prev=null}jn.appendChild=zN;function BN(e,n){Ls(n);var i=e.parent,o=e.next;if(n.next=o,n.prev=e,e.next=n,n.parent=i,o){if(o.prev=n,i){var s=i.children;s.splice(s.lastIndexOf(o),0,n)}}else i&&i.children.push(n)}jn.append=BN;function UN(e,n){if(Ls(n),n.parent=e,n.prev=null,e.children.unshift(n)!==1){var i=e.children[1];i.prev=n,n.next=i}else n.next=null}jn.prependChild=UN;function HN(e,n){Ls(n);var i=e.parent;if(i){var o=i.children;o.splice(o.indexOf(e),0,n)}e.prev&&(e.prev.next=n),n.parent=i,n.prev=e.prev,n.next=e,e.prev=n}jn.prepend=HN;var hn={};Object.defineProperty(hn,"__esModule",{value:!0});hn.findAll=hn.existsOne=hn.findOne=hn.findOneChild=hn.find=hn.filter=void 0;var ku=ri;function VN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),Mv(e,Array.isArray(n)?n:[n],i,o)}hn.filter=VN;function Mv(e,n,i,o){for(var s=[],u=[n],d=[0];;){if(d[0]>=u[0].length){if(d.length===1)return s;u.shift(),d.shift();continue}var f=u[0][d[0]++];if(e(f)&&(s.push(f),--o<=0))return s;i&&(0,ku.hasChildren)(f)&&f.children.length>0&&(d.unshift(0),u.unshift(f.children))}}hn.find=Mv;function qN(e,n){return n.find(e)}hn.findOneChild=qN;function Dv(e,n,i){i===void 0&&(i=!0);for(var o=null,s=0;s0&&(o=Dv(e,u.children,!0));else continue}return o}hn.findOne=Dv;function Ov(e,n){return n.some(function(i){return(0,ku.isTag)(i)&&(e(i)||Ov(e,i.children))})}hn.existsOne=Ov;function WN(e,n){for(var i=[],o=[n],s=[0];;){if(s[0]>=o[0].length){if(o.length===1)return i;o.shift(),s.shift();continue}var u=o[0][s[0]++];(0,ku.isTag)(u)&&(e(u)&&i.push(u),u.children.length>0&&(s.unshift(0),o.unshift(u.children)))}}hn.findAll=WN;var Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.getElementsByTagType=Un.getElementsByTagName=Un.getElementById=Un.getElements=Un.testElement=void 0;var lo=ri,ju=hn,vu={tag_name:function(e){return typeof e=="function"?function(n){return(0,lo.isTag)(n)&&e(n.name)}:e==="*"?lo.isTag:function(n){return(0,lo.isTag)(n)&&n.name===e}},tag_type:function(e){return typeof e=="function"?function(n){return e(n.type)}:function(n){return n.type===e}},tag_contains:function(e){return typeof e=="function"?function(n){return(0,lo.isText)(n)&&e(n.data)}:function(n){return(0,lo.isText)(n)&&n.data===e}}};function Iv(e,n){return typeof n=="function"?function(i){return(0,lo.isTag)(i)&&n(i.attribs[e])}:function(i){return(0,lo.isTag)(i)&&i.attribs[e]===n}}function GN(e,n){return function(i){return e(i)||n(i)}}function Rv(e){var n=Object.keys(e).map(function(i){var o=e[i];return Object.prototype.hasOwnProperty.call(vu,i)?vu[i](o):Iv(i,o)});return n.length===0?null:n.reduce(GN)}function ZN(e,n){var i=Rv(e);return i?i(n):!0}Un.testElement=ZN;function QN(e,n,i,o){o===void 0&&(o=1/0);var s=Rv(e);return s?(0,ju.filter)(s,n,i,o):[]}Un.getElements=QN;function KN(e,n,i){return i===void 0&&(i=!0),Array.isArray(n)||(n=[n]),(0,ju.findOne)(Iv("id",e),n,i)}Un.getElementById=KN;function YN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,ju.filter)(vu.tag_name(e),n,i,o)}Un.getElementsByTagName=YN;function XN(e,n,i,o){return i===void 0&&(i=!0),o===void 0&&(o=1/0),(0,ju.filter)(vu.tag_type(e),n,i,o)}Un.getElementsByTagType=XN;var Av={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var n=ri;function i(d){for(var f=d.length;--f>=0;){var g=d[f];if(f>0&&d.lastIndexOf(g,f-1)>=0){d.splice(f,1);continue}for(var y=g.parent;y;y=y.parent)if(d.includes(y)){d.splice(f,1);break}}return d}e.removeSubsets=i;var o;(function(d){d[d.DISCONNECTED=1]="DISCONNECTED",d[d.PRECEDING=2]="PRECEDING",d[d.FOLLOWING=4]="FOLLOWING",d[d.CONTAINS=8]="CONTAINS",d[d.CONTAINED_BY=16]="CONTAINED_BY"})(o=e.DocumentPosition||(e.DocumentPosition={}));function s(d,f){var g=[],y=[];if(d===f)return 0;for(var x=(0,n.hasChildren)(d)?d:d.parent;x;)g.unshift(x),x=x.parent;for(x=(0,n.hasChildren)(f)?f:f.parent;x;)y.unshift(x),x=x.parent;for(var b=Math.min(g.length,y.length),m=0;mN.indexOf(_)?w===f?o.FOLLOWING|o.CONTAINED_BY:o.FOLLOWING:w===d?o.PRECEDING|o.CONTAINS:o.PRECEDING}e.compareDocumentPosition=s;function u(d){return d=d.filter(function(f,g,y){return!y.includes(f,g+1)}),d.sort(function(f,g){var y=s(f,g);return y&o.PRECEDING?-1:y&o.FOLLOWING?1:0}),d}e.uniqueSort=u})(Av);var Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.getFeed=void 0;var JN=Bn,Ms=Un;function ek(e){var n=yu(ok,e);return n?n.name==="feed"?tk(n):nk(n):null}Tu.getFeed=ek;function tk(e){var n,i=e.children,o={type:"atom",items:(0,Ms.getElementsByTagName)("entry",i).map(function(d){var f,g=d.children,y={media:$v(g)};Nn(y,"id","id",g),Nn(y,"title","title",g);var x=(f=yu("link",g))===null||f===void 0?void 0:f.attribs.href;x&&(y.link=x);var b=Di("summary",g)||Di("content",g);b&&(y.description=b);var m=Di("updated",g);return m&&(y.pubDate=new Date(m)),y})};Nn(o,"id","id",i),Nn(o,"title","title",i);var s=(n=yu("link",i))===null||n===void 0?void 0:n.attribs.href;s&&(o.link=s),Nn(o,"description","subtitle",i);var u=Di("updated",i);return u&&(o.updated=new Date(u)),Nn(o,"author","email",i,!0),o}function nk(e){var n,i,o=(i=(n=yu("channel",e.children))===null||n===void 0?void 0:n.children)!==null&&i!==void 0?i:[],s={type:e.name.substr(0,3),id:"",items:(0,Ms.getElementsByTagName)("item",e.children).map(function(d){var f=d.children,g={media:$v(f)};Nn(g,"id","guid",f),Nn(g,"title","title",f),Nn(g,"link","link",f),Nn(g,"description","description",f);var y=Di("pubDate",f)||Di("dc:date",f);return y&&(g.pubDate=new Date(y)),g})};Nn(s,"title","title",o),Nn(s,"link","link",o),Nn(s,"description","description",o);var u=Di("lastBuildDate",o);return u&&(s.updated=new Date(u)),Nn(s,"author","managingEditor",o,!0),s}var rk=["url","type","lang"],ik=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function $v(e){return(0,Ms.getElementsByTagName)("media:content",e).map(function(n){for(var i=n.attribs,o={medium:i.medium,isDefault:!!i.isDefault},s=0,u=rk;s * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function kg(e){return Object.prototype.toString.call(e)==="[object Object]"}function sk(e){var n,i;return kg(e)===!1?!1:(n=e.constructor,n===void 0?!0:(i=n.prototype,!(kg(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}Xf.isPlainObject=sk;var lk={exports:{}};(function(e){(function(n,i){e.exports?e.exports=i():n.parseSrcset=i()})($e,function(){return function(n){function i(F){return F===" "||F===" "||F===` -`||F==="\f"||F==="\r"}function o(F){var W,de=F.exec(n.substring(_));if(de)return W=de[0],_+=W.length,W}for(var s=n.length,u=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,g=/[,]+$/,y=/^\d+$/,x=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,b,m,w,N,S,_=0,T=[];;){if(o(d),_>=s)return T;b=o(f),m=[],b.slice(-1)===","?(b=b.replace(g,""),$()):M()}function M(){for(o(u),w="",N="in descriptor";;){if(S=n.charAt(_),N==="in descriptor")if(i(S))w&&(m.push(w),w="",N="after descriptor");else if(S===","){_+=1,w&&m.push(w),$();return}else if(S==="(")w=w+S,N="in parens";else if(S===""){w&&m.push(w),$();return}else w=w+S;else if(N==="in parens")if(S===")")w=w+S,N="in descriptor";else if(S===""){m.push(w),$();return}else w=w+S;else if(N==="after descriptor"&&!i(S))if(S===""){$();return}else N="in descriptor",_-=1;_+=1}}function $(){var F=!1,W,de,O,K,ce={},he,R,H,G,ee;for(K=0;K",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let i=this.source;n==null&&(n=jg.isColorSupported);let o=x=>x,s=x=>x,u=x=>x;if(n){let{bold:x,gray:b,red:m}=jg.createColors(!0);s=w=>x(m(w)),o=w=>b(w),Tg&&(u=w=>Tg(w))}let d=i.split(/\r?\n/),f=Math.max(this.line-3,0),g=Math.min(this.line+2,d.length),y=String(g).length;return d.slice(f,g).map((x,b)=>{let m=f+1+b,w=" "+(" "+m).slice(-y)+" | ";if(m===this.line){if(x.length>160){let S=20,_=Math.max(0,this.column-S),T=Math.max(this.column+S,this.endColumn+S),M=x.slice(_,T),$=o(w.replace(/\d/g," "))+x.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return s(">")+o(w)+u(M)+` + */function kg(e){return Object.prototype.toString.call(e)==="[object Object]"}function ak(e){var n,i;return kg(e)===!1?!1:(n=e.constructor,n===void 0?!0:(i=n.prototype,!(kg(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}Xf.isPlainObject=ak;var sk={exports:{}};(function(e){(function(n,i){e.exports?e.exports=i():n.parseSrcset=i()})(Ae,function(){return function(n){function i(F){return F===" "||F===" "||F===` +`||F==="\f"||F==="\r"}function o(F){var W,fe=F.exec(n.substring(_));if(fe)return W=fe[0],_+=W.length,W}for(var s=n.length,u=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,g=/[,]+$/,y=/^\d+$/,x=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,b,m,w,N,S,_=0,T=[];;){if(o(d),_>=s)return T;b=o(f),m=[],b.slice(-1)===","?(b=b.replace(g,""),$()):M()}function M(){for(o(u),w="",N="in descriptor";;){if(S=n.charAt(_),N==="in descriptor")if(i(S))w&&(m.push(w),w="",N="after descriptor");else if(S===","){_+=1,w&&m.push(w),$();return}else if(S==="(")w=w+S,N="in parens";else if(S===""){w&&m.push(w),$();return}else w=w+S;else if(N==="in parens")if(S===")")w=w+S,N="in descriptor";else if(S===""){m.push(w),$();return}else w=w+S;else if(N==="after descriptor"&&!i(S))if(S===""){$();return}else N="in descriptor",_-=1;_+=1}}function $(){var F=!1,W,fe,O,K,de={},pe,R,H,G,ee;for(K=0;K",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let i=this.source;n==null&&(n=jg.isColorSupported);let o=x=>x,s=x=>x,u=x=>x;if(n){let{bold:x,gray:b,red:m}=jg.createColors(!0);s=w=>x(m(w)),o=w=>b(w),Tg&&(u=w=>Tg(w))}let d=i.split(/\r?\n/),f=Math.max(this.line-3,0),g=Math.min(this.line+2,d.length),y=String(g).length;return d.slice(f,g).map((x,b)=>{let m=f+1+b,w=" "+(" "+m).slice(-y)+" | ";if(m===this.line){if(x.length>160){let S=20,_=Math.max(0,this.column-S),T=Math.max(this.column+S,this.endColumn+S),M=x.slice(_,T),$=o(w.replace(/\d/g," "))+x.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return s(">")+o(w)+u(M)+` `+$+s("^")}let N=o(w.replace(/\d/g," "))+x.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+o(w)+u(x)+` `+N+s("^")}return" "+o(w)+u(x)}).join(` `)}toString(){let n=this.showSourceCode();return n&&(n=` @@ -128,22 +128,22 @@ Error generating stack: `+p.message+` `,beforeComment:` `,beforeDecl:` `,beforeOpen:" ",beforeRule:` -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function fk(e){return e[0].toUpperCase()+e.slice(1)}let Xd=class{constructor(e){this.builder=e}atrule(e,n){let i="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o);else{let s=(e.raws.between||"")+(n?";":"");this.builder(i+o+s,e)}}beforeAfter(e,n){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):n==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let o=e.parent,s=0;for(;o&&o.type!=="root";)s+=1,o=o.parent;if(i.includes(` -`)){let u=this.raw(e,null,"indent");if(u.length)for(let d=0;d0&&e.nodes[n].type==="comment";)n-=1;let i=this.raw(e,"semicolon");for(let o=0;o{if(o=f.raws[n],typeof o<"u")return!1})}return typeof o>"u"&&(o=Pg[i]),u.rawCache[i]=o,o}rawBeforeClose(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function dk(e){return e[0].toUpperCase()+e.slice(1)}let Xd=class{constructor(e){this.builder=e}atrule(e,n){let i="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:o&&(i+=" "),e.nodes)this.block(e,i+o);else{let s=(e.raws.between||"")+(n?";":"");this.builder(i+o+s,e)}}beforeAfter(e,n){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):n==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let o=e.parent,s=0;for(;o&&o.type!=="root";)s+=1,o=o.parent;if(i.includes(` +`)){let u=this.raw(e,null,"indent");if(u.length)for(let d=0;d0&&e.nodes[n].type==="comment";)n-=1;let i=this.raw(e,"semicolon");for(let o=0;o{if(o=f.raws[n],typeof o<"u")return!1})}return typeof o>"u"&&(o=Pg[i]),u.rawCache[i]=o,o}rawBeforeClose(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(` `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(e,n){let i;return e.walkComments(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(` `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,n){let i;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return i=o.raws.before,i.includes(` `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let n;return e.walk(i=>{if(i.type!=="decl"&&(n=i.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(e){let n;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return n=i.raws.before,n.includes(` `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(e){let n;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return n=i.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(i=>{let o=i.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof i.raws.before<"u"){let s=i.raws.before.split(` -`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let i=e[n],o=e.raws[n];return o&&o.value===i?o.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var Bv=Xd;Xd.default=Xd;let hk=Bv;function Jd(e,n){new hk(n).stringify(e)}var Pu=Jd;Jd.default=Jd;var Ds={};Ds.isClean=Symbol("isClean");Ds.my=Symbol("my");let pk=eh,mk=Bv,gk=Pu,{isClean:ns,my:vk}=Ds;function ef(e,n){let i=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="proxyCache")continue;let s=e[o],u=typeof s;o==="parent"&&u==="object"?n&&(i[o]=n):o==="source"?i[o]=s:Array.isArray(s)?i[o]=s.map(d=>ef(d,i)):(u==="object"&&s!==null&&(s=ef(s)),i[o]=s)}return i}let tf=class{constructor(e={}){this.raws={},this[ns]=!1,this[vk]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let i of e[n])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=ef(this);for(let i in e)n[i]=e[i];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:i,start:o}=this.rangeBy(n);return this.source.input.error(e,{column:o.column,line:o.line},{column:i.column,line:i.line},n)}return new pk(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,i){return e[n]===i||(e[n]=i,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markClean(){this[ns]=!0}markDirty(){if(this[ns]){this[ns]=!1;let e=this;for(;e=e.parent;)e[ns]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){n=this.toString();let o=n.indexOf(e.word);o!==-1&&(i=this.positionInside(o,n))}return i}positionInside(e,n){let i=n||this.toString(),o=this.source.start.column,s=this.source.start.line;for(let u=0;utypeof f=="object"&&f.toJSON?f.toJSON(null,n):f);else if(typeof d=="object"&&d.toJSON)i[u]=d.toJSON(null,n);else if(u==="source"){let f=n.get(d.input);f==null&&(f=s,n.set(d.input,s),s++),i[u]={end:d.end,inputId:f,start:d.start}}else i[u]=d}return o&&(i.inputs=[...n.keys()].map(u=>u.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=gk){e.stringify&&(e=e.stringify);let n="";return e(this,i=>{n+=i}),n}warn(e,n,i){let o={node:this};for(let s in i)o[s]=i[s];return e.warn(n,o)}get proxyOf(){return this}};var Lu=tf;tf.default=tf;let yk=Lu,nf=class extends yk{constructor(e){super(e),this.type="comment"}};var Mu=nf;nf.default=nf;let wk=Lu,rf=class extends wk{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Du=rf;rf.default=rf;let Uv=Mu,Hv=Du,xk=Lu,{isClean:Vv,my:qv}=Ds,th,Wv,Gv,nh;function Zv(e){return e.map(n=>(n.nodes&&(n.nodes=Zv(n.nodes)),delete n.source,n))}function Qv(e){if(e[Vv]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)Qv(n)}let ii=class Kv extends xk{append(...n){for(let i of n){let o=this.normalize(i,this.last);for(let s of o)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let i of this.nodes)i.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let i=this.getIterator(),o,s;for(;this.indexes[i]n[i](...o.map(s=>typeof s=="function"?(u,d)=>s(u.toProxy(),d):s)):i==="every"||i==="some"?o=>n[i]((s,...u)=>o(s.toProxy(),...u)):i==="root"?()=>n.root().toProxy():i==="nodes"?n.nodes.map(o=>o.toProxy()):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set(n,i,o){return n[i]===o||(n[i]=o,(i==="name"||i==="params"||i==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,i){let o=this.index(n),s=this.normalize(i,this.proxyOf.nodes[o]).reverse();o=this.index(n);for(let d of s)this.proxyOf.nodes.splice(o+1,0,d);let u;for(let d in this.indexes)u=this.indexes[d],o"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new Hv(n)]}else if(n.selector||n.selectors)n=[new nh(n)];else if(n.name)n=[new th(n)];else if(n.text)n=[new Uv(n)];else throw new Error("Unknown node type in node creation");return n.map(o=>(o[qv]||Kv.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[Vv]&&Qv(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(o.raws.before=i.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...n){n=n.reverse();for(let i of n){let o=this.normalize(i,this.first,"prepend").reverse();for(let s of o)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+o.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let i;for(let o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this.markDirty(),this}replaceValues(n,i,o){return o||(o=i,i={}),this.walkDecls(s=>{i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(n,o))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((i,o)=>{let s;try{s=n(i,o)}catch(u){throw i.addToError(u)}return s!==!1&&i.walk&&(s=i.walk(n)),s})}walkAtRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="atrule"&&n.test(o.name))return i(o,s)}):this.walk((o,s)=>{if(o.type==="atrule"&&o.name===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="atrule")return i(o,s)}))}walkComments(n){return this.walk((i,o)=>{if(i.type==="comment")return n(i,o)})}walkDecls(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="decl"&&n.test(o.prop))return i(o,s)}):this.walk((o,s)=>{if(o.type==="decl"&&o.prop===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="decl")return i(o,s)}))}walkRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="rule"&&n.test(o.selector))return i(o,s)}):this.walk((o,s)=>{if(o.type==="rule"&&o.selector===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="rule")return i(o,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ii.registerParse=e=>{Wv=e};ii.registerRule=e=>{nh=e};ii.registerAtRule=e=>{th=e};ii.registerRoot=e=>{Gv=e};var vo=ii;ii.default=ii;ii.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,th.prototype):e.type==="rule"?Object.setPrototypeOf(e,nh.prototype):e.type==="decl"?Object.setPrototypeOf(e,Hv.prototype):e.type==="comment"?Object.setPrototypeOf(e,Uv.prototype):e.type==="root"&&Object.setPrototypeOf(e,Gv.prototype),e[qv]=!0,e.nodes&&e.nodes.forEach(n=>{ii.rebuild(n)})};let Yv=vo,wu=class extends Yv{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var rh=wu;wu.default=wu;Yv.registerAtRule(wu);let bk=vo,Xv,Jv,Cs=class extends bk{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Xv(new Jv,this,e).stringify()}};Cs.registerLazyResult=e=>{Xv=e};Cs.registerProcessor=e=>{Jv=e};var ih=Cs;Cs.default=Cs;let Ck="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Sk=(e=21)=>{let n="",i=e;for(;i--;)n+=Ck[Math.random()*64|0];return n};var _k={nanoid:Sk};let{existsSync:Ek,readFileSync:Nk}=vr,{dirname:Ld,join:kk}=vr,{SourceMapConsumer:Lg,SourceMapGenerator:Mg}=vr;function jk(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let of=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=n.map?n.map.prev:void 0,o=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Ld(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Lg(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,u=e.match(o)||e.match(s);if(u)return decodeURIComponent(e.substr(u[0].length));let d=e.match(n)||e.match(i);if(d)return jk(e.substr(d[0].length));let f=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let i=e.lastIndexOf(n.pop()),o=e.indexOf("*/",i);i>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,o)))}loadFile(e){if(this.root=Ld(e),Ek(e))return this.mapFile=e,Nk(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let i=n(e);if(i){let o=this.loadFile(i);if(!o)throw new Error("Unable to load previous source map: "+i.toString());return o}}else{if(n instanceof Lg)return Mg.fromSourceMap(n).toString();if(n instanceof Mg)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=kk(Ld(e),i)),this.loadFile(i)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var ey=of;of.default=of;let{nanoid:Tk}=_k,{isAbsolute:af,resolve:sf}=vr,{SourceMapConsumer:Pk,SourceMapGenerator:Lk}=vr,{fileURLToPath:Dg,pathToFileURL:ql}=vr,Og=eh,Mk=ey,Md=vr,Dd=Symbol("fromOffsetCache"),Dk=!!(Pk&&Lk),Ig=!!(sf&&af),xu=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Ig||/^\w+:\/\//.test(n.from)||af(n.from)?this.file=n.from:this.file=sf(n.from)),Ig&&Dk){let i=new Mk(this.css,n);if(i.text){this.map=i;let o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,n,i,o={}){let s,u,d;if(n&&typeof n=="object"){let g=n,y=i;if(typeof g.offset=="number"){let x=this.fromOffset(g.offset);n=x.line,i=x.col}else n=g.line,i=g.column;if(typeof y.offset=="number"){let x=this.fromOffset(y.offset);u=x.line,s=x.col}else u=y.line,s=y.column}else if(!i){let g=this.fromOffset(n);n=g.line,i=g.col}let f=this.origin(n,i,u,s);return f?d=new Og(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,o.plugin):d=new Og(e,u===void 0?n:{column:i,line:n},u===void 0?i:{column:s,line:u},this.css,this.file,o.plugin),d.input={column:i,endColumn:s,endLine:u,line:n,source:this.css},this.file&&(ql&&(d.input.url=ql(this.file).toString()),d.input.file=this.file),d}fromOffset(e){let n,i;if(this[Dd])i=this[Dd];else{let s=this.css.split(` +`);return n=s[s.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(e,n){let i=e[n],o=e.raws[n];return o&&o.value===i?o.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}};var Bv=Xd;Xd.default=Xd;let fk=Bv;function Jd(e,n){new fk(n).stringify(e)}var Pu=Jd;Jd.default=Jd;var Ds={};Ds.isClean=Symbol("isClean");Ds.my=Symbol("my");let hk=eh,pk=Bv,mk=Pu,{isClean:ns,my:gk}=Ds;function ef(e,n){let i=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="proxyCache")continue;let s=e[o],u=typeof s;o==="parent"&&u==="object"?n&&(i[o]=n):o==="source"?i[o]=s:Array.isArray(s)?i[o]=s.map(d=>ef(d,i)):(u==="object"&&s!==null&&(s=ef(s)),i[o]=s)}return i}let tf=class{constructor(e={}){this.raws={},this[ns]=!1,this[gk]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let i of e[n])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[n]=e[n]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let n in e)this[n]=e[n];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let n=ef(this);for(let i in e)n[i]=e[i];return n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}error(e,n={}){if(this.source){let{end:i,start:o}=this.rangeBy(n);return this.source.input.error(e,{column:o.column,line:o.line},{column:i.column,line:i.line},n)}return new hk(e)}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]},set(e,n,i){return e[n]===i||(e[n]=i,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0}}}markClean(){this[ns]=!0}markDirty(){if(this[ns]){this[ns]=!1;let e=this;for(;e=e.parent;)e[ns]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,n){let i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){n=this.toString();let o=n.indexOf(e.word);o!==-1&&(i=this.positionInside(o,n))}return i}positionInside(e,n){let i=n||this.toString(),o=this.source.start.column,s=this.source.start.line;for(let u=0;utypeof f=="object"&&f.toJSON?f.toJSON(null,n):f);else if(typeof d=="object"&&d.toJSON)i[u]=d.toJSON(null,n);else if(u==="source"){let f=n.get(d.input);f==null&&(f=s,n.set(d.input,s),s++),i[u]={end:d.end,inputId:f,start:d.start}}else i[u]=d}return o&&(i.inputs=[...n.keys()].map(u=>u.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=mk){e.stringify&&(e=e.stringify);let n="";return e(this,i=>{n+=i}),n}warn(e,n,i){let o={node:this};for(let s in i)o[s]=i[s];return e.warn(n,o)}get proxyOf(){return this}};var Lu=tf;tf.default=tf;let vk=Lu,nf=class extends vk{constructor(e){super(e),this.type="comment"}};var Mu=nf;nf.default=nf;let yk=Lu,rf=class extends yk{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Du=rf;rf.default=rf;let Uv=Mu,Hv=Du,wk=Lu,{isClean:Vv,my:qv}=Ds,th,Wv,Gv,nh;function Zv(e){return e.map(n=>(n.nodes&&(n.nodes=Zv(n.nodes)),delete n.source,n))}function Qv(e){if(e[Vv]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)Qv(n)}let ii=class Kv extends wk{append(...n){for(let i of n){let o=this.normalize(i,this.last);for(let s of o)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let i of this.nodes)i.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let i=this.getIterator(),o,s;for(;this.indexes[i]n[i](...o.map(s=>typeof s=="function"?(u,d)=>s(u.toProxy(),d):s)):i==="every"||i==="some"?o=>n[i]((s,...u)=>o(s.toProxy(),...u)):i==="root"?()=>n.root().toProxy():i==="nodes"?n.nodes.map(o=>o.toProxy()):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set(n,i,o){return n[i]===o||(n[i]=o,(i==="name"||i==="params"||i==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,i){let o=this.index(n),s=this.normalize(i,this.proxyOf.nodes[o]).reverse();o=this.index(n);for(let d of s)this.proxyOf.nodes.splice(o+1,0,d);let u;for(let d in this.indexes)u=this.indexes[d],o"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let o of n)o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new Hv(n)]}else if(n.selector||n.selectors)n=[new nh(n)];else if(n.name)n=[new th(n)];else if(n.text)n=[new Uv(n)];else throw new Error("Unknown node type in node creation");return n.map(o=>(o[qv]||Kv.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[Vv]&&Qv(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(o.raws.before=i.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...n){n=n.reverse();for(let i of n){let o=this.normalize(i,this.first,"prepend").reverse();for(let s of o)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+o.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let i;for(let o in this.indexes)i=this.indexes[o],i>=n&&(this.indexes[o]=i-1);return this.markDirty(),this}replaceValues(n,i,o){return o||(o=i,i={}),this.walkDecls(s=>{i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(n,o))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((i,o)=>{let s;try{s=n(i,o)}catch(u){throw i.addToError(u)}return s!==!1&&i.walk&&(s=i.walk(n)),s})}walkAtRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="atrule"&&n.test(o.name))return i(o,s)}):this.walk((o,s)=>{if(o.type==="atrule"&&o.name===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="atrule")return i(o,s)}))}walkComments(n){return this.walk((i,o)=>{if(i.type==="comment")return n(i,o)})}walkDecls(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="decl"&&n.test(o.prop))return i(o,s)}):this.walk((o,s)=>{if(o.type==="decl"&&o.prop===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="decl")return i(o,s)}))}walkRules(n,i){return i?n instanceof RegExp?this.walk((o,s)=>{if(o.type==="rule"&&n.test(o.selector))return i(o,s)}):this.walk((o,s)=>{if(o.type==="rule"&&o.selector===n)return i(o,s)}):(i=n,this.walk((o,s)=>{if(o.type==="rule")return i(o,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ii.registerParse=e=>{Wv=e};ii.registerRule=e=>{nh=e};ii.registerAtRule=e=>{th=e};ii.registerRoot=e=>{Gv=e};var vo=ii;ii.default=ii;ii.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,th.prototype):e.type==="rule"?Object.setPrototypeOf(e,nh.prototype):e.type==="decl"?Object.setPrototypeOf(e,Hv.prototype):e.type==="comment"?Object.setPrototypeOf(e,Uv.prototype):e.type==="root"&&Object.setPrototypeOf(e,Gv.prototype),e[qv]=!0,e.nodes&&e.nodes.forEach(n=>{ii.rebuild(n)})};let Yv=vo,wu=class extends Yv{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var rh=wu;wu.default=wu;Yv.registerAtRule(wu);let xk=vo,Xv,Jv,Cs=class extends xk{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Xv(new Jv,this,e).stringify()}};Cs.registerLazyResult=e=>{Xv=e};Cs.registerProcessor=e=>{Jv=e};var ih=Cs;Cs.default=Cs;let bk="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ck=(e=21)=>{let n="",i=e;for(;i--;)n+=bk[Math.random()*64|0];return n};var Sk={nanoid:Ck};let{existsSync:_k,readFileSync:Ek}=vr,{dirname:Ld,join:Nk}=vr,{SourceMapConsumer:Lg,SourceMapGenerator:Mg}=vr;function kk(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let of=class{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=n.map?n.map.prev:void 0,o=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Ld(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Lg(this.text)),this.consumerCache}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,u=e.match(o)||e.match(s);if(u)return decodeURIComponent(e.substr(u[0].length));let d=e.match(n)||e.match(i);if(d)return kk(e.substr(d[0].length));let f=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+f)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let i=e.lastIndexOf(n.pop()),o=e.indexOf("*/",i);i>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,o)))}loadFile(e){if(this.root=Ld(e),_k(e))return this.mapFile=e,Ek(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let i=n(e);if(i){let o=this.loadFile(i);if(!o)throw new Error("Unable to load previous source map: "+i.toString());return o}}else{if(n instanceof Lg)return Mg.fromSourceMap(n).toString();if(n instanceof Mg)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=Nk(Ld(e),i)),this.loadFile(i)}}}startWith(e,n){return e?e.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var ey=of;of.default=of;let{nanoid:jk}=Sk,{isAbsolute:af,resolve:sf}=vr,{SourceMapConsumer:Tk,SourceMapGenerator:Pk}=vr,{fileURLToPath:Dg,pathToFileURL:ql}=vr,Og=eh,Lk=ey,Md=vr,Dd=Symbol("fromOffsetCache"),Mk=!!(Tk&&Pk),Ig=!!(sf&&af),xu=class{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Ig||/^\w+:\/\//.test(n.from)||af(n.from)?this.file=n.from:this.file=sf(n.from)),Ig&&Mk){let i=new Lk(this.css,n);if(i.text){this.map=i;let o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,n,i,o={}){let s,u,d;if(n&&typeof n=="object"){let g=n,y=i;if(typeof g.offset=="number"){let x=this.fromOffset(g.offset);n=x.line,i=x.col}else n=g.line,i=g.column;if(typeof y.offset=="number"){let x=this.fromOffset(y.offset);u=x.line,s=x.col}else u=y.line,s=y.column}else if(!i){let g=this.fromOffset(n);n=g.line,i=g.col}let f=this.origin(n,i,u,s);return f?d=new Og(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,o.plugin):d=new Og(e,u===void 0?n:{column:i,line:n},u===void 0?i:{column:s,line:u},this.css,this.file,o.plugin),d.input={column:i,endColumn:s,endLine:u,line:n,source:this.css},this.file&&(ql&&(d.input.url=ql(this.file).toString()),d.input.file=this.file),d}fromOffset(e){let n,i;if(this[Dd])i=this[Dd];else{let s=this.css.split(` `);i=new Array(s.length);let u=0;for(let d=0,f=s.length;d=n)o=i.length-1;else{let s=i.length-2,u;for(;o>1),e=i[u+1])o=u+1;else{o=u;break}}return{col:e-i[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:sf(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,n,i,o){if(!this.map)return!1;let s=this.map.consumer(),u=s.originalPositionFor({column:n,line:e});if(!u.source)return!1;let d;typeof i=="number"&&(d=s.originalPositionFor({column:o,line:i}));let f;af(u.source)?f=ql(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||ql(this.map.mapFile));let g={column:u.column,endColumn:d&&d.column,endLine:d&&d.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(Dg)g.file=Dg(f);else throw new Error("file: protocol is not available in this PostCSS build");let y=s.sourceContentFor(u.source);return y&&(g.source=y),g}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Ou=xu;xu.default=xu;Md&&Md.registerInput&&Md.registerInput(xu);let ty=vo,ny,ry,oa=class extends ty{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,n,i){let o=super.normalize(e);if(n){if(i==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let s of o)s.raws.before=n.raws.before}return o}removeChild(e,n){let i=this.index(e);return!n&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new ny(new ry,this,e).stringify()}};oa.registerLazyResult=e=>{ny=e};oa.registerProcessor=e=>{ry=e};var Os=oa;oa.default=oa;ty.registerRoot(oa);let Ss={comma(e){return Ss.split(e,[","],!0)},space(e){let n=[" ",` -`," "];return Ss.split(e,n)},split(e,n,i){let o=[],s="",u=!1,d=0,f=!1,g="",y=!1;for(let x of e)y?y=!1:x==="\\"?y=!0:f?x===g&&(f=!1):x==='"'||x==="'"?(f=!0,g=x):x==="("?d+=1:x===")"?d>0&&(d-=1):d===0&&n.includes(x)&&(u=!0),u?(s!==""&&o.push(s.trim()),s="",u=!1):s+=x;return(i||s!=="")&&o.push(s.trim()),o}};var iy=Ss;Ss.default=Ss;let oy=vo,Ok=iy,bu=class extends oy{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ok.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var oh=bu;bu.default=bu;oy.registerRule(bu);let Ik=rh,Rk=Mu,Ak=Du,$k=Ou,Fk=ey,zk=Os,Bk=oh;function _s(e,n){if(Array.isArray(e))return e.map(s=>_s(s));let{inputs:i,...o}=e;if(i){n=[];for(let s of i){let u={...s,__proto__:$k.prototype};u.map&&(u.map={...u.map,__proto__:Fk.prototype}),n.push(u)}}if(o.nodes&&(o.nodes=e.nodes.map(s=>_s(s,n))),o.source){let{inputId:s,...u}=o.source;o.source=u,s!=null&&(o.source.input=n[s])}if(o.type==="root")return new zk(o);if(o.type==="decl")return new Ak(o);if(o.type==="rule")return new Bk(o);if(o.type==="comment")return new Rk(o);if(o.type==="atrule")return new Ik(o);throw new Error("Unknown node type: "+e.type)}var Uk=_s;_s.default=_s;let{dirname:ou,relative:ay,resolve:sy,sep:ly}=vr,{SourceMapConsumer:uy,SourceMapGenerator:au}=vr,{pathToFileURL:Rg}=vr,Hk=Ou,Vk=!!(uy&&au),qk=!!(ou&&sy&&ay&&ly),Wk=class{constructor(e,n,i,o){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=` +`," "];return Ss.split(e,n)},split(e,n,i){let o=[],s="",u=!1,d=0,f=!1,g="",y=!1;for(let x of e)y?y=!1:x==="\\"?y=!0:f?x===g&&(f=!1):x==='"'||x==="'"?(f=!0,g=x):x==="("?d+=1:x===")"?d>0&&(d-=1):d===0&&n.includes(x)&&(u=!0),u?(s!==""&&o.push(s.trim()),s="",u=!1):s+=x;return(i||s!=="")&&o.push(s.trim()),o}};var iy=Ss;Ss.default=Ss;let oy=vo,Dk=iy,bu=class extends oy{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Dk.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var oh=bu;bu.default=bu;oy.registerRule(bu);let Ok=rh,Ik=Mu,Rk=Du,Ak=Ou,$k=ey,Fk=Os,zk=oh;function _s(e,n){if(Array.isArray(e))return e.map(s=>_s(s));let{inputs:i,...o}=e;if(i){n=[];for(let s of i){let u={...s,__proto__:Ak.prototype};u.map&&(u.map={...u.map,__proto__:$k.prototype}),n.push(u)}}if(o.nodes&&(o.nodes=e.nodes.map(s=>_s(s,n))),o.source){let{inputId:s,...u}=o.source;o.source=u,s!=null&&(o.source.input=n[s])}if(o.type==="root")return new Fk(o);if(o.type==="decl")return new Rk(o);if(o.type==="rule")return new zk(o);if(o.type==="comment")return new Ik(o);if(o.type==="atrule")return new Ok(o);throw new Error("Unknown node type: "+e.type)}var Bk=_s;_s.default=_s;let{dirname:ou,relative:ay,resolve:sy,sep:ly}=vr,{SourceMapConsumer:uy,SourceMapGenerator:au}=vr,{pathToFileURL:Rg}=vr,Uk=Ou,Hk=!!(uy&&au),Vk=!!(ou&&sy&&ay&&ly),qk=class{constructor(e,n,i,o){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=` `;this.css.includes(`\r `)&&(n=`\r -`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),i=e.root||ou(e.file),o;this.mapOpts.sourcesContent===!1?(o=new uy(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),qk&&Vk&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=au.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new au({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new au({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,n=1,i="",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,u;this.stringify(this.root,(d,f,g)=>{if(this.css+=d,f&&g!=="end"&&(o.generated.line=e,o.generated.column=n-1,f.source&&f.source.start?(o.source=this.sourcePath(f),o.original.line=f.source.start.line,o.original.column=f.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),u=d.match(/\n/g),u?(e+=u.length,s=d.lastIndexOf(` -`),n=d.length-s):n+=d.length,f&&g!=="start"){let y=f.parent||{raws:{}};(!(f.type==="decl"||f.type==="atrule"&&!f.nodes)||f!==y.last||y.raws.semicolon)&&(f.source&&f.source.end?(o.source=this.sourcePath(f),o.original.line=f.source.end.line,o.original.column=f.source.end.column-1,o.generated.line=e,o.generated.column=n-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=n-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let i=this.opts.to?ou(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ou(sy(i,this.mapOpts.annotation)));let o=ay(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new Hk(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!e[i]){e[i]=!0;let o=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(n,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(Rg){let i=Rg(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;ly==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var cy=Wk;const Od=39,Ag=34,Wl=92,$g=47,Gl=10,rs=32,Zl=12,Ql=9,Kl=13,Gk=91,Zk=93,Qk=40,Kk=41,Yk=123,Xk=125,Jk=59,ej=42,tj=58,nj=64,Yl=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rj=/.[\r\n"'(/\\]/,Fg=/[\da-f]/i;var ij=function(e,n={}){let i=e.css.valueOf(),o=n.ignoreErrors,s,u,d,f,g,y,x,b,m,w,N=i.length,S=0,_=[],T=[];function M(){return S}function $(O){throw e.error("Unclosed "+O,S)}function F(){return T.length===0&&S>=N}function W(O){if(T.length)return T.pop();if(S>=N)return;let K=O?O.ignoreUnclosed:!1;switch(s=i.charCodeAt(S),s){case Gl:case rs:case Ql:case Kl:case Zl:{f=S;do f+=1,s=i.charCodeAt(f);while(s===rs||s===Gl||s===Ql||s===Kl||s===Zl);y=["space",i.slice(S,f)],S=f-1;break}case Gk:case Zk:case Yk:case Xk:case tj:case Jk:case Kk:{let ce=String.fromCharCode(s);y=[ce,ce,S];break}case Qk:{if(w=_.length?_.pop()[1]:"",m=i.charCodeAt(S+1),w==="url"&&m!==Od&&m!==Ag&&m!==rs&&m!==Gl&&m!==Ql&&m!==Zl&&m!==Kl){f=S;do{if(x=!1,f=i.indexOf(")",f+1),f===-1)if(o||K){f=S;break}else $("bracket");for(b=f;i.charCodeAt(b-1)===Wl;)b-=1,x=!x}while(x);y=["brackets",i.slice(S,f+1),S,f],S=f}else f=i.indexOf(")",S+1),u=i.slice(S,f+1),f===-1||rj.test(u)?y=["(","(",S]:(y=["brackets",u,S,f],S=f);break}case Od:case Ag:{g=s===Od?"'":'"',f=S;do{if(x=!1,f=i.indexOf(g,f+1),f===-1)if(o||K){f=S+1;break}else $("string");for(b=f;i.charCodeAt(b-1)===Wl;)b-=1,x=!x}while(x);y=["string",i.slice(S,f+1),S,f],S=f;break}case nj:{Yl.lastIndex=S+1,Yl.test(i),Yl.lastIndex===0?f=i.length-1:f=Yl.lastIndex-2,y=["at-word",i.slice(S,f+1),S,f],S=f;break}case Wl:{for(f=S,d=!0;i.charCodeAt(f+1)===Wl;)f+=1,d=!d;if(s=i.charCodeAt(f+1),d&&s!==$g&&s!==rs&&s!==Gl&&s!==Ql&&s!==Kl&&s!==Zl&&(f+=1,Fg.test(i.charAt(f)))){for(;Fg.test(i.charAt(f+1));)f+=1;i.charCodeAt(f+1)===rs&&(f+=1)}y=["word",i.slice(S,f+1),S,f],S=f;break}default:{s===$g&&i.charCodeAt(S+1)===ej?(f=i.indexOf("*/",S+2)+1,f===0&&(o||K?f=i.length:$("comment")),y=["comment",i.slice(S,f+1),S,f],S=f):(Xl.lastIndex=S+1,Xl.test(i),Xl.lastIndex===0?f=i.length-1:f=Xl.lastIndex-2,y=["word",i.slice(S,f+1),S,f],_.push(y),S=f);break}}return S++,y}function de(O){T.push(O)}return{back:de,endOfFile:F,nextToken:W,position:M}};let oj=rh,aj=Mu,sj=Du,lj=Os,zg=oh,uj=ij;const Bg={empty:!0,space:!0};function cj(e){for(let n=e.length-1;n>=0;n--){let i=e[n],o=i[3]||i[2];if(o)return o}}let dj=class{constructor(e){this.input=e,this.root=new lj,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new oj;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let i,o,s,u=!1,d=!1,f=[],g=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?g.push(i==="("?")":"]"):i==="{"&&g.length>0?g.push("}"):i===g[g.length-1]&&g.pop(),g.length===0)if(i===";"){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){d=!0;break}else if(i==="}"){if(f.length>0){for(s=f.length-1,o=f[s];o&&o[0]==="space";)o=f[--s];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(n.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(n,"params",f),u&&(e=f[f.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),d&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let i=0,o;for(let s=n-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let n=0,i,o,s;for(let[u,d]of e.entries()){if(o=d,s=o[0],s==="("&&(n+=1),s===")"&&(n-=1),n===0&&s===":")if(!i)this.doubleColon(o);else{if(i[0]==="word"&&i[1]==="progid")continue;return u}i=o}return!1}comment(e){let n=new aj;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let o=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}createTokenizer(){this.tokenizer=uj(this.input)}decl(e,n){let i=new sj;this.init(i,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||cj(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){i.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],d;for(;e.length&&(d=e[0][0],!(d!=="space"&&d!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){i.important=!0;let g=this.stringFrom(e,f);g=this.spacesFromEnd(e)+g,g!==" !important"&&(i.raws.important=g);break}else if(s[1].toLowerCase()==="important"){let g=e.slice(0),y="";for(let x=f;x>0;x--){let b=g[x][0];if(y.trim().startsWith("!")&&b!=="space")break;y=g.pop()[1]+y}y.trim().startsWith("!")&&(i.important=!0,i.raws.important=y,e=g)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(i.raws.between+=u.map(f=>f[1]).join(""),u=[]),this.raw(i,"value",u.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new zg;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,i=null,o=!1,s=null,u=[],d=e[1].startsWith("--"),f=[],g=e;for(;g;){if(i=g[0],f.push(g),i==="("||i==="[")s||(s=g),u.push(i==="("?")":"]");else if(d&&o&&i==="{")s||(s=g),u.push("}");else if(u.length===0)if(i===";")if(o){this.decl(f,d);return}else break;else if(i==="{"){this.rule(f);return}else if(i==="}"){this.tokenizer.back(f.pop()),n=!0;break}else i===":"&&(o=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(s=null));g=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),u.length>0&&this.unclosedBracket(s),n&&o){if(!d)for(;f.length&&(g=f[f.length-1][0],!(g!=="space"&&g!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,d)}else this.unknownWord(f)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,i,o){let s,u,d=i.length,f="",g=!0,y,x;for(let b=0;bm+w[1],"");e.raws[n]={raw:b,value:f}}e[n]=f}rule(e){e.pop();let n=new zg;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let n,i="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],n==="space");)i=e.pop()[1]+i;return i}stringFrom(e,n){let i="";for(let o=n;oe.type==="warning")}get content(){return this.css}};var sh=uf;uf.default=uf;let vj=vo,yj=ih,wj=cy,xj=ah,Ug=sh,bj=Os,Cj=Pu,{isClean:Mr,my:Sj}=Ds;const _j={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ej={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Nj={Once:!0,postcssPlugin:!0,prepare:!0},aa=0;function is(e){return typeof e=="object"&&typeof e.then=="function"}function fy(e){let n=!1,i=_j[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,aa,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,aa,i+"Exit"]:[i,i+"Exit"]}function Hg(e){let n;return e.type==="document"?n=["Document",aa,"DocumentExit"]:e.type==="root"?n=["Root",aa,"RootExit"]:n=fy(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function cf(e){return e[Mr]=!1,e.nodes&&e.nodes.forEach(n=>cf(n)),e}let df={},sa=class hy{constructor(n,i,o){this.stringified=!1,this.processed=!1;let s;if(typeof i=="object"&&i!==null&&(i.type==="root"||i.type==="document"))s=cf(i);else if(i instanceof hy||i instanceof Ug)s=cf(i.root),i.map&&(typeof o.map>"u"&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=i.map);else{let u=xj;o.syntax&&(u=o.syntax.parse),o.parser&&(u=o.parser),u.parse&&(u=u.parse);try{s=u(i,o)}catch(d){this.processed=!0,this.error=d}s&&!s[Sj]&&vj.rebuild(s)}this.result=new Ug(n,s,o),this.helpers={...df,postcss:df,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(n){return this.async().catch(n)}finally(n){return this.async().then(n,n)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(n,i){let o=this.result.lastPlugin;try{i&&i.addToError(n),this.error=n,n.name==="CssSyntaxError"&&!n.plugin?(n.plugin=o.postcssPlugin,n.setMessage()):o.postcssVersion}catch(s){console&&console.error&&console.error(s)}return n}prepareVisitors(){this.listeners={};let n=(i,o,s)=>{this.listeners[o]||(this.listeners[o]=[]),this.listeners[o].push([i,s])};for(let i of this.plugins)if(typeof i=="object")for(let o in i){if(!Ej[o]&&/^[A-Z]/.test(o))throw new Error(`Unknown event ${o} in ${i.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Nj[o])if(typeof i[o]=="object")for(let s in i[o])s==="*"?n(i,o,i[o][s]):n(i,o+"-"+s.toLowerCase(),i[o][s]);else typeof i[o]=="function"&&n(i,o,i[o])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let n=0;n0;){let o=this.visitTick(i);if(is(o))try{await o}catch(s){let u=i[i.length-1].node;throw this.handleError(s,u)}}}if(this.listeners.OnceExit)for(let[i,o]of this.listeners.OnceExit){this.result.lastPlugin=i;try{if(n.type==="document"){let s=n.nodes.map(u=>o(u,this.helpers));await Promise.all(s)}else await o(n,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(n){this.result.lastPlugin=n;try{if(typeof n=="object"&&n.Once){if(this.result.root.type==="document"){let i=this.result.root.nodes.map(o=>n.Once(o,this.helpers));return is(i[0])?Promise.all(i):i}return n.Once(this.result.root,this.helpers)}else if(typeof n=="function")return n(this.result.root,this.result)}catch(i){throw this.handleError(i)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let n=this.result.opts,i=Cj;n.syntax&&(i=n.syntax.stringify),n.stringifier&&(i=n.stringifier),i.stringify&&(i=i.stringify);let o=new wj(i,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let n of this.plugins){let i=this.runOnRoot(n);if(is(i))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let n=this.result.root;for(;!n[Mr];)n[Mr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if(n.type==="document")for(let i of n.nodes)this.visitSync(this.listeners.OnceExit,i);else this.visitSync(this.listeners.OnceExit,n)}return this.result}then(n,i){return this.async().then(n,i)}toString(){return this.css}visitSync(n,i){for(let[o,s]of n){this.result.lastPlugin=o;let u;try{u=s(i,this.helpers)}catch(d){throw this.handleError(d,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(is(u))throw this.getAsyncError()}}visitTick(n){let i=n[n.length-1],{node:o,visitors:s}=i;if(o.type!=="root"&&o.type!=="document"&&!o.parent){n.pop();return}if(s.length>0&&i.visitorIndex{s[Mr]||this.walkSync(s)});else{let s=this.listeners[o];if(s&&this.visitSync(s,n.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};sa.registerPostcss=e=>{df=e};var py=sa;sa.default=sa;bj.registerLazyResult(sa);yj.registerLazyResult(sa);let kj=cy,jj=ah;const Tj=sh;let Pj=Pu,ff=class{constructor(e,n,i){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;let o,s=Pj;this.result=new Tj(this._processor,o,this._opts),this.result.css=n;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let d=new kj(s,o,this._opts,n);if(d.isMap()){let[f,g]=d.generate();f&&(this.result.css=f),g&&(this.result.map=g)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=jj;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Lj=ff;ff.default=ff;let Mj=ih,Dj=py,Oj=Lj,Ij=Os,Es=class{constructor(n=[]){this.version="8.4.47",this.plugins=this.normalize(n)}normalize(n){let i=[];for(let o of n)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))i=i.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)i.push(o);else if(typeof o=="function")i.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return i}process(n,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new Oj(this,n,i):new Dj(this,n,i)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}};var Rj=Es;Es.default=Es;Ij.registerProcessor(Es);Mj.registerProcessor(Es);let my=rh,gy=Mu,Aj=vo,$j=eh,vy=Du,yy=ih,Fj=Uk,zj=Ou,Bj=py,Uj=iy,Hj=Lu,Vj=ah,lh=Rj,qj=sh,wy=Os,xy=oh,Wj=Pu,Gj=dy;function it(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new lh(e)}it.plugin=function(e,n){let i=!1;function o(...u){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +`),this.css+=n+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),i=e.root||ou(e.file),o;this.mapOpts.sourcesContent===!1?(o=new uy(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Vk&&Hk&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=au.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new au({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new au({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,n=1,i="",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,u;this.stringify(this.root,(d,f,g)=>{if(this.css+=d,f&&g!=="end"&&(o.generated.line=e,o.generated.column=n-1,f.source&&f.source.start?(o.source=this.sourcePath(f),o.original.line=f.source.start.line,o.original.column=f.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),u=d.match(/\n/g),u?(e+=u.length,s=d.lastIndexOf(` +`),n=d.length-s):n+=d.length,f&&g!=="start"){let y=f.parent||{raws:{}};(!(f.type==="decl"||f.type==="atrule"&&!f.nodes)||f!==y.last||y.raws.semicolon)&&(f.source&&f.source.end?(o.source=this.sourcePath(f),o.original.line=f.source.end.line,o.original.column=f.source.end.column-1,o.generated.line=e,o.generated.column=n-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=n-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let n=this.memoizedPaths.get(e);if(n)return n;let i=this.opts.to?ou(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ou(sy(i,this.mapOpts.annotation)));let o=ay(i,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new Uk(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!e[i]){e[i]=!0;let o=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(n,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let n=this.memoizedFileURLs.get(e);if(n)return n;if(Rg){let i=Rg(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let n=this.memoizedURLs.get(e);if(n)return n;ly==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var cy=qk;const Od=39,Ag=34,Wl=92,$g=47,Gl=10,rs=32,Zl=12,Ql=9,Kl=13,Wk=91,Gk=93,Zk=40,Qk=41,Kk=123,Yk=125,Xk=59,Jk=42,ej=58,tj=64,Yl=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xl=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nj=/.[\r\n"'(/\\]/,Fg=/[\da-f]/i;var rj=function(e,n={}){let i=e.css.valueOf(),o=n.ignoreErrors,s,u,d,f,g,y,x,b,m,w,N=i.length,S=0,_=[],T=[];function M(){return S}function $(O){throw e.error("Unclosed "+O,S)}function F(){return T.length===0&&S>=N}function W(O){if(T.length)return T.pop();if(S>=N)return;let K=O?O.ignoreUnclosed:!1;switch(s=i.charCodeAt(S),s){case Gl:case rs:case Ql:case Kl:case Zl:{f=S;do f+=1,s=i.charCodeAt(f);while(s===rs||s===Gl||s===Ql||s===Kl||s===Zl);y=["space",i.slice(S,f)],S=f-1;break}case Wk:case Gk:case Kk:case Yk:case ej:case Xk:case Qk:{let de=String.fromCharCode(s);y=[de,de,S];break}case Zk:{if(w=_.length?_.pop()[1]:"",m=i.charCodeAt(S+1),w==="url"&&m!==Od&&m!==Ag&&m!==rs&&m!==Gl&&m!==Ql&&m!==Zl&&m!==Kl){f=S;do{if(x=!1,f=i.indexOf(")",f+1),f===-1)if(o||K){f=S;break}else $("bracket");for(b=f;i.charCodeAt(b-1)===Wl;)b-=1,x=!x}while(x);y=["brackets",i.slice(S,f+1),S,f],S=f}else f=i.indexOf(")",S+1),u=i.slice(S,f+1),f===-1||nj.test(u)?y=["(","(",S]:(y=["brackets",u,S,f],S=f);break}case Od:case Ag:{g=s===Od?"'":'"',f=S;do{if(x=!1,f=i.indexOf(g,f+1),f===-1)if(o||K){f=S+1;break}else $("string");for(b=f;i.charCodeAt(b-1)===Wl;)b-=1,x=!x}while(x);y=["string",i.slice(S,f+1),S,f],S=f;break}case tj:{Yl.lastIndex=S+1,Yl.test(i),Yl.lastIndex===0?f=i.length-1:f=Yl.lastIndex-2,y=["at-word",i.slice(S,f+1),S,f],S=f;break}case Wl:{for(f=S,d=!0;i.charCodeAt(f+1)===Wl;)f+=1,d=!d;if(s=i.charCodeAt(f+1),d&&s!==$g&&s!==rs&&s!==Gl&&s!==Ql&&s!==Kl&&s!==Zl&&(f+=1,Fg.test(i.charAt(f)))){for(;Fg.test(i.charAt(f+1));)f+=1;i.charCodeAt(f+1)===rs&&(f+=1)}y=["word",i.slice(S,f+1),S,f],S=f;break}default:{s===$g&&i.charCodeAt(S+1)===Jk?(f=i.indexOf("*/",S+2)+1,f===0&&(o||K?f=i.length:$("comment")),y=["comment",i.slice(S,f+1),S,f],S=f):(Xl.lastIndex=S+1,Xl.test(i),Xl.lastIndex===0?f=i.length-1:f=Xl.lastIndex-2,y=["word",i.slice(S,f+1),S,f],_.push(y),S=f);break}}return S++,y}function fe(O){T.push(O)}return{back:fe,endOfFile:F,nextToken:W,position:M}};let ij=rh,oj=Mu,aj=Du,sj=Os,zg=oh,lj=rj;const Bg={empty:!0,space:!0};function uj(e){for(let n=e.length-1;n>=0;n--){let i=e[n],o=i[3]||i[2];if(o)return o}}let cj=class{constructor(e){this.input=e,this.root=new sj,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let n=new ij;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let i,o,s,u=!1,d=!1,f=[],g=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?g.push(i==="("?")":"]"):i==="{"&&g.length>0?g.push("}"):i===g[g.length-1]&&g.pop(),g.length===0)if(i===";"){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){d=!0;break}else if(i==="}"){if(f.length>0){for(s=f.length-1,o=f[s];o&&o[0]==="space";)o=f[--s];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(n.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(n,"params",f),u&&(e=f[f.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),d&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let i=0,o;for(let s=n-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let n=0,i,o,s;for(let[u,d]of e.entries()){if(o=d,s=o[0],s==="("&&(n+=1),s===")"&&(n-=1),n===0&&s===":")if(!i)this.doubleColon(o);else{if(i[0]==="word"&&i[1]==="progid")continue;return u}i=o}return!1}comment(e){let n=new oj;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let o=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}createTokenizer(){this.tokenizer=lj(this.input)}decl(e,n){let i=new aj;this.init(i,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||uj(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){i.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],d;for(;e.length&&(d=e[0][0],!(d!=="space"&&d!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){i.important=!0;let g=this.stringFrom(e,f);g=this.spacesFromEnd(e)+g,g!==" !important"&&(i.raws.important=g);break}else if(s[1].toLowerCase()==="important"){let g=e.slice(0),y="";for(let x=f;x>0;x--){let b=g[x][0];if(y.trim().startsWith("!")&&b!=="space")break;y=g.pop()[1]+y}y.trim().startsWith("!")&&(i.important=!0,i.raws.important=y,e=g)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(i.raws.between+=u.map(f=>f[1]).join(""),u=[]),this.raw(i,"value",u.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let n=new zg;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}}init(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let n=!1,i=null,o=!1,s=null,u=[],d=e[1].startsWith("--"),f=[],g=e;for(;g;){if(i=g[0],f.push(g),i==="("||i==="[")s||(s=g),u.push(i==="("?")":"]");else if(d&&o&&i==="{")s||(s=g),u.push("}");else if(u.length===0)if(i===";")if(o){this.decl(f,d);return}else break;else if(i==="{"){this.rule(f);return}else if(i==="}"){this.tokenizer.back(f.pop()),n=!0;break}else i===":"&&(o=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(s=null));g=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),u.length>0&&this.unclosedBracket(s),n&&o){if(!d)for(;f.length&&(g=f[f.length-1][0],!(g!=="space"&&g!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,d)}else this.unknownWord(f)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,n,i,o){let s,u,d=i.length,f="",g=!0,y,x;for(let b=0;bm+w[1],"");e.raws[n]={raw:b,value:f}}e[n]=f}rule(e){e.pop();let n=new zg;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}spacesAndCommentsFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let n,i="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],n==="space");)i=e.pop()[1]+i;return i}stringFrom(e,n){let i="";for(let o=n;oe.type==="warning")}get content(){return this.css}};var sh=uf;uf.default=uf;let gj=vo,vj=ih,yj=cy,wj=ah,Ug=sh,xj=Os,bj=Pu,{isClean:Mr,my:Cj}=Ds;const Sj={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_j={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Ej={Once:!0,postcssPlugin:!0,prepare:!0},aa=0;function is(e){return typeof e=="object"&&typeof e.then=="function"}function fy(e){let n=!1,i=Sj[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,aa,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,aa,i+"Exit"]:[i,i+"Exit"]}function Hg(e){let n;return e.type==="document"?n=["Document",aa,"DocumentExit"]:e.type==="root"?n=["Root",aa,"RootExit"]:n=fy(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function cf(e){return e[Mr]=!1,e.nodes&&e.nodes.forEach(n=>cf(n)),e}let df={},sa=class hy{constructor(n,i,o){this.stringified=!1,this.processed=!1;let s;if(typeof i=="object"&&i!==null&&(i.type==="root"||i.type==="document"))s=cf(i);else if(i instanceof hy||i instanceof Ug)s=cf(i.root),i.map&&(typeof o.map>"u"&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=i.map);else{let u=wj;o.syntax&&(u=o.syntax.parse),o.parser&&(u=o.parser),u.parse&&(u=u.parse);try{s=u(i,o)}catch(d){this.processed=!0,this.error=d}s&&!s[Cj]&&gj.rebuild(s)}this.result=new Ug(n,s,o),this.helpers={...df,postcss:df,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(n){return this.async().catch(n)}finally(n){return this.async().then(n,n)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(n,i){let o=this.result.lastPlugin;try{i&&i.addToError(n),this.error=n,n.name==="CssSyntaxError"&&!n.plugin?(n.plugin=o.postcssPlugin,n.setMessage()):o.postcssVersion}catch(s){console&&console.error&&console.error(s)}return n}prepareVisitors(){this.listeners={};let n=(i,o,s)=>{this.listeners[o]||(this.listeners[o]=[]),this.listeners[o].push([i,s])};for(let i of this.plugins)if(typeof i=="object")for(let o in i){if(!_j[o]&&/^[A-Z]/.test(o))throw new Error(`Unknown event ${o} in ${i.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Ej[o])if(typeof i[o]=="object")for(let s in i[o])s==="*"?n(i,o,i[o][s]):n(i,o+"-"+s.toLowerCase(),i[o][s]);else typeof i[o]=="function"&&n(i,o,i[o])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let n=0;n0;){let o=this.visitTick(i);if(is(o))try{await o}catch(s){let u=i[i.length-1].node;throw this.handleError(s,u)}}}if(this.listeners.OnceExit)for(let[i,o]of this.listeners.OnceExit){this.result.lastPlugin=i;try{if(n.type==="document"){let s=n.nodes.map(u=>o(u,this.helpers));await Promise.all(s)}else await o(n,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(n){this.result.lastPlugin=n;try{if(typeof n=="object"&&n.Once){if(this.result.root.type==="document"){let i=this.result.root.nodes.map(o=>n.Once(o,this.helpers));return is(i[0])?Promise.all(i):i}return n.Once(this.result.root,this.helpers)}else if(typeof n=="function")return n(this.result.root,this.result)}catch(i){throw this.handleError(i)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let n=this.result.opts,i=bj;n.syntax&&(i=n.syntax.stringify),n.stringifier&&(i=n.stringifier),i.stringify&&(i=i.stringify);let o=new yj(i,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let n of this.plugins){let i=this.runOnRoot(n);if(is(i))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let n=this.result.root;for(;!n[Mr];)n[Mr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if(n.type==="document")for(let i of n.nodes)this.visitSync(this.listeners.OnceExit,i);else this.visitSync(this.listeners.OnceExit,n)}return this.result}then(n,i){return this.async().then(n,i)}toString(){return this.css}visitSync(n,i){for(let[o,s]of n){this.result.lastPlugin=o;let u;try{u=s(i,this.helpers)}catch(d){throw this.handleError(d,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(is(u))throw this.getAsyncError()}}visitTick(n){let i=n[n.length-1],{node:o,visitors:s}=i;if(o.type!=="root"&&o.type!=="document"&&!o.parent){n.pop();return}if(s.length>0&&i.visitorIndex{s[Mr]||this.walkSync(s)});else{let s=this.listeners[o];if(s&&this.visitSync(s,n.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};sa.registerPostcss=e=>{df=e};var py=sa;sa.default=sa;xj.registerLazyResult(sa);vj.registerLazyResult(sa);let Nj=cy,kj=ah;const jj=sh;let Tj=Pu,ff=class{constructor(e,n,i){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;let o,s=Tj;this.result=new jj(this._processor,o,this._opts),this.result.css=n;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let d=new Nj(s,o,this._opts,n);if(d.isMap()){let[f,g]=d.generate();f&&(this.result.css=f),g&&(this.result.map=g)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,n){return this.async().then(e,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,n=kj;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Pj=ff;ff.default=ff;let Lj=ih,Mj=py,Dj=Pj,Oj=Os,Es=class{constructor(n=[]){this.version="8.4.47",this.plugins=this.normalize(n)}normalize(n){let i=[];for(let o of n)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))i=i.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)i.push(o);else if(typeof o=="function")i.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return i}process(n,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new Dj(this,n,i):new Mj(this,n,i)}use(n){return this.plugins=this.plugins.concat(this.normalize([n])),this}};var Ij=Es;Es.default=Es;Oj.registerProcessor(Es);Lj.registerProcessor(Es);let my=rh,gy=Mu,Rj=vo,Aj=eh,vy=Du,yy=ih,$j=Bk,Fj=Ou,zj=py,Bj=iy,Uj=Lu,Hj=ah,lh=Ij,Vj=sh,wy=Os,xy=oh,qj=Pu,Wj=dy;function it(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new lh(e)}it.plugin=function(e,n){let i=!1;function o(...u){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),wg.LANG&&wg.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南: -https://www.w3ctech.com/topic/2226`));let d=n(...u);return d.postcssPlugin=e,d.postcssVersion=new lh().version,d}let s;return Object.defineProperty(o,"postcss",{get(){return s||(s=o()),s}}),o.process=function(u,d,f){return it([o(f)]).process(u,d)},o};it.stringify=Wj;it.parse=Vj;it.fromJSON=Fj;it.list=Uj;it.comment=e=>new gy(e);it.atRule=e=>new my(e);it.decl=e=>new vy(e);it.rule=e=>new xy(e);it.root=e=>new wy(e);it.document=e=>new yy(e);it.CssSyntaxError=$j;it.Declaration=vy;it.Container=Aj;it.Processor=lh;it.Document=yy;it.Comment=gy;it.Warning=Gj;it.AtRule=my;it.Result=qj;it.Input=zj;it.Rule=xy;it.Root=wy;it.Node=Hj;Bj.registerPostcss(it);var Zj=it;it.default=it;const{isPlainObject:E4}=Xf,{parse:N4}=Zj,Qj="_list_1whuj_1",Kj="_compact_1whuj_5",Yj="_pending_1whuj_8",Id={list:Qj,compact:Kj,pending:Yj};function Xj(e){const{className:n,data:i,keySelector:o,renderer:s,rendererParams:u,pending:d,errored:f,filtered:g,errorMessage:y,emptyMessage:x,pendingMessage:b,filteredEmptyMessage:m,compact:w,withoutMessage:N=!1,messageClassName:S}=e,_=ze(i)||i.length===0;return h.jsxs("div",{className:Me(Id.list,w&&Id.compact,d&&Id.pending,n),children:[h.jsx(k0,{data:i,keySelector:o,renderer:s,rendererParams:u}),!N&&h.jsx(_0,{className:S,pending:d,filtered:g,empty:_,errored:f,compact:w,emptyMessage:x,filteredEmptyMessage:m,pendingMessage:b,errorMessage:y,overlayPending:!0})]})}function by(e,n){if(ze(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const Jj=[40,38,13,8];function e2(e,n,i){return n.findIndex((o,s)=>i(o,s)===e)}function Vg(e,n,i,o){if(i.length<=0)return;let s=e2(e,i,o);s===-1&&(s=n>0?-1:0);const u=tb(s+n,i.length);return o(i[u],u)}function t2(e,n,i,o,s,u,d,f,g){return v.useCallback(y=>{const{keyCode:x}=y,b=e?.key;if(o&&(x===9||x===27))u();else if(!o&&Jj.includes(x))y.stopPropagation(),y.preventDefault(),d();else if(x===13)if(Ot(b)){y.stopPropagation(),y.preventDefault();const m=i.find((w,N)=>n(w,N)===b);m&&f(b,m)}else y.stopPropagation(),y.preventDefault(),g&&g();else if(x===40){y.stopPropagation(),y.preventDefault();const m=Vg(b,1,i,n);s(m?{key:m}:void 0)}else if(x===38){y.stopPropagation(),y.preventDefault();const m=Vg(b,-1,i,n);s(m?{key:m}:void 0)}},[e,o,n,s,u,f,d,g,i])}const n2="_generic-option_zv1n8_1",r2={genericOption:n2};function i2(e){const{optionContainerClassName:n,contentRenderer:i,contentRendererParam:o,option:s,onClick:u,optionKey:d,focusedKey:f}=e,g=o(d,s),{containerClassName:y,title:x,...b}=g,m=f?.key===d,w=v.useRef(null);v.useEffect(()=>{f&&f.key===d&&!f.mouse&&w.current&&w.current.scrollIntoView({behavior:"smooth",block:"center"})},[d,f]);const N=v.useCallback(()=>{u(d,s)},[d,s,u]);return h.jsx(Cf,{elementRef:w,className:Me(r2.genericOption,n,y),onClick:N,title:x,name:d,focused:m,children:i(b)})}const o2="common",a2={infoMessageAnd:"and",infoMessageMore:"more",buttonTitleSelect:"Select all",buttonTitleClear:"Clear",buttonTitleClose:"Close",buttonTitleOpen:"Open",selectInputPendingMessage:"Fetching options...",selectInputEmptyMessage:"No option available",selectInputFilteredMessage:"No option available for the search",selectInputErrorMessage:"Could not load options"},s2={namespace:o2,strings:a2},l2="_popup_poyjv_1",u2="_list_poyjv_4",c2="_list-item_poyjv_9",d2="_info-message_poyjv_14",f2="_icon_poyjv_21",Ti={popup:l2,list:u2,listItem:c2,infoMessage:d2,icon:f2},h2=[];function Cy(e){const{actions:n,actionsContainerClassName:i,className:o,disabled:s,error:u,errorContainerClassName:d,hint:f,hintContainerClassName:g,icons:y,iconsContainerClassName:x,inputSectionClassName:b,label:m,labelClassName:w,name:N,onOptionClick:S,searchText:_,onSearchTextChange:T,optionContainerClassName:M,optionKeySelector:$,optionRenderer:F,optionRendererParams:W,options:de,optionsPopupClassName:O,persistentOptionPopup:K,readOnly:ce,placeholder:he,valueDisplay:R="",nonClearable:H,onClearButtonClick:G,onSelectAllButtonClick:ee,optionsPending:pe=!1,optionsFiltered:Ce=!1,optionsErrored:_e=!1,focused:Z,focusedKey:le,onFocusedKeyChange:j,onFocusedChange:V,dropdownShown:oe,onDropdownShownChange:Se,totalOptionsCount:se=0,hasValue:re,autoFocus:te,onEnterWithoutOption:Q,withAsterisk:Y,required:Je,variant:an,errorOnTooltip:Ut,dropdownHidden:ot}=e,vt=de??h2,lt=S0(s2),pt=v.useRef(null),ct=v.useRef(null),dt=v.useRef(null),yt=v.useRef(null),It=v.useCallback(wt=>{oe||Se(!0),T(wt)},[oe,Se,T]),sn=v.useCallback((wt,ln)=>{ln.stopPropagation(),Se(!oe)},[oe,Se]),pn=v.useCallback(()=>{oe||Se(!0)},[oe,Se]),Ln=v.useCallback(()=>{Se(!1)},[Se]),ai=v.useCallback(()=>{ce||pn()},[ce,pn]),mn=v.useCallback((wt,ln)=>{wt||ln?K&&dt.current&&dt.current.focus():Ln()},[Ln,K]),gn=v.useCallback((wt,ln)=>{S(wt,ln,N),K||Ln()},[S,Ln,K,N]),Rr=v.useCallback((wt,ln)=>({contentRendererParam:W,option:ln,optionKey:wt,focusedKey:le,contentRenderer:F,onClick:gn,onFocus:j,optionContainerClassName:Me(M,Ti.listItem)}),[le,gn,j,M,F,W]);tN(oe,mn,yt,pt);const Yn=t2(le,$,vt,oe,j,Ln,pn,gn,Q),Ht=vt.length,Yt=se-Ht>0?`${lt.infoMessageAnd} ${se-Ht} ${lt.infoMessageMore}`:void 0,Ct=oe&&!ot;return h.jsxs(h.Fragment,{children:[h.jsx(Vf,{actionsContainerClassName:i,className:o,containerRef:pt,disabled:s,errorContainerClassName:d,error:u,errorOnTooltip:Ut,hintContainerClassName:g,hint:f,iconsContainerClassName:x,icons:y,inputSectionClassName:b,inputSectionRef:ct,labelClassName:w,label:m,readOnly:ce,required:Je,variant:an,withAsterisk:Y,actions:h.jsxs(h.Fragment,{children:[n,!ce&&ee&&h.jsx(Ue,{onClick:ee,disabled:s,variant:"tertiary",name:void 0,title:lt.buttonTitleSelect,children:h.jsx(Db,{className:Ti.icon})}),!ce&&!H&&re&&h.jsx(Ue,{onClick:G,disabled:s,variant:"tertiary",name:void 0,title:lt.buttonTitleClear,children:h.jsx(Fb,{className:Ti.icon})}),!ce&&h.jsx(Ue,{onClick:sn,variant:"tertiary",name:void 0,title:Ct?lt.buttonTitleClose:lt.buttonTitleOpen,children:Ct?h.jsx(Mb,{className:Ti.icon}):h.jsx(Pb,{className:Ti.icon})})]}),input:h.jsx(fv,{name:N,elementRef:dt,readOnly:ce,disabled:s,value:oe||Z?_:R,onChange:It,onClick:ai,onFocus:()=>V(!0),onBlur:()=>V(!1),placeholder:js(R)?R:he,autoComplete:"off",onKeyDown:Yn,autoFocus:te})}),Ct&&h.jsxs(E0,{elementRef:yt,parentRef:ct,className:Me(O,Ti.popup),children:[h.jsx(Xj,{className:Ti.list,data:vt,keySelector:$,renderer:i2,rendererParams:Rr,errored:_e,filtered:Ce,pending:pe,pendingMessage:lt.selectInputPendingMessage,emptyMessage:lt.selectInputEmptyMessage,filteredEmptyMessage:lt.selectInputFilteredMessage,errorMessage:lt.selectInputErrorMessage,compact:!0}),!pe&&!_e&&!!Yt&&h.jsx("div",{className:Ti.infoMessage,children:Yt})]})]})}function p2(e){const{children:n,isActive:i,iconClassName:o,labelClassName:s}=e;return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:o,children:i?h.jsx(b0,{}):h.jsx(x0,{})}),h.jsx("div",{className:s,children:n})]})}const m2="_option_1kpl9_1",g2="_active_1kpl9_7",v2="_icon_1kpl9_11",y2="_label_1kpl9_17",os={option:m2,active:g2,icon:v2,label:y2},Rd=[];function w2(e){const{keySelector:n,labelSelector:i,name:o,onChange:s,onOptionsChange:u,options:d,optionsPending:f,optionsErrored:g,value:y,sortFunction:x,searchOptions:b,onSearchValueChange:m,onShowDropdownChange:w,hideOptionFilter:N,selectedOnTop:S,..._}=e,T=d??Rd,M=b??Rd,$=y??Rd,[F,W]=v.useState(),[de,O]=v.useState(!1),[K,ce]=v.useState(!1),[he,R]=v.useState(),[H,G]=v.useState({}),ee=v.useMemo(()=>cs(T,n,se=>se),[T,n]),pe=v.useMemo(()=>cs(T,n,i),[T,n,i]),Ce=v.useMemo(()=>$.map(se=>pe[se]??"?").join(", "),[$,pe]),_e=v.useMemo(()=>$.map(se=>ee[se]).filter(Ot),[$,ee]),Z=v.useMemo(()=>{const se=by([...M,..._e],n);if(!S)return x?x(se,F,i):se;const re=se.filter(Q=>H[n(Q)]),te=se.filter(Q=>!H[n(Q)]&&(ze(N)||N(Q)));return x?[...ho(re,F,i),...x(te,F,i)]:[...ho(re,F,i),...te]},[S,n,i,F,M,H,_e,x,N]),le=v.useCallback(se=>{W(se),m&&m(se)},[m]),j=v.useCallback(se=>{O(se),w&&w(se),se?(G(cs($,re=>re,()=>!0)),R(void 0)):(G({}),R(void 0),W(void 0),m&&m(void 0))},[$,m,w]),V=v.useCallback((se,re)=>{const te=$.findIndex(Q=>Q===se)!==-1;return{children:i(re),containerClassName:Me(os.option,te&&os.active),title:i(re),isActive:te,labelClassName:os.label,iconClassName:os.icon}},[i,$]),oe=v.useCallback((se,re)=>{const te=[...$],Q=$.findIndex(Y=>Y===se);Q!==-1?te.splice(Q,1):(te.push(se),u&&u(Y=>{const Je=Y??[];return Je.find(an=>n(an)===se)?Y:[...Je,re]})),s(te,o)},[$,s,o,u,n]),Se=v.useCallback(()=>{s([],o)},[o,s]);return h.jsx(Cy,{..._,name:o,options:Z,optionsPending:f,optionsFiltered:js(F)&&F.length>0,optionsErrored:g,optionKeySelector:n,optionRenderer:p2,optionRendererParams:V,optionContainerClassName:os.optionContainer,onOptionClick:oe,valueDisplay:Ce,onClearButtonClick:Se,searchText:F,onSearchTextChange:le,dropdownShown:de,onDropdownShownChange:j,focused:K,onFocusedChange:ce,focusedKey:he,onFocusedKeyChange:R,persistentOptionPopup:!0,nonClearable:!1,hasValue:Ot($)&&$.length>0})}function qg(e){const{name:n,options:i,keySelector:o,onChange:s,withSelectAll:u,...d}=e,f=v.useCallback(()=>{if(ze(i))return;const g=i.map(o);s(g,n)},[i,n,s,o]);return h.jsx(w2,{...d,name:n,onChange:s,options:i,keySelector:o,sortFunction:ho,searchOptions:i,onSelectAllButtonClick:u?f:void 0,selectedOnTop:!1})}const x2="_page-container_1cfro_1",b2="_content_1cfro_2",Wg={pageContainer:x2,content:b2};function Iu(e){const{className:n,contentClassName:i,children:o,contentAs:s="div",containerAs:u="div"}=e,d=s;return h.jsx(u,{className:Me(Wg.pageContainer,n),children:h.jsx(d,{className:Me(Wg.content,i),children:o})})}const C2="_raw-input_145mq_1",S2={rawInput:C2};function _2(e){const{className:n,onChange:i,elementRef:o,value:s,name:u,...d}=e,f=gr.useCallback(g=>{var y;const x=(y=g?.target)==null?void 0:y.value;i&&i(x===""?void 0:x,u,g)},[u,i]);return h.jsx("textarea",{...d,ref:o,className:Me(S2.rawInput,n),name:Ot(u)?String(u):void 0,onChange:f,value:s??""})}const E2="_option_11p37_1",N2="_icon_11p37_6",k2="_label_11p37_14",j2="_overflow-container_11p37_20",T2="_description_11p37_25",Ko={option:E2,icon:N2,label:k2,overflowContainer:j2,description:T2};function P2(e){const{className:n,label:i,description:o,iconClassName:s,labelClassName:u}=e;return h.jsxs("div",{className:Me(Ko.option,n),children:[h.jsx("div",{className:Me(Ko.icon,s),children:h.jsx(Ob,{})}),h.jsxs("div",{className:Me(Ko.label,u),children:[h.jsx("div",{className:Ko.overflowContainer,children:i}),h.jsx("div",{className:Me(Ko.overflowContainer,Ko.description),children:o})]})]})}const L2="_option-container_2k92q_1",M2="_option_2k92q_1",D2="_active_2k92q_9",O2="_icon_2k92q_12",as={optionContainer:L2,option:M2,active:D2,icon:O2},Gg=[];function Zg(e){const{keySelector:n,labelSelector:i,descriptionSelector:o,name:s,onChange:u,onOptionsChange:d,options:f,optionsPending:g,optionsErrored:y,value:x,sortFunction:b,searchOptions:m,onSearchValueChange:w,onShowDropdownChange:N,hideOptionFilter:S,selectedOnTop:_,onEnterWithoutOption:T,...M}=e,$=f??Gg,F=m??Gg,[W,de]=v.useState(),[O,K]=v.useState(!1),[ce,he]=v.useState(!1),[R,H]=v.useState(),[G,ee]=v.useState({}),pe=v.useMemo(()=>cs($,n,i),[$,n,i]),Ce=Ot(x)?pe[x]??"?":"",_e=v.useMemo(()=>{const re=$?.find(te=>n(te)===x);return ze(re)?[]:[re]},[x,$,n]),Z=v.useMemo(()=>{const re=by([...F,..._e],n);if(!_)return b?b(re,W,i):re;const te=re.filter(Y=>G[n(Y)]),Q=re.filter(Y=>!G[n(Y)]&&(ze(S)||S(Y)));return b?[...ho(te,W,i),...b(Q,W,i)]:[...ho(te,W,i),...Q]},[_,n,i,W,F,G,_e,b,S]),le=v.useCallback(re=>{de(re),w&&w(re)},[w]),j=v.useCallback(()=>{K(!1),N&&N(!1),de(void 0),w&&w(void 0),T&&T(W)},[W,N,T,w]),V=v.useCallback(re=>{K(re),N&&N(re),re?(ee(cs(x?[x]:[],te=>te,()=>!0)),H(x?{key:x}:void 0)):(ee({}),H(void 0),de(void 0),w&&w(void 0))},[x,w,N]),oe=v.useCallback((re,te)=>{const Q=re===x;return{label:i(te),description:o?o(te):void 0,containerClassName:Me(as.optionContainer,Q&&as.active),title:i(te),className:as.option,iconClassName:as.icon}},[x,i,o]),Se=v.useCallback((re,te)=>{d&&d(Q=>{const Y=Q??[];return Y.find(Je=>n(Je)===re)?Q:[...Y,te]}),u(re,s,te)},[u,s,d,n]),se=v.useCallback(()=>{if(!e.nonClearable){const re=e.onChange;re(void 0,s,void 0)}},[s,e.onChange,e.nonClearable]);return h.jsx(Cy,{...M,name:s,options:Z,optionsPending:g,optionsErrored:y,optionsFiltered:js(W)&&W.length>0,optionKeySelector:n,optionRenderer:P2,optionRendererParams:oe,optionContainerClassName:as.optionContainer,onOptionClick:Se,valueDisplay:Ce,onClearButtonClick:se,searchText:W,onSearchTextChange:le,dropdownShown:O,onDropdownShownChange:V,focused:ce,onFocusedChange:he,focusedKey:R,onFocusedKeyChange:H,hasValue:Ot(x),persistentOptionPopup:!1,onEnterWithoutOption:j})}const I2="_segment-input_bykt7_1",R2="_segment-list_bykt7_4",A2="_segment_bykt7_1",$2="_active_bykt7_18",F2="_secondary-variant_bykt7_24",fs={segmentInput:I2,segmentList:R2,segment:A2,active:$2,secondaryVariant:F2};function z2(e){const{label:n,name:i,onClick:o,value:s,className:u,variant:d="primary",inputName:f,...g}=e;return h.jsx(Ue,{...g,className:Me(fs.segment,s&&fs.active,d==="secondary"&&fs.secondaryVariant,u),name:i,onClick:o,variant:"tertiary",children:n})}function su(e){const{rendererParams:n,listContainerClassName:i,keySelector:o,labelSelector:s,className:u,...d}=e;return h.jsx(NS,{className:Me(u,fs.segmentInput),...d,renderer:z2,rendererParams:n,listContainerClassName:Me(i,fs.segmentList),keySelector:o,labelSelector:s})}function io(e){const{name:n,options:i,nonClearable:o,onChange:s,...u}=e;return e.nonClearable?h.jsx(Zg,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:ho,searchOptions:i,selectedOnTop:!1}):h.jsx(Zg,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:ho,searchOptions:i,selectedOnTop:!1})}v.createContext({tabs:[],step:0,disabled:!1,activeTab:"",variant:"primary",setActiveTab:()=>{console.warn("setActiveTab called before it was initialized")},registerTab:()=>{console.warn("registerTab called before it was initialized")},unregisterTab:()=>{console.warn("unregisterTab called before it was initialized")}});const Qg="•",B2="Enter";function U2(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:g,label:y,labelClassName:x,readOnly:b,required:m,variant:w,inputSectionClassName:N,withAsterisk:S,onChange:_,name:T,autoBullets:M=!1,rows:$=5,...F}=e,W=gr.useCallback(O=>{ze(_)||O.target.value===""&&_(`${Qg} `,T)},[_,T]),de=gr.useCallback(O=>{ze(_)||O.key===B2&&_(`${O.currentTarget.value}${Qg} `,T)},[_,T]);return h.jsx(Vf,{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:N,labelClassName:x,label:y,readOnly:b,required:m,variant:w,withAsterisk:S,input:h.jsx(_2,{...F,readOnly:b,disabled:o,className:g,onChange:_,name:T,onFocus:M?W:void 0,onKeyUp:M?de:void 0,rows:$})})}function jt(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:g,inputSectionClassName:y,label:x,readOnly:b,required:m,variant:w,withAsterisk:N,type:S="text",..._}=e;return h.jsx(Vf,{className:i,actions:n,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:y,label:x,required:m,readOnly:b,variant:w,withAsterisk:N,input:h.jsx(fv,{..._,required:m,readOnly:b,disabled:o,className:g,type:S})})}const H2="_dropdownContainer_1six7_3",V2="_dropdownMenu_1six7_15",q2="_dropdownContent_1six7_43",Ad={dropdownContainer:H2,dropdownMenu:V2,dropdownContent:q2},W2=[{to:"/upload",label:"Upload",Icon:C0},{to:"/explore",label:"Explore",Icon:Vb},{to:"/analytics",label:"Analytics",Icon:w0}];function G2(){const e=ua(),n=ks(),[i,o]=v.useState(!1),s=v.useRef(null);return v.useEffect(()=>{const u=d=>{s.current&&!s.current.contains(d.target)&&o(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]),h.jsx("nav",{className:"border-b border-gray-200 bg-white shadow-sm sticky top-0 z-50 backdrop-blur-sm bg-white/95",children:h.jsxs(Iu,{className:"border-b-2 border-ifrcRed",contentClassName:"grid grid-cols-3 items-center py-6",children:[h.jsxs("div",{className:"flex items-center gap-4 min-w-0 cursor-pointer group transition-all duration-200 hover:scale-105",onClick:()=>{if(!(e.pathname==="/upload"||e.pathname==="/")){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/")}},children:[h.jsx("div",{className:"p-2 rounded-lg bg-gradient-to-br from-ifrcRed/10 to-ifrcRed/20 group-hover:from-ifrcRed/20 group-hover:to-ifrcRed/30 transition-all duration-200",children:h.jsx(zb,{className:"h-8 w-8 flex-shrink-0 text-ifrcRed"})}),h.jsx("div",{className:"flex flex-col",children:h.jsx("span",{className:"font-bold text-xl text-gray-900 leading-tight",children:"PromptAid Vision"})})]}),h.jsx("div",{className:"flex justify-center",children:h.jsx("nav",{className:"flex items-center space-x-4 bg-gray-50/80 rounded-xl p-2 backdrop-blur-sm",children:W2.map(({to:u,label:d,Icon:f})=>{const g=e.pathname===u||u==="/upload"&&e.pathname==="/"||u==="/explore"&&e.pathname.startsWith("/map/"),y=e.pathname==="/upload"||e.pathname==="/",x=u==="/upload"||u==="/";return h.jsxs("div",{className:"relative",children:[h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsxs(Ue,{name:d.toLowerCase(),variant:g?"primary":"tertiary",size:1,className:`transition-all duration-200 ${g?"shadow-lg shadow-ifrcRed/20 transform scale-105":"hover:bg-white hover:shadow-md hover:scale-105"}`,onClick:()=>{if(!(y&&x)){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded(u);return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n(u)}},children:[h.jsx(f,{className:`w-4 h-4 transition-transform duration-200 ${g?"scale-110":"group-hover:scale-110"}`}),h.jsx("span",{className:"inline ml-2 font-semibold",children:d})]})}),g&&h.jsx("div",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-8 h-1 bg-ifrcRed rounded-full animate-pulse"})]},u)})})}),h.jsx("div",{className:"flex justify-end",children:h.jsxs("div",{className:Ad.dropdownContainer,ref:s,children:[h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsx(Ue,{name:"more-options",variant:i?"primary":"tertiary",size:1,className:"transition-all duration-200",onClick:()=>o(!i),children:h.jsx(Bb,{className:"w-4 h-4"})})}),i&&h.jsx("div",{className:Ad.dropdownMenu,children:h.jsxs("div",{className:Ad.dropdownContent,children:[h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsxs(Ue,{name:"help-support",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/help");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/help")},children:[h.jsx(Ub,{className:"w-4 h-4"}),h.jsx("span",{className:"ml-2 font-semibold",children:"Help & Support"})]})}),h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsxs(Ue,{name:"dev",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/admin");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/admin")},children:[h.jsx(qb,{className:"w-4 h-4"}),h.jsx("span",{className:"ml-2 font-semibold",children:"Dev"})]})})]})})]})})]})})}function Z2(){return h.jsxs(h.Fragment,{children:[h.jsx(G2,{}),h.jsx(gx,{})]})}const Q2="_uploadContainer_1i3bv_1",K2="_dropZone_1i3bv_9",Y2="_hasFile_1i3bv_30",X2="_dropZoneIcon_1i3bv_37",J2="_dropZoneText_1i3bv_43",eT="_dropZoneSubtext_1i3bv_49",tT="_filePreview_1i3bv_55",nT="_filePreviewImage_1i3bv_64",rT="_fileName_1i3bv_110",iT="_fileInfo_1i3bv_118",oT="_helpLink_1i3bv_125",aT="_loadingContainer_1i3bv_145",sT="_loadingText_1i3bv_153",lT="_generateButtonContainer_1i3bv_157",uT="_uploadedMapContainer_1i3bv_165",cT="_uploadedMapImage_1i3bv_169",dT="_formGrid_1i3bv_209",fT="_titleField_1i3bv_222",hT="_ratingDescription_1i3bv_230",pT="_ratingSlider_1i3bv_235",mT="_ratingLabel_1i3bv_242",gT="_ratingInput_1i3bv_251",vT="_ratingValue_1i3bv_256",yT="_submitSection_1i3bv_266",wT="_successContainer_1i3bv_275",xT="_successHeading_1i3bv_280",bT="_successText_1i3bv_285",CT="_successButton_1i3bv_291",ST="_viewFullSizeButton_1i3bv_297",_T="_fullSizeModalOverlay_1i3bv_306",ET="_lightModalOverlay_1i3bv_320",NT="_fullSizeModalContent_1i3bv_334",kT="_fullSizeModalHeader_1i3bv_345",jT="_fullSizeModalImage_1i3bv_361",TT="_confirmSection_1i3bv_398",PT="_step2Layout_1i3bv_407",LT="_topRow_1i3bv_413",MT="_ratingHidden_1i3bv_421",DT="_imageSection_1i3bv_425",OT="_ratingContent_1i3bv_435",IT="_mapColumn_1i3bv_453",RT="_contentColumn_1i3bv_458",AT="_step2bLayout_1i3bv_465",$T="_metadataSectionCard_1i3bv_562",FT="_droneMetadataSection_1i3bv_571",zT="_droneMetadataHeading_1i3bv_577",BT="_droneMetadataGrid_1i3bv_585",UT="_rtkFixContainer_1i3bv_591",HT="_rtkFixLabel_1i3bv_597",VT="_rtkFixCheckbox_1i3bv_606",qT="_confirmButtonContainer_1i3bv_621",WT="_ratingWarningContent_1i3bv_629",GT="_ratingWarningTitle_1i3bv_637",ZT="_ratingWarningText_1i3bv_644",QT="_ratingWarningButtons_1i3bv_651",KT="_fallbackReasonBox_1i3bv_659",YT="_fallbackReasonTitle_1i3bv_668",XT="_fallbackReasonText_1i3bv_675",JT="_preprocessingProgress_1i3bv_682",eP="_carouselContainer_1i3bv_735",tP="_carouselImageWrapper_1i3bv_740",nP="_carouselImage_1i3bv_740",rP="_carouselNavigation_1i3bv_763",iP="_carouselButton_1i3bv_775",oP="_carouselIndicators_1i3bv_799",aP="_carouselIndicator_1i3bv_799",sP="_carouselIndicatorActive_1i3bv_828",lP="_viewImageButtonContainer_1i3bv_864",q={uploadContainer:Q2,dropZone:K2,hasFile:Y2,dropZoneIcon:X2,dropZoneText:J2,dropZoneSubtext:eT,filePreview:tT,filePreviewImage:nT,fileName:rT,fileInfo:iT,helpLink:oT,loadingContainer:aT,loadingText:sT,generateButtonContainer:lT,uploadedMapContainer:uT,uploadedMapImage:cT,formGrid:dT,titleField:fT,ratingDescription:hT,ratingSlider:pT,ratingLabel:mT,ratingInput:gT,ratingValue:vT,submitSection:yT,successContainer:wT,successHeading:xT,successText:bT,successButton:CT,viewFullSizeButton:ST,fullSizeModalOverlay:_T,lightModalOverlay:ET,fullSizeModalContent:NT,fullSizeModalHeader:kT,fullSizeModalImage:jT,confirmSection:TT,step2Layout:PT,topRow:LT,ratingHidden:MT,imageSection:DT,ratingContent:OT,mapColumn:IT,contentColumn:RT,step2bLayout:AT,metadataSectionCard:$T,droneMetadataSection:FT,droneMetadataHeading:zT,droneMetadataGrid:BT,rtkFixContainer:UT,rtkFixLabel:HT,rtkFixCheckbox:VT,confirmButtonContainer:qT,ratingWarningContent:WT,ratingWarningTitle:GT,ratingWarningText:ZT,ratingWarningButtons:QT,fallbackReasonBox:KT,fallbackReasonTitle:YT,fallbackReasonText:XT,preprocessingProgress:JT,carouselContainer:eP,carouselImageWrapper:tP,carouselImage:nP,carouselNavigation:rP,carouselButton:iP,carouselIndicators:oP,carouselIndicator:aP,carouselIndicatorActive:sP,viewImageButtonContainer:lP},Sy=v.createContext(void 0),uP=({children:e})=>{const[n,i]=v.useState(""),[o,s]=v.useState(""),[u,d]=v.useState(""),[f,g]=v.useState(""),[y,x]=v.useState(""),[b,m]=v.useState(""),[w,N]=v.useState(""),[S,_]=v.useState(""),[T,M]=v.useState(!1),F={search:n,srcFilter:o,catFilter:u,regionFilter:f,countryFilter:y,imageTypeFilter:b,uploadTypeFilter:w,generatedMethodFilter:S,showReferenceExamples:T,setSearch:i,setSrcFilter:s,setCatFilter:d,setRegionFilter:g,setCountryFilter:x,setImageTypeFilter:m,setUploadTypeFilter:N,setGeneratedMethodFilter:_,setShowReferenceExamples:M,clearAllFilters:()=>{i(""),s(""),d(""),g(""),x(""),m(""),N(""),_(""),M(!1)}};return h.jsx(Sy.Provider,{value:F,children:e})},cP=()=>{const e=v.useContext(Sy);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},dP="_switchLabel_t5cwd_1",fP="_disabled_t5cwd_17",hP="_switchText_t5cwd_27",pP="_switchContainer_t5cwd_41",mP="_switchInput_t5cwd_55",gP="_slider_t5cwd_69",oo={switchLabel:dP,disabled:fP,switchText:hP,switchContainer:pP,switchInput:mP,slider:gP};function ls({label:e,checked:n,onChange:i,disabled:o=!1,name:s}){return h.jsxs("label",{className:`${oo.switchLabel} ${o?oo.disabled:""}`,children:[e&&h.jsx("span",{className:oo.switchText,children:e}),h.jsxs("div",{className:oo.switchContainer,children:[h.jsx("input",{type:"checkbox",name:s,checked:n,onChange:u=>i(u.target.checked),disabled:o,className:oo.switchInput}),h.jsx("span",{className:`${oo.slider} ${n?oo.checked:""}`})]})]})}function Kg({files:e,file:n,preview:i,imageType:o,isManualMode:s,onFileChange:u,onRemoveImage:d,onAddImage:f,onImageTypeChange:g,onManualModeChange:y,onChangeFile:x}){const b=m=>{m.preventDefault();const w=m.dataTransfer.files?.[0];w&&u(w)};return h.jsxs("div",{className:"space-y-6",children:[h.jsx("p",{className:"text-gray-700 leading-relaxed max-w-2xl mx-auto",children:"This app evaluates how well multimodal AI models analyze and describe crisis maps and drone imagery. Upload an image and the AI will generate a description. Then you can review and rate the result based on your expertise."}),h.jsx("div",{className:q.helpLink,children:h.jsxs(Fx,{to:"/help",className:q.helpLink,children:["More ",h.jsx(Lb,{className:"w-3 h-3"})]})}),h.jsxs("div",{className:"flex justify-center items-center gap-6 flex-wrap",children:[h.jsx(on,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:h.jsx(ls,{name:"vlm-generation",checked:!s,onChange:m=>y(!m),label:"VLM:"})}),h.jsx(on,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:h.jsx("div",{className:"flex justify-center",children:h.jsx(su,{name:"image-type",value:o,onChange:m=>g(m),options:[{key:"crisis_map",label:"Crisis Maps"},{key:"drone_image",label:"Drone Imagery"}],keySelector:m=>m.key,labelSelector:m=>m.label})})}),h.jsx(on,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",style:{width:"80px",visibility:"hidden"},children:h.jsx("div",{style:{width:"80px"}})})]}),h.jsxs("div",{className:`${q.dropZone} ${n?q.hasFile:""}`,onDragOver:m=>m.preventDefault(),onDrop:b,children:[e.length>1?h.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-4",children:e.map((m,w)=>h.jsxs("div",{className:"relative",children:[h.jsx("img",{src:URL.createObjectURL(m),alt:`Image ${w+1}`,className:"w-full h-32 object-cover rounded"}),h.jsx(kf,{name:"remove-image",variant:"tertiary",onClick:()=>d(w),title:"Remove image",ariaLabel:"Remove image",className:"absolute top-2 right-2 bg-white/90 hover:bg-white shadow-md hover:shadow-lg border border-gray-200 hover:border-red-300 transition-all duration-200 backdrop-blur-sm",children:h.jsx(_f,{className:"w-4 h-4"})}),h.jsx("div",{className:"text-xs text-center mt-1",children:m.name})]},w))}):n&&i?h.jsxs("div",{className:q.filePreview,children:[h.jsx("div",{className:q.filePreviewImage,children:h.jsx("img",{src:i,alt:"File preview"})}),h.jsx("p",{className:q.fileName,children:n.name}),h.jsxs("p",{className:q.fileInfo,children:[(n.size/1024/1024).toFixed(2)," MB"]})]}):h.jsxs(h.Fragment,{children:[h.jsx(C0,{className:q.dropZoneIcon}),h.jsx("p",{className:q.dropZoneText,children:"Drag & Drop any file here"}),h.jsx("p",{className:q.dropZoneSubtext,children:"or"})]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("label",{className:"inline-block cursor-pointer",children:[h.jsx("input",{type:"file",className:"sr-only",accept:".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",onChange:m=>{n&&x?x(m.target.files?.[0]):u(m.target.files?.[0])}}),h.jsx(Ue,{name:"upload",variant:"secondary",size:1,onClick:()=>document.querySelector('input[type="file"]')?.click(),children:n?"Change Image":"Browse Files"})]}),n&&e.length<5&&h.jsx(Ue,{name:"add-image",variant:"secondary",size:1,onClick:f,children:"Add Image"})]})]})]})}function Yg({files:e,imageUrl:n,preview:i,onViewFullSize:o,currentImageIndex:s=0,onGoToPrevious:u,onGoToNext:d,onGoToImage:f,showCarousel:g=!1}){return g&&e.length>1?h.jsx(on,{heading:"Uploaded Images",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.carouselContainer,children:[h.jsx("div",{className:q.carouselImageWrapper,children:e[s]?h.jsx("img",{src:URL.createObjectURL(e[s]),alt:`Image ${s+1}`,className:q.carouselImage}):h.jsx("div",{className:q.imagePlaceholder,children:"No image available"})}),h.jsxs("div",{className:q.carouselNavigation,children:[h.jsx(Ue,{name:"previous-image",variant:"tertiary",size:1,onClick:u,className:q.carouselButton,children:h.jsx(Ab,{className:"w-4 h-4"})}),h.jsx("div",{className:q.carouselIndicators,children:e.map((y,x)=>h.jsx("button",{onClick:()=>f?.(x),className:`${q.carouselIndicator} ${x===s?q.carouselIndicatorActive:""}`,children:x+1},x))}),h.jsx(Ue,{name:"next-image",variant:"tertiary",size:1,onClick:d,className:q.carouselButton,children:h.jsx($b,{className:"w-4 h-4"})})]}),h.jsx("div",{className:q.viewImageButtonContainer,children:h.jsx(Ue,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>o({file:e[s],index:s}),disabled:!e[s],children:"View Image"})})]})}):e.length>1?h.jsx("div",{className:"space-y-6",children:e.map((y,x)=>h.jsx(on,{heading:`Image ${x+1}: ${y.name}`,headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.uploadedMapContainer,children:[h.jsx("div",{className:q.uploadedMapImage,children:h.jsx("img",{src:URL.createObjectURL(y),alt:`Image ${x+1}`})}),h.jsx("div",{className:q.viewFullSizeButton,children:h.jsx(Ue,{name:`view-full-size-${x}`,variant:"secondary",size:1,onClick:()=>o({file:y,index:x}),children:"View Image"})})]})},x))}):h.jsx(on,{heading:"Uploaded Image",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.uploadedMapContainer,children:[h.jsx("div",{className:q.uploadedMapImage,children:h.jsx("img",{src:n||i||void 0,alt:"Uploaded image preview"})}),h.jsx("div",{className:q.viewFullSizeButton,children:h.jsx(Ue,{name:"view-full-size",variant:"secondary",size:1,onClick:()=>o(),children:"View Image"})})]})})}function vP({files:e,imageType:n,title:i,source:o,eventType:s,epsg:u,countries:d,centerLon:f,centerLat:g,amslM:y,aglM:x,headingDeg:b,yawDeg:m,pitchDeg:w,rollDeg:N,rtkFix:S,stdHM:_,stdVM:T,metadataArray:M,sources:$,types:F,spatialReferences:W,imageTypes:de,countriesOptions:O,onTitleChange:K,onSourceChange:ce,onEventTypeChange:he,onEpsgChange:R,onCountriesChange:H,onCenterLonChange:G,onCenterLatChange:ee,onAmslMChange:pe,onAglMChange:Ce,onHeadingDegChange:_e,onYawDegChange:Z,onPitchDegChange:le,onRollDegChange:j,onRtkFixChange:V,onStdHMChange:oe,onStdVMChange:Se,onImageTypeChange:se,updateMetadataForImage:re}){return e.length>1?h.jsxs("div",{children:[h.jsx("div",{className:"mb-4",children:h.jsx(jt,{label:"Shared Title",name:"title",value:i,onChange:K,placeholder:"Enter a title for all images..."})}),e.map((te,Q)=>h.jsx("div",{className:"mb-6",children:h.jsx(on,{heading:`Image ${Q+1}: ${te.name}`,headingLevel:4,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.formGrid,children:[n!=="drone_image"&&h.jsx(io,{label:"Source",name:`source_${Q}`,value:M[Q]?.source||"",onChange:Y=>re(Q,"source",Y),options:$,keySelector:Y=>Y.s_code,labelSelector:Y=>Y.label,placeholder:"Please select"}),h.jsx(io,{label:"Event Type",name:`event_type_${Q}`,value:M[Q]?.eventType||"",onChange:Y=>re(Q,"eventType",Y),options:F,keySelector:Y=>Y.t_code,labelSelector:Y=>Y.label,placeholder:"Please select"}),h.jsx(io,{label:"EPSG",name:`epsg_${Q}`,value:M[Q]?.epsg||"",onChange:Y=>re(Q,"epsg",Y),options:W,keySelector:Y=>Y.epsg,labelSelector:Y=>`${Y.srid} (EPSG:${Y.epsg})`,placeholder:"Please select"}),h.jsx(qg,{label:"Countries (optional)",name:`countries_${Q}`,value:M[Q]?.countries||[],onChange:Y=>re(Q,"countries",Y),options:O,keySelector:Y=>Y.c_code,labelSelector:Y=>Y.label,placeholder:"Select one or more"}),n==="drone_image"&&h.jsx(h.Fragment,{children:h.jsxs("div",{className:q.droneMetadataSection,children:[h.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),h.jsxs("div",{className:q.droneMetadataGrid,children:[h.jsx(jt,{label:"Center Longitude",name:`center_lon_${Q}`,value:M[Q]?.centerLon||"",onChange:Y=>re(Q,"centerLon",Y),placeholder:"e.g., -122.4194",step:"any"}),h.jsx(jt,{label:"Center Latitude",name:`center_lat_${Q}`,value:M[Q]?.centerLat||"",onChange:Y=>re(Q,"centerLat",Y),placeholder:"e.g., 37.7749",step:"any"}),h.jsx(jt,{label:"Altitude AMSL (m)",name:`amsl_m_${Q}`,value:M[Q]?.amslM||"",onChange:Y=>re(Q,"amslM",Y),placeholder:"e.g., 100.5",step:"any"}),h.jsx(jt,{label:"Altitude AGL (m)",name:`agl_m_${Q}`,value:M[Q]?.aglM||"",onChange:Y=>re(Q,"aglM",Y),placeholder:"e.g., 50.2",step:"any"}),h.jsx(jt,{label:"Heading (degrees)",name:`heading_deg_${Q}`,value:M[Q]?.headingDeg||"",onChange:Y=>re(Q,"headingDeg",Y),placeholder:"e.g., 180.0",step:"any"}),h.jsx(jt,{label:"Yaw (degrees)",name:`yaw_deg_${Q}`,value:M[Q]?.yawDeg||"",onChange:Y=>re(Q,"yawDeg",Y),placeholder:"e.g., 90.0",step:"any"}),h.jsx(jt,{label:"Pitch (degrees)",name:`pitch_deg_${Q}`,value:M[Q]?.pitchDeg||"",onChange:Y=>re(Q,"pitchDeg",Y),placeholder:"e.g., 0.0",step:"any"}),h.jsx(jt,{label:"Roll (degrees)",name:`roll_deg_${Q}`,value:M[Q]?.rollDeg||"",onChange:Y=>re(Q,"rollDeg",Y),placeholder:"e.g., 0.0",step:"any"}),h.jsx("div",{className:q.rtkFixContainer,children:h.jsxs("label",{className:q.rtkFixLabel,children:[h.jsx("input",{type:"checkbox",checked:M[Q]?.rtkFix||!1,onChange:Y=>re(Q,"rtkFix",Y.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),h.jsx(jt,{label:"Horizontal Std Dev (m)",name:`std_h_m_${Q}`,value:M[Q]?.stdHM||"",onChange:Y=>re(Q,"stdHM",Y),placeholder:"e.g., 0.1",step:"any"}),h.jsx(jt,{label:"Vertical Std Dev (m)",name:`std_v_m_${Q}`,value:M[Q]?.stdVM||"",onChange:Y=>re(Q,"stdVM",Y),placeholder:"e.g., 0.2",step:"any"})]})]})})]})})},Q))]}):h.jsxs("div",{className:q.formGrid,children:[h.jsx("div",{className:q.titleField,children:h.jsx(jt,{label:"Title",name:"title",value:i,onChange:K,placeholder:"Enter a title for this map..."})}),n!=="drone_image"&&h.jsx(io,{label:"Source",name:"source",value:o,onChange:ce,options:$,keySelector:te=>te.s_code,labelSelector:te=>te.label,placeholder:"Please select"}),h.jsx(io,{label:"Event Type",name:"event_type",value:s,onChange:he,options:F,keySelector:te=>te.t_code,labelSelector:te=>te.label,placeholder:"Please select"}),h.jsx(io,{label:"EPSG",name:"epsg",value:u,onChange:R,options:W,keySelector:te=>te.epsg,labelSelector:te=>`${te.srid} (EPSG:${te.epsg})`,placeholder:"Please select"}),h.jsx(io,{label:"Image Type",name:"image_type",value:n,onChange:se,options:de,keySelector:te=>te.image_type,labelSelector:te=>te.label}),h.jsx(qg,{label:"Countries (optional)",name:"countries",value:d,onChange:H,options:O,keySelector:te=>te.c_code,labelSelector:te=>te.label,placeholder:"Select one or more"}),n==="drone_image"&&h.jsx(h.Fragment,{children:h.jsxs("div",{className:q.droneMetadataSection,children:[h.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),h.jsxs("div",{className:q.droneMetadataGrid,children:[h.jsx(jt,{label:"Center Longitude",name:"center_lon",value:f,onChange:G,placeholder:"e.g., -122.4194",step:"any"}),h.jsx(jt,{label:"Center Latitude",name:"center_lat",value:g,onChange:ee,placeholder:"e.g., 37.7749",step:"any"}),h.jsx(jt,{label:"Altitude AMSL (m)",name:"amsl_m",value:y,onChange:pe,placeholder:"e.g., 100.5",step:"any"}),h.jsx(jt,{label:"Altitude AGL (m)",name:"agl_m",value:x,onChange:Ce,placeholder:"e.g., 50.2",step:"any"}),h.jsx(jt,{label:"Heading (degrees)",name:"heading_deg",value:b,onChange:_e,placeholder:"e.g., 180.0",step:"any"}),h.jsx(jt,{label:"Yaw (degrees)",name:"yaw_deg",value:m,onChange:Z,placeholder:"e.g., 90.0",step:"any"}),h.jsx(jt,{label:"Pitch (degrees)",name:"pitch_deg",value:w,onChange:le,placeholder:"e.g., 0.0",step:"any"}),h.jsx(jt,{label:"Roll (degrees)",name:"roll_deg",value:N,onChange:j,placeholder:"e.g., 0.0",step:"any"}),h.jsx("div",{className:q.rtkFixContainer,children:h.jsxs("label",{className:q.rtkFixLabel,children:[h.jsx("input",{type:"checkbox",checked:S,onChange:te=>V(te.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),h.jsx(jt,{label:"Horizontal Std Dev (m)",name:"std_h_m",value:_,onChange:oe,placeholder:"e.g., 0.1",step:"any"}),h.jsx(jt,{label:"Vertical Std Dev (m)",name:"std_v_m",value:T,onChange:Se,placeholder:"e.g., 0.2",step:"any"})]})]})})]})}function yP({isPerformanceConfirmed:e,scores:n,onScoreChange:i,onConfirmRatings:o}){return e?null:h.jsx(on,{heading:"AI Performance Rating",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.ratingContent,children:[h.jsx("p",{className:q.ratingDescription,children:"How well did the AI perform on the task?"}),["accuracy","context","usability"].map(s=>h.jsxs("div",{className:q.ratingSlider,children:[h.jsx("label",{className:q.ratingLabel,children:s}),h.jsx("input",{type:"range",min:0,max:100,value:n[s],onChange:u=>i(s,Number(u.target.value)),className:q.ratingInput}),h.jsx("span",{className:q.ratingValue,children:n[s]})]},s)),h.jsx("div",{className:q.confirmButtonContainer,children:h.jsx(Ue,{name:"confirm-ratings",variant:"secondary",onClick:o,children:"Confirm Ratings"})})]})})}function wP({description:e,analysis:n,recommendedActions:i,isManualMode:o=!1,onDescriptionChange:s,onAnalysisChange:u,onRecommendedActionsChange:d,onBack:f,onDelete:g,onSubmit:y,onEditRatings:x,isPerformanceConfirmed:b=!1,isSubmitting:m=!1}){const[w,N]=v.useState("");v.useEffect(()=>{if(o){const _=`Description: +https://www.w3ctech.com/topic/2226`));let d=n(...u);return d.postcssPlugin=e,d.postcssVersion=new lh().version,d}let s;return Object.defineProperty(o,"postcss",{get(){return s||(s=o()),s}}),o.process=function(u,d,f){return it([o(f)]).process(u,d)},o};it.stringify=qj;it.parse=Hj;it.fromJSON=$j;it.list=Bj;it.comment=e=>new gy(e);it.atRule=e=>new my(e);it.decl=e=>new vy(e);it.rule=e=>new xy(e);it.root=e=>new wy(e);it.document=e=>new yy(e);it.CssSyntaxError=Aj;it.Declaration=vy;it.Container=Rj;it.Processor=lh;it.Document=yy;it.Comment=gy;it.Warning=Wj;it.AtRule=my;it.Result=Vj;it.Input=Fj;it.Rule=xy;it.Root=wy;it.Node=Uj;zj.registerPostcss(it);var Gj=it;it.default=it;const{isPlainObject:EL}=Xf,{parse:NL}=Gj,Zj="_list_1whuj_1",Qj="_compact_1whuj_5",Kj="_pending_1whuj_8",Id={list:Zj,compact:Qj,pending:Kj};function Yj(e){const{className:n,data:i,keySelector:o,renderer:s,rendererParams:u,pending:d,errored:f,filtered:g,errorMessage:y,emptyMessage:x,pendingMessage:b,filteredEmptyMessage:m,compact:w,withoutMessage:N=!1,messageClassName:S}=e,_=Fe(i)||i.length===0;return h.jsxs("div",{className:Le(Id.list,w&&Id.compact,d&&Id.pending,n),children:[h.jsx(k0,{data:i,keySelector:o,renderer:s,rendererParams:u}),!N&&h.jsx(_0,{className:S,pending:d,filtered:g,empty:_,errored:f,compact:w,emptyMessage:x,filteredEmptyMessage:m,pendingMessage:b,errorMessage:y,overlayPending:!0})]})}function by(e,n){if(Fe(e))return;const i={},o=[];return e.forEach(s=>{const u=n?n(s):JSON.stringify(s);i[u]||(i[u]=!0,o.push(s))}),e.length===o.length?e:o}const Xj=[40,38,13,8];function Jj(e,n,i){return n.findIndex((o,s)=>i(o,s)===e)}function Vg(e,n,i,o){if(i.length<=0)return;let s=Jj(e,i,o);s===-1&&(s=n>0?-1:0);const u=tb(s+n,i.length);return o(i[u],u)}function eT(e,n,i,o,s,u,d,f,g){return v.useCallback(y=>{const{keyCode:x}=y,b=e?.key;if(o&&(x===9||x===27))u();else if(!o&&Xj.includes(x))y.stopPropagation(),y.preventDefault(),d();else if(x===13)if(Dt(b)){y.stopPropagation(),y.preventDefault();const m=i.find((w,N)=>n(w,N)===b);m&&f(b,m)}else y.stopPropagation(),y.preventDefault(),g&&g();else if(x===40){y.stopPropagation(),y.preventDefault();const m=Vg(b,1,i,n);s(m?{key:m}:void 0)}else if(x===38){y.stopPropagation(),y.preventDefault();const m=Vg(b,-1,i,n);s(m?{key:m}:void 0)}},[e,o,n,s,u,f,d,g,i])}const tT="_generic-option_zv1n8_1",nT={genericOption:tT};function rT(e){const{optionContainerClassName:n,contentRenderer:i,contentRendererParam:o,option:s,onClick:u,optionKey:d,focusedKey:f}=e,g=o(d,s),{containerClassName:y,title:x,...b}=g,m=f?.key===d,w=v.useRef(null);v.useEffect(()=>{f&&f.key===d&&!f.mouse&&w.current&&w.current.scrollIntoView({behavior:"smooth",block:"center"})},[d,f]);const N=v.useCallback(()=>{u(d,s)},[d,s,u]);return h.jsx(Cf,{elementRef:w,className:Le(nT.genericOption,n,y),onClick:N,title:x,name:d,focused:m,children:i(b)})}const iT="common",oT={infoMessageAnd:"and",infoMessageMore:"more",buttonTitleSelect:"Select all",buttonTitleClear:"Clear",buttonTitleClose:"Close",buttonTitleOpen:"Open",selectInputPendingMessage:"Fetching options...",selectInputEmptyMessage:"No option available",selectInputFilteredMessage:"No option available for the search",selectInputErrorMessage:"Could not load options"},aT={namespace:iT,strings:oT},sT="_popup_poyjv_1",lT="_list_poyjv_4",uT="_list-item_poyjv_9",cT="_info-message_poyjv_14",dT="_icon_poyjv_21",Ti={popup:sT,list:lT,listItem:uT,infoMessage:cT,icon:dT},fT=[];function Cy(e){const{actions:n,actionsContainerClassName:i,className:o,disabled:s,error:u,errorContainerClassName:d,hint:f,hintContainerClassName:g,icons:y,iconsContainerClassName:x,inputSectionClassName:b,label:m,labelClassName:w,name:N,onOptionClick:S,searchText:_,onSearchTextChange:T,optionContainerClassName:M,optionKeySelector:$,optionRenderer:F,optionRendererParams:W,options:fe,optionsPopupClassName:O,persistentOptionPopup:K,readOnly:de,placeholder:pe,valueDisplay:R="",nonClearable:H,onClearButtonClick:G,onSelectAllButtonClick:ee,optionsPending:me=!1,optionsFiltered:Ce=!1,optionsErrored:Ee=!1,focused:Z,focusedKey:ue,onFocusedKeyChange:j,onFocusedChange:V,dropdownShown:ae,onDropdownShownChange:Se,totalOptionsCount:le=0,hasValue:re,autoFocus:te,onEnterWithoutOption:Q,withAsterisk:Y,required:Je,variant:an,errorOnTooltip:Ut,dropdownHidden:ot}=e,vt=fe??fT,lt=S0(aT),pt=v.useRef(null),ct=v.useRef(null),dt=v.useRef(null),yt=v.useRef(null),Ot=v.useCallback(wt=>{ae||Se(!0),T(wt)},[ae,Se,T]),sn=v.useCallback((wt,ln)=>{ln.stopPropagation(),Se(!ae)},[ae,Se]),pn=v.useCallback(()=>{ae||Se(!0)},[ae,Se]),Ln=v.useCallback(()=>{Se(!1)},[Se]),ai=v.useCallback(()=>{de||pn()},[de,pn]),mn=v.useCallback((wt,ln)=>{wt||ln?K&&dt.current&&dt.current.focus():Ln()},[Ln,K]),gn=v.useCallback((wt,ln)=>{S(wt,ln,N),K||Ln()},[S,Ln,K,N]),Rr=v.useCallback((wt,ln)=>({contentRendererParam:W,option:ln,optionKey:wt,focusedKey:ue,contentRenderer:F,onClick:gn,onFocus:j,optionContainerClassName:Le(M,Ti.listItem)}),[ue,gn,j,M,F,W]);eN(ae,mn,yt,pt);const Yn=eT(ue,$,vt,ae,j,Ln,pn,gn,Q),Ht=vt.length,Yt=le-Ht>0?`${lt.infoMessageAnd} ${le-Ht} ${lt.infoMessageMore}`:void 0,Ct=ae&&!ot;return h.jsxs(h.Fragment,{children:[h.jsx(Vf,{actionsContainerClassName:i,className:o,containerRef:pt,disabled:s,errorContainerClassName:d,error:u,errorOnTooltip:Ut,hintContainerClassName:g,hint:f,iconsContainerClassName:x,icons:y,inputSectionClassName:b,inputSectionRef:ct,labelClassName:w,label:m,readOnly:de,required:Je,variant:an,withAsterisk:Y,actions:h.jsxs(h.Fragment,{children:[n,!de&&ee&&h.jsx(Be,{onClick:ee,disabled:s,variant:"tertiary",name:void 0,title:lt.buttonTitleSelect,children:h.jsx(Db,{className:Ti.icon})}),!de&&!H&&re&&h.jsx(Be,{onClick:G,disabled:s,variant:"tertiary",name:void 0,title:lt.buttonTitleClear,children:h.jsx(Fb,{className:Ti.icon})}),!de&&h.jsx(Be,{onClick:sn,variant:"tertiary",name:void 0,title:Ct?lt.buttonTitleClose:lt.buttonTitleOpen,children:Ct?h.jsx(Mb,{className:Ti.icon}):h.jsx(Pb,{className:Ti.icon})})]}),input:h.jsx(fv,{name:N,elementRef:dt,readOnly:de,disabled:s,value:ae||Z?_:R,onChange:Ot,onClick:ai,onFocus:()=>V(!0),onBlur:()=>V(!1),placeholder:js(R)?R:pe,autoComplete:"off",onKeyDown:Yn,autoFocus:te})}),Ct&&h.jsxs(E0,{elementRef:yt,parentRef:ct,className:Le(O,Ti.popup),children:[h.jsx(Yj,{className:Ti.list,data:vt,keySelector:$,renderer:rT,rendererParams:Rr,errored:Ee,filtered:Ce,pending:me,pendingMessage:lt.selectInputPendingMessage,emptyMessage:lt.selectInputEmptyMessage,filteredEmptyMessage:lt.selectInputFilteredMessage,errorMessage:lt.selectInputErrorMessage,compact:!0}),!me&&!Ee&&!!Yt&&h.jsx("div",{className:Ti.infoMessage,children:Yt})]})]})}function hT(e){const{children:n,isActive:i,iconClassName:o,labelClassName:s}=e;return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:o,children:i?h.jsx(b0,{}):h.jsx(x0,{})}),h.jsx("div",{className:s,children:n})]})}const pT="_option_1kpl9_1",mT="_active_1kpl9_7",gT="_icon_1kpl9_11",vT="_label_1kpl9_17",os={option:pT,active:mT,icon:gT,label:vT},Rd=[];function yT(e){const{keySelector:n,labelSelector:i,name:o,onChange:s,onOptionsChange:u,options:d,optionsPending:f,optionsErrored:g,value:y,sortFunction:x,searchOptions:b,onSearchValueChange:m,onShowDropdownChange:w,hideOptionFilter:N,selectedOnTop:S,..._}=e,T=d??Rd,M=b??Rd,$=y??Rd,[F,W]=v.useState(),[fe,O]=v.useState(!1),[K,de]=v.useState(!1),[pe,R]=v.useState(),[H,G]=v.useState({}),ee=v.useMemo(()=>cs(T,n,le=>le),[T,n]),me=v.useMemo(()=>cs(T,n,i),[T,n,i]),Ce=v.useMemo(()=>$.map(le=>me[le]??"?").join(", "),[$,me]),Ee=v.useMemo(()=>$.map(le=>ee[le]).filter(Dt),[$,ee]),Z=v.useMemo(()=>{const le=by([...M,...Ee],n);if(!S)return x?x(le,F,i):le;const re=le.filter(Q=>H[n(Q)]),te=le.filter(Q=>!H[n(Q)]&&(Fe(N)||N(Q)));return x?[...ho(re,F,i),...x(te,F,i)]:[...ho(re,F,i),...te]},[S,n,i,F,M,H,Ee,x,N]),ue=v.useCallback(le=>{W(le),m&&m(le)},[m]),j=v.useCallback(le=>{O(le),w&&w(le),le?(G(cs($,re=>re,()=>!0)),R(void 0)):(G({}),R(void 0),W(void 0),m&&m(void 0))},[$,m,w]),V=v.useCallback((le,re)=>{const te=$.findIndex(Q=>Q===le)!==-1;return{children:i(re),containerClassName:Le(os.option,te&&os.active),title:i(re),isActive:te,labelClassName:os.label,iconClassName:os.icon}},[i,$]),ae=v.useCallback((le,re)=>{const te=[...$],Q=$.findIndex(Y=>Y===le);Q!==-1?te.splice(Q,1):(te.push(le),u&&u(Y=>{const Je=Y??[];return Je.find(an=>n(an)===le)?Y:[...Je,re]})),s(te,o)},[$,s,o,u,n]),Se=v.useCallback(()=>{s([],o)},[o,s]);return h.jsx(Cy,{..._,name:o,options:Z,optionsPending:f,optionsFiltered:js(F)&&F.length>0,optionsErrored:g,optionKeySelector:n,optionRenderer:hT,optionRendererParams:V,optionContainerClassName:os.optionContainer,onOptionClick:ae,valueDisplay:Ce,onClearButtonClick:Se,searchText:F,onSearchTextChange:ue,dropdownShown:fe,onDropdownShownChange:j,focused:K,onFocusedChange:de,focusedKey:pe,onFocusedKeyChange:R,persistentOptionPopup:!0,nonClearable:!1,hasValue:Dt($)&&$.length>0})}function qg(e){const{name:n,options:i,keySelector:o,onChange:s,withSelectAll:u,...d}=e,f=v.useCallback(()=>{if(Fe(i))return;const g=i.map(o);s(g,n)},[i,n,s,o]);return h.jsx(yT,{...d,name:n,onChange:s,options:i,keySelector:o,sortFunction:ho,searchOptions:i,onSelectAllButtonClick:u?f:void 0,selectedOnTop:!1})}const wT="_page-container_1cfro_1",xT="_content_1cfro_2",Wg={pageContainer:wT,content:xT};function Iu(e){const{className:n,contentClassName:i,children:o,contentAs:s="div",containerAs:u="div"}=e,d=s;return h.jsx(u,{className:Le(Wg.pageContainer,n),children:h.jsx(d,{className:Le(Wg.content,i),children:o})})}const bT="_raw-input_145mq_1",CT={rawInput:bT};function ST(e){const{className:n,onChange:i,elementRef:o,value:s,name:u,...d}=e,f=gr.useCallback(g=>{var y;const x=(y=g?.target)==null?void 0:y.value;i&&i(x===""?void 0:x,u,g)},[u,i]);return h.jsx("textarea",{...d,ref:o,className:Le(CT.rawInput,n),name:Dt(u)?String(u):void 0,onChange:f,value:s??""})}const _T="_option_11p37_1",ET="_icon_11p37_6",NT="_label_11p37_14",kT="_overflow-container_11p37_20",jT="_description_11p37_25",Ko={option:_T,icon:ET,label:NT,overflowContainer:kT,description:jT};function TT(e){const{className:n,label:i,description:o,iconClassName:s,labelClassName:u}=e;return h.jsxs("div",{className:Le(Ko.option,n),children:[h.jsx("div",{className:Le(Ko.icon,s),children:h.jsx(Ob,{})}),h.jsxs("div",{className:Le(Ko.label,u),children:[h.jsx("div",{className:Ko.overflowContainer,children:i}),h.jsx("div",{className:Le(Ko.overflowContainer,Ko.description),children:o})]})]})}const PT="_option-container_2k92q_1",LT="_option_2k92q_1",MT="_active_2k92q_9",DT="_icon_2k92q_12",as={optionContainer:PT,option:LT,active:MT,icon:DT},Gg=[];function Zg(e){const{keySelector:n,labelSelector:i,descriptionSelector:o,name:s,onChange:u,onOptionsChange:d,options:f,optionsPending:g,optionsErrored:y,value:x,sortFunction:b,searchOptions:m,onSearchValueChange:w,onShowDropdownChange:N,hideOptionFilter:S,selectedOnTop:_,onEnterWithoutOption:T,...M}=e,$=f??Gg,F=m??Gg,[W,fe]=v.useState(),[O,K]=v.useState(!1),[de,pe]=v.useState(!1),[R,H]=v.useState(),[G,ee]=v.useState({}),me=v.useMemo(()=>cs($,n,i),[$,n,i]),Ce=Dt(x)?me[x]??"?":"",Ee=v.useMemo(()=>{const re=$?.find(te=>n(te)===x);return Fe(re)?[]:[re]},[x,$,n]),Z=v.useMemo(()=>{const re=by([...F,...Ee],n);if(!_)return b?b(re,W,i):re;const te=re.filter(Y=>G[n(Y)]),Q=re.filter(Y=>!G[n(Y)]&&(Fe(S)||S(Y)));return b?[...ho(te,W,i),...b(Q,W,i)]:[...ho(te,W,i),...Q]},[_,n,i,W,F,G,Ee,b,S]),ue=v.useCallback(re=>{fe(re),w&&w(re)},[w]),j=v.useCallback(()=>{K(!1),N&&N(!1),fe(void 0),w&&w(void 0),T&&T(W)},[W,N,T,w]),V=v.useCallback(re=>{K(re),N&&N(re),re?(ee(cs(x?[x]:[],te=>te,()=>!0)),H(x?{key:x}:void 0)):(ee({}),H(void 0),fe(void 0),w&&w(void 0))},[x,w,N]),ae=v.useCallback((re,te)=>{const Q=re===x;return{label:i(te),description:o?o(te):void 0,containerClassName:Le(as.optionContainer,Q&&as.active),title:i(te),className:as.option,iconClassName:as.icon}},[x,i,o]),Se=v.useCallback((re,te)=>{d&&d(Q=>{const Y=Q??[];return Y.find(Je=>n(Je)===re)?Q:[...Y,te]}),u(re,s,te)},[u,s,d,n]),le=v.useCallback(()=>{if(!e.nonClearable){const re=e.onChange;re(void 0,s,void 0)}},[s,e.onChange,e.nonClearable]);return h.jsx(Cy,{...M,name:s,options:Z,optionsPending:g,optionsErrored:y,optionsFiltered:js(W)&&W.length>0,optionKeySelector:n,optionRenderer:TT,optionRendererParams:ae,optionContainerClassName:as.optionContainer,onOptionClick:Se,valueDisplay:Ce,onClearButtonClick:le,searchText:W,onSearchTextChange:ue,dropdownShown:O,onDropdownShownChange:V,focused:de,onFocusedChange:pe,focusedKey:R,onFocusedKeyChange:H,hasValue:Dt(x),persistentOptionPopup:!1,onEnterWithoutOption:j})}const OT="_segment-input_bykt7_1",IT="_segment-list_bykt7_4",RT="_segment_bykt7_1",AT="_active_bykt7_18",$T="_secondary-variant_bykt7_24",fs={segmentInput:OT,segmentList:IT,segment:RT,active:AT,secondaryVariant:$T};function FT(e){const{label:n,name:i,onClick:o,value:s,className:u,variant:d="primary",inputName:f,...g}=e;return h.jsx(Be,{...g,className:Le(fs.segment,s&&fs.active,d==="secondary"&&fs.secondaryVariant,u),name:i,onClick:o,variant:"tertiary",children:n})}function su(e){const{rendererParams:n,listContainerClassName:i,keySelector:o,labelSelector:s,className:u,...d}=e;return h.jsx(ES,{className:Le(u,fs.segmentInput),...d,renderer:FT,rendererParams:n,listContainerClassName:Le(i,fs.segmentList),keySelector:o,labelSelector:s})}function io(e){const{name:n,options:i,nonClearable:o,onChange:s,...u}=e;return e.nonClearable?h.jsx(Zg,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:ho,searchOptions:i,selectedOnTop:!1}):h.jsx(Zg,{...u,onChange:e.onChange,nonClearable:e.nonClearable,name:n,options:i,sortFunction:ho,searchOptions:i,selectedOnTop:!1})}v.createContext({tabs:[],step:0,disabled:!1,activeTab:"",variant:"primary",setActiveTab:()=>{console.warn("setActiveTab called before it was initialized")},registerTab:()=>{console.warn("registerTab called before it was initialized")},unregisterTab:()=>{console.warn("unregisterTab called before it was initialized")}});const Qg="•",zT="Enter";function BT(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:g,label:y,labelClassName:x,readOnly:b,required:m,variant:w,inputSectionClassName:N,withAsterisk:S,onChange:_,name:T,autoBullets:M=!1,rows:$=5,...F}=e,W=gr.useCallback(O=>{Fe(_)||O.target.value===""&&_(`${Qg} `,T)},[_,T]),fe=gr.useCallback(O=>{Fe(_)||O.key===zT&&_(`${O.currentTarget.value}${Qg} `,T)},[_,T]);return h.jsx(Vf,{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:N,labelClassName:x,label:y,readOnly:b,required:m,variant:w,withAsterisk:S,input:h.jsx(ST,{...F,readOnly:b,disabled:o,className:g,onChange:_,name:T,onFocus:M?W:void 0,onKeyUp:M?fe:void 0,rows:$})})}function kt(e){const{actions:n,className:i,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputClassName:g,inputSectionClassName:y,label:x,readOnly:b,required:m,variant:w,withAsterisk:N,type:S="text",..._}=e;return h.jsx(Vf,{className:i,actions:n,disabled:o,error:s,errorOnTooltip:u,hint:d,icons:f,inputSectionClassName:y,label:x,required:m,readOnly:b,variant:w,withAsterisk:N,input:h.jsx(fv,{..._,required:m,readOnly:b,disabled:o,className:g,type:S})})}const UT="_dropdownContainer_1six7_3",HT="_dropdownMenu_1six7_15",VT="_dropdownContent_1six7_43",Ad={dropdownContainer:UT,dropdownMenu:HT,dropdownContent:VT},qT="/assets/logo-DkhILSWp.jpg",WT=[{to:"/upload",label:"Upload",Icon:C0},{to:"/explore",label:"Explore",Icon:Hb},{to:"/analytics",label:"Analytics",Icon:w0}];function GT(){const e=ua(),n=ks(),[i,o]=v.useState(!1),s=v.useRef(null);return v.useEffect(()=>{const u=d=>{s.current&&!s.current.contains(d.target)&&o(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]),h.jsx("nav",{className:"border-b border-gray-200 bg-white shadow-sm sticky top-0 z-50 backdrop-blur-sm bg-white/95",children:h.jsxs(Iu,{className:"border-b-2 border-ifrcRed",contentClassName:"grid grid-cols-3 items-center py-6",children:[h.jsx("div",{className:"flex items-center gap-4 min-w-0 cursor-pointer group transition-all duration-200 hover:scale-105",onClick:()=>{if(!(e.pathname==="/upload"||e.pathname==="/")){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/")}},children:h.jsx("div",{className:"p-2 rounded-lg bg-gradient-to-br from-ifrcRed/10 to-ifrcRed/20 group-hover:from-ifrcRed/20 group-hover:to-ifrcRed/30 transition-all duration-200",children:h.jsx("img",{src:qT,alt:"PromptAid Vision Logo",className:"flex-shrink-0 object-contain",style:{width:"144px",height:"50px"}})})}),h.jsx("div",{className:"flex justify-center",children:h.jsx("nav",{className:"flex items-center space-x-4 bg-gray-50/80 rounded-xl p-2 backdrop-blur-sm",children:WT.map(({to:u,label:d,Icon:f})=>{const g=e.pathname===u||u==="/upload"&&e.pathname==="/"||u==="/explore"&&e.pathname.startsWith("/map/"),y=e.pathname==="/upload"||e.pathname==="/",x=u==="/upload"||u==="/";return h.jsxs("div",{className:"relative",children:[h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsxs(Be,{name:d.toLowerCase(),variant:g?"primary":"tertiary",size:1,className:`transition-all duration-200 ${g?"shadow-lg shadow-ifrcRed/20 transform scale-105":"hover:bg-white hover:shadow-md hover:scale-105"}`,onClick:()=>{if(!(y&&x)){if(e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded(u);return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n(u)}},children:[h.jsx(f,{className:`w-4 h-4 transition-transform duration-200 ${g?"scale-110":"group-hover:scale-110"}`}),h.jsx("span",{className:"inline ml-2 font-semibold",children:d})]})}),g&&h.jsx("div",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-8 h-1 bg-ifrcRed rounded-full animate-pulse"})]},u)})})}),h.jsx("div",{className:"flex justify-end",children:h.jsxs("div",{className:Ad.dropdownContainer,ref:s,children:[h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsx(Be,{name:"more-options",variant:i?"primary":"tertiary",size:1,className:"transition-all duration-200",onClick:()=>o(!i),children:h.jsx(zb,{className:"w-4 h-4"})})}),i&&h.jsx("div",{className:Ad.dropdownMenu,children:h.jsxs("div",{className:Ad.dropdownContent,children:[h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsxs(Be,{name:"help-support",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/help");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/help")},children:[h.jsx(Bb,{className:"w-4 h-4"}),h.jsx("span",{className:"ml-2 font-semibold",children:"Help & Support"})]})}),h.jsx(on,{withInternalPadding:!0,className:"p-2",children:h.jsxs(Be,{name:"dev",variant:"tertiary",size:1,className:"w-full justify-start",onClick:()=>{if(o(!1),e.pathname==="/upload"){if(window.confirmNavigationIfNeeded){window.confirmNavigationIfNeeded("/admin");return}if(!confirm("You have unsaved changes. Are you sure you want to leave?"))return}n("/admin")},children:[h.jsx(Vb,{className:"w-4 h-4"}),h.jsx("span",{className:"ml-2 font-semibold",children:"Dev"})]})})]})})]})})]})})}function ZT(){return h.jsxs(h.Fragment,{children:[h.jsx(GT,{}),h.jsx(gx,{})]})}const QT="_uploadContainer_1i3bv_1",KT="_dropZone_1i3bv_9",YT="_hasFile_1i3bv_30",XT="_dropZoneIcon_1i3bv_37",JT="_dropZoneText_1i3bv_43",e2="_dropZoneSubtext_1i3bv_49",t2="_filePreview_1i3bv_55",n2="_filePreviewImage_1i3bv_64",r2="_fileName_1i3bv_110",i2="_fileInfo_1i3bv_118",o2="_helpLink_1i3bv_125",a2="_loadingContainer_1i3bv_145",s2="_loadingText_1i3bv_153",l2="_generateButtonContainer_1i3bv_157",u2="_uploadedMapContainer_1i3bv_165",c2="_uploadedMapImage_1i3bv_169",d2="_formGrid_1i3bv_209",f2="_titleField_1i3bv_222",h2="_ratingDescription_1i3bv_230",p2="_ratingSlider_1i3bv_235",m2="_ratingLabel_1i3bv_242",g2="_ratingInput_1i3bv_251",v2="_ratingValue_1i3bv_256",y2="_submitSection_1i3bv_266",w2="_successContainer_1i3bv_275",x2="_successHeading_1i3bv_280",b2="_successText_1i3bv_285",C2="_successButton_1i3bv_291",S2="_viewFullSizeButton_1i3bv_297",_2="_fullSizeModalOverlay_1i3bv_306",E2="_lightModalOverlay_1i3bv_320",N2="_fullSizeModalContent_1i3bv_334",k2="_fullSizeModalHeader_1i3bv_345",j2="_fullSizeModalImage_1i3bv_361",T2="_confirmSection_1i3bv_398",P2="_step2Layout_1i3bv_407",L2="_topRow_1i3bv_413",M2="_ratingHidden_1i3bv_421",D2="_imageSection_1i3bv_425",O2="_ratingContent_1i3bv_435",I2="_mapColumn_1i3bv_453",R2="_contentColumn_1i3bv_458",A2="_step2bLayout_1i3bv_465",$2="_metadataSectionCard_1i3bv_562",F2="_droneMetadataSection_1i3bv_571",z2="_droneMetadataHeading_1i3bv_577",B2="_droneMetadataGrid_1i3bv_585",U2="_rtkFixContainer_1i3bv_591",H2="_rtkFixLabel_1i3bv_597",V2="_rtkFixCheckbox_1i3bv_606",q2="_confirmButtonContainer_1i3bv_621",W2="_ratingWarningContent_1i3bv_629",G2="_ratingWarningTitle_1i3bv_637",Z2="_ratingWarningText_1i3bv_644",Q2="_ratingWarningButtons_1i3bv_651",K2="_fallbackReasonBox_1i3bv_659",Y2="_fallbackReasonTitle_1i3bv_668",X2="_fallbackReasonText_1i3bv_675",J2="_preprocessingProgress_1i3bv_682",eP="_carouselContainer_1i3bv_735",tP="_carouselImageWrapper_1i3bv_740",nP="_carouselImage_1i3bv_740",rP="_carouselNavigation_1i3bv_763",iP="_carouselButton_1i3bv_775",oP="_carouselIndicators_1i3bv_799",aP="_carouselIndicator_1i3bv_799",sP="_carouselIndicatorActive_1i3bv_828",lP="_viewImageButtonContainer_1i3bv_864",q={uploadContainer:QT,dropZone:KT,hasFile:YT,dropZoneIcon:XT,dropZoneText:JT,dropZoneSubtext:e2,filePreview:t2,filePreviewImage:n2,fileName:r2,fileInfo:i2,helpLink:o2,loadingContainer:a2,loadingText:s2,generateButtonContainer:l2,uploadedMapContainer:u2,uploadedMapImage:c2,formGrid:d2,titleField:f2,ratingDescription:h2,ratingSlider:p2,ratingLabel:m2,ratingInput:g2,ratingValue:v2,submitSection:y2,successContainer:w2,successHeading:x2,successText:b2,successButton:C2,viewFullSizeButton:S2,fullSizeModalOverlay:_2,lightModalOverlay:E2,fullSizeModalContent:N2,fullSizeModalHeader:k2,fullSizeModalImage:j2,confirmSection:T2,step2Layout:P2,topRow:L2,ratingHidden:M2,imageSection:D2,ratingContent:O2,mapColumn:I2,contentColumn:R2,step2bLayout:A2,metadataSectionCard:$2,droneMetadataSection:F2,droneMetadataHeading:z2,droneMetadataGrid:B2,rtkFixContainer:U2,rtkFixLabel:H2,rtkFixCheckbox:V2,confirmButtonContainer:q2,ratingWarningContent:W2,ratingWarningTitle:G2,ratingWarningText:Z2,ratingWarningButtons:Q2,fallbackReasonBox:K2,fallbackReasonTitle:Y2,fallbackReasonText:X2,preprocessingProgress:J2,carouselContainer:eP,carouselImageWrapper:tP,carouselImage:nP,carouselNavigation:rP,carouselButton:iP,carouselIndicators:oP,carouselIndicator:aP,carouselIndicatorActive:sP,viewImageButtonContainer:lP},Sy=v.createContext(void 0),uP=({children:e})=>{const[n,i]=v.useState(""),[o,s]=v.useState(""),[u,d]=v.useState(""),[f,g]=v.useState(""),[y,x]=v.useState(""),[b,m]=v.useState(""),[w,N]=v.useState(""),[S,_]=v.useState(""),[T,M]=v.useState(!1),F={search:n,srcFilter:o,catFilter:u,regionFilter:f,countryFilter:y,imageTypeFilter:b,uploadTypeFilter:w,generatedMethodFilter:S,showReferenceExamples:T,setSearch:i,setSrcFilter:s,setCatFilter:d,setRegionFilter:g,setCountryFilter:x,setImageTypeFilter:m,setUploadTypeFilter:N,setGeneratedMethodFilter:_,setShowReferenceExamples:M,clearAllFilters:()=>{i(""),s(""),d(""),g(""),x(""),m(""),N(""),_(""),M(!1)}};return h.jsx(Sy.Provider,{value:F,children:e})},cP=()=>{const e=v.useContext(Sy);if(e===void 0)throw new Error("useFilterContext must be used within a FilterProvider");return e},dP="_switchLabel_t5cwd_1",fP="_disabled_t5cwd_17",hP="_switchText_t5cwd_27",pP="_switchContainer_t5cwd_41",mP="_switchInput_t5cwd_55",gP="_slider_t5cwd_69",oo={switchLabel:dP,disabled:fP,switchText:hP,switchContainer:pP,switchInput:mP,slider:gP};function ls({label:e,checked:n,onChange:i,disabled:o=!1,name:s}){return h.jsxs("label",{className:`${oo.switchLabel} ${o?oo.disabled:""}`,children:[e&&h.jsx("span",{className:oo.switchText,children:e}),h.jsxs("div",{className:oo.switchContainer,children:[h.jsx("input",{type:"checkbox",name:s,checked:n,onChange:u=>i(u.target.checked),disabled:o,className:oo.switchInput}),h.jsx("span",{className:`${oo.slider} ${n?oo.checked:""}`})]})]})}function Kg({files:e,file:n,preview:i,imageType:o,isManualMode:s,onFileChange:u,onRemoveImage:d,onAddImage:f,onImageTypeChange:g,onManualModeChange:y,onChangeFile:x}){const b=m=>{m.preventDefault();const w=m.dataTransfer.files?.[0];w&&u(w)};return h.jsxs("div",{className:"space-y-6",children:[h.jsx("p",{className:"text-gray-700 leading-relaxed max-w-2xl mx-auto",children:"This app evaluates how well multimodal AI models analyze and describe crisis maps and drone imagery. Upload an image and the AI will generate a description. Then you can review and rate the result based on your expertise."}),h.jsx("div",{className:q.helpLink,children:h.jsxs(Fx,{to:"/help",className:q.helpLink,children:["More ",h.jsx(Lb,{className:"w-3 h-3"})]})}),h.jsxs("div",{className:"flex justify-center items-center gap-6 flex-wrap",children:[h.jsx(on,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:h.jsx(ls,{name:"vlm-generation",checked:!s,onChange:m=>y(!m),label:"VLM:"})}),h.jsx(on,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",children:h.jsx("div",{className:"flex justify-center",children:h.jsx(su,{name:"image-type",value:o,onChange:m=>g(m),options:[{key:"crisis_map",label:"Crisis Maps"},{key:"drone_image",label:"Drone Imagery"}],keySelector:m=>m.key,labelSelector:m=>m.label})})}),h.jsx(on,{withInternalPadding:!0,className:"bg-transparent border-none shadow-none",style:{width:"80px",visibility:"hidden"},children:h.jsx("div",{style:{width:"80px"}})})]}),h.jsxs("div",{className:`${q.dropZone} ${n?q.hasFile:""}`,onDragOver:m=>m.preventDefault(),onDrop:b,children:[e.length>1?h.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-4",children:e.map((m,w)=>h.jsxs("div",{className:"relative",children:[h.jsx("img",{src:URL.createObjectURL(m),alt:`Image ${w+1}`,className:"w-full h-32 object-cover rounded"}),h.jsx(kf,{name:"remove-image",variant:"tertiary",onClick:()=>d(w),title:"Remove image",ariaLabel:"Remove image",className:"absolute top-2 right-2 bg-white/90 hover:bg-white shadow-md hover:shadow-lg border border-gray-200 hover:border-red-300 transition-all duration-200 backdrop-blur-sm",children:h.jsx(_f,{className:"w-4 h-4"})}),h.jsx("div",{className:"text-xs text-center mt-1",children:m.name})]},w))}):n&&i?h.jsxs("div",{className:q.filePreview,children:[h.jsx("div",{className:q.filePreviewImage,children:h.jsx("img",{src:i,alt:"File preview"})}),h.jsx("p",{className:q.fileName,children:n.name}),h.jsxs("p",{className:q.fileInfo,children:[(n.size/1024/1024).toFixed(2)," MB"]})]}):h.jsxs(h.Fragment,{children:[h.jsx(C0,{className:q.dropZoneIcon}),h.jsx("p",{className:q.dropZoneText,children:"Drag & Drop any file here"}),h.jsx("p",{className:q.dropZoneSubtext,children:"or"})]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("label",{className:"inline-block cursor-pointer",children:[h.jsx("input",{type:"file",className:"sr-only",accept:".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",onChange:m=>{n&&x?x(m.target.files?.[0]):u(m.target.files?.[0])}}),h.jsx(Be,{name:"upload",variant:"secondary",size:1,onClick:()=>document.querySelector('input[type="file"]')?.click(),children:n?"Change Image":"Browse Files"})]}),n&&e.length<5&&h.jsx(Be,{name:"add-image",variant:"secondary",size:1,onClick:f,children:"Add Image"})]})]})]})}function Yg({files:e,imageUrl:n,preview:i,onViewFullSize:o,currentImageIndex:s=0,onGoToPrevious:u,onGoToNext:d,onGoToImage:f,showCarousel:g=!1}){return g&&e.length>1?h.jsx(on,{heading:"Uploaded Images",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.carouselContainer,children:[h.jsx("div",{className:q.carouselImageWrapper,children:e[s]?h.jsx("img",{src:URL.createObjectURL(e[s]),alt:`Image ${s+1}`,className:q.carouselImage}):h.jsx("div",{className:q.imagePlaceholder,children:"No image available"})}),h.jsxs("div",{className:q.carouselNavigation,children:[h.jsx(Be,{name:"previous-image",variant:"tertiary",size:1,onClick:u,className:q.carouselButton,children:h.jsx(Ab,{className:"w-4 h-4"})}),h.jsx("div",{className:q.carouselIndicators,children:e.map((y,x)=>h.jsx("button",{onClick:()=>f?.(x),className:`${q.carouselIndicator} ${x===s?q.carouselIndicatorActive:""}`,children:x+1},x))}),h.jsx(Be,{name:"next-image",variant:"tertiary",size:1,onClick:d,className:q.carouselButton,children:h.jsx($b,{className:"w-4 h-4"})})]}),h.jsx("div",{className:q.viewImageButtonContainer,children:h.jsx(Be,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>o({file:e[s],index:s}),disabled:!e[s],children:"View Image"})})]})}):e.length>1?h.jsx("div",{className:"space-y-6",children:e.map((y,x)=>h.jsx(on,{heading:`Image ${x+1}: ${y.name}`,headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.uploadedMapContainer,children:[h.jsx("div",{className:q.uploadedMapImage,children:h.jsx("img",{src:URL.createObjectURL(y),alt:`Image ${x+1}`})}),h.jsx("div",{className:q.viewFullSizeButton,children:h.jsx(Be,{name:`view-full-size-${x}`,variant:"secondary",size:1,onClick:()=>o({file:y,index:x}),children:"View Image"})})]})},x))}):h.jsx(on,{heading:"Uploaded Image",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.uploadedMapContainer,children:[h.jsx("div",{className:q.uploadedMapImage,children:h.jsx("img",{src:n||i||void 0,alt:"Uploaded image preview"})}),h.jsx("div",{className:q.viewFullSizeButton,children:h.jsx(Be,{name:"view-full-size",variant:"secondary",size:1,onClick:()=>o(),children:"View Image"})})]})})}function vP({files:e,imageType:n,title:i,source:o,eventType:s,epsg:u,countries:d,centerLon:f,centerLat:g,amslM:y,aglM:x,headingDeg:b,yawDeg:m,pitchDeg:w,rollDeg:N,rtkFix:S,stdHM:_,stdVM:T,metadataArray:M,sources:$,types:F,spatialReferences:W,imageTypes:fe,countriesOptions:O,onTitleChange:K,onSourceChange:de,onEventTypeChange:pe,onEpsgChange:R,onCountriesChange:H,onCenterLonChange:G,onCenterLatChange:ee,onAmslMChange:me,onAglMChange:Ce,onHeadingDegChange:Ee,onYawDegChange:Z,onPitchDegChange:ue,onRollDegChange:j,onRtkFixChange:V,onStdHMChange:ae,onStdVMChange:Se,onImageTypeChange:le,updateMetadataForImage:re}){return e.length>1?h.jsxs("div",{children:[h.jsx("div",{className:"mb-4",children:h.jsx(kt,{label:"Shared Title",name:"title",value:i,onChange:K,placeholder:"Enter a title for all images..."})}),e.map((te,Q)=>h.jsx("div",{className:"mb-6",children:h.jsx(on,{heading:`Image ${Q+1}: ${te.name}`,headingLevel:4,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.formGrid,children:[n!=="drone_image"&&h.jsx(io,{label:"Source",name:`source_${Q}`,value:M[Q]?.source||"",onChange:Y=>re(Q,"source",Y),options:$,keySelector:Y=>Y.s_code,labelSelector:Y=>Y.label,placeholder:"Please select"}),h.jsx(io,{label:"Event Type",name:`event_type_${Q}`,value:M[Q]?.eventType||"",onChange:Y=>re(Q,"eventType",Y),options:F,keySelector:Y=>Y.t_code,labelSelector:Y=>Y.label,placeholder:"Please select"}),h.jsx(io,{label:"EPSG",name:`epsg_${Q}`,value:M[Q]?.epsg||"",onChange:Y=>re(Q,"epsg",Y),options:W,keySelector:Y=>Y.epsg,labelSelector:Y=>`${Y.srid} (EPSG:${Y.epsg})`,placeholder:"Please select"}),h.jsx(qg,{label:"Countries (optional)",name:`countries_${Q}`,value:M[Q]?.countries||[],onChange:Y=>re(Q,"countries",Y),options:O,keySelector:Y=>Y.c_code,labelSelector:Y=>Y.label,placeholder:"Select one or more"}),n==="drone_image"&&h.jsx(h.Fragment,{children:h.jsxs("div",{className:q.droneMetadataSection,children:[h.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),h.jsxs("div",{className:q.droneMetadataGrid,children:[h.jsx(kt,{label:"Center Longitude",name:`center_lon_${Q}`,value:M[Q]?.centerLon||"",onChange:Y=>re(Q,"centerLon",Y),placeholder:"e.g., -122.4194",step:"any"}),h.jsx(kt,{label:"Center Latitude",name:`center_lat_${Q}`,value:M[Q]?.centerLat||"",onChange:Y=>re(Q,"centerLat",Y),placeholder:"e.g., 37.7749",step:"any"}),h.jsx(kt,{label:"Altitude AMSL (m)",name:`amsl_m_${Q}`,value:M[Q]?.amslM||"",onChange:Y=>re(Q,"amslM",Y),placeholder:"e.g., 100.5",step:"any"}),h.jsx(kt,{label:"Altitude AGL (m)",name:`agl_m_${Q}`,value:M[Q]?.aglM||"",onChange:Y=>re(Q,"aglM",Y),placeholder:"e.g., 50.2",step:"any"}),h.jsx(kt,{label:"Heading (degrees)",name:`heading_deg_${Q}`,value:M[Q]?.headingDeg||"",onChange:Y=>re(Q,"headingDeg",Y),placeholder:"e.g., 180.0",step:"any"}),h.jsx(kt,{label:"Yaw (degrees)",name:`yaw_deg_${Q}`,value:M[Q]?.yawDeg||"",onChange:Y=>re(Q,"yawDeg",Y),placeholder:"e.g., 90.0",step:"any"}),h.jsx(kt,{label:"Pitch (degrees)",name:`pitch_deg_${Q}`,value:M[Q]?.pitchDeg||"",onChange:Y=>re(Q,"pitchDeg",Y),placeholder:"e.g., 0.0",step:"any"}),h.jsx(kt,{label:"Roll (degrees)",name:`roll_deg_${Q}`,value:M[Q]?.rollDeg||"",onChange:Y=>re(Q,"rollDeg",Y),placeholder:"e.g., 0.0",step:"any"}),h.jsx("div",{className:q.rtkFixContainer,children:h.jsxs("label",{className:q.rtkFixLabel,children:[h.jsx("input",{type:"checkbox",checked:M[Q]?.rtkFix||!1,onChange:Y=>re(Q,"rtkFix",Y.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),h.jsx(kt,{label:"Horizontal Std Dev (m)",name:`std_h_m_${Q}`,value:M[Q]?.stdHM||"",onChange:Y=>re(Q,"stdHM",Y),placeholder:"e.g., 0.1",step:"any"}),h.jsx(kt,{label:"Vertical Std Dev (m)",name:`std_v_m_${Q}`,value:M[Q]?.stdVM||"",onChange:Y=>re(Q,"stdVM",Y),placeholder:"e.g., 0.2",step:"any"})]})]})})]})})},Q))]}):h.jsxs("div",{className:q.formGrid,children:[h.jsx("div",{className:q.titleField,children:h.jsx(kt,{label:"Title",name:"title",value:i,onChange:K,placeholder:"Enter a title for this map..."})}),n!=="drone_image"&&h.jsx(io,{label:"Source",name:"source",value:o,onChange:de,options:$,keySelector:te=>te.s_code,labelSelector:te=>te.label,placeholder:"Please select"}),h.jsx(io,{label:"Event Type",name:"event_type",value:s,onChange:pe,options:F,keySelector:te=>te.t_code,labelSelector:te=>te.label,placeholder:"Please select"}),h.jsx(io,{label:"EPSG",name:"epsg",value:u,onChange:R,options:W,keySelector:te=>te.epsg,labelSelector:te=>`${te.srid} (EPSG:${te.epsg})`,placeholder:"Please select"}),h.jsx(io,{label:"Image Type",name:"image_type",value:n,onChange:le,options:fe,keySelector:te=>te.image_type,labelSelector:te=>te.label}),h.jsx(qg,{label:"Countries (optional)",name:"countries",value:d,onChange:H,options:O,keySelector:te=>te.c_code,labelSelector:te=>te.label,placeholder:"Select one or more"}),n==="drone_image"&&h.jsx(h.Fragment,{children:h.jsxs("div",{className:q.droneMetadataSection,children:[h.jsx("h4",{className:q.droneMetadataHeading,children:"Drone Flight Data"}),h.jsxs("div",{className:q.droneMetadataGrid,children:[h.jsx(kt,{label:"Center Longitude",name:"center_lon",value:f,onChange:G,placeholder:"e.g., -122.4194",step:"any"}),h.jsx(kt,{label:"Center Latitude",name:"center_lat",value:g,onChange:ee,placeholder:"e.g., 37.7749",step:"any"}),h.jsx(kt,{label:"Altitude AMSL (m)",name:"amsl_m",value:y,onChange:me,placeholder:"e.g., 100.5",step:"any"}),h.jsx(kt,{label:"Altitude AGL (m)",name:"agl_m",value:x,onChange:Ce,placeholder:"e.g., 50.2",step:"any"}),h.jsx(kt,{label:"Heading (degrees)",name:"heading_deg",value:b,onChange:Ee,placeholder:"e.g., 180.0",step:"any"}),h.jsx(kt,{label:"Yaw (degrees)",name:"yaw_deg",value:m,onChange:Z,placeholder:"e.g., 90.0",step:"any"}),h.jsx(kt,{label:"Pitch (degrees)",name:"pitch_deg",value:w,onChange:ue,placeholder:"e.g., 0.0",step:"any"}),h.jsx(kt,{label:"Roll (degrees)",name:"roll_deg",value:N,onChange:j,placeholder:"e.g., 0.0",step:"any"}),h.jsx("div",{className:q.rtkFixContainer,children:h.jsxs("label",{className:q.rtkFixLabel,children:[h.jsx("input",{type:"checkbox",checked:S,onChange:te=>V(te.target.checked),className:q.rtkFixCheckbox}),"RTK Fix Available"]})}),h.jsx(kt,{label:"Horizontal Std Dev (m)",name:"std_h_m",value:_,onChange:ae,placeholder:"e.g., 0.1",step:"any"}),h.jsx(kt,{label:"Vertical Std Dev (m)",name:"std_v_m",value:T,onChange:Se,placeholder:"e.g., 0.2",step:"any"})]})]})})]})}function yP({isPerformanceConfirmed:e,scores:n,onScoreChange:i,onConfirmRatings:o}){return e?null:h.jsx(on,{heading:"AI Performance Rating",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:h.jsxs("div",{className:q.ratingContent,children:[h.jsx("p",{className:q.ratingDescription,children:"How well did the AI perform on the task?"}),["accuracy","context","usability"].map(s=>h.jsxs("div",{className:q.ratingSlider,children:[h.jsx("label",{className:q.ratingLabel,children:s}),h.jsx("input",{type:"range",min:0,max:100,value:n[s],onChange:u=>i(s,Number(u.target.value)),className:q.ratingInput}),h.jsx("span",{className:q.ratingValue,children:n[s]})]},s)),h.jsx("div",{className:q.confirmButtonContainer,children:h.jsx(Be,{name:"confirm-ratings",variant:"secondary",onClick:o,children:"Confirm Ratings"})})]})})}function wP({description:e,analysis:n,recommendedActions:i,isManualMode:o=!1,onDescriptionChange:s,onAnalysisChange:u,onRecommendedActionsChange:d,onBack:f,onDelete:g,onSubmit:y,onEditRatings:x,isPerformanceConfirmed:b=!1,isSubmitting:m=!1}){const[w,N]=v.useState("");v.useEffect(()=>{if(o){const _=`Description: ${e} Analysis: @@ -159,10 +159,10 @@ ${n||"AI-generated analysis will appear here..."} Recommended Actions: ${i||"AI-generated recommended actions will appear here..."}`;N(_)}},[e,n,i,o]);const S=_=>{if(_!==void 0){N(_);const T=_.split(` `),M=T.findIndex(W=>W.startsWith("Description:")),$=T.findIndex(W=>W.startsWith("Analysis:")),F=T.findIndex(W=>W.startsWith("Recommended Actions:"));if(M!==-1&&$!==-1&&F!==-1){const W=T.slice(M+1,$).join(` -`).trim(),de=T.slice($+1,F).join(` +`).trim(),fe=T.slice($+1,F).join(` `).trim(),O=T.slice(F+1).join(` -`).trim();W!==e&&s(W),de!==n&&u(de),O!==i&&d(O)}}};return h.jsxs(on,{heading:"Generated Text",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,children:[h.jsx("div",{className:"text-left space-y-4",children:h.jsx("div",{children:h.jsx(U2,{name:"generatedContent",value:w,onChange:S,rows:12,placeholder:o?"":"AI-generated content will appear here..."})})}),h.jsxs("div",{className:q.submitSection,children:[h.jsx(Ue,{name:"back",variant:"secondary",onClick:f,children:"Back"}),b&&x&&!o&&h.jsx(Ue,{name:"edit-ratings",variant:"secondary",onClick:x,children:"Edit Ratings"}),h.jsx(kf,{name:"delete",variant:"tertiary",onClick:g,title:"Delete",ariaLabel:"Delete uploaded image",children:h.jsx(_f,{})}),h.jsx(Ue,{name:"submit",onClick:y,disabled:m,children:"Submit"})]})]})}function xP({isOpen:e,imageUrl:n,preview:i,selectedImageData:o,onClose:s,isLoading:u=!1}){if(!e)return null;let d,f;return o?(d=URL.createObjectURL(o.file),f=`Image ${o.index+1}: ${o.file.name}`):(d=n||i||void 0,f="Full size map"),h.jsx("div",{className:q.fullSizeModalOverlay,onClick:s,children:h.jsxs("div",{className:q.fullSizeModalContent,onClick:g=>g.stopPropagation(),children:[h.jsx("div",{className:q.fullSizeModalHeader,children:h.jsx(Ue,{name:"close-modal",variant:"tertiary",size:1,onClick:s,children:"✕"})}),h.jsx("div",{className:q.fullSizeModalImage,children:u?h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Loading image..."})]}):h.jsx("img",{src:d,alt:f})})]})})}function bP({isOpen:e,onClose:n}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:n,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:i=>i.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Please Confirm Your Ratings"}),h.jsx("p",{className:q.ratingWarningText,children:'You must confirm your performance ratings before submitting. Please go back to the rating section and click "Confirm Ratings".'}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Ue,{name:"close-warning",variant:"secondary",onClick:n,children:"Close"})})]})})}):null}function CP({isOpen:e,onConfirm:n,onCancel:i}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Delete Image?"}),h.jsx("p",{className:q.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this uploaded image?"}),h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Ue,{name:"confirm-delete",variant:"secondary",onClick:n,children:"Delete"}),h.jsx(Ue,{name:"cancel-delete",variant:"tertiary",onClick:i,children:"Cancel"})]})]})})}):null}function SP({isOpen:e,onConfirm:n,onCancel:i}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Leave Page?"}),h.jsx("p",{className:q.ratingWarningText,children:"Your uploaded image will be deleted if you leave this page. Are you sure you want to continue?"}),h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Ue,{name:"confirm-navigation",variant:"secondary",onClick:n,children:"Leave Page"}),h.jsx(Ue,{name:"cancel-navigation",variant:"tertiary",onClick:i,children:"Stay"})]})]})})}):null}function _P({isOpen:e,fallbackInfo:n,onClose:i}){if(!e||!n)return null;const s=(u=>u.includes("quota")||u.includes("credits")?"API quota exceeded - you've used up your monthly free credits":u.includes("rate")||u.includes("429")?"Rate limit exceeded - too many requests":u.includes("loading")||u.includes("503")?"Model is currently loading or unavailable":u.includes("network")||u.includes("timeout")?"Network connection issue":u.includes("MODEL_UNAVAILABLE")?"Model service is temporarily unavailable":u)(n.reason);return h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:u=>u.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"⚠️ Model Changed"}),h.jsxs("p",{className:q.ratingWarningText,children:[h.jsx("strong",{children:n.originalModel})," is currently unavailable. We've automatically switched to ",h.jsx("strong",{children:n.fallbackModel})," to complete your request."]}),h.jsxs("div",{className:q.fallbackReasonBox,children:[h.jsx("p",{className:q.fallbackReasonTitle,children:"Reason:"}),h.jsx("p",{className:q.fallbackReasonText,children:s})]}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Ue,{name:"close-fallback",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function EP({isOpen:e,preprocessingInfo:n,onClose:i}){return!e||!n?null:h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"File Converted"}),h.jsxs("p",{className:q.ratingWarningText,children:["Your file ",h.jsx("strong",{children:n.original_filename})," has been converted from",h.jsxs("strong",{children:[" ",n.original_mime_type]})," to",h.jsxs("strong",{children:[" ",n.processed_mime_type]})," for optimal processing.",h.jsx("br",{}),h.jsx("br",{}),"This conversion ensures your file is in the best format for our AI models to analyze."]}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Ue,{name:"close-preprocessing",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function NP({isOpen:e,isPreprocessing:n,preprocessingProgress:i,onConfirm:o,onCancel:s}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:n?void 0:s,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:u=>u.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"File Conversion Required"}),h.jsx("p",{className:q.ratingWarningText,children:"The file you selected will be converted to PNG format. This ensures optimal compatibility and processing by our AI models."}),!n&&h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Ue,{name:"confirm-preprocessing",variant:"secondary",onClick:o,children:"Convert File"}),h.jsx(Ue,{name:"cancel-preprocessing",variant:"tertiary",onClick:s,children:"Cancel"})]}),n&&h.jsxs("div",{className:q.preprocessingProgress,children:[h.jsx("p",{children:i}),h.jsx(Xo,{className:"text-ifrcRed"})]})]})})}):null}function kP({isOpen:e,unsupportedFile:n,onClose:i}){return!e||!n?null:h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Unsupported File Format"}),h.jsxs("p",{className:q.ratingWarningText,children:["The file ",h.jsx("strong",{children:n.name})," is not supported for upload.",h.jsx("br",{}),h.jsx("br",{}),h.jsx("strong",{children:"Supported formats:"}),h.jsx("br",{}),"• Images: JPEG, PNG, TIFF, HEIC, WebP, GIF",h.jsx("br",{}),"• Documents: PDF (will be converted to image)",h.jsx("br",{}),h.jsx("br",{}),h.jsx("strong",{children:"Recommendation:"})," Convert your file to JPEG or PNG format for best compatibility."]}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Ue,{name:"close-unsupported",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function jP({isOpen:e,oversizedFile:n,onClose:i,onCancel:o}){return!e||!n?null:h.jsx("div",{className:q.lightModalOverlay,onClick:o,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:s=>s.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"File Size Warning"}),h.jsxs("p",{className:q.ratingWarningText,children:["The file ",h.jsx("strong",{children:n.name})," is large (",(n.size/(1024*1024)).toFixed(1),"MB).",h.jsx("br",{}),h.jsx("br",{}),h.jsx("strong",{children:"Warning:"})," This file size might exceed the limits of the AI models we use.",h.jsx("br",{}),h.jsx("br",{}),"You can still proceed, but consider using a smaller file if you encounter issues."]}),h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Ue,{name:"continue-size-warning",variant:"secondary",onClick:i,children:"Continue"}),h.jsx(Ue,{name:"cancel-size-warning",variant:"tertiary",onClick:o,children:"Cancel"})]})]})})})}const Jl="selectedVlmModel";function Xg(){let e,n;try{[e]=Bx(),n=ks()}catch(k){console.warn("Router context not available, using fallback:",k),e=new URLSearchParams,n=()=>{}}const[i,o]=v.useState(1),[s,u]=v.useState(!1),[d,f]=v.useState(!1),[g,y]=v.useState(!1),x=v.useRef(i),b=v.useRef(null),[m,w]=v.useState(null),[N,S]=v.useState(null),[_,T]=v.useState([]),[M,$]=v.useState(""),[F,W]=v.useState(""),[de,O]=v.useState(""),[K,ce]=v.useState("crisis_map"),[he,R]=v.useState([]),[H,G]=v.useState(""),[ee,pe]=v.useState(!0),[Ce,_e]=v.useState(""),[Z,le]=v.useState(""),[j,V]=v.useState(""),[oe,Se]=v.useState(""),[se,re]=v.useState(""),[te,Q]=v.useState(""),[Y,Je]=v.useState(""),[an,Ut]=v.useState(""),[ot,vt]=v.useState(!1),[lt,pt]=v.useState(""),[ct,dt]=v.useState(""),[yt,It]=v.useState([]),[sn,pn]=v.useState([]),[Ln,ai]=v.useState([]),[mn,gn]=v.useState([]),[Rr,Yn]=v.useState([]),[Ht,Yt]=v.useState([]),[Ct,wt]=v.useState(null),[ln,Vt]=v.useState([]),[yr,Ri]=v.useState(null),[si,Ar]=v.useState(""),[$r,Mn]=v.useState(""),[Fr,un]=v.useState(""),[Dn,zr]=v.useState(""),[wr,Ai]=v.useState({accuracy:50,context:50,usability:50}),[$i,Xn]=v.useState(!1),[xr,li]=v.useState(null),[On,P]=v.useState(!1),[I,U]=v.useState(!1),[X,ue]=v.useState(!1),[Te,De]=v.useState(!1),[ye,xe]=v.useState(null),[we,ve]=v.useState(!1),[Fe,He]=v.useState(null),[Tt,Ye]=v.useState(!1),[Qe,at]=v.useState(null),[Jn,vn]=v.useState(!1),[yn,qe]=v.useState(null),[Fi,cn]=v.useState(!1),[Hn,Ft]=v.useState(""),[ui,Ve]=v.useState(!1),[nt,Pt]=v.useState(null),[Br,We]=v.useState(!1),[br,ci]=v.useState(null),[da,Ur]=v.useState(0);x.current=i,b.current=Ct;const Cr=k=>!k||sn.length===0?k:sn.find(Ee=>Ee.s_code===k||Ee.label===k)?.s_code||k,zi=k=>{$(Cr(k||""))},yo=k=>W(k||""),Ru=k=>O(k||""),fa=k=>ce(k||""),ha=k=>R(Array.isArray(k)?k:[]),Is=k=>_e(k||""),pa=k=>le(k||""),Bi=k=>V(k||""),Au=k=>Se(k||""),ma=k=>re(k||""),tt=k=>Q(k||""),Rs=k=>Je(k||""),As=k=>Ut(k||""),ga=k=>vt(k||!1),$s=k=>pt(k||""),Fs=k=>dt(k||""),Ui=k=>o(k),va=v.useCallback(()=>{_.length>1&&Ur(k=>k>0?k-1:_.length-1)},[_.length]),wo=v.useCallback(()=>{_.length>1&&Ur(k=>k<_.length-1?k+1:0)},[_.length]),Sr=v.useCallback(k=>{k>=0&&k<_.length&&Ur(k)},[_.length]),er=()=>{if(_.length<5){const k=document.createElement("input");k.type="file",k.accept=".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",k.onchange=ke=>{const Ee=ke.target;if(Ee.files&&Ee.files[0]){const Le=Ee.files[0];ya(Le)}},k.click()}},tr=k=>{T(ke=>{const Ee=ke.filter((Le,me)=>me!==k);return Ee.length===1?S(Ee[0]):Ee.length===0&&S(null),Ee}),It(ke=>ke.filter((Ee,Le)=>Le!==k))},Hi=(k,ke,Ee)=>{It(Le=>{const me=[...Le];return me[k]||(me[k]={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}),ke==="source"?me[k]={...me[k],[ke]:Cr(Ee)}:me[k]={...me[k],[ke]:Ee},me})},di=k=>{const ke=["image/jpeg","image/jpg","image/png"],Ee=[".jpg",".jpeg",".png"];let Le=!ke.includes(k.type);if(!Le&&k.name){const me=k.name.toLowerCase().substring(k.name.lastIndexOf("."));Le=!Ee.includes(me)}return Le},nr=k=>{const ke=["text/html","text/css","application/javascript","application/json","text/plain","application/xml","text/xml","application/zip","application/x-zip-compressed","application/x-rar-compressed","application/x-7z-compressed","audio/","video/","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"];for(const Ee of ke)if(k.type.startsWith(Ee))return!0;if(k.name){const Ee=k.name.toLowerCase().substring(k.name.lastIndexOf("."));if([".html",".htm",".css",".js",".json",".txt",".xml",".zip",".rar",".7z",".csv",".xlsx",".xls",".pptx",".ppt",".docx",".doc",".mp3",".mp4",".avi",".mov"].includes(Ee))return!0}return!1},ya=k=>{if(k){if(console.log("File selected:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),ci(k),We(!0)),nr(k)){console.log("File format not supported at all, showing unsupported format modal"),Pt(k),Ve(!0);return}di(k)?(console.log("File needs preprocessing, showing modal"),qe(k),vn(!0)):(console.log("File does not need preprocessing, setting directly"),_.length===0?(S(k),T([k])):T(Ee=>[...Ee,k]))}},wa=k=>{if(k){if(console.log("File changed:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),ci(k),We(!0)),nr(k)){console.log("File format not supported at all, showing unsupported format modal"),Pt(k),Ve(!0);return}di(k)?(console.log("File needs preprocessing, showing modal"),qe(k),vn(!0)):(console.log("File does not need preprocessing, replacing last file"),_.length>1?(T(Ee=>{const Le=[...Ee];return Le[Le.length-1]=k,Le}),_.length===1&&S(k)):(S(k),T([k])))}};async function rr(k){const ke=await k.text();try{return ke?JSON.parse(ke):{}}catch{return{error:ke}}}function xa(k,ke){const Ee=k instanceof Error?k.message:`Failed to ${ke.toLowerCase()}`;alert(Ee)}async function ba(){if(_.length!==0){u(!0);try{_.length===1?await xo():await zs()}catch(k){xa(k,"Upload")}finally{u(!1)}}}async function xo(){console.log("DEBUG: Starting single image upload");const k=new FormData;if(k.append("file",_[0]),k.append("title",H),k.append("image_type",K),M&&k.append("source",M),F&&k.append("event_type",F),de&&k.append("epsg",de),he.length>0&&he.forEach(Le=>k.append("countries",Le)),K==="drone_image"&&(Ce&&k.append("center_lon",Ce),Z&&k.append("center_lat",Z),j&&k.append("amsl_m",j),oe&&k.append("agl_m",oe),se&&k.append("heading_deg",se),te&&k.append("yaw_deg",te),Y&&k.append("pitch_deg",Y),an&&k.append("roll_deg",an),ot&&k.append("rtk_fix",ot.toString()),lt&&k.append("std_h_m",lt),ct&&k.append("std_v_m",ct)),ee)k.append("model_name","manual");else{const Le=localStorage.getItem(Jl);Le&&k.append("model_name",Le)}const ke=await fetch("/api/images/",{method:"POST",body:k}),Ee=await rr(ke);if(!ke.ok)throw new Error(Ee.error||"Upload failed");console.log("DEBUG: Single upload response:",Ee),await Bs(Ee,!1)}async function zs(){console.log("DEBUG: Starting multi-image upload");const k=new FormData;_.forEach(me=>k.append("files",me)),k.append("title",H),k.append("image_type",K),yt.forEach((me,Re)=>{me.source&&k.append(`source_${Re}`,me.source),me.eventType&&k.append(`event_type_${Re}`,me.eventType),me.epsg&&k.append(`epsg_${Re}`,me.epsg),me.countries.length>0&&me.countries.forEach(Nt=>k.append(`countries_${Re}`,Nt)),K==="drone_image"&&(me.centerLon&&k.append(`center_lon_${Re}`,me.centerLon),me.centerLat&&k.append(`center_lat_${Re}`,me.centerLat),me.amslM&&k.append(`amsl_m_${Re}`,me.amslM),me.aglM&&k.append(`agl_m_${Re}`,me.aglM),me.headingDeg&&k.append(`heading_deg_${Re}`,me.headingDeg),me.yawDeg&&k.append(`yaw_deg_${Re}`,me.yawDeg),me.pitchDeg&&k.append(`pitch_deg_${Re}`,me.pitchDeg),me.rollDeg&&k.append(`roll_deg_${Re}`,me.rollDeg),me.rtkFix&&k.append(`rtk_fix_${Re}`,me.rtkFix.toString()),me.stdHM&&k.append(`std_h_m_${Re}`,me.stdHM),me.stdVM&&k.append(`std_v_m_${Re}`,me.stdVM))});const ke=localStorage.getItem(Jl);ke&&k.append("model_name",ke);const Ee=await fetch("/api/images/multi",{method:"POST",body:k}),Le=await rr(Ee);if(!Ee.ok)throw new Error(Le.error||"Upload failed");console.log("DEBUG: Multi upload response:",Le),await Bs(Le,!0)}async function Bs(k,ke){Ri(k.image_url),k.preprocessing_info&&typeof k.preprocessing_info=="object"&&"was_preprocessed"in k.preprocessing_info&&k.preprocessing_info.was_preprocessed===!0&&(at(k.preprocessing_info),Ye(!0));const Ee=k.image_id;if(!Ee)throw new Error("Upload failed: image_id not found");if(wt(Ee),ke)if(k.image_ids&&Array.isArray(k.image_ids)){const ft=k.image_ids;console.log("DEBUG: Storing image IDs for multi-upload:",ft),Vt(ft)}else console.log("DEBUG: Multi-upload but no image_ids found, using single ID"),Vt([Ee]);else console.log("DEBUG: Storing single image ID:",Ee),Vt([Ee]);const Le=k,me=Le.raw_json,Re=me?.fallback_used,Nt=me?.original_model,Rt=me?.fallback_reason,Lt=Le.model;Re&&Nt&&Rt&&(He({originalModel:Nt,fallbackModel:Lt,reason:Rt}),ve(!0));const Mt=Le.model==="manual",ir=me?.metadata;if(ir){const ft=ir.metadata||ir;if(ft&&typeof ft=="object"){const _r=[];if(ke){const St=ft.metadata_images;if(St&&typeof St=="object")for(let lr=1;lr<=_.length;lr++){const _o=`image${lr}`,Hr=St[_o];if(Hr&&typeof Hr=="object"){const Er=Hr,Fu=Er.source||"",zu=Mt?"":Cr(Fu);_r.push({source:zu,eventType:Er.type||"",epsg:Er.epsg||"",countries:Array.isArray(Er.countries)?Er.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else _r.push({source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else{const lr=ft.source||"",Hr={source:Mt?"":Cr(lr),eventType:ft.type||"",epsg:ft.epsg||"",countries:Array.isArray(ft.countries)?ft.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};for(let Er=0;Er<_.length;Er++)_r.push({...Hr})}}else{const St=ft.source||"",_o={source:Mt?"":Cr(St),eventType:ft.type||"",epsg:ft.epsg||"",countries:Array.isArray(ft.countries)?ft.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};_r.push(_o)}if(It(_r),_r.length>0){const St=_r[0];if(Mt)G(""),$(""),W(""),O(""),R([]);else{if(ft&&typeof ft=="object"){const lr=ft.title;lr&&G(lr||"")}$(St.source||""),W(St.eventType||""),O(St.epsg||""),R(St.countries||[])}K==="drone_image"&&(_e(St.centerLon||""),le(St.centerLat||""),V(St.amslM||""),Se(St.aglM||""),re(St.headingDeg||""),Q(St.yawDeg||""),Je(St.pitchDeg||""),Ut(St.rollDeg||""),vt(St.rtkFix||!1),pt(St.stdHM||""),dt(St.stdVM||""))}}}else if(Mt)if(G(""),$(""),W(""),O(""),R([]),K==="drone_image"&&(_e(""),le(""),V(""),Se(""),re(""),Q(""),Je(""),Ut(""),vt(!1),pt(""),dt("")),ke){const ft={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};It(Array(_.length).fill(null).map(()=>({...ft})))}else It([{source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}]);const or=me?.parsed,So=me?.metadata;let ar,sr,In;or&&(ar=or.description,sr=or.analysis,In=or.recommended_actions),!ar&&!sr&&!In&&So&&(ar=So.description,sr=So.analysis,In=So.recommended_actions),Mt?(Mn(ar||""),un(sr||""),zr(In||"")):(ar!=null&&Mn(ar),sr!=null&&un(sr),In!=null&&zr(In)),Le.generated?Ar(Le.generated):Mt&&Ar(""),Mt&&P(!0),Ui("2a")}async function Vi(){if(console.log("handleSubmit called with:",{uploadedImageId:Ct,title:H,draft:si}),!Ct)return alert("No image to submit");if(!On){U(!0);return}y(!0);try{const k=ln.length>0?ln:[Ct];console.log("DEBUG: Submit - Using image IDs:",k),console.log("DEBUG: Submit - uploadedImageIds:",ln),console.log("DEBUG: Submit - uploadedImageId:",Ct);for(let Re=0;Reg.stopPropagation(),children:[h.jsx("div",{className:q.fullSizeModalHeader,children:h.jsx(Be,{name:"close-modal",variant:"tertiary",size:1,onClick:s,children:"✕"})}),h.jsx("div",{className:q.fullSizeModalImage,children:u?h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Loading image..."})]}):h.jsx("img",{src:d,alt:f})})]})})}function bP({isOpen:e,onClose:n}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:n,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:i=>i.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Please Confirm Your Ratings"}),h.jsx("p",{className:q.ratingWarningText,children:'You must confirm your performance ratings before submitting. Please go back to the rating section and click "Confirm Ratings".'}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Be,{name:"close-warning",variant:"secondary",onClick:n,children:"Close"})})]})})}):null}function CP({isOpen:e,onConfirm:n,onCancel:i}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Delete Image?"}),h.jsx("p",{className:q.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this uploaded image?"}),h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Be,{name:"confirm-delete",variant:"secondary",onClick:n,children:"Delete"}),h.jsx(Be,{name:"cancel-delete",variant:"tertiary",onClick:i,children:"Cancel"})]})]})})}):null}function SP({isOpen:e,onConfirm:n,onCancel:i}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Leave Page?"}),h.jsx("p",{className:q.ratingWarningText,children:"Your uploaded image will be deleted if you leave this page. Are you sure you want to continue?"}),h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Be,{name:"confirm-navigation",variant:"secondary",onClick:n,children:"Leave Page"}),h.jsx(Be,{name:"cancel-navigation",variant:"tertiary",onClick:i,children:"Stay"})]})]})})}):null}function _P({isOpen:e,fallbackInfo:n,onClose:i}){if(!e||!n)return null;const s=(u=>u.includes("quota")||u.includes("credits")?"API quota exceeded - you've used up your monthly free credits":u.includes("rate")||u.includes("429")?"Rate limit exceeded - too many requests":u.includes("loading")||u.includes("503")?"Model is currently loading or unavailable":u.includes("network")||u.includes("timeout")?"Network connection issue":u.includes("MODEL_UNAVAILABLE")?"Model service is temporarily unavailable":u)(n.reason);return h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:u=>u.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"⚠️ Model Changed"}),h.jsxs("p",{className:q.ratingWarningText,children:[h.jsx("strong",{children:n.originalModel})," is currently unavailable. We've automatically switched to ",h.jsx("strong",{children:n.fallbackModel})," to complete your request."]}),h.jsxs("div",{className:q.fallbackReasonBox,children:[h.jsx("p",{className:q.fallbackReasonTitle,children:"Reason:"}),h.jsx("p",{className:q.fallbackReasonText,children:s})]}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Be,{name:"close-fallback",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function EP({isOpen:e,preprocessingInfo:n,onClose:i}){return!e||!n?null:h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"File Converted"}),h.jsxs("p",{className:q.ratingWarningText,children:["Your file ",h.jsx("strong",{children:n.original_filename})," has been converted from",h.jsxs("strong",{children:[" ",n.original_mime_type]})," to",h.jsxs("strong",{children:[" ",n.processed_mime_type]})," for optimal processing.",h.jsx("br",{}),h.jsx("br",{}),"This conversion ensures your file is in the best format for our AI models to analyze."]}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Be,{name:"close-preprocessing",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function NP({isOpen:e,isPreprocessing:n,preprocessingProgress:i,onConfirm:o,onCancel:s}){return e?h.jsx("div",{className:q.fullSizeModalOverlay,onClick:n?void 0:s,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:u=>u.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"File Conversion Required"}),h.jsx("p",{className:q.ratingWarningText,children:"The file you selected will be converted to PNG format. This ensures optimal compatibility and processing by our AI models."}),!n&&h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Be,{name:"confirm-preprocessing",variant:"secondary",onClick:o,children:"Convert File"}),h.jsx(Be,{name:"cancel-preprocessing",variant:"tertiary",onClick:s,children:"Cancel"})]}),n&&h.jsxs("div",{className:q.preprocessingProgress,children:[h.jsx("p",{children:i}),h.jsx(Xo,{className:"text-ifrcRed"})]})]})})}):null}function kP({isOpen:e,unsupportedFile:n,onClose:i}){return!e||!n?null:h.jsx("div",{className:q.fullSizeModalOverlay,onClick:i,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:o=>o.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"Unsupported File Format"}),h.jsxs("p",{className:q.ratingWarningText,children:["The file ",h.jsx("strong",{children:n.name})," is not supported for upload.",h.jsx("br",{}),h.jsx("br",{}),h.jsx("strong",{children:"Supported formats:"}),h.jsx("br",{}),"• Images: JPEG, PNG, TIFF, HEIC, WebP, GIF",h.jsx("br",{}),"• Documents: PDF (will be converted to image)",h.jsx("br",{}),h.jsx("br",{}),h.jsx("strong",{children:"Recommendation:"})," Convert your file to JPEG or PNG format for best compatibility."]}),h.jsx("div",{className:q.ratingWarningButtons,children:h.jsx(Be,{name:"close-unsupported",variant:"secondary",onClick:i,children:"Got it"})})]})})})}function jP({isOpen:e,oversizedFile:n,onClose:i,onCancel:o}){return!e||!n?null:h.jsx("div",{className:q.lightModalOverlay,onClick:o,children:h.jsx("div",{className:q.fullSizeModalContent,onClick:s=>s.stopPropagation(),children:h.jsxs("div",{className:q.ratingWarningContent,children:[h.jsx("h3",{className:q.ratingWarningTitle,children:"File Size Warning"}),h.jsxs("p",{className:q.ratingWarningText,children:["The file ",h.jsx("strong",{children:n.name})," is large (",(n.size/(1024*1024)).toFixed(1),"MB).",h.jsx("br",{}),h.jsx("br",{}),h.jsx("strong",{children:"Warning:"})," This file size might exceed the limits of the AI models we use.",h.jsx("br",{}),h.jsx("br",{}),"You can still proceed, but consider using a smaller file if you encounter issues."]}),h.jsxs("div",{className:q.ratingWarningButtons,children:[h.jsx(Be,{name:"continue-size-warning",variant:"secondary",onClick:i,children:"Continue"}),h.jsx(Be,{name:"cancel-size-warning",variant:"tertiary",onClick:o,children:"Cancel"})]})]})})})}const Jl="selectedVlmModel";function Xg(){let e,n;try{[e]=Bx(),n=ks()}catch(k){console.warn("Router context not available, using fallback:",k),e=new URLSearchParams,n=()=>{}}const[i,o]=v.useState(1),[s,u]=v.useState(!1),[d,f]=v.useState(!1),[g,y]=v.useState(!1),x=v.useRef(i),b=v.useRef(null),[m,w]=v.useState(null),[N,S]=v.useState(null),[_,T]=v.useState([]),[M,$]=v.useState(""),[F,W]=v.useState(""),[fe,O]=v.useState(""),[K,de]=v.useState("crisis_map"),[pe,R]=v.useState([]),[H,G]=v.useState(""),[ee,me]=v.useState(!0),[Ce,Ee]=v.useState(""),[Z,ue]=v.useState(""),[j,V]=v.useState(""),[ae,Se]=v.useState(""),[le,re]=v.useState(""),[te,Q]=v.useState(""),[Y,Je]=v.useState(""),[an,Ut]=v.useState(""),[ot,vt]=v.useState(!1),[lt,pt]=v.useState(""),[ct,dt]=v.useState(""),[yt,Ot]=v.useState([]),[sn,pn]=v.useState([]),[Ln,ai]=v.useState([]),[mn,gn]=v.useState([]),[Rr,Yn]=v.useState([]),[Ht,Yt]=v.useState([]),[Ct,wt]=v.useState(null),[ln,Vt]=v.useState([]),[yr,Ri]=v.useState(null),[si,Ar]=v.useState(""),[$r,Mn]=v.useState(""),[Fr,un]=v.useState(""),[Dn,zr]=v.useState(""),[wr,Ai]=v.useState({accuracy:50,context:50,usability:50}),[$i,Xn]=v.useState(!1),[xr,li]=v.useState(null),[On,P]=v.useState(!1),[I,U]=v.useState(!1),[X,ce]=v.useState(!1),[Te,Me]=v.useState(!1),[ye,xe]=v.useState(null),[we,ve]=v.useState(!1),[$e,Ue]=v.useState(null),[jt,Ye]=v.useState(!1),[Ze,at]=v.useState(null),[Jn,vn]=v.useState(!1),[yn,Ve]=v.useState(null),[Fi,cn]=v.useState(!1),[Hn,Ft]=v.useState(""),[ui,He]=v.useState(!1),[nt,Tt]=v.useState(null),[Br,qe]=v.useState(!1),[br,ci]=v.useState(null),[da,Ur]=v.useState(0);x.current=i,b.current=Ct;const Cr=k=>!k||sn.length===0?k:sn.find(_e=>_e.s_code===k||_e.label===k)?.s_code||k,zi=k=>{$(Cr(k||""))},yo=k=>W(k||""),Ru=k=>O(k||""),fa=k=>de(k||""),ha=k=>R(Array.isArray(k)?k:[]),Is=k=>Ee(k||""),pa=k=>ue(k||""),Bi=k=>V(k||""),Au=k=>Se(k||""),ma=k=>re(k||""),tt=k=>Q(k||""),Rs=k=>Je(k||""),As=k=>Ut(k||""),ga=k=>vt(k||!1),$s=k=>pt(k||""),Fs=k=>dt(k||""),Ui=k=>o(k),va=v.useCallback(()=>{_.length>1&&Ur(k=>k>0?k-1:_.length-1)},[_.length]),wo=v.useCallback(()=>{_.length>1&&Ur(k=>k<_.length-1?k+1:0)},[_.length]),Sr=v.useCallback(k=>{k>=0&&k<_.length&&Ur(k)},[_.length]),er=()=>{if(_.length<5){const k=document.createElement("input");k.type="file",k.accept=".jpg,.jpeg,.png,.tiff,.tif,.heic,.heif,.webp,.gif,.pdf",k.onchange=ke=>{const _e=ke.target;if(_e.files&&_e.files[0]){const oe=_e.files[0];ya(oe)}},k.click()}},tr=k=>{T(ke=>{const _e=ke.filter((oe,De)=>De!==k);return _e.length===1?S(_e[0]):_e.length===0&&S(null),_e}),Ot(ke=>ke.filter((_e,oe)=>oe!==k))},Hi=(k,ke,_e)=>{Ot(oe=>{const De=[...oe];return De[k]||(De[k]={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}),ke==="source"?De[k]={...De[k],[ke]:Cr(_e)}:De[k]={...De[k],[ke]:_e},De})},di=k=>{const ke=["image/jpeg","image/jpg","image/png"],_e=[".jpg",".jpeg",".png"];let oe=!ke.includes(k.type);if(!oe&&k.name){const De=k.name.toLowerCase().substring(k.name.lastIndexOf("."));oe=!_e.includes(De)}return oe},nr=k=>{const ke=["text/html","text/css","application/javascript","application/json","text/plain","application/xml","text/xml","application/zip","application/x-zip-compressed","application/x-rar-compressed","application/x-7z-compressed","audio/","video/","text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"];for(const _e of ke)if(k.type.startsWith(_e))return!0;if(k.name){const _e=k.name.toLowerCase().substring(k.name.lastIndexOf("."));if([".html",".htm",".css",".js",".json",".txt",".xml",".zip",".rar",".7z",".csv",".xlsx",".xls",".pptx",".ppt",".docx",".doc",".mp3",".mp4",".avi",".mov"].includes(_e))return!0}return!1},ya=k=>{if(k){if(console.log("File selected:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),ci(k),qe(!0)),nr(k)){console.log("File format not supported at all, showing unsupported format modal"),Tt(k),He(!0);return}di(k)?(console.log("File needs preprocessing, showing modal"),Ve(k),vn(!0)):(console.log("File does not need preprocessing, setting directly"),_.length===0?(S(k),T([k])):T(_e=>[..._e,k]))}},wa=k=>{if(k){if(console.log("File changed:",k.name,"Type:",k.type,"Size:",k.size),k.size/(1024*1024)>5&&(console.log("File too large, showing size warning modal"),ci(k),qe(!0)),nr(k)){console.log("File format not supported at all, showing unsupported format modal"),Tt(k),He(!0);return}di(k)?(console.log("File needs preprocessing, showing modal"),Ve(k),vn(!0)):(console.log("File does not need preprocessing, replacing last file"),_.length>1?(T(_e=>{const oe=[..._e];return oe[oe.length-1]=k,oe}),_.length===1&&S(k)):(S(k),T([k])))}};async function rr(k){const ke=await k.text();try{return ke?JSON.parse(ke):{}}catch{return{error:ke}}}function xa(k,ke){const _e=k instanceof Error?k.message:`Failed to ${ke.toLowerCase()}`;alert(_e)}async function ba(){if(_.length!==0){u(!0);try{_.length===1?await xo():await zs()}catch(k){xa(k,"Upload")}finally{u(!1)}}}async function xo(){console.log("DEBUG: Starting single image upload");const k=new FormData;if(k.append("file",_[0]),k.append("title",H),k.append("image_type",K),M&&k.append("source",M),F&&k.append("event_type",F),fe&&k.append("epsg",fe),pe.length>0&&pe.forEach(oe=>k.append("countries",oe)),K==="drone_image"&&(Ce&&k.append("center_lon",Ce),Z&&k.append("center_lat",Z),j&&k.append("amsl_m",j),ae&&k.append("agl_m",ae),le&&k.append("heading_deg",le),te&&k.append("yaw_deg",te),Y&&k.append("pitch_deg",Y),an&&k.append("roll_deg",an),ot&&k.append("rtk_fix",ot.toString()),lt&&k.append("std_h_m",lt),ct&&k.append("std_v_m",ct)),ee)k.append("model_name","manual");else{const oe=localStorage.getItem(Jl);oe&&k.append("model_name",oe)}const ke=await fetch("/api/images/",{method:"POST",body:k}),_e=await rr(ke);if(!ke.ok)throw new Error(_e.error||"Upload failed");console.log("DEBUG: Single upload response:",_e),await Bs(_e,!1)}async function zs(){console.log("DEBUG: Starting multi-image upload");const k=new FormData;if(_.forEach(oe=>k.append("files",oe)),k.append("title",H),k.append("image_type",K),yt.forEach((oe,De)=>{oe.source&&k.append(`source_${De}`,oe.source),oe.eventType&&k.append(`event_type_${De}`,oe.eventType),oe.epsg&&k.append(`epsg_${De}`,oe.epsg),oe.countries.length>0&&oe.countries.forEach(Ke=>k.append(`countries_${De}`,Ke)),K==="drone_image"&&(oe.centerLon&&k.append(`center_lon_${De}`,oe.centerLon),oe.centerLat&&k.append(`center_lat_${De}`,oe.centerLat),oe.amslM&&k.append(`amsl_m_${De}`,oe.amslM),oe.aglM&&k.append(`agl_m_${De}`,oe.aglM),oe.headingDeg&&k.append(`heading_deg_${De}`,oe.headingDeg),oe.yawDeg&&k.append(`yaw_deg_${De}`,oe.yawDeg),oe.pitchDeg&&k.append(`pitch_deg_${De}`,oe.pitchDeg),oe.rollDeg&&k.append(`roll_deg_${De}`,oe.rollDeg),oe.rtkFix&&k.append(`rtk_fix_${De}`,oe.rtkFix.toString()),oe.stdHM&&k.append(`std_h_m_${De}`,oe.stdHM),oe.stdVM&&k.append(`std_v_m_${De}`,oe.stdVM))}),ee)k.append("model_name","manual");else{const oe=localStorage.getItem(Jl);oe&&k.append("model_name",oe)}const ke=await fetch("/api/images/multi",{method:"POST",body:k}),_e=await rr(ke);if(!ke.ok)throw new Error(_e.error||"Upload failed");console.log("DEBUG: Multi upload response:",_e),await Bs(_e,!0)}async function Bs(k,ke){Ri(k.image_url),k.preprocessing_info&&typeof k.preprocessing_info=="object"&&"was_preprocessed"in k.preprocessing_info&&k.preprocessing_info.was_preprocessed===!0&&(at(k.preprocessing_info),Ye(!0));const _e=k.image_id;if(!_e)throw new Error("Upload failed: image_id not found");if(wt(_e),ke)if(k.image_ids&&Array.isArray(k.image_ids)){const ft=k.image_ids;console.log("DEBUG: Storing image IDs for multi-upload:",ft),Vt(ft)}else console.log("DEBUG: Multi-upload but no image_ids found, using single ID"),Vt([_e]);else console.log("DEBUG: Storing single image ID:",_e),Vt([_e]);const oe=k,De=oe.raw_json,Ke=De?.fallback_used,It=De?.original_model,Rt=De?.fallback_reason,Pt=oe.model;Ke&&It&&Rt&&(Ue({originalModel:It,fallbackModel:Pt,reason:Rt}),ve(!0));const Lt=oe.model==="manual",ir=De?.metadata;if(ir){const ft=ir.metadata||ir;if(ft&&typeof ft=="object"){const _r=[];if(ke){const St=ft.metadata_images;if(St&&typeof St=="object")for(let lr=1;lr<=_.length;lr++){const _o=`image${lr}`,Hr=St[_o];if(Hr&&typeof Hr=="object"){const Er=Hr,Fu=Er.source||"",zu=Lt?"":Cr(Fu);_r.push({source:zu,eventType:Er.type||"",epsg:Er.epsg||"",countries:Array.isArray(Er.countries)?Er.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else _r.push({source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""})}else{const lr=ft.source||"",Hr={source:Lt?"":Cr(lr),eventType:ft.type||"",epsg:ft.epsg||"",countries:Array.isArray(ft.countries)?ft.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};for(let Er=0;Er<_.length;Er++)_r.push({...Hr})}}else{const St=ft.source||"",_o={source:Lt?"":Cr(St),eventType:ft.type||"",epsg:ft.epsg||"",countries:Array.isArray(ft.countries)?ft.countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};_r.push(_o)}if(Ot(_r),_r.length>0){const St=_r[0];if(Lt)G(""),$(""),W(""),O(""),R([]);else{if(ft&&typeof ft=="object"){const lr=ft.title;lr&&G(lr||"")}$(St.source||""),W(St.eventType||""),O(St.epsg||""),R(St.countries||[])}K==="drone_image"&&(Ee(St.centerLon||""),ue(St.centerLat||""),V(St.amslM||""),Se(St.aglM||""),re(St.headingDeg||""),Q(St.yawDeg||""),Je(St.pitchDeg||""),Ut(St.rollDeg||""),vt(St.rtkFix||!1),pt(St.stdHM||""),dt(St.stdVM||""))}}}else if(Lt)if(G(""),$(""),W(""),O(""),R([]),K==="drone_image"&&(Ee(""),ue(""),V(""),Se(""),re(""),Q(""),Je(""),Ut(""),vt(!1),pt(""),dt("")),ke){const ft={source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""};Ot(Array(_.length).fill(null).map(()=>({...ft})))}else Ot([{source:"",eventType:"",epsg:"",countries:[],centerLon:"",centerLat:"",amslM:"",aglM:"",headingDeg:"",yawDeg:"",pitchDeg:"",rollDeg:"",rtkFix:!1,stdHM:"",stdVM:""}]);const or=De?.parsed,So=De?.metadata;let ar,sr,In;or&&(ar=or.description,sr=or.analysis,In=or.recommended_actions),!ar&&!sr&&!In&&So&&(ar=So.description,sr=So.analysis,In=So.recommended_actions),Lt?(Mn(ar||""),un(sr||""),zr(In||"")):(ar!=null&&Mn(ar),sr!=null&&un(sr),In!=null&&zr(In)),oe.generated?Ar(oe.generated):Lt&&Ar(""),Lt&&P(!0),Ui("2a")}async function Vi(){if(console.log("handleSubmit called with:",{uploadedImageId:Ct,title:H,draft:si}),!Ct)return alert("No image to submit");if(!On){U(!0);return}y(!0);try{const k=ln.length>0?ln:[Ct];console.log("DEBUG: Submit - Using image IDs:",k),console.log("DEBUG: Submit - uploadedImageIds:",ln),console.log("DEBUG: Submit - uploadedImageId:",Ct);for(let Ke=0;Ke{P(!1),o(1),S(null),T([]),w(null),wt(null),Vt([]),Ri(null),G(""),$(""),W(""),O(""),R([]),_e(""),le(""),V(""),Se(""),re(""),Q(""),Je(""),Ut(""),vt(!1),pt(""),dt(""),Ai({accuracy:50,context:50,usability:50}),Ar(""),Mn(""),un(""),zr(""),It([]),ve(!1),He(null),Ye(!1),at(null),vn(!1),qe(null),cn(!1),Ft(""),Ve(!1),Pt(null),We(!1),ci(null),n("/upload",{replace:!0})},bo=v.useCallback(k=>{k==="/upload"||k==="/"||(b.current?(xe(k),De(!0)):n(k))},[n]);async function $u(){if(ye&&b.current)try{await fetch(`/api/images/${b.current}`,{method:"DELETE"}),De(!1),xe(null),n(ye)}catch(k){console.error("Failed to delete image before navigation:",k),De(!1),xe(null),n(ye)}}const Ca=async()=>{if(yn){cn(!0),Ft("Starting file conversion...");try{const k=new FormData;k.append("file",yn),k.append("preprocess_only","true"),Ft("Converting file format...");const ke=await fetch("/api/images/preprocess",{method:"POST",body:k});if(!ke.ok)throw new Error("Preprocessing failed");const Ee=await ke.json();Ft("Finalizing conversion...");const Le=atob(Ee.processed_content),me=new Uint8Array(Le.length);for(let Rt=0;Rt[...Rt,Re]),w(Nt),Ft("Conversion complete!"),setTimeout(()=>{vn(!1),qe(null),cn(!1),Ft("")},1e3)}catch(k){console.error("Preprocessing error:",k),Ft("Conversion failed. Please try again."),setTimeout(()=>{vn(!1),qe(null),cn(!1),Ft("")},2e3)}}},Co=()=>{vn(!1),qe(null),cn(!1),Ft("")},Sa=async k=>{f(!0);try{const ke=k.map(async Re=>{const Nt=await fetch(`/api/images/${Re}`);if(!Nt.ok)throw new Error(`Failed to fetch image ${Re}`);const Rt=await Nt.json(),Lt=await fetch(`/api/images/${Re}/file`);if(!Lt.ok)throw new Error(`Failed to fetch image file ${Re}`);const Mt=await Lt.blob(),ir=Rt.file_key.split("/").pop()||`contributed_${Re}.png`;return{file:new File([Mt],ir,{type:Mt.type}),imageData:Rt}}),Ee=await Promise.all(ke),Le=Ee.map(Re=>Re.file),me=Ee[0]?.imageData;T(Le),Vt(k),k.length===1&&wt(k[0]),Le.length>=1&&S(Le[0]),me?.image_type&&ce(me.image_type)}catch(ke){console.error("Failed to fetch contributed images:",ke),alert(`Failed to load contributed images: ${ke instanceof Error?ke.message:"Unknown error"}`)}finally{f(!1)}};return v.useEffect(()=>{Promise.all([fetch("/api/sources").then(k=>k.json()),fetch("/api/types").then(k=>k.json()),fetch("/api/spatial-references").then(k=>k.json()),fetch("/api/image-types").then(k=>k.json()),fetch("/api/countries").then(k=>k.json()),fetch("/api/models").then(k=>k.json())]).then(([k,ke,Ee,Le,me,Re])=>{!localStorage.getItem(Jl)&&Re?.length&&localStorage.setItem(Jl,Re[0].m_code),pn(k),ai(ke),gn(Ee),Yn(Le),Yt(me),k.length>0&&$(k[0].s_code),Le.length>0&&!e.get("imageType")&&!K&&ce(Le[0].image_type)})},[e,K]),v.useEffect(()=>(window.confirmNavigationIfNeeded=k=>{bo(k)},()=>{delete window.confirmNavigationIfNeeded}),[bo]),v.useEffect(()=>{const k=Le=>{if(b.current){const me="You have an uploaded image that will be deleted if you leave this page. Are you sure you want to leave?";return Le.preventDefault(),Le.returnValue=me,me}},ke=()=>{b.current&&fetch(`/api/images/${b.current}`,{method:"DELETE"}).catch(console.error)},Ee=Le=>{const me=Le.target,Re=me.closest("a[href]")||me.closest("[data-navigate]");if(Re&&b.current){const Nt=Re.getAttribute("href")||Re.getAttribute("data-navigate");Nt&&Nt!=="#"&&!Nt.startsWith("javascript:")&&!Nt.startsWith("mailto:")&&(Le.preventDefault(),Le.stopPropagation(),bo(Nt))}};return window.addEventListener("beforeunload",k),document.addEventListener("click",Ee,!0),()=>{window.removeEventListener("beforeunload",k),document.removeEventListener("click",Ee,!0),ke()}},[bo]),v.useEffect(()=>{if(!N){w(null);return}const k=URL.createObjectURL(N);return w(k),()=>URL.revokeObjectURL(k)},[N]),v.useEffect(()=>{const k=e.get("contribute"),ke=e.get("imageIds");if(k==="true"&&ke){const Ee=ke.split(",").filter(Le=>Le.trim());Ee.length>0&&Sa(Ee)}},[e]),v.useEffect(()=>{i==="2b"&&Ur(0)},[i]),h.jsxs(Iu,{children:[i!==3&&h.jsx("div",{className:"max-w-7xl mx-auto",children:h.jsxs("div",{className:q.uploadContainer,"data-step":i,children:[i===1&&!e.get("step")&&!d&&h.jsx(Kg,{files:_,file:N,preview:m,imageType:K,isManualMode:ee,onFileChange:ya,onRemoveImage:tr,onAddImage:er,onImageTypeChange:fa,onManualModeChange:pe,onChangeFile:wa}),i===1&&e.get("contribute")==="true"&&!d&&_.length>0&&h.jsx(Kg,{files:_,file:N,preview:m,imageType:K,isManualMode:ee,onFileChange:ya,onRemoveImage:tr,onAddImage:er,onImageTypeChange:fa,onManualModeChange:pe,onChangeFile:wa}),s&&h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Generating..."})]}),d&&h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Loading contribution..."})]}),(i===1&&!s&&!d||i===1&&e.get("contribute")==="true"&&!s&&!d&&_.length>0)&&h.jsx("div",{className:q.generateButtonContainer,children:yr?h.jsx(Ue,{name:"generate-from-url",onClick:ba,children:ee?"Start":"Generate Caption"}):h.jsx(Ue,{name:"generate",disabled:_.length===0,onClick:ba,children:ee?"Start":"Generate"})}),i==="2a"&&h.jsxs("div",{className:q.step2Layout,children:[h.jsx("div",{className:q.mapColumn,children:h.jsx(Yg,{files:_,imageUrl:yr,preview:m,onViewFullSize:k=>{li(k||null),Xn(!0)}})}),h.jsx("div",{className:q.contentColumn,children:h.jsxs("div",{className:q.metadataSectionCard,children:[h.jsx(vP,{files:_,imageType:K,title:H,source:M,eventType:F,epsg:de,countries:he,centerLon:Ce,centerLat:Z,amslM:j,aglM:oe,headingDeg:se,yawDeg:te,pitchDeg:Y,rollDeg:an,rtkFix:ot,stdHM:lt,stdVM:ct,metadataArray:yt,sources:sn,types:Ln,spatialReferences:mn,imageTypes:Rr,countriesOptions:Ht,onTitleChange:k=>G(k||""),onSourceChange:zi,onEventTypeChange:yo,onEpsgChange:Ru,onCountriesChange:ha,onCenterLonChange:Is,onCenterLatChange:pa,onAmslMChange:Bi,onAglMChange:Au,onHeadingDegChange:ma,onYawDegChange:tt,onPitchDegChange:Rs,onRollDegChange:As,onRtkFixChange:ga,onStdHMChange:$s,onStdVMChange:Fs,onImageTypeChange:fa,updateMetadataForImage:Hi}),h.jsxs("div",{className:q.confirmSection,children:[h.jsx(kf,{name:"delete",variant:"tertiary",onClick:fi,title:"Delete",ariaLabel:"Delete uploaded image",children:h.jsx(_f,{})}),h.jsx(Ue,{name:"confirm-metadata",onClick:()=>Ui("2b"),children:"Next"})]})]})})]}),i==="2b"&&h.jsxs("div",{className:q.step2bLayout,children:[g&&h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Submitting..."})]}),h.jsxs("div",{className:`${q.topRow} ${On?q.ratingHidden:""}`,children:[h.jsx("div",{className:q.imageSection,children:h.jsx(Yg,{files:_,imageUrl:yr,preview:m,onViewFullSize:k=>{li(k||null),Xn(!0)},currentImageIndex:da,onGoToPrevious:va,onGoToNext:wo,onGoToImage:Sr,showCarousel:!0})}),!On&&h.jsx("div",{className:q.metadataSectionCard,children:h.jsx(yP,{isPerformanceConfirmed:On,scores:wr,onScoreChange:(k,ke)=>Ai(Ee=>({...Ee,[k]:ke})),onConfirmRatings:()=>P(!0),onEditRatings:()=>P(!1)})})]}),h.jsx("div",{className:q.metadataSectionCard,children:h.jsx(wP,{description:$r,analysis:Fr,recommendedActions:Dn,isManualMode:ee,onDescriptionChange:k=>Mn(k||""),onAnalysisChange:k=>un(k||""),onRecommendedActionsChange:k=>zr(k||""),onBack:()=>Ui("2a"),onDelete:fi,onSubmit:Vi,onEditRatings:()=>P(!1),isPerformanceConfirmed:On,isSubmitting:g})})]})]})}),i===3&&h.jsxs("div",{className:q.successContainer,children:[h.jsx(kn,{level:2,className:q.successHeading,children:"Saved!"}),h.jsx("p",{className:q.successText,children:e.get("contribute")==="true"?"Your contribution has been successfully saved.":"Your caption has been successfully saved."}),h.jsx("div",{className:q.successButton,children:h.jsx(Ue,{name:"upload-another",onClick:()=>{qi()},children:"Upload Another"})})]}),h.jsx(xP,{isOpen:$i,imageUrl:yr,preview:m,selectedImageData:xr,onClose:()=>{Xn(!1),li(null)}}),h.jsx(bP,{isOpen:I,onClose:()=>U(!1)}),h.jsx(CP,{isOpen:X,onConfirm:hi,onCancel:()=>ue(!1)}),h.jsx(SP,{isOpen:Te,onConfirm:$u,onCancel:()=>De(!1)}),h.jsx(_P,{isOpen:we,fallbackInfo:Fe,onClose:()=>ve(!1)}),h.jsx(EP,{isOpen:Tt,preprocessingInfo:Qe,onClose:()=>Ye(!1)}),h.jsx(NP,{isOpen:Jn,isPreprocessing:Fi,preprocessingProgress:Hn,onConfirm:Ca,onCancel:Co}),h.jsx(kP,{isOpen:ui,unsupportedFile:nt,onClose:()=>Ve(!1)}),h.jsx(jP,{isOpen:Br,oversizedFile:br,onClose:()=>We(!1),onCancel:()=>We(!1)})]})}const TP="_helpContainer_1wavj_1",PP="_helpSection_1wavj_13",LP="_sectionHeader_1wavj_49",MP="_sectionTitle_1wavj_91",DP="_sectionContent_1wavj_105",OP="_guidelinesList_1wavj_119",IP="_buttonContainer_1wavj_181",ut={helpContainer:TP,helpSection:PP,sectionHeader:LP,sectionTitle:MP,sectionContent:DP,guidelinesList:OP,buttonContainer:IP};function RP(){const e=ks(),{setShowReferenceExamples:n}=cP(),i=()=>{e("/upload")},o=()=>{n(!0),e("/explore")},s=()=>{e("/analytics?view=crisis_maps")};return h.jsx(Iu,{className:"py-10",children:h.jsx("div",{className:ut.helpContainer,children:h.jsxs("div",{className:"space-y-8",children:[h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Introduction"})}),h.jsx("div",{className:ut.sectionContent,children:"In collaboration with the IFRC, PromptAid Vision is a tool that generates textual descriptions of crisis maps/crisis drone images utiliing Visual language models. This prototype is for collecting data for the fine-tuning of our own models. We aim to utilize AI tools to support national societies with rapid decision making during emergencies."}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Ue,{name:"upload-now",variant:"secondary",onClick:i,children:"Upload now →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Guidelines"})}),h.jsxs("div",{className:ut.sectionContent,children:["To make the process smoother, please follow the guidelines below:",h.jsxs("ul",{className:ut.guidelinesList,children:[h.jsx("li",{children:"Avoid uploading images that are not crisis maps/crisis drone images."}),h.jsx("li",{children:"Confirm the image details prior to modifying the description."}),h.jsx("li",{children:"Before the modification, please read the description generated and provide a rating via the rating sliders."}),h.jsx("li",{children:'Click the "Submit" button to save the description.'})]})]}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Ue,{name:"see-examples",variant:"secondary",onClick:o,children:"See examples →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"VLMs"})}),h.jsx("div",{className:ut.sectionContent,children:"PromptAid Vision uses a variety of Visual Language Models (VLMs). A random VLM is selected for each upload. Therefore feel free to delete and reupload. You can view performance details here:"}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Ue,{name:"view-vlm-details",variant:"secondary",onClick:s,children:"View VLM details →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Dataset"})}),h.jsx("div",{className:ut.sectionContent,children:"All users are able to export the dataset. You could apply filters when exporting, and it have the option to organize based on model fine-tuning formats."}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Ue,{name:"export-dataset",variant:"secondary",onClick:()=>{n(!1),e("/explore"),setTimeout(()=>{const u=document.querySelector('[name="export-dataset"]');u&&u.click()},100)},children:"Export dataset →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Contact us"})}),h.jsx("div",{className:ut.sectionContent,children:"Need help or have questions about PromptAid Vision? Our team is here to support you."}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Ue,{name:"contact-support",variant:"secondary",disabled:!0,children:"Get in touch →"})})]})]})})})}const AP="_demoContainer_19wfc_1",$P="_section_19wfc_13",FP="_pageTitle_19wfc_33",zP="_description_19wfc_43",BP="_sectionHeader_19wfc_57",UP="_sectionTitle_19wfc_65",HP="_sectionDescription_19wfc_75",VP="_switchGrid_19wfc_87",qP="_switchItem_19wfc_99",WP="_switchLabel_19wfc_119",GP="_switchWrapper_19wfc_133",ZP="_stateDisplay_19wfc_147",QP="_nativeCheckboxLabel_19wfc_165",KP="_nativeCheckbox_19wfc_165",YP="_buttonToggle_19wfc_197",XP="_buttonToggleOff_19wfc_219",JP="_buttonToggleOn_19wfc_231",e4="_buttonToggleText_19wfc_253",fe={demoContainer:AP,section:$P,pageTitle:FP,description:zP,sectionHeader:BP,sectionTitle:UP,sectionDescription:HP,switchGrid:VP,switchItem:qP,switchLabel:WP,switchWrapper:GP,stateDisplay:ZP,nativeCheckboxLabel:QP,nativeCheckbox:KP,buttonToggle:YP,buttonToggleOff:XP,buttonToggleOn:JP,buttonToggleText:e4};function t4(){const[e,n]=v.useState("off"),[i,o]=v.useState("on"),[s,u]=v.useState(!1),[d,f]=v.useState(!0),[g,y]=v.useState(!1),[x,b]=v.useState(!0),[m,w]=v.useState(!1),[N,S]=v.useState(!0),[_,T]=v.useState(!1),[M,$]=v.useState(!1);return h.jsx(Iu,{className:"py-10",children:h.jsx("div",{className:fe.demoContainer,children:h.jsxs("div",{className:"space-y-12",children:[h.jsxs("div",{className:fe.section,children:[h.jsx(kn,{level:2,className:fe.pageTitle,children:"Switch Components Demo"}),h.jsx("p",{className:fe.description,children:"This page showcases all available switch/toggle implementations. Each switch is clearly labeled so you can easily identify and compare different UI patterns."})]}),h.jsxs("div",{className:fe.section,children:[h.jsxs("div",{className:fe.sectionHeader,children:[h.jsx(kn,{level:3,className:fe.sectionTitle,children:"1. SegmentInput Switches (IFRC UI)"}),h.jsx("p",{className:fe.sectionDescription,children:"Using SegmentInput component for binary on/off choices"})]}),h.jsxs("div",{className:fe.switchGrid,children:[h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 1: SegmentInput (Off by default)"}),h.jsx(on,{withInternalPadding:!0,className:fe.switchWrapper,children:h.jsx(su,{name:"switch-1",value:e,onChange:F=>{(F==="on"||F==="off")&&n(F)},options:[{key:"off",label:"Off"},{key:"on",label:"On"}],keySelector:F=>F.key,labelSelector:F=>F.label})}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:e})]})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 2: SegmentInput (On by default)"}),h.jsx(on,{withInternalPadding:!0,className:fe.switchWrapper,children:h.jsx(su,{name:"switch-2",value:i,onChange:F=>{(F==="on"||F==="off")&&o(F)},options:[{key:"off",label:"Off"},{key:"on",label:"On"}],keySelector:F=>F.key,labelSelector:F=>F.label})}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:i})]})]})]})]}),h.jsxs("div",{className:fe.section,children:[h.jsxs("div",{className:fe.sectionHeader,children:[h.jsx(kn,{level:3,className:fe.sectionTitle,children:"2. IFRC Checkbox Switches"}),h.jsx("p",{className:fe.sectionDescription,children:"Using Checkbox component from @ifrc-go/ui for on/off toggles"})]}),h.jsxs("div",{className:fe.switchGrid,children:[h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 3: IFRC Checkbox (Off by default)"}),h.jsx(wd,{name:"switch-3",value:s,onChange:u,label:"Enable feature"}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:s?"On":"Off"})]})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 4: IFRC Checkbox (On by default)"}),h.jsx(wd,{name:"switch-4",value:d,onChange:f,label:"Auto-save enabled"}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:d?"On":"Off"})]})]})]})]}),h.jsxs("div",{className:fe.section,children:[h.jsxs("div",{className:fe.sectionHeader,children:[h.jsx(kn,{level:3,className:fe.sectionTitle,children:"3. Native HTML Checkbox Switches"}),h.jsx("p",{className:fe.sectionDescription,children:'Using native HTML input[type="checkbox"] elements (as used in AdminPage)'})]}),h.jsxs("div",{className:fe.switchGrid,children:[h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 5: Native Checkbox (Off by default)"}),h.jsxs("label",{className:fe.nativeCheckboxLabel,children:[h.jsx("input",{type:"checkbox",checked:g,onChange:F=>y(F.target.checked),className:fe.nativeCheckbox}),h.jsx("span",{children:"Available for use"})]}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:g?"On":"Off"})]})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 6: Native Checkbox (On by default)"}),h.jsxs("label",{className:fe.nativeCheckboxLabel,children:[h.jsx("input",{type:"checkbox",checked:x,onChange:F=>b(F.target.checked),className:fe.nativeCheckbox}),h.jsx("span",{children:"RTK Fix Available"})]}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:x?"On":"Off"})]})]})]})]}),h.jsxs("div",{className:fe.section,children:[h.jsxs("div",{className:fe.sectionHeader,children:[h.jsx(kn,{level:3,className:fe.sectionTitle,children:"4. Custom CSS Toggle Switches"}),h.jsx("p",{className:fe.sectionDescription,children:"Custom-built toggle switch component with smooth animations"})]}),h.jsxs("div",{className:fe.switchGrid,children:[h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 7: Custom Toggle (Off by default)"}),h.jsx(ls,{name:"switch-7",checked:m,onChange:w,label:"Enable notifications"}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:m?"On":"Off"})]})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 8: Custom Toggle (On by default)"}),h.jsx(ls,{name:"switch-8",checked:N,onChange:S,label:"Dark mode"}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:N?"On":"Off"})]})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 9: Custom Toggle (No label, Off by default)"}),h.jsx(ls,{name:"switch-9",checked:_,onChange:T}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:_?"On":"Off"})]})]})]})]}),h.jsxs("div",{className:fe.section,children:[h.jsxs("div",{className:fe.sectionHeader,children:[h.jsx(kn,{level:3,className:fe.sectionTitle,children:"5. Button-based Toggle Switch"}),h.jsx("p",{className:fe.sectionDescription,children:"Using a button element styled as a toggle switch"})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Switch 10: Button Toggle (Off by default)"}),h.jsx("button",{type:"button",className:`${fe.buttonToggle} ${M?fe.buttonToggleOn:fe.buttonToggleOff}`,onClick:()=>$(!M),children:h.jsx("span",{className:fe.buttonToggleText,children:M?"On":"Off"})}),h.jsxs("div",{className:fe.stateDisplay,children:["State: ",h.jsx("strong",{children:M?"On":"Off"})]})]})]}),h.jsxs("div",{className:fe.section,children:[h.jsxs("div",{className:fe.sectionHeader,children:[h.jsx(kn,{level:3,className:fe.sectionTitle,children:"6. Disabled Switch States"}),h.jsx("p",{className:fe.sectionDescription,children:"Examples of switches in disabled state"})]}),h.jsxs("div",{className:fe.switchGrid,children:[h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Disabled SegmentInput"}),h.jsx(on,{withInternalPadding:!0,className:fe.switchWrapper,children:h.jsx(su,{name:"disabled-segment",value:"on",onChange:()=>{},options:[{key:"off",label:"Off"},{key:"on",label:"On"}],keySelector:F=>F.key,labelSelector:F=>F.label,disabled:!0})})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Disabled IFRC Checkbox"}),h.jsx(wd,{name:"disabled-checkbox",value:!0,onChange:()=>{},label:"Disabled option",disabled:!0})]}),h.jsxs("div",{className:fe.switchItem,children:[h.jsx("div",{className:fe.switchLabel,children:"Disabled Custom Toggle"}),h.jsx(ls,{name:"disabled-custom",checked:!0,onChange:()=>{},label:"Disabled toggle",disabled:!0})]})]})]})]})})})}const n4=v.createContext(void 0),r4=({children:e})=>{const[n,i]=v.useState(!1),[o,s]=v.useState(!0),u=async()=>{const y=localStorage.getItem("adminToken");if(!y){i(!1),s(!1);return}try{(await fetch("/api/admin/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y}`}})).ok?i(!0):(localStorage.removeItem("adminToken"),i(!1))}catch(x){console.error("Error verifying admin token:",x),localStorage.removeItem("adminToken"),i(!1)}finally{s(!1)}},d=async y=>{try{const x=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:y})});if(x.ok){const b=await x.json();return localStorage.setItem("adminToken",b.access_token),i(!0),!0}else return!1}catch(x){return console.error("Login error:",x),!1}},f=()=>{localStorage.removeItem("adminToken"),i(!1)};v.useEffect(()=>{u()},[]);const g={isAuthenticated:n,isLoading:o,login:d,logout:f,verifyToken:u};return h.jsx(n4.Provider,{value:g,children:e})},i4=v.lazy(()=>Kn(()=>import("./index-Dz4vX1uX.js"),__vite__mapDeps([0,1]))),o4=v.lazy(()=>Kn(()=>import("./index-7oBZSGHr.js"),__vite__mapDeps([2,3,4,5,6]))),a4=v.lazy(()=>Kn(()=>import("./AdminPage-C8Qwkg88.js"),__vite__mapDeps([7,3,8]))),s4=v.lazy(()=>Kn(()=>import("./index-Bx3ZvIBj.js"),__vite__mapDeps([9,3,4,5,10])));class l4 extends v.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n,i){console.error("Error caught by boundary:",n,i)}render(){return this.state.hasError?h.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[h.jsx("h2",{children:"Something went wrong"}),h.jsx("p",{children:"Please refresh the page to try again."}),h.jsx("button",{onClick:()=>window.location.reload(),children:"Refresh Page"})]}):this.props.children}}const Pi=e=>{const n=e();return n.catch(()=>{}),n},u4=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{Pi(()=>Kn(()=>import("./index-Dz4vX1uX.js"),__vite__mapDeps([0,1]))),Pi(()=>Kn(()=>import("./index-7oBZSGHr.js"),__vite__mapDeps([2,3,4,5,6]))),Pi(()=>Kn(()=>import("./AdminPage-C8Qwkg88.js"),__vite__mapDeps([7,3,8]))),Pi(()=>Kn(()=>import("./index-Bx3ZvIBj.js"),__vite__mapDeps([9,3,4,5,10])))}):setTimeout(()=>{Pi(()=>Kn(()=>import("./index-Dz4vX1uX.js"),__vite__mapDeps([0,1]))),Pi(()=>Kn(()=>import("./index-7oBZSGHr.js"),__vite__mapDeps([2,3,4,5,6]))),Pi(()=>Kn(()=>import("./AdminPage-C8Qwkg88.js"),__vite__mapDeps([7,3,8]))),Pi(()=>Kn(()=>import("./index-Bx3ZvIBj.js"),__vite__mapDeps([9,3,4,5,10])))},1e3)};function c4(){const e=v.useMemo(()=>Ex([{element:h.jsx(Z2,{}),children:[{path:"/",element:h.jsx(Xg,{})},{path:"/upload",element:h.jsx(Xg,{})},{path:"/analytics",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Analytics..."}),children:h.jsx(i4,{})})},{path:"/explore",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Explore..."}),children:h.jsx(o4,{})})},{path:"/help",element:h.jsx(RP,{})},{path:"/demo",element:h.jsx(t4,{})},{path:"/admin",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Admin..."}),children:h.jsx(a4,{})})},{path:"/map/:mapId",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Map Details..."}),children:h.jsx(s4,{})})}]}],{basename:"/"}),[]),[n,i]=v.useState([]);v.useEffect(()=>{u4()},[]);const o=v.useCallback(g=>{i(y=>Qx([...y,g],x=>x.name)??y)},[i]),s=v.useCallback(g=>{i(y=>{const x=y.findIndex(m=>m.name===g);if(x===-1)return y;const b=[...y];return b.splice(x,1),b})},[i]),u=v.useCallback((g,y)=>{i(x=>{const b=x.findIndex(w=>w.name===g);if(b===-1)return x;const m=[...x];return m[b]={...m[b],...y},m})},[i]),d=v.useMemo(()=>({alerts:n,addAlert:o,removeAlert:s,updateAlert:u}),[n,o,s,u]),f=v.useMemo(()=>({languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{},currentLanguage:"en",setCurrentLanguage:()=>{},strings:{},setStrings:()=>{},registerNamespace:()=>{}}),[]);return h.jsx(l4,{children:h.jsx(Wx.Provider,{value:d,children:h.jsx(y0.Provider,{value:f,children:h.jsx(r4,{children:h.jsx(uP,{children:h.jsx(Ox,{router:e})})})})})})}function d4(){return h.jsx(c4,{})}console.log("React version at runtime:",v.version,"createContext exists?",!!v.createContext);X1.createRoot(document.getElementById("root")).render(h.jsx(v.StrictMode,{children:h.jsx(d4,{})}));export{Mb as A,ua as B,p4 as C,cP as D,v4 as E,_f as F,Kn as G,kn as H,q as I,io as J,h4 as K,su as L,xP as M,Iu as N,jt as O,qg as P,w4 as Q,E0 as R,wd as S,n4 as T,y4 as U,f4 as V,e0 as W,Xo as _,ze as a,Ot as b,C4 as c,S4 as d,m4 as e,Pb as f,S0 as g,b4 as h,x4 as i,h as j,gr as k,Jx as l,tN as m,Ue as n,Me as o,nb as p,cs as q,v as r,_0 as s,y0 as t,Bx as u,Ab as v,$b as w,ks as x,g4 as y,on as z}; +Recommended Actions: ${Dn}`,_e={title:H,edited:ke,accuracy:wr.accuracy,context:wr.context,usability:wr.usability};console.log("Updating caption:",_e);const oe=await fetch(`/api/images/${Ct}/caption`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(_e)}),De=await rr(oe);if(!oe.ok)throw new Error(De.error||"Caption update failed");wt(null),Vt([]),Ui(3)}catch(k){xa(k,"Submit")}finally{y(!1)}}async function fi(){if(console.log("handleDelete called with uploadedImageId:",Ct),!Ct){alert("No image to delete. Please try refreshing the page.");return}ce(!0)}async function hi(){try{console.log("Deleting image with ID:",Ct);const k=await fetch(`/api/images/${Ct}`,{method:"DELETE"});if(!k.ok){const ke=await rr(k);throw new Error(ke.error||`Delete failed with status ${k.status}`)}ce(!1),qi()}catch(k){xa(k,"Delete")}}const qi=()=>{P(!1),o(1),S(null),T([]),w(null),wt(null),Vt([]),Ri(null),G(""),$(""),W(""),O(""),R([]),Ee(""),ue(""),V(""),Se(""),re(""),Q(""),Je(""),Ut(""),vt(!1),pt(""),dt(""),Ai({accuracy:50,context:50,usability:50}),Ar(""),Mn(""),un(""),zr(""),Ot([]),ve(!1),Ue(null),Ye(!1),at(null),vn(!1),Ve(null),cn(!1),Ft(""),He(!1),Tt(null),qe(!1),ci(null),n("/upload",{replace:!0})},bo=v.useCallback(k=>{k==="/upload"||k==="/"||(b.current?(xe(k),Me(!0)):n(k))},[n]);async function $u(){if(ye&&b.current)try{await fetch(`/api/images/${b.current}`,{method:"DELETE"}),Me(!1),xe(null),n(ye)}catch(k){console.error("Failed to delete image before navigation:",k),Me(!1),xe(null),n(ye)}}const Ca=async()=>{if(yn){cn(!0),Ft("Starting file conversion...");try{const k=new FormData;k.append("file",yn),k.append("preprocess_only","true"),Ft("Converting file format...");const ke=await fetch("/api/images/preprocess",{method:"POST",body:k});if(!ke.ok)throw new Error("Preprocessing failed");const _e=await ke.json();Ft("Finalizing conversion...");const oe=atob(_e.processed_content),De=new Uint8Array(oe.length);for(let Rt=0;Rt[...Rt,Ke]),w(It),Ft("Conversion complete!"),setTimeout(()=>{vn(!1),Ve(null),cn(!1),Ft("")},1e3)}catch(k){console.error("Preprocessing error:",k),Ft("Conversion failed. Please try again."),setTimeout(()=>{vn(!1),Ve(null),cn(!1),Ft("")},2e3)}}},Co=()=>{vn(!1),Ve(null),cn(!1),Ft("")},Sa=async k=>{f(!0);try{const ke=k.map(async Ke=>{const It=await fetch(`/api/images/${Ke}`);if(!It.ok)throw new Error(`Failed to fetch image ${Ke}`);const Rt=await It.json(),Pt=await fetch(`/api/images/${Ke}/file`);if(!Pt.ok)throw new Error(`Failed to fetch image file ${Ke}`);const Lt=await Pt.blob(),ir=Rt.file_key.split("/").pop()||`contributed_${Ke}.png`;return{file:new File([Lt],ir,{type:Lt.type}),imageData:Rt}}),_e=await Promise.all(ke),oe=_e.map(Ke=>Ke.file),De=_e[0]?.imageData;T(oe),Vt(k),k.length===1&&wt(k[0]),oe.length>=1&&S(oe[0]),De?.image_type&&de(De.image_type)}catch(ke){console.error("Failed to fetch contributed images:",ke),alert(`Failed to load contributed images: ${ke instanceof Error?ke.message:"Unknown error"}`)}finally{f(!1)}};return v.useEffect(()=>{Promise.all([fetch("/api/sources").then(k=>k.json()),fetch("/api/types").then(k=>k.json()),fetch("/api/spatial-references").then(k=>k.json()),fetch("/api/image-types").then(k=>k.json()),fetch("/api/countries").then(k=>k.json()),fetch("/api/models").then(k=>k.json())]).then(([k,ke,_e,oe,De,Ke])=>{!localStorage.getItem(Jl)&&Ke?.length&&localStorage.setItem(Jl,Ke[0].m_code),pn(k),ai(ke),gn(_e),Yn(oe),Yt(De),k.length>0&&$(k[0].s_code),oe.length>0&&!e.get("imageType")&&!K&&de(oe[0].image_type)})},[e,K]),v.useEffect(()=>(window.confirmNavigationIfNeeded=k=>{bo(k)},()=>{delete window.confirmNavigationIfNeeded}),[bo]),v.useEffect(()=>{const k=oe=>{if(b.current){const De="You have an uploaded image that will be deleted if you leave this page. Are you sure you want to leave?";return oe.preventDefault(),oe.returnValue=De,De}},ke=()=>{b.current&&fetch(`/api/images/${b.current}`,{method:"DELETE"}).catch(console.error)},_e=oe=>{const De=oe.target,Ke=De.closest("a[href]")||De.closest("[data-navigate]");if(Ke&&b.current){const It=Ke.getAttribute("href")||Ke.getAttribute("data-navigate");It&&It!=="#"&&!It.startsWith("javascript:")&&!It.startsWith("mailto:")&&(oe.preventDefault(),oe.stopPropagation(),bo(It))}};return window.addEventListener("beforeunload",k),document.addEventListener("click",_e,!0),()=>{window.removeEventListener("beforeunload",k),document.removeEventListener("click",_e,!0),ke()}},[bo]),v.useEffect(()=>{if(!N){w(null);return}const k=URL.createObjectURL(N);return w(k),()=>URL.revokeObjectURL(k)},[N]),v.useEffect(()=>{const k=e.get("contribute"),ke=e.get("imageIds");if(k==="true"&&ke){const _e=ke.split(",").filter(oe=>oe.trim());_e.length>0&&Sa(_e)}},[e]),v.useEffect(()=>{i==="2b"&&Ur(0)},[i]),h.jsxs(Iu,{children:[i!==3&&h.jsx("div",{className:"max-w-7xl mx-auto",children:h.jsxs("div",{className:q.uploadContainer,"data-step":i,children:[i===1&&!e.get("step")&&!d&&h.jsx(Kg,{files:_,file:N,preview:m,imageType:K,isManualMode:ee,onFileChange:ya,onRemoveImage:tr,onAddImage:er,onImageTypeChange:fa,onManualModeChange:me,onChangeFile:wa}),i===1&&e.get("contribute")==="true"&&!d&&_.length>0&&h.jsx(Kg,{files:_,file:N,preview:m,imageType:K,isManualMode:ee,onFileChange:ya,onRemoveImage:tr,onAddImage:er,onImageTypeChange:fa,onManualModeChange:me,onChangeFile:wa}),s&&h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Generating..."})]}),d&&h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Loading contribution..."})]}),(i===1&&!s&&!d||i===1&&e.get("contribute")==="true"&&!s&&!d&&_.length>0)&&h.jsx("div",{className:q.generateButtonContainer,children:yr?h.jsx(Be,{name:"generate-from-url",onClick:ba,children:ee?"Start":"Generate Caption"}):h.jsx(Be,{name:"generate",disabled:_.length===0,onClick:ba,children:ee?"Start":"Generate"})}),i==="2a"&&h.jsxs("div",{className:q.step2Layout,children:[h.jsx("div",{className:q.mapColumn,children:h.jsx(Yg,{files:_,imageUrl:yr,preview:m,onViewFullSize:k=>{li(k||null),Xn(!0)}})}),h.jsx("div",{className:q.contentColumn,children:h.jsxs("div",{className:q.metadataSectionCard,children:[h.jsx(vP,{files:_,imageType:K,title:H,source:M,eventType:F,epsg:fe,countries:pe,centerLon:Ce,centerLat:Z,amslM:j,aglM:ae,headingDeg:le,yawDeg:te,pitchDeg:Y,rollDeg:an,rtkFix:ot,stdHM:lt,stdVM:ct,metadataArray:yt,sources:sn,types:Ln,spatialReferences:mn,imageTypes:Rr,countriesOptions:Ht,onTitleChange:k=>G(k||""),onSourceChange:zi,onEventTypeChange:yo,onEpsgChange:Ru,onCountriesChange:ha,onCenterLonChange:Is,onCenterLatChange:pa,onAmslMChange:Bi,onAglMChange:Au,onHeadingDegChange:ma,onYawDegChange:tt,onPitchDegChange:Rs,onRollDegChange:As,onRtkFixChange:ga,onStdHMChange:$s,onStdVMChange:Fs,onImageTypeChange:fa,updateMetadataForImage:Hi}),h.jsxs("div",{className:q.confirmSection,children:[h.jsx(kf,{name:"delete",variant:"tertiary",onClick:fi,title:"Delete",ariaLabel:"Delete uploaded image",children:h.jsx(_f,{})}),h.jsx(Be,{name:"confirm-metadata",onClick:()=>Ui("2b"),children:"Next"})]})]})})]}),i==="2b"&&h.jsxs("div",{className:q.step2bLayout,children:[g&&h.jsxs("div",{className:q.loadingContainer,children:[h.jsx(Xo,{className:"text-ifrcRed"}),h.jsx("p",{className:q.loadingText,children:"Submitting..."})]}),h.jsxs("div",{className:`${q.topRow} ${On?q.ratingHidden:""}`,children:[h.jsx("div",{className:q.imageSection,children:h.jsx(Yg,{files:_,imageUrl:yr,preview:m,onViewFullSize:k=>{li(k||null),Xn(!0)},currentImageIndex:da,onGoToPrevious:va,onGoToNext:wo,onGoToImage:Sr,showCarousel:!0})}),!On&&h.jsx("div",{className:q.metadataSectionCard,children:h.jsx(yP,{isPerformanceConfirmed:On,scores:wr,onScoreChange:(k,ke)=>Ai(_e=>({..._e,[k]:ke})),onConfirmRatings:()=>P(!0),onEditRatings:()=>P(!1)})})]}),h.jsx("div",{className:q.metadataSectionCard,children:h.jsx(wP,{description:$r,analysis:Fr,recommendedActions:Dn,isManualMode:ee,onDescriptionChange:k=>Mn(k||""),onAnalysisChange:k=>un(k||""),onRecommendedActionsChange:k=>zr(k||""),onBack:()=>Ui("2a"),onDelete:fi,onSubmit:Vi,onEditRatings:()=>P(!1),isPerformanceConfirmed:On,isSubmitting:g})})]})]})}),i===3&&h.jsxs("div",{className:q.successContainer,children:[h.jsx(kn,{level:2,className:q.successHeading,children:"Saved!"}),h.jsx("p",{className:q.successText,children:e.get("contribute")==="true"?"Your contribution has been successfully saved.":"Your caption has been successfully saved."}),h.jsx("div",{className:q.successButton,children:h.jsx(Be,{name:"upload-another",onClick:()=>{qi()},children:"Upload Another"})})]}),h.jsx(xP,{isOpen:$i,imageUrl:yr,preview:m,selectedImageData:xr,onClose:()=>{Xn(!1),li(null)}}),h.jsx(bP,{isOpen:I,onClose:()=>U(!1)}),h.jsx(CP,{isOpen:X,onConfirm:hi,onCancel:()=>ce(!1)}),h.jsx(SP,{isOpen:Te,onConfirm:$u,onCancel:()=>Me(!1)}),h.jsx(_P,{isOpen:we,fallbackInfo:$e,onClose:()=>ve(!1)}),h.jsx(EP,{isOpen:jt,preprocessingInfo:Ze,onClose:()=>Ye(!1)}),h.jsx(NP,{isOpen:Jn,isPreprocessing:Fi,preprocessingProgress:Hn,onConfirm:Ca,onCancel:Co}),h.jsx(kP,{isOpen:ui,unsupportedFile:nt,onClose:()=>He(!1)}),h.jsx(jP,{isOpen:Br,oversizedFile:br,onClose:()=>qe(!1),onCancel:()=>qe(!1)})]})}const TP="_helpContainer_1wavj_1",PP="_helpSection_1wavj_13",LP="_sectionHeader_1wavj_49",MP="_sectionTitle_1wavj_91",DP="_sectionContent_1wavj_105",OP="_guidelinesList_1wavj_119",IP="_buttonContainer_1wavj_181",ut={helpContainer:TP,helpSection:PP,sectionHeader:LP,sectionTitle:MP,sectionContent:DP,guidelinesList:OP,buttonContainer:IP};function RP(){const e=ks(),{setShowReferenceExamples:n}=cP(),i=()=>{e("/upload")},o=()=>{n(!0),e("/explore")},s=()=>{e("/analytics?view=crisis_maps")};return h.jsx(Iu,{className:"py-10",children:h.jsx("div",{className:ut.helpContainer,children:h.jsxs("div",{className:"space-y-8",children:[h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Introduction"})}),h.jsx("div",{className:ut.sectionContent,children:"In collaboration with the IFRC, PromptAid Vision is a tool that generates textual descriptions of crisis maps/crisis drone images utiliing Visual language models. This prototype is for collecting data for the fine-tuning of our own models. We aim to utilize AI tools to support national societies with rapid decision making during emergencies."}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Be,{name:"upload-now",variant:"secondary",onClick:i,children:"Upload now →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Guidelines"})}),h.jsxs("div",{className:ut.sectionContent,children:["To make the process smoother, please follow the guidelines below:",h.jsxs("ul",{className:ut.guidelinesList,children:[h.jsx("li",{children:"Avoid uploading images that are not crisis maps/crisis drone images."}),h.jsx("li",{children:"Confirm the image details prior to modifying the description."}),h.jsx("li",{children:"Before the modification, please read the description generated and provide a rating via the rating sliders."}),h.jsx("li",{children:'Click the "Submit" button to save the description.'})]})]}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Be,{name:"see-examples",variant:"secondary",onClick:o,children:"See examples →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"VLMs"})}),h.jsx("div",{className:ut.sectionContent,children:"PromptAid Vision uses a variety of Visual Language Models (VLMs). A random VLM is selected for each upload. Therefore feel free to delete and reupload. You can view performance details here:"}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Be,{name:"view-vlm-details",variant:"secondary",onClick:s,children:"View VLM details →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Dataset"})}),h.jsx("div",{className:ut.sectionContent,children:"All users are able to export the dataset. You could apply filters when exporting, and it have the option to organize based on model fine-tuning formats."}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Be,{name:"export-dataset",variant:"secondary",onClick:()=>{n(!1),e("/explore"),setTimeout(()=>{const u=document.querySelector('[name="export-dataset"]');u&&u.click()},100)},children:"Export dataset →"})})]}),h.jsxs("div",{className:ut.helpSection,children:[h.jsx("div",{className:ut.sectionHeader,children:h.jsx(kn,{level:3,className:ut.sectionTitle,children:"Contact us"})}),h.jsx("div",{className:ut.sectionContent,children:"Need help or have questions about PromptAid Vision? Our team is here to support you."}),h.jsx("div",{className:ut.buttonContainer,children:h.jsx(Be,{name:"contact-support",variant:"secondary",disabled:!0,children:"Get in touch →"})})]})]})})})}const AP="_demoContainer_19wfc_1",$P="_section_19wfc_13",FP="_pageTitle_19wfc_33",zP="_description_19wfc_43",BP="_sectionHeader_19wfc_57",UP="_sectionTitle_19wfc_65",HP="_sectionDescription_19wfc_75",VP="_switchGrid_19wfc_87",qP="_switchItem_19wfc_99",WP="_switchLabel_19wfc_119",GP="_switchWrapper_19wfc_133",ZP="_stateDisplay_19wfc_147",QP="_nativeCheckboxLabel_19wfc_165",KP="_nativeCheckbox_19wfc_165",YP="_buttonToggle_19wfc_197",XP="_buttonToggleOff_19wfc_219",JP="_buttonToggleOn_19wfc_231",eL="_buttonToggleText_19wfc_253",he={demoContainer:AP,section:$P,pageTitle:FP,description:zP,sectionHeader:BP,sectionTitle:UP,sectionDescription:HP,switchGrid:VP,switchItem:qP,switchLabel:WP,switchWrapper:GP,stateDisplay:ZP,nativeCheckboxLabel:QP,nativeCheckbox:KP,buttonToggle:YP,buttonToggleOff:XP,buttonToggleOn:JP,buttonToggleText:eL};function tL(){const[e,n]=v.useState("off"),[i,o]=v.useState("on"),[s,u]=v.useState(!1),[d,f]=v.useState(!0),[g,y]=v.useState(!1),[x,b]=v.useState(!0),[m,w]=v.useState(!1),[N,S]=v.useState(!0),[_,T]=v.useState(!1),[M,$]=v.useState(!1);return h.jsx(Iu,{className:"py-10",children:h.jsx("div",{className:he.demoContainer,children:h.jsxs("div",{className:"space-y-12",children:[h.jsxs("div",{className:he.section,children:[h.jsx(kn,{level:2,className:he.pageTitle,children:"Switch Components Demo"}),h.jsx("p",{className:he.description,children:"This page showcases all available switch/toggle implementations. Each switch is clearly labeled so you can easily identify and compare different UI patterns."})]}),h.jsxs("div",{className:he.section,children:[h.jsxs("div",{className:he.sectionHeader,children:[h.jsx(kn,{level:3,className:he.sectionTitle,children:"1. SegmentInput Switches (IFRC UI)"}),h.jsx("p",{className:he.sectionDescription,children:"Using SegmentInput component for binary on/off choices"})]}),h.jsxs("div",{className:he.switchGrid,children:[h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 1: SegmentInput (Off by default)"}),h.jsx(on,{withInternalPadding:!0,className:he.switchWrapper,children:h.jsx(su,{name:"switch-1",value:e,onChange:F=>{(F==="on"||F==="off")&&n(F)},options:[{key:"off",label:"Off"},{key:"on",label:"On"}],keySelector:F=>F.key,labelSelector:F=>F.label})}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:e})]})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 2: SegmentInput (On by default)"}),h.jsx(on,{withInternalPadding:!0,className:he.switchWrapper,children:h.jsx(su,{name:"switch-2",value:i,onChange:F=>{(F==="on"||F==="off")&&o(F)},options:[{key:"off",label:"Off"},{key:"on",label:"On"}],keySelector:F=>F.key,labelSelector:F=>F.label})}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:i})]})]})]})]}),h.jsxs("div",{className:he.section,children:[h.jsxs("div",{className:he.sectionHeader,children:[h.jsx(kn,{level:3,className:he.sectionTitle,children:"2. IFRC Checkbox Switches"}),h.jsx("p",{className:he.sectionDescription,children:"Using Checkbox component from @ifrc-go/ui for on/off toggles"})]}),h.jsxs("div",{className:he.switchGrid,children:[h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 3: IFRC Checkbox (Off by default)"}),h.jsx(wd,{name:"switch-3",value:s,onChange:u,label:"Enable feature"}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:s?"On":"Off"})]})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 4: IFRC Checkbox (On by default)"}),h.jsx(wd,{name:"switch-4",value:d,onChange:f,label:"Auto-save enabled"}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:d?"On":"Off"})]})]})]})]}),h.jsxs("div",{className:he.section,children:[h.jsxs("div",{className:he.sectionHeader,children:[h.jsx(kn,{level:3,className:he.sectionTitle,children:"3. Native HTML Checkbox Switches"}),h.jsx("p",{className:he.sectionDescription,children:'Using native HTML input[type="checkbox"] elements (as used in AdminPage)'})]}),h.jsxs("div",{className:he.switchGrid,children:[h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 5: Native Checkbox (Off by default)"}),h.jsxs("label",{className:he.nativeCheckboxLabel,children:[h.jsx("input",{type:"checkbox",checked:g,onChange:F=>y(F.target.checked),className:he.nativeCheckbox}),h.jsx("span",{children:"Available for use"})]}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:g?"On":"Off"})]})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 6: Native Checkbox (On by default)"}),h.jsxs("label",{className:he.nativeCheckboxLabel,children:[h.jsx("input",{type:"checkbox",checked:x,onChange:F=>b(F.target.checked),className:he.nativeCheckbox}),h.jsx("span",{children:"RTK Fix Available"})]}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:x?"On":"Off"})]})]})]})]}),h.jsxs("div",{className:he.section,children:[h.jsxs("div",{className:he.sectionHeader,children:[h.jsx(kn,{level:3,className:he.sectionTitle,children:"4. Custom CSS Toggle Switches"}),h.jsx("p",{className:he.sectionDescription,children:"Custom-built toggle switch component with smooth animations"})]}),h.jsxs("div",{className:he.switchGrid,children:[h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 7: Custom Toggle (Off by default)"}),h.jsx(ls,{name:"switch-7",checked:m,onChange:w,label:"Enable notifications"}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:m?"On":"Off"})]})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 8: Custom Toggle (On by default)"}),h.jsx(ls,{name:"switch-8",checked:N,onChange:S,label:"Dark mode"}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:N?"On":"Off"})]})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 9: Custom Toggle (No label, Off by default)"}),h.jsx(ls,{name:"switch-9",checked:_,onChange:T}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:_?"On":"Off"})]})]})]})]}),h.jsxs("div",{className:he.section,children:[h.jsxs("div",{className:he.sectionHeader,children:[h.jsx(kn,{level:3,className:he.sectionTitle,children:"5. Button-based Toggle Switch"}),h.jsx("p",{className:he.sectionDescription,children:"Using a button element styled as a toggle switch"})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Switch 10: Button Toggle (Off by default)"}),h.jsx("button",{type:"button",className:`${he.buttonToggle} ${M?he.buttonToggleOn:he.buttonToggleOff}`,onClick:()=>$(!M),children:h.jsx("span",{className:he.buttonToggleText,children:M?"On":"Off"})}),h.jsxs("div",{className:he.stateDisplay,children:["State: ",h.jsx("strong",{children:M?"On":"Off"})]})]})]}),h.jsxs("div",{className:he.section,children:[h.jsxs("div",{className:he.sectionHeader,children:[h.jsx(kn,{level:3,className:he.sectionTitle,children:"6. Disabled Switch States"}),h.jsx("p",{className:he.sectionDescription,children:"Examples of switches in disabled state"})]}),h.jsxs("div",{className:he.switchGrid,children:[h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Disabled SegmentInput"}),h.jsx(on,{withInternalPadding:!0,className:he.switchWrapper,children:h.jsx(su,{name:"disabled-segment",value:"on",onChange:()=>{},options:[{key:"off",label:"Off"},{key:"on",label:"On"}],keySelector:F=>F.key,labelSelector:F=>F.label,disabled:!0})})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Disabled IFRC Checkbox"}),h.jsx(wd,{name:"disabled-checkbox",value:!0,onChange:()=>{},label:"Disabled option",disabled:!0})]}),h.jsxs("div",{className:he.switchItem,children:[h.jsx("div",{className:he.switchLabel,children:"Disabled Custom Toggle"}),h.jsx(ls,{name:"disabled-custom",checked:!0,onChange:()=>{},label:"Disabled toggle",disabled:!0})]})]})]})]})})})}const nL=v.createContext(void 0),rL=({children:e})=>{const[n,i]=v.useState(!1),[o,s]=v.useState(!0),u=async()=>{const y=localStorage.getItem("adminToken");if(!y){i(!1),s(!1);return}try{(await fetch("/api/admin/verify",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y}`}})).ok?i(!0):(localStorage.removeItem("adminToken"),i(!1))}catch(x){console.error("Error verifying admin token:",x),localStorage.removeItem("adminToken"),i(!1)}finally{s(!1)}},d=async y=>{try{const x=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:y})});if(x.ok){const b=await x.json();return localStorage.setItem("adminToken",b.access_token),i(!0),!0}else return!1}catch(x){return console.error("Login error:",x),!1}},f=()=>{localStorage.removeItem("adminToken"),i(!1)};v.useEffect(()=>{u()},[]);const g={isAuthenticated:n,isLoading:o,login:d,logout:f,verifyToken:u};return h.jsx(nL.Provider,{value:g,children:e})},iL=v.lazy(()=>Kn(()=>import("./index-DRmfVC9B.js"),__vite__mapDeps([0,1]))),oL=v.lazy(()=>Kn(()=>import("./index-tBgmM5yL.js"),__vite__mapDeps([2,3,4,5,6]))),aL=v.lazy(()=>Kn(()=>import("./AdminPage-CwitwbVg.js"),__vite__mapDeps([7,3,8]))),sL=v.lazy(()=>Kn(()=>import("./index-HD7t9Ly0.js"),__vite__mapDeps([9,3,4,5,10])));class lL extends v.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n,i){console.error("Error caught by boundary:",n,i)}render(){return this.state.hasError?h.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[h.jsx("h2",{children:"Something went wrong"}),h.jsx("p",{children:"Please refresh the page to try again."}),h.jsx("button",{onClick:()=>window.location.reload(),children:"Refresh Page"})]}):this.props.children}}const Pi=e=>{const n=e();return n.catch(()=>{}),n},uL=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{Pi(()=>Kn(()=>import("./index-DRmfVC9B.js"),__vite__mapDeps([0,1]))),Pi(()=>Kn(()=>import("./index-tBgmM5yL.js"),__vite__mapDeps([2,3,4,5,6]))),Pi(()=>Kn(()=>import("./AdminPage-CwitwbVg.js"),__vite__mapDeps([7,3,8]))),Pi(()=>Kn(()=>import("./index-HD7t9Ly0.js"),__vite__mapDeps([9,3,4,5,10])))}):setTimeout(()=>{Pi(()=>Kn(()=>import("./index-DRmfVC9B.js"),__vite__mapDeps([0,1]))),Pi(()=>Kn(()=>import("./index-tBgmM5yL.js"),__vite__mapDeps([2,3,4,5,6]))),Pi(()=>Kn(()=>import("./AdminPage-CwitwbVg.js"),__vite__mapDeps([7,3,8]))),Pi(()=>Kn(()=>import("./index-HD7t9Ly0.js"),__vite__mapDeps([9,3,4,5,10])))},1e3)};function cL(){const e=v.useMemo(()=>Ex([{element:h.jsx(ZT,{}),children:[{path:"/",element:h.jsx(Xg,{})},{path:"/upload",element:h.jsx(Xg,{})},{path:"/analytics",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Analytics..."}),children:h.jsx(iL,{})})},{path:"/explore",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Explore..."}),children:h.jsx(oL,{})})},{path:"/help",element:h.jsx(RP,{})},{path:"/demo",element:h.jsx(tL,{})},{path:"/admin",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Admin..."}),children:h.jsx(aL,{})})},{path:"/map/:mapId",element:h.jsx(v.Suspense,{fallback:h.jsx("div",{children:"Loading Map Details..."}),children:h.jsx(sL,{})})}]}],{basename:"/"}),[]),[n,i]=v.useState([]);v.useEffect(()=>{uL()},[]);const o=v.useCallback(g=>{i(y=>Qx([...y,g],x=>x.name)??y)},[i]),s=v.useCallback(g=>{i(y=>{const x=y.findIndex(m=>m.name===g);if(x===-1)return y;const b=[...y];return b.splice(x,1),b})},[i]),u=v.useCallback((g,y)=>{i(x=>{const b=x.findIndex(w=>w.name===g);if(b===-1)return x;const m=[...x];return m[b]={...m[b],...y},m})},[i]),d=v.useMemo(()=>({alerts:n,addAlert:o,removeAlert:s,updateAlert:u}),[n,o,s,u]),f=v.useMemo(()=>({languageNamespaceStatus:{},setLanguageNamespaceStatus:()=>{},currentLanguage:"en",setCurrentLanguage:()=>{},strings:{},setStrings:()=>{},registerNamespace:()=>{}}),[]);return h.jsx(lL,{children:h.jsx(Wx.Provider,{value:d,children:h.jsx(y0.Provider,{value:f,children:h.jsx(rL,{children:h.jsx(uP,{children:h.jsx(Ox,{router:e})})})})})})}function dL(){return h.jsx(cL,{})}console.log("React version at runtime:",v.version,"createContext exists?",!!v.createContext);X1.createRoot(document.getElementById("root")).render(h.jsx(v.StrictMode,{children:h.jsx(dL,{})}));export{Mb as A,ua as B,pL as C,cP as D,vL as E,_f as F,Kn as G,kn as H,q as I,io as J,hL as K,su as L,xP as M,Iu as N,kt as O,qg as P,wL as Q,E0 as R,wd as S,nL as T,yL as U,fL as V,e0 as W,Xo as _,Fe as a,Dt as b,CL as c,SL as d,mL as e,Pb as f,S0 as g,bL as h,xL as i,h as j,gr as k,Jx as l,eN as m,Be as n,Le as o,nb as p,cs as q,v as r,_0 as s,y0 as t,Bx as u,Ab as v,$b as w,ks as x,gL as y,on as z}; diff --git a/py_backend/static/assets/index-Bx3ZvIBj.js b/py_backend/static/assets/index-HD7t9Ly0.js similarity index 99% rename from py_backend/static/assets/index-Bx3ZvIBj.js rename to py_backend/static/assets/index-HD7t9Ly0.js index d367123e..8133cd68 100644 --- a/py_backend/static/assets/index-Bx3ZvIBj.js +++ b/py_backend/static/assets/index-HD7t9Ly0.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-Csqqcm8m.js","assets/index-CcfIBRoF.js","assets/index-BzCX1Bzq.css"])))=>i.map(i=>d[i]); -import{K as aa,x as ta,r as d,D as sa,j as a,N as ae,n as F,_ as Ie,L as ia,z as P,v as oe,w as re,F as na,M as oa,G as ra}from"./index-CcfIBRoF.js";import{u as la}from"./useAdmin-CrA3XozJ.js";import{F as ca,E as da}from"./ExportModal-x1pUTnT7.js";const ga="_tabSelector_usssr_1",ma="_imageContainer_usssr_12",ua="_imagePlaceholder_usssr_33",pa="_metadataTags_usssr_45",fa="_metadataTag_usssr_45",ha="_captionContainer_usssr_67",_a="_captionText_usssr_74",xa="_gridLayout_usssr_131",ya="_detailsSection_usssr_155",va="_loadingContainer_usssr_161",ja="_errorContainer_usssr_171",wa="_fullSizeModalOverlay_usssr_205",Ia="_fullSizeModalContent_usssr_219",Na="_ratingWarningContent_usssr_230",Ca="_ratingWarningTitle_usssr_236",ba="_ratingWarningText_usssr_243",Sa="_ratingWarningButtons_usssr_250",ka="_carouselContainer_usssr_365",Da="_carouselImageWrapper_usssr_370",Ma="_carouselImage_usssr_370",La="_carouselNavigation_usssr_393",Fa="_carouselButton_usssr_405",Ta="_carouselIndicators_usssr_429",Ea="_carouselIndicator_usssr_429",$a="_carouselIndicatorActive_usssr_458",Pa="_singleImageContainer_usssr_488",Ra="_viewImageButtonContainer_usssr_494",m={tabSelector:ga,imageContainer:ma,imagePlaceholder:ua,metadataTags:pa,metadataTag:fa,captionContainer:ha,captionText:_a,gridLayout:xa,detailsSection:ya,loadingContainer:va,errorContainer:ja,fullSizeModalOverlay:wa,fullSizeModalContent:Ia,ratingWarningContent:Na,ratingWarningTitle:Ca,ratingWarningText:ba,ratingWarningButtons:Sa,carouselContainer:ka,carouselImageWrapper:Da,carouselImage:Ma,carouselNavigation:La,carouselButton:Fa,carouselIndicators:Ta,carouselIndicator:Ea,carouselIndicatorActive:$a,singleImageContainer:Pa,viewImageButtonContainer:Ra};function it(){const{mapId:u}=aa(),y=ta(),{isAuthenticated:le}=la(),[ce,Ne]=d.useState("mapDetails"),[e,te]=d.useState(null),[O,A]=d.useState(!0),[de,U]=d.useState(null),[ge,Ce]=d.useState([]),[me,be]=d.useState([]),[ue,Se]=d.useState([]),[pe,ke]=d.useState([]),[De,Me]=d.useState([]),[Le,Fe]=d.useState(!1),[Te,Ee]=d.useState(!1),[J,K]=d.useState(!1),[$e,Z]=d.useState(!1),[fe,Q]=d.useState(!1),[Pe,se]=d.useState(!1),[Re,ie]=d.useState(!1),[Aa,za]=d.useState("standard"),[R,Oa]=d.useState(80),[G,Ua]=d.useState(10),[Ba,Wa]=d.useState(10),[Ja,Ga]=d.useState(!0),[Va,Ha]=d.useState(!0),[B,X]=d.useState(!1),[Ae,he]=d.useState(!1),[ze,_e]=d.useState(null),[Oe,V]=d.useState(!1),[x,H]=d.useState([]),[L,z]=d.useState(0),[q,xe]=d.useState(!1),{search:p,setSearch:qa,srcFilter:v,setSrcFilter:Ka,catFilter:j,setCatFilter:Za,regionFilter:w,setRegionFilter:Qa,countryFilter:I,setCountryFilter:Xa,imageTypeFilter:N,setImageTypeFilter:Ya,uploadTypeFilter:C,setUploadTypeFilter:et,generatedMethodFilter:f,showReferenceExamples:k,setShowReferenceExamples:Ue,clearAllFilters:Be}=sa(),We=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],Y=d.useCallback(async t=>{if(!(!t||t==="undefined"||t==="null"||t.trim()===""))try{const i=new URLSearchParams;p&&i.append("search",p),v&&i.append("source",v),j&&i.append("event_type",j),w&&i.append("region",w),I&&i.append("country",I),N&&i.append("image_type",N),C&&i.append("upload_type",C),k&&i.append("starred_only","true");const l=await fetch(`/api/images/grouped?${i.toString()}`);if(l.ok){let s=await l.json();s.items&&(s=s.items),f&&(s=s.filter(o=>f==="manual"?o.model==="manual":f==="generated"?o.model!=="manual":!0)),console.log("Server response for upload_type=multiple:",{url:`/api/images/grouped?${i.toString()}`,count:s.length,images:s.map(o=>({image_id:o.image_id,image_count:o.image_count,all_image_ids:o.all_image_ids,all_image_ids_length:o.all_image_ids?.length}))});const n=s.findIndex(o=>o.image_id===t);console.log("Navigation availability check (server-side):",{filteredImagesCount:s.length,currentIndex:n,currentId:t,uploadTypeFilter:C,hasPrevious:s.length>1&&n>0,hasNext:s.length>1&&n({image_id:o.image_id,image_count:o.image_count,all_image_ids:o.all_image_ids,image_type:o.image_type}))}),Fe(s.length>1&&n>0),Ee(s.length>1&&n{console.log("fetchAllImages called with imageIds:",t),xe(!0);try{const i=t.map(async s=>{const n=await fetch(`/api/images/${s}`);if(!n.ok)throw new Error(`Failed to fetch image ${s}`);return n.json()}),l=await Promise.all(i);H(l),z(0),console.log("fetchAllImages: Loaded",l.length,"images")}catch(i){console.error("fetchAllImages error:",i),U(i instanceof Error?i.message:"Failed to load all images")}finally{xe(!1)}},[]),ye=d.useCallback(async t=>{if(console.log("fetchMapData called with id:",t),console.log("fetchMapData id type:",typeof t),!t||t==="undefined"||t==="null"||t.trim()===""){console.log("fetchMapData: Invalid ID detected:",t),U("Invalid Map ID"),A(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)){console.log("fetchMapData: Invalid UUID format:",t),U("Invalid Map ID format"),A(!1);return}console.log("fetchMapData: Making API call for id:",t),K(!0),A(!0);try{const l=await fetch(`/api/images/${t}`);if(!l.ok)throw new Error("Map not found");const s=await l.json();if(te(s),s.all_image_ids&&s.all_image_ids.length>1)await ne(s.all_image_ids);else if(s.image_count&&s.image_count>1){console.log("Multi-upload detected but no all_image_ids, trying grouped endpoint");try{const n=await fetch("/api/images/grouped");if(n.ok){const r=(await n.json()).find(g=>g.all_image_ids&&g.all_image_ids.includes(s.image_id));r&&r.all_image_ids?await ne(r.all_image_ids):(H([s]),z(0))}else H([s]),z(0)}catch(n){console.error("Failed to fetch from grouped endpoint:",n),H([s]),z(0)}}else H([s]),z(0);await Y(t)}catch(l){U(l instanceof Error?l.message:"Unknown error occurred")}finally{A(!1),K(!1)}},[Y,ne]),Je=d.useCallback(()=>{x.length>1&&z(t=>t>0?t-1:x.length-1)},[x.length]),Ge=d.useCallback(()=>{x.length>1&&z(t=>t{t>=0&&t{const i=t||(x.length>0?x[L]:e);if(i){V(!0),_e(i),he(!0);try{const l=new Image;l.onload=()=>{V(!1)},l.onerror=()=>{V(!1)},l.src=i.image_url}catch(l){console.error("Error preloading full-size image:",l),V(!1)}}},[x,L,e]),He=d.useCallback(()=>{he(!1),_e(null),V(!1)},[]);d.useEffect(()=>{if(console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId value:",u),!u||u==="undefined"||u==="null"||u.trim()===""||u===void 0||u===null){console.log("MapDetailsPage: Invalid mapId, setting error"),U("Map ID is required"),A(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("MapDetailsPage: Invalid UUID format:",u),U("Invalid Map ID format"),A(!1);return}console.log("MapDetailsPage: Fetching data for mapId:",u),ye(u)},[u,ye]),d.useEffect(()=>{if(!e||O||B)return;if(!u||u==="undefined"||u==="null"||u.trim()===""){console.log("Auto-navigation skipped: Invalid mapId");return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("Auto-navigation skipped: Invalid mapId format");return}(()=>{const l=!p||e.title?.toLowerCase().includes(p.toLowerCase())||e.generated?.toLowerCase().includes(p.toLowerCase())||e.source?.toLowerCase().includes(p.toLowerCase())||e.event_type?.toLowerCase().includes(p.toLowerCase()),s=!v||e.source===v,n=!j||e.event_type===j,o=!w||e.countries.some(M=>M.r_code===w),r=!I||e.countries.some(M=>M.c_code===I),g=!N||e.image_type===N,_=!f||f==="manual"&&e.model==="manual"||f==="generated"&&e.model!=="manual",T=!k||e.starred===!0,E=l&&s&&n&&o&&r&&g&&_&&T;return console.log("Auto-navigation check:",{mapId:u,search:p,srcFilter:v,catFilter:j,regionFilter:w,countryFilter:I,imageTypeFilter:N,generatedMethodFilter:f,showReferenceExamples:k,matchesSearch:l,matchesSource:s,matchesCategory:n,matchesRegion:o,matchesCountry:r,matchesImageType:g,matchesReferenceExamples:T,matches:E}),E})()||(console.log("Current map does not match filters, looking for first matching item"),fetch("/api/images").then(l=>l.json()).then(l=>{console.log("Auto-navigation: Received images from API:",l.length),console.log("Auto-navigation: First few images:",l.slice(0,3).map(n=>({image_id:n.image_id,title:n.title})));const s=l.find(n=>{const o=!p||n.title?.toLowerCase().includes(p.toLowerCase())||n.generated?.toLowerCase().includes(p.toLowerCase())||n.source?.toLowerCase().includes(p.toLowerCase())||n.event_type?.toLowerCase().includes(p.toLowerCase()),r=!v||n.source===v,g=!j||n.event_type===j,_=!w||n.countries?.some(S=>S.r_code===w),T=!I||n.countries?.some(S=>S.c_code===I),E=!N||n.image_type===N,M=!f||f==="manual"&&n.model==="manual"||f==="generated"&&n.model!=="manual",h=!k||n.starred===!0;return o&&r&&g&&_&&T&&E&&M&&h});console.log("Auto-navigation: Found first matching image:",s?{image_id:s.image_id,title:s.title,source:s.source}:"No matching image found"),s&&s.image_id&&s.image_id!=="undefined"&&s.image_id!=="null"&&s.image_id.trim()!==""&&s.image_id!==u&&(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s.image_id)?(console.log("Auto-navigating to:",s.image_id),y(`/map/${s.image_id}`)):console.error("Auto-navigation blocked: Invalid image_id format:",s.image_id))}).catch(console.error))},[e,p,v,j,w,I,N,f,k,u,y,O,B]);const je=async t=>{if(!J){K(!0);try{const i=new URLSearchParams;p&&i.append("search",p),v&&i.append("source",v),j&&i.append("event_type",j),w&&i.append("region",w),I&&i.append("country",I),N&&i.append("image_type",N),C&&i.append("upload_type",C),k&&i.append("starred_only","true");const l=await fetch(`/api/images/grouped?${i.toString()}`);if(l.ok){let s=await l.json();s.items&&(s=s.items),f&&(s=s.filter(g=>f==="manual"?g.model==="manual":f==="generated"?g.model!=="manual":!0));const n=s.findIndex(g=>g.image_id===u);if(n===-1){console.error("Current image not found in filtered list");return}let o;t==="previous"?o=n>0?n-1:s.length-1:o=n{console.log("=== NAVIGATION USEEFFECT TRIGGERED ==="),console.log("Navigation useEffect triggered:",{map:!!e,mapId:u,loading:O,isDeleting:B,uploadTypeFilter:C,allFilters:{search:p,srcFilter:v,catFilter:j,regionFilter:w,countryFilter:I,imageTypeFilter:N,uploadTypeFilter:C,generatedMethodFilter:f,showReferenceExamples:k}}),e&&u&&!O&&!B?(console.log("Calling checkNavigationAvailability with:",u),Y(u)):console.log("NOT calling checkNavigationAvailability because:",{map:!!e,mapId:!!u,loading:O,isDeleting:B})},[e,u,p,v,j,w,I,N,C,f,k,O,B,Y]),d.useEffect(()=>{Promise.all([fetch("/api/sources").then(t=>t.json()),fetch("/api/types").then(t=>t.json()),fetch("/api/image-types").then(t=>t.json()),fetch("/api/regions").then(t=>t.json()),fetch("/api/countries").then(t=>t.json())]).then(([t,i,l,s,n])=>{Ce(t),be(i),Se(l),ke(s),Me(n)}).catch(console.error)},[]);const qe=async()=>{e&&Z(!0)},Ke=async()=>{if(e)try{(await fetch(`/api/images/${e.image_id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({starred:!e.starred})})).ok?te(i=>i?{...i,starred:!i.starred}:null):console.error("Failed to toggle starred status")}catch(t){console.error("Error toggling starred status:",t)}},Ze=async()=>{if(e){X(!0);try{if(console.log("Deleting image with ID:",e.image_id),(await fetch(`/api/images/${e.image_id}`,{method:"DELETE"})).ok){te(i=>i?{...i,starred:!i.starred}:null),Z(!1);try{const i=await fetch("/api/images/grouped");if(i.ok){const s=(await i.json()).filter(o=>{const r=!p||o.title?.toLowerCase().includes(p.toLowerCase())||o.generated?.toLowerCase().includes(p.toLowerCase())||o.source?.toLowerCase().includes(p.toLowerCase())||o.event_type?.toLowerCase().includes(p.toLowerCase()),g=!v||o.source===v,_=!j||o.event_type===j,T=!w||o.countries?.some(b=>b.r_code===w),E=!I||o.countries?.some(b=>b.c_code===I),M=!N||o.image_type===N,h=!C||C==="single"&&(!o.image_count||o.image_count<=1)||C==="multiple"&&o.image_count&&o.image_count>1,S=!f||f==="manual"&&o.model==="manual"||f==="generated"&&o.model!=="manual",D=!k||o.starred===!0;return r&&g&&_&&T&&E&&M&&h&&S&&D}),n=s.filter(o=>o.image_id!==e.image_id);if(n.length>0){const o=s.findIndex(g=>g.image_id===e.image_id);let r;if(o===s.length-1?r=o-1:r=o,console.log("Navigation target:",{currentIndex:o,targetIndex:r,targetId:n[r]?.image_id}),r>=0&&r{A(!0);try{const t=new URLSearchParams;p&&t.append("search",p),v&&t.append("source",v),j&&t.append("event_type",j),w&&t.append("region",w),I&&t.append("country",I),N&&t.append("image_type",N),C&&t.append("upload_type",C),k&&t.append("starred_only","true");const i=await fetch(`/api/images/grouped?${t.toString()}`);if(i.ok){let l=await i.json();if(l.items&&(l=l.items),f&&(l=l.filter(s=>f==="manual"?s.model==="manual":f==="generated"?s.model!=="manual":!0)),l.length>0){const s=l[0];s&&s.image_id&&y(`/map/${s.image_id}`)}else y("/explore")}}catch(t){console.error("Failed to navigate to matching image:",t),y("/explore")}finally{A(!1)}},[p,v,j,w,I,N,C,f,k,y]),c=d.useMemo(()=>{if(!e)return null;if(!p&&!v&&!j&&!w&&!I&&!N&&!C&&!f&&!k)return e;const t=!p||e.title?.toLowerCase().includes(p.toLowerCase())||e.generated?.toLowerCase().includes(p.toLowerCase())||e.source?.toLowerCase().includes(p.toLowerCase())||e.event_type?.toLowerCase().includes(p.toLowerCase()),i=!v||e.source===v,l=!j||e.event_type===j,s=!w||e.countries.some(E=>E.r_code===w),n=!I||e.countries.some(E=>E.c_code===I),o=!N||e.image_type===N,r=!C||C==="single"&&(!e.image_count||e.image_count<=1)&&(!e.all_image_ids||e.all_image_ids.length<=1)||C==="multiple"&&(e.image_count&&e.image_count>1||e.all_image_ids&&e.all_image_ids.length>1),g=!f||f==="manual"&&e.model==="manual"||f==="generated"&&e.model!=="manual",_=!k||e.starred===!0,T=t&&i&&l&&s&&n&&o&&r&&g&&_;return!T&&(p||v||j||w||I||N||C||f||k)?(setTimeout(()=>{we()},100),e):T?e:null},[e,p,v,j,w,I,N,C,f,k,we]),Qe=()=>{if(!e)return;if(!e.all_image_ids||e.all_image_ids.length<=1){const s=`/upload?step=1&contribute=true&imageIds=${[e.image_id].join(",")}`;y(s);return}const i=`/upload?step=1&contribute=true&imageIds=${e.all_image_ids.join(",")}`;y(i)},$=(t,i)=>({image:`images/${i}`,caption:t.edited||t.generated||"",metadata:{image_id:t.image_count&&t.image_count>1?t.all_image_ids||[t.image_id]:t.image_id,title:t.title,source:t.source,event_type:t.event_type,image_type:t.image_type,countries:t.countries,starred:t.starred,image_count:t.image_count||1}}),Xe=async t=>{if(e){se(!0),ie(!1);try{const i=(await ra(async()=>{const{default:r}=await import("./jszip.min-Csqqcm8m.js").then(g=>g.j);return{default:r}},__vite__mapDeps([0,1,2]))).default,l=new i;if(e.image_type==="crisis_map"){const r=l.folder("crisis_maps_dataset"),g=r?.folder("images");if(g)try{const _=e.image_count&&e.image_count>1?e.all_image_ids||[e.image_id]:[e.image_id],T=_.map(async(h,S)=>{try{const D=await fetch(`/api/images/${h}/file`);if(!D.ok)throw new Error(`Failed to fetch image ${h}`);const b=await D.blob(),ee=e.file_key.split(".").pop()||"jpg",W=`0001_${String(S+1).padStart(2,"0")}.${ee}`;return g.file(W,b),{success:!0,fileName:W,imageId:h}}catch(D){return console.error(`Failed to process image ${h}:`,D),{success:!1,fileName:"",imageId:h}}}),M=(await Promise.all(T)).filter(h=>h.success);if(M.length===0)throw new Error("No images could be processed");if(t==="fine-tuning"){const h=[],S=[],D=[],b=M.map(ea=>`images/${ea.fileName}`),ee=Math.random(),W={image:b.length===1?b[0]:b,caption:e.edited||e.generated||"",metadata:{image_id:_,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};ee`images/${D.fileName}`),S={image:h.length===1?h[0]:h,caption:e.edited||e.generated||"",metadata:{image_id:_,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(S,null,2))}}catch(_){throw console.error(`Failed to process image ${e.image_id}:`,_),_}}else if(e.image_type==="drone_image"){const r=l.folder("drone_images_dataset"),g=r?.folder("images");if(g)try{const _=await fetch(`/api/images/${e.image_id}/file`);if(!_.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const T=await _.blob(),M=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(g.file(M,T),t==="fine-tuning"){const h=[],S=[],D=[];if(String(e?.image_type)==="crisis_map"){const b=Math.random();b1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(h,null,2))}}catch(_){throw console.error(`Failed to process image ${e.image_id}:`,_),_}}else{const r=l.folder("generic_dataset"),g=r?.folder("images");if(g)try{const _=await fetch(`/api/images/${e.image_id}/file`);if(!_.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const T=await _.blob(),M=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(g.file(M,T),t==="fine-tuning"){const h=[],S=[],D=[];if(String(e?.image_type)==="crisis_map"){const b=Math.random();b1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(h,null,2))}}catch(_){throw console.error(`Failed to process image ${e.image_id}:`,_),_}}const s=await l.generateAsync({type:"blob"}),n=URL.createObjectURL(s),o=document.createElement("a");o.href=n,o.download=`dataset_${e.image_type}_${e.image_id}_${t}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n),console.log(`Exported ${e.image_type} dataset with 1 image in ${t} mode`),ie(!0)}catch(i){console.error("Export failed:",i),alert("Failed to export dataset. Please try again.")}finally{se(!1)}}},Ye=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;return!u||u==="undefined"||u==="null"||u.trim()===""||!Ye.test(u)?a.jsx(ae,{children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center py-12",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Invalid Map ID"}),a.jsx("div",{children:"The map ID provided is not valid."}),a.jsxs("div",{className:"text-sm text-gray-500 mt-2",children:['Debug Info: mapId = "',u,'" (type: ',typeof u,")"]}),a.jsx(F,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})}):O?a.jsx(ae,{children:a.jsx("div",{className:m.loadingContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4",children:[a.jsx(Ie,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading map details..."})]})})}):de||!e?a.jsx(ae,{children:a.jsx("div",{className:m.errorContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Unable to load map"}),a.jsx("div",{children:de||"Map not found"}),a.jsx(F,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})})}):a.jsxs(ae,{children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:m.tabSelector,children:[a.jsx(ia,{name:"map-details-view",value:ce,onChange:t=>{(t==="mapDetails"||t==="explore")&&(Ne(t),t==="explore"&&y("/explore"))},options:We,keySelector:t=>t.key,labelSelector:t=>t.label}),a.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[a.jsx(P,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs(F,{name:"reference-examples",variant:k?"primary":"secondary",onClick:()=>Ue(!k),className:"whitespace-nowrap",children:[a.jsx("span",{className:"mr-2",children:k?a.jsx("span",{className:"text-yellow-400",children:"★"}):a.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),a.jsx(F,{name:"export-dataset",variant:"secondary",onClick:()=>Q(!0),children:"Export"})]})]}),a.jsx(ca,{sources:ge,types:me,regions:pe,countries:De,imageTypes:ue,isLoadingFilters:!1}),ce==="mapDetails"?a.jsx("div",{className:"relative",children:c?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:m.gridLayout,children:[a.jsxs(P,{heading:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:c.title||"Map Image"}),c.starred&&a.jsx("span",{className:"text-red-500 text-xl",title:"Starred image",children:"★"})]}),headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:[a.jsx("div",{className:m.imageContainer,children:e?.image_count&&e.image_count>1||x.length>1?a.jsxs("div",{className:m.carouselContainer,children:[a.jsx("div",{className:m.carouselImageWrapper,children:q?a.jsxs("div",{className:m.imagePlaceholder,children:[a.jsx(Ie,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading images..."})]}):x[L]?.detail_url?a.jsx("img",{src:x[L].detail_url,alt:x[L].file_key,className:m.carouselImage,onError:t=>{console.log("MapDetailsPage: Detail image failed to load, falling back to original:",x[L].detail_url);const i=t.target;x[L].image_url&&(i.src=x[L].image_url)},onLoad:()=>console.log("MapDetailsPage: Detail image loaded successfully:",x[L].detail_url)}):x[L]?.image_url?a.jsx("img",{src:x[L].image_url,alt:x[L].file_key,className:m.carouselImage,onLoad:()=>console.log("MapDetailsPage: Original image loaded successfully:",x[L].image_url)}):a.jsx("div",{className:m.imagePlaceholder,children:"No image available"})}),a.jsxs("div",{className:m.carouselNavigation,children:[a.jsx(F,{name:"previous-image",variant:"tertiary",size:1,onClick:Je,disabled:q,className:m.carouselButton,children:a.jsx(oe,{className:"w-4 h-4"})}),a.jsx("div",{className:m.carouselIndicators,children:x.map((t,i)=>a.jsx("button",{onClick:()=>Ve(i),className:`${m.carouselIndicator} ${i===L?m.carouselIndicatorActive:""}`,disabled:q,children:i+1},i))}),a.jsx(F,{name:"next-image",variant:"tertiary",size:1,onClick:Ge,disabled:q,className:m.carouselButton,children:a.jsx(re,{className:"w-4 h-4"})})]}),a.jsx("div",{className:m.viewImageButtonContainer,children:a.jsx(F,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>ve(x[L]),disabled:q||!x[L]?.image_url,children:"View Image"})})]}):a.jsxs("div",{className:m.singleImageContainer,children:[c.detail_url?a.jsx("img",{src:c.detail_url,alt:c.file_key,onError:t=>{console.log("MapDetailsPage: Detail image failed to load, falling back to original:",c.detail_url);const i=t.target;c.image_url&&(i.src=c.image_url)},onLoad:()=>console.log("MapDetailsPage: Detail image loaded successfully:",c.detail_url)}):c.image_url?a.jsx("img",{src:c.image_url,alt:c.file_key,onLoad:()=>console.log("MapDetailsPage: Original image loaded successfully:",c.image_url)}):a.jsx("div",{className:m.imagePlaceholder,children:"No image available"}),a.jsx("div",{className:m.viewImageButtonContainer,children:a.jsx(F,{name:"view-full-size-single",variant:"secondary",size:1,onClick:()=>ve(c),disabled:!c.image_url,children:"View Image"})})]})}),a.jsx(P,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs("div",{className:m.metadataTags,children:[c.image_type!=="drone_image"&&a.jsx("span",{className:m.metadataTag,children:ge.find(t=>t.s_code===c.source)?.label||c.source}),a.jsx("span",{className:m.metadataTag,children:me.find(t=>t.t_code===c.event_type)?.label||c.event_type}),a.jsx("span",{className:m.metadataTag,children:ue.find(t=>t.image_type===c.image_type)?.label||c.image_type}),a.jsx("span",{className:m.metadataTag,children:c.model==="manual"?"Manual":"Generated"}),c.countries&&c.countries.length>0&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:m.metadataTag,children:pe.find(t=>t.r_code===c.countries[0].r_code)?.label||"Unknown Region"}),a.jsx("span",{className:m.metadataTag,children:c.countries.map(t=>t.label).join(", ")})]}),c.image_count&&c.image_count>1&&a.jsxs("span",{className:m.metadataTag,title:`Multi-upload with ${c.image_count} images`,children:["📷 ",c.image_count]}),(!c.image_count||c.image_count<=1)&&a.jsx("span",{className:m.metadataTag,title:"Single Upload",children:"Single"})]})})]}),a.jsx("div",{className:m.detailsSection,children:c.edited&&c.edited.includes("Description:")||c.generated&&c.generated.includes("Description:")?a.jsx(P,{heading:"Interpretation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:m.captionContainer,children:a.jsx("div",{className:m.captionText,children:(c.edited||c.generated||"").split(/(Description:|Analysis:|Recommended Actions:)/).map((l,s)=>l.trim()===""?null:l==="Description:"||l==="Analysis:"||l==="Recommended Actions:"?a.jsx("h4",{className:"font-semibold text-gray-800 mt-4 mb-2",children:l},s):a.jsx("p",{className:"mb-2",children:l.trim()},s))})})}):a.jsx(P,{heading:"Description",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:m.captionContainer,children:c.generated||c.edited?a.jsx("div",{className:m.captionText,children:a.jsx("p",{children:c.edited||c.generated})}):a.jsx("p",{children:"— no caption yet —"})})})})]}),a.jsx("div",{className:"flex items-center justify-center mt-8",children:a.jsx(P,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-lg p-4",children:a.jsxs("div",{className:"flex items-center gap-4",children:[Le&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"previous-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${J?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>je("previous"),disabled:J,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(oe,{className:"w-4 h-4"}),a.jsx(oe,{className:"w-4 h-4"})]}),a.jsx("span",{className:"font-semibold",children:"Previous"})]})})}),le&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"delete",variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:qe,title:"Delete","aria-label":"Delete saved image",children:a.jsx(na,{className:"w-4 h-4"})})}),a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"contribute",onClick:Qe,children:"Contribute"})}),le&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"toggle-star",variant:"tertiary",size:1,className:`${e?.starred?"bg-red-100 hover:bg-red-200 text-red-800 border-2 border-red-400":"bg-gray-100 hover:bg-gray-200 text-gray-600 border-2 border-gray-300"} w-16 h-8 rounded-full transition-all duration-200 flex items-center justify-center`,onClick:Ke,title:e?.starred?"Unstar image":"Star image","aria-label":e?.starred?"Unstar image":"Star image",children:a.jsx("span",{className:`text-lg transition-all duration-200 ${e?.starred?"text-red-600":"text-gray-500"}`,children:e?.starred?"★":"☆"})})}),Te&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"next-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${J?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>je("next"),disabled:J,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"font-semibold",children:"Next"}),a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(re,{className:"w-4 h-4"}),a.jsx(re,{className:"w-4 h-4"})]})]})})})]})})})]}):a.jsxs("div",{className:"text-center py-12",children:[a.jsx("div",{className:"text-xl font-semibold text-gray-600 mb-4",children:"No matches found"}),a.jsx("div",{className:"mt-4",children:a.jsx(F,{name:"clear-filters",variant:"secondary",onClick:Be,children:"Clear Filters"})})]})}):null]}),$e&&a.jsx("div",{className:m.fullSizeModalOverlay,onClick:()=>Z(!1),children:a.jsx("div",{className:m.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:a.jsxs("div",{className:m.ratingWarningContent,children:[a.jsx("h3",{className:m.ratingWarningTitle,children:"Delete Image?"}),a.jsx("p",{className:m.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),a.jsxs("div",{className:m.ratingWarningButtons,children:[a.jsx(F,{name:"confirm-delete",variant:"secondary",onClick:Ze,children:"Delete"}),a.jsx(F,{name:"cancel-delete",variant:"tertiary",onClick:()=>Z(!1),children:"Cancel"})]})]})})}),fe&&a.jsx(da,{isOpen:fe,onClose:()=>{Q(!1),ie(!1),se(!1)},onExport:(t,i)=>{i.includes(e.image_type)&&Xe(t)},filteredCount:1,totalCount:1,hasFilters:!1,crisisMapsCount:e.image_type==="crisis_map"?1:0,droneImagesCount:e.image_type==="drone_image"?1:0,isLoading:Pe,exportSuccess:Re,variant:"single",onNavigateToList:()=>{Q(!1),y("/explore")},onNavigateAndExport:()=>{Q(!1),y("/explore?export=true")}}),a.jsx(oa,{isOpen:Ae,imageUrl:ze?.image_url||null,preview:null,selectedImageData:null,onClose:He,isLoading:Oe})]})}export{it as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-XJUuvkAi.js","assets/index-Dym8TuvV.js","assets/index-BYJiCH1e.css"])))=>i.map(i=>d[i]); +import{K as aa,x as ta,r as d,D as sa,j as a,N as ae,n as F,_ as Ie,L as ia,z as P,v as oe,w as re,F as na,M as oa,G as ra}from"./index-Dym8TuvV.js";import{u as la}from"./useAdmin-DnFl9FMw.js";import{F as ca,E as da}from"./ExportModal-Bq4gp-iF.js";const ga="_tabSelector_usssr_1",ma="_imageContainer_usssr_12",ua="_imagePlaceholder_usssr_33",pa="_metadataTags_usssr_45",fa="_metadataTag_usssr_45",ha="_captionContainer_usssr_67",_a="_captionText_usssr_74",xa="_gridLayout_usssr_131",ya="_detailsSection_usssr_155",va="_loadingContainer_usssr_161",ja="_errorContainer_usssr_171",wa="_fullSizeModalOverlay_usssr_205",Ia="_fullSizeModalContent_usssr_219",Na="_ratingWarningContent_usssr_230",Ca="_ratingWarningTitle_usssr_236",ba="_ratingWarningText_usssr_243",Sa="_ratingWarningButtons_usssr_250",ka="_carouselContainer_usssr_365",Da="_carouselImageWrapper_usssr_370",Ma="_carouselImage_usssr_370",La="_carouselNavigation_usssr_393",Fa="_carouselButton_usssr_405",Ta="_carouselIndicators_usssr_429",Ea="_carouselIndicator_usssr_429",$a="_carouselIndicatorActive_usssr_458",Pa="_singleImageContainer_usssr_488",Ra="_viewImageButtonContainer_usssr_494",m={tabSelector:ga,imageContainer:ma,imagePlaceholder:ua,metadataTags:pa,metadataTag:fa,captionContainer:ha,captionText:_a,gridLayout:xa,detailsSection:ya,loadingContainer:va,errorContainer:ja,fullSizeModalOverlay:wa,fullSizeModalContent:Ia,ratingWarningContent:Na,ratingWarningTitle:Ca,ratingWarningText:ba,ratingWarningButtons:Sa,carouselContainer:ka,carouselImageWrapper:Da,carouselImage:Ma,carouselNavigation:La,carouselButton:Fa,carouselIndicators:Ta,carouselIndicator:Ea,carouselIndicatorActive:$a,singleImageContainer:Pa,viewImageButtonContainer:Ra};function it(){const{mapId:u}=aa(),y=ta(),{isAuthenticated:le}=la(),[ce,Ne]=d.useState("mapDetails"),[e,te]=d.useState(null),[O,A]=d.useState(!0),[de,U]=d.useState(null),[ge,Ce]=d.useState([]),[me,be]=d.useState([]),[ue,Se]=d.useState([]),[pe,ke]=d.useState([]),[De,Me]=d.useState([]),[Le,Fe]=d.useState(!1),[Te,Ee]=d.useState(!1),[J,K]=d.useState(!1),[$e,Z]=d.useState(!1),[fe,Q]=d.useState(!1),[Pe,se]=d.useState(!1),[Re,ie]=d.useState(!1),[Aa,za]=d.useState("standard"),[R,Oa]=d.useState(80),[G,Ua]=d.useState(10),[Ba,Wa]=d.useState(10),[Ja,Ga]=d.useState(!0),[Va,Ha]=d.useState(!0),[B,X]=d.useState(!1),[Ae,he]=d.useState(!1),[ze,_e]=d.useState(null),[Oe,V]=d.useState(!1),[x,H]=d.useState([]),[L,z]=d.useState(0),[q,xe]=d.useState(!1),{search:p,setSearch:qa,srcFilter:v,setSrcFilter:Ka,catFilter:j,setCatFilter:Za,regionFilter:w,setRegionFilter:Qa,countryFilter:I,setCountryFilter:Xa,imageTypeFilter:N,setImageTypeFilter:Ya,uploadTypeFilter:C,setUploadTypeFilter:et,generatedMethodFilter:f,showReferenceExamples:k,setShowReferenceExamples:Ue,clearAllFilters:Be}=sa(),We=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],Y=d.useCallback(async t=>{if(!(!t||t==="undefined"||t==="null"||t.trim()===""))try{const i=new URLSearchParams;p&&i.append("search",p),v&&i.append("source",v),j&&i.append("event_type",j),w&&i.append("region",w),I&&i.append("country",I),N&&i.append("image_type",N),C&&i.append("upload_type",C),k&&i.append("starred_only","true");const l=await fetch(`/api/images/grouped?${i.toString()}`);if(l.ok){let s=await l.json();s.items&&(s=s.items),f&&(s=s.filter(o=>f==="manual"?o.model==="manual":f==="generated"?o.model!=="manual":!0)),console.log("Server response for upload_type=multiple:",{url:`/api/images/grouped?${i.toString()}`,count:s.length,images:s.map(o=>({image_id:o.image_id,image_count:o.image_count,all_image_ids:o.all_image_ids,all_image_ids_length:o.all_image_ids?.length}))});const n=s.findIndex(o=>o.image_id===t);console.log("Navigation availability check (server-side):",{filteredImagesCount:s.length,currentIndex:n,currentId:t,uploadTypeFilter:C,hasPrevious:s.length>1&&n>0,hasNext:s.length>1&&n({image_id:o.image_id,image_count:o.image_count,all_image_ids:o.all_image_ids,image_type:o.image_type}))}),Fe(s.length>1&&n>0),Ee(s.length>1&&n{console.log("fetchAllImages called with imageIds:",t),xe(!0);try{const i=t.map(async s=>{const n=await fetch(`/api/images/${s}`);if(!n.ok)throw new Error(`Failed to fetch image ${s}`);return n.json()}),l=await Promise.all(i);H(l),z(0),console.log("fetchAllImages: Loaded",l.length,"images")}catch(i){console.error("fetchAllImages error:",i),U(i instanceof Error?i.message:"Failed to load all images")}finally{xe(!1)}},[]),ye=d.useCallback(async t=>{if(console.log("fetchMapData called with id:",t),console.log("fetchMapData id type:",typeof t),!t||t==="undefined"||t==="null"||t.trim()===""){console.log("fetchMapData: Invalid ID detected:",t),U("Invalid Map ID"),A(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)){console.log("fetchMapData: Invalid UUID format:",t),U("Invalid Map ID format"),A(!1);return}console.log("fetchMapData: Making API call for id:",t),K(!0),A(!0);try{const l=await fetch(`/api/images/${t}`);if(!l.ok)throw new Error("Map not found");const s=await l.json();if(te(s),s.all_image_ids&&s.all_image_ids.length>1)await ne(s.all_image_ids);else if(s.image_count&&s.image_count>1){console.log("Multi-upload detected but no all_image_ids, trying grouped endpoint");try{const n=await fetch("/api/images/grouped");if(n.ok){const r=(await n.json()).find(g=>g.all_image_ids&&g.all_image_ids.includes(s.image_id));r&&r.all_image_ids?await ne(r.all_image_ids):(H([s]),z(0))}else H([s]),z(0)}catch(n){console.error("Failed to fetch from grouped endpoint:",n),H([s]),z(0)}}else H([s]),z(0);await Y(t)}catch(l){U(l instanceof Error?l.message:"Unknown error occurred")}finally{A(!1),K(!1)}},[Y,ne]),Je=d.useCallback(()=>{x.length>1&&z(t=>t>0?t-1:x.length-1)},[x.length]),Ge=d.useCallback(()=>{x.length>1&&z(t=>t{t>=0&&t{const i=t||(x.length>0?x[L]:e);if(i){V(!0),_e(i),he(!0);try{const l=new Image;l.onload=()=>{V(!1)},l.onerror=()=>{V(!1)},l.src=i.image_url}catch(l){console.error("Error preloading full-size image:",l),V(!1)}}},[x,L,e]),He=d.useCallback(()=>{he(!1),_e(null),V(!1)},[]);d.useEffect(()=>{if(console.log("MapDetailsPage: mapId from useParams:",u),console.log("MapDetailsPage: mapId type:",typeof u),console.log("MapDetailsPage: mapId value:",u),!u||u==="undefined"||u==="null"||u.trim()===""||u===void 0||u===null){console.log("MapDetailsPage: Invalid mapId, setting error"),U("Map ID is required"),A(!1);return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("MapDetailsPage: Invalid UUID format:",u),U("Invalid Map ID format"),A(!1);return}console.log("MapDetailsPage: Fetching data for mapId:",u),ye(u)},[u,ye]),d.useEffect(()=>{if(!e||O||B)return;if(!u||u==="undefined"||u==="null"||u.trim()===""){console.log("Auto-navigation skipped: Invalid mapId");return}if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(u)){console.log("Auto-navigation skipped: Invalid mapId format");return}(()=>{const l=!p||e.title?.toLowerCase().includes(p.toLowerCase())||e.generated?.toLowerCase().includes(p.toLowerCase())||e.source?.toLowerCase().includes(p.toLowerCase())||e.event_type?.toLowerCase().includes(p.toLowerCase()),s=!v||e.source===v,n=!j||e.event_type===j,o=!w||e.countries.some(M=>M.r_code===w),r=!I||e.countries.some(M=>M.c_code===I),g=!N||e.image_type===N,_=!f||f==="manual"&&e.model==="manual"||f==="generated"&&e.model!=="manual",T=!k||e.starred===!0,E=l&&s&&n&&o&&r&&g&&_&&T;return console.log("Auto-navigation check:",{mapId:u,search:p,srcFilter:v,catFilter:j,regionFilter:w,countryFilter:I,imageTypeFilter:N,generatedMethodFilter:f,showReferenceExamples:k,matchesSearch:l,matchesSource:s,matchesCategory:n,matchesRegion:o,matchesCountry:r,matchesImageType:g,matchesReferenceExamples:T,matches:E}),E})()||(console.log("Current map does not match filters, looking for first matching item"),fetch("/api/images").then(l=>l.json()).then(l=>{console.log("Auto-navigation: Received images from API:",l.length),console.log("Auto-navigation: First few images:",l.slice(0,3).map(n=>({image_id:n.image_id,title:n.title})));const s=l.find(n=>{const o=!p||n.title?.toLowerCase().includes(p.toLowerCase())||n.generated?.toLowerCase().includes(p.toLowerCase())||n.source?.toLowerCase().includes(p.toLowerCase())||n.event_type?.toLowerCase().includes(p.toLowerCase()),r=!v||n.source===v,g=!j||n.event_type===j,_=!w||n.countries?.some(S=>S.r_code===w),T=!I||n.countries?.some(S=>S.c_code===I),E=!N||n.image_type===N,M=!f||f==="manual"&&n.model==="manual"||f==="generated"&&n.model!=="manual",h=!k||n.starred===!0;return o&&r&&g&&_&&T&&E&&M&&h});console.log("Auto-navigation: Found first matching image:",s?{image_id:s.image_id,title:s.title,source:s.source}:"No matching image found"),s&&s.image_id&&s.image_id!=="undefined"&&s.image_id!=="null"&&s.image_id.trim()!==""&&s.image_id!==u&&(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s.image_id)?(console.log("Auto-navigating to:",s.image_id),y(`/map/${s.image_id}`)):console.error("Auto-navigation blocked: Invalid image_id format:",s.image_id))}).catch(console.error))},[e,p,v,j,w,I,N,f,k,u,y,O,B]);const je=async t=>{if(!J){K(!0);try{const i=new URLSearchParams;p&&i.append("search",p),v&&i.append("source",v),j&&i.append("event_type",j),w&&i.append("region",w),I&&i.append("country",I),N&&i.append("image_type",N),C&&i.append("upload_type",C),k&&i.append("starred_only","true");const l=await fetch(`/api/images/grouped?${i.toString()}`);if(l.ok){let s=await l.json();s.items&&(s=s.items),f&&(s=s.filter(g=>f==="manual"?g.model==="manual":f==="generated"?g.model!=="manual":!0));const n=s.findIndex(g=>g.image_id===u);if(n===-1){console.error("Current image not found in filtered list");return}let o;t==="previous"?o=n>0?n-1:s.length-1:o=n{console.log("=== NAVIGATION USEEFFECT TRIGGERED ==="),console.log("Navigation useEffect triggered:",{map:!!e,mapId:u,loading:O,isDeleting:B,uploadTypeFilter:C,allFilters:{search:p,srcFilter:v,catFilter:j,regionFilter:w,countryFilter:I,imageTypeFilter:N,uploadTypeFilter:C,generatedMethodFilter:f,showReferenceExamples:k}}),e&&u&&!O&&!B?(console.log("Calling checkNavigationAvailability with:",u),Y(u)):console.log("NOT calling checkNavigationAvailability because:",{map:!!e,mapId:!!u,loading:O,isDeleting:B})},[e,u,p,v,j,w,I,N,C,f,k,O,B,Y]),d.useEffect(()=>{Promise.all([fetch("/api/sources").then(t=>t.json()),fetch("/api/types").then(t=>t.json()),fetch("/api/image-types").then(t=>t.json()),fetch("/api/regions").then(t=>t.json()),fetch("/api/countries").then(t=>t.json())]).then(([t,i,l,s,n])=>{Ce(t),be(i),Se(l),ke(s),Me(n)}).catch(console.error)},[]);const qe=async()=>{e&&Z(!0)},Ke=async()=>{if(e)try{(await fetch(`/api/images/${e.image_id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({starred:!e.starred})})).ok?te(i=>i?{...i,starred:!i.starred}:null):console.error("Failed to toggle starred status")}catch(t){console.error("Error toggling starred status:",t)}},Ze=async()=>{if(e){X(!0);try{if(console.log("Deleting image with ID:",e.image_id),(await fetch(`/api/images/${e.image_id}`,{method:"DELETE"})).ok){te(i=>i?{...i,starred:!i.starred}:null),Z(!1);try{const i=await fetch("/api/images/grouped");if(i.ok){const s=(await i.json()).filter(o=>{const r=!p||o.title?.toLowerCase().includes(p.toLowerCase())||o.generated?.toLowerCase().includes(p.toLowerCase())||o.source?.toLowerCase().includes(p.toLowerCase())||o.event_type?.toLowerCase().includes(p.toLowerCase()),g=!v||o.source===v,_=!j||o.event_type===j,T=!w||o.countries?.some(b=>b.r_code===w),E=!I||o.countries?.some(b=>b.c_code===I),M=!N||o.image_type===N,h=!C||C==="single"&&(!o.image_count||o.image_count<=1)||C==="multiple"&&o.image_count&&o.image_count>1,S=!f||f==="manual"&&o.model==="manual"||f==="generated"&&o.model!=="manual",D=!k||o.starred===!0;return r&&g&&_&&T&&E&&M&&h&&S&&D}),n=s.filter(o=>o.image_id!==e.image_id);if(n.length>0){const o=s.findIndex(g=>g.image_id===e.image_id);let r;if(o===s.length-1?r=o-1:r=o,console.log("Navigation target:",{currentIndex:o,targetIndex:r,targetId:n[r]?.image_id}),r>=0&&r{A(!0);try{const t=new URLSearchParams;p&&t.append("search",p),v&&t.append("source",v),j&&t.append("event_type",j),w&&t.append("region",w),I&&t.append("country",I),N&&t.append("image_type",N),C&&t.append("upload_type",C),k&&t.append("starred_only","true");const i=await fetch(`/api/images/grouped?${t.toString()}`);if(i.ok){let l=await i.json();if(l.items&&(l=l.items),f&&(l=l.filter(s=>f==="manual"?s.model==="manual":f==="generated"?s.model!=="manual":!0)),l.length>0){const s=l[0];s&&s.image_id&&y(`/map/${s.image_id}`)}else y("/explore")}}catch(t){console.error("Failed to navigate to matching image:",t),y("/explore")}finally{A(!1)}},[p,v,j,w,I,N,C,f,k,y]),c=d.useMemo(()=>{if(!e)return null;if(!p&&!v&&!j&&!w&&!I&&!N&&!C&&!f&&!k)return e;const t=!p||e.title?.toLowerCase().includes(p.toLowerCase())||e.generated?.toLowerCase().includes(p.toLowerCase())||e.source?.toLowerCase().includes(p.toLowerCase())||e.event_type?.toLowerCase().includes(p.toLowerCase()),i=!v||e.source===v,l=!j||e.event_type===j,s=!w||e.countries.some(E=>E.r_code===w),n=!I||e.countries.some(E=>E.c_code===I),o=!N||e.image_type===N,r=!C||C==="single"&&(!e.image_count||e.image_count<=1)&&(!e.all_image_ids||e.all_image_ids.length<=1)||C==="multiple"&&(e.image_count&&e.image_count>1||e.all_image_ids&&e.all_image_ids.length>1),g=!f||f==="manual"&&e.model==="manual"||f==="generated"&&e.model!=="manual",_=!k||e.starred===!0,T=t&&i&&l&&s&&n&&o&&r&&g&&_;return!T&&(p||v||j||w||I||N||C||f||k)?(setTimeout(()=>{we()},100),e):T?e:null},[e,p,v,j,w,I,N,C,f,k,we]),Qe=()=>{if(!e)return;if(!e.all_image_ids||e.all_image_ids.length<=1){const s=`/upload?step=1&contribute=true&imageIds=${[e.image_id].join(",")}`;y(s);return}const i=`/upload?step=1&contribute=true&imageIds=${e.all_image_ids.join(",")}`;y(i)},$=(t,i)=>({image:`images/${i}`,caption:t.edited||t.generated||"",metadata:{image_id:t.image_count&&t.image_count>1?t.all_image_ids||[t.image_id]:t.image_id,title:t.title,source:t.source,event_type:t.event_type,image_type:t.image_type,countries:t.countries,starred:t.starred,image_count:t.image_count||1}}),Xe=async t=>{if(e){se(!0),ie(!1);try{const i=(await ra(async()=>{const{default:r}=await import("./jszip.min-XJUuvkAi.js").then(g=>g.j);return{default:r}},__vite__mapDeps([0,1,2]))).default,l=new i;if(e.image_type==="crisis_map"){const r=l.folder("crisis_maps_dataset"),g=r?.folder("images");if(g)try{const _=e.image_count&&e.image_count>1?e.all_image_ids||[e.image_id]:[e.image_id],T=_.map(async(h,S)=>{try{const D=await fetch(`/api/images/${h}/file`);if(!D.ok)throw new Error(`Failed to fetch image ${h}`);const b=await D.blob(),ee=e.file_key.split(".").pop()||"jpg",W=`0001_${String(S+1).padStart(2,"0")}.${ee}`;return g.file(W,b),{success:!0,fileName:W,imageId:h}}catch(D){return console.error(`Failed to process image ${h}:`,D),{success:!1,fileName:"",imageId:h}}}),M=(await Promise.all(T)).filter(h=>h.success);if(M.length===0)throw new Error("No images could be processed");if(t==="fine-tuning"){const h=[],S=[],D=[],b=M.map(ea=>`images/${ea.fileName}`),ee=Math.random(),W={image:b.length===1?b[0]:b,caption:e.edited||e.generated||"",metadata:{image_id:_,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};ee`images/${D.fileName}`),S={image:h.length===1?h[0]:h,caption:e.edited||e.generated||"",metadata:{image_id:_,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(S,null,2))}}catch(_){throw console.error(`Failed to process image ${e.image_id}:`,_),_}}else if(e.image_type==="drone_image"){const r=l.folder("drone_images_dataset"),g=r?.folder("images");if(g)try{const _=await fetch(`/api/images/${e.image_id}/file`);if(!_.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const T=await _.blob(),M=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(g.file(M,T),t==="fine-tuning"){const h=[],S=[],D=[];if(String(e?.image_type)==="crisis_map"){const b=Math.random();b1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(h,null,2))}}catch(_){throw console.error(`Failed to process image ${e.image_id}:`,_),_}}else{const r=l.folder("generic_dataset"),g=r?.folder("images");if(g)try{const _=await fetch(`/api/images/${e.image_id}/file`);if(!_.ok)throw new Error(`Failed to fetch image ${e.image_id}`);const T=await _.blob(),M=`0001.${e.file_key.split(".").pop()||"jpg"}`;if(g.file(M,T),t==="fine-tuning"){const h=[],S=[],D=[];if(String(e?.image_type)==="crisis_map"){const b=Math.random();b1?e.all_image_ids||[e.image_id]:e.image_id,title:e.title,source:e.source,event_type:e.event_type,image_type:e.image_type,countries:e.countries,starred:e.starred,image_count:e.image_count||1}};r&&r.file("0001.json",JSON.stringify(h,null,2))}}catch(_){throw console.error(`Failed to process image ${e.image_id}:`,_),_}}const s=await l.generateAsync({type:"blob"}),n=URL.createObjectURL(s),o=document.createElement("a");o.href=n,o.download=`dataset_${e.image_type}_${e.image_id}_${t}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n),console.log(`Exported ${e.image_type} dataset with 1 image in ${t} mode`),ie(!0)}catch(i){console.error("Export failed:",i),alert("Failed to export dataset. Please try again.")}finally{se(!1)}}},Ye=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;return!u||u==="undefined"||u==="null"||u.trim()===""||!Ye.test(u)?a.jsx(ae,{children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center py-12",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Invalid Map ID"}),a.jsx("div",{children:"The map ID provided is not valid."}),a.jsxs("div",{className:"text-sm text-gray-500 mt-2",children:['Debug Info: mapId = "',u,'" (type: ',typeof u,")"]}),a.jsx(F,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})}):O?a.jsx(ae,{children:a.jsx("div",{className:m.loadingContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4",children:[a.jsx(Ie,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading map details..."})]})})}):de||!e?a.jsx(ae,{children:a.jsx("div",{className:m.errorContainer,children:a.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[a.jsx("div",{className:"text-4xl",children:"⚠️"}),a.jsx("div",{className:"text-xl font-semibold",children:"Unable to load map"}),a.jsx("div",{children:de||"Map not found"}),a.jsx(F,{name:"back-to-explore",variant:"secondary",onClick:()=>y("/explore"),children:"Return to Explore"})]})})}):a.jsxs(ae,{children:[a.jsxs("div",{className:"max-w-7xl mx-auto",children:[a.jsxs("div",{className:m.tabSelector,children:[a.jsx(ia,{name:"map-details-view",value:ce,onChange:t=>{(t==="mapDetails"||t==="explore")&&(Ne(t),t==="explore"&&y("/explore"))},options:We,keySelector:t=>t.key,labelSelector:t=>t.label}),a.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[a.jsx(P,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs(F,{name:"reference-examples",variant:k?"primary":"secondary",onClick:()=>Ue(!k),className:"whitespace-nowrap",children:[a.jsx("span",{className:"mr-2",children:k?a.jsx("span",{className:"text-yellow-400",children:"★"}):a.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),a.jsx(F,{name:"export-dataset",variant:"secondary",onClick:()=>Q(!0),children:"Export"})]})]}),a.jsx(ca,{sources:ge,types:me,regions:pe,countries:De,imageTypes:ue,isLoadingFilters:!1}),ce==="mapDetails"?a.jsx("div",{className:"relative",children:c?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:m.gridLayout,children:[a.jsxs(P,{heading:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:c.title||"Map Image"}),c.starred&&a.jsx("span",{className:"text-red-500 text-xl",title:"Starred image",children:"★"})]}),headingLevel:2,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:[a.jsx("div",{className:m.imageContainer,children:e?.image_count&&e.image_count>1||x.length>1?a.jsxs("div",{className:m.carouselContainer,children:[a.jsx("div",{className:m.carouselImageWrapper,children:q?a.jsxs("div",{className:m.imagePlaceholder,children:[a.jsx(Ie,{className:"text-ifrcRed"}),a.jsx("div",{children:"Loading images..."})]}):x[L]?.detail_url?a.jsx("img",{src:x[L].detail_url,alt:x[L].file_key,className:m.carouselImage,onError:t=>{console.log("MapDetailsPage: Detail image failed to load, falling back to original:",x[L].detail_url);const i=t.target;x[L].image_url&&(i.src=x[L].image_url)},onLoad:()=>console.log("MapDetailsPage: Detail image loaded successfully:",x[L].detail_url)}):x[L]?.image_url?a.jsx("img",{src:x[L].image_url,alt:x[L].file_key,className:m.carouselImage,onLoad:()=>console.log("MapDetailsPage: Original image loaded successfully:",x[L].image_url)}):a.jsx("div",{className:m.imagePlaceholder,children:"No image available"})}),a.jsxs("div",{className:m.carouselNavigation,children:[a.jsx(F,{name:"previous-image",variant:"tertiary",size:1,onClick:Je,disabled:q,className:m.carouselButton,children:a.jsx(oe,{className:"w-4 h-4"})}),a.jsx("div",{className:m.carouselIndicators,children:x.map((t,i)=>a.jsx("button",{onClick:()=>Ve(i),className:`${m.carouselIndicator} ${i===L?m.carouselIndicatorActive:""}`,disabled:q,children:i+1},i))}),a.jsx(F,{name:"next-image",variant:"tertiary",size:1,onClick:Ge,disabled:q,className:m.carouselButton,children:a.jsx(re,{className:"w-4 h-4"})})]}),a.jsx("div",{className:m.viewImageButtonContainer,children:a.jsx(F,{name:"view-full-size-carousel",variant:"secondary",size:1,onClick:()=>ve(x[L]),disabled:q||!x[L]?.image_url,children:"View Image"})})]}):a.jsxs("div",{className:m.singleImageContainer,children:[c.detail_url?a.jsx("img",{src:c.detail_url,alt:c.file_key,onError:t=>{console.log("MapDetailsPage: Detail image failed to load, falling back to original:",c.detail_url);const i=t.target;c.image_url&&(i.src=c.image_url)},onLoad:()=>console.log("MapDetailsPage: Detail image loaded successfully:",c.detail_url)}):c.image_url?a.jsx("img",{src:c.image_url,alt:c.file_key,onLoad:()=>console.log("MapDetailsPage: Original image loaded successfully:",c.image_url)}):a.jsx("div",{className:m.imagePlaceholder,children:"No image available"}),a.jsx("div",{className:m.viewImageButtonContainer,children:a.jsx(F,{name:"view-full-size-single",variant:"secondary",size:1,onClick:()=>ve(c),disabled:!c.image_url,children:"View Image"})})]})}),a.jsx(P,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:a.jsxs("div",{className:m.metadataTags,children:[c.image_type!=="drone_image"&&a.jsx("span",{className:m.metadataTag,children:ge.find(t=>t.s_code===c.source)?.label||c.source}),a.jsx("span",{className:m.metadataTag,children:me.find(t=>t.t_code===c.event_type)?.label||c.event_type}),a.jsx("span",{className:m.metadataTag,children:ue.find(t=>t.image_type===c.image_type)?.label||c.image_type}),a.jsx("span",{className:m.metadataTag,children:c.model==="manual"?"Manual":"Generated"}),c.countries&&c.countries.length>0&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:m.metadataTag,children:pe.find(t=>t.r_code===c.countries[0].r_code)?.label||"Unknown Region"}),a.jsx("span",{className:m.metadataTag,children:c.countries.map(t=>t.label).join(", ")})]}),c.image_count&&c.image_count>1&&a.jsxs("span",{className:m.metadataTag,title:`Multi-upload with ${c.image_count} images`,children:["📷 ",c.image_count]}),(!c.image_count||c.image_count<=1)&&a.jsx("span",{className:m.metadataTag,title:"Single Upload",children:"Single"})]})})]}),a.jsx("div",{className:m.detailsSection,children:c.edited&&c.edited.includes("Description:")||c.generated&&c.generated.includes("Description:")?a.jsx(P,{heading:"Interpretation",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:m.captionContainer,children:a.jsx("div",{className:m.captionText,children:(c.edited||c.generated||"").split(/(Description:|Analysis:|Recommended Actions:)/).map((l,s)=>l.trim()===""?null:l==="Description:"||l==="Analysis:"||l==="Recommended Actions:"?a.jsx("h4",{className:"font-semibold text-gray-800 mt-4 mb-2",children:l},s):a.jsx("p",{className:"mb-2",children:l.trim()},s))})})}):a.jsx(P,{heading:"Description",headingLevel:3,withHeaderBorder:!0,withInternalPadding:!0,spacing:"comfortable",children:a.jsx("div",{className:m.captionContainer,children:c.generated||c.edited?a.jsx("div",{className:m.captionText,children:a.jsx("p",{children:c.edited||c.generated})}):a.jsx("p",{children:"— no caption yet —"})})})})]}),a.jsx("div",{className:"flex items-center justify-center mt-8",children:a.jsx(P,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-lg p-4",children:a.jsxs("div",{className:"flex items-center gap-4",children:[Le&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"previous-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${J?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>je("previous"),disabled:J,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(oe,{className:"w-4 h-4"}),a.jsx(oe,{className:"w-4 h-4"})]}),a.jsx("span",{className:"font-semibold",children:"Previous"})]})})}),le&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"delete",variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:qe,title:"Delete","aria-label":"Delete saved image",children:a.jsx(na,{className:"w-4 h-4"})})}),a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"contribute",onClick:Qe,children:"Contribute"})}),le&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"toggle-star",variant:"tertiary",size:1,className:`${e?.starred?"bg-red-100 hover:bg-red-200 text-red-800 border-2 border-red-400":"bg-gray-100 hover:bg-gray-200 text-gray-600 border-2 border-gray-300"} w-16 h-8 rounded-full transition-all duration-200 flex items-center justify-center`,onClick:Ke,title:e?.starred?"Unstar image":"Star image","aria-label":e?.starred?"Unstar image":"Star image",children:a.jsx("span",{className:`text-lg transition-all duration-200 ${e?.starred?"text-red-600":"text-gray-500"}`,children:e?.starred?"★":"☆"})})}),Te&&a.jsx(P,{withInternalPadding:!0,className:"rounded-md p-2",children:a.jsx(F,{name:"next-item",variant:"tertiary",size:1,className:`bg-white/90 hover:bg-white shadow-lg border border-gray-200 ${J?"opacity-50 cursor-not-allowed":"hover:scale-110"}`,onClick:()=>je("next"),disabled:J,children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:"font-semibold",children:"Next"}),a.jsxs("div",{className:"flex -space-x-1",children:[a.jsx(re,{className:"w-4 h-4"}),a.jsx(re,{className:"w-4 h-4"})]})]})})})]})})})]}):a.jsxs("div",{className:"text-center py-12",children:[a.jsx("div",{className:"text-xl font-semibold text-gray-600 mb-4",children:"No matches found"}),a.jsx("div",{className:"mt-4",children:a.jsx(F,{name:"clear-filters",variant:"secondary",onClick:Be,children:"Clear Filters"})})]})}):null]}),$e&&a.jsx("div",{className:m.fullSizeModalOverlay,onClick:()=>Z(!1),children:a.jsx("div",{className:m.fullSizeModalContent,onClick:t=>t.stopPropagation(),children:a.jsxs("div",{className:m.ratingWarningContent,children:[a.jsx("h3",{className:m.ratingWarningTitle,children:"Delete Image?"}),a.jsx("p",{className:m.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),a.jsxs("div",{className:m.ratingWarningButtons,children:[a.jsx(F,{name:"confirm-delete",variant:"secondary",onClick:Ze,children:"Delete"}),a.jsx(F,{name:"cancel-delete",variant:"tertiary",onClick:()=>Z(!1),children:"Cancel"})]})]})})}),fe&&a.jsx(da,{isOpen:fe,onClose:()=>{Q(!1),ie(!1),se(!1)},onExport:(t,i)=>{i.includes(e.image_type)&&Xe(t)},filteredCount:1,totalCount:1,hasFilters:!1,crisisMapsCount:e.image_type==="crisis_map"?1:0,droneImagesCount:e.image_type==="drone_image"?1:0,isLoading:Pe,exportSuccess:Re,variant:"single",onNavigateToList:()=>{Q(!1),y("/explore")},onNavigateAndExport:()=>{Q(!1),y("/explore?export=true")}}),a.jsx(oa,{isOpen:Ae,imageUrl:ze?.image_url||null,preview:null,selectedImageData:null,onClose:He,isLoading:Oe})]})}export{it as default}; diff --git a/py_backend/static/assets/index-7oBZSGHr.js b/py_backend/static/assets/index-tBgmM5yL.js similarity index 98% rename from py_backend/static/assets/index-7oBZSGHr.js rename to py_backend/static/assets/index-tBgmM5yL.js index 05b7a978..f9eec23c 100644 --- a/py_backend/static/assets/index-7oBZSGHr.js +++ b/py_backend/static/assets/index-tBgmM5yL.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-Csqqcm8m.js","assets/index-CcfIBRoF.js","assets/index-BzCX1Bzq.css"])))=>i.map(i=>d[i]); -import{j as t,z as b,n as w,v as Oe,w as Me,x as Le,B as Re,r as c,D as Je,N as ze,_ as fe,L as We,F as Ue,G as Ae}from"./index-CcfIBRoF.js";import{u as Be}from"./useAdmin-CrA3XozJ.js";import{F as He,E as Ve}from"./ExportModal-x1pUTnT7.js";const Ge="_paginatorContainer_1l5ti_1",Ze="_paginationControls_1l5ti_19",he={paginatorContainer:Ge,paginationControls:Ze};function qe({currentPage:N,totalPages:f,onPageChange:$,className:H=""}){if(f<=1)return null;const h=(()=>{const y=[];if(f<=5)for(let x=1;x<=f;x++)y.push(x);else{let x=Math.max(1,N-2);const S=Math.min(f,x+5-1);S===f&&(x=Math.max(1,S-5+1));for(let T=x;T<=S;T++)y.push(T)}return y})();return t.jsx("div",{className:`${he.paginatorContainer} ${H}`,children:t.jsxs("div",{className:he.paginationControls,children:[t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(w,{name:"prev-page",variant:"tertiary",size:1,onClick:()=>$(Math.max(1,N-1)),disabled:N===1,title:"Previous page",children:[t.jsx(Oe,{className:"w-4 h-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Previous"})]})}),t.jsxs("div",{className:"flex items-center gap-1",children:[h[0]>1&&t.jsxs(t.Fragment,{children:[t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(w,{name:"page-1",variant:"tertiary",size:1,onClick:()=>$(1),children:"1"})}),h[0]>2&&t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx("span",{className:"px-2 text-gray-500",children:"..."})})]}),h.map(y=>t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(w,{name:`page-${y}`,variant:N===y?"primary":"tertiary",size:1,onClick:()=>$(y),children:y})},y)),h[h.length-1]$(f),children:f})})]})]}),t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(w,{name:"next-page",variant:"tertiary",size:1,onClick:()=>$(Math.min(f,N+1)),disabled:N===f,title:"Next page",children:[t.jsx("span",{className:"hidden sm:inline",children:"Next"}),t.jsx(Me,{className:"w-4 h-4"})]})})]})})}const Ke="_tabSelector_o9y1f_1",Qe="_metadataTags_o9y1f_8",Xe="_metadataTag_o9y1f_8",Ye="_metadataTagSource_o9y1f_32",et="_metadataTagType_o9y1f_43",tt="_mapItem_o9y1f_54",at="_mapItemImage_o9y1f_72",st="_mapItemContent_o9y1f_92",it="_mapItemTitle_o9y1f_97",nt="_mapItemMetadata_o9y1f_105",lt="_fullSizeModalOverlay_o9y1f_134",rt="_fullSizeModalContent_o9y1f_148",ot="_ratingWarningContent_o9y1f_159",ct="_ratingWarningTitle_o9y1f_165",dt="_ratingWarningText_o9y1f_172",mt="_ratingWarningButtons_o9y1f_179",p={tabSelector:Ke,metadataTags:Qe,metadataTag:Xe,metadataTagSource:Ye,metadataTagType:et,mapItem:tt,mapItemImage:at,mapItemContent:st,mapItemTitle:it,mapItemMetadata:nt,fullSizeModalOverlay:lt,fullSizeModalContent:rt,ratingWarningContent:ot,ratingWarningTitle:ct,ratingWarningText:dt,ratingWarningButtons:mt};function ft(){const N=Le(),f=Re(),{isAuthenticated:$}=Be(),[H,ne]=c.useState("explore"),[h,y]=c.useState([]),{search:F,srcFilter:x,catFilter:S,regionFilter:T,countryFilter:L,imageTypeFilter:R,uploadTypeFilter:J,generatedMethodFilter:I,showReferenceExamples:E,setShowReferenceExamples:xe}=Je(),[K,_e]=c.useState([]),[Q,ye]=c.useState([]),[le,je]=c.useState([]),[Ne,ve]=c.useState([]),[re,be]=c.useState([]),[we,oe]=c.useState(!0),[z,ce]=c.useState(!0),[Se,X]=c.useState(!1),[Te,Y]=c.useState(!1),[Ie,ee]=c.useState(!1),[te,ae]=c.useState(null),[Ee,V]=c.useState(!1),[G,de]=c.useState(""),[se,me]=c.useState(!1),[W,ge]=c.useState(1),[C]=c.useState(10),[Z,pe]=c.useState(0),[Ce,ue]=c.useState(0),$e=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],U=c.useCallback(()=>{ce(!0),ae(null);const e=100,s=1,l=new URLSearchParams({page:s.toString(),limit:e.toString(),include_count:"true"});F&&l.append("search",F),x&&l.append("source",x),S&&l.append("event_type",S),T&&l.append("region",T),L&&l.append("country",L),R&&l.append("image_type",R),J&&l.append("upload_type",J),E&&l.append("starred_only","true"),fetch(`/api/images/grouped?${l.toString()}`).then(o=>{if(!o.ok)throw new Error(`Failed to fetch images: ${o.status} ${o.statusText}`);return o.json()}).then(o=>{console.log("ExplorePage: Fetched captions:",{data:o,fetchPage:s,fetchLimit:e,currentPage:W,itemsPerPage:C,generatedMethodFilter:I});let m=[],_=0;if(o.items&&typeof o.total_count=="number")m=o.items,_=m.length;else if(Array.isArray(o))m=o,_=o.length;else throw new Error("Unexpected response format");if(console.log("ExplorePage: After parsing response:",{itemsCount:m.length,totalCount:_,generatedMethodFilter:I,backendTotalCount:o.items?o.total_count:"N/A"}),I){const P=m.length;m=m.filter(q=>I==="manual"?q.model==="manual":I==="generated"?q.model!=="manual":!0),_=m.length,console.log("ExplorePage: After client-side filtering:",{beforeFilterCount:P,afterFilterCount:m.length})}const A=(W-1)*C,B=A+C;m=m.slice(A,B),console.log("ExplorePage: After client-side pagination:",{startIndex:A,endIndex:B,finalItemsCount:m.length,currentPage:W,itemsPerPage:C,totalCount:_,totalPages:Math.ceil(_/C)}),y(m),pe(_),ue(Math.ceil(_/C)),ae(null)}).catch(o=>{console.error("ExplorePage: Error fetching captions:",o),ae(o instanceof Error?o.message:"Failed to load images. Please try again later."),y([]),pe(0),ue(0)}).finally(()=>{ce(!1)})},[W,F,x,S,T,L,R,J,I,E,C]);c.useEffect(()=>{U()},[U]),c.useEffect(()=>{ge(1)},[F,x,S,T,L,R,J,I,E]),c.useEffect(()=>{const e=()=>{document.hidden||U()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[U]),c.useEffect(()=>{new URLSearchParams(f.search).get("export")==="true"&&(X(!0),N("/explore",{replace:!0}))},[f.search,N,F,x,S,T,L,R,I,E]),c.useEffect(()=>{oe(!0),Promise.all([fetch("/api/sources").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/regions").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/countries").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/image-types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()})]).then(([e,s,l,o,m])=>{_e(e),ye(s),je(l),ve(o),be(m)}).catch(()=>{}).finally(()=>{oe(!1)})},[]);const k=h,Fe=async(e,s="fine-tuning")=>{if(e.length===0){alert("No images to export");return}Y(!0),ee(!1);try{const l=(await Ae(async()=>{const{default:i}=await import("./jszip.min-Csqqcm8m.js").then(D=>D.j);return{default:i}},__vite__mapDeps([0,1,2]))).default,o=new l,m=e.filter(i=>i.image_type==="crisis_map"),_=e.filter(i=>i.image_type==="drone_image");if(m.length>0){const i=o.folder("crisis_maps_dataset"),D=i?.folder("images");if(D){let O=1;for(const a of m)try{const v=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],ie=v.map(async(n,j)=>{try{const r=await fetch(`/api/images/${n}/file`);if(!r.ok)throw new Error(`Failed to fetch image ${n}`);const d=await r.blob(),g=a.file_key.split(".").pop()||"jpg",u=`${String(O).padStart(4,"0")}_${String(j+1).padStart(2,"0")}.${g}`;return D.file(u,d),{success:!0,fileName:u,imageId:n}}catch(r){return console.error(`Failed to process image ${n}:`,r),{success:!1,fileName:"",imageId:n}}}),M=(await Promise.all(ie)).filter(n=>n.success);if(M.length>0){if(s==="fine-tuning"){const n=M.map(d=>`images/${d.fileName}`),j=Math.random(),r={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(j<.8){const d=i.file("train.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("train.jsonl",JSON.stringify(g,null,2))}else i.file("train.jsonl",JSON.stringify([r],null,2))}else if(j<.9){const d=i.file("test.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("test.jsonl",JSON.stringify(g,null,2))}else i.file("test.jsonl",JSON.stringify([r],null,2))}else{const d=i.file("val.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("val.jsonl",JSON.stringify(g,null,2))}else i.file("val.jsonl",JSON.stringify([r],null,2))}}else{const n=M.map(r=>`images/${r.fileName}`),j={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(O).padStart(4,"0")}.json`,JSON.stringify(j,null,2))}O++}}catch(v){console.error(`Failed to process caption ${a.image_id}:`,v)}}}if(_.length>0){const i=o.folder("drone_images_dataset"),D=i?.folder("images");if(D){let O=1;for(const a of _)try{const v=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],ie=v.map(async(n,j)=>{try{const r=await fetch(`/api/images/${n}/file`);if(!r.ok)throw new Error(`Failed to fetch image ${n}`);const d=await r.blob(),g=a.file_key.split(".").pop()||"jpg",u=`${String(O).padStart(4,"0")}_${String(j+1).padStart(2,"0")}.${g}`;return D.file(u,d),{success:!0,fileName:u,imageId:n}}catch(r){return console.error(`Failed to process image ${n}:`,r),{success:!1,fileName:"",imageId:n}}}),M=(await Promise.all(ie)).filter(n=>n.success);if(M.length>0){if(s==="fine-tuning"){const n=M.map(d=>`images/${d.fileName}`),j=Math.random(),r={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(j<.8){const d=i.file("train.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("train.jsonl",JSON.stringify(g,null,2))}else i.file("train.jsonl",JSON.stringify([r],null,2))}else if(j<.9){const d=i.file("test.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("test.jsonl",JSON.stringify(g,null,2))}else i.file("test.jsonl",JSON.stringify([r],null,2))}else{const d=i.file("val.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("val.jsonl",JSON.stringify(g,null,2))}else i.file("val.jsonl",JSON.stringify([r],null,2))}}else{const n=M.map(r=>`images/${r.fileName}`),j={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(O).padStart(4,"0")}.json`,JSON.stringify(j,null,2))}O++}}catch(v){console.error(`Failed to process caption ${a.image_id}:`,v)}}}const A=await o.generateAsync({type:"blob"}),B=URL.createObjectURL(A),P=document.createElement("a");P.href=B,P.download=`datasets_${s}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(P),P.click(),document.body.removeChild(P),URL.revokeObjectURL(B);const q=(m.length||0)+(_.length||0);console.log(`Exported ${s} datasets with ${q} total images:`),m.length>0&&console.log(`- Crisis maps: ${m.length} images`),_.length>0&&console.log(`- Drone images: ${_.length} images`),ee(!0)}catch(l){console.error("Export failed:",l),alert("Failed to export dataset. Please try again.")}finally{Y(!1)}},ke=e=>{de(e),V(!0)},Pe=async()=>{if(G){me(!0);try{console.log("Deleting image with ID:",G),(await fetch(`/api/images/${G}`,{method:"DELETE"})).ok?(y(s=>s.filter(l=>l.image_id!==G)),V(!1),de("")):(console.error("Delete failed"),alert("Failed to delete image. Please try again."))}catch(e){console.error("Delete failed:",e),alert("Failed to delete image. Please try again.")}finally{me(!1)}}};return t.jsxs(ze,{children:[z?t.jsx("div",{className:"flex flex-col items-center justify-center min-h-[60vh]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(fe,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}):t.jsxs("div",{className:"max-w-7xl mx-auto",children:[t.jsxs("div",{className:p.tabSelector,children:[t.jsx(We,{name:"explore-view",value:H,onChange:e=>{(e==="explore"||e==="mapDetails")&&(ne(e),e==="mapDetails"&&h.length>0&&(h[0]?.image_id&&h[0].image_id!=="undefined"&&h[0].image_id!=="null"?N(`/map/${h[0].image_id}`):console.error("Invalid image_id for navigation:",h[0]?.image_id)))},options:$e,keySelector:e=>e.key,labelSelector:e=>e.label}),t.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(w,{name:"reference-examples",variant:E?"primary":"secondary",onClick:()=>xe(!E),className:"whitespace-nowrap",children:[t.jsx("span",{className:"mr-2",children:E?t.jsx("span",{className:"text-yellow-400",children:"★"}):t.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),t.jsx(w,{name:"export-dataset",variant:"secondary",onClick:()=>X(!0),children:"Export"})]})]}),H==="explore"?t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"mb-6 space-y-4",children:t.jsx("div",{className:"flex flex-wrap items-center gap-4",children:t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:t.jsx(He,{sources:K,types:Q,regions:le,countries:Ne,imageTypes:re,isLoadingFilters:we})})})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"flex justify-between items-center",children:t.jsxs("p",{className:"text-sm text-gray-600",children:[k.length," of ",Z," examples"]})}),z&&t.jsx("div",{className:"text-center py-12",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(fe,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}),!z&&te&&t.jsx("div",{className:"text-center py-12",children:t.jsx(b,{withInternalPadding:!0,className:"bg-red-50 border border-red-200 rounded-md max-w-2xl mx-auto",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx("div",{className:"text-red-800 font-semibold text-lg",children:"Failed to Load Images"}),t.jsx("div",{className:"text-red-700",children:te}),t.jsx(w,{name:"retry-fetch",variant:"primary",onClick:()=>U(),children:"Retry"})]})})}),!z&&!te&&t.jsxs("div",{className:"space-y-4",children:[k.map(e=>t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("div",{className:`${p.mapItem} flex-1`,onClick:()=>{console.log("ExplorePage: Clicking on image with ID:",e.image_id),console.log("ExplorePage: Image data:",e),e.image_id&&e.image_id!=="undefined"&&e.image_id!=="null"?(console.log("ExplorePage: Navigating to:",`/map/${e.image_id}`),console.log("ExplorePage: Full navigation URL:",`/#/map/${e.image_id}`),N(`/map/${e.image_id}`)):(console.error("Invalid image_id for navigation:",e.image_id),console.error("Full item data:",JSON.stringify(e,null,2)),alert(`Cannot navigate: Invalid image ID (${e.image_id})`))},children:[t.jsx("div",{className:p.mapItemImage,style:{width:"120px",height:"80px"},children:e.thumbnail_url?t.jsxs(t.Fragment,{children:[console.log("ExplorePage: Using thumbnail for fast loading:",e.thumbnail_url),t.jsx("img",{src:e.thumbnail_url,alt:e.file_key,onError:s=>{console.error("ExplorePage: Thumbnail failed to load, falling back to original:",e.thumbnail_url);const l=s.target;e.image_url?l.src=e.image_url:(l.style.display="none",l.parentElement.innerHTML="Img")},onLoad:()=>console.log("ExplorePage: Thumbnail loaded successfully:",e.thumbnail_url)})]}):e.image_url?t.jsxs(t.Fragment,{children:[console.log("ExplorePage: No thumbnail available, using original image:",e.image_url),t.jsx("img",{src:e.image_url,alt:e.file_key,onError:s=>{console.error("ExplorePage: Original image failed to load:",e.image_url);const l=s.target;l.style.display="none",l.parentElement.innerHTML="Img"},onLoad:()=>console.log("ExplorePage: Original image loaded successfully:",e.image_url)})]}):t.jsxs(t.Fragment,{children:[console.log("ExplorePage: No image_url or thumbnail provided for item:",e),"'Img'"]})}),t.jsxs("div",{className:p.mapItemContent,children:[t.jsx("h3",{className:p.mapItemTitle,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{children:e.title||"Untitled"}),e.starred&&t.jsx("span",{className:"text-red-500 text-lg",title:"Starred image",children:"★"})]})}),t.jsx("div",{className:p.mapItemMetadata,children:t.jsxs("div",{className:p.metadataTags,children:[e.image_type!=="drone_image"&&t.jsx("span",{className:p.metadataTagSource,children:e.source&&e.source.includes(", ")?e.source.split(", ").map(s=>K.find(l=>l.s_code===s.trim())?.label||s.trim()).join(", "):K.find(s=>s.s_code===e.source)?.label||e.source}),t.jsx("span",{className:p.metadataTagType,children:e.event_type&&e.event_type.includes(", ")?e.event_type.split(", ").map(s=>Q.find(l=>l.t_code===s.trim())?.label||s.trim()).join(", "):Q.find(s=>s.t_code===e.event_type)?.label||e.event_type}),t.jsx("span",{className:p.metadataTag,children:re.find(s=>s.image_type===e.image_type)?.label||e.image_type}),t.jsx("span",{className:p.metadataTag,children:e.model==="manual"?"Manual":"Generated"}),e.image_count&&e.image_count>1&&t.jsxs("span",{className:p.metadataTag,title:`Multi-upload with ${e.image_count} images`,children:["📷 ",e.image_count]}),(!e.image_count||e.image_count<=1)&&t.jsx("span",{className:p.metadataTag,title:"Single Upload",children:"Single"}),e.countries&&e.countries.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:p.metadataTag,children:le.find(s=>s.r_code===e.countries[0].r_code)?.label||"Unknown Region"}),t.jsx("span",{className:p.metadataTag,children:e.countries.map(s=>s.label).join(", ")})]})]})})]})]}),$&&t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(w,{name:`delete-${e.image_id}`,variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:()=>ke(e.image_id),title:"Delete","aria-label":"Delete saved image",children:t.jsx(Ue,{className:"w-4 h-4"})})})]},e.image_id)),!k.length&&t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-500",children:"No examples found."})}),!z&&Z>0&&t.jsx(qe,{currentPage:W,totalPages:Ce,totalItems:Z,itemsPerPage:C,onPageChange:ge})]})]})]}):t.jsx("div",{className:"space-y-6",children:t.jsxs("div",{className:"text-center py-12",children:[t.jsx("p",{className:"text-gray-500",children:"Map Details view coming soon..."}),t.jsx("p",{className:"text-sm text-gray-400 mt-2",children:"This will show detailed information about individual maps"})]})})]}),Ee&&t.jsx("div",{className:p.fullSizeModalOverlay,onClick:()=>V(!1),children:t.jsx("div",{className:p.fullSizeModalContent,onClick:e=>e.stopPropagation(),children:t.jsxs("div",{className:p.ratingWarningContent,children:[t.jsx("h3",{className:p.ratingWarningTitle,children:"Delete Image?"}),t.jsx("p",{className:p.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),t.jsxs("div",{className:p.ratingWarningButtons,children:[t.jsx(w,{name:"confirm-delete",variant:"secondary",onClick:Pe,disabled:se,children:se?"Deleting...":"Delete"}),t.jsx(w,{name:"cancel-delete",variant:"tertiary",onClick:()=>V(!1),disabled:se,children:"Cancel"})]})]})})}),t.jsx(Ve,{isOpen:Se,onClose:()=>{X(!1),ee(!1),Y(!1)},onExport:(e,s)=>{const l=k.filter(o=>s.includes(o.image_type));Fe(l,e)},filteredCount:k.length,totalCount:Z,hasFilters:!!(F||x||S||T||L||R||J||I||E),crisisMapsCount:k.filter(e=>e.image_type==="crisis_map").length,droneImagesCount:k.filter(e=>e.image_type==="drone_image").length,isLoading:Te,exportSuccess:Ie})]})}export{ft as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-XJUuvkAi.js","assets/index-Dym8TuvV.js","assets/index-BYJiCH1e.css"])))=>i.map(i=>d[i]); +import{j as t,z as b,n as w,v as Oe,w as Me,x as Le,B as Re,r as c,D as Je,N as ze,_ as fe,L as We,F as Ue,G as Ae}from"./index-Dym8TuvV.js";import{u as Be}from"./useAdmin-DnFl9FMw.js";import{F as He,E as Ve}from"./ExportModal-Bq4gp-iF.js";const Ge="_paginatorContainer_1l5ti_1",Ze="_paginationControls_1l5ti_19",he={paginatorContainer:Ge,paginationControls:Ze};function qe({currentPage:N,totalPages:f,onPageChange:$,className:H=""}){if(f<=1)return null;const h=(()=>{const y=[];if(f<=5)for(let x=1;x<=f;x++)y.push(x);else{let x=Math.max(1,N-2);const S=Math.min(f,x+5-1);S===f&&(x=Math.max(1,S-5+1));for(let T=x;T<=S;T++)y.push(T)}return y})();return t.jsx("div",{className:`${he.paginatorContainer} ${H}`,children:t.jsxs("div",{className:he.paginationControls,children:[t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(w,{name:"prev-page",variant:"tertiary",size:1,onClick:()=>$(Math.max(1,N-1)),disabled:N===1,title:"Previous page",children:[t.jsx(Oe,{className:"w-4 h-4"}),t.jsx("span",{className:"hidden sm:inline",children:"Previous"})]})}),t.jsxs("div",{className:"flex items-center gap-1",children:[h[0]>1&&t.jsxs(t.Fragment,{children:[t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(w,{name:"page-1",variant:"tertiary",size:1,onClick:()=>$(1),children:"1"})}),h[0]>2&&t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx("span",{className:"px-2 text-gray-500",children:"..."})})]}),h.map(y=>t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(w,{name:`page-${y}`,variant:N===y?"primary":"tertiary",size:1,onClick:()=>$(y),children:y})},y)),h[h.length-1]$(f),children:f})})]})]}),t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(w,{name:"next-page",variant:"tertiary",size:1,onClick:()=>$(Math.min(f,N+1)),disabled:N===f,title:"Next page",children:[t.jsx("span",{className:"hidden sm:inline",children:"Next"}),t.jsx(Me,{className:"w-4 h-4"})]})})]})})}const Ke="_tabSelector_o9y1f_1",Qe="_metadataTags_o9y1f_8",Xe="_metadataTag_o9y1f_8",Ye="_metadataTagSource_o9y1f_32",et="_metadataTagType_o9y1f_43",tt="_mapItem_o9y1f_54",at="_mapItemImage_o9y1f_72",st="_mapItemContent_o9y1f_92",it="_mapItemTitle_o9y1f_97",nt="_mapItemMetadata_o9y1f_105",lt="_fullSizeModalOverlay_o9y1f_134",rt="_fullSizeModalContent_o9y1f_148",ot="_ratingWarningContent_o9y1f_159",ct="_ratingWarningTitle_o9y1f_165",dt="_ratingWarningText_o9y1f_172",mt="_ratingWarningButtons_o9y1f_179",p={tabSelector:Ke,metadataTags:Qe,metadataTag:Xe,metadataTagSource:Ye,metadataTagType:et,mapItem:tt,mapItemImage:at,mapItemContent:st,mapItemTitle:it,mapItemMetadata:nt,fullSizeModalOverlay:lt,fullSizeModalContent:rt,ratingWarningContent:ot,ratingWarningTitle:ct,ratingWarningText:dt,ratingWarningButtons:mt};function ft(){const N=Le(),f=Re(),{isAuthenticated:$}=Be(),[H,ne]=c.useState("explore"),[h,y]=c.useState([]),{search:F,srcFilter:x,catFilter:S,regionFilter:T,countryFilter:L,imageTypeFilter:R,uploadTypeFilter:J,generatedMethodFilter:I,showReferenceExamples:E,setShowReferenceExamples:xe}=Je(),[K,_e]=c.useState([]),[Q,ye]=c.useState([]),[le,je]=c.useState([]),[Ne,ve]=c.useState([]),[re,be]=c.useState([]),[we,oe]=c.useState(!0),[z,ce]=c.useState(!0),[Se,X]=c.useState(!1),[Te,Y]=c.useState(!1),[Ie,ee]=c.useState(!1),[te,ae]=c.useState(null),[Ee,V]=c.useState(!1),[G,de]=c.useState(""),[se,me]=c.useState(!1),[W,ge]=c.useState(1),[C]=c.useState(10),[Z,pe]=c.useState(0),[Ce,ue]=c.useState(0),$e=[{key:"explore",label:"List"},{key:"mapDetails",label:"Carousel"}],U=c.useCallback(()=>{ce(!0),ae(null);const e=100,s=1,l=new URLSearchParams({page:s.toString(),limit:e.toString(),include_count:"true"});F&&l.append("search",F),x&&l.append("source",x),S&&l.append("event_type",S),T&&l.append("region",T),L&&l.append("country",L),R&&l.append("image_type",R),J&&l.append("upload_type",J),E&&l.append("starred_only","true"),fetch(`/api/images/grouped?${l.toString()}`).then(o=>{if(!o.ok)throw new Error(`Failed to fetch images: ${o.status} ${o.statusText}`);return o.json()}).then(o=>{console.log("ExplorePage: Fetched captions:",{data:o,fetchPage:s,fetchLimit:e,currentPage:W,itemsPerPage:C,generatedMethodFilter:I});let m=[],_=0;if(o.items&&typeof o.total_count=="number")m=o.items,_=m.length;else if(Array.isArray(o))m=o,_=o.length;else throw new Error("Unexpected response format");if(console.log("ExplorePage: After parsing response:",{itemsCount:m.length,totalCount:_,generatedMethodFilter:I,backendTotalCount:o.items?o.total_count:"N/A"}),I){const P=m.length;m=m.filter(q=>I==="manual"?q.model==="manual":I==="generated"?q.model!=="manual":!0),_=m.length,console.log("ExplorePage: After client-side filtering:",{beforeFilterCount:P,afterFilterCount:m.length})}const A=(W-1)*C,B=A+C;m=m.slice(A,B),console.log("ExplorePage: After client-side pagination:",{startIndex:A,endIndex:B,finalItemsCount:m.length,currentPage:W,itemsPerPage:C,totalCount:_,totalPages:Math.ceil(_/C)}),y(m),pe(_),ue(Math.ceil(_/C)),ae(null)}).catch(o=>{console.error("ExplorePage: Error fetching captions:",o),ae(o instanceof Error?o.message:"Failed to load images. Please try again later."),y([]),pe(0),ue(0)}).finally(()=>{ce(!1)})},[W,F,x,S,T,L,R,J,I,E,C]);c.useEffect(()=>{U()},[U]),c.useEffect(()=>{ge(1)},[F,x,S,T,L,R,J,I,E]),c.useEffect(()=>{const e=()=>{document.hidden||U()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[U]),c.useEffect(()=>{new URLSearchParams(f.search).get("export")==="true"&&(X(!0),N("/explore",{replace:!0}))},[f.search,N,F,x,S,T,L,R,I,E]),c.useEffect(()=>{oe(!0),Promise.all([fetch("/api/sources").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/regions").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/countries").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()}),fetch("/api/image-types").then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}: ${e.statusText}`);return e.json()})]).then(([e,s,l,o,m])=>{_e(e),ye(s),je(l),ve(o),be(m)}).catch(()=>{}).finally(()=>{oe(!1)})},[]);const k=h,Fe=async(e,s="fine-tuning")=>{if(e.length===0){alert("No images to export");return}Y(!0),ee(!1);try{const l=(await Ae(async()=>{const{default:i}=await import("./jszip.min-XJUuvkAi.js").then(D=>D.j);return{default:i}},__vite__mapDeps([0,1,2]))).default,o=new l,m=e.filter(i=>i.image_type==="crisis_map"),_=e.filter(i=>i.image_type==="drone_image");if(m.length>0){const i=o.folder("crisis_maps_dataset"),D=i?.folder("images");if(D){let O=1;for(const a of m)try{const v=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],ie=v.map(async(n,j)=>{try{const r=await fetch(`/api/images/${n}/file`);if(!r.ok)throw new Error(`Failed to fetch image ${n}`);const d=await r.blob(),g=a.file_key.split(".").pop()||"jpg",u=`${String(O).padStart(4,"0")}_${String(j+1).padStart(2,"0")}.${g}`;return D.file(u,d),{success:!0,fileName:u,imageId:n}}catch(r){return console.error(`Failed to process image ${n}:`,r),{success:!1,fileName:"",imageId:n}}}),M=(await Promise.all(ie)).filter(n=>n.success);if(M.length>0){if(s==="fine-tuning"){const n=M.map(d=>`images/${d.fileName}`),j=Math.random(),r={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(j<.8){const d=i.file("train.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("train.jsonl",JSON.stringify(g,null,2))}else i.file("train.jsonl",JSON.stringify([r],null,2))}else if(j<.9){const d=i.file("test.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("test.jsonl",JSON.stringify(g,null,2))}else i.file("test.jsonl",JSON.stringify([r],null,2))}else{const d=i.file("val.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("val.jsonl",JSON.stringify(g,null,2))}else i.file("val.jsonl",JSON.stringify([r],null,2))}}else{const n=M.map(r=>`images/${r.fileName}`),j={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(O).padStart(4,"0")}.json`,JSON.stringify(j,null,2))}O++}}catch(v){console.error(`Failed to process caption ${a.image_id}:`,v)}}}if(_.length>0){const i=o.folder("drone_images_dataset"),D=i?.folder("images");if(D){let O=1;for(const a of _)try{const v=a.image_count&&a.image_count>1?a.all_image_ids||[a.image_id]:[a.image_id],ie=v.map(async(n,j)=>{try{const r=await fetch(`/api/images/${n}/file`);if(!r.ok)throw new Error(`Failed to fetch image ${n}`);const d=await r.blob(),g=a.file_key.split(".").pop()||"jpg",u=`${String(O).padStart(4,"0")}_${String(j+1).padStart(2,"0")}.${g}`;return D.file(u,d),{success:!0,fileName:u,imageId:n}}catch(r){return console.error(`Failed to process image ${n}:`,r),{success:!1,fileName:"",imageId:n}}}),M=(await Promise.all(ie)).filter(n=>n.success);if(M.length>0){if(s==="fine-tuning"){const n=M.map(d=>`images/${d.fileName}`),j=Math.random(),r={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};if(!i)continue;if(j<.8){const d=i.file("train.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("train.jsonl",JSON.stringify(g,null,2))}else i.file("train.jsonl",JSON.stringify([r],null,2))}else if(j<.9){const d=i.file("test.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("test.jsonl",JSON.stringify(g,null,2))}else i.file("test.jsonl",JSON.stringify([r],null,2))}else{const d=i.file("val.jsonl");if(d){const g=await d.async("string").then(u=>JSON.parse(u||"[]")).catch(()=>[]);g.push(r),i.file("val.jsonl",JSON.stringify(g,null,2))}else i.file("val.jsonl",JSON.stringify([r],null,2))}}else{const n=M.map(r=>`images/${r.fileName}`),j={image:n.length===1?n[0]:n,caption:a.edited||a.generated||"",metadata:{image_id:v,title:a.title,source:a.source,event_type:a.event_type,image_type:a.image_type,countries:a.countries,starred:a.starred,image_count:a.image_count||1}};i&&i.file(`${String(O).padStart(4,"0")}.json`,JSON.stringify(j,null,2))}O++}}catch(v){console.error(`Failed to process caption ${a.image_id}:`,v)}}}const A=await o.generateAsync({type:"blob"}),B=URL.createObjectURL(A),P=document.createElement("a");P.href=B,P.download=`datasets_${s}_${new Date().toISOString().split("T")[0]}.zip`,document.body.appendChild(P),P.click(),document.body.removeChild(P),URL.revokeObjectURL(B);const q=(m.length||0)+(_.length||0);console.log(`Exported ${s} datasets with ${q} total images:`),m.length>0&&console.log(`- Crisis maps: ${m.length} images`),_.length>0&&console.log(`- Drone images: ${_.length} images`),ee(!0)}catch(l){console.error("Export failed:",l),alert("Failed to export dataset. Please try again.")}finally{Y(!1)}},ke=e=>{de(e),V(!0)},Pe=async()=>{if(G){me(!0);try{console.log("Deleting image with ID:",G),(await fetch(`/api/images/${G}`,{method:"DELETE"})).ok?(y(s=>s.filter(l=>l.image_id!==G)),V(!1),de("")):(console.error("Delete failed"),alert("Failed to delete image. Please try again."))}catch(e){console.error("Delete failed:",e),alert("Failed to delete image. Please try again.")}finally{me(!1)}}};return t.jsxs(ze,{children:[z?t.jsx("div",{className:"flex flex-col items-center justify-center min-h-[60vh]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(fe,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}):t.jsxs("div",{className:"max-w-7xl mx-auto",children:[t.jsxs("div",{className:p.tabSelector,children:[t.jsx(We,{name:"explore-view",value:H,onChange:e=>{(e==="explore"||e==="mapDetails")&&(ne(e),e==="mapDetails"&&h.length>0&&(h[0]?.image_id&&h[0].image_id!=="undefined"&&h[0].image_id!=="null"?N(`/map/${h[0].image_id}`):console.error("Invalid image_id for navigation:",h[0]?.image_id)))},options:$e,keySelector:e=>e.key,labelSelector:e=>e.label}),t.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsxs(w,{name:"reference-examples",variant:E?"primary":"secondary",onClick:()=>xe(!E),className:"whitespace-nowrap",children:[t.jsx("span",{className:"mr-2",children:E?t.jsx("span",{className:"text-yellow-400",children:"★"}):t.jsx("span",{className:"text-yellow-400",children:"☆"})}),"Reference Examples"]})}),t.jsx(w,{name:"export-dataset",variant:"secondary",onClick:()=>X(!0),children:"Export"})]})]}),H==="explore"?t.jsxs("div",{className:"space-y-6",children:[t.jsx("div",{className:"mb-6 space-y-4",children:t.jsx("div",{className:"flex flex-wrap items-center gap-4",children:t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2 flex-1 min-w-[300px]",children:t.jsx(He,{sources:K,types:Q,regions:le,countries:Ne,imageTypes:re,isLoadingFilters:we})})})}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"flex justify-between items-center",children:t.jsxs("p",{className:"text-sm text-gray-600",children:[k.length," of ",Z," examples"]})}),z&&t.jsx("div",{className:"text-center py-12",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(fe,{className:"text-ifrcRed"}),t.jsx("div",{children:"Loading examples..."})]})}),!z&&te&&t.jsx("div",{className:"text-center py-12",children:t.jsx(b,{withInternalPadding:!0,className:"bg-red-50 border border-red-200 rounded-md max-w-2xl mx-auto",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx("div",{className:"text-red-800 font-semibold text-lg",children:"Failed to Load Images"}),t.jsx("div",{className:"text-red-700",children:te}),t.jsx(w,{name:"retry-fetch",variant:"primary",onClick:()=>U(),children:"Retry"})]})})}),!z&&!te&&t.jsxs("div",{className:"space-y-4",children:[k.map(e=>t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("div",{className:`${p.mapItem} flex-1`,onClick:()=>{console.log("ExplorePage: Clicking on image with ID:",e.image_id),console.log("ExplorePage: Image data:",e),e.image_id&&e.image_id!=="undefined"&&e.image_id!=="null"?(console.log("ExplorePage: Navigating to:",`/map/${e.image_id}`),console.log("ExplorePage: Full navigation URL:",`/#/map/${e.image_id}`),N(`/map/${e.image_id}`)):(console.error("Invalid image_id for navigation:",e.image_id),console.error("Full item data:",JSON.stringify(e,null,2)),alert(`Cannot navigate: Invalid image ID (${e.image_id})`))},children:[t.jsx("div",{className:p.mapItemImage,style:{width:"120px",height:"80px"},children:e.thumbnail_url?t.jsxs(t.Fragment,{children:[console.log("ExplorePage: Using thumbnail for fast loading:",e.thumbnail_url),t.jsx("img",{src:e.thumbnail_url,alt:e.file_key,onError:s=>{console.error("ExplorePage: Thumbnail failed to load, falling back to original:",e.thumbnail_url);const l=s.target;e.image_url?l.src=e.image_url:(l.style.display="none",l.parentElement.innerHTML="Img")},onLoad:()=>console.log("ExplorePage: Thumbnail loaded successfully:",e.thumbnail_url)})]}):e.image_url?t.jsxs(t.Fragment,{children:[console.log("ExplorePage: No thumbnail available, using original image:",e.image_url),t.jsx("img",{src:e.image_url,alt:e.file_key,onError:s=>{console.error("ExplorePage: Original image failed to load:",e.image_url);const l=s.target;l.style.display="none",l.parentElement.innerHTML="Img"},onLoad:()=>console.log("ExplorePage: Original image loaded successfully:",e.image_url)})]}):t.jsxs(t.Fragment,{children:[console.log("ExplorePage: No image_url or thumbnail provided for item:",e),"'Img'"]})}),t.jsxs("div",{className:p.mapItemContent,children:[t.jsx("h3",{className:p.mapItemTitle,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{children:e.title||"Untitled"}),e.starred&&t.jsx("span",{className:"text-red-500 text-lg",title:"Starred image",children:"★"})]})}),t.jsx("div",{className:p.mapItemMetadata,children:t.jsxs("div",{className:p.metadataTags,children:[e.image_type!=="drone_image"&&t.jsx("span",{className:p.metadataTagSource,children:e.source&&e.source.includes(", ")?e.source.split(", ").map(s=>K.find(l=>l.s_code===s.trim())?.label||s.trim()).join(", "):K.find(s=>s.s_code===e.source)?.label||e.source}),t.jsx("span",{className:p.metadataTagType,children:e.event_type&&e.event_type.includes(", ")?e.event_type.split(", ").map(s=>Q.find(l=>l.t_code===s.trim())?.label||s.trim()).join(", "):Q.find(s=>s.t_code===e.event_type)?.label||e.event_type}),t.jsx("span",{className:p.metadataTag,children:re.find(s=>s.image_type===e.image_type)?.label||e.image_type}),t.jsx("span",{className:p.metadataTag,children:e.model==="manual"?"Manual":"Generated"}),e.image_count&&e.image_count>1&&t.jsxs("span",{className:p.metadataTag,title:`Multi-upload with ${e.image_count} images`,children:["📷 ",e.image_count]}),(!e.image_count||e.image_count<=1)&&t.jsx("span",{className:p.metadataTag,title:"Single Upload",children:"Single"}),e.countries&&e.countries.length>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:p.metadataTag,children:le.find(s=>s.r_code===e.countries[0].r_code)?.label||"Unknown Region"}),t.jsx("span",{className:p.metadataTag,children:e.countries.map(s=>s.label).join(", ")})]})]})})]})]}),$&&t.jsx(b,{withInternalPadding:!0,className:"bg-white/20 backdrop-blur-sm rounded-md p-2",children:t.jsx(w,{name:`delete-${e.image_id}`,variant:"tertiary",size:1,className:"bg-red-50 hover:bg-red-100 text-red-700 border border-red-200 hover:border-red-300",onClick:()=>ke(e.image_id),title:"Delete","aria-label":"Delete saved image",children:t.jsx(Ue,{className:"w-4 h-4"})})})]},e.image_id)),!k.length&&t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-500",children:"No examples found."})}),!z&&Z>0&&t.jsx(qe,{currentPage:W,totalPages:Ce,totalItems:Z,itemsPerPage:C,onPageChange:ge})]})]})]}):t.jsx("div",{className:"space-y-6",children:t.jsxs("div",{className:"text-center py-12",children:[t.jsx("p",{className:"text-gray-500",children:"Map Details view coming soon..."}),t.jsx("p",{className:"text-sm text-gray-400 mt-2",children:"This will show detailed information about individual maps"})]})})]}),Ee&&t.jsx("div",{className:p.fullSizeModalOverlay,onClick:()=>V(!1),children:t.jsx("div",{className:p.fullSizeModalContent,onClick:e=>e.stopPropagation(),children:t.jsxs("div",{className:p.ratingWarningContent,children:[t.jsx("h3",{className:p.ratingWarningTitle,children:"Delete Image?"}),t.jsx("p",{className:p.ratingWarningText,children:"This action cannot be undone. Are you sure you want to delete this saved image and all related data?"}),t.jsxs("div",{className:p.ratingWarningButtons,children:[t.jsx(w,{name:"confirm-delete",variant:"secondary",onClick:Pe,disabled:se,children:se?"Deleting...":"Delete"}),t.jsx(w,{name:"cancel-delete",variant:"tertiary",onClick:()=>V(!1),disabled:se,children:"Cancel"})]})]})})}),t.jsx(Ve,{isOpen:Se,onClose:()=>{X(!1),ee(!1),Y(!1)},onExport:(e,s)=>{const l=k.filter(o=>s.includes(o.image_type));Fe(l,e)},filteredCount:k.length,totalCount:Z,hasFilters:!!(F||x||S||T||L||R||J||I||E),crisisMapsCount:k.filter(e=>e.image_type==="crisis_map").length,droneImagesCount:k.filter(e=>e.image_type==="drone_image").length,isLoading:Te,exportSuccess:Ie})]})}export{ft as default}; diff --git a/py_backend/static/assets/jszip.min-Csqqcm8m.js b/py_backend/static/assets/jszip.min-XJUuvkAi.js similarity index 99% rename from py_backend/static/assets/jszip.min-Csqqcm8m.js rename to py_backend/static/assets/jszip.min-XJUuvkAi.js index bb316195..d7fd0656 100644 --- a/py_backend/static/assets/jszip.min-Csqqcm8m.js +++ b/py_backend/static/assets/jszip.min-XJUuvkAi.js @@ -1,4 +1,4 @@ -import{V as bt,W as It}from"./index-CcfIBRoF.js";function vt(yt){throw new Error('Could not dynamically require "'+yt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kt={exports:{}};/*! +import{V as bt,W as It}from"./index-Dym8TuvV.js";function vt(yt){throw new Error('Could not dynamically require "'+yt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kt={exports:{}};/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files diff --git a/py_backend/static/assets/logo-DkhILSWp.jpg b/py_backend/static/assets/logo-DkhILSWp.jpg new file mode 100644 index 00000000..7b514285 --- /dev/null +++ b/py_backend/static/assets/logo-DkhILSWp.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45d98f276fcd585024dd62e635acd3305f29dc89171f15304913c6d528ba3c3b +size 25732 diff --git a/py_backend/static/assets/useAdmin-CrA3XozJ.js b/py_backend/static/assets/useAdmin-DnFl9FMw.js similarity index 65% rename from py_backend/static/assets/useAdmin-CrA3XozJ.js rename to py_backend/static/assets/useAdmin-DnFl9FMw.js index 1615aa25..41b66342 100644 --- a/py_backend/static/assets/useAdmin-CrA3XozJ.js +++ b/py_backend/static/assets/useAdmin-DnFl9FMw.js @@ -1 +1 @@ -import{r,T as e}from"./index-CcfIBRoF.js";const o=()=>{const t=r.useContext(e);if(t===void 0)throw new Error("useAdmin must be used within an AdminProvider");return t};export{o as u}; +import{r,T as e}from"./index-Dym8TuvV.js";const o=()=>{const t=r.useContext(e);if(t===void 0)throw new Error("useAdmin must be used within an AdminProvider");return t};export{o as u}; diff --git a/py_backend/static/index.html b/py_backend/static/index.html index 52f99b2a..f122f285 100644 --- a/py_backend/static/index.html +++ b/py_backend/static/index.html @@ -42,8 +42,8 @@ }); } - - + +