@feedmepos/mf-connect 0.1.15-prod → 0.1.16-prod

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.
Files changed (84) hide show
  1. package/dist/{Analytic-C7qqDS5D.js → Analytic-9_JkMO2c.js} +10 -10
  2. package/dist/{App-DKZYz5r2.js → App-DfbUtaeM.js} +6 -6
  3. package/dist/{Bin-U7U1Vaju.js → Bin-BoolyqZn.js} +7 -7
  4. package/dist/{Broadcast-BzChnp4V.js → Broadcast-8UwFqqzp.js} +8 -8
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BELIbS3v.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CjoVXqOG.js} +6 -6
  6. package/dist/{Card-DAfZz7q5.js → Card-BFEc9Zgu.js} +14 -14
  7. package/dist/{Collections-joGRHyag.js → Collections-DqlqGVcv.js} +5 -5
  8. package/dist/{Credit-N1qDB4XC.js → Credit-BuKQEMU2.js} +8 -8
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-J95iaF7a.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjCVR7D4.js} +27 -27
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DwzQSmst.js → EffectSheet.vue_vue_type_style_index_0_lang-DXBqS4zs.js} +6 -6
  11. package/dist/{Experience-D5GrDbft.js → Experience-BTf5f-Kb.js} +8 -8
  12. package/dist/{Game-DI7BDPO_.js → Game-Ci_39vHg.js} +8 -8
  13. package/dist/{Index-CbuAJ2dE.js → Index-8JLenrzT.js} +9 -9
  14. package/dist/{Marketing-BSqMfy70.js → Marketing-XAmIlYCx.js} +5 -5
  15. package/dist/{Member-CGd5wNHJ.js → Member-Bvxgoep1.js} +4 -4
  16. package/dist/{MemberList-DnS8KHYF.js → MemberList-BvX98Yt-.js} +23 -23
  17. package/dist/{MemberTransactions-GAAX3aSV.js → MemberTransactions-DJt3aJ-h.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bc2wcibo.js → MessageInput.vue_vue_type_script_setup_true_lang-OFqra1ac.js} +44 -32
  19. package/dist/{Mission-BVM_1IJ8.js → Mission-D_CqN5Es.js} +8 -8
  20. package/dist/{Overview-D2IYZCPn.js → Overview-FRebjePW.js} +16 -16
  21. package/dist/{Point-B684quZM.js → Point-C_amiOK4.js} +8 -8
  22. package/dist/{Promotion-DJOoRnxt.js → Promotion-qt_pE8uB.js} +9 -9
  23. package/dist/{Record-Bk74XVUj.js → Record-2eAijNwr.js} +6 -6
  24. package/dist/{Reward-BM0AGGL6.js → Reward-DLNijsC9.js} +14 -14
  25. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CuA2D52B.js → RewardGroup.vue_vue_type_script_setup_true_lang-dsxs4d5k.js} +10 -10
  26. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cxv3cZ1v.js → RuleGroup.vue_vue_type_script_setup_true_lang-BZ4ORSgp.js} +12 -12
  27. package/dist/{Segment-DqOsH95n.js → Segment-QKuGmThT.js} +13 -13
  28. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-ypjkVZkZ.js → SelectItems.vue_vue_type_script_setup_true_lang-C02QXf6B.js} +2 -2
  29. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Qo0aOTI9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DXpzjbIh.js} +3 -3
  30. package/dist/Setting-GTro0uCw.js +1877 -0
  31. package/dist/{Store-DqtUurcv.js → Store-CTxmlEVr.js} +17 -17
  32. package/dist/{StoreRewards-DPFMA3p9.js → StoreRewards-Bm9NXXH2.js} +12 -12
  33. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CYqo5att.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CrxFaBDj.js} +17 -17
  34. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DxEV-6_4.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cf2JpXND.js} +1 -1
  35. package/dist/{Tier-CFd-HaGX.js → Tier-CB64ZbLz.js} +18 -18
  36. package/dist/{Title-CBktBb5l.js → Title-62HEE-nU.js} +18 -18
  37. package/dist/{Transaction-Bb8UU_lj.js → Transaction-CK9Igmnp.js} +2 -2
  38. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DBiUmz3C.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DJB9g9bg.js} +6 -6
  39. package/dist/{Voucher-Bukem4U7.js → Voucher-CZLp6Mfd.js} +11 -11
  40. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTbqVMCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DKunt5iP.js} +10 -10
  41. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D8zMv7ks.js → ZodTextField.vue_vue_type_script_setup_true_lang-CP0wAVaD.js} +1 -1
  42. package/dist/{app-BL2xIPMp.js → app-BsOd2LLI.js} +585 -585
  43. package/dist/{app-CO6FVdHg.js → app-D7g1W_8e.js} +1 -1
  44. package/dist/app.js +1 -1
  45. package/dist/{business-BMTDDe8v.js → business-e0ErhqsW.js} +1 -1
  46. package/dist/{campaign-C5TEfnWg.js → campaign-CcRs_0FM.js} +62 -62
  47. package/dist/{campaign-CzpECNqa.js → campaign-CcdO3quq.js} +2 -2
  48. package/dist/{campaign.enum-CVF3KbJ2.js → campaign.enum-DSB0ntaX.js} +1 -1
  49. package/dist/{campaign.fn-WT1gfEwK.js → campaign.fn-BSxLDscM.js} +29 -29
  50. package/dist/{collectible.enum-BW7-BEa-.js → collectible.enum-DR19JADq.js} +1 -1
  51. package/dist/{collection.fn-BRsC9uPP.js → collection.fn-Bm_oNhCa.js} +2 -2
  52. package/dist/{dto-B1tWHAjt.js → dto-3LqyQCjQ.js} +4 -4
  53. package/dist/{effect-4Ov4Jl68.js → effect-BuC4ddqL.js} +1 -1
  54. package/dist/{email-addresses-L25192f3.js → email-addresses-FxQM5JQh.js} +1 -1
  55. package/dist/{export-UEJjaL0g.js → export-DB_vSJ5r.js} +3 -3
  56. package/dist/{helper-BNBSbgdl.js → helper-Czc_ykUT.js} +1 -1
  57. package/dist/{index-BnWjqXOJ.js → index-0EgN5Vaf.js} +1 -1
  58. package/dist/{index-DpCBCiH_.js → index-B-gmFyeP.js} +3 -3
  59. package/dist/{index-jf1CG6wc.js → index-C2Y3Z6cQ.js} +1 -1
  60. package/dist/{index-BWY2o9U9.js → index-CavK1FD8.js} +1 -1
  61. package/dist/{index-D8Qn3ZjQ.js → index-DF7DfJ1p.js} +1 -1
  62. package/dist/{index-BxwVs3Ot.js → index-DJmQQbIZ.js} +1 -1
  63. package/dist/{index-ChKwu49G.js → index-DP1XHU5I.js} +2 -2
  64. package/dist/{index-fdv6AHmk.js → index-DTirkGj1.js} +4 -4
  65. package/dist/{index-CtY-c-yc.js → index-Dc_5fMdM.js} +1 -1
  66. package/dist/{index-Cg64BkVG.js → index-Dvp6UpsY.js} +1 -1
  67. package/dist/{index-D4iYmdD4.js → index-KXIH9y_C.js} +6 -6
  68. package/dist/{index-DxjXJh5H.js → index-o3ez16Wf.js} +3 -3
  69. package/dist/{index.esm2017-D-3LEGru.js → index.esm2017-DsCfyosK.js} +1 -1
  70. package/dist/{loading-CUp8ZsA0.js → loading-CsMKK-RP.js} +4 -4
  71. package/dist/{membership-DwbiFGd7.js → membership-ChU9QHZQ.js} +3 -3
  72. package/dist/{money-BLrbHrdQ.js → money-CG2aMqwR.js} +1 -1
  73. package/dist/{number--bZt83Nn.js → number-DOiTymUW.js} +1 -1
  74. package/dist/{objectid-CCGQh_Y_.js → objectid-DEgIJB4V.js} +1 -1
  75. package/dist/{reward-D99cFWcD.js → reward-bezIYRz1.js} +1 -1
  76. package/dist/{rule-UpH1Y1i5.js → rule-BXvIZA60.js} +3 -3
  77. package/dist/{rule-builder-ujLy6UTt.js → rule-builder-BD_t-4Oq.js} +1 -1
  78. package/dist/{template-FiuUP37O.js → template-CYa8Yqzb.js} +4 -4
  79. package/dist/{trigger-BZYtwSky.js → trigger-B2Ihm351.js} +4 -4
  80. package/dist/{usePagination-DDW-s6D3.js → usePagination-Dus-uVGw.js} +1 -1
  81. package/dist/{user-BA3Sw5dU.js → user-BkIvuR0M.js} +1 -1
  82. package/dist/{vue-i18n-C5t_xZZj.js → vue-i18n-BOO66JER.js} +112 -112
  83. package/package.json +1 -1
  84. package/dist/Setting-D6cRTVUl.js +0 -1871
@@ -1,6 +1,6 @@
1
1
  import { withPermission as R, Permission as x } from "@feedmepos/mf-common";
2
2
  import { defineAsyncComponent as k } from "vue";
