@petercjl/omni-desktop-app 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +9 -0
- package/README.md +4 -4
- package/UPDATE.md +7 -0
- package/app/assets/{CartesianChart-Bwf4u0Tg.js → CartesianChart-CP7p2vlm.js} +2 -2
- package/app/assets/{CollaborationWorkspace-Bd6Sjj31.js → CollaborationWorkspace-Cnp5PNn_.js} +3 -3
- package/app/assets/CompetitorAnalysis-Cujy_a2L.js +1 -0
- package/app/assets/CompetitorAnalysis-h1zdt0F2.css +1 -0
- package/app/assets/EmptyState-CUHuNsaV.js +1 -0
- package/app/assets/ErrorBarContext-BJE5-ljg.js +1 -0
- package/app/assets/{EvidenceSourceGuide-CwfB7Z6T.js → EvidenceSourceGuide-B1AJCZm2.js} +1 -1
- package/app/assets/FavoritePicker-XD1a_uOa.js +1 -0
- package/app/assets/Favorites-B5_fdEvZ.js +1 -0
- package/app/assets/{HelpTip-CX2LFdwD.js → HelpTip-BqRBO41J.js} +1 -1
- package/app/assets/LineChart-Ckvg5wfQ.js +4 -0
- package/app/assets/{Opportunities-a5IpRN6k.js → Opportunities-BvH64-dz.js} +1 -1
- package/app/assets/{ProgressiveRows-ByxDeTyy.js → ProgressiveRows-NojOUgmr.js} +1 -1
- package/app/assets/ShopLayoutPage-CCrRwaAx.js +1 -0
- package/app/assets/TrendChart-BF4JgwxH.js +1 -0
- package/app/assets/arrow-down-B1nil3T4.js +1 -0
- package/app/assets/arrow-left-BhFSpYzK.js +1 -0
- package/app/assets/arrow-up-right-IBQoN72x.js +1 -0
- package/app/assets/{book-open-C0B9Pao9.js → book-open-Cqdn6s-H.js} +1 -1
- package/app/assets/chart-column-DCwNhXki.js +1 -0
- package/app/assets/{chart-no-axes-combined-XDy9u9SV.js → chart-no-axes-combined-DVgKs36j.js} +1 -1
- package/app/assets/check-DBnlZFEo.js +1 -0
- package/app/assets/chevron-down-DO6RUQm8.js +1 -0
- package/app/assets/chevron-right-e65CaeL6.js +1 -0
- package/app/assets/{clock-3-TH35nOP-.js → clock-3-CDHtQwAe.js} +1 -1
- package/app/assets/competitor-analysis-D6eM9ugQ.js +1 -0
- package/app/assets/{components-C2-vHJtu.js → components-B5Xyjfpi.js} +2 -2
- package/app/assets/{download-BlJN0Lg8.js → download-DfM49VvV.js} +1 -1
- package/app/assets/entry-Bq7tA83b.js +1 -0
- package/app/assets/{entry-OcErMaMp.css → entry-CMur_AE7.css} +1 -1
- package/app/assets/entry-DC4oDjzU.js +2 -0
- package/app/assets/{entry-DM3aLe2I.js → entry-DM64sJfS.js} +1 -1
- package/app/assets/entry-DbqMDIJi.js +1 -0
- package/app/assets/{entry-CdLi3Z9F.js → entry-N8bfKXTF.js} +2 -2
- package/app/assets/{entry-CYGrMJuR.js → entry-kAWoaIsV.js} +2 -2
- package/app/assets/favorites.module-CHYv-Z8y.js +1 -0
- package/app/assets/{file-text-Hd45wNTe.js → file-text-DKAT5fzJ.js} +1 -1
- package/app/assets/getRadiusAndStrokeWidthFromDot-bv_ksZ7y.js +1 -0
- package/app/assets/{grid-2x2-C0aJVeyS.js → grid-2x2-DB6zRPIV.js} +1 -1
- package/app/assets/index-BgJNmU0Z.css +1 -0
- package/app/assets/{index-BguiS02-.js → index-DLSVWUSu.js} +2 -2
- package/app/assets/{layers-Dj9z2et6.js → layers-CjsT_HGi.js} +1 -1
- package/app/assets/{layout-dashboard-DS537D8b.js → layout-dashboard-sgUrlApv.js} +1 -1
- package/app/assets/{link-2-CCKUDMV6.js → link-2-VLti-YG9.js} +1 -1
- package/app/assets/{list-LZcXKWKD.js → list-Dfzc0sXQ.js} +1 -1
- package/app/assets/market-SuD7x_Hf.css +1 -0
- package/app/assets/market.module-VpU4XmGg.js +1 -0
- package/app/assets/{module-host-C4vqZw2y.js → module-host-DNtiV4gZ.js} +1 -1
- package/app/assets/{orbit-G4ZspWKB.js → orbit-CrQs6cpl.js} +1 -1
- package/app/assets/play-BxTFlaQX.js +1 -0
- package/app/assets/plus-D78h7lrw.js +1 -0
- package/app/assets/{products-BAKFF--e.js → products-B5vjXM_b.js} +1 -1
- package/app/assets/{project-public-HdtYycKS.js → project-public-CgW1u7BI.js} +1 -1
- package/app/assets/{project-public-BCoD2Anq.js → project-public-DWTt808B.js} +1 -1
- package/app/assets/public-C-PBMVOQ.js +1 -0
- package/app/assets/{refresh-cw-dsQ_f-9j.js → refresh-cw-CxbRf97c.js} +1 -1
- package/app/assets/search-DFdSppzm.js +1 -0
- package/app/assets/{triangle-alert-l-Mfj0iE.js → triangle-alert-C7qiylOf.js} +1 -1
- package/app/assets/{ui-public-BPe2GJZ-.css → ui-public-DHoRDp5_.css} +1 -1
- package/app/assets/{ui-public-DWkIf658.js → ui-public-Dt5dHt-8.js} +1 -1
- package/app/assets/workbench-DIKJZNJQ.js +2 -0
- package/app/assets/{workspace-view-state-BJMX6vWb.js → workspace-view-state-D0ujRczW.js} +1 -1
- package/app/desktop/main.mjs +7719 -0
- package/app/desktop/preload.cjs +30 -0
- package/app/index.html +2 -2
- package/app/package.json +1 -0
- package/app/public/omni-icon.png +0 -0
- package/app/tools/bootstrap.bin +0 -0
- package/app/tools/omni-desktop.mjs +526 -0
- package/package.json +7 -2
- package/release.json +1 -1
- package/release.sig +1 -1
- package/app/assets/EmptyState-CE7obISq.js +0 -1
- package/app/assets/Favorites-4oU1mgEb.js +0 -1
- package/app/assets/LineChart-B6igYupv.js +0 -4
- package/app/assets/ShopLayoutPage-D7KKJVEq.js +0 -1
- package/app/assets/TrendChart-BdRXaz4z.js +0 -1
- package/app/assets/arrow-down-DSjucZgz.js +0 -1
- package/app/assets/arrow-left-DmIga4jN.js +0 -1
- package/app/assets/arrow-up-right-DzAKT3cL.js +0 -1
- package/app/assets/check-BB89tIU6.js +0 -1
- package/app/assets/chevron-down-BiokgLxD.js +0 -1
- package/app/assets/chevron-right-CZlQQ5gV.js +0 -1
- package/app/assets/entry-Bxc-KNuY.js +0 -1
- package/app/assets/entry-ZwyGbRek.js +0 -1
- package/app/assets/entry-ffP7X21A.js +0 -2
- package/app/assets/index-D1qZkLPg.css +0 -1
- package/app/assets/market-DqV9l-vR.css +0 -1
- package/app/assets/market.module-BSrEp5Ak.js +0 -1
- package/app/assets/package-BFlv-jYw.js +0 -1
- package/app/assets/play-DxbesM66.js +0 -1
- package/app/assets/plus-QakkcxdA.js +0 -1
- package/app/assets/public-JUGpS2z7.js +0 -1
- package/app/assets/search-Cisx0wBF.js +0 -1
- package/app/assets/use-favorites-ALxrDxDW.js +0 -1
- package/app/assets/workbench-DZTf1DRZ.js +0 -2
- /package/app/assets/{api-hjUd9Skg.js → api-KZa8CR8X.js} +0 -0
- /package/app/assets/{use-favorites-_eKBQGeF.css → favorites-_eKBQGeF.css} +0 -0
- /package/app/assets/{format-BCxMsVJh.js → format-DL7i7_eV.js} +0 -0
- /package/app/assets/{graphicalItemSelectors-Hc730Dd1.js → graphicalItemSelectors-CJfZ6cht.js} +0 -0
- /package/app/assets/{group-CjIFQYrJ.js → group-Ed305HyG.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./orbit-G4ZspWKB.js";import{t as n}from"./arrow-down-DSjucZgz.js";import{t as r}from"./arrow-left-DmIga4jN.js";import{n as i,t as a}from"./clock-3-TH35nOP-.js";import{t as o}from"./book-open-C0B9Pao9.js";import{t as s}from"./chart-no-axes-combined-XDy9u9SV.js";import{t as c}from"./check-BB89tIU6.js";import{n as l,t as u}from"./layout-dashboard-DS537D8b.js";import{t as d}from"./layers-Dj9z2et6.js";import{t as ee}from"./play-DxbesM66.js";import{t as te}from"./refresh-cw-dsQ_f-9j.js";import{t as f}from"./triangle-alert-l-Mfj0iE.js";import{a as p,c as m,f as h,g,m as ne,o as re,p as _,u as ie,y as v}from"./index-BguiS02-.js";import{n as ae}from"./module-host-C4vqZw2y.js";import{n as oe}from"./workspace-view-state-BJMX6vWb.js";import"./public-JUGpS2z7.js";var y=_(`calendar-days`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]),se=_(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),ce=_(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),b=_(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),x=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),S=_(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),C=v(g(),1),le=[{id:`omni-start`,title:`山海入门:从市场机会到新品项目`,category:`入门指南`,date:`2026-11-20`,time:`14:00–15:30`,duration:`90 分钟`,format:`线上直播`,teacher:`林老师`,teacherBio:`课程示例讲师,围绕新品开发与团队协作,讲解山海的完整使用路径。`,description:`以一次新品机会评估为线索,认识山海的功能分工,将市场观察整理成可推进的项目,让资料、任务和成果各有归属。`,audience:`首次使用山海的同事、产品开发与电商运营人员。`,outcomes:[`理解五个业务模块的分工与使用顺序`,`将一个市场研究方向整理成项目目标`,`建立任务、资料与成果之间的关联`],preparation:[`准备一个希望研究的商品方向或类目`,`确认可以登录山海并进入企业工作区`],agenda:[{time:`14:00–14:15`,title:`认识山海的工作方式`,description:`从市场、经营、商品、项目与资料五个视角,理解信息如何流动。`},{time:`14:15–14:40`,title:`从市场观察提出问题`,description:`查看类目与榜单,记录观察、证据和需要进一步核实的问题。`},{time:`14:40–15:10`,title:`建立第一个新品项目`,description:`明确目标,组织节点与任务,关联资料并记录下一步行动。`},{time:`15:10–15:30`,title:`练习复盘与答疑`,description:`检查项目是否具备明确目标、可执行任务及可引用的依据。`}]},{id:`market-practice`,title:`市场大盘实战:筛选值得研究的赛道`,category:`市场研究`,date:`2026-11-24`,time:`19:30–21:00`,duration:`90 分钟`,format:`线上实操`,teacher:`陈老师`,teacherBio:`课程示例讲师,以类目趋势和竞争结构为线索,讲解市场研究方法。`,description:`从类目规模、增长和竞争分布出发,结合商品榜与店铺榜交叉查看,形成有证据、有边界的赛道研究结论。`,audience:`负责选品、市场研究、类目规划的产品与运营同事。`,outcomes:[`理解规模、增长和竞争指标的适用范围`,`完成从机会赛道到商品与店铺的下钻`,`整理一份包含证据与待核实问题的研究摘要`],preparation:[`选择一个已授权且有榜单数据的类目`,`准备一个业务问题,例如增长来自哪些商品或店铺`],agenda:[{time:`19:30–19:45`,title:`确定研究问题与比较范围`,description:`选择类目、月份与比较周期,识别缺失数据及可比范围。`},{time:`19:45–20:10`,title:`识别机会与竞争结构`,description:`结合规模、增长、基数与店铺数量,筛选值得进一步研究的方向。`},{time:`20:10–20:40`,title:`商品与店铺交叉验证`,description:`下钻榜单,观察商品增长、店铺分布和趋势,检验初步判断。`},{time:`20:40–21:00`,title:`形成结论与答疑`,description:`区分事实、假设和行动建议,明确下一步补充哪些证据。`}]},{id:`agent-workflow`,title:`项目与 Agent 协作:从任务交接到成果归档`,category:`协作进阶`,date:`2026-11-27`,time:`14:00–16:00`,duration:`120 分钟`,format:`实战工作坊`,teacher:`周老师`,teacherBio:`课程示例讲师,关注任务组织、Agent 协作与项目知识沉淀。`,description:`围绕一个具体任务,练习准备上下文、交接给已连接的 Agent、沟通修改,并将结果与证据归档到原项目。`,audience:`希望使用 Agent 完成研究、分析或内容任务的项目负责人和执行同事。`,outcomes:[`写清任务目标、输入与完成标准`,`理解任务交接、实际执行与成果回写的区别`,`在原任务中查看成果、执行记录和项目知识`],preparation:[`准备一个项目及可独立完成的任务`,`连接一个本机 Agent,并确认具备任务所需 Skill`,`准备可用于该任务的资料和附件`],agenda:[{time:`14:00–14:20`,title:`准备可执行的任务`,description:`明确目标、前置资料、完成标准和需要人工判断的事项。`},{time:`14:20–14:50`,title:`将任务交接给 Agent`,description:`检查连接,打开任务对话,读取项目背景并确认执行范围。`},{time:`14:50–15:30`,title:`执行、反馈与修改`,description:`在 Agent 对话中补充资料,检视结果,并记录受阻原因与处理方式。`},{time:`15:30–16:00`,title:`归档成果与知识`,description:`回到山海核对文件、结果摘要、项目 Wiki 和任务状态,复盘完整链路。`}]}];function w(e){return new Intl.DateTimeFormat(`zh-CN`,{timeZone:`Asia/Shanghai`,month:`long`,day:`numeric`,weekday:`long`}).format(new Date(`${e}T12:00:00+08:00`))}var ue=[{version:`0.1.7`,date:`2026-11-17`,title:`市场洞察与项目工作流,更进一步`,summary:`从发现机会到推进项目,让研究与行动衔接得更顺畅。`,changes:[{kind:`新增`,title:`机会市场与增长商品下钻`,description:`从机会市场继续查看增长商品,支持进一步研究市场变化。`},{kind:`优化`,title:`项目统一入口`,description:`统一项目访问入口,并在工作台展示项目摘要。`},{kind:`优化`,title:`店铺商品目录`,description:`更新店铺商品目录,方便浏览经营商品。`},{kind:`优化`,title:`机会发现页面`,description:`调整页面留白、筛选栏及统计月份卡片,提升阅读和筛选体验。`}]},{version:`0.1.6`,date:`2026-11-17`,title:`更清晰的项目模板与任务编辑`,summary:`完善项目配置细节,让模板选择与任务组织更加顺手。`,changes:[{kind:`优化`,title:`SOP 与任务模板详情`,description:`优化模板详情,便于查看内容并组织项目。`},{kind:`优化`,title:`平台选择与 Skill 标注`,description:`完善平台全选、反选及 Skill 标注的展示。`},{kind:`优化`,title:`添加节点与任务`,description:`优化编辑过程中的滚动和预览布局。`}]},{version:`0.1.5`,date:`2026-11-16`,title:`市场分析,连接真实业务数据`,summary:`完善市场分析的数据、方案与视窗交互。`,changes:[{kind:`新增`,title:`真实市场数据分析`,description:`市场分析接入真实数据,支持在业务场景中开展研究。`},{kind:`新增`,title:`账号分析方案`,description:`支持保存账号分析方案,便于持续使用。`},{kind:`优化`,title:`分析视窗交互`,description:`完善市场分析视窗的浏览体验。`}]},{version:`0.1.4`,date:`2026-11-15`,title:`账号管理与桌面导航体验升级`,summary:`完善企业账号管理,并统一日常使用的导航与页头。`,changes:[{kind:`新增`,title:`更完整的企业账号管理`,description:`支持管理员子账号、选填使用人与电话,以及自助修改密码。`},{kind:`优化`,title:`统一页头与固定业务导航`,description:`提供可折叠菜单、快捷按钮名称提示和固定业务导航。`},{kind:`优化`,title:`账号菜单与 Agent 提示词`,description:`优化账号菜单和 Agent 使用提示词。`}]}],T;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(T||={});var de;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(de||={});var E=T.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),D=e=>{switch(typeof e){case`undefined`:return E.undefined;case`string`:return E.string;case`number`:return Number.isNaN(e)?E.nan:E.number;case`boolean`:return E.boolean;case`function`:return E.function;case`bigint`:return E.bigint;case`symbol`:return E.symbol;case`object`:return Array.isArray(e)?E.array:e===null?E.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?E.promise:typeof Map<`u`&&e instanceof Map?E.map:typeof Set<`u`&&e instanceof Set?E.set:typeof Date<`u`&&e instanceof Date?E.date:E.object;default:return E.unknown}},O=T.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),k=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,T.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};k.create=e=>new k(e);var fe=(e,t)=>{let n;switch(e.code){case O.invalid_type:n=e.received===E.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case O.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,T.jsonStringifyReplacer)}`;break;case O.unrecognized_keys:n=`Unrecognized key(s) in object: ${T.joinValues(e.keys,`, `)}`;break;case O.invalid_union:n=`Invalid input`;break;case O.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${T.joinValues(e.options)}`;break;case O.invalid_enum_value:n=`Invalid enum value. Expected ${T.joinValues(e.options)}, received '${e.received}'`;break;case O.invalid_arguments:n=`Invalid function arguments`;break;case O.invalid_return_type:n=`Invalid function return type`;break;case O.invalid_date:n=`Invalid date`;break;case O.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:T.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case O.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case O.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case O.custom:n=`Invalid input`;break;case O.invalid_intersection_types:n=`Intersection results could not be merged`;break;case O.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case O.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,T.assertNever(e)}return{message:n}},pe=fe;function me(){return pe}var he=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function A(e,t){let n=me(),r=he({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fe?void 0:fe].filter(e=>!!e)});e.common.issues.push(r)}var j=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return M;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return M;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},M=Object.freeze({status:`aborted`}),ge=e=>({status:`dirty`,value:e}),N=e=>({status:`valid`,value:e}),_e=e=>e.status===`aborted`,ve=e=>e.status===`dirty`,ye=e=>e.status===`valid`,be=e=>typeof Promise<`u`&&e instanceof Promise,P;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(P||={});var F=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},xe=(e,t)=>{if(ye(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new k(e.common.issues);return this._error=t,this._error}}};function I(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var L=class{get description(){return this._def.description}_getType(e){return D(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new j,ctx:{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(be(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)};return xe(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return ye(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>ye(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)},r=this._parse({data:e,path:n.path,parent:n});return xe(n,await(be(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:O.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new W({schema:this,typeName:q.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return G.create(this,this._def)}nullable(){return K.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this)}promise(){return _t.create(this,this._def)}or(e){return it.create([this,e],this._def)}and(e){return st.create(this,e,this._def)}transform(e){return new W({...I(this._def),schema:this,typeName:q.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new vt({...I(this._def),innerType:this,defaultValue:t,typeName:q.ZodDefault})}brand(){return new xt({typeName:q.ZodBranded,type:this,...I(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new yt({...I(this._def),innerType:this,catchValue:t,typeName:q.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return St.create(this,e)}readonly(){return Ct.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Se=/^c[^\s-]{8,}$/i,Ce=/^[0-9a-z]+$/,we=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Te=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Ee=/^[a-z0-9_-]{21}$/i,De=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Oe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ke=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ae=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,je,Me=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Pe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ie=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Le=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Re=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,ze=RegExp(`^${Re}$`);function Be(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Ve(e){return RegExp(`^${Be(e)}$`)}function He(e){let t=`${Re}T${Be(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Ue(e,t){return!!((t===`v4`||!t)&&Me.test(e)||(t===`v6`||!t)&&Pe.test(e))}function We(e,t){if(!De.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Ge(e,t){return!!((t===`v4`||!t)&&Ne.test(e)||(t===`v6`||!t)&&Fe.test(e))}var Ke=class e extends L{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==E.string){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.string,received:t.parsedType}),M}let t=new j,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?A(n,{code:O.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&A(n,{code:O.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)ke.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`email`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)je||=new RegExp(Ae,`u`),je.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`emoji`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)Te.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`uuid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)Ee.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`nanoid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)Se.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cuid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)Ce.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cuid2`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)we.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`ulid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),A(n,{validation:`url`,code:O.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`regex`,code:O.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?He(r).test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?ze.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?Ve(r).test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?Oe.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`duration`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?Ue(e.data,r.version)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`ip`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?We(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`jwt`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?Ge(e.data,r.version)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cidr`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?Ie.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`base64`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?Le.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`base64url`,code:O.invalid_string,message:r.message}),t.dirty()):T.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:O.invalid_string,...P.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...P.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...P.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...P.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...P.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...P.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...P.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...P.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...P.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...P.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...P.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...P.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...P.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...P.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...P.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...P.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...P.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...P.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...P.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...P.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...P.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...P.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...P.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...P.errToObj(t)})}nonempty(e){return this.min(1,P.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ke.create=e=>new Ke({checks:[],typeName:q.ZodString,coerce:e?.coerce??!1,...I(e)});function qe(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Je=class e extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==E.number){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.number,received:t.parsedType}),M}let t,n=new j;for(let r of this._def.checks)r.kind===`int`?T.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),A(t,{code:O.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?qe(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_finite,message:r.message}),n.dirty()):T.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,P.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,P.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,P.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,P.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:P.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:P.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:P.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:P.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:P.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:P.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&T.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};Je.create=e=>new Je({checks:[],typeName:q.ZodNumber,coerce:e?.coerce||!1,...I(e)});var Ye=class e extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==E.bigint)return this._getInvalidInput(e);let t,n=new j;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):T.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.bigint,received:t.parsedType}),M}gte(e,t){return this.setLimit(`min`,e,!0,P.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,P.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,P.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,P.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:P.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:P.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ye.create=e=>new Ye({checks:[],typeName:q.ZodBigInt,coerce:e?.coerce??!1,...I(e)});var Xe=class extends L{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==E.boolean){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.boolean,received:t.parsedType}),M}return N(e.data)}};Xe.create=e=>new Xe({typeName:q.ZodBoolean,coerce:e?.coerce||!1,...I(e)});var Ze=class e extends L{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==E.date){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.date,received:t.parsedType}),M}if(Number.isNaN(e.data.getTime()))return A(this._getOrReturnCtx(e),{code:O.invalid_date}),M;let t=new j,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):T.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:P.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:P.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};Ze.create=e=>new Ze({checks:[],coerce:e?.coerce||!1,typeName:q.ZodDate,...I(e)});var Qe=class extends L{_parse(e){if(this._getType(e)!==E.symbol){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.symbol,received:t.parsedType}),M}return N(e.data)}};Qe.create=e=>new Qe({typeName:q.ZodSymbol,...I(e)});var $e=class extends L{_parse(e){if(this._getType(e)!==E.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.undefined,received:t.parsedType}),M}return N(e.data)}};$e.create=e=>new $e({typeName:q.ZodUndefined,...I(e)});var et=class extends L{_parse(e){if(this._getType(e)!==E.null){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.null,received:t.parsedType}),M}return N(e.data)}};et.create=e=>new et({typeName:q.ZodNull,...I(e)});var tt=class extends L{constructor(){super(...arguments),this._any=!0}_parse(e){return N(e.data)}};tt.create=e=>new tt({typeName:q.ZodAny,...I(e)});var R=class extends L{constructor(){super(...arguments),this._unknown=!0}_parse(e){return N(e.data)}};R.create=e=>new R({typeName:q.ZodUnknown,...I(e)});var z=class extends L{_parse(e){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.never,received:t.parsedType}),M}};z.create=e=>new z({typeName:q.ZodNever,...I(e)});var nt=class extends L{_parse(e){if(this._getType(e)!==E.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.void,received:t.parsedType}),M}return N(e.data)}};nt.create=e=>new nt({typeName:q.ZodVoid,...I(e)});var B=class e extends L{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==E.array)return A(t,{code:O.invalid_type,expected:E.array,received:t.parsedType}),M;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(A(t,{code:e?O.too_big:O.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(A(t,{code:O.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(A(t,{code:O.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new F(t,e,t.path,n)))).then(e=>j.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new F(t,e,t.path,n)));return j.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:P.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:P.toString(n)}})}nonempty(e){return this.min(1,e)}};B.create=(e,t)=>new B({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...I(t)});function rt(e){if(e instanceof V){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=G.create(rt(r))}return new V({...e._def,shape:()=>t})}else if(e instanceof B)return new B({...e._def,type:rt(e.element)});else if(e instanceof G)return G.create(rt(e.unwrap()));else if(e instanceof K)return K.create(rt(e.unwrap()));else if(e instanceof U)return U.create(e.items.map(e=>rt(e)));else return e}var V=class e extends L{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=T.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==E.object){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.object,received:t.parsedType}),M}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof z&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new F(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof z){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(A(n,{code:O.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new F(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>j.mergeObjectSync(t,e)):j.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return P.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:P.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of T.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of T.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return rt(this)}partial(t){let n={};for(let e of T.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of T.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof G;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return mt(T.objectKeys(this.shape))}};V.create=(e,t)=>new V({shape:()=>e,unknownKeys:`strip`,catchall:z.create(),typeName:q.ZodObject,...I(t)}),V.strictCreate=(e,t)=>new V({shape:()=>e,unknownKeys:`strict`,catchall:z.create(),typeName:q.ZodObject,...I(t)}),V.lazycreate=(e,t)=>new V({shape:e,unknownKeys:`strip`,catchall:z.create(),typeName:q.ZodObject,...I(t)});var it=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new k(e.ctx.common.issues));return A(t,{code:O.invalid_union,unionErrors:n}),M}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new k(e));return A(t,{code:O.invalid_union,unionErrors:i}),M}}get options(){return this._def.options}};it.create=(e,t)=>new it({options:e,typeName:q.ZodUnion,...I(t)});var H=e=>e instanceof ft?H(e.schema):e instanceof W?H(e.innerType()):e instanceof pt?[e.value]:e instanceof ht?e.options:e instanceof gt?T.objectValues(e.enum):e instanceof vt?H(e._def.innerType):e instanceof $e?[void 0]:e instanceof et?[null]:e instanceof G?[void 0,...H(e.unwrap())]:e instanceof K?[null,...H(e.unwrap())]:e instanceof xt||e instanceof Ct?H(e.unwrap()):e instanceof yt?H(e._def.innerType):[],at=class e extends L{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==E.object)return A(t,{code:O.invalid_type,expected:E.object,received:t.parsedType}),M;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(A(t,{code:O.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),M)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=H(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:q.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...I(r)})}};function ot(e,t){let n=D(e),r=D(t);if(e===t)return{valid:!0,data:e};if(n===E.object&&r===E.object){let n=T.objectKeys(t),r=T.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ot(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===E.array&&r===E.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ot(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===E.date&&r===E.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var st=class extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(_e(e)||_e(r))return M;let i=ot(e.value,r.value);return i.valid?((ve(e)||ve(r))&&t.dirty(),{status:t.value,value:i.data}):(A(n,{code:O.invalid_intersection_types}),M)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};st.create=(e,t,n)=>new st({left:e,right:t,typeName:q.ZodIntersection,...I(n)});var U=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.array)return A(n,{code:O.invalid_type,expected:E.array,received:n.parsedType}),M;if(n.data.length<this._def.items.length)return A(n,{code:O.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),M;!this._def.rest&&n.data.length>this._def.items.length&&(A(n,{code:O.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new F(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>j.mergeArray(t,e)):j.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};U.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new U({items:e,typeName:q.ZodTuple,rest:null,...I(t)})};var ct=class e extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.object)return A(n,{code:O.invalid_type,expected:E.object,received:n.parsedType}),M;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new F(n,e,n.path,e)),value:a._parse(new F(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?j.mergeObjectAsync(t,r):j.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof L?new e({keyType:t,valueType:n,typeName:q.ZodRecord,...I(r)}):new e({keyType:Ke.create(),valueType:t,typeName:q.ZodRecord,...I(n)})}},lt=class extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.map)return A(n,{code:O.invalid_type,expected:E.map,received:n.parsedType}),M;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new F(n,e,n.path,[a,`key`])),value:i._parse(new F(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return M;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return M;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};lt.create=(e,t,n)=>new lt({valueType:t,keyType:e,typeName:q.ZodMap,...I(n)});var ut=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.set)return A(n,{code:O.invalid_type,expected:E.set,received:n.parsedType}),M;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(A(n,{code:O.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(A(n,{code:O.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return M;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new F(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:P.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ut.create=(e,t)=>new ut({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...I(t)});var dt=class e extends L{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==E.function)return A(t,{code:O.invalid_type,expected:E.function,received:t.parsedType}),M;function n(e,n){return he({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,me(),fe].filter(e=>!!e),issueData:{code:O.invalid_arguments,argumentsError:n}})}function r(e,n){return he({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,me(),fe].filter(e=>!!e),issueData:{code:O.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof _t){let e=this;return N(async function(...t){let o=new k([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return N(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new k([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new k([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:U.create(t).rest(R.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||U.create([]).rest(R.create()),returns:n||R.create(),typeName:q.ZodFunction,...I(r)})}},ft=class extends L{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};ft.create=(e,t)=>new ft({getter:e,typeName:q.ZodLazy,...I(t)});var pt=class extends L{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return A(t,{received:t.data,code:O.invalid_literal,expected:this._def.value}),M}return{status:`valid`,value:e.data}}get value(){return this._def.value}};pt.create=(e,t)=>new pt({value:e,typeName:q.ZodLiteral,...I(t)});function mt(e,t){return new ht({values:e,typeName:q.ZodEnum,...I(t)})}var ht=class e extends L{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{expected:T.joinValues(n),received:t.parsedType,code:O.invalid_type}),M}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{received:t.data,code:O.invalid_enum_value,options:n}),M}return N(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};ht.create=mt;var gt=class extends L{_parse(e){let t=T.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==E.string&&n.parsedType!==E.number){let e=T.objectValues(t);return A(n,{expected:T.joinValues(e),received:n.parsedType,code:O.invalid_type}),M}if(this._cache||=new Set(T.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=T.objectValues(t);return A(n,{received:n.data,code:O.invalid_enum_value,options:e}),M}return N(e.data)}get enum(){return this._def.values}};gt.create=(e,t)=>new gt({values:e,typeName:q.ZodNativeEnum,...I(t)});var _t=class extends L{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==E.promise&&t.common.async===!1?(A(t,{code:O.invalid_type,expected:E.promise,received:t.parsedType}),M):N((t.parsedType===E.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};_t.create=(e,t)=>new _t({type:e,typeName:q.ZodPromise,...I(t)});var W=class extends L{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{A(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return M;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?M:r.status===`dirty`||t.value===`dirty`?ge(r.value):r});{if(t.value===`aborted`)return M;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?M:r.status===`dirty`||t.value===`dirty`?ge(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?M:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?M:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ye(e))return M;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>ye(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):M);T.assertNever(r)}};W.create=(e,t,n)=>new W({schema:e,typeName:q.ZodEffects,effect:t,...I(n)}),W.createWithPreprocess=(e,t,n)=>new W({schema:t,effect:{type:`preprocess`,transform:e},typeName:q.ZodEffects,...I(n)});var G=class extends L{_parse(e){return this._getType(e)===E.undefined?N(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};G.create=(e,t)=>new G({innerType:e,typeName:q.ZodOptional,...I(t)});var K=class extends L{_parse(e){return this._getType(e)===E.null?N(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};K.create=(e,t)=>new K({innerType:e,typeName:q.ZodNullable,...I(t)});var vt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===E.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};vt.create=(e,t)=>new vt({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...I(t)});var yt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return be(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new k(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new k(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};yt.create=(e,t)=>new yt({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...I(t)});var bt=class extends L{_parse(e){if(this._getType(e)!==E.nan){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.nan,received:t.parsedType}),M}return{status:`valid`,value:e.data}}};bt.create=e=>new bt({typeName:q.ZodNaN,...I(e)});var xt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},St=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?M:e.status===`dirty`?(t.dirty(),ge(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?M:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:q.ZodPipeline})}},Ct=class extends L{_parse(e){let t=this._def.innerType._parse(e),n=e=>(ye(e)&&(e.value=Object.freeze(e.value)),e);return be(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};Ct.create=(e,t)=>new Ct({innerType:e,typeName:q.ZodReadonly,...I(t)}),V.lazycreate;var q;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(q||={});var J=Ke.create,Y=Je.create;bt.create,Ye.create;var wt=Xe.create;Ze.create,Qe.create,$e.create,et.create,tt.create;var Tt=R.create;z.create,nt.create;var Et=B.create,X=V.create;V.strictCreate,it.create,at.create,st.create,U.create;var Dt=ct.create;lt.create,ut.create,dt.create,ft.create;var Ot=pt.create;ht.create,gt.create,_t.create,W.create,G.create,K.create,W.createWithPreprocess,St.create;var kt=J().regex(/^\d{4}-\d{2}-\d{2}$/).refine(e=>Number.isFinite(Date.parse(e))&&new Date(e).toISOString().slice(0,10)===e),At=X({id:J(),name:J(),goal:J().optional(),stages:Et(J()),taskCount:Y().int().nonnegative(),updatedAt:J().optional(),archivedAt:J().nullable().optional()}),jt=X({taskCount:Y().int().nonnegative(),statusCounts:Dt(J(),Y().int().nonnegative())}).refine(e=>Object.values(e.statusCounts).reduce((e,t)=>e+t,0)===e.taskCount),Mt=X({id:J(),project:J(),projectName:J(),mode:J(),created:J(),start:kt,end:kt,total:Y().finite().nonnegative(),shopId:J().optional(),shopIds:Et(J()).default([]),scopeLabel:J(),basis:J(),count:Y().nonnegative().optional(),breakdown:Et(X({name:J(),sales:Y().finite(),count:Y().optional()})).default([])}).refine(e=>e.start<=e.end);function Nt(e){return[...new Set(e.map(e=>`${e.start}|${e.end}`))].sort((e,t)=>t.split(`|`)[1].localeCompare(e.split(`|`)[1])||t.localeCompare(e))}function Pt(e,t,n){let r=new Set(t.map(e=>e.id)),i=e.filter(e=>`${e.start}|${e.end}`===n&&e.mode!==`simulated`),a=new Map,o=[];for(let e of i){let t=e.shopId||(e.shopIds.length===1?e.shopIds[0]:``);if(!t||!r.has(t)||e.shopIds.some(e=>e!==t)){o.push(e);continue}let n=a.get(t);(!n||e.created>n.created||e.created===n.created&&e.id>n.id)&&a.set(t,e)}let s=t.map(e=>({...e,report:a.get(e.id)})),c=[...a.values()].reduce((e,t)=>e+Math.round(t.total*100),0);return{rows:s,covered:a.size,total:a.size?c/100:null,unassigned:o}}function Ft(e){let t=e.filter(e=>!e.archivedAt),n=t.filter(e=>e.counts!==null),r=e=>n.reduce((t,n)=>t+(n.counts?.[e]||0),0),i=t.reduce((e,t)=>e+t.taskCount,0),a=r(`已完成`);return{total:t.length,tasks:i,done:a,running:r(`进行中`),blocked:r(`已阻塞`),covered:n.length,complete:n.length===t.length,active:n.filter(e=>e.taskCount>0&&(e.counts?.已完成||0)<e.taskCount).length,progress:i?Math.round(a/i*100):0}}var It=X({ok:Ot(!0),data:X({items:Et(At),total:Y().int().nonnegative(),hasMore:wt()})});async function Lt(e){let t=[];for(let n=1;n<=100;n++){let r=It.parse(await e(`/collaboration/query/project/list?limit=100&page=${n}`));if(t.push(...r.data.items.map(e=>({...e,counts:null}))),!r.data.hasMore)break;if(!r.data.items.length||n===100)throw Error(`项目清单未读取完整,请重试`)}for(let n=0;n<t.length;n+=4)await Promise.all(t.slice(n,n+4).filter(e=>!e.archivedAt).map(async t=>{try{let n=X({ok:Ot(!0),data:jt}).parse(await e(`/collaboration/query/project/context?projectId=`+encodeURIComponent(t.id)));t.counts=n.data.statusCounts,t.taskCount=n.data.taskCount}catch{t.counts=null}}));return t}async function Rt(e){let t=X({products:Et(X({mode:J()})),metrics:X({sales:Et(Tt())})}).parse(await e(`/growth-center`)),n=[],r=0;for(let e of t.metrics.sales){let t=Mt.safeParse(e);t.success?t.data.mode!==`simulated`&&n.push(t.data):typeof e==`object`&&e&&`mode`in e&&e.mode===`simulated`||r++}return{sales:n,productCount:t.products.filter(e=>e.mode!==`simulated`).length,invalidSales:r}}var Z={overview:`_overview_ngsjb_1`,network:`_network_ngsjb_1`,pageHeading:`_pageHeading_ngsjb_1`,eyebrow:`_eyebrow_ngsjb_1`,refresh:`_refresh_ngsjb_1`,panelHeading:`_panelHeading_ngsjb_1`,shopDetails:`_shopDetails_ngsjb_1`,bottomMeta:`_bottomMeta_ngsjb_1`,topGrid:`_topGrid_ngsjb_1`,kpis:`_kpis_ngsjb_1`,money:`_money_ngsjb_1`,mainGrid:`_mainGrid_ngsjb_1`,panel:`_panel_ngsjb_1`,filters:`_filters_ngsjb_1`,shop:`_shop_ngsjb_1`,shopIcon:`_shopIcon_ngsjb_1`,shopIdentity:`_shopIdentity_ngsjb_1`,salesBar:`_salesBar_ngsjb_1`,projectStatus:`_projectStatus_ngsjb_1`,warning:`_warning_ngsjb_1`,projectRow:`_projectRow_ngsjb_1`,progress:`_progress_ngsjb_1`,note:`_note_ngsjb_1`,empty:`_empty_ngsjb_1`,error:`_error_ngsjb_1`,unassigned:`_unassigned_ngsjb_1`,networkHead:`_networkHead_ngsjb_1`,canvas:`_canvas_ngsjb_1`,networkCenter:`_networkCenter_ngsjb_1`,networkTags:`_networkTags_ngsjb_1`,motionNote:`_motionNote_ngsjb_1`,spinning:`_spinning_ngsjb_1`,spin:`_spin_ngsjb_1`},Q=re(),zt=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Bt=e=>{let t=window.matchMedia(`(prefers-reduced-motion: reduce)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)};function Vt({projects:e,shops:t,tasks:n}){let r=(0,C.useRef)(null),i=(0,C.useSyncExternalStore)(Bt,zt,()=>!1),[a,o]=(0,C.useState)(()=>{try{let e=localStorage.getItem(`omni.home.effects`);return e===`playing`||e===`paused`?e:`system`}catch{return`system`}}),s=a===`playing`||a===`system`&&!i;function c(){let e=s?`paused`:`playing`;o(e);try{localStorage.setItem(`omni.home.effects`,e)}catch{}}return(0,C.useEffect)(()=>{let e=r.current,t=e?.getContext(`2d`);if(!e||!t)return;let n=0,i=0,a=0,o=-1/0,c=0,l=!0,u=``,d=``,ee=Array.from({length:64},(e,t)=>{let n=1-t/63*2,r=Math.sqrt(1-n*n),i=t*2.399963229728653;return{x:Math.cos(i)*r,y:n,z:Math.sin(i)*r}});function te(r){if(!t||!e)return;if(r-o<32){s&&l&&!document.hidden&&(n=requestAnimationFrame(te));return}o=r,s&&(c+=.018),t.clearRect(0,0,i,a);let f=Math.min(i*.3,a*.39),p=i*.51,m=a*.48,h=ee.map(e=>{let t=e.x*Math.cos(c)-e.z*Math.sin(c),n=e.x*Math.sin(c)+e.z*Math.cos(c);return{x:p+t*f,y:m+e.y*f*.82+Math.sin(c+e.x)*8,z:n}}),g=t.createRadialGradient(p,m,8,p,m,f*1.6);g.addColorStop(0,u+`25`),g.addColorStop(1,u+`00`),t.fillStyle=g,t.fillRect(0,0,i,a);for(let e=0;e<h.length;e++)for(let n=e+1;n<h.length;n++){let r=h[e],i=h[n],a=Math.hypot(r.x-i.x,r.y-i.y);if(!(a>f*.57||Math.abs(r.z-i.z)>1)&&(t.globalAlpha=(1-a/(f*.57))*.32,t.strokeStyle=u,t.lineWidth=.8,t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(i.x,i.y),t.stroke(),(e+n)%13==0)){let n=(c*.8+e*.13)%1;t.globalAlpha=.8,t.fillStyle=u,t.beginPath(),t.arc(r.x+(i.x-r.x)*n,r.y+(i.y-r.y)*n,2.4,0,Math.PI*2),t.fill()}}h.forEach((e,n)=>{t.globalAlpha=(e.z+1)*.32+.25,t.fillStyle=n%7==0?u:d,t.beginPath(),t.arc(e.x,e.y,n%7==0?3:1.6,0,Math.PI*2),t.fill()}),t.globalAlpha=.5,t.strokeStyle=u,t.lineWidth=1;for(let e=0;e<2;e++)t.beginPath(),t.ellipse(p,m,f*1.24,f*.4,e?-.35:.35,c*(e?-1:1),c*(e?-1:1)+Math.PI*1.55),t.stroke();t.globalAlpha=1,s&&l&&!document.hidden&&(n=requestAnimationFrame(te))}function f(){cancelAnimationFrame(n),o=-1/0,n=requestAnimationFrame(te)}function p(){if(!e||!t)return;let n=e.getBoundingClientRect();i=n.width,a=n.height;let r=Math.min(devicePixelRatio||1,2);e.width=i*r,e.height=a*r,t.setTransform(r,0,0,r,0,0);let o=document.documentElement.dataset.omniTheme===`light`;u=o?`#087b86`:`#61e1ec`,d=o?`#477596`:`#7ca8d5`,f()}let m=new ResizeObserver(p);m.observe(e);let h=new MutationObserver(p);h.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-omni-theme`]});let g=new IntersectionObserver(e=>{l=e[0].isIntersecting,l?f():cancelAnimationFrame(n)});g.observe(e);let ne=()=>{document.hidden?cancelAnimationFrame(n):l&&f()};return document.addEventListener(`visibilitychange`,ne),p(),()=>{cancelAnimationFrame(n),m.disconnect(),h.disconnect(),g.disconnect(),document.removeEventListener(`visibilitychange`,ne)}},[s]),(0,Q.jsxs)(`section`,{className:Z.network,"aria-label":`项目与店铺动态数据网络`,children:[(0,Q.jsxs)(`div`,{className:Z.networkHead,children:[(0,Q.jsx)(`span`,{children:`OMNI / DATA NETWORK`}),(0,Q.jsxs)(`button`,{onClick:c,"aria-label":s?`暂停科技动效`:`开启科技动效`,"aria-pressed":s,children:[s?(0,Q.jsx)(ce,{size:12}):(0,Q.jsx)(ee,{size:12}),` `,s?`动效运行中`:`开启科技动效`]})]}),(0,Q.jsx)(`canvas`,{ref:r,className:Z.canvas,"aria-hidden":`true`}),(0,Q.jsxs)(`div`,{className:Z.networkCenter,children:[(0,Q.jsx)(`strong`,{children:`OMNI`}),(0,Q.jsx)(`span`,{children:`连接业务与行动`})]}),(0,Q.jsxs)(`div`,{className:Z.networkTags,children:[(0,Q.jsxs)(`span`,{children:[`项目 `,(0,Q.jsx)(`b`,{children:e??`—`})]}),(0,Q.jsxs)(`span`,{children:[`店铺 `,(0,Q.jsx)(`b`,{children:t})]}),(0,Q.jsxs)(`span`,{children:[`进行中任务 `,(0,Q.jsx)(`b`,{children:n??`—`})]})]}),!s&&i&&(0,Q.jsx)(`small`,{className:Z.motionNote,children:`系统偏好减少动态,可单独开启本页动效`})]})}var Ht=e=>e===null?`—`:new Intl.NumberFormat(`zh-CN`,{style:`currency`,currency:`CNY`,maximumFractionDigits:2}).format(e),Ut=e=>new Date(e).toLocaleTimeString(`zh-CN`,{timeZone:`Asia/Shanghai`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function Wt({api:t,onModule:n,onOpen:r}){let a=p(),[o,c]=(0,C.useState)(null),[l,u]=(0,C.useState)(null),[d,ee]=(0,C.useState)([]),[m,g]=(0,C.useState)(!0),[ne,re]=(0,C.useState)(``),[_,ie]=(0,C.useState)(0),[v,ae]=oe(`home.sales.period`,``),y=(0,C.useRef)(!1),ce=(0,C.useCallback)(()=>{y.current||(g(!0),ie(e=>e+1))},[]);(0,C.useEffect)(()=>{let e=!0;return y.current=!0,Promise.allSettled([Lt(t),Rt(t)]).then(([t,n])=>{if(!e)return;let r=[];t.status===`fulfilled`?c(t.value):(c(null),r.push(`项目统计读取失败`)),n.status===`fulfilled`?u(n.value):(u(null),r.push(`经营归档读取失败`)),ee(r),re(new Date().toISOString()),g(!1),y.current=!1}),()=>{e=!1,y.current=!1}},[t,_]),(0,C.useEffect)(()=>{let e=setInterval(()=>{document.hidden||ce()},6e4);return()=>clearInterval(e)},[ce]);let b=o?Ft(o):null,x=(a?.shops||[]).filter(e=>!a?.selected||e.id===a.selected),S=Nt(l?.sales||[]),le=S.includes(v)?v:S[0]||``,w=Pt(l?.sales||[],x,le),ue=(o||[]).filter(e=>!e.archivedAt).sort((e,t)=>{let n=e=>e.counts?.已阻塞?0:e.counts&&e.taskCount>(e.counts.已完成||0)?1:2;return n(e)-n(t)||(t.updatedAt||``).localeCompare(e.updatedAt||``)}),T=Math.max(1,...w.rows.map(e=>e.report?.total||0));return(0,Q.jsxs)(`div`,{className:Z.overview,children:[(0,Q.jsxs)(`div`,{className:Z.pageHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:Z.eyebrow,children:`山海 · OMNI / 企业总览`}),(0,Q.jsx)(`h1`,{children:`今天的业务,一屏掌握`}),(0,Q.jsx)(`p`,{children:`项目推进、店铺经营与销售归档,连接到下一步行动。`})]}),(0,Q.jsxs)(`div`,{className:Z.refresh,children:[(0,Q.jsx)(`span`,{children:m?`正在同步…`:ne?`${Ut(ne)} 已同步 · 每分钟刷新`:``}),(0,Q.jsxs)(`button`,{disabled:m,onClick:ce,"aria-label":`刷新首页数据`,children:[(0,Q.jsx)(te,{size:14,className:m?Z.spinning:void 0}),m?`同步中`:`刷新`]})]})]}),d.length>0&&(0,Q.jsxs)(`div`,{role:`alert`,className:Z.error,children:[d.join(`;`),`,可刷新重试。其他已成功读取的信息继续显示。`]}),(0,Q.jsxs)(`div`,{className:Z.topGrid,children:[(0,Q.jsxs)(`div`,{className:Z.kpis,children:[(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(se,{size:17}),`企业项目`]}),(0,Q.jsxs)(`strong`,{children:[b?.total??`—`,(0,Q.jsx)(`small`,{children:`个`})]}),(0,Q.jsxs)(`p`,{children:[`当前未归档项目 · `,b?.active??`—`,` 个待推进`]})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(e,{size:17}),`进行中任务`]}),(0,Q.jsxs)(`strong`,{children:[b?.complete?b.running:`—`,(0,Q.jsx)(`small`,{children:`项`})]}),(0,Q.jsx)(`p`,{children:b?.complete?`已完成 ${b.done} / ${b.tasks} 项任务`:`等待读取完整任务统计`})]}),(0,Q.jsxs)(`button`,{onClick:()=>document.getElementById(`home-shops`)?.scrollIntoView({block:`start`}),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(h,{size:17}),`授权店铺`]}),(0,Q.jsxs)(`strong`,{children:[x.length,(0,Q.jsx)(`small`,{children:`家`})]}),(0,Q.jsx)(`p`,{children:a?.selected?`当前选定店铺`:`当前账号可访问的店铺`})]}),(0,Q.jsxs)(`button`,{onClick:()=>document.getElementById(`home-shops`)?.scrollIntoView({block:`start`}),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(s,{size:17}),`同期店铺销售额`]}),(0,Q.jsx)(`strong`,{className:Z.money,children:Ht(w.total)}),(0,Q.jsx)(`p`,{children:le?`${le.replace(`|`,` 至 `)} · 覆盖 ${w.covered}/${x.length} 家`:`尚无可汇总的店铺销售归档`})]})]}),(0,Q.jsx)(Vt,{projects:b?.total??null,shops:x.length,tasks:b?.complete?b.running:null})]}),(0,Q.jsxs)(`div`,{className:Z.mainGrid,children:[(0,Q.jsxs)(`section`,{className:Z.panel,id:`home-shops`,children:[(0,Q.jsxs)(`div`,{className:Z.panelHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h2`,{children:`店铺经营概览`}),(0,Q.jsx)(`p`,{children:`支付销售额 · 不扣退款 · 按归档统计周期`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`overview`),children:[`经营分析 `,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsxs)(`div`,{className:Z.filters,children:[a&&(0,Q.jsxs)(`label`,{children:[`店铺范围`,(0,Q.jsxs)(`select`,{"aria-label":`首页店铺范围`,value:a.selected,onChange:e=>a.onSelect(e.target.value),children:[(0,Q.jsx)(`option`,{value:``,children:`全部授权店铺`}),a.shops.map(e=>(0,Q.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]}),(0,Q.jsxs)(`label`,{children:[`销售统计周期`,(0,Q.jsxs)(`select`,{"aria-label":`首页销售统计周期`,value:le,disabled:!S.length,onChange:e=>ae(e.target.value),children:[!S.length&&(0,Q.jsx)(`option`,{value:``,children:`暂无销售归档`}),S.map(e=>(0,Q.jsx)(`option`,{value:e,children:e.replace(`|`,` 至 `)},e))]})]})]}),(0,Q.jsx)(`div`,{className:Z.shopList,children:w.rows.map(e=>(0,Q.jsxs)(`details`,{className:Z.shop,children:[(0,Q.jsxs)(`summary`,{children:[(0,Q.jsx)(`span`,{className:Z.shopIcon,children:(0,Q.jsx)(h,{size:17})}),(0,Q.jsxs)(`span`,{className:Z.shopIdentity,children:[(0,Q.jsx)(`b`,{children:e.name}),(0,Q.jsx)(`small`,{children:e.report?`${e.report.count??`—`} 个商品链接 · 点击核对来源`:`该周期暂无已关联的销售记录`})]}),(0,Q.jsx)(`div`,{className:Z.salesBar,"aria-hidden":`true`,children:(0,Q.jsx)(`i`,{style:{width:`${(e.report?.total||0)/T*100}%`}})}),(0,Q.jsx)(`strong`,{children:Ht(e.report?.total??null)})]}),(0,Q.jsxs)(`div`,{className:Z.shopDetails,children:[(0,Q.jsxs)(`p`,{children:[`店铺编号:`,e.id]}),e.report?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`p`,{children:[`统计周期:`,e.report.start,` 至 `,e.report.end]}),(0,Q.jsxs)(`p`,{children:[`来源:`,e.report.projectName,` · `,e.report.scopeLabel]}),(0,Q.jsx)(`p`,{children:e.report.basis}),(0,Q.jsxs)(`p`,{children:[`归档时间:`,new Date(e.report.created).toLocaleString(`zh-CN`,{timeZone:`Asia/Shanghai`})]})]}):(0,Q.jsx)(`p`,{children:`请在资料中心归档并关联本店铺的全店销售记录。`}),(0,Q.jsxs)(`button`,{onClick:()=>n(`data`),children:[`查看资料中心 `,(0,Q.jsx)(i,{size:12})]})]})]},e.id))}),!x.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:`当前账号尚无授权店铺。`}),l&&!S.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:`尚未读取到销售归档。导入全店销售账本后,将按店铺及相同统计周期汇总。`}),w.unassigned.length>0&&(0,Q.jsxs)(`details`,{className:Z.unassigned,children:[(0,Q.jsxs)(`summary`,{children:[(0,Q.jsx)(f,{size:13}),w.unassigned.length,` 份销售归档待核对店铺归属`]}),w.unassigned.map(e=>(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`b`,{children:[e.scopeLabel,` · `,Ht(e.total)]}),(0,Q.jsxs)(`p`,{children:[e.projectName,` · `,e.start,` 至 `,e.end]})]},e.id)),(0,Q.jsx)(`p`,{children:`这些原件保持独立展示,确认唯一店铺归属后计入汇总。`})]}),l?.invalidSales?(0,Q.jsxs)(`p`,{className:Z.warning,children:[l.invalidSales,` 份归档缺少有效金额或周期,未计入。`]}):null,(0,Q.jsx)(`p`,{className:Z.note,children:`同店、同期采用最新归档,避免重复累计。覆盖不足时显示已覆盖店铺小计;跨周期金额分别查看。`})]}),(0,Q.jsxs)(`section`,{className:Z.panel,children:[(0,Q.jsxs)(`div`,{className:Z.panelHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h2`,{children:`项目推进`}),(0,Q.jsx)(`p`,{children:`企业共享项目 · 与项目工作台同步`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[`全部项目 `,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsxs)(`div`,{className:Z.projectStatus,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`b`,{children:b?.complete?b.done:`—`}),`已完成任务`]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`b`,{children:b?.complete?b.running:`—`}),`进行中`]}),(0,Q.jsxs)(`span`,{className:Z.warning,children:[(0,Q.jsx)(`b`,{children:b?.complete?b.blocked:`—`}),`受阻任务`]})]}),!b?.complete&&o&&(0,Q.jsxs)(`p`,{className:Z.warning,children:[`已读取 `,b?.covered,`/`,b?.total,` 个项目的任务统计,请刷新重试。`]}),ue.slice(0,5).map(e=>{let t=e.counts?.已完成||0,n=e.taskCount?Math.round(t/e.taskCount*100):0;return(0,Q.jsxs)(`button`,{className:Z.projectRow,onClick:()=>r(e.id,{tab:`overview`}),children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`b`,{children:e.name}),(0,Q.jsxs)(`span`,{children:[e.counts?`${t}/${e.taskCount} 项完成`:`任务统计暂不可用`,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsx)(`p`,{children:e.goal||`进入项目查看目标与任务`}),(0,Q.jsx)(`div`,{className:Z.progress,role:`progressbar`,"aria-label":e.name+`任务完成比例`,"aria-valuenow":e.counts?n:void 0,"aria-valuemin":0,"aria-valuemax":100,children:(0,Q.jsx)(`i`,{style:{width:`${e.counts?n:0}%`}})})]},e.id)}),!ue.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:m?`正在读取企业项目…`:o?`还没有项目,进入项目工作台建立第一个项目。`:`项目服务暂不可用,请刷新重试。`}),(0,Q.jsxs)(`div`,{className:Z.bottomMeta,children:[(0,Q.jsxs)(`span`,{children:[`经营商品档案 `,(0,Q.jsx)(`b`,{children:l?.productCount??`—`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`products`),children:[`查看商品 `,(0,Q.jsx)(i,{size:13})]})]})]})]}),(0,Q.jsx)(`p`,{className:Z.note,children:`自动刷新更新已归档数据与项目状态;销售额并非实时交易数据。店铺按当前授权范围读取,项目按企业共享范围统计。`})]})}var $={landing:`_landing_b83tr_1`,hero:`_hero_b83tr_3`,heroCopy:`_heroCopy_b83tr_4`,brand:`_brand_b83tr_4`,brandCaption:`_brandCaption_b83tr_4`,heroEyebrow:`_heroEyebrow_b83tr_4`,heroActions:`_heroActions_b83tr_4`,primary:`_primary_b83tr_4`,heroSecondary:`_heroSecondary_b83tr_4`,universe:`_universe_b83tr_5`,orbitOuter:`_orbitOuter_b83tr_5`,orbitInner:`_orbitInner_b83tr_5`,planet:`_planet_b83tr_5`,orbitLabel:`_orbitLabel_b83tr_5`,orbitMarket:`_orbitMarket_b83tr_5`,orbitProject:`_orbitProject_b83tr_5`,orbitAgent:`_orbitAgent_b83tr_5`,orbitData:`_orbitData_b83tr_5`,universeCaption:`_universeCaption_b83tr_5`,section:`_section_b83tr_6`,sectionHeading:`_sectionHeading_b83tr_6`,kicker:`_kicker_b83tr_6`,principles:`_principles_b83tr_6`,principleTop:`_principleTop_b83tr_6`,modules:`_modules_b83tr_7`,moduleCard:`_moduleCard_b83tr_7`,moduleTop:`_moduleTop_b83tr_7`,features:`_features_b83tr_7`,moduleLink:`_moduleLink_b83tr_7`,sectionIntro:`_sectionIntro_b83tr_8`,scheduleLabel:`_scheduleLabel_b83tr_8`,courses:`_courses_b83tr_8`,course:`_course_b83tr_8`,courseCover:`_courseCover_b83tr_8`,cover1:`_cover1_b83tr_8`,cover2:`_cover2_b83tr_8`,courseContent:`_courseContent_b83tr_8`,courseMeta:`_courseMeta_b83tr_8`,courseDate:`_courseDate_b83tr_8`,courseFooter:`_courseFooter_b83tr_8`,textButton:`_textButton_b83tr_8`,footnote:`_footnote_b83tr_8`,releaseList:`_releaseList_b83tr_9`,release:`_release_b83tr_9`,releaseStamp:`_releaseStamp_b83tr_9`,version:`_version_b83tr_9`,badge:`_badge_b83tr_9`,releaseBody:`_releaseBody_b83tr_9`,changeKind:`_changeKind_b83tr_9`,footer:`_footer_b83tr_10`,detail:`_detail_b83tr_11`,detailHero:`_detailHero_b83tr_11`,metadata:`_metadata_b83tr_11`,detailGrid:`_detailGrid_b83tr_11`,detailPanel:`_detailPanel_b83tr_11`,outcomes:`_outcomes_b83tr_11`,agenda:`_agenda_b83tr_11`,agendaNumber:`_agendaNumber_b83tr_11`,teacher:`_teacher_b83tr_11`,subheading:`_subheading_b83tr_11`,desktopBreak:`_desktopBreak_b83tr_15`,siteNav:`_siteNav_b83tr_20`,siteBrand:`_siteBrand_b83tr_20`,gridDrift:`_gridDrift_b83tr_1`,dataFlow:`_dataFlow_b83tr_31`,flowSignals:`_flowSignals_b83tr_31`,dataTravel:`_dataTravel_b83tr_1`,signalPulse:`_signalPulse_b83tr_1`,outerOrbit:`_outerOrbit_b83tr_1`,innerOrbit:`_innerOrbit_b83tr_1`,orbitSweep:`_orbitSweep_b83tr_32`,radarSweep:`_radarSweep_b83tr_1`,coreBreathe:`_coreBreathe_b83tr_1`,nodeBreathe:`_nodeBreathe_b83tr_1`,motionControl:`_motionControl_b83tr_42`,productIntroduction:`_productIntroduction_b83tr_45`},Gt=[{id:`market`,name:`市场大盘`,icon:b,label:`发现机会`,description:`看清类目变化,发现值得研究的市场机会。`,features:`类目趋势 / 商品与店铺榜 / 机会发现`},{id:`overview`,name:`工作台`,icon:u,label:`统览经营`,description:`掌握经营概况,把观察转化为下一步行动。`,features:`经营总览 / 待处理事项 / 执行记录`},{id:`products`,name:`商品`,icon:d,label:`深入商品`,description:`围绕具体商品,持续跟进经营与优化。`,features:`商品目录 / 运营分组 / 商品工具`},{id:`projects`,name:`项目工作台`,icon:l,label:`推进协作`,description:`用节点与任务连接目标、执行和成果。`,features:`项目看板 / 节点任务 / Agent 协作`},{id:`data`,name:`资料中心`,icon:ie,label:`沉淀知识`,description:`让资料有归属,让结论与证据相互关联。`,features:`数据与附件 / 分析复盘 / 资料归档`}],Kt=[{icon:b,number:`01`,title:`以证据形成判断`,text:`将市场数据、研究资料与分析结论联系起来,让每一次决策有据可查。`},{icon:l,number:`02`,title:`以项目推动行动`,text:`把目标拆解成节点与任务,明确下一步,在协作中持续推进。`},{icon:x,number:`03`,title:`与 Agent 协作,沉淀成果`,text:`由山海组织上下文,Agent 执行具体工作,让成果回到项目,成为下一次工作的起点。`}];function qt({course:e,onBack:t}){let n=(0,C.useRef)(null),i=(0,C.useRef)(null);return(0,C.useEffect)(()=>{i.current?.scrollIntoView({block:`start`}),n.current?.focus({preventScroll:!0})},[]),(0,Q.jsxs)(`article`,{ref:i,className:$.detail,children:[(0,Q.jsxs)(`button`,{className:$.textButton,onClick:t,children:[(0,Q.jsx)(r,{size:16}),`返回课程排期`]}),(0,Q.jsxs)(`header`,{className:$.detailHero,children:[(0,Q.jsxs)(`span`,{className:$.kicker,children:[e.category,` · 示例课程`]}),(0,Q.jsx)(`h1`,{ref:n,tabIndex:-1,children:e.title}),(0,Q.jsx)(`p`,{children:e.description}),(0,Q.jsxs)(`div`,{className:$.metadata,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(y,{size:16}),w(e.date)]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(a,{size:16}),e.time,` · `,e.duration]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(S,{size:16}),e.format]})]})]}),(0,Q.jsxs)(`div`,{className:$.detailGrid,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`这堂课,你将收获`}),(0,Q.jsx)(`ul`,{className:$.outcomes,children:e.outcomes.map(e=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(c,{size:16}),e]},e))})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`课程大纲`}),(0,Q.jsx)(`ol`,{className:$.agenda,children:e.agenda.map((e,t)=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(`span`,{className:$.agendaNumber,children:String(t+1).padStart(2,`0`)}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`time`,{children:e.time}),(0,Q.jsx)(`h3`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description})]})]},e.time))})]})]}),(0,Q.jsxs)(`aside`,{children:[(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`讲师介绍`}),(0,Q.jsxs)(`div`,{className:$.teacher,children:[(0,Q.jsx)(`span`,{children:e.teacher.slice(0,1)}),(0,Q.jsx)(`h2`,{children:e.teacher})]}),(0,Q.jsx)(`p`,{children:e.teacherBio})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`适合谁学习`}),(0,Q.jsx)(`p`,{children:e.audience}),(0,Q.jsx)(`h2`,{className:$.subheading,children:`课前准备`}),(0,Q.jsx)(`ul`,{children:e.preparation.map(e=>(0,Q.jsx)(`li`,{children:e},e))})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`上课与课程资料`}),(0,Q.jsx)(`p`,{children:`当前为示例排期,用于预览课程内容。正式开课时间、入会方式、课件与回放将在课程确认后提供。`})]})]})]})]})}function Jt({full:e}){let t=e?ue:ue.slice(0,2);return(0,Q.jsx)(`div`,{className:$.releaseList,children:t.map((t,r)=>(0,Q.jsxs)(`article`,{className:$.release,children:[(0,Q.jsxs)(`div`,{className:$.releaseStamp,children:[(0,Q.jsxs)(`span`,{className:$.version,children:[`v`,t.version]}),r===0&&(0,Q.jsx)(`span`,{className:$.badge,children:`最近发布`}),(0,Q.jsx)(`time`,{dateTime:t.date,children:t.date.replaceAll(`-`,`.`)})]}),(0,Q.jsxs)(`div`,{className:$.releaseBody,children:[(0,Q.jsx)(`h3`,{children:t.title}),(0,Q.jsx)(`p`,{children:t.summary}),(0,Q.jsxs)(`details`,{open:e||void 0,children:[(0,Q.jsxs)(`summary`,{children:[`查看更新内容 `,(0,Q.jsx)(n,{size:14})]}),(0,Q.jsx)(`ul`,{children:t.changes.map(e=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(`span`,{className:$.changeKind,children:e.kind}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`strong`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description})]})]},e.title))})]})]})]},t.version))})}function Yt({api:e,onModule:n,onOpen:r}){let[a,s]=(0,C.useState)(null),[c,u]=(0,C.useState)(!1),[d,te]=(0,C.useState)(!1),f=(0,C.useRef)(new Map),p=(0,C.useRef)(``),h=(0,C.useRef)(null),g=(0,C.useRef)(null),re=(0,C.useRef)(null),_=(0,C.useRef)(null);function v(e){e?.scrollIntoView({behavior:`auto`,block:`start`}),e?.querySelector(`h2`)?.focus({preventScroll:!0})}function ae(){s(null),requestAnimationFrame(()=>{f.current.get(p.current)?.focus()})}return a?(0,Q.jsx)(`div`,{className:$.landing,children:(0,Q.jsx)(qt,{course:a,onBack:ae})}):(0,Q.jsxs)(`div`,{className:$.landing,children:[(0,Q.jsx)(Wt,{api:e,onModule:n,onOpen:r}),(0,Q.jsxs)(`details`,{className:$.productIntroduction,children:[(0,Q.jsx)(`summary`,{children:`了解山海 · 设计理念与功能模块`}),(0,Q.jsxs)(`nav`,{className:$.siteNav,"aria-label":`首页内容导航`,children:[(0,Q.jsxs)(`span`,{className:$.siteBrand,children:[`山海 `,(0,Q.jsx)(`i`,{children:`·`}),` OMNI`]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`button`,{onClick:()=>v(re.current),children:`设计理念`}),(0,Q.jsx)(`button`,{onClick:()=>v(h.current),children:`功能模块`}),(0,Q.jsx)(`button`,{onClick:()=>v(g.current),children:`课程排期`}),(0,Q.jsx)(`button`,{onClick:()=>v(_.current),children:`版本更新`})]})]}),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`section`,{className:$.hero,"data-motion":d?`paused`:`playing`,"aria-labelledby":`home-brand-title`,children:[(0,Q.jsxs)(`div`,{className:$.heroCopy,children:[(0,Q.jsxs)(`div`,{className:$.brand,children:[(0,Q.jsx)(`img`,{src:ne,alt:``,width:40,height:40}),(0,Q.jsxs)(`span`,{children:[`山海 `,(0,Q.jsx)(`i`,{children:`·`}),` OMNI`]}),(0,Q.jsx)(`span`,{className:$.brandCaption,children:`智能工作空间`})]}),(0,Q.jsx)(`span`,{className:$.heroEyebrow,children:`连接洞察、行动与知识`}),(0,Q.jsxs)(`h1`,{id:`home-brand-title`,children:[`让洞察成为行动`,(0,Q.jsx)(`br`,{}),(0,Q.jsx)(`em`,{children:`让成果持续沉淀`})]}),(0,Q.jsxs)(`p`,{children:[`连接市场研究、商品经营与项目协作,`,(0,Q.jsx)(`br`,{className:$.desktopBreak}),`与 Agent 一起,把每一次探索变成有价值的积累。`]}),(0,Q.jsxs)(`div`,{className:$.heroActions,children:[(0,Q.jsxs)(`button`,{className:$.primary,onClick:()=>v(h.current),children:[`探索山海 `,(0,Q.jsx)(i,{size:16})]}),(0,Q.jsxs)(`button`,{className:$.heroSecondary,onClick:()=>v(g.current),children:[(0,Q.jsx)(o,{size:16}),`查看课程`]})]})]}),(0,Q.jsxs)(`div`,{className:$.universe,"aria-hidden":`true`,children:[(0,Q.jsxs)(`svg`,{className:$.dataFlow,viewBox:`0 0 500 400`,preserveAspectRatio:`none`,children:[(0,Q.jsxs)(`g`,{children:[(0,Q.jsx)(`path`,{d:`M80 95 H155 L250 192`}),(0,Q.jsx)(`path`,{d:`M420 120 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M420 295 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M80 305 H155 L250 192`})]}),(0,Q.jsxs)(`g`,{className:$.flowSignals,children:[(0,Q.jsx)(`path`,{d:`M80 95 H155 L250 192`}),(0,Q.jsx)(`path`,{d:`M250 192 L350 120 H420`}),(0,Q.jsx)(`path`,{d:`M420 295 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M250 192 L155 305 H80`})]})]}),(0,Q.jsx)(`div`,{className:$.orbitOuter}),(0,Q.jsx)(`div`,{className:$.orbitInner}),(0,Q.jsx)(`div`,{className:$.orbitSweep}),(0,Q.jsxs)(`div`,{className:$.planet,children:[(0,Q.jsx)(`img`,{src:ne,alt:``,width:110,height:110}),(0,Q.jsx)(`span`,{children:`OMNI`})]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitMarket,children:[(0,Q.jsx)(b,{size:15}),`市场洞察`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitProject,children:[(0,Q.jsx)(l,{size:15}),`项目协作`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitAgent,children:[(0,Q.jsx)(x,{size:15}),`Agent 执行`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitData,children:[(0,Q.jsx)(ie,{size:15}),`知识沉淀`]}),(0,Q.jsx)(`span`,{className:$.universeCaption,children:`EXPLORE · CONNECT · CREATE`})]}),(0,Q.jsxs)(`button`,{className:$.motionControl,onClick:()=>te(e=>!e),"aria-pressed":d,"aria-label":d?`播放品牌动效`:`暂停品牌动效`,children:[d?(0,Q.jsx)(ee,{size:12}):(0,Q.jsx)(ce,{size:12}),(0,Q.jsx)(`span`,{children:d?`播放动效`:`暂停动效`})]})]}),(0,Q.jsxs)(`section`,{ref:re,className:$.section,"aria-labelledby":`home-philosophy-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`OUR PHILOSOPHY`}),(0,Q.jsx)(`h2`,{id:`home-philosophy-title`,tabIndex:-1,children:`从一次洞察,到持续创造`})]}),(0,Q.jsx)(`p`,{children:`让信息有联系,让工作有方向,让经验可积累。`})]}),(0,Q.jsx)(`div`,{className:$.principles,children:Kt.map(({icon:e,...t})=>(0,Q.jsxs)(`article`,{children:[(0,Q.jsxs)(`div`,{className:$.principleTop,children:[(0,Q.jsx)(e,{size:23}),(0,Q.jsx)(`span`,{children:t.number})]}),(0,Q.jsx)(`h3`,{children:t.title}),(0,Q.jsx)(`p`,{children:t.text})]},t.number))})]}),(0,Q.jsxs)(`section`,{className:$.section,ref:h,"aria-labelledby":`home-modules-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`ONE CONNECTED WORKSPACE`}),(0,Q.jsx)(`h2`,{id:`home-modules-title`,tabIndex:-1,children:`五个模块,一条完整的工作路径`})]}),(0,Q.jsx)(`p`,{children:`从认识市场到沉淀成果,每一步都有合适的工具。`})]}),(0,Q.jsx)(`div`,{className:$.modules,children:Gt.map(({icon:e,...t},r)=>(0,Q.jsxs)(`button`,{className:$.moduleCard,onClick:()=>n(t.id),"aria-label":`进入${t.name}`,children:[(0,Q.jsxs)(`div`,{className:$.moduleTop,children:[(0,Q.jsx)(e,{size:23}),(0,Q.jsxs)(`span`,{children:[`0`,r+1]})]}),(0,Q.jsx)(`small`,{children:t.label}),(0,Q.jsx)(`h3`,{children:t.name}),(0,Q.jsx)(`p`,{children:t.description}),(0,Q.jsx)(`span`,{className:$.features,children:t.features}),(0,Q.jsxs)(`span`,{className:$.moduleLink,children:[`进入模块 `,(0,Q.jsx)(i,{size:15})]})]},t.id))})]})]})]}),(0,Q.jsxs)(`section`,{ref:g,className:$.section,"aria-labelledby":`home-courses-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`LEARN WITH OMNI`}),(0,Q.jsx)(`h2`,{id:`home-courses-title`,tabIndex:-1,children:`一起学习,把方法用起来`})]}),(0,Q.jsxs)(`span`,{className:$.scheduleLabel,children:[(0,Q.jsx)(y,{size:16}),`2026 年 11 月 · 示例排期`]})]}),(0,Q.jsx)(`p`,{className:$.sectionIntro,children:`从入门到实战,沿着真实工作场景,逐步掌握山海与 Agent 的协作方法。`}),(0,Q.jsx)(`div`,{className:$.courses,children:le.map((e,t)=>(0,Q.jsxs)(`article`,{className:$.course,children:[(0,Q.jsxs)(`div`,{className:`${$.courseCover} ${$[`cover`+t]}`,children:[(0,Q.jsx)(`span`,{children:e.category}),(0,Q.jsx)(o,{size:56,strokeWidth:1}),(0,Q.jsxs)(`strong`,{children:[`OMNI CLASS `,(0,Q.jsxs)(`i`,{children:[`0`,t+1]})]})]}),(0,Q.jsxs)(`div`,{className:$.courseContent,children:[(0,Q.jsxs)(`div`,{className:$.courseMeta,children:[(0,Q.jsx)(`span`,{children:e.format}),(0,Q.jsx)(`span`,{children:e.duration})]}),(0,Q.jsx)(`h3`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description}),(0,Q.jsxs)(`div`,{className:$.courseDate,children:[(0,Q.jsx)(y,{size:14}),(0,Q.jsxs)(`time`,{dateTime:e.date,children:[w(e.date),` `,e.time]})]}),(0,Q.jsxs)(`div`,{className:$.courseFooter,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(m,{size:14}),e.teacher]}),(0,Q.jsxs)(`button`,{ref:t=>{t?f.current.set(e.id,t):f.current.delete(e.id)},onClick:()=>{p.current=e.id,s(e)},"aria-label":`查看课程详情:${e.title}`,children:[`查看详情 `,(0,Q.jsx)(i,{size:15})]})]})]})]},e.id))}),(0,Q.jsx)(`p`,{className:$.footnote,children:`课程时间与讲师为示例内容,点击卡片中的“查看详情”可预览完整课程安排。`})]}),(0,Q.jsxs)(`section`,{ref:_,className:$.section,"aria-labelledby":`home-releases-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`WHAT’S NEW`}),(0,Q.jsx)(`h2`,{id:`home-releases-title`,tabIndex:-1,children:`山海,持续生长`})]}),(0,Q.jsxs)(`button`,{className:$.textButton,"aria-expanded":c,onClick:()=>u(e=>!e),children:[c?`收起历史版本`:`全部版本记录`,(0,Q.jsx)(i,{size:15})]})]}),(0,Q.jsx)(`p`,{className:$.sectionIntro,children:`每一次更新,都向更顺畅的工作体验前进一步。`}),(0,Q.jsx)(Jt,{full:c}),(0,Q.jsx)(`p`,{className:$.footnote,children:`依据项目已确认的桌面发布记录整理 · 此处展示产品更新历史,设备升级状态请查看左侧“升级”入口。`})]}),(0,Q.jsxs)(`footer`,{className:$.footer,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(t,{size:17}),`山海 · OMNI`]}),(0,Q.jsx)(`span`,{children:`洞察有据,行动有序,成果有归。`})]})]})}function Xt({api:e,onModule:t,onOpen:n}){return(0,Q.jsx)(Yt,{api:e,onModule:t,onOpen:n})}function Zt(e,t){return e.some(e=>e.key===t.key)?e.filter(e=>e.key!==t.key):[t,...e].slice(0,20)}function Qt({section:e}){let t=ae(),[n,r]=oe(`home.pins`,[]);return(0,Q.jsx)(Xt,{mode:e,...t,pins:n,onPin:e=>r(t=>Zt(t,e))})}export{Qt as default};
|
|
1
|
+
import{n as e,t}from"./orbit-CrQs6cpl.js";import{t as n}from"./arrow-down-B1nil3T4.js";import{t as r}from"./arrow-left-BhFSpYzK.js";import{n as i,t as a}from"./clock-3-CDHtQwAe.js";import{t as o}from"./book-open-Cqdn6s-H.js";import{t as s}from"./chart-no-axes-combined-DVgKs36j.js";import{t as c}from"./check-DBnlZFEo.js";import{n as l,t as u}from"./layout-dashboard-sgUrlApv.js";import{t as d}from"./layers-CjsT_HGi.js";import{t as ee}from"./play-BxTFlaQX.js";import{t as te}from"./refresh-cw-CxbRf97c.js";import{t as f}from"./triangle-alert-C7qiylOf.js";import{a as p,c as m,f as h,g,m as ne,o as re,p as _,u as ie,y as v}from"./index-DLSVWUSu.js";import{n as ae}from"./module-host-DNtiV4gZ.js";import{n as oe}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";var y=_(`calendar-days`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]),se=_(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),ce=_(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),b=_(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),x=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),S=_(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),C=v(g(),1),le=[{id:`omni-start`,title:`山海入门:从市场机会到新品项目`,category:`入门指南`,date:`2026-11-20`,time:`14:00–15:30`,duration:`90 分钟`,format:`线上直播`,teacher:`林老师`,teacherBio:`课程示例讲师,围绕新品开发与团队协作,讲解山海的完整使用路径。`,description:`以一次新品机会评估为线索,认识山海的功能分工,将市场观察整理成可推进的项目,让资料、任务和成果各有归属。`,audience:`首次使用山海的同事、产品开发与电商运营人员。`,outcomes:[`理解五个业务模块的分工与使用顺序`,`将一个市场研究方向整理成项目目标`,`建立任务、资料与成果之间的关联`],preparation:[`准备一个希望研究的商品方向或类目`,`确认可以登录山海并进入企业工作区`],agenda:[{time:`14:00–14:15`,title:`认识山海的工作方式`,description:`从市场、经营、商品、项目与资料五个视角,理解信息如何流动。`},{time:`14:15–14:40`,title:`从市场观察提出问题`,description:`查看类目与榜单,记录观察、证据和需要进一步核实的问题。`},{time:`14:40–15:10`,title:`建立第一个新品项目`,description:`明确目标,组织节点与任务,关联资料并记录下一步行动。`},{time:`15:10–15:30`,title:`练习复盘与答疑`,description:`检查项目是否具备明确目标、可执行任务及可引用的依据。`}]},{id:`market-practice`,title:`市场大盘实战:筛选值得研究的赛道`,category:`市场研究`,date:`2026-11-24`,time:`19:30–21:00`,duration:`90 分钟`,format:`线上实操`,teacher:`陈老师`,teacherBio:`课程示例讲师,以类目趋势和竞争结构为线索,讲解市场研究方法。`,description:`从类目规模、增长和竞争分布出发,结合商品榜与店铺榜交叉查看,形成有证据、有边界的赛道研究结论。`,audience:`负责选品、市场研究、类目规划的产品与运营同事。`,outcomes:[`理解规模、增长和竞争指标的适用范围`,`完成从机会赛道到商品与店铺的下钻`,`整理一份包含证据与待核实问题的研究摘要`],preparation:[`选择一个已授权且有榜单数据的类目`,`准备一个业务问题,例如增长来自哪些商品或店铺`],agenda:[{time:`19:30–19:45`,title:`确定研究问题与比较范围`,description:`选择类目、月份与比较周期,识别缺失数据及可比范围。`},{time:`19:45–20:10`,title:`识别机会与竞争结构`,description:`结合规模、增长、基数与店铺数量,筛选值得进一步研究的方向。`},{time:`20:10–20:40`,title:`商品与店铺交叉验证`,description:`下钻榜单,观察商品增长、店铺分布和趋势,检验初步判断。`},{time:`20:40–21:00`,title:`形成结论与答疑`,description:`区分事实、假设和行动建议,明确下一步补充哪些证据。`}]},{id:`agent-workflow`,title:`项目与 Agent 协作:从任务交接到成果归档`,category:`协作进阶`,date:`2026-11-27`,time:`14:00–16:00`,duration:`120 分钟`,format:`实战工作坊`,teacher:`周老师`,teacherBio:`课程示例讲师,关注任务组织、Agent 协作与项目知识沉淀。`,description:`围绕一个具体任务,练习准备上下文、交接给已连接的 Agent、沟通修改,并将结果与证据归档到原项目。`,audience:`希望使用 Agent 完成研究、分析或内容任务的项目负责人和执行同事。`,outcomes:[`写清任务目标、输入与完成标准`,`理解任务交接、实际执行与成果回写的区别`,`在原任务中查看成果、执行记录和项目知识`],preparation:[`准备一个项目及可独立完成的任务`,`连接一个本机 Agent,并确认具备任务所需 Skill`,`准备可用于该任务的资料和附件`],agenda:[{time:`14:00–14:20`,title:`准备可执行的任务`,description:`明确目标、前置资料、完成标准和需要人工判断的事项。`},{time:`14:20–14:50`,title:`将任务交接给 Agent`,description:`检查连接,打开任务对话,读取项目背景并确认执行范围。`},{time:`14:50–15:30`,title:`执行、反馈与修改`,description:`在 Agent 对话中补充资料,检视结果,并记录受阻原因与处理方式。`},{time:`15:30–16:00`,title:`归档成果与知识`,description:`回到山海核对文件、结果摘要、项目 Wiki 和任务状态,复盘完整链路。`}]}];function w(e){return new Intl.DateTimeFormat(`zh-CN`,{timeZone:`Asia/Shanghai`,month:`long`,day:`numeric`,weekday:`long`}).format(new Date(`${e}T12:00:00+08:00`))}var ue=[{version:`0.1.7`,date:`2026-11-17`,title:`市场洞察与项目工作流,更进一步`,summary:`从发现机会到推进项目,让研究与行动衔接得更顺畅。`,changes:[{kind:`新增`,title:`机会市场与增长商品下钻`,description:`从机会市场继续查看增长商品,支持进一步研究市场变化。`},{kind:`优化`,title:`项目统一入口`,description:`统一项目访问入口,并在工作台展示项目摘要。`},{kind:`优化`,title:`店铺商品目录`,description:`更新店铺商品目录,方便浏览经营商品。`},{kind:`优化`,title:`机会发现页面`,description:`调整页面留白、筛选栏及统计月份卡片,提升阅读和筛选体验。`}]},{version:`0.1.6`,date:`2026-11-17`,title:`更清晰的项目模板与任务编辑`,summary:`完善项目配置细节,让模板选择与任务组织更加顺手。`,changes:[{kind:`优化`,title:`SOP 与任务模板详情`,description:`优化模板详情,便于查看内容并组织项目。`},{kind:`优化`,title:`平台选择与 Skill 标注`,description:`完善平台全选、反选及 Skill 标注的展示。`},{kind:`优化`,title:`添加节点与任务`,description:`优化编辑过程中的滚动和预览布局。`}]},{version:`0.1.5`,date:`2026-11-16`,title:`市场分析,连接真实业务数据`,summary:`完善市场分析的数据、方案与视窗交互。`,changes:[{kind:`新增`,title:`真实市场数据分析`,description:`市场分析接入真实数据,支持在业务场景中开展研究。`},{kind:`新增`,title:`账号分析方案`,description:`支持保存账号分析方案,便于持续使用。`},{kind:`优化`,title:`分析视窗交互`,description:`完善市场分析视窗的浏览体验。`}]},{version:`0.1.4`,date:`2026-11-15`,title:`账号管理与桌面导航体验升级`,summary:`完善企业账号管理,并统一日常使用的导航与页头。`,changes:[{kind:`新增`,title:`更完整的企业账号管理`,description:`支持管理员子账号、选填使用人与电话,以及自助修改密码。`},{kind:`优化`,title:`统一页头与固定业务导航`,description:`提供可折叠菜单、快捷按钮名称提示和固定业务导航。`},{kind:`优化`,title:`账号菜单与 Agent 提示词`,description:`优化账号菜单和 Agent 使用提示词。`}]}],T;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(T||={});var de;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(de||={});var E=T.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),D=e=>{switch(typeof e){case`undefined`:return E.undefined;case`string`:return E.string;case`number`:return Number.isNaN(e)?E.nan:E.number;case`boolean`:return E.boolean;case`function`:return E.function;case`bigint`:return E.bigint;case`symbol`:return E.symbol;case`object`:return Array.isArray(e)?E.array:e===null?E.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?E.promise:typeof Map<`u`&&e instanceof Map?E.map:typeof Set<`u`&&e instanceof Set?E.set:typeof Date<`u`&&e instanceof Date?E.date:E.object;default:return E.unknown}},O=T.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),k=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,T.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};k.create=e=>new k(e);var fe=(e,t)=>{let n;switch(e.code){case O.invalid_type:n=e.received===E.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case O.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,T.jsonStringifyReplacer)}`;break;case O.unrecognized_keys:n=`Unrecognized key(s) in object: ${T.joinValues(e.keys,`, `)}`;break;case O.invalid_union:n=`Invalid input`;break;case O.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${T.joinValues(e.options)}`;break;case O.invalid_enum_value:n=`Invalid enum value. Expected ${T.joinValues(e.options)}, received '${e.received}'`;break;case O.invalid_arguments:n=`Invalid function arguments`;break;case O.invalid_return_type:n=`Invalid function return type`;break;case O.invalid_date:n=`Invalid date`;break;case O.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:T.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case O.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case O.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case O.custom:n=`Invalid input`;break;case O.invalid_intersection_types:n=`Intersection results could not be merged`;break;case O.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case O.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,T.assertNever(e)}return{message:n}},pe=fe;function me(){return pe}var he=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function A(e,t){let n=me(),r=he({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fe?void 0:fe].filter(e=>!!e)});e.common.issues.push(r)}var j=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return M;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return M;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},M=Object.freeze({status:`aborted`}),ge=e=>({status:`dirty`,value:e}),N=e=>({status:`valid`,value:e}),_e=e=>e.status===`aborted`,ve=e=>e.status===`dirty`,ye=e=>e.status===`valid`,be=e=>typeof Promise<`u`&&e instanceof Promise,P;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(P||={});var F=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},xe=(e,t)=>{if(ye(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new k(e.common.issues);return this._error=t,this._error}}};function I(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var L=class{get description(){return this._def.description}_getType(e){return D(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new j,ctx:{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(be(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)};return xe(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return ye(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>ye(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)},r=this._parse({data:e,path:n.path,parent:n});return xe(n,await(be(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:O.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new W({schema:this,typeName:q.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return G.create(this,this._def)}nullable(){return K.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this)}promise(){return _t.create(this,this._def)}or(e){return it.create([this,e],this._def)}and(e){return st.create(this,e,this._def)}transform(e){return new W({...I(this._def),schema:this,typeName:q.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new vt({...I(this._def),innerType:this,defaultValue:t,typeName:q.ZodDefault})}brand(){return new xt({typeName:q.ZodBranded,type:this,...I(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new yt({...I(this._def),innerType:this,catchValue:t,typeName:q.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return St.create(this,e)}readonly(){return Ct.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Se=/^c[^\s-]{8,}$/i,Ce=/^[0-9a-z]+$/,we=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Te=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Ee=/^[a-z0-9_-]{21}$/i,De=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Oe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ke=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ae=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,je,Me=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Pe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ie=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Le=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Re=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,ze=RegExp(`^${Re}$`);function Be(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Ve(e){return RegExp(`^${Be(e)}$`)}function He(e){let t=`${Re}T${Be(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Ue(e,t){return!!((t===`v4`||!t)&&Me.test(e)||(t===`v6`||!t)&&Pe.test(e))}function We(e,t){if(!De.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Ge(e,t){return!!((t===`v4`||!t)&&Ne.test(e)||(t===`v6`||!t)&&Fe.test(e))}var Ke=class e extends L{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==E.string){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.string,received:t.parsedType}),M}let t=new j,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?A(n,{code:O.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&A(n,{code:O.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)ke.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`email`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)je||=new RegExp(Ae,`u`),je.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`emoji`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)Te.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`uuid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)Ee.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`nanoid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)Se.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cuid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)Ce.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cuid2`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)we.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`ulid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),A(n,{validation:`url`,code:O.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`regex`,code:O.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?He(r).test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?ze.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?Ve(r).test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?Oe.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`duration`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?Ue(e.data,r.version)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`ip`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?We(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`jwt`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?Ge(e.data,r.version)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cidr`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?Ie.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`base64`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?Le.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`base64url`,code:O.invalid_string,message:r.message}),t.dirty()):T.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:O.invalid_string,...P.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...P.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...P.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...P.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...P.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...P.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...P.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...P.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...P.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...P.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...P.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...P.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...P.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...P.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...P.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...P.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...P.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...P.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...P.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...P.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...P.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...P.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...P.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...P.errToObj(t)})}nonempty(e){return this.min(1,P.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ke.create=e=>new Ke({checks:[],typeName:q.ZodString,coerce:e?.coerce??!1,...I(e)});function qe(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Je=class e extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==E.number){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.number,received:t.parsedType}),M}let t,n=new j;for(let r of this._def.checks)r.kind===`int`?T.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),A(t,{code:O.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?qe(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_finite,message:r.message}),n.dirty()):T.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,P.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,P.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,P.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,P.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:P.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:P.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:P.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:P.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:P.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:P.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&T.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};Je.create=e=>new Je({checks:[],typeName:q.ZodNumber,coerce:e?.coerce||!1,...I(e)});var Ye=class e extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==E.bigint)return this._getInvalidInput(e);let t,n=new j;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):T.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.bigint,received:t.parsedType}),M}gte(e,t){return this.setLimit(`min`,e,!0,P.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,P.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,P.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,P.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:P.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:P.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ye.create=e=>new Ye({checks:[],typeName:q.ZodBigInt,coerce:e?.coerce??!1,...I(e)});var Xe=class extends L{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==E.boolean){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.boolean,received:t.parsedType}),M}return N(e.data)}};Xe.create=e=>new Xe({typeName:q.ZodBoolean,coerce:e?.coerce||!1,...I(e)});var Ze=class e extends L{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==E.date){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.date,received:t.parsedType}),M}if(Number.isNaN(e.data.getTime()))return A(this._getOrReturnCtx(e),{code:O.invalid_date}),M;let t=new j,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):T.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:P.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:P.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};Ze.create=e=>new Ze({checks:[],coerce:e?.coerce||!1,typeName:q.ZodDate,...I(e)});var Qe=class extends L{_parse(e){if(this._getType(e)!==E.symbol){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.symbol,received:t.parsedType}),M}return N(e.data)}};Qe.create=e=>new Qe({typeName:q.ZodSymbol,...I(e)});var $e=class extends L{_parse(e){if(this._getType(e)!==E.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.undefined,received:t.parsedType}),M}return N(e.data)}};$e.create=e=>new $e({typeName:q.ZodUndefined,...I(e)});var et=class extends L{_parse(e){if(this._getType(e)!==E.null){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.null,received:t.parsedType}),M}return N(e.data)}};et.create=e=>new et({typeName:q.ZodNull,...I(e)});var tt=class extends L{constructor(){super(...arguments),this._any=!0}_parse(e){return N(e.data)}};tt.create=e=>new tt({typeName:q.ZodAny,...I(e)});var R=class extends L{constructor(){super(...arguments),this._unknown=!0}_parse(e){return N(e.data)}};R.create=e=>new R({typeName:q.ZodUnknown,...I(e)});var z=class extends L{_parse(e){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.never,received:t.parsedType}),M}};z.create=e=>new z({typeName:q.ZodNever,...I(e)});var nt=class extends L{_parse(e){if(this._getType(e)!==E.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.void,received:t.parsedType}),M}return N(e.data)}};nt.create=e=>new nt({typeName:q.ZodVoid,...I(e)});var B=class e extends L{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==E.array)return A(t,{code:O.invalid_type,expected:E.array,received:t.parsedType}),M;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(A(t,{code:e?O.too_big:O.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(A(t,{code:O.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(A(t,{code:O.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new F(t,e,t.path,n)))).then(e=>j.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new F(t,e,t.path,n)));return j.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:P.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:P.toString(n)}})}nonempty(e){return this.min(1,e)}};B.create=(e,t)=>new B({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...I(t)});function rt(e){if(e instanceof V){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=G.create(rt(r))}return new V({...e._def,shape:()=>t})}else if(e instanceof B)return new B({...e._def,type:rt(e.element)});else if(e instanceof G)return G.create(rt(e.unwrap()));else if(e instanceof K)return K.create(rt(e.unwrap()));else if(e instanceof U)return U.create(e.items.map(e=>rt(e)));else return e}var V=class e extends L{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=T.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==E.object){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.object,received:t.parsedType}),M}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof z&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new F(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof z){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(A(n,{code:O.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new F(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>j.mergeObjectSync(t,e)):j.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return P.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:P.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of T.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of T.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return rt(this)}partial(t){let n={};for(let e of T.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of T.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof G;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return mt(T.objectKeys(this.shape))}};V.create=(e,t)=>new V({shape:()=>e,unknownKeys:`strip`,catchall:z.create(),typeName:q.ZodObject,...I(t)}),V.strictCreate=(e,t)=>new V({shape:()=>e,unknownKeys:`strict`,catchall:z.create(),typeName:q.ZodObject,...I(t)}),V.lazycreate=(e,t)=>new V({shape:e,unknownKeys:`strip`,catchall:z.create(),typeName:q.ZodObject,...I(t)});var it=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new k(e.ctx.common.issues));return A(t,{code:O.invalid_union,unionErrors:n}),M}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new k(e));return A(t,{code:O.invalid_union,unionErrors:i}),M}}get options(){return this._def.options}};it.create=(e,t)=>new it({options:e,typeName:q.ZodUnion,...I(t)});var H=e=>e instanceof ft?H(e.schema):e instanceof W?H(e.innerType()):e instanceof pt?[e.value]:e instanceof ht?e.options:e instanceof gt?T.objectValues(e.enum):e instanceof vt?H(e._def.innerType):e instanceof $e?[void 0]:e instanceof et?[null]:e instanceof G?[void 0,...H(e.unwrap())]:e instanceof K?[null,...H(e.unwrap())]:e instanceof xt||e instanceof Ct?H(e.unwrap()):e instanceof yt?H(e._def.innerType):[],at=class e extends L{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==E.object)return A(t,{code:O.invalid_type,expected:E.object,received:t.parsedType}),M;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(A(t,{code:O.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),M)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=H(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:q.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...I(r)})}};function ot(e,t){let n=D(e),r=D(t);if(e===t)return{valid:!0,data:e};if(n===E.object&&r===E.object){let n=T.objectKeys(t),r=T.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ot(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===E.array&&r===E.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ot(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===E.date&&r===E.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var st=class extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(_e(e)||_e(r))return M;let i=ot(e.value,r.value);return i.valid?((ve(e)||ve(r))&&t.dirty(),{status:t.value,value:i.data}):(A(n,{code:O.invalid_intersection_types}),M)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};st.create=(e,t,n)=>new st({left:e,right:t,typeName:q.ZodIntersection,...I(n)});var U=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.array)return A(n,{code:O.invalid_type,expected:E.array,received:n.parsedType}),M;if(n.data.length<this._def.items.length)return A(n,{code:O.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),M;!this._def.rest&&n.data.length>this._def.items.length&&(A(n,{code:O.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new F(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>j.mergeArray(t,e)):j.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};U.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new U({items:e,typeName:q.ZodTuple,rest:null,...I(t)})};var ct=class e extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.object)return A(n,{code:O.invalid_type,expected:E.object,received:n.parsedType}),M;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new F(n,e,n.path,e)),value:a._parse(new F(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?j.mergeObjectAsync(t,r):j.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof L?new e({keyType:t,valueType:n,typeName:q.ZodRecord,...I(r)}):new e({keyType:Ke.create(),valueType:t,typeName:q.ZodRecord,...I(n)})}},lt=class extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.map)return A(n,{code:O.invalid_type,expected:E.map,received:n.parsedType}),M;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new F(n,e,n.path,[a,`key`])),value:i._parse(new F(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return M;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return M;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};lt.create=(e,t,n)=>new lt({valueType:t,keyType:e,typeName:q.ZodMap,...I(n)});var ut=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.set)return A(n,{code:O.invalid_type,expected:E.set,received:n.parsedType}),M;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(A(n,{code:O.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(A(n,{code:O.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return M;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new F(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:P.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ut.create=(e,t)=>new ut({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...I(t)});var dt=class e extends L{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==E.function)return A(t,{code:O.invalid_type,expected:E.function,received:t.parsedType}),M;function n(e,n){return he({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,me(),fe].filter(e=>!!e),issueData:{code:O.invalid_arguments,argumentsError:n}})}function r(e,n){return he({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,me(),fe].filter(e=>!!e),issueData:{code:O.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof _t){let e=this;return N(async function(...t){let o=new k([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return N(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new k([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new k([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:U.create(t).rest(R.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||U.create([]).rest(R.create()),returns:n||R.create(),typeName:q.ZodFunction,...I(r)})}},ft=class extends L{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};ft.create=(e,t)=>new ft({getter:e,typeName:q.ZodLazy,...I(t)});var pt=class extends L{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return A(t,{received:t.data,code:O.invalid_literal,expected:this._def.value}),M}return{status:`valid`,value:e.data}}get value(){return this._def.value}};pt.create=(e,t)=>new pt({value:e,typeName:q.ZodLiteral,...I(t)});function mt(e,t){return new ht({values:e,typeName:q.ZodEnum,...I(t)})}var ht=class e extends L{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{expected:T.joinValues(n),received:t.parsedType,code:O.invalid_type}),M}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{received:t.data,code:O.invalid_enum_value,options:n}),M}return N(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};ht.create=mt;var gt=class extends L{_parse(e){let t=T.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==E.string&&n.parsedType!==E.number){let e=T.objectValues(t);return A(n,{expected:T.joinValues(e),received:n.parsedType,code:O.invalid_type}),M}if(this._cache||=new Set(T.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=T.objectValues(t);return A(n,{received:n.data,code:O.invalid_enum_value,options:e}),M}return N(e.data)}get enum(){return this._def.values}};gt.create=(e,t)=>new gt({values:e,typeName:q.ZodNativeEnum,...I(t)});var _t=class extends L{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==E.promise&&t.common.async===!1?(A(t,{code:O.invalid_type,expected:E.promise,received:t.parsedType}),M):N((t.parsedType===E.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};_t.create=(e,t)=>new _t({type:e,typeName:q.ZodPromise,...I(t)});var W=class extends L{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{A(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return M;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?M:r.status===`dirty`||t.value===`dirty`?ge(r.value):r});{if(t.value===`aborted`)return M;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?M:r.status===`dirty`||t.value===`dirty`?ge(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?M:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?M:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ye(e))return M;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>ye(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):M);T.assertNever(r)}};W.create=(e,t,n)=>new W({schema:e,typeName:q.ZodEffects,effect:t,...I(n)}),W.createWithPreprocess=(e,t,n)=>new W({schema:t,effect:{type:`preprocess`,transform:e},typeName:q.ZodEffects,...I(n)});var G=class extends L{_parse(e){return this._getType(e)===E.undefined?N(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};G.create=(e,t)=>new G({innerType:e,typeName:q.ZodOptional,...I(t)});var K=class extends L{_parse(e){return this._getType(e)===E.null?N(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};K.create=(e,t)=>new K({innerType:e,typeName:q.ZodNullable,...I(t)});var vt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===E.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};vt.create=(e,t)=>new vt({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...I(t)});var yt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return be(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new k(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new k(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};yt.create=(e,t)=>new yt({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...I(t)});var bt=class extends L{_parse(e){if(this._getType(e)!==E.nan){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.nan,received:t.parsedType}),M}return{status:`valid`,value:e.data}}};bt.create=e=>new bt({typeName:q.ZodNaN,...I(e)});var xt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},St=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?M:e.status===`dirty`?(t.dirty(),ge(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?M:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:q.ZodPipeline})}},Ct=class extends L{_parse(e){let t=this._def.innerType._parse(e),n=e=>(ye(e)&&(e.value=Object.freeze(e.value)),e);return be(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};Ct.create=(e,t)=>new Ct({innerType:e,typeName:q.ZodReadonly,...I(t)}),V.lazycreate;var q;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(q||={});var J=Ke.create,Y=Je.create;bt.create,Ye.create;var wt=Xe.create;Ze.create,Qe.create,$e.create,et.create,tt.create;var Tt=R.create;z.create,nt.create;var Et=B.create,X=V.create;V.strictCreate,it.create,at.create,st.create,U.create;var Dt=ct.create;lt.create,ut.create,dt.create,ft.create;var Ot=pt.create;ht.create,gt.create,_t.create,W.create,G.create,K.create,W.createWithPreprocess,St.create;var kt=J().regex(/^\d{4}-\d{2}-\d{2}$/).refine(e=>Number.isFinite(Date.parse(e))&&new Date(e).toISOString().slice(0,10)===e),At=X({id:J(),name:J(),goal:J().optional(),stages:Et(J()),taskCount:Y().int().nonnegative(),updatedAt:J().optional(),archivedAt:J().nullable().optional()}),jt=X({taskCount:Y().int().nonnegative(),statusCounts:Dt(J(),Y().int().nonnegative())}).refine(e=>Object.values(e.statusCounts).reduce((e,t)=>e+t,0)===e.taskCount),Mt=X({id:J(),project:J(),projectName:J(),mode:J(),created:J(),start:kt,end:kt,total:Y().finite().nonnegative(),shopId:J().optional(),shopIds:Et(J()).default([]),scopeLabel:J(),basis:J(),count:Y().nonnegative().optional(),breakdown:Et(X({name:J(),sales:Y().finite(),count:Y().optional()})).default([])}).refine(e=>e.start<=e.end);function Nt(e){return[...new Set(e.map(e=>`${e.start}|${e.end}`))].sort((e,t)=>t.split(`|`)[1].localeCompare(e.split(`|`)[1])||t.localeCompare(e))}function Pt(e,t,n){let r=new Set(t.map(e=>e.id)),i=e.filter(e=>`${e.start}|${e.end}`===n&&e.mode!==`simulated`),a=new Map,o=[];for(let e of i){let t=e.shopId||(e.shopIds.length===1?e.shopIds[0]:``);if(!t||!r.has(t)||e.shopIds.some(e=>e!==t)){o.push(e);continue}let n=a.get(t);(!n||e.created>n.created||e.created===n.created&&e.id>n.id)&&a.set(t,e)}let s=t.map(e=>({...e,report:a.get(e.id)})),c=[...a.values()].reduce((e,t)=>e+Math.round(t.total*100),0);return{rows:s,covered:a.size,total:a.size?c/100:null,unassigned:o}}function Ft(e){let t=e.filter(e=>!e.archivedAt),n=t.filter(e=>e.counts!==null),r=e=>n.reduce((t,n)=>t+(n.counts?.[e]||0),0),i=t.reduce((e,t)=>e+t.taskCount,0),a=r(`已完成`);return{total:t.length,tasks:i,done:a,running:r(`进行中`),blocked:r(`已阻塞`),covered:n.length,complete:n.length===t.length,active:n.filter(e=>e.taskCount>0&&(e.counts?.已完成||0)<e.taskCount).length,progress:i?Math.round(a/i*100):0}}var It=X({ok:Ot(!0),data:X({items:Et(At),total:Y().int().nonnegative(),hasMore:wt()})});async function Lt(e){let t=[];for(let n=1;n<=100;n++){let r=It.parse(await e(`/collaboration/query/project/list?limit=100&page=${n}`));if(t.push(...r.data.items.map(e=>({...e,counts:null}))),!r.data.hasMore)break;if(!r.data.items.length||n===100)throw Error(`项目清单未读取完整,请重试`)}for(let n=0;n<t.length;n+=4)await Promise.all(t.slice(n,n+4).filter(e=>!e.archivedAt).map(async t=>{try{let n=X({ok:Ot(!0),data:jt}).parse(await e(`/collaboration/query/project/context?projectId=`+encodeURIComponent(t.id)));t.counts=n.data.statusCounts,t.taskCount=n.data.taskCount}catch{t.counts=null}}));return t}async function Rt(e){let t=X({products:Et(X({mode:J()})),metrics:X({sales:Et(Tt())})}).parse(await e(`/growth-center`)),n=[],r=0;for(let e of t.metrics.sales){let t=Mt.safeParse(e);t.success?t.data.mode!==`simulated`&&n.push(t.data):typeof e==`object`&&e&&`mode`in e&&e.mode===`simulated`||r++}return{sales:n,productCount:t.products.filter(e=>e.mode!==`simulated`).length,invalidSales:r}}var Z={overview:`_overview_ngsjb_1`,network:`_network_ngsjb_1`,pageHeading:`_pageHeading_ngsjb_1`,eyebrow:`_eyebrow_ngsjb_1`,refresh:`_refresh_ngsjb_1`,panelHeading:`_panelHeading_ngsjb_1`,shopDetails:`_shopDetails_ngsjb_1`,bottomMeta:`_bottomMeta_ngsjb_1`,topGrid:`_topGrid_ngsjb_1`,kpis:`_kpis_ngsjb_1`,money:`_money_ngsjb_1`,mainGrid:`_mainGrid_ngsjb_1`,panel:`_panel_ngsjb_1`,filters:`_filters_ngsjb_1`,shop:`_shop_ngsjb_1`,shopIcon:`_shopIcon_ngsjb_1`,shopIdentity:`_shopIdentity_ngsjb_1`,salesBar:`_salesBar_ngsjb_1`,projectStatus:`_projectStatus_ngsjb_1`,warning:`_warning_ngsjb_1`,projectRow:`_projectRow_ngsjb_1`,progress:`_progress_ngsjb_1`,note:`_note_ngsjb_1`,empty:`_empty_ngsjb_1`,error:`_error_ngsjb_1`,unassigned:`_unassigned_ngsjb_1`,networkHead:`_networkHead_ngsjb_1`,canvas:`_canvas_ngsjb_1`,networkCenter:`_networkCenter_ngsjb_1`,networkTags:`_networkTags_ngsjb_1`,motionNote:`_motionNote_ngsjb_1`,spinning:`_spinning_ngsjb_1`,spin:`_spin_ngsjb_1`},Q=re(),zt=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Bt=e=>{let t=window.matchMedia(`(prefers-reduced-motion: reduce)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)};function Vt({projects:e,shops:t,tasks:n}){let r=(0,C.useRef)(null),i=(0,C.useSyncExternalStore)(Bt,zt,()=>!1),[a,o]=(0,C.useState)(()=>{try{let e=localStorage.getItem(`omni.home.effects`);return e===`playing`||e===`paused`?e:`system`}catch{return`system`}}),s=a===`playing`||a===`system`&&!i;function c(){let e=s?`paused`:`playing`;o(e);try{localStorage.setItem(`omni.home.effects`,e)}catch{}}return(0,C.useEffect)(()=>{let e=r.current,t=e?.getContext(`2d`);if(!e||!t)return;let n=0,i=0,a=0,o=-1/0,c=0,l=!0,u=``,d=``,ee=Array.from({length:64},(e,t)=>{let n=1-t/63*2,r=Math.sqrt(1-n*n),i=t*2.399963229728653;return{x:Math.cos(i)*r,y:n,z:Math.sin(i)*r}});function te(r){if(!t||!e)return;if(r-o<32){s&&l&&!document.hidden&&(n=requestAnimationFrame(te));return}o=r,s&&(c+=.018),t.clearRect(0,0,i,a);let f=Math.min(i*.3,a*.39),p=i*.51,m=a*.48,h=ee.map(e=>{let t=e.x*Math.cos(c)-e.z*Math.sin(c),n=e.x*Math.sin(c)+e.z*Math.cos(c);return{x:p+t*f,y:m+e.y*f*.82+Math.sin(c+e.x)*8,z:n}}),g=t.createRadialGradient(p,m,8,p,m,f*1.6);g.addColorStop(0,u+`25`),g.addColorStop(1,u+`00`),t.fillStyle=g,t.fillRect(0,0,i,a);for(let e=0;e<h.length;e++)for(let n=e+1;n<h.length;n++){let r=h[e],i=h[n],a=Math.hypot(r.x-i.x,r.y-i.y);if(!(a>f*.57||Math.abs(r.z-i.z)>1)&&(t.globalAlpha=(1-a/(f*.57))*.32,t.strokeStyle=u,t.lineWidth=.8,t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(i.x,i.y),t.stroke(),(e+n)%13==0)){let n=(c*.8+e*.13)%1;t.globalAlpha=.8,t.fillStyle=u,t.beginPath(),t.arc(r.x+(i.x-r.x)*n,r.y+(i.y-r.y)*n,2.4,0,Math.PI*2),t.fill()}}h.forEach((e,n)=>{t.globalAlpha=(e.z+1)*.32+.25,t.fillStyle=n%7==0?u:d,t.beginPath(),t.arc(e.x,e.y,n%7==0?3:1.6,0,Math.PI*2),t.fill()}),t.globalAlpha=.5,t.strokeStyle=u,t.lineWidth=1;for(let e=0;e<2;e++)t.beginPath(),t.ellipse(p,m,f*1.24,f*.4,e?-.35:.35,c*(e?-1:1),c*(e?-1:1)+Math.PI*1.55),t.stroke();t.globalAlpha=1,s&&l&&!document.hidden&&(n=requestAnimationFrame(te))}function f(){cancelAnimationFrame(n),o=-1/0,n=requestAnimationFrame(te)}function p(){if(!e||!t)return;let n=e.getBoundingClientRect();i=n.width,a=n.height;let r=Math.min(devicePixelRatio||1,2);e.width=i*r,e.height=a*r,t.setTransform(r,0,0,r,0,0);let o=document.documentElement.dataset.omniTheme===`light`;u=o?`#087b86`:`#61e1ec`,d=o?`#477596`:`#7ca8d5`,f()}let m=new ResizeObserver(p);m.observe(e);let h=new MutationObserver(p);h.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-omni-theme`]});let g=new IntersectionObserver(e=>{l=e[0].isIntersecting,l?f():cancelAnimationFrame(n)});g.observe(e);let ne=()=>{document.hidden?cancelAnimationFrame(n):l&&f()};return document.addEventListener(`visibilitychange`,ne),p(),()=>{cancelAnimationFrame(n),m.disconnect(),h.disconnect(),g.disconnect(),document.removeEventListener(`visibilitychange`,ne)}},[s]),(0,Q.jsxs)(`section`,{className:Z.network,"aria-label":`项目与店铺动态数据网络`,children:[(0,Q.jsxs)(`div`,{className:Z.networkHead,children:[(0,Q.jsx)(`span`,{children:`OMNI / DATA NETWORK`}),(0,Q.jsxs)(`button`,{onClick:c,"aria-label":s?`暂停科技动效`:`开启科技动效`,"aria-pressed":s,children:[s?(0,Q.jsx)(ce,{size:12}):(0,Q.jsx)(ee,{size:12}),` `,s?`动效运行中`:`开启科技动效`]})]}),(0,Q.jsx)(`canvas`,{ref:r,className:Z.canvas,"aria-hidden":`true`}),(0,Q.jsxs)(`div`,{className:Z.networkCenter,children:[(0,Q.jsx)(`strong`,{children:`OMNI`}),(0,Q.jsx)(`span`,{children:`连接业务与行动`})]}),(0,Q.jsxs)(`div`,{className:Z.networkTags,children:[(0,Q.jsxs)(`span`,{children:[`项目 `,(0,Q.jsx)(`b`,{children:e??`—`})]}),(0,Q.jsxs)(`span`,{children:[`店铺 `,(0,Q.jsx)(`b`,{children:t})]}),(0,Q.jsxs)(`span`,{children:[`进行中任务 `,(0,Q.jsx)(`b`,{children:n??`—`})]})]}),!s&&i&&(0,Q.jsx)(`small`,{className:Z.motionNote,children:`系统偏好减少动态,可单独开启本页动效`})]})}var Ht=e=>e===null?`—`:new Intl.NumberFormat(`zh-CN`,{style:`currency`,currency:`CNY`,maximumFractionDigits:2}).format(e),Ut=e=>new Date(e).toLocaleTimeString(`zh-CN`,{timeZone:`Asia/Shanghai`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function Wt({api:t,onModule:n,onOpen:r}){let a=p(),[o,c]=(0,C.useState)(null),[l,u]=(0,C.useState)(null),[d,ee]=(0,C.useState)([]),[m,g]=(0,C.useState)(!0),[ne,re]=(0,C.useState)(``),[_,ie]=(0,C.useState)(0),[v,ae]=oe(`home.sales.period`,``),y=(0,C.useRef)(!1),ce=(0,C.useCallback)(()=>{y.current||(g(!0),ie(e=>e+1))},[]);(0,C.useEffect)(()=>{let e=!0;return y.current=!0,Promise.allSettled([Lt(t),Rt(t)]).then(([t,n])=>{if(!e)return;let r=[];t.status===`fulfilled`?c(t.value):(c(null),r.push(`项目统计读取失败`)),n.status===`fulfilled`?u(n.value):(u(null),r.push(`经营归档读取失败`)),ee(r),re(new Date().toISOString()),g(!1),y.current=!1}),()=>{e=!1,y.current=!1}},[t,_]),(0,C.useEffect)(()=>{let e=setInterval(()=>{document.hidden||ce()},6e4);return()=>clearInterval(e)},[ce]);let b=o?Ft(o):null,x=(a?.shops||[]).filter(e=>!a?.selected||e.id===a.selected),S=Nt(l?.sales||[]),le=S.includes(v)?v:S[0]||``,w=Pt(l?.sales||[],x,le),ue=(o||[]).filter(e=>!e.archivedAt).sort((e,t)=>{let n=e=>e.counts?.已阻塞?0:e.counts&&e.taskCount>(e.counts.已完成||0)?1:2;return n(e)-n(t)||(t.updatedAt||``).localeCompare(e.updatedAt||``)}),T=Math.max(1,...w.rows.map(e=>e.report?.total||0));return(0,Q.jsxs)(`div`,{className:Z.overview,children:[(0,Q.jsxs)(`div`,{className:Z.pageHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:Z.eyebrow,children:`山海 · OMNI / 企业总览`}),(0,Q.jsx)(`h1`,{children:`今天的业务,一屏掌握`}),(0,Q.jsx)(`p`,{children:`项目推进、店铺经营与销售归档,连接到下一步行动。`})]}),(0,Q.jsxs)(`div`,{className:Z.refresh,children:[(0,Q.jsx)(`span`,{children:m?`正在同步…`:ne?`${Ut(ne)} 已同步 · 每分钟刷新`:``}),(0,Q.jsxs)(`button`,{disabled:m,onClick:ce,"aria-label":`刷新首页数据`,children:[(0,Q.jsx)(te,{size:14,className:m?Z.spinning:void 0}),m?`同步中`:`刷新`]})]})]}),d.length>0&&(0,Q.jsxs)(`div`,{role:`alert`,className:Z.error,children:[d.join(`;`),`,可刷新重试。其他已成功读取的信息继续显示。`]}),(0,Q.jsxs)(`div`,{className:Z.topGrid,children:[(0,Q.jsxs)(`div`,{className:Z.kpis,children:[(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(se,{size:17}),`企业项目`]}),(0,Q.jsxs)(`strong`,{children:[b?.total??`—`,(0,Q.jsx)(`small`,{children:`个`})]}),(0,Q.jsxs)(`p`,{children:[`当前未归档项目 · `,b?.active??`—`,` 个待推进`]})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(e,{size:17}),`进行中任务`]}),(0,Q.jsxs)(`strong`,{children:[b?.complete?b.running:`—`,(0,Q.jsx)(`small`,{children:`项`})]}),(0,Q.jsx)(`p`,{children:b?.complete?`已完成 ${b.done} / ${b.tasks} 项任务`:`等待读取完整任务统计`})]}),(0,Q.jsxs)(`button`,{onClick:()=>document.getElementById(`home-shops`)?.scrollIntoView({block:`start`}),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(h,{size:17}),`授权店铺`]}),(0,Q.jsxs)(`strong`,{children:[x.length,(0,Q.jsx)(`small`,{children:`家`})]}),(0,Q.jsx)(`p`,{children:a?.selected?`当前选定店铺`:`当前账号可访问的店铺`})]}),(0,Q.jsxs)(`button`,{onClick:()=>document.getElementById(`home-shops`)?.scrollIntoView({block:`start`}),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(s,{size:17}),`同期店铺销售额`]}),(0,Q.jsx)(`strong`,{className:Z.money,children:Ht(w.total)}),(0,Q.jsx)(`p`,{children:le?`${le.replace(`|`,` 至 `)} · 覆盖 ${w.covered}/${x.length} 家`:`尚无可汇总的店铺销售归档`})]})]}),(0,Q.jsx)(Vt,{projects:b?.total??null,shops:x.length,tasks:b?.complete?b.running:null})]}),(0,Q.jsxs)(`div`,{className:Z.mainGrid,children:[(0,Q.jsxs)(`section`,{className:Z.panel,id:`home-shops`,children:[(0,Q.jsxs)(`div`,{className:Z.panelHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h2`,{children:`店铺经营概览`}),(0,Q.jsx)(`p`,{children:`支付销售额 · 不扣退款 · 按归档统计周期`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`overview`),children:[`经营分析 `,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsxs)(`div`,{className:Z.filters,children:[a&&(0,Q.jsxs)(`label`,{children:[`店铺范围`,(0,Q.jsxs)(`select`,{"aria-label":`首页店铺范围`,value:a.selected,onChange:e=>a.onSelect(e.target.value),children:[(0,Q.jsx)(`option`,{value:``,children:`全部授权店铺`}),a.shops.map(e=>(0,Q.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]}),(0,Q.jsxs)(`label`,{children:[`销售统计周期`,(0,Q.jsxs)(`select`,{"aria-label":`首页销售统计周期`,value:le,disabled:!S.length,onChange:e=>ae(e.target.value),children:[!S.length&&(0,Q.jsx)(`option`,{value:``,children:`暂无销售归档`}),S.map(e=>(0,Q.jsx)(`option`,{value:e,children:e.replace(`|`,` 至 `)},e))]})]})]}),(0,Q.jsx)(`div`,{className:Z.shopList,children:w.rows.map(e=>(0,Q.jsxs)(`details`,{className:Z.shop,children:[(0,Q.jsxs)(`summary`,{children:[(0,Q.jsx)(`span`,{className:Z.shopIcon,children:(0,Q.jsx)(h,{size:17})}),(0,Q.jsxs)(`span`,{className:Z.shopIdentity,children:[(0,Q.jsx)(`b`,{children:e.name}),(0,Q.jsx)(`small`,{children:e.report?`${e.report.count??`—`} 个商品链接 · 点击核对来源`:`该周期暂无已关联的销售记录`})]}),(0,Q.jsx)(`div`,{className:Z.salesBar,"aria-hidden":`true`,children:(0,Q.jsx)(`i`,{style:{width:`${(e.report?.total||0)/T*100}%`}})}),(0,Q.jsx)(`strong`,{children:Ht(e.report?.total??null)})]}),(0,Q.jsxs)(`div`,{className:Z.shopDetails,children:[(0,Q.jsxs)(`p`,{children:[`店铺编号:`,e.id]}),e.report?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`p`,{children:[`统计周期:`,e.report.start,` 至 `,e.report.end]}),(0,Q.jsxs)(`p`,{children:[`来源:`,e.report.projectName,` · `,e.report.scopeLabel]}),(0,Q.jsx)(`p`,{children:e.report.basis}),(0,Q.jsxs)(`p`,{children:[`归档时间:`,new Date(e.report.created).toLocaleString(`zh-CN`,{timeZone:`Asia/Shanghai`})]})]}):(0,Q.jsx)(`p`,{children:`请在资料中心归档并关联本店铺的全店销售记录。`}),(0,Q.jsxs)(`button`,{onClick:()=>n(`data`),children:[`查看资料中心 `,(0,Q.jsx)(i,{size:12})]})]})]},e.id))}),!x.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:`当前账号尚无授权店铺。`}),l&&!S.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:`尚未读取到销售归档。导入全店销售账本后,将按店铺及相同统计周期汇总。`}),w.unassigned.length>0&&(0,Q.jsxs)(`details`,{className:Z.unassigned,children:[(0,Q.jsxs)(`summary`,{children:[(0,Q.jsx)(f,{size:13}),w.unassigned.length,` 份销售归档待核对店铺归属`]}),w.unassigned.map(e=>(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`b`,{children:[e.scopeLabel,` · `,Ht(e.total)]}),(0,Q.jsxs)(`p`,{children:[e.projectName,` · `,e.start,` 至 `,e.end]})]},e.id)),(0,Q.jsx)(`p`,{children:`这些原件保持独立展示,确认唯一店铺归属后计入汇总。`})]}),l?.invalidSales?(0,Q.jsxs)(`p`,{className:Z.warning,children:[l.invalidSales,` 份归档缺少有效金额或周期,未计入。`]}):null,(0,Q.jsx)(`p`,{className:Z.note,children:`同店、同期采用最新归档,避免重复累计。覆盖不足时显示已覆盖店铺小计;跨周期金额分别查看。`})]}),(0,Q.jsxs)(`section`,{className:Z.panel,children:[(0,Q.jsxs)(`div`,{className:Z.panelHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h2`,{children:`项目推进`}),(0,Q.jsx)(`p`,{children:`企业共享项目 · 与项目工作台同步`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[`全部项目 `,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsxs)(`div`,{className:Z.projectStatus,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`b`,{children:b?.complete?b.done:`—`}),`已完成任务`]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`b`,{children:b?.complete?b.running:`—`}),`进行中`]}),(0,Q.jsxs)(`span`,{className:Z.warning,children:[(0,Q.jsx)(`b`,{children:b?.complete?b.blocked:`—`}),`受阻任务`]})]}),!b?.complete&&o&&(0,Q.jsxs)(`p`,{className:Z.warning,children:[`已读取 `,b?.covered,`/`,b?.total,` 个项目的任务统计,请刷新重试。`]}),ue.slice(0,5).map(e=>{let t=e.counts?.已完成||0,n=e.taskCount?Math.round(t/e.taskCount*100):0;return(0,Q.jsxs)(`button`,{className:Z.projectRow,onClick:()=>r(e.id,{tab:`overview`}),children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`b`,{children:e.name}),(0,Q.jsxs)(`span`,{children:[e.counts?`${t}/${e.taskCount} 项完成`:`任务统计暂不可用`,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsx)(`p`,{children:e.goal||`进入项目查看目标与任务`}),(0,Q.jsx)(`div`,{className:Z.progress,role:`progressbar`,"aria-label":e.name+`任务完成比例`,"aria-valuenow":e.counts?n:void 0,"aria-valuemin":0,"aria-valuemax":100,children:(0,Q.jsx)(`i`,{style:{width:`${e.counts?n:0}%`}})})]},e.id)}),!ue.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:m?`正在读取企业项目…`:o?`还没有项目,进入项目工作台建立第一个项目。`:`项目服务暂不可用,请刷新重试。`}),(0,Q.jsxs)(`div`,{className:Z.bottomMeta,children:[(0,Q.jsxs)(`span`,{children:[`经营商品档案 `,(0,Q.jsx)(`b`,{children:l?.productCount??`—`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`products`),children:[`查看商品 `,(0,Q.jsx)(i,{size:13})]})]})]})]}),(0,Q.jsx)(`p`,{className:Z.note,children:`自动刷新更新已归档数据与项目状态;销售额并非实时交易数据。店铺按当前授权范围读取,项目按企业共享范围统计。`})]})}var $={landing:`_landing_b83tr_1`,hero:`_hero_b83tr_3`,heroCopy:`_heroCopy_b83tr_4`,brand:`_brand_b83tr_4`,brandCaption:`_brandCaption_b83tr_4`,heroEyebrow:`_heroEyebrow_b83tr_4`,heroActions:`_heroActions_b83tr_4`,primary:`_primary_b83tr_4`,heroSecondary:`_heroSecondary_b83tr_4`,universe:`_universe_b83tr_5`,orbitOuter:`_orbitOuter_b83tr_5`,orbitInner:`_orbitInner_b83tr_5`,planet:`_planet_b83tr_5`,orbitLabel:`_orbitLabel_b83tr_5`,orbitMarket:`_orbitMarket_b83tr_5`,orbitProject:`_orbitProject_b83tr_5`,orbitAgent:`_orbitAgent_b83tr_5`,orbitData:`_orbitData_b83tr_5`,universeCaption:`_universeCaption_b83tr_5`,section:`_section_b83tr_6`,sectionHeading:`_sectionHeading_b83tr_6`,kicker:`_kicker_b83tr_6`,principles:`_principles_b83tr_6`,principleTop:`_principleTop_b83tr_6`,modules:`_modules_b83tr_7`,moduleCard:`_moduleCard_b83tr_7`,moduleTop:`_moduleTop_b83tr_7`,features:`_features_b83tr_7`,moduleLink:`_moduleLink_b83tr_7`,sectionIntro:`_sectionIntro_b83tr_8`,scheduleLabel:`_scheduleLabel_b83tr_8`,courses:`_courses_b83tr_8`,course:`_course_b83tr_8`,courseCover:`_courseCover_b83tr_8`,cover1:`_cover1_b83tr_8`,cover2:`_cover2_b83tr_8`,courseContent:`_courseContent_b83tr_8`,courseMeta:`_courseMeta_b83tr_8`,courseDate:`_courseDate_b83tr_8`,courseFooter:`_courseFooter_b83tr_8`,textButton:`_textButton_b83tr_8`,footnote:`_footnote_b83tr_8`,releaseList:`_releaseList_b83tr_9`,release:`_release_b83tr_9`,releaseStamp:`_releaseStamp_b83tr_9`,version:`_version_b83tr_9`,badge:`_badge_b83tr_9`,releaseBody:`_releaseBody_b83tr_9`,changeKind:`_changeKind_b83tr_9`,footer:`_footer_b83tr_10`,detail:`_detail_b83tr_11`,detailHero:`_detailHero_b83tr_11`,metadata:`_metadata_b83tr_11`,detailGrid:`_detailGrid_b83tr_11`,detailPanel:`_detailPanel_b83tr_11`,outcomes:`_outcomes_b83tr_11`,agenda:`_agenda_b83tr_11`,agendaNumber:`_agendaNumber_b83tr_11`,teacher:`_teacher_b83tr_11`,subheading:`_subheading_b83tr_11`,desktopBreak:`_desktopBreak_b83tr_15`,siteNav:`_siteNav_b83tr_20`,siteBrand:`_siteBrand_b83tr_20`,gridDrift:`_gridDrift_b83tr_1`,dataFlow:`_dataFlow_b83tr_31`,flowSignals:`_flowSignals_b83tr_31`,dataTravel:`_dataTravel_b83tr_1`,signalPulse:`_signalPulse_b83tr_1`,outerOrbit:`_outerOrbit_b83tr_1`,innerOrbit:`_innerOrbit_b83tr_1`,orbitSweep:`_orbitSweep_b83tr_32`,radarSweep:`_radarSweep_b83tr_1`,coreBreathe:`_coreBreathe_b83tr_1`,nodeBreathe:`_nodeBreathe_b83tr_1`,motionControl:`_motionControl_b83tr_42`,productIntroduction:`_productIntroduction_b83tr_45`},Gt=[{id:`market`,name:`市场大盘`,icon:b,label:`发现机会`,description:`看清类目变化,发现值得研究的市场机会。`,features:`类目趋势 / 商品与店铺榜 / 机会发现`},{id:`overview`,name:`工作台`,icon:u,label:`统览经营`,description:`掌握经营概况,把观察转化为下一步行动。`,features:`经营总览 / 待处理事项 / 执行记录`},{id:`products`,name:`商品`,icon:d,label:`深入商品`,description:`围绕具体商品,持续跟进经营与优化。`,features:`商品目录 / 运营分组 / 商品工具`},{id:`projects`,name:`项目工作台`,icon:l,label:`推进协作`,description:`用节点与任务连接目标、执行和成果。`,features:`项目看板 / 节点任务 / Agent 协作`},{id:`data`,name:`资料中心`,icon:ie,label:`沉淀知识`,description:`让资料有归属,让结论与证据相互关联。`,features:`数据与附件 / 分析复盘 / 资料归档`}],Kt=[{icon:b,number:`01`,title:`以证据形成判断`,text:`将市场数据、研究资料与分析结论联系起来,让每一次决策有据可查。`},{icon:l,number:`02`,title:`以项目推动行动`,text:`把目标拆解成节点与任务,明确下一步,在协作中持续推进。`},{icon:x,number:`03`,title:`与 Agent 协作,沉淀成果`,text:`由山海组织上下文,Agent 执行具体工作,让成果回到项目,成为下一次工作的起点。`}];function qt({course:e,onBack:t}){let n=(0,C.useRef)(null),i=(0,C.useRef)(null);return(0,C.useEffect)(()=>{i.current?.scrollIntoView({block:`start`}),n.current?.focus({preventScroll:!0})},[]),(0,Q.jsxs)(`article`,{ref:i,className:$.detail,children:[(0,Q.jsxs)(`button`,{className:$.textButton,onClick:t,children:[(0,Q.jsx)(r,{size:16}),`返回课程排期`]}),(0,Q.jsxs)(`header`,{className:$.detailHero,children:[(0,Q.jsxs)(`span`,{className:$.kicker,children:[e.category,` · 示例课程`]}),(0,Q.jsx)(`h1`,{ref:n,tabIndex:-1,children:e.title}),(0,Q.jsx)(`p`,{children:e.description}),(0,Q.jsxs)(`div`,{className:$.metadata,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(y,{size:16}),w(e.date)]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(a,{size:16}),e.time,` · `,e.duration]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(S,{size:16}),e.format]})]})]}),(0,Q.jsxs)(`div`,{className:$.detailGrid,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`这堂课,你将收获`}),(0,Q.jsx)(`ul`,{className:$.outcomes,children:e.outcomes.map(e=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(c,{size:16}),e]},e))})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`课程大纲`}),(0,Q.jsx)(`ol`,{className:$.agenda,children:e.agenda.map((e,t)=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(`span`,{className:$.agendaNumber,children:String(t+1).padStart(2,`0`)}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`time`,{children:e.time}),(0,Q.jsx)(`h3`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description})]})]},e.time))})]})]}),(0,Q.jsxs)(`aside`,{children:[(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`讲师介绍`}),(0,Q.jsxs)(`div`,{className:$.teacher,children:[(0,Q.jsx)(`span`,{children:e.teacher.slice(0,1)}),(0,Q.jsx)(`h2`,{children:e.teacher})]}),(0,Q.jsx)(`p`,{children:e.teacherBio})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`适合谁学习`}),(0,Q.jsx)(`p`,{children:e.audience}),(0,Q.jsx)(`h2`,{className:$.subheading,children:`课前准备`}),(0,Q.jsx)(`ul`,{children:e.preparation.map(e=>(0,Q.jsx)(`li`,{children:e},e))})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`上课与课程资料`}),(0,Q.jsx)(`p`,{children:`当前为示例排期,用于预览课程内容。正式开课时间、入会方式、课件与回放将在课程确认后提供。`})]})]})]})]})}function Jt({full:e}){let t=e?ue:ue.slice(0,2);return(0,Q.jsx)(`div`,{className:$.releaseList,children:t.map((t,r)=>(0,Q.jsxs)(`article`,{className:$.release,children:[(0,Q.jsxs)(`div`,{className:$.releaseStamp,children:[(0,Q.jsxs)(`span`,{className:$.version,children:[`v`,t.version]}),r===0&&(0,Q.jsx)(`span`,{className:$.badge,children:`最近发布`}),(0,Q.jsx)(`time`,{dateTime:t.date,children:t.date.replaceAll(`-`,`.`)})]}),(0,Q.jsxs)(`div`,{className:$.releaseBody,children:[(0,Q.jsx)(`h3`,{children:t.title}),(0,Q.jsx)(`p`,{children:t.summary}),(0,Q.jsxs)(`details`,{open:e||void 0,children:[(0,Q.jsxs)(`summary`,{children:[`查看更新内容 `,(0,Q.jsx)(n,{size:14})]}),(0,Q.jsx)(`ul`,{children:t.changes.map(e=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(`span`,{className:$.changeKind,children:e.kind}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`strong`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description})]})]},e.title))})]})]})]},t.version))})}function Yt({api:e,onModule:n,onOpen:r}){let[a,s]=(0,C.useState)(null),[c,u]=(0,C.useState)(!1),[d,te]=(0,C.useState)(!1),f=(0,C.useRef)(new Map),p=(0,C.useRef)(``),h=(0,C.useRef)(null),g=(0,C.useRef)(null),re=(0,C.useRef)(null),_=(0,C.useRef)(null);function v(e){e?.scrollIntoView({behavior:`auto`,block:`start`}),e?.querySelector(`h2`)?.focus({preventScroll:!0})}function ae(){s(null),requestAnimationFrame(()=>{f.current.get(p.current)?.focus()})}return a?(0,Q.jsx)(`div`,{className:$.landing,children:(0,Q.jsx)(qt,{course:a,onBack:ae})}):(0,Q.jsxs)(`div`,{className:$.landing,children:[(0,Q.jsx)(Wt,{api:e,onModule:n,onOpen:r}),(0,Q.jsxs)(`details`,{className:$.productIntroduction,children:[(0,Q.jsx)(`summary`,{children:`了解山海 · 设计理念与功能模块`}),(0,Q.jsxs)(`nav`,{className:$.siteNav,"aria-label":`首页内容导航`,children:[(0,Q.jsxs)(`span`,{className:$.siteBrand,children:[`山海 `,(0,Q.jsx)(`i`,{children:`·`}),` OMNI`]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`button`,{onClick:()=>v(re.current),children:`设计理念`}),(0,Q.jsx)(`button`,{onClick:()=>v(h.current),children:`功能模块`}),(0,Q.jsx)(`button`,{onClick:()=>v(g.current),children:`课程排期`}),(0,Q.jsx)(`button`,{onClick:()=>v(_.current),children:`版本更新`})]})]}),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`section`,{className:$.hero,"data-motion":d?`paused`:`playing`,"aria-labelledby":`home-brand-title`,children:[(0,Q.jsxs)(`div`,{className:$.heroCopy,children:[(0,Q.jsxs)(`div`,{className:$.brand,children:[(0,Q.jsx)(`img`,{src:ne,alt:``,width:40,height:40}),(0,Q.jsxs)(`span`,{children:[`山海 `,(0,Q.jsx)(`i`,{children:`·`}),` OMNI`]}),(0,Q.jsx)(`span`,{className:$.brandCaption,children:`智能工作空间`})]}),(0,Q.jsx)(`span`,{className:$.heroEyebrow,children:`连接洞察、行动与知识`}),(0,Q.jsxs)(`h1`,{id:`home-brand-title`,children:[`让洞察成为行动`,(0,Q.jsx)(`br`,{}),(0,Q.jsx)(`em`,{children:`让成果持续沉淀`})]}),(0,Q.jsxs)(`p`,{children:[`连接市场研究、商品经营与项目协作,`,(0,Q.jsx)(`br`,{className:$.desktopBreak}),`与 Agent 一起,把每一次探索变成有价值的积累。`]}),(0,Q.jsxs)(`div`,{className:$.heroActions,children:[(0,Q.jsxs)(`button`,{className:$.primary,onClick:()=>v(h.current),children:[`探索山海 `,(0,Q.jsx)(i,{size:16})]}),(0,Q.jsxs)(`button`,{className:$.heroSecondary,onClick:()=>v(g.current),children:[(0,Q.jsx)(o,{size:16}),`查看课程`]})]})]}),(0,Q.jsxs)(`div`,{className:$.universe,"aria-hidden":`true`,children:[(0,Q.jsxs)(`svg`,{className:$.dataFlow,viewBox:`0 0 500 400`,preserveAspectRatio:`none`,children:[(0,Q.jsxs)(`g`,{children:[(0,Q.jsx)(`path`,{d:`M80 95 H155 L250 192`}),(0,Q.jsx)(`path`,{d:`M420 120 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M420 295 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M80 305 H155 L250 192`})]}),(0,Q.jsxs)(`g`,{className:$.flowSignals,children:[(0,Q.jsx)(`path`,{d:`M80 95 H155 L250 192`}),(0,Q.jsx)(`path`,{d:`M250 192 L350 120 H420`}),(0,Q.jsx)(`path`,{d:`M420 295 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M250 192 L155 305 H80`})]})]}),(0,Q.jsx)(`div`,{className:$.orbitOuter}),(0,Q.jsx)(`div`,{className:$.orbitInner}),(0,Q.jsx)(`div`,{className:$.orbitSweep}),(0,Q.jsxs)(`div`,{className:$.planet,children:[(0,Q.jsx)(`img`,{src:ne,alt:``,width:110,height:110}),(0,Q.jsx)(`span`,{children:`OMNI`})]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitMarket,children:[(0,Q.jsx)(b,{size:15}),`市场洞察`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitProject,children:[(0,Q.jsx)(l,{size:15}),`项目协作`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitAgent,children:[(0,Q.jsx)(x,{size:15}),`Agent 执行`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitData,children:[(0,Q.jsx)(ie,{size:15}),`知识沉淀`]}),(0,Q.jsx)(`span`,{className:$.universeCaption,children:`EXPLORE · CONNECT · CREATE`})]}),(0,Q.jsxs)(`button`,{className:$.motionControl,onClick:()=>te(e=>!e),"aria-pressed":d,"aria-label":d?`播放品牌动效`:`暂停品牌动效`,children:[d?(0,Q.jsx)(ee,{size:12}):(0,Q.jsx)(ce,{size:12}),(0,Q.jsx)(`span`,{children:d?`播放动效`:`暂停动效`})]})]}),(0,Q.jsxs)(`section`,{ref:re,className:$.section,"aria-labelledby":`home-philosophy-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`OUR PHILOSOPHY`}),(0,Q.jsx)(`h2`,{id:`home-philosophy-title`,tabIndex:-1,children:`从一次洞察,到持续创造`})]}),(0,Q.jsx)(`p`,{children:`让信息有联系,让工作有方向,让经验可积累。`})]}),(0,Q.jsx)(`div`,{className:$.principles,children:Kt.map(({icon:e,...t})=>(0,Q.jsxs)(`article`,{children:[(0,Q.jsxs)(`div`,{className:$.principleTop,children:[(0,Q.jsx)(e,{size:23}),(0,Q.jsx)(`span`,{children:t.number})]}),(0,Q.jsx)(`h3`,{children:t.title}),(0,Q.jsx)(`p`,{children:t.text})]},t.number))})]}),(0,Q.jsxs)(`section`,{className:$.section,ref:h,"aria-labelledby":`home-modules-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`ONE CONNECTED WORKSPACE`}),(0,Q.jsx)(`h2`,{id:`home-modules-title`,tabIndex:-1,children:`五个模块,一条完整的工作路径`})]}),(0,Q.jsx)(`p`,{children:`从认识市场到沉淀成果,每一步都有合适的工具。`})]}),(0,Q.jsx)(`div`,{className:$.modules,children:Gt.map(({icon:e,...t},r)=>(0,Q.jsxs)(`button`,{className:$.moduleCard,onClick:()=>n(t.id),"aria-label":`进入${t.name}`,children:[(0,Q.jsxs)(`div`,{className:$.moduleTop,children:[(0,Q.jsx)(e,{size:23}),(0,Q.jsxs)(`span`,{children:[`0`,r+1]})]}),(0,Q.jsx)(`small`,{children:t.label}),(0,Q.jsx)(`h3`,{children:t.name}),(0,Q.jsx)(`p`,{children:t.description}),(0,Q.jsx)(`span`,{className:$.features,children:t.features}),(0,Q.jsxs)(`span`,{className:$.moduleLink,children:[`进入模块 `,(0,Q.jsx)(i,{size:15})]})]},t.id))})]})]})]}),(0,Q.jsxs)(`section`,{ref:g,className:$.section,"aria-labelledby":`home-courses-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`LEARN WITH OMNI`}),(0,Q.jsx)(`h2`,{id:`home-courses-title`,tabIndex:-1,children:`一起学习,把方法用起来`})]}),(0,Q.jsxs)(`span`,{className:$.scheduleLabel,children:[(0,Q.jsx)(y,{size:16}),`2026 年 11 月 · 示例排期`]})]}),(0,Q.jsx)(`p`,{className:$.sectionIntro,children:`从入门到实战,沿着真实工作场景,逐步掌握山海与 Agent 的协作方法。`}),(0,Q.jsx)(`div`,{className:$.courses,children:le.map((e,t)=>(0,Q.jsxs)(`article`,{className:$.course,children:[(0,Q.jsxs)(`div`,{className:`${$.courseCover} ${$[`cover`+t]}`,children:[(0,Q.jsx)(`span`,{children:e.category}),(0,Q.jsx)(o,{size:56,strokeWidth:1}),(0,Q.jsxs)(`strong`,{children:[`OMNI CLASS `,(0,Q.jsxs)(`i`,{children:[`0`,t+1]})]})]}),(0,Q.jsxs)(`div`,{className:$.courseContent,children:[(0,Q.jsxs)(`div`,{className:$.courseMeta,children:[(0,Q.jsx)(`span`,{children:e.format}),(0,Q.jsx)(`span`,{children:e.duration})]}),(0,Q.jsx)(`h3`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description}),(0,Q.jsxs)(`div`,{className:$.courseDate,children:[(0,Q.jsx)(y,{size:14}),(0,Q.jsxs)(`time`,{dateTime:e.date,children:[w(e.date),` `,e.time]})]}),(0,Q.jsxs)(`div`,{className:$.courseFooter,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(m,{size:14}),e.teacher]}),(0,Q.jsxs)(`button`,{ref:t=>{t?f.current.set(e.id,t):f.current.delete(e.id)},onClick:()=>{p.current=e.id,s(e)},"aria-label":`查看课程详情:${e.title}`,children:[`查看详情 `,(0,Q.jsx)(i,{size:15})]})]})]})]},e.id))}),(0,Q.jsx)(`p`,{className:$.footnote,children:`课程时间与讲师为示例内容,点击卡片中的“查看详情”可预览完整课程安排。`})]}),(0,Q.jsxs)(`section`,{ref:_,className:$.section,"aria-labelledby":`home-releases-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`WHAT’S NEW`}),(0,Q.jsx)(`h2`,{id:`home-releases-title`,tabIndex:-1,children:`山海,持续生长`})]}),(0,Q.jsxs)(`button`,{className:$.textButton,"aria-expanded":c,onClick:()=>u(e=>!e),children:[c?`收起历史版本`:`全部版本记录`,(0,Q.jsx)(i,{size:15})]})]}),(0,Q.jsx)(`p`,{className:$.sectionIntro,children:`每一次更新,都向更顺畅的工作体验前进一步。`}),(0,Q.jsx)(Jt,{full:c}),(0,Q.jsx)(`p`,{className:$.footnote,children:`依据项目已确认的桌面发布记录整理 · 此处展示产品更新历史,设备升级状态请查看左侧“升级”入口。`})]}),(0,Q.jsxs)(`footer`,{className:$.footer,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(t,{size:17}),`山海 · OMNI`]}),(0,Q.jsx)(`span`,{children:`洞察有据,行动有序,成果有归。`})]})]})}function Xt({api:e,onModule:t,onOpen:n}){return(0,Q.jsx)(Yt,{api:e,onModule:t,onOpen:n})}function Zt(e,t){return e.some(e=>e.key===t.key)?e.filter(e=>e.key!==t.key):[t,...e].slice(0,20)}function Qt({section:e}){let t=ae(),[n,r]=oe(`home.pins`,[]);return(0,Q.jsx)(Xt,{mode:e,...t,pins:n,onPin:e=>r(t=>Zt(t,e))})}export{Qt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./CollaborationWorkspace-Cnp5PNn_.js";import{o as t}from"./index-DLSVWUSu.js";var n=t();function r({selectedId:t,project:r}){let i=t||r?.projectId;return(0,n.jsx)(e,{initialProjectId:i},i||`directory`)}export{r as default};
|