3
- const Me = {
3
+ const Pe = {
4
4
  common: {
5
5
  submit: "Submit",
6
6
  confirm: "Confirm",
@@ -1015,7 +1015,7 @@ const Me = {
1015
1015
  effect_required: "Effect is required"
1016
1016
  }
1017
1017
  }, De = {
1018
- connect: Me,
1018
+ connect: Pe,
1019
1019
  connectZod: Le,
1020
1020
  connectZodCustom: je
1021
1021
  }, Ze = {
@@ -2022,65 +2022,65 @@ const Me = {
2022
2022
  common: {
2023
2023
  createCampaign: "สร้างแคมเปญ",
2024
2024
  search: "ค้นหา",
2025
- location: "ตำแหน่ง:",
2026
- noResults: "ไม่พบผลลัพธ์",
2025
+ location: "สาขา:",
2026
+ noResults: "ไม่พบข้อมูล",
2027
2027
  remove: {
2028
2028
  confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
2029
2029
  removing: "กำลังลบ {name}",
2030
- removed: "ลบ {name} สำเร็จแล้ว"
2030
+ removed: "ลบ {name} สำเร็จ"
2031
2031
  },
2032
2032
  actions: {
2033
2033
  remove: "ลบ",
2034
2034
  send: "ส่ง",
2035
2035
  share: "แชร์"
2036
2036
  },
2037
- effect_required: "จำเป็นต้องมีผล",
2038
- unsaved_changes: "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการเปลี่ยนแปลงนี้",
2039
- unsaved_changes_confirm: "ยกเลิก",
2040
- unsaved_changes_cancel: "ยกเลิก",
2037
+ effect_required: "จำเป็นต้องกรอก",
2038
+ unsaved_changes: "คุณแน่ใจหรือไม่ว่าต้องการยืนยันการแก้ไข",
2039
+ unsaved_changes_confirm: "ยืนยัน",
2040
+ unsaved_changes_cancel: "ยืนยัน",
2041
2041
  save: "บันทึก",
2042
- cancel: "ยกเลิก",
2042
+ cancel: "ยืนยัน",
2043
2043
  summary: "สรุปแคมเปญ",
2044
2044
  campaign_name: "ชื่อแคมเปญ",
2045
- campaign_period: "ช่วงเวลาแคมเปญ",
2045
+ campaign_period: "ระยะเวลาแคมเปญ",
2046
2046
  next_schedule_at: "กำหนดการถัดไป",
2047
2047
  discount_type: "ประเภทส่วนลด",
2048
2048
  discount_amount: "จำนวนส่วนลด",
2049
2049
  discount_percentage: "เปอร์เซ็นต์ส่วนลด",
2050
- all_locations: "ทุกตำแหน่ง",
2051
- available_at: "มีให้ใช้งานที่",
2050
+ all_locations: "ทุกสาขา",
2051
+ available_at: "สาขาที่ใช้งาน",
2052
2052
  always: "เสมอ",
2053
- no_location: "ไม่มีตำแหน่ง"
2053
+ no_location: "ไม่พบสาขา"
2054
2054
  },
2055
2055
  mission: {
2056
- title: "ภารกิจ",
2056
+ title: "Mission",
2057
2057
  create: "สร้างแคมเปญ",
2058
2058
  confirmDelete: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
2059
2059
  removing: "กำลังลบ {name}",
2060
- removed: "ลบ {name} สำเร็จแล้ว",
2061
- updating: "กำลังอัปเดตโปรแกรมภารกิจ",
2062
- updated: "อัปเดตโปรแกรมภารกิจเรียบร้อยแล้ว",
2063
- creating: "กำลังสร้างโปรแกรมภารกิจ",
2064
- created: "สร้างโปรแกรมภารกิจสำเร็จแล้ว",
2065
- location: "ที่ตั้ง:",
2066
- createProgram: "สร้างโปรแกรมภารกิจของคุณ",
2067
- description: "ฟีเจอร์ภารกิจเพิ่มองค์ประกอบความสนุกให้กับการช้อปปิ้ง ช่วยกระตุ้นให้ลูกค้ามีส่วนร่วมมากขึ้น",
2068
- createButton: "สร้างโปรแกรมภารกิจ",
2069
- type: "ประเภทภารกิจ",
2060
+ removed: "ลบ {name} สำเร็จ",
2061
+ updating: "กำลังอัปเดต Mission",
2062
+ updated: "อัปเดต Mission สำเร็จ",
2063
+ creating: "กำลังสร้าง Mission",
2064
+ created: "สร้าง Mission สำเร็จ",
2065
+ location: "สาขา:",
2066
+ createProgram: "สร้าง Mission ของคุณ",
2067
+ description: "Mission สำหรับช่วยกระตุ้นให้ลูกค้าช้อปปิ้งและเพิ่มโอกาสในการใช้งานมากขึ้น",
2068
+ createButton: "สร้าง Mission ",
2069
+ type: "ประเภท Mission",
2070
2070
  received: "ได้รับ"
2071
2071
  },
2072
2072
  broadcast: {
2073
2073
  title: "บรอดแคสต์",
2074
2074
  messageSent: "ส่งแล้ว {count} ครั้ง",
2075
2075
  create: {
2076
- title: "สร้างแคมเปญออกอากาศของคุณ",
2077
- description: "บรอดแคสต์ทำให้คุณสามารถส่งข้อความถึงลูกค้าทั้งหมด เพื่อแจ้งให้พวกเขาทราบเกี่ยวกับข้อเสนอใหม่ กิจกรรม หรือการอัปเดตที่สำคัญ",
2076
+ title: "สร้างแคมเปญบรอดแคสต์ของคุณ",
2077
+ description: "การการบรอดแคสต์ทำให้คุณสามารถส่งข้อความถึงลูกค้าทั้งหมด เพื่อแจ้งให้พวกเขาทราบเกี่ยวกับข้อเสนอใหม่ กิจกรรม หรือการอัปเดตที่สำคัญ",
2078
2078
  button: "สร้างแคมเปญบรอดแคสต์"
2079
2079
  },
2080
2080
  update: {
2081
- creating: "กำลังสร้างการบรอดแคสต์",
2082
- updating: "กำลังอัปเดตการบรอดแคสต์",
2083
- success: "บรอดแคสต์ {action} สำเร็จแล้ว"
2081
+ creating: "กำลังสร้างบรอดแคสต์",
2082
+ updating: "กำลังอัปเดตบรอดแคสต์",
2083
+ success: "บรอดแคสต์ {action} สำเร็จ"
2084
2084
  }
2085
2085
  },
2086
2086
  promotion: {
@@ -2088,13 +2088,13 @@ const Me = {
2088
2088
  typeLabel: "{type} โปรโมชัน",
2089
2089
  create: {
2090
2090
  title: "สร้างแคมเปญโปรโมชัน",
2091
- description: "ข้อเสนอพิเศษที่มีให้ในช่วงเวลาจำกัดเพื่อกระตุ้นให้ผู้ใช้มีส่วนร่วมและซื้อ โปรโมชั่นโดยทั่วไปจะมีให้สำหรับผู้ใช้ที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในช่วงเวลาที่จัดโปรโมชั่นเท่านั้น",
2091
+ description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในระยะเวลาที่จัดโปรโมชันเท่านั้น",
2092
2092
  button: "สร้างแคมเปญโปรโมชัน"
2093
2093
  },
2094
2094
  update: {
2095
2095
  creating: "กำลังสร้างโปรโมชัน",
2096
2096
  updating: "กำลังอัปเดตโปรโมชัน",
2097
- success: "โปรโมชัน {action} สำเร็จแล้ว"
2097
+ success: "โปรโมชัน {action} สำเร็จ"
2098
2098
  }
2099
2099
  },
2100
2100
  voucher: {
@@ -2103,25 +2103,25 @@ const Me = {
2103
2103
  unlimited: "ไม่จำกัด",
2104
2104
  updateConfirm: {
2105
2105
  title: "ยืนยัน",
2106
- message: "การดำเนินการนี้จะเปลี่ยนแปลงคูปองในอนาคตทั้งหมดหรือไม่ คุณต้องการอัปเดตวันที่หมดอายุและส่วนลดของคูปองที่อ้างสิทธิ์ก่อนหน้านี้หรือไม่",
2106
+ message: "การดำเนินการนี้จะเปลี่ยนแปลงบัตรกำนัลในอนาคตทั้งหมดหรือไม่ คุณต้องการอัปเดตวันหมดอายุและส่วนลดของบัตรกำนัลที่เคยถูกรับสิทธิ์ไปแล้วด้วยหรือไม่?",
2107
2107
  updateAll: "อัปเดตทั้งหมด",
2108
- updateFuture: "อัปเดตในอนาคตเท่านั้น"
2108
+ updateFuture: "อัปเดตเฉพาะรายการในอนาคตเท่านั้น"
2109
2109
  },
2110
2110
  create: {
2111
- title: "สร้างแคมเปญคูปอง",
2112
- description: "คูปองดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้คูปองเพื่อรับส่วนลด",
2113
- button: "สร้างแคมเปญคูปอง"
2111
+ title: "สร้างแคมเปญบัตรกำนัล",
2112
+ description: "บัตรกำนัลดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้บัตรกำนัลเพื่อรับส่วนลด",
2113
+ button: "สร้างแคมเปญบัตรกำนัล"
2114
2114
  },
2115
2115
  update: {
2116
- creating: "กำลังสร้างคูปอง",
2117
- updating: "กำลังอัปเดตคูปอง",
2118
- success: "คูปอง {action} สำเร็จ"
2116
+ creating: "กำลังสร้างบัตรกำนัล",
2117
+ updating: "กำลังอัปเดตบัตรกำนัล",
2118
+ success: "บัตรกำนัล {action} สำเร็จ"
2119
2119
  },
2120
2120
  share: {
2121
- error: "ไม่สามารถแชร์คูปองที่ไม่ใช่การอ้างสิทธิ์แบบง่ายได้",
2122
- errorTitle: "แชร์คูปอง",
2121
+ error: "ไม่สามารถแชร์บัตรกำนัลที่ไม่ใช่การรับสิทธิ์แบบง่ายได้",
2122
+ errorTitle: "แชร์บัตรกำนัล",
2123
2123
  errorButton: "ตกลง",
2124
- success: "คัดลอกลิงก์คูปองไปยังคลิปบอร์ดแล้ว"
2124
+ success: "คัดลอกลิงก์บัตรกำนัลไปยังคลิปบอร์ดแล้ว"
2125
2125
  }
2126
2126
  }
2127
2127
  },
@@ -2137,68 +2137,68 @@ const Me = {
2137
2137
  removedSuccessfully: "ลบ {name} สำเร็จ",
2138
2138
  updating: "กำลังอัปเดตโปรโมชัน",
2139
2139
  creating: "กำลังสร้างโปรโมชัน",
2140
- updatedSuccessfully: "อัปเดตโปรโมชันสำเร็จแล้ว",
2141
- createdSuccessfully: "สร้างโปรโมชันสำเร็จแล้ว",
2140
+ updatedSuccessfully: "อัปเดตโปรโมชันสำเร็จ",
2141
+ createdSuccessfully: "สร้างโปรโมชันสำเร็จ",
2142
2142
  title: "โปรโมชัน",
2143
2143
  search: "ค้นหา",
2144
- location: "ที่ตั้ง:",
2145
- createPromotionCampaign: "สร้างแคมเปญส่งเสริมการขาย",
2146
- description: "ข้อเสนอพิเศษที่มีให้ในช่วงเวลาจำกัดเพื่อกระตุ้นให้ผู้ใช้มีส่วนร่วมและซื้อ โปรโมชั่นโดยทั่วไปจะมีให้สำหรับผู้ใช้ที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในช่วงเวลาที่จัดโปรโมชั่นเท่านั้น"
2144
+ location: "สาขา:",
2145
+ createPromotionCampaign: "สร้างแคมเปญโปรโมชัน",
2146
+ description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในระยะเวลาที่จัดโปรโมชันเท่านั้น"
2147
2147
  },
2148
2148
  voucher: {
2149
2149
  createCampaign: "สร้างแคมเปญ",
2150
- voucherTitle: "ชื่อคูปอง",
2150
+ voucherTitle: "ชื่อบัตรกำนัล",
2151
2151
  status: "สถานะ",
2152
2152
  summary: "สรุป",
2153
2153
  quota: "โควตา",
2154
- claimed: "อ้างสิทธิ์",
2154
+ claimed: "รับสิทธิ์แล้ว",
2155
2155
  actions: "การดำเนินการ",
2156
2156
  remove: "ลบ",
2157
2157
  send: "ส่ง",
2158
2158
  share: "แชร์",
2159
2159
  confirmRemove: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
2160
2160
  removing: "กำลังลบ {name}",
2161
- removedSuccessfully: "ลบ {name} สำเร็จแล้ว",
2162
- updating: "กำลังอัปเดตคูปอง",
2163
- creating: "กำลังสร้างคูปอง",
2164
- updatedSuccessfully: "อัปเดตคูปองสำเร็จแล้ว",
2165
- createdSuccessfully: "สร้างคูปองสำเร็จแล้ว",
2166
- title: "คูปอง",
2161
+ removedSuccessfully: "ลบ {name} สำเร็จ",
2162
+ updating: "กำลังอัปเดตบัตรกำนัล",
2163
+ creating: "กำลังสร้างบัตรกำนัล",
2164
+ updatedSuccessfully: "อัปเดตบัตรกำนัลสำเร็จ",
2165
+ createdSuccessfully: "สร้างบัตรกำนัลสำเร็จ",
2166
+ title: "บัตรกำนัล",
2167
2167
  search: "ค้นหา",
2168
- location: "ตำแหน่ง:",
2169
- createVoucherCampaign: "สร้างแคมเปญคูปอง",
2170
- description: "คูปองดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้คูปองเพื่อรับส่วนลด"
2168
+ location: "สาขา:",
2169
+ createVoucherCampaign: "สร้างแคมเปญบัตรกำนัล",
2170
+ description: "บัตรกำนัลดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้บัตรกำนัลเพื่อรับส่วนลด"
2171
2171
  },
2172
2172
  navigation: {
2173
2173
  analytic: "การวิเคราะห์",
2174
2174
  campaign: "แคมเปญ",
2175
- promotion: "โปรโมชั่น",
2175
+ promotion: "โปรโมชัน",
2176
2176
  voucher: "บัตรกำนัล",
2177
2177
  broadcast: "บรอดแคสต์",
2178
- program: "โปรแกรม",
2179
- tier: "ระดับ",
2180
- title: "ชื่อ",
2181
- experience: "ประสบการณ์",
2178
+ program: "โปรแกรมสมาชิก",
2179
+ tier: "ระดับสมาชิก",
2180
+ title: "ป้ายชื่อ",
2181
+ experience: "ค่าประสบการณ์",
2182
2182
  point: "คะแนน",
2183
2183
  credit: "เครดิต",
2184
2184
  game: "เกม",
2185
- loyalty: "ความภักดี",
2185
+ loyalty: "ระบบสมาชิก",
2186
2186
  member: "สมาชิก",
2187
- segments: "กลุ่ม",
2188
- card: "บัตร",
2187
+ segments: "กลุ่มสมาชิก",
2188
+ card: "บัตรสมาชิก",
2189
2189
  store: "ร้านค้า",
2190
2190
  transaction: "ธุรกรรม",
2191
2191
  setting: "การตั้งค่า",
2192
- mission: "ภารกิจ"
2192
+ mission: "Mission"
2193
2193
  },
2194
2194
  loyalty: {
2195
2195
  card: {
2196
- title: "บัตร",
2197
- premium_label: "พรีเมียม",
2196
+ title: "บัตรสมาชิก",
2197
+ premium_label: "Premium",
2198
2198
  actions: {
2199
- create: "สร้างบัตร",
2200
- manage_design: "จัดการการออกแบบ",
2201
- add: "เพิ่มบัตร"
2199
+ create: "สร้างบัตรสมาชิก",
2200
+ manage_design: "ใส่รูปบัตรสำหรับสมาชิก",
2201
+ add: "เพิ่มบัตรสมาชิก"
2202
2202
  },
2203
2203
  empty_state: {
2204
2204
  title: "สร้างบัตรสมาชิก",
@@ -2206,11 +2206,11 @@ const Me = {
2206
2206
  premium_cta: "อัปเกรดเป็นพรีเมียมและเพลิดเพลินกับฟีเจอร์ทั้งหมด"
2207
2207
  },
2208
2208
  table: {
2209
- card_number: "หมายเลขบัตร",
2209
+ card_number: "หมายเลขบัตรสมาชิก",
2210
2210
  redeemed_by: "แลกรับโดย",
2211
- phone: "โทรศัพท์",
2211
+ phone: "เบอร์โทร",
2212
2212
  created_at: "สร้างเมื่อ",
2213
- bundle: "ชุดบัตร",
2213
+ bundle: "ชุดรางวัล",
2214
2214
  redeemed_at: "แลกรับเมื่อ",
2215
2215
  actions: "การดำเนินการ"
2216
2216
  }
@@ -2222,15 +2222,15 @@ const Me = {
2222
2222
  }
2223
2223
  },
2224
2224
  segment: {
2225
- title: "กลุ่ม",
2225
+ title: "กลุ่มสมาชิก",
2226
2226
  actions: {
2227
- refresh: "รีเฟรชกลุ่มบัตร",
2228
- add: "เพิ่มกลุ่มบัตร",
2227
+ refresh: "รีเฟรชกลุ่มสมาชิก",
2228
+ add: "เพิ่มกลุ่มสมาชิก",
2229
2229
  remove: "ลบ"
2230
2230
  },
2231
2231
  table: {
2232
- name: "ชื่อ",
2233
- total_customers: "จำนวนลูกค้าทั้งหมดในกลุ่มบัตรนี้",
2232
+ name: "ป้ายชื่อ",
2233
+ total_customers: "จำนวนลูกค้าทั้งหมดในกลุ่มสมาชิก",
2234
2234
  customer_percentage: "% ของลูกค้า",
2235
2235
  actions: "การดำเนินการ"
2236
2236
  },
@@ -2244,7 +2244,7 @@ const Me = {
2244
2244
  common: {
2245
2245
  create: "สร้างโปรแกรม",
2246
2246
  search: "ค้นหา",
2247
- location: "ตำแหน่ง:",
2247
+ location: "สาขา:",
2248
2248
  used: "ใช้ไปแล้ว {count} ราย",
2249
2249
  actions: {
2250
2250
  create: "สร้างโปรแกรม {type} ราย",
@@ -2260,16 +2260,16 @@ const Me = {
2260
2260
  remove: {
2261
2261
  confirm: "คุณแน่ใจว่าต้องการลบ {name} หรือไม่",
2262
2262
  removing: "กำลังลบ {name}",
2263
- removed: "ลบ {name} สำเร็จแล้ว"
2263
+ removed: "ลบ {name} สำเร็จ"
2264
2264
  },
2265
2265
  update: {
2266
2266
  creating: "กำลังสร้างโปรแกรม {type}",
2267
2267
  updating: "กำลังอัปเดตโปรแกรม {type}",
2268
- success: "โปรแกรม {type} {action} สำเร็จแล้ว"
2268
+ success: "โปรแกรม {type} {action} สำเร็จ"
2269
2269
  }
2270
2270
  },
2271
2271
  experience: {
2272
- title: "ประสบการณ์",
2272
+ title: "ค่าประสบการณ์",
2273
2273
  empty_state: {
2274
2274
  title: "สร้างโปรแกรมประสบการณ์",
2275
2275
  description: "ประสบการณ์ช่วยให้ลูกค้าได้รับระดับสมาชิกที่สูงขึ้น ยิ่งลูกค้าโต้ตอบและใช้จ่ายมากเท่าไหร่ ระดับสมาชิกของพวกเขาก็จะสูงขึ้นเท่านั้น ทำให้สามารถปลดล็อกรางวัลและสิทธิประโยชน์ต่างๆ มากขึ้น"
@@ -2282,7 +2282,7 @@ const Me = {
2282
2282
  title: "สร้างโปรแกรมเกมของคุณ",
2283
2283
  description: "ฟีเจอร์เกมเพิ่มความสนุกสนานให้กับการช้อปปิ้ง กระตุ้นให้ลูกค้ามีส่วนร่วมมากขึ้น"
2284
2284
  },
2285
- token_received: "โทเค็นที่ได้รับ: {count}"
2285
+ token_received: "เหรียญที่ได้รับ: {count}"
2286
2286
  },
2287
2287
  credit: {
2288
2288
  title: "เครดิต"
@@ -2291,15 +2291,15 @@ const Me = {
2291
2291
  title: "คะแนน",
2292
2292
  empty_state: {
2293
2293
  title: "สร้างโปรแกรมคะแนนของคุณ",
2294
- description: "คะแนนคือคะแนนเสมือนที่ลูกค้าสามารถรับและนำไปใช้ซื้อสินค้าแบบเป็นชุด (Bundle)"
2294
+ description: "คะแนนเสมือนที่ลูกค้าสามารถรับและนำไปใช้ซื้อสินค้าแบบเป็นชุด (Bundle)"
2295
2295
  },
2296
2296
  point_received: "คะแนนที่ได้รับ: {count}",
2297
2297
  used: "ใช้ไปแล้ว {count} คะแนน"
2298
2298
  },
2299
2299
  tier: {
2300
- title: "ระดับ",
2300
+ title: "ระดับสมาชิก",
2301
2301
  empty_state: {
2302
- title: "สร้างโปรแกรมระดับ",
2302
+ title: "สร้างโปรแกรมระดับสมาชิก",
2303
2303
  description: "มอบสิทธิประโยชน์และรางวัลสุดพิเศษให้กับสมาชิกของคุณด้วยการเข้าร่วมแคมเปญสมาชิก คุณสามารถเลือกสิ่งที่สมาชิกต้องการเสนอได้"
2304
2304
  },
2305
2305
  actions: {
@@ -2334,7 +2334,7 @@ const Me = {
2334
2334
  title: "ชื่อเรื่อง",
2335
2335
  empty_state: {
2336
2336
  title: "สร้างโปรแกรมชื่อเรื่อง",
2337
- description: "สร้างโปรแกรมชื่อ สร้างชื่อสมาชิกที่ไม่ซ้ำกันเพื่อปรับแต่งประสบการณ์ของสมาชิก ดึงดูดลูกค้าด้วยชื่อที่สนุกสนานเพื่อปรับปรุงการเล่นเกมโปรแกรมสะสมคะแนน"
2337
+ description: "สร้างโปรแกรมป้ายชื่อ สร้างชื่อสมาชิกที่ไม่ซ้ำกันเพื่อปรับแต่งประสบการณ์ของสมาชิก ดึงดูดลูกค้าด้วยชื่อที่สนุกสนานเพื่อปรับปรุงการเล่นเกมโปรแกรมสะสมคะแนน"
2338
2338
  },
2339
2339
  actions: {
2340
2340
  add: "เพิ่มชื่อ"
@@ -2359,13 +2359,13 @@ const Me = {
2359
2359
  },
2360
2360
  voucher_update: {
2361
2361
  title: "การยืนยัน",
2362
- message: "สิ่งนี้จะเปลี่ยนบัตรกำนัลในอนาคตทั้งหมดหรือไม่ คุณต้องการอัปเดตวันหมดอายุและส่วนลดของบัตรกำนัลที่อ้างสิทธิ์ก่อนหน้านี้หรือไม่",
2362
+ message: "สิ่งนี้จะเปลี่ยนบัตรกำนัลในอนาคตทั้งหมดหรือไม่ คุณต้องการอัปเดตวันหมดอายุและส่วนลดของบัตรกำนัลที่เคยถูกรับสิทธิ์ไปแล้วด้วยหรือไม่?",
2363
2363
  update_all: "อัพเดททั้งหมด",
2364
2364
  update_future: "อัพเดทในอนาคตเท่านั้น"
2365
2365
  }
2366
2366
  },
2367
2367
  table: {
2368
- title: "ชื่อ",
2368
+ title: "ป้ายชื่อ",
2369
2369
  program_title: "ชื่อโปรแกรม",
2370
2370
  status: "สถานะ",
2371
2371
  type: "พิมพ์",
@@ -2373,7 +2373,7 @@ const Me = {
2373
2373
  actions: "การดำเนินการ"
2374
2374
  },
2375
2375
  search: "ค้นหา",
2376
- location: "ที่ตั้ง: ",
2376
+ location: "สาขา: ",
2377
2377
  addBenefit: "เพิ่มสิทธิประโยชน์",
2378
2378
  noDescription: "ไม่มีคำอธิบาย",
2379
2379
  descriptionLimit: "{name} คำอธิบายไม่ควรเกิน 200 ตัวอักษร",
@@ -2381,14 +2381,14 @@ const Me = {
2381
2381
  internalOnly: "ภายในเท่านั้น",
2382
2382
  notShown: "{name} จะไม่แสดงให้ลูกค้าเห็น",
2383
2383
  submit: "ส่ง",
2384
- cancel: "ยกเลิก",
2384
+ cancel: "ยืนยัน",
2385
2385
  imageLabel: "รูปภาพ {name}"
2386
2386
  },
2387
2387
  mission: {
2388
- title: "ภารกิจ",
2388
+ title: "Mission",
2389
2389
  empty_state: {
2390
- title: "สร้างโปรแกรมภารกิจของคุณ",
2391
- description: "ภารกิจเป็นโปรแกรมที่ช่วยให้ลูกค้าสามารถทำงานให้เสร็จสิ้นเพื่อรับรางวัลได้"
2390
+ title: "สร้างโปรแกรมMissionของคุณ",
2391
+ description: "Missionเป็นโปรแกรมที่ช่วยให้ลูกค้าสามารถทำงานให้เสร็จสิ้นเพื่อรับรางวัลได้"
2392
2392
  }
2393
2393
  }
2394
2394
  },
@@ -2404,7 +2404,7 @@ const Me = {
2404
2404
  },
2405
2405
  emptyState: {
2406
2406
  title: "สร้างกลุ่มแคมเปญเพื่อติดตามประสิทธิภาพ",
2407
- description: "เริ่มจัดระเบียบแคมเปญและโปรโมชั่นของคุณโดยการสร้างกลุ่ม กลุ่มช่วยให้คุณสามารถรวมตัวชี้วัดประสิทธิภาพจากบัตรกำนัล โปรโมชั่น หรือรางวัลอื่น ๆ ได้หลายรายการ",
2407
+ description: "เริ่มจัดระเบียบแคมเปญและโปรโมชันของคุณโดยการสร้างกลุ่ม กลุ่มช่วยให้คุณสามารถรวมตัวชี้วัดประสิทธิภาพจากบัตรกำนัล โปรโมชัน หรือรางวัลอื่น ๆ ได้หลายรายการ",
2408
2408
  action: "สร้างกลุ่ม"
2409
2409
  }
2410
2410
  },
@@ -2413,7 +2413,7 @@ const Me = {
2413
2413
  create: "สร้างสื่อการตลาด",
2414
2414
  search: "ค้นหา",
2415
2415
  table: {
2416
- name: "ชื่อ",
2416
+ name: "ป้ายชื่อ",
2417
2417
  campaign: "แคมเปญ",
2418
2418
  createdDate: "วันที่สร้าง",
2419
2419
  actions: "การดำเนินการ"
@@ -2428,7 +2428,7 @@ const Me = {
2428
2428
  description: "เพิ่มความสามารถทางการตลาดของคุณอย่างง่ายดายด้วยเครื่องมือที่ขับเคลื่อนด้วย AI ของเรา สร้างภาพที่น่าทึ่งและคำบรรยายที่น่าดึงดูดสำหรับแพลตฟอร์มที่คุณต้องการ",
2429
2429
  action: "เพิ่มวัสดุ"
2430
2430
  },
2431
- noResults: "ไม่พบผลลัพธ์"
2431
+ noResults: "ไม่พบข้อมูล"
2432
2432
  },
2433
2433
  setting: {
2434
2434
  title: "การตั้งค่า",
@@ -2470,7 +2470,7 @@ const Me = {
2470
2470
  },
2471
2471
  summary: {
2472
2472
  title: "สรุปการตั้งค่าความภักดี",
2473
- name: "ชื่อ",
2473
+ name: "ป้ายชื่อ",
2474
2474
  advertisement: "โฆษณา",
2475
2475
  noAds: "ไม่มีโฆษณา",
2476
2476
  freeCredit: "เครดิตฟรีเป็นส่วนลด",
@@ -2561,7 +2561,7 @@ const Me = {
2561
2561
  stripePriceId: "รหัสราคาแถบข้อมูล",
2562
2562
  subscriptionValidity: "อายุการใช้งานการสมัครสมาชิก (วัน)",
2563
2563
  submit: "ส่ง",
2564
- cancel: "ยกเลิก",
2564
+ cancel: "ยืนยัน",
2565
2565
  advanceSetting: "การตั้งค่าขั้นสูง",
2566
2566
  credit: "เครดิต",
2567
2567
  normalCredit: "เครดิตปกติ",
@@ -2625,7 +2625,7 @@ const Me = {
2625
2625
  },
2626
2626
  create: "สร้างรางวัล",
2627
2627
  table: {
2628
- name: "ชื่อ",
2628
+ name: "ป้ายชื่อ",
2629
2629
  type: "พิมพ์",
2630
2630
  validity: "ความถูกต้อง",
2631
2631
  used: "ใช้แล้ว",
@@ -2752,20 +2752,20 @@ const Me = {
2752
2752
  },
2753
2753
  campaign: {
2754
2754
  rule_required: "ต้องมีกฎเกณฑ์เมื่อประเภทตัวกระตุ้นคือ '{type}'",
2755
- earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (จำนวนเงินที่ได้รับสูงสุดของภารกิจ)",
2755
+ earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (จำนวนเงินที่ได้รับสูงสุดของMission)",
2756
2756
  credit_validity_required: "แคมเปญเครดิตต้องมีตัวเลือกอายุการใช้งาน (ต้องเป็นเครดิตฟรี)",
2757
- mission_first_receive: "แคมเปญภารกิจต้องติดตามการรับก่อน",
2757
+ mission_first_receive: "แคมเปญMissionต้องติดตามการรับก่อน",
2758
2758
  schedule_period_required: "ตัวกระตุ้นกำหนดการต้องตั้งค่าช่วงเวลาที่ใช้งานอยู่",
2759
2759
  active_period_invalid: "กฎช่วงเวลาที่ใช้งานอยู่ไม่ถูกต้อง",
2760
2760
  fixed_earning_required: "แคมเปญที่ไม่สามารถเรียกเก็บเงินได้ครบต้องมีตัวเลือกการรับรายได้คงที่",
2761
- reward_threshold_range: "เกณฑ์รางวัลจะต้องอยู่ภายในจุดสิ้นสุดภารกิจ",
2761
+ reward_threshold_range: "เกณฑ์รางวัลจะต้องอยู่ภายในจุดสิ้นสุดMission",
2762
2762
  reward_threshold_unique: "เกณฑ์รางวัลจะต้องไม่ซ้ำกัน",
2763
2763
  effect_required: "จำเป็นต้องมีเอฟเฟกต์"
2764
2764
  }
2765
2765
  },
2766
2766
  prompt: {
2767
2767
  confirm: "ยืนยัน",
2768
- cancel: "ยกเลิก"
2768
+ cancel: "ยืนยัน"
2769
2769
  },
2770
2770
  editTierSheet: {
2771
2771
  add: "เพิ่ม",
@@ -2778,7 +2778,7 @@ const Me = {
2778
2778
  maxExperience: "ประสบการณ์สูงสุด",
2779
2779
  actions: "การดำเนินการ",
2780
2780
  submit: "ส่ง",
2781
- cancel: "ยกเลิก"
2781
+ cancel: "ยืนยัน"
2782
2782
  }
2783
2783
  }, qe = {
2784
2784
  connect: Ue
@@ -3787,44 +3787,44 @@ const Me = {
3787
3787
  connectZodCustom: We
3788
3788
  };
3789
3789
  var b;
3790
- (function(a) {
3791
- a.assertEqual = (n) => n;
3790
+ (function(i) {
3791
+ i.assertEqual = (n) => n;
3792
3792
  function e(n) {
3793
3793
  }
3794
- a.assertIs = e;
3794
+ i.assertIs = e;
3795
3795
  function t(n) {
3796
3796
  throw new Error();
3797
3797
  }
3798
- a.assertNever = t, a.arrayToEnum = (n) => {
3798
+ i.assertNever = t, i.arrayToEnum = (n) => {
3799
3799
  const r = {};
3800
3800
  for (const s of n)
3801
3801
  r[s] = s;
3802
3802
  return r;
3803
- }, a.getValidEnumValues = (n) => {
3804
- const r = a.objectKeys(n).filter((o) => typeof n[n[o]] != "number"), s = {};
3803
+ }, i.getValidEnumValues = (n) => {
3804
+ const r = i.objectKeys(n).filter((o) => typeof n[n[o]] != "number"), s = {};
3805
3805
  for (const o of r)
3806
3806
  s[o] = n[o];
3807
- return a.objectValues(s);
3808
- }, a.objectValues = (n) => a.objectKeys(n).map(function(r) {
3807
+ return i.objectValues(s);
3808
+ }, i.objectValues = (n) => i.objectKeys(n).map(function(r) {
3809
3809
  return n[r];
3810
- }), a.objectKeys = typeof Object.keys == "function" ? (n) => Object.keys(n) : (n) => {
3810
+ }), i.objectKeys = typeof Object.keys == "function" ? (n) => Object.keys(n) : (n) => {
3811
3811
  const r = [];
3812
3812
  for (const s in n)
3813
3813
  Object.prototype.hasOwnProperty.call(n, s) && r.push(s);
3814
3814
  return r;
3815
- }, a.find = (n, r) => {
3815
+ }, i.find = (n, r) => {
3816
3816
  for (const s of n)
3817
3817
  if (r(s))
3818
3818
  return s;
3819
- }, a.isInteger = typeof Number.isInteger == "function" ? (n) => Number.isInteger(n) : (n) => typeof n == "number" && isFinite(n) && Math.floor(n) === n;
3820
- function i(n, r = " | ") {
3819
+ }, i.isInteger = typeof Number.isInteger == "function" ? (n) => Number.isInteger(n) : (n) => typeof n == "number" && isFinite(n) && Math.floor(n) === n;
3820
+ function a(n, r = " | ") {
3821
3821
  return n.map((s) => typeof s == "string" ? `'${s}'` : s).join(r);
3822
3822
  }
3823
- a.joinValues = i, a.jsonStringifyReplacer = (n, r) => typeof r == "bigint" ? r.toString() : r;
3823
+ i.joinValues = a, i.jsonStringifyReplacer = (n, r) => typeof r == "bigint" ? r.toString() : r;
3824
3824
  })(b || (b = {}));
3825
3825
  var be;
3826
- (function(a) {
3827
- a.mergeShapes = (e, t) => ({
3826
+ (function(i) {
3827
+ i.mergeShapes = (e, t) => ({
3828
3828
  ...e,
3829
3829
  ...t
3830
3830
  // second overwrites first
@@ -3851,14 +3851,14 @@ const l = b.arrayToEnum([
3851
3851
  "never",
3852
3852
  "map",
3853
3853
  "set"
3854
- ]), j = (a) => {
3855
- switch (typeof a) {
3854
+ ]), j = (i) => {
3855
+ switch (typeof i) {
3856
3856
  case "undefined":
3857
3857
  return l.undefined;
3858
3858
  case "string":
3859
3859
  return l.string;
3860
3860
  case "number":
3861
- return isNaN(a) ? l.nan : l.number;
3861
+ return isNaN(i) ? l.nan : l.number;
3862
3862
  case "boolean":
3863
3863
  return l.boolean;
3864
3864
  case "function":
@@ -3868,7 +3868,7 @@ const l = b.arrayToEnum([
3868
3868
  case "symbol":
3869
3869
  return l.symbol;
3870
3870
  case "object":
3871
- return Array.isArray(a) ? l.array : a === null ? l.null : a.then && typeof a.then == "function" && a.catch && typeof a.catch == "function" ? l.promise : typeof Map < "u" && a instanceof Map ? l.map : typeof Set < "u" && a instanceof Set ? l.set : typeof Date < "u" && a instanceof Date ? l.date : l.object;
3871
+ return Array.isArray(i) ? l.array : i === null ? l.null : i.then && typeof i.then == "function" && i.catch && typeof i.catch == "function" ? l.promise : typeof Map < "u" && i instanceof Map ? l.map : typeof Set < "u" && i instanceof Set ? l.set : typeof Date < "u" && i instanceof Date ? l.date : l.object;
3872
3872
  default:
3873
3873
  return l.unknown;
3874
3874
  }
@@ -3889,13 +3889,13 @@ const l = b.arrayToEnum([
3889
3889
  "invalid_intersection_types",
3890
3890
  "not_multiple_of",
3891
3891
  "not_finite"
3892
- ]), Fe = (a) => JSON.stringify(a, null, 2).replace(/"([^"]+)":/g, "$1:");
3892
+ ]), Fe = (i) => JSON.stringify(i, null, 2).replace(/"([^"]+)":/g, "$1:");
3893
3893
  class E extends Error {
3894
3894
  constructor(e) {
3895
- super(), this.issues = [], this.addIssue = (i) => {
3896
- this.issues = [...this.issues, i];
3897
- }, this.addIssues = (i = []) => {
3898
- this.issues = [...this.issues, ...i];
3895
+ super(), this.issues = [], this.addIssue = (a) => {
3896
+ this.issues = [...this.issues, a];
3897
+ }, this.addIssues = (a = []) => {
3898
+ this.issues = [...this.issues, ...a];
3899
3899
  };
3900
3900
  const t = new.target.prototype;
3901
3901
  Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
@@ -3906,7 +3906,7 @@ class E extends Error {
3906
3906
  format(e) {
3907
3907
  const t = e || function(r) {
3908
3908
  return r.message;
3909
- }, i = { _errors: [] }, n = (r) => {
3909
+ }, a = { _errors: [] }, n = (r) => {
3910
3910
  for (const s of r.issues)
3911
3911
  if (s.code === "invalid_union")
3912
3912
  s.unionErrors.map(n);
@@ -3915,16 +3915,16 @@ class E extends Error {
3915
3915
  else if (s.code === "invalid_arguments")
3916
3916
  n(s.argumentsError);
3917
3917
  else if (s.path.length === 0)
3918
- i._errors.push(t(s));
3918
+ a._errors.push(t(s));
3919
3919
  else {
3920
- let o = i, m = 0;
3920
+ let o = a, m = 0;
3921
3921
  for (; m < s.path.length; ) {
3922
3922
  const d = s.path[m];
3923
3923
  m === s.path.length - 1 ? (o[d] = o[d] || { _errors: [] }, o[d]._errors.push(t(s))) : o[d] = o[d] || { _errors: [] }, o = o[d], m++;
3924
3924
  }
3925
3925
  }
3926
3926
  };
3927
- return n(this), i;
3927
+ return n(this), a;
3928
3928
  }
3929
3929
  toString() {
3930
3930
  return this.message;
@@ -3936,36 +3936,36 @@ class E extends Error {
3936
3936
  return this.issues.length === 0;
3937
3937
  }
3938
3938
  flatten(e = (t) => t.message) {
3939
- const t = {}, i = [];
3939
+ const t = {}, a = [];
3940
3940
  for (const n of this.issues)
3941
- n.path.length > 0 ? (t[n.path[0]] = t[n.path[0]] || [], t[n.path[0]].push(e(n))) : i.push(e(n));
3942
- return { formErrors: i, fieldErrors: t };
3941
+ n.path.length > 0 ? (t[n.path[0]] = t[n.path[0]] || [], t[n.path[0]].push(e(n))) : a.push(e(n));
3942
+ return { formErrors: a, fieldErrors: t };
3943
3943
  }
3944
3944
  get formErrors() {
3945
3945
  return this.flatten();
3946
3946
  }
3947
3947
  }
3948
- E.create = (a) => new E(a);
3949
- const F = (a, e) => {
3948
+ E.create = (i) => new E(i);
3949
+ const F = (i, e) => {
3950
3950
  let t;
3951
- switch (a.code) {
3951
+ switch (i.code) {
3952
3952
  case c.invalid_type:
3953
- a.received === l.undefined ? t = "Required" : t = `Expected ${a.expected}, received ${a.received}`;
3953
+ i.received === l.undefined ? t = "Required" : t = `Expected ${i.expected}, received ${i.received}`;
3954
3954
  break;
3955
3955
  case c.invalid_literal:
3956
- t = `Invalid literal value, expected ${JSON.stringify(a.expected, b.jsonStringifyReplacer)}`;
3956
+ t = `Invalid literal value, expected ${JSON.stringify(i.expected, b.jsonStringifyReplacer)}`;
3957
3957
  break;
3958
3958
  case c.unrecognized_keys:
3959
- t = `Unrecognized key(s) in object: ${b.joinValues(a.keys, ", ")}`;
3959
+ t = `Unrecognized key(s) in object: ${b.joinValues(i.keys, ", ")}`;
3960
3960
  break;
3961
3961
  case c.invalid_union:
3962
3962
  t = "Invalid input";
3963
3963
  break;
3964
3964
  case c.invalid_union_discriminator:
3965
- t = `Invalid discriminator value. Expected ${b.joinValues(a.options)}`;
3965
+ t = `Invalid discriminator value. Expected ${b.joinValues(i.options)}`;
3966
3966
  break;
3967
3967
  case c.invalid_enum_value:
3968
- t = `Invalid enum value. Expected ${b.joinValues(a.options)}, received '${a.received}'`;
3968
+ t = `Invalid enum value. Expected ${b.joinValues(i.options)}, received '${i.received}'`;
3969
3969
  break;
3970
3970
  case c.invalid_arguments:
3971
3971
  t = "Invalid function arguments";
@@ -3977,13 +3977,13 @@ const F = (a, e) => {
3977
3977
  t = "Invalid date";
3978
3978
  break;
3979
3979
  case c.invalid_string:
3980
- typeof a.validation == "object" ? "includes" in a.validation ? (t = `Invalid input: must include "${a.validation.includes}"`, typeof a.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${a.validation.position}`)) : "startsWith" in a.validation ? t = `Invalid input: must start with "${a.validation.startsWith}"` : "endsWith" in a.validation ? t = `Invalid input: must end with "${a.validation.endsWith}"` : b.assertNever(a.validation) : a.validation !== "regex" ? t = `Invalid ${a.validation}` : t = "Invalid";
3980
+ typeof i.validation == "object" ? "includes" in i.validation ? (t = `Invalid input: must include "${i.validation.includes}"`, typeof i.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${i.validation.position}`)) : "startsWith" in i.validation ? t = `Invalid input: must start with "${i.validation.startsWith}"` : "endsWith" in i.validation ? t = `Invalid input: must end with "${i.validation.endsWith}"` : b.assertNever(i.validation) : i.validation !== "regex" ? t = `Invalid ${i.validation}` : t = "Invalid";
3981
3981
  break;
3982
3982
  case c.too_small:
3983
- a.type === "array" ? t = `Array must contain ${a.exact ? "exactly" : a.inclusive ? "at least" : "more than"} ${a.minimum} element(s)` : a.type === "string" ? t = `String must contain ${a.exact ? "exactly" : a.inclusive ? "at least" : "over"} ${a.minimum} character(s)` : a.type === "number" ? t = `Number must be ${a.exact ? "exactly equal to " : a.inclusive ? "greater than or equal to " : "greater than "}${a.minimum}` : a.type === "date" ? t = `Date must be ${a.exact ? "exactly equal to " : a.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(a.minimum))}` : t = "Invalid input";
3983
+ i.type === "array" ? t = `Array must contain ${i.exact ? "exactly" : i.inclusive ? "at least" : "more than"} ${i.minimum} element(s)` : i.type === "string" ? t = `String must contain ${i.exact ? "exactly" : i.inclusive ? "at least" : "over"} ${i.minimum} character(s)` : i.type === "number" ? t = `Number must be ${i.exact ? "exactly equal to " : i.inclusive ? "greater than or equal to " : "greater than "}${i.minimum}` : i.type === "date" ? t = `Date must be ${i.exact ? "exactly equal to " : i.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(i.minimum))}` : t = "Invalid input";
3984
3984
  break;
3985
3985
  case c.too_big:
3986
- a.type === "array" ? t = `Array must contain ${a.exact ? "exactly" : a.inclusive ? "at most" : "less than"} ${a.maximum} element(s)` : a.type === "string" ? t = `String must contain ${a.exact ? "exactly" : a.inclusive ? "at most" : "under"} ${a.maximum} character(s)` : a.type === "number" ? t = `Number must be ${a.exact ? "exactly" : a.inclusive ? "less than or equal to" : "less than"} ${a.maximum}` : a.type === "bigint" ? t = `BigInt must be ${a.exact ? "exactly" : a.inclusive ? "less than or equal to" : "less than"} ${a.maximum}` : a.type === "date" ? t = `Date must be ${a.exact ? "exactly" : a.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(a.maximum))}` : t = "Invalid input";
3986
+ i.type === "array" ? t = `Array must contain ${i.exact ? "exactly" : i.inclusive ? "at most" : "less than"} ${i.maximum} element(s)` : i.type === "string" ? t = `String must contain ${i.exact ? "exactly" : i.inclusive ? "at most" : "under"} ${i.maximum} character(s)` : i.type === "number" ? t = `Number must be ${i.exact ? "exactly" : i.inclusive ? "less than or equal to" : "less than"} ${i.maximum}` : i.type === "bigint" ? t = `BigInt must be ${i.exact ? "exactly" : i.inclusive ? "less than or equal to" : "less than"} ${i.maximum}` : i.type === "date" ? t = `Date must be ${i.exact ? "exactly" : i.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(i.maximum))}` : t = "Invalid input";
3987
3987
  break;
3988
3988
  case c.custom:
3989
3989
  t = "Invalid input";
@@ -3992,30 +3992,30 @@ const F = (a, e) => {
3992
3992
  t = "Intersection results could not be merged";
3993
3993
  break;
3994
3994
  case c.not_multiple_of:
3995
- t = `Number must be a multiple of ${a.multipleOf}`;
3995
+ t = `Number must be a multiple of ${i.multipleOf}`;
3996
3996
  break;
3997
3997
  case c.not_finite:
3998
3998
  t = "Number must be finite";
3999
3999
  break;
4000
4000
  default:
4001
- t = e.defaultError, b.assertNever(a);
4001
+ t = e.defaultError, b.assertNever(i);
4002
4002
  }
4003
4003
  return { message: t };
4004
4004
  };
4005
4005
  let ke = F;
4006
- function He(a) {
4007
- ke = a;
4006
+ function He(i) {
4007
+ ke = i;
4008
4008
  }
4009
4009
  function ce() {
4010
4010
  return ke;
4011
4011
  }
4012
- const de = (a) => {
4013
- const { data: e, path: t, errorMaps: i, issueData: n } = a, r = [...t, ...n.path || []], s = {
4012
+ const de = (i) => {
4013
+ const { data: e, path: t, errorMaps: a, issueData: n } = i, r = [...t, ...n.path || []], s = {
4014
4014
  ...n,
4015
4015
  path: r
4016
4016
  };
4017
4017
  let o = "";
4018
- const m = i.filter((d) => !!d).slice().reverse();
4018
+ const m = a.filter((d) => !!d).slice().reverse();
4019
4019
  for (const d of m)
4020
4020
  o = d(s, { data: e, defaultError: o }).message;
4021
4021
  return {
@@ -4024,20 +4024,20 @@ const de = (a) => {
4024
4024
  message: n.message || o
4025
4025
  };
4026
4026
  }, Je = [];
4027
- function u(a, e) {
4027
+ function u(i, e) {
4028
4028
  const t = de({
4029
4029
  issueData: e,
4030
- data: a.data,
4031
- path: a.path,
4030
+ data: i.data,
4031
+ path: i.path,
4032
4032
  errorMaps: [
4033
- a.common.contextualErrorMap,
4034
- a.schemaErrorMap,
4033
+ i.common.contextualErrorMap,
4034
+ i.schemaErrorMap,
4035
4035
  ce(),
4036
4036
  F
4037
4037
  // then global default map
4038
- ].filter((i) => !!i)
4038
+ ].filter((a) => !!a)
4039
4039
  });
4040
- a.common.issues.push(t);
4040
+ i.common.issues.push(t);
4041
4041
  }
4042
4042
  class T {
4043
4043
  constructor() {
@@ -4050,71 +4050,71 @@ class T {
4050
4050
  this.value !== "aborted" && (this.value = "aborted");
4051
4051
  }
4052
4052
  static mergeArray(e, t) {
4053
- const i = [];
4053
+ const a = [];
4054
4054
  for (const n of t) {
4055
4055
  if (n.status === "aborted")
4056
4056
  return h;
4057
- n.status === "dirty" && e.dirty(), i.push(n.value);
4057
+ n.status === "dirty" && e.dirty(), a.push(n.value);
4058
4058
  }
4059
- return { status: e.value, value: i };
4059
+ return { status: e.value, value: a };
4060
4060
  }
4061
4061
  static async mergeObjectAsync(e, t) {
4062
- const i = [];
4062
+ const a = [];
4063
4063
  for (const n of t)
4064
- i.push({
4064
+ a.push({
4065
4065
  key: await n.key,
4066
4066
  value: await n.value
4067
4067
  });
4068
- return T.mergeObjectSync(e, i);
4068
+ return T.mergeObjectSync(e, a);
4069
4069
  }
4070
4070
  static mergeObjectSync(e, t) {
4071
- const i = {};
4071
+ const a = {};
4072
4072
  for (const n of t) {
4073
4073
  const { key: r, value: s } = n;
4074
4074
  if (r.status === "aborted" || s.status === "aborted")
4075
4075
  return h;
4076
- r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || n.alwaysSet) && (i[r.value] = s.value);
4076
+ r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || n.alwaysSet) && (a[r.value] = s.value);
4077
4077
  }
4078
- return { status: e.value, value: i };
4078
+ return { status: e.value, value: a };
4079
4079
  }
4080
4080
  }
4081
4081
  const h = Object.freeze({
4082
4082
  status: "aborted"
4083
- }), Se = (a) => ({ status: "dirty", value: a }), C = (a) => ({ status: "valid", value: a }), xe = (a) => a.status === "aborted", we = (a) => a.status === "dirty", H = (a) => a.status === "valid", le = (a) => typeof Promise < "u" && a instanceof Promise;
4083
+ }), Se = (i) => ({ status: "dirty", value: i }), C = (i) => ({ status: "valid", value: i }), xe = (i) => i.status === "aborted", we = (i) => i.status === "dirty", H = (i) => i.status === "valid", le = (i) => typeof Promise < "u" && i instanceof Promise;
4084
4084
  var p;
4085
- (function(a) {
4086
- a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
4085
+ (function(i) {
4086
+ i.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, i.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
4087
4087
  })(p || (p = {}));
4088
- class N {
4089
- constructor(e, t, i, n) {
4090
- this._cachedPath = [], this.parent = e, this.data = t, this._path = i, this._key = n;
4088
+ class I {
4089
+ constructor(e, t, a, n) {
4090
+ this._cachedPath = [], this.parent = e, this.data = t, this._path = a, this._key = n;
4091
4091
  }
4092
4092
  get path() {
4093
4093
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
4094
4094
  }
4095
4095
  }
4096
- const Ce = (a, e) => {
4096
+ const Ce = (i, e) => {
4097
4097
  if (H(e))
4098
4098
  return { success: !0, data: e.value };
4099
- if (!a.common.issues.length)
4099
+ if (!i.common.issues.length)
4100
4100
  throw new Error("Validation failed but no issues detected.");
4101
4101
  return {
4102
4102
  success: !1,
4103
4103
  get error() {
4104
4104
  if (this._error)
4105
4105
  return this._error;
4106
- const t = new E(a.common.issues);
4106
+ const t = new E(i.common.issues);
4107
4107
  return this._error = t, this._error;
4108
4108
  }
4109
4109
  };
4110
4110
  };
4111
- function g(a) {
4112
- if (!a)
4111
+ function g(i) {
4112
+ if (!i)
4113
4113
  return {};
4114
- const { errorMap: e, invalid_type_error: t, required_error: i, description: n } = a;
4115
- if (e && (t || i))
4114
+ const { errorMap: e, invalid_type_error: t, required_error: a, description: n } = i;
4115
+ if (e && (t || a))
4116
4116
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
4117
- return e ? { errorMap: e, description: n } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: i ?? o.defaultError } : { message: t ?? o.defaultError }, description: n };
4117
+ return e ? { errorMap: e, description: n } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: a ?? o.defaultError } : { message: t ?? o.defaultError }, description: n };
4118
4118
  }
4119
4119
  class v {
4120
4120
  constructor(e) {
@@ -4160,17 +4160,17 @@ class v {
4160
4160
  return Promise.resolve(t);
4161
4161
  }
4162
4162
  parse(e, t) {
4163
- const i = this.safeParse(e, t);
4164
- if (i.success)
4165
- return i.data;
4166
- throw i.error;
4163
+ const a = this.safeParse(e, t);
4164
+ if (a.success)
4165
+ return a.data;
4166
+ throw a.error;
4167
4167
  }
4168
4168
  safeParse(e, t) {
4169
- var i;
4169
+ var a;
4170
4170
  const n = {
4171
4171
  common: {
4172
4172
  issues: [],
4173
- async: (i = t == null ? void 0 : t.async) !== null && i !== void 0 ? i : !1,
4173
+ async: (a = t == null ? void 0 : t.async) !== null && a !== void 0 ? a : !1,
4174
4174
  contextualErrorMap: t == null ? void 0 : t.errorMap
4175
4175
  },
4176
4176
  path: (t == null ? void 0 : t.path) || [],
@@ -4182,13 +4182,13 @@ class v {
4182
4182
  return Ce(n, r);
4183
4183
  }
4184
4184
  async parseAsync(e, t) {
4185
- const i = await this.safeParseAsync(e, t);
4186
- if (i.success)
4187
- return i.data;
4188
- throw i.error;
4185
+ const a = await this.safeParseAsync(e, t);
4186
+ if (a.success)
4187
+ return a.data;
4188
+ throw a.error;
4189
4189
  }
4190
4190
  async safeParseAsync(e, t) {
4191
- const i = {
4191
+ const a = {
4192
4192
  common: {
4193
4193
  issues: [],
4194
4194
  contextualErrorMap: t == null ? void 0 : t.errorMap,
@@ -4199,24 +4199,24 @@ class v {
4199
4199
  parent: null,
4200
4200
  data: e,
4201
4201
  parsedType: j(e)
4202
- }, n = this._parse({ data: e, path: i.path, parent: i }), r = await (le(n) ? n : Promise.resolve(n));
4203
- return Ce(i, r);
4202
+ }, n = this._parse({ data: e, path: a.path, parent: a }), r = await (le(n) ? n : Promise.resolve(n));
4203
+ return Ce(a, r);
4204
4204
  }
4205
4205
  refine(e, t) {
4206
- const i = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
4206
+ const a = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
4207
4207
  return this._refinement((n, r) => {
4208
4208
  const s = e(n), o = () => r.addIssue({
4209
4209
  code: c.custom,
4210
- ...i(n)
4210
+ ...a(n)
4211
4211
  });
4212
4212
  return typeof Promise < "u" && s instanceof Promise ? s.then((m) => m ? !0 : (o(), !1)) : s ? !0 : (o(), !1);
4213
4213
  });
4214
4214
  }
4215
4215
  refinement(e, t) {
4216
- return this._refinement((i, n) => e(i) ? !0 : (n.addIssue(typeof t == "function" ? t(i, n) : t), !1));
4216
+ return this._refinement((a, n) => e(a) ? !0 : (n.addIssue(typeof t == "function" ? t(a, n) : t), !1));
4217
4217
  }
4218
4218
  _refinement(e) {
4219
- return new I({
4219
+ return new M({
4220
4220
  schema: this,
4221
4221
  typeName: f.ZodEffects,
4222
4222
  effect: { type: "refinement", refinement: e }
@@ -4226,7 +4226,7 @@ class v {
4226
4226
  return this._refinement(e);
4227
4227
  }
4228
4228
  optional() {
4229
- return M.create(this, this._def);
4229
+ return P.create(this, this._def);
4230
4230
  }
4231
4231
  nullable() {
4232
4232
  return q.create(this, this._def);
@@ -4247,7 +4247,7 @@ class v {
4247
4247
  return ee.create(this, e, this._def);
4248
4248
  }
4249
4249
  transform(e) {
4250
- return new I({
4250
+ return new M({
4251
4251
  ...g(this._def),
4252
4252
  schema: this,
4253
4253
  typeName: f.ZodEffects,
@@ -4299,11 +4299,11 @@ class v {
4299
4299
  return this.safeParse(null).success;
4300
4300
  }
4301
4301
  }
4302
- const Xe = /^c[^\s-]{8,}$/i, Ke = /^[a-z][a-z0-9]*$/, Qe = /^[0-9A-HJKMNP-TV-Z]{26}$/, et = /^[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, tt = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, at = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
4302
+ const Xe = /^c[^\s-]{8,}$/i, Ke = /^[a-z][a-z0-9]*$/, Qe = /^[0-9A-HJKMNP-TV-Z]{26}$/, et = /^[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, tt = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, it = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
4303
4303
  let ye;
4304
- const it = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, nt = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, rt = (a) => a.precision ? a.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}Z$`) : a.precision === 0 ? a.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : a.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
4305
- function st(a, e) {
4306
- return !!((e === "v4" || !e) && it.test(a) || (e === "v6" || !e) && nt.test(a));
4304
+ const at = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, nt = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, rt = (i) => i.precision ? i.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}Z$`) : i.precision === 0 ? i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
4305
+ function st(i, e) {
4306
+ return !!((e === "v4" || !e) && at.test(i) || (e === "v6" || !e) && nt.test(i));
4307
4307
  }
4308
4308
  class A extends v {
4309
4309
  _parse(e) {
@@ -4319,7 +4319,7 @@ class A extends v {
4319
4319
  //
4320
4320
  ), h;
4321
4321
  }
4322
- const i = new T();
4322
+ const a = new T();
4323
4323
  let n;
4324
4324
  for (const r of this._def.checks)
4325
4325
  if (r.kind === "min")
@@ -4330,7 +4330,7 @@ class A extends v {
4330
4330
  inclusive: !0,
4331
4331
  exact: !1,
4332
4332
  message: r.message
4333
- }), i.dirty());
4333
+ }), a.dirty());
4334
4334
  else if (r.kind === "max")
4335
4335
  e.data.length > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
4336
4336
  code: c.too_big,
@@ -4339,7 +4339,7 @@ class A extends v {
4339
4339
  inclusive: !0,
4340
4340
  exact: !1,
4341
4341
  message: r.message
4342
- }), i.dirty());
4342
+ }), a.dirty());
4343
4343
  else if (r.kind === "length") {
4344
4344
  const s = e.data.length > r.value, o = e.data.length < r.value;
4345
4345
  (s || o) && (n = this._getOrReturnCtx(e, n), s ? u(n, {
@@ -4356,43 +4356,43 @@ class A extends v {
4356
4356
  inclusive: !0,
4357
4357
  exact: !0,
4358
4358
  message: r.message
4359
- }), i.dirty());
4359
+ }), a.dirty());
4360
4360
  } else if (r.kind === "email")
4361
4361
  tt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4362
4362
  validation: "email",
4363
4363
  code: c.invalid_string,
4364
4364
  message: r.message
4365
- }), i.dirty());
4365
+ }), a.dirty());
4366
4366
  else if (r.kind === "emoji")
4367
- ye || (ye = new RegExp(at, "u")), ye.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4367
+ ye || (ye = new RegExp(it, "u")), ye.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4368
4368
  validation: "emoji",
4369
4369
  code: c.invalid_string,
4370
4370
  message: r.message
4371
- }), i.dirty());
4371
+ }), a.dirty());
4372
4372
  else if (r.kind === "uuid")
4373
4373
  et.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4374
4374
  validation: "uuid",
4375
4375
  code: c.invalid_string,
4376
4376
  message: r.message
4377
- }), i.dirty());
4377
+ }), a.dirty());
4378
4378
  else if (r.kind === "cuid")
4379
4379
  Xe.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4380
4380
  validation: "cuid",
4381
4381
  code: c.invalid_string,
4382
4382
  message: r.message
4383
- }), i.dirty());
4383
+ }), a.dirty());
4384
4384
  else if (r.kind === "cuid2")
4385
4385
  Ke.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4386
4386
  validation: "cuid2",
4387
4387
  code: c.invalid_string,
4388
4388
  message: r.message
4389
- }), i.dirty());
4389
+ }), a.dirty());
4390
4390
  else if (r.kind === "ulid")
4391
4391
  Qe.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4392
4392
  validation: "ulid",
4393
4393
  code: c.invalid_string,
4394
4394
  message: r.message
4395
- }), i.dirty());
4395
+ }), a.dirty());
4396
4396
  else if (r.kind === "url")
4397
4397
  try {
4398
4398
  new URL(e.data);
@@ -4401,40 +4401,40 @@ class A extends v {
4401
4401
  validation: "url",
4402
4402
  code: c.invalid_string,
4403
4403
  message: r.message
4404
- }), i.dirty();
4404
+ }), a.dirty();
4405
4405
  }
4406
4406
  else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4407
4407
  validation: "regex",
4408
4408
  code: c.invalid_string,
4409
4409
  message: r.message
4410
- }), i.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (n = this._getOrReturnCtx(e, n), u(n, {
4410
+ }), a.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (n = this._getOrReturnCtx(e, n), u(n, {
4411
4411
  code: c.invalid_string,
4412
4412
  validation: { includes: r.value, position: r.position },
4413
4413
  message: r.message
4414
- }), i.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), u(n, {
4414
+ }), a.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), u(n, {
4415
4415
  code: c.invalid_string,
4416
4416
  validation: { startsWith: r.value },
4417
4417
  message: r.message
4418
- }), i.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
4418
+ }), a.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
4419
4419
  code: c.invalid_string,
4420
4420
  validation: { endsWith: r.value },
4421
4421
  message: r.message
4422
- }), i.dirty()) : r.kind === "datetime" ? rt(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4422
+ }), a.dirty()) : r.kind === "datetime" ? rt(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
4423
4423
  code: c.invalid_string,
4424
4424
  validation: "datetime",
4425
4425
  message: r.message
4426
- }), i.dirty()) : r.kind === "ip" ? st(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
4426
+ }), a.dirty()) : r.kind === "ip" ? st(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
4427
4427
  validation: "ip",
4428
4428
  code: c.invalid_string,
4429
4429
  message: r.message
4430
- }), i.dirty()) : b.assertNever(r);
4431
- return { status: i.value, value: e.data };
4430
+ }), a.dirty()) : b.assertNever(r);
4431
+ return { status: a.value, value: e.data };
4432
4432
  }
4433
- _regex(e, t, i) {
4433
+ _regex(e, t, a) {
4434
4434
  return this.refinement((n) => e.test(n), {
4435
4435
  validation: t,
4436
4436
  code: c.invalid_string,
4437
- ...p.errToObj(i)
4437
+ ...p.errToObj(a)
4438
4438
  });
4439
4439
  }
4440
4440
  _addCheck(e) {
@@ -4596,17 +4596,17 @@ class A extends v {
4596
4596
  return e;
4597
4597
  }
4598
4598
  }
4599
- A.create = (a) => {
4599
+ A.create = (i) => {
4600
4600
  var e;
4601
4601
  return new A({
4602
4602
  checks: [],
4603
4603
  typeName: f.ZodString,
4604
- coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
4605
- ...g(a)
4604
+ coerce: (e = i == null ? void 0 : i.coerce) !== null && e !== void 0 ? e : !1,
4605
+ ...g(i)
4606
4606
  });
4607
4607
  };
4608
- function ot(a, e) {
4609
- const t = (a.toString().split(".")[1] || "").length, i = (e.toString().split(".")[1] || "").length, n = t > i ? t : i, r = parseInt(a.toFixed(n).replace(".", "")), s = parseInt(e.toFixed(n).replace(".", ""));
4608
+ function ot(i, e) {
4609
+ const t = (i.toString().split(".")[1] || "").length, a = (e.toString().split(".")[1] || "").length, n = t > a ? t : a, r = parseInt(i.toFixed(n).replace(".", "")), s = parseInt(e.toFixed(n).replace(".", ""));
4610
4610
  return r % s / Math.pow(10, n);
4611
4611
  }
4612
4612
  class D extends v {
@@ -4622,33 +4622,33 @@ class D extends v {
4622
4622
  received: r.parsedType
4623
4623
  }), h;
4624
4624
  }
4625
- let i;
4625
+ let a;
4626
4626
  const n = new T();
4627
4627
  for (const r of this._def.checks)
4628
- r.kind === "int" ? b.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
4628
+ r.kind === "int" ? b.isInteger(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
4629
4629
  code: c.invalid_type,
4630
4630
  expected: "integer",
4631
4631
  received: "float",
4632
4632
  message: r.message
4633
- }), n.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
4633
+ }), n.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
4634
4634
  code: c.too_small,
4635
4635
  minimum: r.value,
4636
4636
  type: "number",
4637
4637
  inclusive: r.inclusive,
4638
4638
  exact: !1,
4639
4639
  message: r.message
4640
- }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
4640
+ }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
4641
4641
  code: c.too_big,
4642
4642
  maximum: r.value,
4643
4643
  type: "number",
4644
4644
  inclusive: r.inclusive,
4645
4645
  exact: !1,
4646
4646
  message: r.message
4647
- }), n.dirty()) : r.kind === "multipleOf" ? ot(e.data, r.value) !== 0 && (i = this._getOrReturnCtx(e, i), u(i, {
4647
+ }), n.dirty()) : r.kind === "multipleOf" ? ot(e.data, r.value) !== 0 && (a = this._getOrReturnCtx(e, a), u(a, {
4648
4648
  code: c.not_multiple_of,
4649
4649
  multipleOf: r.value,
4650
4650
  message: r.message
4651
- }), n.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
4651
+ }), n.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
4652
4652
  code: c.not_finite,
4653
4653
  message: r.message
4654
4654
  }), n.dirty()) : b.assertNever(r);
@@ -4666,7 +4666,7 @@ class D extends v {
4666
4666
  lt(e, t) {
4667
4667
  return this.setLimit("max", e, !1, p.toString(t));
4668
4668
  }
4669
- setLimit(e, t, i, n) {
4669
+ setLimit(e, t, a, n) {
4670
4670
  return new D({
4671
4671
  ...this._def,
4672
4672
  checks: [
@@ -4674,7 +4674,7 @@ class D extends v {
4674
4674
  {
4675
4675
  kind: e,
4676
4676
  value: t,
4677
- inclusive: i,
4677
+ inclusive: a,
4678
4678
  message: p.toString(n)
4679
4679
  }
4680
4680
  ]
@@ -4767,19 +4767,19 @@ class D extends v {
4767
4767
  }
4768
4768
  get isFinite() {
4769
4769
  let e = null, t = null;
4770
- for (const i of this._def.checks) {
4771
- if (i.kind === "finite" || i.kind === "int" || i.kind === "multipleOf")
4770
+ for (const a of this._def.checks) {
4771
+ if (a.kind === "finite" || a.kind === "int" || a.kind === "multipleOf")
4772
4772
  return !0;
4773
- i.kind === "min" ? (t === null || i.value > t) && (t = i.value) : i.kind === "max" && (e === null || i.value < e) && (e = i.value);
4773
+ a.kind === "min" ? (t === null || a.value > t) && (t = a.value) : a.kind === "max" && (e === null || a.value < e) && (e = a.value);
4774
4774
  }
4775
4775
  return Number.isFinite(t) && Number.isFinite(e);
4776
4776
  }
4777
4777
  }
4778
- D.create = (a) => new D({
4778
+ D.create = (i) => new D({
4779
4779
  checks: [],
4780
4780
  typeName: f.ZodNumber,
4781
- coerce: (a == null ? void 0 : a.coerce) || !1,
4782
- ...g(a)
4781
+ coerce: (i == null ? void 0 : i.coerce) || !1,
4782
+ ...g(i)
4783
4783
  });
4784
4784
  class Z extends v {
4785
4785
  constructor() {
@@ -4794,22 +4794,22 @@ class Z extends v {
4794
4794
  received: r.parsedType
4795
4795
  }), h;
4796
4796
  }
4797
- let i;
4797
+ let a;
4798
4798
  const n = new T();
4799
4799
  for (const r of this._def.checks)
4800
- r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
4800
+ r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
4801
4801
  code: c.too_small,
4802
4802
  type: "bigint",
4803
4803
  minimum: r.value,
4804
4804
  inclusive: r.inclusive,
4805
4805
  message: r.message
4806
- }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
4806
+ }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
4807
4807
  code: c.too_big,
4808
4808
  type: "bigint",
4809
4809
  maximum: r.value,
4810
4810
  inclusive: r.inclusive,
4811
4811
  message: r.message
4812
- }), n.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), u(i, {
4812
+ }), n.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (a = this._getOrReturnCtx(e, a), u(a, {
4813
4813
  code: c.not_multiple_of,
4814
4814
  multipleOf: r.value,
4815
4815
  message: r.message
@@ -4828,7 +4828,7 @@ class Z extends v {
4828
4828
  lt(e, t) {
4829
4829
  return this.setLimit("max", e, !1, p.toString(t));
4830
4830
  }
4831
- setLimit(e, t, i, n) {
4831
+ setLimit(e, t, a, n) {
4832
4832
  return new Z({
4833
4833
  ...this._def,
4834
4834
  checks: [
@@ -4836,7 +4836,7 @@ class Z extends v {
4836
4836
  {
4837
4837
  kind: e,
4838
4838
  value: t,
4839
- inclusive: i,
4839
+ inclusive: a,
4840
4840
  message: p.toString(n)
4841
4841
  }
4842
4842
  ]
@@ -4900,32 +4900,32 @@ class Z extends v {
4900
4900
  return e;
4901
4901
  }
4902
4902
  }
4903
- Z.create = (a) => {
4903
+ Z.create = (i) => {
4904
4904
  var e;
4905
4905
  return new Z({
4906
4906
  checks: [],
4907
4907
  typeName: f.ZodBigInt,
4908
- coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
4909
- ...g(a)
4908
+ coerce: (e = i == null ? void 0 : i.coerce) !== null && e !== void 0 ? e : !1,
4909
+ ...g(i)
4910
4910
  });
4911
4911
  };
4912
4912
  class J extends v {
4913
4913
  _parse(e) {
4914
4914
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== l.boolean) {
4915
- const i = this._getOrReturnCtx(e);
4916
- return u(i, {
4915
+ const a = this._getOrReturnCtx(e);
4916
+ return u(a, {
4917
4917
  code: c.invalid_type,
4918
4918
  expected: l.boolean,
4919
- received: i.parsedType
4919
+ received: a.parsedType
4920
4920
  }), h;
4921
4921
  }
4922
4922
  return C(e.data);
4923
4923
  }
4924
4924
  }
4925
- J.create = (a) => new J({
4925
+ J.create = (i) => new J({
4926
4926
  typeName: f.ZodBoolean,
4927
- coerce: (a == null ? void 0 : a.coerce) || !1,
4928
- ...g(a)
4927
+ coerce: (i == null ? void 0 : i.coerce) || !1,
4928
+ ...g(i)
4929
4929
  });
4930
4930
  class $ extends v {
4931
4931
  _parse(e) {
@@ -4943,7 +4943,7 @@ class $ extends v {
4943
4943
  code: c.invalid_date
4944
4944
  }), h;
4945
4945
  }
4946
- const i = new T();
4946
+ const a = new T();
4947
4947
  let n;
4948
4948
  for (const r of this._def.checks)
4949
4949
  r.kind === "min" ? e.data.getTime() < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
@@ -4953,16 +4953,16 @@ class $ extends v {
4953
4953
  exact: !1,
4954
4954
  minimum: r.value,
4955
4955
  type: "date"
4956
- }), i.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
4956
+ }), a.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
4957
4957
  code: c.too_big,
4958
4958
  message: r.message,
4959
4959
  inclusive: !0,
4960
4960
  exact: !1,
4961
4961
  maximum: r.value,
4962
4962
  type: "date"
4963
- }), i.dirty()) : b.assertNever(r);
4963
+ }), a.dirty()) : b.assertNever(r);
4964
4964
  return {
4965
- status: i.value,
4965
+ status: a.value,
4966
4966
  value: new Date(e.data.getTime())
4967
4967
  };
4968
4968
  }
@@ -4999,62 +4999,62 @@ class $ extends v {
4999
4999
  return e != null ? new Date(e) : null;
5000
5000
  }
5001
5001
  }
5002
- $.create = (a) => new $({
5002
+ $.create = (i) => new $({
5003
5003
  checks: [],
5004
- coerce: (a == null ? void 0 : a.coerce) || !1,
5004
+ coerce: (i == null ? void 0 : i.coerce) || !1,
5005
5005
  typeName: f.ZodDate,
5006
- ...g(a)
5006
+ ...g(i)
5007
5007
  });
5008
5008
  class ue extends v {
5009
5009
  _parse(e) {
5010
5010
  if (this._getType(e) !== l.symbol) {
5011
- const i = this._getOrReturnCtx(e);
5012
- return u(i, {
5011
+ const a = this._getOrReturnCtx(e);
5012
+ return u(a, {
5013
5013
  code: c.invalid_type,
5014
5014
  expected: l.symbol,
5015
- received: i.parsedType
5015
+ received: a.parsedType
5016
5016
  }), h;
5017
5017
  }
5018
5018
  return C(e.data);
5019
5019
  }
5020
5020
  }
5021
- ue.create = (a) => new ue({
5021
+ ue.create = (i) => new ue({
5022
5022
  typeName: f.ZodSymbol,
5023
- ...g(a)
5023
+ ...g(i)
5024
5024
  });
5025
5025
  class X extends v {
5026
5026
  _parse(e) {
5027
5027
  if (this._getType(e) !== l.undefined) {
5028
- const i = this._getOrReturnCtx(e);
5029
- return u(i, {
5028
+ const a = this._getOrReturnCtx(e);
5029
+ return u(a, {
5030
5030
  code: c.invalid_type,
5031
5031
  expected: l.undefined,
5032
- received: i.parsedType
5032
+ received: a.parsedType
5033
5033
  }), h;
5034
5034
  }
5035
5035
  return C(e.data);
5036
5036
  }
5037
5037
  }
5038
- X.create = (a) => new X({
5038
+ X.create = (i) => new X({
5039
5039
  typeName: f.ZodUndefined,
5040
- ...g(a)
5040
+ ...g(i)
5041
5041
  });
5042
5042
  class K extends v {
5043
5043
  _parse(e) {
5044
5044
  if (this._getType(e) !== l.null) {
5045
- const i = this._getOrReturnCtx(e);
5046
- return u(i, {
5045
+ const a = this._getOrReturnCtx(e);
5046
+ return u(a, {
5047
5047
  code: c.invalid_type,
5048
5048
  expected: l.null,
5049
- received: i.parsedType
5049
+ received: a.parsedType
5050
5050
  }), h;
5051
5051
  }
5052
5052
  return C(e.data);
5053
5053
  }
5054
5054
  }
5055
- K.create = (a) => new K({
5055
+ K.create = (i) => new K({
5056
5056
  typeName: f.ZodNull,
5057
- ...g(a)
5057
+ ...g(i)
5058
5058
  });
5059
5059
  class W extends v {
5060
5060
  constructor() {
@@ -5064,9 +5064,9 @@ class W extends v {
5064
5064
  return C(e.data);
5065
5065
  }
5066
5066
  }
5067
- W.create = (a) => new W({
5067
+ W.create = (i) => new W({
5068
5068
  typeName: f.ZodAny,
5069
- ...g(a)
5069
+ ...g(i)
5070
5070
  });
5071
5071
  class B extends v {
5072
5072
  constructor() {
@@ -5076,9 +5076,9 @@ class B extends v {
5076
5076
  return C(e.data);
5077
5077
  }
5078
5078
  }
5079
- B.create = (a) => new B({
5079
+ B.create = (i) => new B({
5080
5080
  typeName: f.ZodUnknown,
5081
- ...g(a)
5081
+ ...g(i)
5082
5082
  });
5083
5083
  class L extends v {
5084
5084
  _parse(e) {
@@ -5090,30 +5090,30 @@ class L extends v {
5090
5090
  }), h;
5091
5091
  }
5092
5092
  }
5093
- L.create = (a) => new L({
5093
+ L.create = (i) => new L({
5094
5094
  typeName: f.ZodNever,
5095
- ...g(a)
5095
+ ...g(i)
5096
5096
  });
5097
5097
  class me extends v {
5098
5098
  _parse(e) {
5099
5099
  if (this._getType(e) !== l.undefined) {
5100
- const i = this._getOrReturnCtx(e);
5101
- return u(i, {
5100
+ const a = this._getOrReturnCtx(e);
5101
+ return u(a, {
5102
5102
  code: c.invalid_type,
5103
5103
  expected: l.void,
5104
- received: i.parsedType
5104
+ received: a.parsedType
5105
5105
  }), h;
5106
5106
  }
5107
5107
  return C(e.data);
5108
5108
  }
5109
5109
  }
5110
- me.create = (a) => new me({
5110
+ me.create = (i) => new me({
5111
5111
  typeName: f.ZodVoid,
5112
- ...g(a)
5112
+ ...g(i)
5113
5113
  });
5114
5114
  class O extends v {
5115
5115
  _parse(e) {
5116
- const { ctx: t, status: i } = this._processInputParams(e), n = this._def;
5116
+ const { ctx: t, status: a } = this._processInputParams(e), n = this._def;
5117
5117
  if (t.parsedType !== l.array)
5118
5118
  return u(t, {
5119
5119
  code: c.invalid_type,
@@ -5130,7 +5130,7 @@ class O extends v {
5130
5130
  inclusive: !0,
5131
5131
  exact: !0,
5132
5132
  message: n.exactLength.message
5133
- }), i.dirty());
5133
+ }), a.dirty());
5134
5134
  }
5135
5135
  if (n.minLength !== null && t.data.length < n.minLength.value && (u(t, {
5136
5136
  code: c.too_small,
@@ -5139,17 +5139,17 @@ class O extends v {
5139
5139
  inclusive: !0,
5140
5140
  exact: !1,
5141
5141
  message: n.minLength.message
5142
- }), i.dirty()), n.maxLength !== null && t.data.length > n.maxLength.value && (u(t, {
5142
+ }), a.dirty()), n.maxLength !== null && t.data.length > n.maxLength.value && (u(t, {
5143
5143
  code: c.too_big,
5144
5144
  maximum: n.maxLength.value,
5145
5145
  type: "array",
5146
5146
  inclusive: !0,
5147
5147
  exact: !1,
5148
5148
  message: n.maxLength.message
5149
- }), i.dirty()), t.common.async)
5150
- return Promise.all([...t.data].map((s, o) => n.type._parseAsync(new N(t, s, t.path, o)))).then((s) => T.mergeArray(i, s));
5151
- const r = [...t.data].map((s, o) => n.type._parseSync(new N(t, s, t.path, o)));
5152
- return T.mergeArray(i, r);
5149
+ }), a.dirty()), t.common.async)
5150
+ return Promise.all([...t.data].map((s, o) => n.type._parseAsync(new I(t, s, t.path, o)))).then((s) => T.mergeArray(a, s));
5151
+ const r = [...t.data].map((s, o) => n.type._parseSync(new I(t, s, t.path, o)));
5152
+ return T.mergeArray(a, r);
5153
5153
  }
5154
5154
  get element() {
5155
5155
  return this._def.type;
@@ -5176,29 +5176,29 @@ class O extends v {
5176
5176
  return this.min(1, e);
5177
5177
  }
5178
5178
  }
5179
- O.create = (a, e) => new O({
5180
- type: a,
5179
+ O.create = (i, e) => new O({
5180
+ type: i,
5181
5181
  minLength: null,
5182
5182
  maxLength: null,
5183
5183
  exactLength: null,
5184
5184
  typeName: f.ZodArray,
5185
5185
  ...g(e)
5186
5186
  });
5187
- function G(a) {
5188
- if (a instanceof w) {
5187
+ function G(i) {
5188
+ if (i instanceof w) {
5189
5189
  const e = {};
5190
- for (const t in a.shape) {
5191
- const i = a.shape[t];
5192
- e[t] = M.create(G(i));
5190
+ for (const t in i.shape) {
5191
+ const a = i.shape[t];
5192
+ e[t] = P.create(G(a));
5193
5193
  }
5194
5194
  return new w({
5195
- ...a._def,
5195
+ ...i._def,
5196
5196
  shape: () => e
5197
5197
  });
5198
- } else return a instanceof O ? new O({
5199
- ...a._def,
5200
- type: G(a.element)
5201
- }) : a instanceof M ? M.create(G(a.unwrap())) : a instanceof q ? q.create(G(a.unwrap())) : a instanceof P ? P.create(a.items.map((e) => G(e))) : a;
5198
+ } else return i instanceof O ? new O({
5199
+ ...i._def,
5200
+ type: G(i.element)
5201
+ }) : i instanceof P ? P.create(G(i.unwrap())) : i instanceof q ? q.create(G(i.unwrap())) : i instanceof N ? N.create(i.items.map((e) => G(e))) : i;
5202
5202
  }
5203
5203
  class w extends v {
5204
5204
  constructor() {
@@ -5219,7 +5219,7 @@ class w extends v {
5219
5219
  received: d.parsedType
5220
5220
  }), h;
5221
5221
  }
5222
- const { status: i, ctx: n } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
5222
+ const { status: a, ctx: n } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
5223
5223
  if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
5224
5224
  for (const d in n.data)
5225
5225
  s.includes(d) || o.push(d);
@@ -5228,7 +5228,7 @@ class w extends v {
5228
5228
  const y = r[d], S = n.data[d];
5229
5229
  m.push({
5230
5230
  key: { status: "valid", value: d },
5231
- value: y._parse(new N(n, S, n.path, d)),
5231
+ value: y._parse(new I(n, S, n.path, d)),
5232
5232
  alwaysSet: d in n.data
5233
5233
  });
5234
5234
  }
@@ -5244,7 +5244,7 @@ class w extends v {
5244
5244
  o.length > 0 && (u(n, {
5245
5245
  code: c.unrecognized_keys,
5246
5246
  keys: o
5247
- }), i.dirty());
5247
+ }), a.dirty());
5248
5248
  else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
5249
5249
  } else {
5250
5250
  const d = this._def.catchall;
@@ -5253,7 +5253,7 @@ class w extends v {
5253
5253
  m.push({
5254
5254
  key: { status: "valid", value: y },
5255
5255
  value: d._parse(
5256
- new N(n, S, n.path, y)
5256
+ new I(n, S, n.path, y)
5257
5257
  //, ctx.child(key), value, getParsedType(value)
5258
5258
  ),
5259
5259
  alwaysSet: y in n.data
@@ -5271,7 +5271,7 @@ class w extends v {
5271
5271
  });
5272
5272
  }
5273
5273
  return d;
5274
- }).then((d) => T.mergeObjectSync(i, d)) : T.mergeObjectSync(i, m);
5274
+ }).then((d) => T.mergeObjectSync(a, d)) : T.mergeObjectSync(a, m);
5275
5275
  }
5276
5276
  get shape() {
5277
5277
  return this._def.shape();
@@ -5281,9 +5281,9 @@ class w extends v {
5281
5281
  ...this._def,
5282
5282
  unknownKeys: "strict",
5283
5283
  ...e !== void 0 ? {
5284
- errorMap: (t, i) => {
5284
+ errorMap: (t, a) => {
5285
5285
  var n, r, s, o;
5286
- const m = (s = (r = (n = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(n, t, i).message) !== null && s !== void 0 ? s : i.defaultError;
5286
+ const m = (s = (r = (n = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(n, t, a).message) !== null && s !== void 0 ? s : a.defaultError;
5287
5287
  return t.code === "unrecognized_keys" ? {
5288
5288
  message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : m
5289
5289
  } : {
@@ -5414,8 +5414,8 @@ class w extends v {
5414
5414
  }
5415
5415
  pick(e) {
5416
5416
  const t = {};
5417
- return b.objectKeys(e).forEach((i) => {
5418
- e[i] && this.shape[i] && (t[i] = this.shape[i]);
5417
+ return b.objectKeys(e).forEach((a) => {
5418
+ e[a] && this.shape[a] && (t[a] = this.shape[a]);
5419
5419
  }), new w({
5420
5420
  ...this._def,
5421
5421
  shape: () => t
@@ -5423,8 +5423,8 @@ class w extends v {
5423
5423
  }
5424
5424
  omit(e) {
5425
5425
  const t = {};
5426
- return b.objectKeys(this.shape).forEach((i) => {
5427
- e[i] || (t[i] = this.shape[i]);
5426
+ return b.objectKeys(this.shape).forEach((a) => {
5427
+ e[a] || (t[a] = this.shape[a]);
5428
5428
  }), new w({
5429
5429
  ...this._def,
5430
5430
  shape: () => t
@@ -5438,9 +5438,9 @@ class w extends v {
5438
5438
  }
5439
5439
  partial(e) {
5440
5440
  const t = {};
5441
- return b.objectKeys(this.shape).forEach((i) => {
5442
- const n = this.shape[i];
5443
- e && !e[i] ? t[i] = n : t[i] = n.optional();
5441
+ return b.objectKeys(this.shape).forEach((a) => {
5442
+ const n = this.shape[a];
5443
+ e && !e[a] ? t[a] = n : t[a] = n.optional();
5444
5444
  }), new w({
5445
5445
  ...this._def,
5446
5446
  shape: () => t
@@ -5448,14 +5448,14 @@ class w extends v {
5448
5448
  }
5449
5449
  required(e) {
5450
5450
  const t = {};
5451
- return b.objectKeys(this.shape).forEach((i) => {
5452
- if (e && !e[i])
5453
- t[i] = this.shape[i];
5451
+ return b.objectKeys(this.shape).forEach((a) => {
5452
+ if (e && !e[a])
5453
+ t[a] = this.shape[a];
5454
5454
  else {
5455
- let r = this.shape[i];
5456
- for (; r instanceof M; )
5455
+ let r = this.shape[a];
5456
+ for (; r instanceof P; )
5457
5457
  r = r._def.innerType;
5458
- t[i] = r;
5458
+ t[a] = r;
5459
5459
  }
5460
5460
  }), new w({
5461
5461
  ...this._def,
@@ -5466,22 +5466,22 @@ class w extends v {
5466
5466
  return Ae(b.objectKeys(this.shape));
5467
5467
  }
5468
5468
  }
5469
- w.create = (a, e) => new w({
5470
- shape: () => a,
5469
+ w.create = (i, e) => new w({
5470
+ shape: () => i,
5471
5471
  unknownKeys: "strip",
5472
5472
  catchall: L.create(),
5473
5473
  typeName: f.ZodObject,
5474
5474
  ...g(e)
5475
5475
  });
5476
- w.strictCreate = (a, e) => new w({
5477
- shape: () => a,
5476
+ w.strictCreate = (i, e) => new w({
5477
+ shape: () => i,
5478
5478
  unknownKeys: "strict",
5479
5479
  catchall: L.create(),
5480
5480
  typeName: f.ZodObject,
5481
5481
  ...g(e)
5482
5482
  });
5483
- w.lazycreate = (a, e) => new w({
5484
- shape: a,
5483
+ w.lazycreate = (i, e) => new w({
5484
+ shape: i,
5485
5485
  unknownKeys: "strip",
5486
5486
  catchall: L.create(),
5487
5487
  typeName: f.ZodObject,
@@ -5489,7 +5489,7 @@ w.lazycreate = (a, e) => new w({
5489
5489
  });
5490
5490
  class Q extends v {
5491
5491
  _parse(e) {
5492
- const { ctx: t } = this._processInputParams(e), i = this._def.options;
5492
+ const { ctx: t } = this._processInputParams(e), a = this._def.options;
5493
5493
  function n(r) {
5494
5494
  for (const o of r)
5495
5495
  if (o.result.status === "valid")
@@ -5504,7 +5504,7 @@ class Q extends v {
5504
5504
  }), h;
5505
5505
  }
5506
5506
  if (t.common.async)
5507
- return Promise.all(i.map(async (r) => {
5507
+ return Promise.all(a.map(async (r) => {
5508
5508
  const s = {
5509
5509
  ...t,
5510
5510
  common: {
@@ -5525,7 +5525,7 @@ class Q extends v {
5525
5525
  {
5526
5526
  let r;
5527
5527
  const s = [];
5528
- for (const m of i) {
5528
+ for (const m of a) {
5529
5529
  const d = {
5530
5530
  ...t,
5531
5531
  common: {
@@ -5555,12 +5555,12 @@ class Q extends v {
5555
5555
  return this._def.options;
5556
5556
  }
5557
5557
  }
5558
- Q.create = (a, e) => new Q({
5559
- options: a,
5558
+ Q.create = (i, e) => new Q({
5559
+ options: i,
5560
5560
  typeName: f.ZodUnion,
5561
5561
  ...g(e)
5562
5562
  });
5563
- const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof ie ? [a.value] : a instanceof V ? a.options : a instanceof ne ? Object.keys(a.enum) : a instanceof re ? oe(a._def.innerType) : a instanceof X ? [void 0] : a instanceof K ? [null] : null;
5563
+ const oe = (i) => i instanceof ie ? oe(i.schema) : i instanceof M ? oe(i.innerType()) : i instanceof ae ? [i.value] : i instanceof V ? i.options : i instanceof ne ? Object.keys(i.enum) : i instanceof re ? oe(i._def.innerType) : i instanceof X ? [void 0] : i instanceof K ? [null] : null;
5564
5564
  class ge extends v {
5565
5565
  _parse(e) {
5566
5566
  const { ctx: t } = this._processInputParams(e);
@@ -5570,7 +5570,7 @@ class ge extends v {
5570
5570
  expected: l.object,
5571
5571
  received: t.parsedType
5572
5572
  }), h;
5573
- const i = this.discriminator, n = t.data[i], r = this.optionsMap.get(n);
5573
+ const a = this.discriminator, n = t.data[a], r = this.optionsMap.get(n);
5574
5574
  return r ? t.common.async ? r._parseAsync({
5575
5575
  data: t.data,
5576
5576
  path: t.path,
@@ -5582,7 +5582,7 @@ class ge extends v {
5582
5582
  }) : (u(t, {
5583
5583
  code: c.invalid_union_discriminator,
5584
5584
  options: Array.from(this.optionsMap.keys()),
5585
- path: [i]
5585
+ path: [a]
5586
5586
  }), h);
5587
5587
  }
5588
5588
  get discriminator() {
@@ -5602,7 +5602,7 @@ class ge extends v {
5602
5602
  * @param types an array of object schemas
5603
5603
  * @param params
5604
5604
  */
5605
- static create(e, t, i) {
5605
+ static create(e, t, a) {
5606
5606
  const n = /* @__PURE__ */ new Map();
5607
5607
  for (const r of t) {
5608
5608
  const s = oe(r.shape[e]);
@@ -5619,119 +5619,119 @@ class ge extends v {
5619
5619
  discriminator: e,
5620
5620
  options: t,
5621
5621
  optionsMap: n,
5622
- ...g(i)
5622
+ ...g(a)
5623
5623
  });
5624
5624
  }
5625
5625
  }
5626
- function Te(a, e) {
5627
- const t = j(a), i = j(e);
5628
- if (a === e)
5629
- return { valid: !0, data: a };
5630
- if (t === l.object && i === l.object) {
5631
- const n = b.objectKeys(e), r = b.objectKeys(a).filter((o) => n.indexOf(o) !== -1), s = { ...a, ...e };
5626
+ function Te(i, e) {
5627
+ const t = j(i), a = j(e);
5628
+ if (i === e)
5629
+ return { valid: !0, data: i };
5630
+ if (t === l.object && a === l.object) {
5631
+ const n = b.objectKeys(e), r = b.objectKeys(i).filter((o) => n.indexOf(o) !== -1), s = { ...i, ...e };
5632
5632
  for (const o of r) {
5633
- const m = Te(a[o], e[o]);
5633
+ const m = Te(i[o], e[o]);
5634
5634
  if (!m.valid)
5635
5635
  return { valid: !1 };
5636
5636
  s[o] = m.data;
5637
5637
  }
5638
5638
  return { valid: !0, data: s };
5639
- } else if (t === l.array && i === l.array) {
5640
- if (a.length !== e.length)
5639
+ } else if (t === l.array && a === l.array) {
5640
+ if (i.length !== e.length)
5641
5641
  return { valid: !1 };
5642
5642
  const n = [];
5643
- for (let r = 0; r < a.length; r++) {
5644
- const s = a[r], o = e[r], m = Te(s, o);
5643
+ for (let r = 0; r < i.length; r++) {
5644
+ const s = i[r], o = e[r], m = Te(s, o);
5645
5645
  if (!m.valid)
5646
5646
  return { valid: !1 };
5647
5647
  n.push(m.data);
5648
5648
  }
5649
5649
  return { valid: !0, data: n };
5650
- } else return t === l.date && i === l.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
5650
+ } else return t === l.date && a === l.date && +i == +e ? { valid: !0, data: i } : { valid: !1 };
5651
5651
  }
5652
5652
  class ee extends v {
5653
5653
  _parse(e) {
5654
- const { status: t, ctx: i } = this._processInputParams(e), n = (r, s) => {
5654
+ const { status: t, ctx: a } = this._processInputParams(e), n = (r, s) => {
5655
5655
  if (xe(r) || xe(s))
5656
5656
  return h;
5657
5657
  const o = Te(r.value, s.value);
5658
- return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(i, {
5658
+ return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(a, {
5659
5659
  code: c.invalid_intersection_types
5660
5660
  }), h);
5661
5661
  };
5662
- return i.common.async ? Promise.all([
5662
+ return a.common.async ? Promise.all([
5663
5663
  this._def.left._parseAsync({
5664
- data: i.data,
5665
- path: i.path,
5666
- parent: i
5664
+ data: a.data,
5665
+ path: a.path,
5666
+ parent: a
5667
5667
  }),
5668
5668
  this._def.right._parseAsync({
5669
- data: i.data,
5670
- path: i.path,
5671
- parent: i
5669
+ data: a.data,
5670
+ path: a.path,
5671
+ parent: a
5672
5672
  })
5673
5673
  ]).then(([r, s]) => n(r, s)) : n(this._def.left._parseSync({
5674
- data: i.data,
5675
- path: i.path,
5676
- parent: i
5674
+ data: a.data,
5675
+ path: a.path,
5676
+ parent: a
5677
5677
  }), this._def.right._parseSync({
5678
- data: i.data,
5679
- path: i.path,
5680
- parent: i
5678
+ data: a.data,
5679
+ path: a.path,
5680
+ parent: a
5681
5681
  }));
5682
5682
  }
5683
5683
  }
5684
- ee.create = (a, e, t) => new ee({
5685
- left: a,
5684
+ ee.create = (i, e, t) => new ee({
5685
+ left: i,
5686
5686
  right: e,
5687
5687
  typeName: f.ZodIntersection,
5688
5688
  ...g(t)
5689
5689
  });
5690
- class P extends v {
5690
+ class N extends v {
5691
5691
  _parse(e) {
5692
- const { status: t, ctx: i } = this._processInputParams(e);
5693
- if (i.parsedType !== l.array)
5694
- return u(i, {
5692
+ const { status: t, ctx: a } = this._processInputParams(e);
5693
+ if (a.parsedType !== l.array)
5694
+ return u(a, {
5695
5695
  code: c.invalid_type,
5696
5696
  expected: l.array,
5697
- received: i.parsedType
5697
+ received: a.parsedType
5698
5698
  }), h;
5699
- if (i.data.length < this._def.items.length)
5700
- return u(i, {
5699
+ if (a.data.length < this._def.items.length)
5700
+ return u(a, {
5701
5701
  code: c.too_small,
5702
5702
  minimum: this._def.items.length,
5703
5703
  inclusive: !0,
5704
5704
  exact: !1,
5705
5705
  type: "array"
5706
5706
  }), h;
5707
- !this._def.rest && i.data.length > this._def.items.length && (u(i, {
5707
+ !this._def.rest && a.data.length > this._def.items.length && (u(a, {
5708
5708
  code: c.too_big,
5709
5709
  maximum: this._def.items.length,
5710
5710
  inclusive: !0,
5711
5711
  exact: !1,
5712
5712
  type: "array"
5713
5713
  }), t.dirty());
5714
- const r = [...i.data].map((s, o) => {
5714
+ const r = [...a.data].map((s, o) => {
5715
5715
  const m = this._def.items[o] || this._def.rest;
5716
- return m ? m._parse(new N(i, s, i.path, o)) : null;
5716
+ return m ? m._parse(new I(a, s, a.path, o)) : null;
5717
5717
  }).filter((s) => !!s);
5718
- return i.common.async ? Promise.all(r).then((s) => T.mergeArray(t, s)) : T.mergeArray(t, r);
5718
+ return a.common.async ? Promise.all(r).then((s) => T.mergeArray(t, s)) : T.mergeArray(t, r);
5719
5719
  }
5720
5720
  get items() {
5721
5721
  return this._def.items;
5722
5722
  }
5723
5723
  rest(e) {
5724
- return new P({
5724
+ return new N({
5725
5725
  ...this._def,
5726
5726
  rest: e
5727
5727
  });
5728
5728
  }
5729
5729
  }
5730
- P.create = (a, e) => {
5731
- if (!Array.isArray(a))
5730
+ N.create = (i, e) => {
5731
+ if (!Array.isArray(i))
5732
5732
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
5733
- return new P({
5734
- items: a,
5733
+ return new N({
5734
+ items: i,
5735
5735
  typeName: f.ZodTuple,
5736
5736
  rest: null,
5737
5737
  ...g(e)
@@ -5745,30 +5745,30 @@ class te extends v {
5745
5745
  return this._def.valueType;
5746
5746
  }
5747
5747
  _parse(e) {
5748
- const { status: t, ctx: i } = this._processInputParams(e);
5749
- if (i.parsedType !== l.object)
5750
- return u(i, {
5748
+ const { status: t, ctx: a } = this._processInputParams(e);
5749
+ if (a.parsedType !== l.object)
5750
+ return u(a, {
5751
5751
  code: c.invalid_type,
5752
5752
  expected: l.object,
5753
- received: i.parsedType
5753
+ received: a.parsedType
5754
5754
  }), h;
5755
5755
  const n = [], r = this._def.keyType, s = this._def.valueType;
5756
- for (const o in i.data)
5756
+ for (const o in a.data)
5757
5757
  n.push({
5758
- key: r._parse(new N(i, o, i.path, o)),
5759
- value: s._parse(new N(i, i.data[o], i.path, o))
5758
+ key: r._parse(new I(a, o, a.path, o)),
5759
+ value: s._parse(new I(a, a.data[o], a.path, o))
5760
5760
  });
5761
- return i.common.async ? T.mergeObjectAsync(t, n) : T.mergeObjectSync(t, n);
5761
+ return a.common.async ? T.mergeObjectAsync(t, n) : T.mergeObjectSync(t, n);
5762
5762
  }
5763
5763
  get element() {
5764
5764
  return this._def.valueType;
5765
5765
  }
5766
- static create(e, t, i) {
5766
+ static create(e, t, a) {
5767
5767
  return t instanceof v ? new te({
5768
5768
  keyType: e,
5769
5769
  valueType: t,
5770
5770
  typeName: f.ZodRecord,
5771
- ...g(i)
5771
+ ...g(a)
5772
5772
  }) : new te({
5773
5773
  keyType: A.create(),
5774
5774
  valueType: e,
@@ -5785,18 +5785,18 @@ class pe extends v {
5785
5785
  return this._def.valueType;
5786
5786
  }
5787
5787
  _parse(e) {
5788
- const { status: t, ctx: i } = this._processInputParams(e);
5789
- if (i.parsedType !== l.map)
5790
- return u(i, {
5788
+ const { status: t, ctx: a } = this._processInputParams(e);
5789
+ if (a.parsedType !== l.map)
5790
+ return u(a, {
5791
5791
  code: c.invalid_type,
5792
5792
  expected: l.map,
5793
- received: i.parsedType
5793
+ received: a.parsedType
5794
5794
  }), h;
5795
- const n = this._def.keyType, r = this._def.valueType, s = [...i.data.entries()].map(([o, m], d) => ({
5796
- key: n._parse(new N(i, o, i.path, [d, "key"])),
5797
- value: r._parse(new N(i, m, i.path, [d, "value"]))
5795
+ const n = this._def.keyType, r = this._def.valueType, s = [...a.data.entries()].map(([o, m], d) => ({
5796
+ key: n._parse(new I(a, o, a.path, [d, "key"])),
5797
+ value: r._parse(new I(a, m, a.path, [d, "value"]))
5798
5798
  }));
5799
- if (i.common.async) {
5799
+ if (a.common.async) {
5800
5800
  const o = /* @__PURE__ */ new Map();
5801
5801
  return Promise.resolve().then(async () => {
5802
5802
  for (const m of s) {
@@ -5819,30 +5819,30 @@ class pe extends v {
5819
5819
  }
5820
5820
  }
5821
5821
  }
5822
- pe.create = (a, e, t) => new pe({
5822
+ pe.create = (i, e, t) => new pe({
5823
5823
  valueType: e,
5824
- keyType: a,
5824
+ keyType: i,
5825
5825
  typeName: f.ZodMap,
5826
5826
  ...g(t)
5827
5827
  });
5828
5828
  class U extends v {
5829
5829
  _parse(e) {
5830
- const { status: t, ctx: i } = this._processInputParams(e);
5831
- if (i.parsedType !== l.set)
5832
- return u(i, {
5830
+ const { status: t, ctx: a } = this._processInputParams(e);
5831
+ if (a.parsedType !== l.set)
5832
+ return u(a, {
5833
5833
  code: c.invalid_type,
5834
5834
  expected: l.set,
5835
- received: i.parsedType
5835
+ received: a.parsedType
5836
5836
  }), h;
5837
5837
  const n = this._def;
5838
- n.minSize !== null && i.data.size < n.minSize.value && (u(i, {
5838
+ n.minSize !== null && a.data.size < n.minSize.value && (u(a, {
5839
5839
  code: c.too_small,
5840
5840
  minimum: n.minSize.value,
5841
5841
  type: "set",
5842
5842
  inclusive: !0,
5843
5843
  exact: !1,
5844
5844
  message: n.minSize.message
5845
- }), t.dirty()), n.maxSize !== null && i.data.size > n.maxSize.value && (u(i, {
5845
+ }), t.dirty()), n.maxSize !== null && a.data.size > n.maxSize.value && (u(a, {
5846
5846
  code: c.too_big,
5847
5847
  maximum: n.maxSize.value,
5848
5848
  type: "set",
@@ -5860,8 +5860,8 @@ class U extends v {
5860
5860
  }
5861
5861
  return { status: t.value, value: d };
5862
5862
  }
5863
- const o = [...i.data.values()].map((m, d) => r._parse(new N(i, m, i.path, d)));
5864
- return i.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
5863
+ const o = [...a.data.values()].map((m, d) => r._parse(new I(a, m, a.path, d)));
5864
+ return a.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
5865
5865
  }
5866
5866
  min(e, t) {
5867
5867
  return new U({
@@ -5882,8 +5882,8 @@ class U extends v {
5882
5882
  return this.min(1, e);
5883
5883
  }
5884
5884
  }
5885
- U.create = (a, e) => new U({
5886
- valueType: a,
5885
+ U.create = (i, e) => new U({
5886
+ valueType: i,
5887
5887
  minSize: null,
5888
5888
  maxSize: null,
5889
5889
  typeName: f.ZodSet,
@@ -5901,7 +5901,7 @@ class z extends v {
5901
5901
  expected: l.function,
5902
5902
  received: t.parsedType
5903
5903
  }), h;
5904
- function i(o, m) {
5904
+ function a(o, m) {
5905
5905
  return de({
5906
5906
  data: o,
5907
5907
  path: t.path,
@@ -5938,7 +5938,7 @@ class z extends v {
5938
5938
  const o = this;
5939
5939
  return C(async function(...m) {
5940
5940
  const d = new E([]), y = await o._def.args.parseAsync(m, r).catch((ve) => {
5941
- throw d.addIssue(i(m, ve)), d;
5941
+ throw d.addIssue(a(m, ve)), d;
5942
5942
  }), S = await Reflect.apply(s, this, y);
5943
5943
  return await o._def.returns._def.type.parseAsync(S, r).catch((ve) => {
5944
5944
  throw d.addIssue(n(S, ve)), d;
@@ -5949,7 +5949,7 @@ class z extends v {
5949
5949
  return C(function(...m) {
5950
5950
  const d = o._def.args.safeParse(m, r);
5951
5951
  if (!d.success)
5952
- throw new E([i(m, d.error)]);
5952
+ throw new E([a(m, d.error)]);
5953
5953
  const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, r);
5954
5954
  if (!S.success)
5955
5955
  throw new E([n(y, S.error)]);
@@ -5966,7 +5966,7 @@ class z extends v {
5966
5966
  args(...e) {
5967
5967
  return new z({
5968
5968
  ...this._def,
5969
- args: P.create(e).rest(B.create())
5969
+ args: N.create(e).rest(B.create())
5970
5970
  });
5971
5971
  }
5972
5972
  returns(e) {
@@ -5981,16 +5981,16 @@ class z extends v {
5981
5981
  strictImplement(e) {
5982
5982
  return this.parse(e);
5983
5983
  }
5984
- static create(e, t, i) {
5984
+ static create(e, t, a) {
5985
5985
  return new z({
5986
- args: e || P.create([]).rest(B.create()),
5986
+ args: e || N.create([]).rest(B.create()),
5987
5987
  returns: t || B.create(),
5988
5988
  typeName: f.ZodFunction,
5989
- ...g(i)
5989
+ ...g(a)
5990
5990
  });
5991
5991
  }
5992
5992
  }
5993
- class ae extends v {
5993
+ class ie extends v {
5994
5994
  get schema() {
5995
5995
  return this._def.getter();
5996
5996
  }
@@ -5999,12 +5999,12 @@ class ae extends v {
5999
5999
  return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
6000
6000
  }
6001
6001
  }
6002
- ae.create = (a, e) => new ae({
6003
- getter: a,
6002
+ ie.create = (i, e) => new ie({
6003
+ getter: i,
6004
6004
  typeName: f.ZodLazy,
6005
6005
  ...g(e)
6006
6006
  });
6007
- class ie extends v {
6007
+ class ae extends v {
6008
6008
  _parse(e) {
6009
6009
  if (e.data !== this._def.value) {
6010
6010
  const t = this._getOrReturnCtx(e);
@@ -6020,14 +6020,14 @@ class ie extends v {
6020
6020
  return this._def.value;
6021
6021
  }
6022
6022
  }
6023
- ie.create = (a, e) => new ie({
6024
- value: a,
6023
+ ae.create = (i, e) => new ae({
6024
+ value: i,
6025
6025
  typeName: f.ZodLiteral,
6026
6026
  ...g(e)
6027
6027
  });
6028
- function Ae(a, e) {
6028
+ function Ae(i, e) {
6029
6029
  return new V({
6030
- values: a,
6030
+ values: i,
6031
6031
  typeName: f.ZodEnum,
6032
6032
  ...g(e)
6033
6033
  });
@@ -6035,19 +6035,19 @@ function Ae(a, e) {
6035
6035
  class V extends v {
6036
6036
  _parse(e) {
6037
6037
  if (typeof e.data != "string") {
6038
- const t = this._getOrReturnCtx(e), i = this._def.values;
6038
+ const t = this._getOrReturnCtx(e), a = this._def.values;
6039
6039
  return u(t, {
6040
- expected: b.joinValues(i),
6040
+ expected: b.joinValues(a),
6041
6041
  received: t.parsedType,
6042
6042
  code: c.invalid_type
6043
6043
  }), h;
6044
6044
  }
6045
6045
  if (this._def.values.indexOf(e.data) === -1) {
6046
- const t = this._getOrReturnCtx(e), i = this._def.values;
6046
+ const t = this._getOrReturnCtx(e), a = this._def.values;
6047
6047
  return u(t, {
6048
6048
  received: t.data,
6049
6049
  code: c.invalid_enum_value,
6050
- options: i
6050
+ options: a
6051
6051
  }), h;
6052
6052
  }
6053
6053
  return C(e.data);
@@ -6083,19 +6083,19 @@ class V extends v {
6083
6083
  V.create = Ae;
6084
6084
  class ne extends v {
6085
6085
  _parse(e) {
6086
- const t = b.getValidEnumValues(this._def.values), i = this._getOrReturnCtx(e);
6087
- if (i.parsedType !== l.string && i.parsedType !== l.number) {
6086
+ const t = b.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
6087
+ if (a.parsedType !== l.string && a.parsedType !== l.number) {
6088
6088
  const n = b.objectValues(t);
6089
- return u(i, {
6089
+ return u(a, {
6090
6090
  expected: b.joinValues(n),
6091
- received: i.parsedType,
6091
+ received: a.parsedType,
6092
6092
  code: c.invalid_type
6093
6093
  }), h;
6094
6094
  }
6095
6095
  if (t.indexOf(e.data) === -1) {
6096
6096
  const n = b.objectValues(t);
6097
- return u(i, {
6098
- received: i.data,
6097
+ return u(a, {
6098
+ received: a.data,
6099
6099
  code: c.invalid_enum_value,
6100
6100
  options: n
6101
6101
  }), h;
@@ -6106,8 +6106,8 @@ class ne extends v {
6106
6106
  return this._def.values;
6107
6107
  }
6108
6108
  }
6109
- ne.create = (a, e) => new ne({
6110
- values: a,
6109
+ ne.create = (i, e) => new ne({
6110
+ values: i,
6111
6111
  typeName: f.ZodNativeEnum,
6112
6112
  ...g(e)
6113
6113
  });
@@ -6123,19 +6123,19 @@ class Y extends v {
6123
6123
  expected: l.promise,
6124
6124
  received: t.parsedType
6125
6125
  }), h;
6126
- const i = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
6127
- return C(i.then((n) => this._def.type.parseAsync(n, {
6126
+ const a = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
6127
+ return C(a.then((n) => this._def.type.parseAsync(n, {
6128
6128
  path: t.path,
6129
6129
  errorMap: t.common.contextualErrorMap
6130
6130
  })));
6131
6131
  }
6132
6132
  }
6133
- Y.create = (a, e) => new Y({
6134
- type: a,
6133
+ Y.create = (i, e) => new Y({
6134
+ type: i,
6135
6135
  typeName: f.ZodPromise,
6136
6136
  ...g(e)
6137
6137
  });
6138
- class I extends v {
6138
+ class M extends v {
6139
6139
  innerType() {
6140
6140
  return this._def.schema;
6141
6141
  }
@@ -6143,54 +6143,54 @@ class I extends v {
6143
6143
  return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
6144
6144
  }
6145
6145
  _parse(e) {
6146
- const { status: t, ctx: i } = this._processInputParams(e), n = this._def.effect || null, r = {
6146
+ const { status: t, ctx: a } = this._processInputParams(e), n = this._def.effect || null, r = {
6147
6147
  addIssue: (s) => {
6148
- u(i, s), s.fatal ? t.abort() : t.dirty();
6148
+ u(a, s), s.fatal ? t.abort() : t.dirty();
6149
6149
  },
6150
6150
  get path() {
6151
- return i.path;
6151
+ return a.path;
6152
6152
  }
6153
6153
  };
6154
6154
  if (r.addIssue = r.addIssue.bind(r), n.type === "preprocess") {
6155
- const s = n.transform(i.data, r);
6156
- return i.common.issues.length ? {
6155
+ const s = n.transform(a.data, r);
6156
+ return a.common.issues.length ? {
6157
6157
  status: "dirty",
6158
- value: i.data
6159
- } : i.common.async ? Promise.resolve(s).then((o) => this._def.schema._parseAsync({
6158
+ value: a.data
6159
+ } : a.common.async ? Promise.resolve(s).then((o) => this._def.schema._parseAsync({
6160
6160
  data: o,
6161
- path: i.path,
6162
- parent: i
6161
+ path: a.path,
6162
+ parent: a
6163
6163
  })) : this._def.schema._parseSync({
6164
6164
  data: s,
6165
- path: i.path,
6166
- parent: i
6165
+ path: a.path,
6166
+ parent: a
6167
6167
  });
6168
6168
  }
6169
6169
  if (n.type === "refinement") {
6170
6170
  const s = (o) => {
6171
6171
  const m = n.refinement(o, r);
6172
- if (i.common.async)
6172
+ if (a.common.async)
6173
6173
  return Promise.resolve(m);
6174
6174
  if (m instanceof Promise)
6175
6175
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
6176
6176
  return o;
6177
6177
  };
6178
- if (i.common.async === !1) {
6178
+ if (a.common.async === !1) {
6179
6179
  const o = this._def.schema._parseSync({
6180
- data: i.data,
6181
- path: i.path,
6182
- parent: i
6180
+ data: a.data,
6181
+ path: a.path,
6182
+ parent: a
6183
6183
  });
6184
6184
  return o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value), { status: t.value, value: o.value });
6185
6185
  } else
6186
- return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((o) => o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
6186
+ return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((o) => o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
6187
6187
  }
6188
6188
  if (n.type === "transform")
6189
- if (i.common.async === !1) {
6189
+ if (a.common.async === !1) {
6190
6190
  const s = this._def.schema._parseSync({
6191
- data: i.data,
6192
- path: i.path,
6193
- parent: i
6191
+ data: a.data,
6192
+ path: a.path,
6193
+ parent: a
6194
6194
  });
6195
6195
  if (!H(s))
6196
6196
  return s;
@@ -6199,23 +6199,23 @@ class I extends v {
6199
6199
  throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
6200
6200
  return { status: t.value, value: o };
6201
6201
  } else
6202
- return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((s) => H(s) ? Promise.resolve(n.transform(s.value, r)).then((o) => ({ status: t.value, value: o })) : s);
6202
+ return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((s) => H(s) ? Promise.resolve(n.transform(s.value, r)).then((o) => ({ status: t.value, value: o })) : s);
6203
6203
  b.assertNever(n);
6204
6204
  }
6205
6205
  }
6206
- I.create = (a, e, t) => new I({
6207
- schema: a,
6206
+ M.create = (i, e, t) => new M({
6207
+ schema: i,
6208
6208
  typeName: f.ZodEffects,
6209
6209
  effect: e,
6210
6210
  ...g(t)
6211
6211
  });
6212
- I.createWithPreprocess = (a, e, t) => new I({
6212
+ M.createWithPreprocess = (i, e, t) => new M({
6213
6213
  schema: e,
6214
- effect: { type: "preprocess", transform: a },
6214
+ effect: { type: "preprocess", transform: i },
6215
6215
  typeName: f.ZodEffects,
6216
6216
  ...g(t)
6217
6217
  });
6218
- class M extends v {
6218
+ class P extends v {
6219
6219
  _parse(e) {
6220
6220
  return this._getType(e) === l.undefined ? C(void 0) : this._def.innerType._parse(e);
6221
6221
  }
@@ -6223,8 +6223,8 @@ class M extends v {
6223
6223
  return this._def.innerType;
6224
6224
  }
6225
6225
  }
6226
- M.create = (a, e) => new M({
6227
- innerType: a,
6226
+ P.create = (i, e) => new P({
6227
+ innerType: i,
6228
6228
  typeName: f.ZodOptional,
6229
6229
  ...g(e)
6230
6230
  });
@@ -6236,17 +6236,17 @@ class q extends v {
6236
6236
  return this._def.innerType;
6237
6237
  }
6238
6238
  }
6239
- q.create = (a, e) => new q({
6240
- innerType: a,
6239
+ q.create = (i, e) => new q({
6240
+ innerType: i,
6241
6241
  typeName: f.ZodNullable,
6242
6242
  ...g(e)
6243
6243
  });
6244
6244
  class re extends v {
6245
6245
  _parse(e) {
6246
6246
  const { ctx: t } = this._processInputParams(e);
6247
- let i = t.data;
6248
- return t.parsedType === l.undefined && (i = this._def.defaultValue()), this._def.innerType._parse({
6249
- data: i,
6247
+ let a = t.data;
6248
+ return t.parsedType === l.undefined && (a = this._def.defaultValue()), this._def.innerType._parse({
6249
+ data: a,
6250
6250
  path: t.path,
6251
6251
  parent: t
6252
6252
  });
@@ -6255,42 +6255,42 @@ class re extends v {
6255
6255
  return this._def.innerType;
6256
6256
  }
6257
6257
  }
6258
- re.create = (a, e) => new re({
6259
- innerType: a,
6258
+ re.create = (i, e) => new re({
6259
+ innerType: i,
6260
6260
  typeName: f.ZodDefault,
6261
6261
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
6262
6262
  ...g(e)
6263
6263
  });
6264
6264
  class fe extends v {
6265
6265
  _parse(e) {
6266
- const { ctx: t } = this._processInputParams(e), i = {
6266
+ const { ctx: t } = this._processInputParams(e), a = {
6267
6267
  ...t,
6268
6268
  common: {
6269
6269
  ...t.common,
6270
6270
  issues: []
6271
6271
  }
6272
6272
  }, n = this._def.innerType._parse({
6273
- data: i.data,
6274
- path: i.path,
6273
+ data: a.data,
6274
+ path: a.path,
6275
6275
  parent: {
6276
- ...i
6276
+ ...a
6277
6277
  }
6278
6278
  });
6279
6279
  return le(n) ? n.then((r) => ({
6280
6280
  status: "valid",
6281
6281
  value: r.status === "valid" ? r.value : this._def.catchValue({
6282
6282
  get error() {
6283
- return new E(i.common.issues);
6283
+ return new E(a.common.issues);
6284
6284
  },
6285
- input: i.data
6285
+ input: a.data
6286
6286
  })
6287
6287
  })) : {
6288
6288
  status: "valid",
6289
6289
  value: n.status === "valid" ? n.value : this._def.catchValue({
6290
6290
  get error() {
6291
- return new E(i.common.issues);
6291
+ return new E(a.common.issues);
6292
6292
  },
6293
- input: i.data
6293
+ input: a.data
6294
6294
  })
6295
6295
  };
6296
6296
  }
@@ -6298,8 +6298,8 @@ class fe extends v {
6298
6298
  return this._def.innerType;
6299
6299
  }
6300
6300
  }
6301
- fe.create = (a, e) => new fe({
6302
- innerType: a,
6301
+ fe.create = (i, e) => new fe({
6302
+ innerType: i,
6303
6303
  typeName: f.ZodCatch,
6304
6304
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
6305
6305
  ...g(e)
@@ -6307,26 +6307,26 @@ fe.create = (a, e) => new fe({
6307
6307
  class he extends v {
6308
6308
  _parse(e) {
6309
6309
  if (this._getType(e) !== l.nan) {
6310
- const i = this._getOrReturnCtx(e);
6311
- return u(i, {
6310
+ const a = this._getOrReturnCtx(e);
6311
+ return u(a, {
6312
6312
  code: c.invalid_type,
6313
6313
  expected: l.nan,
6314
- received: i.parsedType
6314
+ received: a.parsedType
6315
6315
  }), h;
6316
6316
  }
6317
6317
  return { status: "valid", value: e.data };
6318
6318
  }
6319
6319
  }
6320
- he.create = (a) => new he({
6320
+ he.create = (i) => new he({
6321
6321
  typeName: f.ZodNaN,
6322
- ...g(a)
6322
+ ...g(i)
6323
6323
  });
6324
6324
  const ct = Symbol("zod_brand");
6325
6325
  class Ee extends v {
6326
6326
  _parse(e) {
6327
- const { ctx: t } = this._processInputParams(e), i = t.data;
6327
+ const { ctx: t } = this._processInputParams(e), a = t.data;
6328
6328
  return this._def.type._parse({
6329
- data: i,
6329
+ data: a,
6330
6330
  path: t.path,
6331
6331
  parent: t
6332
6332
  });
@@ -6337,33 +6337,33 @@ class Ee extends v {
6337
6337
  }
6338
6338
  class se extends v {
6339
6339
  _parse(e) {
6340
- const { status: t, ctx: i } = this._processInputParams(e);
6341
- if (i.common.async)
6340
+ const { status: t, ctx: a } = this._processInputParams(e);
6341
+ if (a.common.async)
6342
6342
  return (async () => {
6343
6343
  const r = await this._def.in._parseAsync({
6344
- data: i.data,
6345
- path: i.path,
6346
- parent: i
6344
+ data: a.data,
6345
+ path: a.path,
6346
+ parent: a
6347
6347
  });
6348
6348
  return r.status === "aborted" ? h : r.status === "dirty" ? (t.dirty(), Se(r.value)) : this._def.out._parseAsync({
6349
6349
  data: r.value,
6350
- path: i.path,
6351
- parent: i
6350
+ path: a.path,
6351
+ parent: a
6352
6352
  });
6353
6353
  })();
6354
6354
  {
6355
6355
  const n = this._def.in._parseSync({
6356
- data: i.data,
6357
- path: i.path,
6358
- parent: i
6356
+ data: a.data,
6357
+ path: a.path,
6358
+ parent: a
6359
6359
  });
6360
6360
  return n.status === "aborted" ? h : n.status === "dirty" ? (t.dirty(), {
6361
6361
  status: "dirty",
6362
6362
  value: n.value
6363
6363
  }) : this._def.out._parseSync({
6364
6364
  data: n.value,
6365
- path: i.path,
6366
- parent: i
6365
+ path: a.path,
6366
+ parent: a
6367
6367
  });
6368
6368
  }
6369
6369
  }
@@ -6381,35 +6381,35 @@ class _e extends v {
6381
6381
  return H(t) && (t.value = Object.freeze(t.value)), t;
6382
6382
  }
6383
6383
  }
6384
- _e.create = (a, e) => new _e({
6385
- innerType: a,
6384
+ _e.create = (i, e) => new _e({
6385
+ innerType: i,
6386
6386
  typeName: f.ZodReadonly,
6387
6387
  ...g(e)
6388
6388
  });
6389
- const Oe = (a, e = {}, t) => a ? W.create().superRefine((i, n) => {
6389
+ const Oe = (i, e = {}, t) => i ? W.create().superRefine((a, n) => {
6390
6390
  var r, s;
6391
- if (!a(i)) {
6392
- const o = typeof e == "function" ? e(i) : typeof e == "string" ? { message: e } : e, m = (s = (r = o.fatal) !== null && r !== void 0 ? r : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
6391
+ if (!i(a)) {
6392
+ const o = typeof e == "function" ? e(a) : typeof e == "string" ? { message: e } : e, m = (s = (r = o.fatal) !== null && r !== void 0 ? r : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
6393
6393
  n.addIssue({ code: "custom", ...d, fatal: m });
6394
6394
  }
6395
6395
  }) : W.create(), dt = {
6396
6396
  object: w.lazycreate
6397
6397
  };
6398
6398
  var f;
6399
- (function(a) {
6400
- a.ZodString = "ZodString", a.ZodNumber = "ZodNumber", a.ZodNaN = "ZodNaN", a.ZodBigInt = "ZodBigInt", a.ZodBoolean = "ZodBoolean", a.ZodDate = "ZodDate", a.ZodSymbol = "ZodSymbol", a.ZodUndefined = "ZodUndefined", a.ZodNull = "ZodNull", a.ZodAny = "ZodAny", a.ZodUnknown = "ZodUnknown", a.ZodNever = "ZodNever", a.ZodVoid = "ZodVoid", a.ZodArray = "ZodArray", a.ZodObject = "ZodObject", a.ZodUnion = "ZodUnion", a.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", a.ZodIntersection = "ZodIntersection", a.ZodTuple = "ZodTuple", a.ZodRecord = "ZodRecord", a.ZodMap = "ZodMap", a.ZodSet = "ZodSet", a.ZodFunction = "ZodFunction", a.ZodLazy = "ZodLazy", a.ZodLiteral = "ZodLiteral", a.ZodEnum = "ZodEnum", a.ZodEffects = "ZodEffects", a.ZodNativeEnum = "ZodNativeEnum", a.ZodOptional = "ZodOptional", a.ZodNullable = "ZodNullable", a.ZodDefault = "ZodDefault", a.ZodCatch = "ZodCatch", a.ZodPromise = "ZodPromise", a.ZodBranded = "ZodBranded", a.ZodPipeline = "ZodPipeline", a.ZodReadonly = "ZodReadonly";
6399
+ (function(i) {
6400
+ i.ZodString = "ZodString", i.ZodNumber = "ZodNumber", i.ZodNaN = "ZodNaN", i.ZodBigInt = "ZodBigInt", i.ZodBoolean = "ZodBoolean", i.ZodDate = "ZodDate", i.ZodSymbol = "ZodSymbol", i.ZodUndefined = "ZodUndefined", i.ZodNull = "ZodNull", i.ZodAny = "ZodAny", i.ZodUnknown = "ZodUnknown", i.ZodNever = "ZodNever", i.ZodVoid = "ZodVoid", i.ZodArray = "ZodArray", i.ZodObject = "ZodObject", i.ZodUnion = "ZodUnion", i.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", i.ZodIntersection = "ZodIntersection", i.ZodTuple = "ZodTuple", i.ZodRecord = "ZodRecord", i.ZodMap = "ZodMap", i.ZodSet = "ZodSet", i.ZodFunction = "ZodFunction", i.ZodLazy = "ZodLazy", i.ZodLiteral = "ZodLiteral", i.ZodEnum = "ZodEnum", i.ZodEffects = "ZodEffects", i.ZodNativeEnum = "ZodNativeEnum", i.ZodOptional = "ZodOptional", i.ZodNullable = "ZodNullable", i.ZodDefault = "ZodDefault", i.ZodCatch = "ZodCatch", i.ZodPromise = "ZodPromise", i.ZodBranded = "ZodBranded", i.ZodPipeline = "ZodPipeline", i.ZodReadonly = "ZodReadonly";
6401
6401
  })(f || (f = {}));
6402
- const lt = (a, e = {
6403
- message: `Input not instance of ${a.name}`
6404
- }) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = D.create, ut = he.create, mt = Z.create, Pe = J.create, pt = $.create, ft = ue.create, ht = X.create, _t = K.create, gt = W.create, vt = B.create, yt = L.create, bt = me.create, xt = O.create, wt = w.create, Tt = w.strictCreate, Ct = Q.create, Rt = ge.create, kt = ee.create, St = P.create, At = te.create, Et = pe.create, Ot = U.create, It = z.create, Nt = ae.create, Pt = ie.create, Mt = V.create, Lt = ne.create, jt = Y.create, Re = I.create, Dt = M.create, Zt = q.create, Vt = I.createWithPreprocess, Bt = se.create, $t = () => Ie().optional(), Ut = () => Ne().optional(), qt = () => Pe().optional(), Gt = {
6405
- string: (a) => A.create({ ...a, coerce: !0 }),
6406
- number: (a) => D.create({ ...a, coerce: !0 }),
6407
- boolean: (a) => J.create({
6408
- ...a,
6402
+ const lt = (i, e = {
6403
+ message: `Input not instance of ${i.name}`
6404
+ }) => Oe((t) => t instanceof i, e), Me = A.create, Ie = D.create, ut = he.create, mt = Z.create, Ne = J.create, pt = $.create, ft = ue.create, ht = X.create, _t = K.create, gt = W.create, vt = B.create, yt = L.create, bt = me.create, xt = O.create, wt = w.create, Tt = w.strictCreate, Ct = Q.create, Rt = ge.create, kt = ee.create, St = N.create, At = te.create, Et = pe.create, Ot = U.create, Mt = z.create, It = ie.create, Nt = ae.create, Pt = V.create, Lt = ne.create, jt = Y.create, Re = M.create, Dt = P.create, Zt = q.create, Vt = M.createWithPreprocess, Bt = se.create, $t = () => Me().optional(), Ut = () => Ie().optional(), qt = () => Ne().optional(), Gt = {
6405
+ string: (i) => A.create({ ...i, coerce: !0 }),
6406
+ number: (i) => D.create({ ...i, coerce: !0 }),
6407
+ boolean: (i) => J.create({
6408
+ ...i,
6409
6409
  coerce: !0
6410
6410
  }),
6411
- bigint: (a) => Z.create({ ...a, coerce: !0 }),
6412
- date: (a) => $.create({ ...a, coerce: !0 })
6411
+ bigint: (i) => Z.create({ ...i, coerce: !0 }),
6412
+ date: (i) => $.create({ ...i, coerce: !0 })
6413
6413
  }, zt = h;
6414
6414
  var Wt = /* @__PURE__ */ Object.freeze({
6415
6415
  __proto__: null,
@@ -6453,19 +6453,19 @@ var Wt = /* @__PURE__ */ Object.freeze({
6453
6453
  ZodUnion: Q,
6454
6454
  ZodDiscriminatedUnion: ge,
6455
6455
  ZodIntersection: ee,
6456
- ZodTuple: P,
6456
+ ZodTuple: N,
6457
6457
  ZodRecord: te,
6458
6458
  ZodMap: pe,
6459
6459
  ZodSet: U,
6460
6460
  ZodFunction: z,
6461
- ZodLazy: ae,
6462
- ZodLiteral: ie,
6461
+ ZodLazy: ie,
6462
+ ZodLiteral: ae,
6463
6463
  ZodEnum: V,
6464
6464
  ZodNativeEnum: ne,
6465
6465
  ZodPromise: Y,
6466
- ZodEffects: I,
6467
- ZodTransformer: I,
6468
- ZodOptional: M,
6466
+ ZodEffects: M,
6467
+ ZodTransformer: M,
6468
+ ZodOptional: P,
6469
6469
  ZodNullable: q,
6470
6470
  ZodDefault: re,
6471
6471
  ZodCatch: fe,
@@ -6485,23 +6485,23 @@ var Wt = /* @__PURE__ */ Object.freeze({
6485
6485
  any: gt,
6486
6486
  array: xt,
6487
6487
  bigint: mt,
6488
- boolean: Pe,
6488
+ boolean: Ne,
6489
6489
  date: pt,
6490
6490
  discriminatedUnion: Rt,
6491
6491
  effect: Re,
6492
- enum: Mt,
6493
- function: It,
6492
+ enum: Pt,
6493
+ function: Mt,
6494
6494
  instanceof: lt,
6495
6495
  intersection: kt,
6496
- lazy: Nt,
6497
- literal: Pt,
6496
+ lazy: It,
6497
+ literal: Nt,
6498
6498
  map: Et,
6499
6499
  nan: ut,
6500
6500
  nativeEnum: Lt,
6501
6501
  never: yt,
6502
6502
  null: _t,
6503
6503
  nullable: Zt,
6504
- number: Ne,
6504
+ number: Ie,
6505
6505
  object: wt,
6506
6506
  oboolean: qt,
6507
6507
  onumber: Ut,
@@ -6513,7 +6513,7 @@ var Wt = /* @__PURE__ */ Object.freeze({
6513
6513
  record: At,
6514
6514
  set: Ot,
6515
6515
  strictObject: Tt,
6516
- string: Ie,
6516
+ string: Me,
6517
6517
  symbol: ft,
6518
6518
  transformer: Re,
6519
6519
  tuple: St,
@@ -6560,7 +6560,7 @@ const Yt = [
6560
6560
  "REFERRAL_RECORD",
6561
6561
  "REWARD_TEMPLATE",
6562
6562
  "BIN"
6563
- ].map((a) => `$connect-${a}`), Ft = Wt.enum(Yt), _ = Ft.Enum, Kt = [
6563
+ ].map((i) => `$connect-${i}`), Ft = Wt.enum(Yt), _ = Ft.Enum, Kt = [
6564
6564
  {
6565
6565
  path: "",
6566
6566
  name: _["$connect-DASHBOARD"],
@@ -6574,7 +6574,7 @@ const Yt = [
6574
6574
  {
6575
6575
  path: "/analytic",
6576
6576
  name: _["$connect-ANALYTIC"],
6577
- component: R(k(() => import("./Analytic-C7qqDS5D.js"))),
6577
+ component: R(k(() => import("./Analytic-9_JkMO2c.js"))),
6578
6578
  meta: {
6579
6579
  validationManifest: {
6580
6580
  requiredCaslPermissions: [
@@ -6597,7 +6597,7 @@ const Yt = [
6597
6597
  {
6598
6598
  path: "/campaign/promotion",
6599
6599
  name: _["$connect-CAMPAIGN_PROMOTION"],
6600
- component: R(k(() => import("./Promotion-DJOoRnxt.js"))),
6600
+ component: R(k(() => import("./Promotion-qt_pE8uB.js"))),
6601
6601
  meta: {
6602
6602
  validationManifest: {
6603
6603
  requiredCaslPermissions: [
@@ -6616,7 +6616,7 @@ const Yt = [
6616
6616
  {
6617
6617
  path: "/campaign/voucher",
6618
6618
  name: _["$connect-CAMPAIGN_VOUCHER"],
6619
- component: R(k(() => import("./Voucher-Bukem4U7.js"))),
6619
+ component: R(k(() => import("./Voucher-CZLp6Mfd.js"))),
6620
6620
  meta: {
6621
6621
  validationManifest: {
6622
6622
  requiredCaslPermissions: [
@@ -6631,7 +6631,7 @@ const Yt = [
6631
6631
  {
6632
6632
  path: "/campaign/voucher/:id/collections",
6633
6633
  name: _["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
6634
- component: R(k(() => import("./Collections-joGRHyag.js"))),
6634
+ component: R(k(() => import("./Collections-DqlqGVcv.js"))),
6635
6635
  meta: {
6636
6636
  validationManifest: {
6637
6637
  requiredCaslPermissions: [
@@ -6648,7 +6648,7 @@ const Yt = [
6648
6648
  {
6649
6649
  path: "/campaign/broadcast",
6650
6650
  name: _["$connect-CAMPAIGN_BROADCAST"],
6651
- component: R(k(() => import("./Broadcast-BzChnp4V.js"))),
6651
+ component: R(k(() => import("./Broadcast-8UwFqqzp.js"))),
6652
6652
  meta: {
6653
6653
  validationManifest: {
6654
6654
  requiredCaslPermissions: [
@@ -6682,37 +6682,37 @@ const Yt = [
6682
6682
  {
6683
6683
  path: "/program/tier",
6684
6684
  name: _["$connect-PROGRAM_TIER"],
6685
- component: () => import("./Tier-CFd-HaGX.js")
6685
+ component: () => import("./Tier-CB64ZbLz.js")
6686
6686
  },
6687
6687
  {
6688
6688
  path: "/program/title",
6689
6689
  name: _["$connect-PROGRAM_TITLE"],
6690
- component: () => import("./Title-CBktBb5l.js")
6690
+ component: () => import("./Title-62HEE-nU.js")
6691
6691
  },
6692
6692
  {
6693
6693
  path: "/program/experience",
6694
6694
  name: _["$connect-PROGRAM_EXPERIENCE"],
6695
- component: () => import("./Experience-D5GrDbft.js")
6695
+ component: () => import("./Experience-BTf5f-Kb.js")
6696
6696
  },
6697
6697
  {
6698
6698
  path: "/program/point",
6699
6699
  name: _["$connect-PROGRAM_POINT"],
6700
- component: () => import("./Point-B684quZM.js")
6700
+ component: () => import("./Point-C_amiOK4.js")
6701
6701
  },
6702
6702
  {
6703
6703
  path: "/program/credit",
6704
6704
  name: _["$connect-PROGRAM_CREDIT"],
6705
- component: () => import("./Credit-N1qDB4XC.js")
6705
+ component: () => import("./Credit-BuKQEMU2.js")
6706
6706
  },
6707
6707
  {
6708
6708
  path: "/program/game",
6709
6709
  name: _["$connect-PROGRAM_GAME"],
6710
- component: () => import("./Game-DI7BDPO_.js")
6710
+ component: () => import("./Game-Ci_39vHg.js")
6711
6711
  },
6712
6712
  {
6713
6713
  path: "mission",
6714
6714
  name: _["$connect-PROGRAM_MISSION"],
6715
- component: () => import("./Mission-BVM_1IJ8.js")
6715
+ component: () => import("./Mission-D_CqN5Es.js")
6716
6716
  }
6717
6717
  ]
6718
6718
  },
@@ -6735,7 +6735,7 @@ const Yt = [
6735
6735
  {
6736
6736
  path: "/loyalty/member",
6737
6737
  name: _["$connect-LOYALTY_MEMBER"],
6738
- component: () => import("./Member-CGd5wNHJ.js"),
6738
+ component: () => import("./Member-Bvxgoep1.js"),
6739
6739
  redirect: {
6740
6740
  name: _["$connect-LOYALTY_MEMBER_OVERVIEW"]
6741
6741
  },
@@ -6748,24 +6748,24 @@ const Yt = [
6748
6748
  {
6749
6749
  path: "/loyalty/member/list",
6750
6750
  name: _["$connect-LOYALTY_MEMBER_LIST"],
6751
- component: () => import("./MemberList-DnS8KHYF.js")
6751
+ component: () => import("./MemberList-BvX98Yt-.js")
6752
6752
  },
6753
6753
  {
6754
6754
  path: "/loyalty/member/transactions/:id",
6755
6755
  name: _["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
6756
- component: () => import("./MemberTransactions-GAAX3aSV.js")
6756
+ component: () => import("./MemberTransactions-DJt3aJ-h.js")
6757
6757
  }
6758
6758
  ]
6759
6759
  },
6760
6760
  {
6761
6761
  path: "/loyalty/segment",
6762
6762
  name: _["$connect-LOYALTY_SEGMENT"],
6763
- component: () => import("./Segment-DqOsH95n.js")
6763
+ component: () => import("./Segment-QKuGmThT.js")
6764
6764
  },
6765
6765
  {
6766
6766
  path: "/loyalty/card",
6767
6767
  name: _["$connect-LOYALTY_CARD"],
6768
- component: () => import("./Card-DAfZz7q5.js")
6768
+ component: () => import("./Card-BFEc9Zgu.js")
6769
6769
  }
6770
6770
  ]
6771
6771
  },
@@ -6787,7 +6787,7 @@ const Yt = [
6787
6787
  {
6788
6788
  path: "/referral",
6789
6789
  name: _["$connect-REFERRAL"],
6790
- component: () => import("./Index-CbuAJ2dE.js"),
6790
+ component: () => import("./Index-8JLenrzT.js"),
6791
6791
  redirect: {
6792
6792
  name: _["$connect-REFERRAL_OVERVIEW"]
6793
6793
  },
@@ -6795,12 +6795,12 @@ const Yt = [
6795
6795
  {
6796
6796
  path: "/referral",
6797
6797
  name: _["$connect-REFERRAL_OVERVIEW"],
6798
- component: () => import("./Overview-D2IYZCPn.js")
6798
+ component: () => import("./Overview-FRebjePW.js")
6799
6799
  },
6800
6800
  {
6801
6801
  path: "/referral/record",
6802
6802
  name: _["$connect-REFERRAL_RECORD"],
6803
- component: () => import("./Record-Bk74XVUj.js")
6803
+ component: () => import("./Record-2eAijNwr.js")
6804
6804
  }
6805
6805
  ]
6806
6806
  }
@@ -6823,7 +6823,7 @@ const Yt = [
6823
6823
  {
6824
6824
  path: "/store",
6825
6825
  name: _["$connect-STORE"],
6826
- component: () => import("./Store-DqtUurcv.js")
6826
+ component: () => import("./Store-CTxmlEVr.js")
6827
6827
  },
6828
6828
  {
6829
6829
  path: "/store/rewards",
@@ -6832,12 +6832,12 @@ const Yt = [
6832
6832
  {
6833
6833
  path: "/store/rewards",
6834
6834
  name: _["$connect-STORE_REWARDS"],
6835
- component: () => import("./StoreRewards-DPFMA3p9.js")
6835
+ component: () => import("./StoreRewards-Bm9NXXH2.js")
6836
6836
  },
6837
6837
  {
6838
6838
  path: "/store/rewards/:id/collections",
6839
6839
  name: _["$connect-STORE_REWARD_COLLECTIONS"],
6840
- component: () => import("./Collections-joGRHyag.js")
6840
+ component: () => import("./Collections-DqlqGVcv.js")
6841
6841
  }
6842
6842
  ]
6843
6843
  }
@@ -6860,7 +6860,7 @@ const Yt = [
6860
6860
  {
6861
6861
  path: "/transaction",
6862
6862
  name: _["$connect-TRANSACTION"],
6863
- component: () => import("./Transaction-Bb8UU_lj.js")
6863
+ component: () => import("./Transaction-CK9Igmnp.js")
6864
6864
  }
6865
6865
  ]
6866
6866
  },
@@ -6881,7 +6881,7 @@ const Yt = [
6881
6881
  {
6882
6882
  path: "/marketing",
6883
6883
  name: _["$connect-MARKETING"],
6884
- component: () => import("./Marketing-BSqMfy70.js")
6884
+ component: () => import("./Marketing-XAmIlYCx.js")
6885
6885
  }
6886
6886
  ]
6887
6887
  },
@@ -6902,7 +6902,7 @@ const Yt = [
6902
6902
  {
6903
6903
  path: "/reward",
6904
6904
  name: _["$connect-REWARD_TEMPLATE"],
6905
- component: () => import("./Reward-BM0AGGL6.js")
6905
+ component: () => import("./Reward-DLNijsC9.js")
6906
6906
  }
6907
6907
  ]
6908
6908
  },
@@ -6923,7 +6923,7 @@ const Yt = [
6923
6923
  {
6924
6924
  path: "/setting",
6925
6925
  name: _["$connect-SETTING"],
6926
- component: () => import("./Setting-D6cRTVUl.js")
6926
+ component: () => import("./Setting-GTro0uCw.js")
6927
6927
  }
6928
6928
  ]
6929
6929
  },
@@ -6944,7 +6944,7 @@ const Yt = [
6944
6944
  {
6945
6945
  path: "/bin",
6946
6946
  name: _["$connect-BIN"],
6947
- component: () => import("./Bin-U7U1Vaju.js")
6947
+ component: () => import("./Bin-BoolyqZn.js")
6948
6948
  }
6949
6949
  ]
6950
6950
  }
@@ -6953,9 +6953,9 @@ const Yt = [
6953
6953
  "zh-CN": $e,
6954
6954
  "th-TH": qe,
6955
6955
  "zh-Hant": Ye
6956
- }, ea = () => import("./App-DKZYz5r2.js").then((a) => a.default);
6956
+ }, ei = () => import("./App-DfbUtaeM.js").then((i) => i.default);
6957
6957
  export {
6958
- ea as F,
6958
+ ei as F,
6959
6959
  _ as R,
6960
6960
  c as Z,
6961
6961
  l as a,