@locusai/web 0.1.3 → 0.1.4

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 (184) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +37 -37
  3. package/.next/app-path-routes-manifest.json +7 -1
  4. package/.next/build-manifest.json +14 -14
  5. package/.next/cache/.previewinfo +1 -0
  6. package/.next/cache/.rscinfo +1 -1
  7. package/.next/cache/.tsbuildinfo +1 -1
  8. package/.next/cache/config.json +3 -3
  9. package/.next/cache/webpack/client-production/0.pack +0 -0
  10. package/.next/cache/webpack/client-production/index.pack +0 -0
  11. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  12. package/.next/cache/webpack/server-production/0.pack +0 -0
  13. package/.next/cache/webpack/server-production/index.pack +0 -0
  14. package/.next/diagnostics/framework.json +1 -1
  15. package/.next/export-detail.json +5 -1
  16. package/.next/export-marker.json +6 -1
  17. package/.next/images-manifest.json +57 -1
  18. package/.next/next-minimal-server.js.nft.json +1 -1
  19. package/.next/next-server.js.nft.json +1 -1
  20. package/.next/prerender-manifest.json +108 -1
  21. package/.next/react-loadable-manifest.json +14 -14
  22. package/.next/required-server-files.json +324 -1
  23. package/.next/routes-manifest.json +71 -1
  24. package/.next/server/app/_not-found/page.js +2 -1
  25. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  26. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/_not-found.html +1 -1
  28. package/.next/server/app/_not-found.meta +1 -1
  29. package/.next/server/app/_not-found.rsc +15 -12
  30. package/.next/server/app/backlog/page.js +2 -1
  31. package/.next/server/app/backlog/page.js.nft.json +1 -1
  32. package/.next/server/app/backlog/page_client-reference-manifest.js +1 -1
  33. package/.next/server/app/backlog.html +1 -1
  34. package/.next/server/app/backlog.meta +1 -1
  35. package/.next/server/app/backlog.rsc +18 -15
  36. package/.next/server/app/docs/page.js +6 -5
  37. package/.next/server/app/docs/page.js.nft.json +1 -1
  38. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/docs.html +1 -1
  40. package/.next/server/app/docs.meta +1 -1
  41. package/.next/server/app/docs.rsc +19 -16
  42. package/.next/server/app/index.html +1 -1
  43. package/.next/server/app/index.meta +1 -1
  44. package/.next/server/app/index.rsc +18 -15
  45. package/.next/server/app/page.js +2 -1
  46. package/.next/server/app/page.js.nft.json +1 -1
  47. package/.next/server/app/page_client-reference-manifest.js +1 -1
  48. package/.next/server/app/settings/page.js +2 -1
  49. package/.next/server/app/settings/page.js.nft.json +1 -1
  50. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  51. package/.next/server/app/settings.html +1 -1
  52. package/.next/server/app/settings.meta +1 -1
  53. package/.next/server/app/settings.rsc +18 -15
  54. package/.next/server/chunks/354.js +28 -0
  55. package/.next/server/chunks/496.js +6 -0
  56. package/.next/server/chunks/719.js +1 -0
  57. package/.next/server/chunks/927.js +1 -0
  58. package/.next/server/functions-config-manifest.json +4 -1
  59. package/.next/server/middleware-build-manifest.js +1 -1
  60. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  61. package/.next/server/pages/404.html +1 -1
  62. package/.next/server/pages/500.html +1 -1
  63. package/.next/server/pages/_app.js +1 -1
  64. package/.next/server/pages/_app.js.nft.json +1 -1
  65. package/.next/server/pages/_document.js +1 -1
  66. package/.next/server/pages/_document.js.nft.json +1 -1
  67. package/.next/server/pages/_error.js +19 -1
  68. package/.next/server/pages/_error.js.nft.json +1 -1
  69. package/.next/server/pages-manifest.json +6 -1
  70. package/.next/server/server-reference-manifest.json +1 -1
  71. package/.next/server/webpack-runtime.js +1 -1
  72. package/.next/static/{jpBY_e0OMNAi3Fw2pJYM_ → QcceI_B55xOsryXxwZfhA}/_buildManifest.js +1 -1
  73. package/.next/static/chunks/138.b98511c56423f8bb.js +1 -0
  74. package/.next/static/chunks/337-d3bb75304d130513.js +1 -0
  75. package/.next/static/chunks/477.1a6ecfe53375bd9c.js +1 -0
  76. package/.next/static/chunks/487-1808785ba665f784.js +1 -0
  77. package/.next/static/chunks/544.e3db93036b5e0914.js +1 -0
  78. package/.next/static/chunks/795-10b9cf2562a5999c.js +1 -0
  79. package/.next/static/chunks/87c73c54-1f4741035a95c140.js +1 -0
  80. package/.next/static/chunks/902-d6926825a9fe8784.js +1 -0
  81. package/.next/static/chunks/955-c8f8f6235ae8f8c6.js +1 -0
  82. package/.next/static/chunks/996.e0a334e6ae90900e.js +1 -0
  83. package/.next/static/chunks/app/_not-found/page-44b1804abb44a34d.js +1 -0
  84. package/.next/static/chunks/app/backlog/page-2ea07643f5b6e06b.js +1 -0
  85. package/.next/static/chunks/app/docs/page-19686afe86f9756b.js +1 -0
  86. package/.next/static/chunks/app/layout-70b5f0deb13c27ef.js +1 -0
  87. package/.next/static/chunks/app/page-1682e21c1ab5320f.js +1 -0
  88. package/.next/static/chunks/app/settings/page-84e16c9638d657e4.js +1 -0
  89. package/.next/static/chunks/framework-152a1bc8c81c7458.js +1 -0
  90. package/.next/static/chunks/main-6c877f3851a8d718.js +1 -0
  91. package/.next/static/chunks/main-app-123e879c5a937a00.js +1 -0
  92. package/.next/static/chunks/pages/_app-a050a8e6e4fb04cf.js +1 -0
  93. package/.next/static/chunks/pages/_error-3e422ffd891594de.js +1 -0
  94. package/.next/static/chunks/webpack-03b96ab0f7ba7feb.js +1 -0
  95. package/.next/static/css/b301ab0424111664.css +1 -0
  96. package/.next/trace +45 -44
  97. package/.next/types/cache-life.d.ts +3 -3
  98. package/CHANGELOG.md +8 -0
  99. package/out/404.html +1 -1
  100. package/out/_next/static/{jpBY_e0OMNAi3Fw2pJYM_ → QcceI_B55xOsryXxwZfhA}/_buildManifest.js +1 -1
  101. package/out/_next/static/chunks/138.b98511c56423f8bb.js +1 -0
  102. package/out/_next/static/chunks/337-d3bb75304d130513.js +1 -0
  103. package/out/_next/static/chunks/477.1a6ecfe53375bd9c.js +1 -0
  104. package/out/_next/static/chunks/487-1808785ba665f784.js +1 -0
  105. package/out/_next/static/chunks/544.e3db93036b5e0914.js +1 -0
  106. package/out/_next/static/chunks/795-10b9cf2562a5999c.js +1 -0
  107. package/out/_next/static/chunks/87c73c54-1f4741035a95c140.js +1 -0
  108. package/out/_next/static/chunks/902-d6926825a9fe8784.js +1 -0
  109. package/out/_next/static/chunks/955-c8f8f6235ae8f8c6.js +1 -0
  110. package/out/_next/static/chunks/996.e0a334e6ae90900e.js +1 -0
  111. package/out/_next/static/chunks/app/_not-found/page-44b1804abb44a34d.js +1 -0
  112. package/out/_next/static/chunks/app/backlog/page-2ea07643f5b6e06b.js +1 -0
  113. package/out/_next/static/chunks/app/docs/page-19686afe86f9756b.js +1 -0
  114. package/out/_next/static/chunks/app/layout-70b5f0deb13c27ef.js +1 -0
  115. package/out/_next/static/chunks/app/page-1682e21c1ab5320f.js +1 -0
  116. package/out/_next/static/chunks/app/settings/page-84e16c9638d657e4.js +1 -0
  117. package/out/_next/static/chunks/framework-152a1bc8c81c7458.js +1 -0
  118. package/out/_next/static/chunks/main-6c877f3851a8d718.js +1 -0
  119. package/out/_next/static/chunks/main-app-123e879c5a937a00.js +1 -0
  120. package/out/_next/static/chunks/pages/_app-a050a8e6e4fb04cf.js +1 -0
  121. package/out/_next/static/chunks/pages/_error-3e422ffd891594de.js +1 -0
  122. package/out/_next/static/chunks/webpack-03b96ab0f7ba7feb.js +1 -0
  123. package/out/_next/static/css/b301ab0424111664.css +1 -0
  124. package/out/backlog.html +1 -1
  125. package/out/backlog.txt +18 -15
  126. package/out/docs.html +1 -1
  127. package/out/docs.txt +19 -16
  128. package/out/index.html +1 -1
  129. package/out/index.txt +18 -15
  130. package/out/settings.html +1 -1
  131. package/out/settings.txt +18 -15
  132. package/package.json +2 -2
  133. package/.next/server/chunks/295.js +0 -6
  134. package/.next/server/chunks/467.js +0 -1
  135. package/.next/server/chunks/533.js +0 -1
  136. package/.next/server/chunks/639.js +0 -15
  137. package/.next/static/chunks/140.d5e67b269d70c096.js +0 -1
  138. package/.next/static/chunks/142.82cd6bec804102b9.js +0 -1
  139. package/.next/static/chunks/18.1e768729d24d723d.js +0 -1
  140. package/.next/static/chunks/188.27288b5094867f29.js +0 -1
  141. package/.next/static/chunks/273-95c2836f1a6dfb23.js +0 -1
  142. package/.next/static/chunks/855-a193e1d785e334cf.js +0 -2
  143. package/.next/static/chunks/87c73c54-18883d7ce69be0ce.js +0 -1
  144. package/.next/static/chunks/892-70ddfae0f8c9ee9f.js +0 -1
  145. package/.next/static/chunks/954-73b5906ca7819e42.js +0 -1
  146. package/.next/static/chunks/972-efb0c31aeb3e1619.js +0 -1
  147. package/.next/static/chunks/app/_not-found/page-3884acf5e0397003.js +0 -1
  148. package/.next/static/chunks/app/backlog/page-ade60a21a3597509.js +0 -1
  149. package/.next/static/chunks/app/docs/page-5f69fffac832d77c.js +0 -1
  150. package/.next/static/chunks/app/layout-a0acefd9b75ec3b8.js +0 -1
  151. package/.next/static/chunks/app/page-cb3aec9c8077eab1.js +0 -1
  152. package/.next/static/chunks/app/settings/page-82693b6134aafc85.js +0 -1
  153. package/.next/static/chunks/framework-fdd4ff226e9057cd.js +0 -1
  154. package/.next/static/chunks/main-39090d49dd3cd8c7.js +0 -1
  155. package/.next/static/chunks/main-app-bb0a6e7769aa4668.js +0 -1
  156. package/.next/static/chunks/pages/_app-3e3e3e64529ea027.js +0 -1
  157. package/.next/static/chunks/pages/_error-8cfbe37f68950a2b.js +0 -1
  158. package/.next/static/chunks/webpack-a21f388d2a000173.js +0 -1
  159. package/.next/static/css/a979e4e0673642a5.css +0 -1
  160. package/out/_next/static/chunks/140.d5e67b269d70c096.js +0 -1
  161. package/out/_next/static/chunks/142.82cd6bec804102b9.js +0 -1
  162. package/out/_next/static/chunks/18.1e768729d24d723d.js +0 -1
  163. package/out/_next/static/chunks/188.27288b5094867f29.js +0 -1
  164. package/out/_next/static/chunks/273-95c2836f1a6dfb23.js +0 -1
  165. package/out/_next/static/chunks/855-a193e1d785e334cf.js +0 -2
  166. package/out/_next/static/chunks/87c73c54-18883d7ce69be0ce.js +0 -1
  167. package/out/_next/static/chunks/892-70ddfae0f8c9ee9f.js +0 -1
  168. package/out/_next/static/chunks/954-73b5906ca7819e42.js +0 -1
  169. package/out/_next/static/chunks/972-efb0c31aeb3e1619.js +0 -1
  170. package/out/_next/static/chunks/app/_not-found/page-3884acf5e0397003.js +0 -1
  171. package/out/_next/static/chunks/app/backlog/page-ade60a21a3597509.js +0 -1
  172. package/out/_next/static/chunks/app/docs/page-5f69fffac832d77c.js +0 -1
  173. package/out/_next/static/chunks/app/layout-a0acefd9b75ec3b8.js +0 -1
  174. package/out/_next/static/chunks/app/page-cb3aec9c8077eab1.js +0 -1
  175. package/out/_next/static/chunks/app/settings/page-82693b6134aafc85.js +0 -1
  176. package/out/_next/static/chunks/framework-fdd4ff226e9057cd.js +0 -1
  177. package/out/_next/static/chunks/main-39090d49dd3cd8c7.js +0 -1
  178. package/out/_next/static/chunks/main-app-bb0a6e7769aa4668.js +0 -1
  179. package/out/_next/static/chunks/pages/_app-3e3e3e64529ea027.js +0 -1
  180. package/out/_next/static/chunks/pages/_error-8cfbe37f68950a2b.js +0 -1
  181. package/out/_next/static/chunks/webpack-a21f388d2a000173.js +0 -1
  182. package/out/_next/static/css/a979e4e0673642a5.css +0 -1
  183. /package/.next/static/{jpBY_e0OMNAi3Fw2pJYM_ → QcceI_B55xOsryXxwZfhA}/_ssgManifest.js +0 -0
  184. /package/out/_next/static/{jpBY_e0OMNAi3Fw2pJYM_ → QcceI_B55xOsryXxwZfhA}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18],{1602:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},6790:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},8151:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},4593:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]])},8183:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},7929:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},1455:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},6101:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},5138:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("SquarePlus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},2148:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},4212:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]])},5677:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(6922).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},5595:(t,e,i)=>{i.d(e,{n:()=>h});var n=i(7620),r=i(1140),s=i(3321),a=i(4034),o=i(9051),l=class extends a.Q{#t;#e=void 0;#i;#n;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,o.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#i,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,o.EN)(e.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#i?.state.status==="pending"&&this.#i.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#i?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#i?.removeObserver(this),this.#i=void 0,this.#r(),this.#s()}mutate(t,e){return this.#n=e,this.#i?.removeObserver(this),this.#i=this.#t.getMutationCache().build(this.#t,this.options),this.#i.addObserver(this),this.#i.execute(t)}#r(){let t=this.#i?.state??(0,r.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#s(t){s.jG.batch(()=>{if(this.#n&&this.hasListeners()){let e=this.#e.variables,i=this.#e.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,e,i,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(t.data,null,e,i,n)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,e,i,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(void 0,t.error,e,i,n)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}},u=i(8367);function h(t,e){let i=(0,u.jE)(e),[r]=n.useState(()=>new l(i,t));n.useEffect(()=>{r.setOptions(t)},[r,t]);let a=n.useSyncExternalStore(n.useCallback(t=>r.subscribe(s.jG.batchCalls(t)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),h=n.useCallback((t,e)=>{r.mutate(t,e).catch(o.lQ)},[r]);if(a.error&&(0,o.GU)(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:h,mutateAsync:a.mutate}}},9857:(t,e,i)=>{i.d(e,{I:()=>A});var n=i(9524),r=i(3321),s=i(8217),a=i(4034),o=i(5756),l=i(9051),u=i(7685),h=class extends a.Q{constructor(t,e){super(),this.options=e,this.#t=t,this.#a=null,this.#o=(0,o.T)(),this.bindMethods(),this.setOptions(e)}#t;#l=void 0;#u=void 0;#e=void 0;#h;#d;#o;#a;#c;#p;#m;#f;#g;#y;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#l.addObserver(this),d(this.#l,this.options)?this.#x():this.updateResult(),this.#w())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.#l,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.#l,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#l.removeObserver(this)}setOptions(t){let e=this.options,i=this.#l;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.Eh)(this.options.enabled,this.#l))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#l.setOptions(this.options),e._defaulted&&!(0,l.f8)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#l,observer:this});let n=this.hasListeners();n&&p(this.#l,i,this.options,e)&&this.#x(),this.updateResult(),n&&(this.#l!==i||(0,l.Eh)(this.options.enabled,this.#l)!==(0,l.Eh)(e.enabled,this.#l)||(0,l.d2)(this.options.staleTime,this.#l)!==(0,l.d2)(e.staleTime,this.#l))&&this.#T();let r=this.#S();n&&(this.#l!==i||(0,l.Eh)(this.options.enabled,this.#l)!==(0,l.Eh)(e.enabled,this.#l)||r!==this.#y)&&this.#P(r)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),i=this.createResult(e,t);return(0,l.f8)(this.getCurrentResult(),i)||(this.#e=i,this.#d=this.options,this.#h=this.#l.state),i}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(t,i)=>(this.trackProp(i),e?.(i),"promise"!==i||(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#o.status||this.#o.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,i))})}trackProp(t){this.#v.add(t)}getCurrentQuery(){return this.#l}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),i=this.#t.getQueryCache().build(this.#t,e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return this.#x({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#x(t){this.#k();let e=this.#l.fetch(this.options,t);return t?.throwOnError||(e=e.catch(l.lQ)),e}#T(){this.#b();let t=(0,l.d2)(this.options.staleTime,this.#l);if(l.S$||this.#e.isStale||!(0,l.gn)(t))return;let e=(0,l.j3)(this.#e.dataUpdatedAt,t);this.#f=u.zs.setTimeout(()=>{this.#e.isStale||this.updateResult()},e+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#l):this.options.refetchInterval)??!1}#P(t){this.#_(),this.#y=t,!l.S$&&!1!==(0,l.Eh)(this.options.enabled,this.#l)&&(0,l.gn)(this.#y)&&0!==this.#y&&(this.#g=u.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#x()},this.#y))}#w(){this.#T(),this.#P(this.#S())}#b(){this.#f&&(u.zs.clearTimeout(this.#f),this.#f=void 0)}#_(){this.#g&&(u.zs.clearInterval(this.#g),this.#g=void 0)}createResult(t,e){let i;let n=this.#l,r=this.options,a=this.#e,u=this.#h,h=this.#d,c=t!==n?t.state:this.#u,{state:f}=t,g={...f},y=!1;if(e._optimisticResults){let i=this.hasListeners(),a=!i&&d(t,e),o=i&&p(t,n,e,r);(a||o)&&(g={...g,...(0,s.k)(f.data,t.options)}),"isRestoring"===e._optimisticResults&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:x,status:w}=g;i=g.data;let b=!1;if(void 0!==e.placeholderData&&void 0===i&&"pending"===w){let t;a?.isPlaceholderData&&e.placeholderData===h?.placeholderData?(t=a.data,b=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#m?.state.data,this.#m):e.placeholderData,void 0!==t&&(w="success",i=(0,l.pl)(a?.data,t,e),y=!0)}if(e.select&&void 0!==i&&!b){if(a&&i===u?.data&&e.select===this.#c)i=this.#p;else try{this.#c=e.select,i=e.select(i),i=(0,l.pl)(a?.data,i,e),this.#p=i,this.#a=null}catch(t){this.#a=t}}this.#a&&(v=this.#a,i=this.#p,x=Date.now(),w="error");let _="fetching"===g.fetchStatus,k="pending"===w,T="error"===w,S=k&&_,P=void 0!==i,M={status:w,fetchStatus:g.fetchStatus,isPending:k,isSuccess:"success"===w,isError:T,isInitialLoading:S,isLoading:S,data:i,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:x,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>c.dataUpdateCount||g.errorUpdateCount>c.errorUpdateCount,isFetching:_,isRefetching:_&&!k,isLoadingError:T&&!P,isPaused:"paused"===g.fetchStatus,isPlaceholderData:y,isRefetchError:T&&P,isStale:m(t,e),refetch:this.refetch,promise:this.#o,isEnabled:!1!==(0,l.Eh)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=void 0!==M.data,i="error"===M.status&&!e,r=t=>{i?t.reject(M.error):e&&t.resolve(M.data)},s=()=>{r(this.#o=M.promise=(0,o.T)())},a=this.#o;switch(a.status){case"pending":t.queryHash===n.queryHash&&r(a);break;case"fulfilled":(i||M.data!==a.value)&&s();break;case"rejected":i&&M.error===a.reason||s()}}return M}updateResult(){let t=this.#e,e=this.createResult(this.#l,this.options);this.#h=this.#l.state,this.#d=this.options,void 0!==this.#h.data&&(this.#m=this.#l),(0,l.f8)(e,t)||(this.#e=e,this.#s({listeners:(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,i="function"==typeof e?e():e;if("all"===i||!i&&!this.#v.size)return!0;let n=new Set(i??this.#v);return this.options.throwOnError&&n.add("error"),Object.keys(this.#e).some(e=>this.#e[e]!==t[e]&&n.has(e))})()}))}#k(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#l)return;let e=this.#l;this.#l=t,this.#u=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#w()}#s(t){r.jG.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#e)}),this.#t.getQueryCache().notify({query:this.#l,type:"observerResultsUpdated"})})}};function d(t,e){return!1!==(0,l.Eh)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)||void 0!==t.state.data&&c(t,e,e.refetchOnMount)}function c(t,e,i){if(!1!==(0,l.Eh)(e.enabled,t)&&"static"!==(0,l.d2)(e.staleTime,t)){let n="function"==typeof i?i(t):i;return"always"===n||!1!==n&&m(t,e)}return!1}function p(t,e,i,n){return(t!==e||!1===(0,l.Eh)(n.enabled,t))&&(!i.suspense||"error"!==t.state.status)&&m(t,i)}function m(t,e){return!1!==(0,l.Eh)(e.enabled,t)&&t.isStaleByTime((0,l.d2)(e.staleTime,t))}var f=i(7620),g=i(8367);i(4568);var y=f.createContext(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),v=()=>f.useContext(y),x=(t,e,i)=>{let n=(null==i?void 0:i.state.error)&&"function"==typeof t.throwOnError?(0,l.GU)(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||n)&&!e.isReset()&&(t.retryOnMount=!1)},w=t=>{f.useEffect(()=>{t.clearReset()},[t])},b=t=>{let{result:e,errorResetBoundary:i,throwOnError:n,query:r,suspense:s}=t;return e.isError&&!i.isReset()&&!e.isFetching&&r&&(s&&void 0===e.data||(0,l.GU)(n,[e.error,r]))},_=f.createContext(!1),k=()=>f.useContext(_);_.Provider;var T=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),i=t.staleTime;t.staleTime="function"==typeof i?(...t)=>e(i(...t)):e(i),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},S=(t,e)=>t.isLoading&&t.isFetching&&!e,P=(t,e)=>t?.suspense&&e.isPending,M=(t,e,i)=>e.fetchOptimistic(t).catch(()=>{i.clearReset()});function A(t,e){return function(t,e,i){var n,s,a,o;let u=k(),h=v(),d=(0,g.jE)(i),c=d.defaultQueryOptions(t);null===(s=d.getDefaultOptions().queries)||void 0===s||null===(n=s._experimental_beforeQuery)||void 0===n||n.call(s,c);let p=d.getQueryCache().get(c.queryHash);c._optimisticResults=u?"isRestoring":"optimistic",T(c),x(c,h,p),w(h);let m=!d.getQueryCache().get(c.queryHash),[y]=f.useState(()=>new e(d,c)),_=y.getOptimisticResult(c),A=!u&&!1!==t.subscribed;if(f.useSyncExternalStore(f.useCallback(t=>{let e=A?y.subscribe(r.jG.batchCalls(t)):l.lQ;return y.updateResult(),e},[y,A]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),f.useEffect(()=>{y.setOptions(c)},[c,y]),P(c,_))throw M(c,y,h);if(b({result:_,errorResetBoundary:h,throwOnError:c.throwOnError,query:p,suspense:c.suspense}))throw _.error;if(null===(o=d.getDefaultOptions().queries)||void 0===o||null===(a=o._experimental_afterQuery)||void 0===a||a.call(o,c,_),c.experimental_prefetchInRender&&!l.S$&&S(_,u)){let t=m?M(c,y,h):null==p?void 0:p.promise;null==t||t.catch(l.lQ).finally(()=>{y.updateResult()})}return c.notifyOnChangeProps?_:y.trackResult(_)}(t,h,e)}},5862:(t,e,i)=>{i.d(e,{q:()=>r});let n={};function r(){return n}},5616:(t,e,i)=>{i.d(e,{G:()=>r});var n=i(3251);function r(t){let e=(0,n.a)(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}},8707:(t,e,i)=>{i.d(e,{x:()=>r});var n=i(1651);function r(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];let s=n.w.bind(null,t||i.find(t=>"object"==typeof t));return i.map(s)}},7515:(t,e,i)=>{i.d(e,{F6:()=>a,Nw:()=>s,_P:()=>o,my:()=>n,w4:()=>r});let n=6048e5,r=864e5,s=43200,a=1440,o=Symbol.for("constructDateFrom")},1651:(t,e,i)=>{i.d(e,{w:()=>r});var n=i(7515);function r(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&n._P in t?t[n._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},5702:(t,e,i)=>{i.d(e,{GP:()=>O});var n=i(663),r=i(5862),s=i(5616),a=i(8707),o=i(7515),l=i(3251);function u(t,e){let i=(0,l.a)(t,null==e?void 0:e.in);return i.setHours(0,0,0,0),i}function h(t,e){var i,n,s,a,o,u,h,d;let c=(0,r.q)(),p=null!==(d=null!==(h=null!==(u=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e?void 0:null===(n=e.locale)||void 0===n?void 0:null===(i=n.options)||void 0===i?void 0:i.weekStartsOn)&&void 0!==u?u:c.weekStartsOn)&&void 0!==h?h:null===(a=c.locale)||void 0===a?void 0:null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==d?d:0,m=(0,l.a)(t,null==e?void 0:e.in),f=m.getDay();return m.setDate(m.getDate()-((f<p?7:0)+f-p)),m.setHours(0,0,0,0),m}function d(t,e){return h(t,{...e,weekStartsOn:1})}var c=i(1651);function p(t,e){let i=(0,l.a)(t,null==e?void 0:e.in),n=i.getFullYear(),r=(0,c.w)(i,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let s=d(r),a=(0,c.w)(i,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let o=d(a);return i.getTime()>=s.getTime()?n+1:i.getTime()>=o.getTime()?n:n-1}function m(t,e){var i,n,s,a,o,u,d,p;let m=(0,l.a)(t,null==e?void 0:e.in),f=m.getFullYear(),g=(0,r.q)(),y=null!==(p=null!==(d=null!==(u=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e?void 0:null===(n=e.locale)||void 0===n?void 0:null===(i=n.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==u?u:g.firstWeekContainsDate)&&void 0!==d?d:null===(a=g.locale)||void 0===a?void 0:null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==p?p:1,v=(0,c.w)((null==e?void 0:e.in)||t,0);v.setFullYear(f+1,0,y),v.setHours(0,0,0,0);let x=h(v,e),w=(0,c.w)((null==e?void 0:e.in)||t,0);w.setFullYear(f,0,y),w.setHours(0,0,0,0);let b=h(w,e);return+m>=+x?f+1:+m>=+b?f:f-1}function f(t,e){let i=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+i}let g={y(t,e){let i=t.getFullYear(),n=i>0?i:1-i;return f("yy"===e?n%100:n,e.length)},M(t,e){let i=t.getMonth();return"M"===e?String(i+1):f(i+1,2)},d:(t,e)=>f(t.getDate(),e.length),a(t,e){let i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>f(t.getHours()%12||12,e.length),H:(t,e)=>f(t.getHours(),e.length),m:(t,e)=>f(t.getMinutes(),e.length),s:(t,e)=>f(t.getSeconds(),e.length),S(t,e){let i=e.length;return f(Math.trunc(t.getMilliseconds()*Math.pow(10,i-3)),e.length)}},y={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},v={G:function(t,e,i){let n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(t,e,i){if("yo"===e){let e=t.getFullYear();return i.ordinalNumber(e>0?e:1-e,{unit:"year"})}return g.y(t,e)},Y:function(t,e,i,n){let r=m(t,n),s=r>0?r:1-r;return"YY"===e?f(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):f(s,e.length)},R:function(t,e){return f(p(t),e.length)},u:function(t,e){return f(t.getFullYear(),e.length)},Q:function(t,e,i){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return f(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,i){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return f(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,i){let n=t.getMonth();switch(e){case"M":case"MM":return g.M(t,e);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,i){let n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return f(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){let s=function(t,e){let i=(0,l.a)(t,null==e?void 0:e.in);return Math.round((+h(i,e)-+function(t,e){var i,n,s,a,o,l,u,d;let p=(0,r.q)(),f=null!==(d=null!==(u=null!==(l=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e?void 0:null===(n=e.locale)||void 0===n?void 0:null===(i=n.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:p.firstWeekContainsDate)&&void 0!==u?u:null===(a=p.locale)||void 0===a?void 0:null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==d?d:1,g=m(t,e),y=(0,c.w)((null==e?void 0:e.in)||t,0);return y.setFullYear(g,0,f),y.setHours(0,0,0,0),h(y,e)}(i,e))/o.my)+1}(t,n);return"wo"===e?i.ordinalNumber(s,{unit:"week"}):f(s,e.length)},I:function(t,e,i){let n=function(t,e){let i=(0,l.a)(t,void 0);return Math.round((+d(i)-+function(t,e){let i=p(t,void 0),n=(0,c.w)(t,0);return n.setFullYear(i,0,4),n.setHours(0,0,0,0),d(n)}(i))/o.my)+1}(t);return"Io"===e?i.ordinalNumber(n,{unit:"week"}):f(n,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):g.d(t,e)},D:function(t,e,i){let n=function(t,e){let i=(0,l.a)(t,void 0);return function(t,e,i){let[n,r]=(0,a.x)(void 0,t,e),l=u(n),h=u(r);return Math.round((+l-(0,s.G)(l)-(+h-(0,s.G)(h)))/o.w4)}(i,function(t,e){let i=(0,l.a)(t,void 0);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}(i))+1}(t);return"Do"===e?i.ordinalNumber(n,{unit:"dayOfYear"}):f(n,e.length)},E:function(t,e,i){let n=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,i,n){let r=t.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return f(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){let r=t.getDay(),s=(r-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return f(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i){let n=t.getDay(),r=0===n?7:n;switch(e){case"i":return String(r);case"ii":return f(r,e.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,i){let n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,i){let n;let r=t.getHours();switch(n=12===r?y.noon:0===r?y.midnight:r/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,i){let n;let r=t.getHours();switch(n=r>=17?y.evening:r>=12?y.afternoon:r>=4?y.morning:y.night,e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return g.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):g.H(t,e)},K:function(t,e,i){let n=t.getHours()%12;return"Ko"===e?i.ordinalNumber(n,{unit:"hour"}):f(n,e.length)},k:function(t,e,i){let n=t.getHours();return(0===n&&(n=24),"ko"===e)?i.ordinalNumber(n,{unit:"hour"}):f(n,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):g.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):g.s(t,e)},S:function(t,e){return g.S(t,e)},X:function(t,e,i){let n=t.getTimezoneOffset();if(0===n)return"Z";switch(e){case"X":return w(n);case"XXXX":case"XX":return b(n);default:return b(n,":")}},x:function(t,e,i){let n=t.getTimezoneOffset();switch(e){case"x":return w(n);case"xxxx":case"xx":return b(n);default:return b(n,":")}},O:function(t,e,i){let n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+x(n,":");default:return"GMT"+b(n,":")}},z:function(t,e,i){let n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+x(n,":");default:return"GMT"+b(n,":")}},t:function(t,e,i){return f(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return f(+t,e.length)}};function x(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t>0?"-":"+",n=Math.abs(t),r=Math.trunc(n/60),s=n%60;return 0===s?i+String(r):i+String(r)+e+f(s,2)}function w(t,e){return t%60==0?(t>0?"-":"+")+f(Math.abs(t)/60,2):b(t,e)}function b(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=Math.abs(t);return(t>0?"-":"+")+f(Math.trunc(i/60),2)+e+f(i%60,2)}let _=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},k=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},T={p:k,P:(t,e)=>{let i;let n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return _(t,e);switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",_(r,e)).replace("{{time}}",k(s,e))}},S=/^D+$/,P=/^Y+$/,M=["D","DD","YY","YYYY"],A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,E=/^'([^]*?)'?$/,R=/''/g,D=/[a-zA-Z]/;function O(t,e,i){var s,a,o,u,h,d,c,p,m,f,g,y,x,w,b,_,k,O;let j=(0,r.q)(),V=null!==(f=null!==(m=null==i?void 0:i.locale)&&void 0!==m?m:j.locale)&&void 0!==f?f:n.c,I=null!==(w=null!==(x=null!==(y=null!==(g=null==i?void 0:i.firstWeekContainsDate)&&void 0!==g?g:null==i?void 0:null===(a=i.locale)||void 0===a?void 0:null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==y?y:j.firstWeekContainsDate)&&void 0!==x?x:null===(u=j.locale)||void 0===u?void 0:null===(o=u.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==w?w:1,F=null!==(O=null!==(k=null!==(_=null!==(b=null==i?void 0:i.weekStartsOn)&&void 0!==b?b:null==i?void 0:null===(d=i.locale)||void 0===d?void 0:null===(h=d.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==_?_:j.weekStartsOn)&&void 0!==k?k:null===(p=j.locale)||void 0===p?void 0:null===(c=p.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==O?O:0,L=(0,l.a)(t,null==i?void 0:i.in);if(!(L instanceof Date||"object"==typeof L&&"[object Date]"===Object.prototype.toString.call(L))&&"number"!=typeof L||isNaN(+(0,l.a)(L)))throw RangeError("Invalid time value");let N=e.match(C).map(t=>{let e=t[0];return"p"===e||"P"===e?(0,T[e])(t,V.formatLong):t}).join("").match(A).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let e=t[0];if("'"===e)return{isToken:!1,value:function(t){let e=t.match(E);return e?e[1].replace(R,"'"):t}(t)};if(v[e])return{isToken:!0,value:t};if(e.match(D))throw RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});V.localize.preprocessor&&(N=V.localize.preprocessor(L,N));let B={firstWeekContainsDate:I,weekStartsOn:F,locale:V};return N.map(n=>{if(!n.isToken)return n.value;let r=n.value;return(!(null==i?void 0:i.useAdditionalWeekYearTokens)&&P.test(r)||!(null==i?void 0:i.useAdditionalDayOfYearTokens)&&S.test(r))&&function(t,e,i){let n=function(t,e,i){let n="Y"===t[0]?"years":"days of the month";return"Use `".concat(t.toLowerCase(),"` instead of `").concat(t,"` (in `").concat(e,"`) for formatting ").concat(n," to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(t,e,i);if(console.warn(n),M.includes(t))throw RangeError(n)}(r,e,String(t)),(0,v[r[0]])(L,r,V.localize,B)}).join("")}},4619:(t,e,i)=>{i.d(e,{m:()=>d});var n=i(1651),r=i(663),s=i(5862),a=i(5616),o=i(8707),l=i(3251);function u(t,e){let i=+(0,l.a)(t)-+(0,l.a)(e);return i<0?-1:i>0?1:i}var h=i(7515);function d(t,e){return function(t,e,i){var n,d,c,p,m,f;let g;let y=(0,s.q)(),v=null!==(d=null!==(n=null==i?void 0:i.locale)&&void 0!==n?n:y.locale)&&void 0!==d?d:r.c,x=u(t,e);if(isNaN(x))throw RangeError("Invalid time value");let w=Object.assign({},i,{addSuffix:null==i?void 0:i.addSuffix,comparison:x}),[b,_]=(0,o.x)(null==i?void 0:i.in,...x>0?[e,t]:[t,e]),k=(c=_,p=b,(f=null==void 0?void 0:(void 0).roundingMethod,t=>{let e=(f?Math[f]:Math.trunc)(t);return 0===e?0:e})((+(0,l.a)(c)-+(0,l.a)(p))/1e3)),T=Math.round((k-((0,a.G)(_)-(0,a.G)(b))/1e3)/60);if(T<2){if(null==i?void 0:i.includeSeconds){if(k<5)return v.formatDistance("lessThanXSeconds",5,w);if(k<10)return v.formatDistance("lessThanXSeconds",10,w);if(k<20)return v.formatDistance("lessThanXSeconds",20,w);if(k<40)return v.formatDistance("halfAMinute",0,w);else if(k<60)return v.formatDistance("lessThanXMinutes",1,w);else return v.formatDistance("xMinutes",1,w)}return 0===T?v.formatDistance("lessThanXMinutes",1,w):v.formatDistance("xMinutes",T,w)}if(T<45)return v.formatDistance("xMinutes",T,w);if(T<90)return v.formatDistance("aboutXHours",1,w);if(T<h.F6){let t=Math.round(T/60);return v.formatDistance("aboutXHours",t,w)}if(T<2520)return v.formatDistance("xDays",1,w);if(T<h.Nw){let t=Math.round(T/h.F6);return v.formatDistance("xDays",t,w)}if(T<2*h.Nw)return g=Math.round(T/h.Nw),v.formatDistance("aboutXMonths",g,w);if((g=function(t,e,i){let[n,r,s]=(0,o.x)(void 0,t,t,e),a=u(r,s),h=Math.abs(function(t,e,i){let[n,r]=(0,o.x)(void 0,t,e);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,s));if(h<1)return 0;1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*h);let d=u(r,s)===-a;(function(t,e){let i=(0,l.a)(t,void 0);return+function(t,e){let i=(0,l.a)(t,null==e?void 0:e.in);return i.setHours(23,59,59,999),i}(i,void 0)==+function(t,e){let i=(0,l.a)(t,null==e?void 0:e.in),n=i.getMonth();return i.setFullYear(i.getFullYear(),n+1,0),i.setHours(23,59,59,999),i}(i,void 0)})(n)&&1===h&&1===u(n,s)&&(d=!1);let c=a*(h-+d);return 0===c?0:c}(_,b))<12){let t=Math.round(T/h.Nw);return v.formatDistance("xMonths",t,w)}{let t=g%12,e=Math.trunc(g/12);return t<3?v.formatDistance("aboutXYears",e,w):t<9?v.formatDistance("overXYears",e,w):v.formatDistance("almostXYears",e+1,w)}}(t,(0,n.w)(t,Date.now()),e)}},663:(t,e,i)=>{i.d(e,{c:()=>u});let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function r(t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}let s={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function o(t){return(e,i)=>{let n;if("formatting"===((null==i?void 0:i.context)?String(i.context):"standalone")&&t.formattingValues){let e=t.defaultFormattingWidth||t.defaultWidth,r=(null==i?void 0:i.width)?String(i.width):e;n=t.formattingValues[r]||t.formattingValues[e]}else{let e=t.defaultWidth,r=(null==i?void 0:i.width)?String(i.width):t.defaultWidth;n=t.values[r]||t.values[e]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function l(t){return function(e){let i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;let o=a[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i}(l,t=>t.test(o)):function(t,e){for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i}(l,t=>t.test(o));return i=t.valueCallback?t.valueCallback(u):u,{value:i=n.valueCallback?n.valueCallback(i):i,rest:e.slice(o.length)}}}let u={code:"en-US",formatDistance:(t,e,i)=>{let r;let s=n[t];return(r="string"==typeof s?s:1===e?s.one:s.other.replace("{{count}}",e.toString()),null==i?void 0:i.addSuffix)?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:s,formatRelative:(t,e,i,n)=>a[t],localize:{ordinalNumber:(t,e)=>{let i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:o({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:o({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:o({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:o({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:o({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(t){return function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;let r=n[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];return{value:a=i.valueCallback?i.valueCallback(a):a,rest:e.slice(r.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},3251:(t,e,i)=>{i.d(e,{a:()=>r});var n=i(1651);function r(t,e){return(0,n.w)(e||t,t)}},4028:(t,e,i)=>{i.d(e,{N:()=>x});var n=i(4568),r=i(7620),s=i(7233),a=i(2385),o=i(6154),l=i(5673),u=i(2339),h=i(1768);function d(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,u.s)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function p(t){var e,i;let{children:s,isPresent:a,anchorX:o,root:l}=t,u=(0,r.useId)(),p=(0,r.useRef)(null),m=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=(0,r.useContext)(h.Q),g=function(...t){return r.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=d(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():d(t[e],null)}}}}(...t),t)}(p,null!==(i=null===(e=s.props)||void 0===e?void 0:e.ref)&&void 0!==i?i:null==s?void 0:s.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:n,right:r}=m.current;if(a||!p.current||!t||!e)return;p.current.dataset.motionPopId=u;let s=document.createElement("style");f&&(s.nonce=f);let h=null!=l?l:document.head;return h.appendChild(s),s.sheet&&s.sheet.insertRule('\n [data-motion-pop-id="'.concat(u,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===o?"left: ".concat(n):"right: ".concat(r),"px !important;\n top: ").concat(i,"px !important;\n }\n ")),()=>{h.contains(s)&&h.removeChild(s)}},[a]),(0,n.jsx)(c,{isPresent:a,childRef:p,sizeRef:m,children:r.cloneElement(s,{ref:g})})}let m=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:o,custom:u,presenceAffectsLayout:h,mode:d,anchorX:c,root:m}=t,g=(0,a.M)(f),y=(0,r.useId)(),v=!0,x=(0,r.useMemo)(()=>(v=!1,{id:y,initial:i,isPresent:s,custom:u,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;o&&o()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[s,g,o]);return h&&v&&(x={...x}),(0,r.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[s]),r.useEffect(()=>{s||g.size||!o||o()},[s]),"popLayout"===d&&(e=(0,n.jsx)(p,{isPresent:s,anchorX:c,root:m,children:e})),(0,n.jsx)(l.t.Provider,{value:x,children:e})};function f(){return new Map}var g=i(8678);let y=t=>t.key||"";function v(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let x=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:d="sync",propagate:c=!1,anchorX:p="left",root:f}=t,[x,w]=(0,g.xQ)(c),b=(0,r.useMemo)(()=>v(e),[e]),_=c&&!x?[]:b.map(y),k=(0,r.useRef)(!0),T=(0,r.useRef)(b),S=(0,a.M)(()=>new Map),P=(0,r.useRef)(new Set),[M,A]=(0,r.useState)(b),[C,E]=(0,r.useState)(b);(0,o.E)(()=>{k.current=!1,T.current=b;for(let t=0;t<C.length;t++){let e=y(C[t]);_.includes(e)?(S.delete(e),P.current.delete(e)):!0!==S.get(e)&&S.set(e,!1)}},[C,_.length,_.join("-")]);let R=[];if(b!==M){let t=[...b];for(let e=0;e<C.length;e++){let i=C[e],n=y(i);_.includes(n)||(t.splice(e,0,i),R.push(i))}return"wait"===d&&R.length&&(t=R),E(v(t)),A(b),null}let{forceRender:D}=(0,r.useContext)(s.L);return(0,n.jsx)(n.Fragment,{children:C.map(t=>{let e=y(t),r=(!c||!!x)&&(b===C||_.includes(e));return(0,n.jsx)(m,{isPresent:r,initial:(!k.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:d,root:f,onExitComplete:r?void 0:()=>{if(P.current.has(e)||(P.current.add(e),!S.has(e)))return;S.set(e,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==D||D(),E(T.current),c&&(null==w||w()),u&&u())},anchorX:p,children:t},e)})})}},8678:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(7620),r=i(5673);function s(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:a}=e,o=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(o)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(o),[o,s,t]);return!i&&s?[!1,l]:[!0]}},7233:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(7620).createContext)({})},1768:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(7620).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},5673:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(7620).createContext)(null)},934:(t,e,i)=>{let n;i.d(e,{P:()=>sD});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(r),a=(t,e,i)=>i>e?e:i<t?t:i,o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...o,transform:t=>a(0,1,t)},u={...o,default:1},h=t=>Math.round(1e5*t)/1e5,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,c=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(t,e)=>i=>!!("string"==typeof i&&c.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),m=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,a,o]=n.match(d);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},f=t=>a(0,255,t),g={...o,transform:t=>Math.round(f(t))},y={test:p("rgb","red"),parse:m("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+g.transform(t)+", "+g.transform(e)+", "+g.transform(i)+", "+h(l.transform(n))+")"},v={test:p("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:y.transform},x=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),w=x("deg"),b=x("%"),_=x("px"),k=x("vh"),T=x("vw"),S={...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)},P={test:p("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+b.transform(h(e))+", "+b.transform(h(i))+", "+h(l.transform(n))+")"},M={test:t=>y.test(t)||v.test(t)||P.test(t),parse:t=>y.test(t)?y.parse(t):P.test(t)?P.parse(t):v.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):P.transform(t),getAnimatableNone:t=>{let e=M.parse(t);return e.alpha=0,M.transform(e)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,C="number",E="color",R=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function D(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,a=e.replace(R,t=>(M.test(t)?(n.color.push(s),r.push(E),i.push(M.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(C),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:a,indexes:n,types:r}}function O(t){return D(t).values}function j(t){let{split:e,types:i}=D(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===C?r+=h(t[s]):e===E?r+=M.transform(t[s]):r+=t[s]}return r}}let V=t=>"number"==typeof t?0:M.test(t)?M.getAnimatableNone(t):t,I={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(d)?.length||0)+(t.match(A)?.length||0)>0},parse:O,createTransformer:j,getAnimatableNone:function(t){let e=O(t);return j(t)(e.map(V))}},F=new Set(["brightness","contrast","saturate","opacity"]);function L(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(d)||[];if(!n)return t;let r=i.replace(n,""),s=F.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let N=/\b([a-z-]*)\(.*?\)/gu,B={...I,getAnimatableNone:t=>{let e=t.match(N);return e?e.map(L).join(" "):t}},Z={...o,transform:Math.round},$={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,inset:_,insetBlock:_,insetBlockStart:_,insetBlockEnd:_,insetInline:_,insetInlineStart:_,insetInlineEnd:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,paddingBlock:_,paddingBlockStart:_,paddingBlockEnd:_,paddingInline:_,paddingInlineStart:_,paddingInlineEnd:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,marginBlock:_,marginBlockStart:_,marginBlockEnd:_,marginInline:_,marginInlineStart:_,marginInlineEnd:_,backgroundPositionX:_,backgroundPositionY:_,rotate:w,rotateX:w,rotateY:w,rotateZ:w,scale:u,scaleX:u,scaleY:u,scaleZ:u,skew:w,skewX:w,skewY:w,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:l,originX:S,originY:S,originZ:_,zIndex:Z,fillOpacity:l,strokeOpacity:l,numOctaves:Z},W={...$,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:B,WebkitFilter:B},U=t=>W[t],z=()=>({translate:0,scale:1,origin:0,originPoint:0}),Y=()=>({x:z(),y:z()}),Q=()=>({min:0,max:0}),q=()=>({x:Q(),y:Q()}),H=t=>!!(t&&t.getVelocity),X=new Set(["width","height","top","left","right","bottom",...r]),K=t=>e=>e.test(t),G=[o,_,b,w,T,k,{test:t=>"auto"===t,parse:t=>t}],J=t=>G.find(K(t));i(1205);let tt=()=>{},te=()=>{},ti=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tn=t=>e=>"string"==typeof e&&e.startsWith(t),tr=tn("--"),ts=tn("var(--"),ta=t=>!!ts(t)&&to.test(t.split("/*")[0].trim()),to=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,th=t=>180*t/Math.PI,td=t=>tp(th(Math.atan2(t[1],t[0]))),tc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:td,rotateZ:td,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tp=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tf=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tf,scale:t=>(tm(t)+tf(t))/2,rotateX:t=>tp(th(Math.atan2(t[6],t[5]))),rotateY:t=>tp(th(Math.atan2(-t[2],t[0]))),rotateZ:td,rotate:td,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ty(t){return t.includes("scale")?1:0}function tv(t,e){let i,n;if(!t||"none"===t)return ty(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tg,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tc,n=e}if(!n)return ty(e);let s=i[e],a=n[1].split(",").map(tw);return"function"==typeof s?s(a):a[s]}let tx=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tv(i,e)};function tw(t){return parseFloat(t.trim())}let tb=t=>t===o||t===_,t_=new Set(["x","y","z"]),tk=r.filter(t=>!t_.has(t)),tT={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tv(e,"x"),y:(t,{transform:e})=>tv(e,"y")};tT.translateX=tT.x,tT.translateY=tT.y;let tS=t=>t,tP={},tM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tA={value:null,addProjectionMetrics:null};function tC(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=tM.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,r){s=!0;return}r=!0,[i,n]=[n,i],i.forEach(u),e&&tA.value&&tA.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=a,f=()=>{let s=tP.useManualTiming?r.timestamp:performance.now();i=!1,tP.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))},g=()=>{i=!0,n=!0,r.isProcessing||t(f)};return{schedule:tM.reduce((t,e)=>{let n=a[e];return t[e]=(t,e=!1,r=!1)=>(i||g(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<tM.length;e++)a[tM[e]].cancel(t)},state:r,steps:a}}let{schedule:tE,cancel:tR,state:tD,steps:tO}=tC("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tS,!0),tj=new Set,tV=!1,tI=!1,tF=!1;function tL(){if(tI){let t=Array.from(tj).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tk.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tI=!1,tV=!1,tj.forEach(t=>t.complete(tF)),tj.clear()}function tN(){tj.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tI=!0)})}class tB{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tj.add(this),tV||(tV=!0,tE.read(tN),tE.resolveKeyframes(tL))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tj.delete(this)}cancel(){"scheduled"===this.state&&(tj.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tZ=t=>/^0[^.\s]+$/u.test(t);function t$(t,e){let i=U(t);return i!==B&&(i=I),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tW=new Set(["auto","none","0"]);class tU extends tB{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&ta(n=n.trim())){let r=function t(e,i,n=1){te(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return ti(t)?parseFloat(t):t}return ta(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!X.has(i)||2!==t.length)return;let[n,r]=t,s=J(n),a=J(r);if(tl(n)!==tl(r)&&tT[i]){this.needsMeasurement=!0;return}if(s!==a){if(tb(s)&&tb(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tT[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tZ(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tW.has(e)&&D(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=t$(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tT[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=tT[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}function tz(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tQ{constructor(){this.subscriptions=[]}add(t){return tz(this.subscriptions,t),()=>tY(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:tq}=tC(queueMicrotask,!1);function tH(){n=void 0}let tX={now:()=>(void 0===n&&tX.set(tD.isProcessing||tP.useManualTiming?tD.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(tH)}},tK=t=>!isNaN(parseFloat(t)),tG={current:void 0};class tJ{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tX.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tX.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=tK(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tQ);let i=this.events[t].add(e);return"change"===t?()=>{i(),tE.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return tG.current&&tG.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tX.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t0(t,e){return new tJ(t,e)}let t1=[...G,M,I],t2=t=>t1.find(K(t)),t5={current:null},t4={current:!1},t9="undefined"!=typeof window,t3=new WeakMap;function t6(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function t8(t){return"string"==typeof t||Array.isArray(t)}let t7=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],et=["initial",...t7];function ee(t){return t6(t.animate)||et.some(e=>t8(t[e]))}function ei(t){return!!(ee(t)||t.variants)}function en(t,e,i,n){if("function"==typeof e||("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e)){let[r,s]=function(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let er=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],es={};class ea{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tX.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tE.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=s;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ee(e),this.isVariantNode=ei(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==o[t]&&H(e)&&e.set(o[t])}}mount(t){this.current=t,t3.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(t4.current||function(){if(t4.current=!0,t9){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>t5.current=t.matches;t.addEventListener("change",e),e()}else t5.current=!1}}(),this.shouldReduceMotion=t5.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tR(this.notifyUpdate),tR(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tE.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in es){let e=es[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<er.length;e++){let i=er[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(H(r))t.addValue(n,r);else if(H(s))t.addValue(n,t0(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,t0(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t0(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(ti(i)||tZ(i))?i=parseFloat(i):!t2(i)&&I.test(e)&&(i=t$(t,e)),this.setBaseTarget(t,H(i)?i.get():i)),H(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=en(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||H(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tQ),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tq.render(this.render)}}class eo extends ea{constructor(){super(...arguments),this.KeyframeResolver=tU}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;H(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function el(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eu=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ed=r.length;function ec(t,e,i){let{style:n,vars:a,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(s.has(t)){l=!0;continue}if(tr(t)){a[t]=i;continue}{let e=eu(i,$[t]);t.startsWith("origin")?(u=!0,o[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let a=0;a<ed;a++){let o=r[a],l=t[o];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(o.startsWith("scale")?1:0):0===parseFloat(l))||i){let t=eu(l,$[o]);if(!u){s=!1;let e=eh[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;n.transformOrigin=`${t} ${e} ${i}`}}let ep={offset:"stroke-dashoffset",array:"stroke-dasharray"},em={offset:"strokeDashoffset",array:"strokeDasharray"},ef=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eg(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o},l,u,h){if(ec(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),ef))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?ep:em;t[s.offset]=_.transform(-n);let a=_.transform(e),o=_.transform(i);t[s.array]=`${a} ${o}`}(d,r,s,a,!1)}let ey=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ev=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ex(t,{style:e,vars:i},n,r){let s;let a=t.style;for(s in e)a[s]=e[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}function ew(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eb={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!_.test(t))return t;t=parseFloat(t)}let i=ew(t,e.target.x),n=ew(t,e.target.y);return`${i}% ${n}%`}},e_=(t,e,i)=>t+(e-t)*i,ek={borderRadius:{...eb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eb,borderTopRightRadius:eb,borderBottomLeftRadius:eb,borderBottomRightRadius:eb,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=I.parse(t);if(n.length>5)return t;let r=I.createTransformer(t),s="number"!=typeof n[0]?1:0,a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+s]/=a,n[1+s]/=o;let l=e_(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function eT(t,{layout:e,layoutId:i}){return s.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ek[t]||"opacity"===t)}function eS(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(H(n[e])||r&&H(r[e])||eT(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function eP(t,e,i){let n=eS(t,e,i);for(let i in t)(H(t[i])||H(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eM extends eo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=U(e);return t&&t.default||0}return e=ey.has(e)?e:el(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eP(t,e,i)}build(t,e,i){eg(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in ex(t,e,void 0,n),e.attrs)t.setAttribute(ey.has(i)?i:el(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=ev(t.tagName),super.mount(t)}}function eA({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eC(t){return void 0===t||1===t}function eE({scale:t,scaleX:e,scaleY:i}){return!eC(t)||!eC(e)||!eC(i)}function eR(t){return eE(t)||eD(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eD(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eO(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function ej(t,e=0,i=1,n,r){t.min=eO(t.min,e,i,n,r),t.max=eO(t.max,e,i,n,r)}function eV(t,{x:e,y:i}){ej(t.x,e.translate,e.scale,e.originPoint),ej(t.y,i.translate,i.scale,i.originPoint)}function eI(t,e){t.min=t.min+e,t.max=t.max+e}function eF(t,e,i,n,r=.5){let s=e_(t.min,t.max,r);ej(t,e,i,s,n)}function eL(t,e){eF(t.x,e.x,e.scaleX,e.scale,e.originX),eF(t.y,e.y,e.scaleY,e.scale,e.originY)}function eN(t,e){return eA(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class eB extends eo{constructor(){super(...arguments),this.type="html",this.renderInstance=ex}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?ty(e):tx(t,e);{let i=window.getComputedStyle(t),n=(tr(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eN(t,e)}build(t,e,i){ec(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eS(t,e,i)}}var eZ=i(7620);let e$=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eW(t){if("string"!=typeof t||t.includes("-"));else if(e$.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eU=i(4568),ez=i(7233);let eY=(0,eZ.createContext)({strict:!1});var eQ=i(1768);let eq=(0,eZ.createContext)({});function eH(t){return Array.isArray(t)?t.join(" "):t}let eX=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eK(t,e,i){for(let n in e)H(e[n])||eT(n,i)||(t[n]=e[n])}let eG=()=>({...eX(),attrs:{}}),eJ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function e0(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eJ.has(t)}let e1=t=>!e0(t);try{!function(t){"function"==typeof t&&(e1=e=>e.startsWith("on")?!e0(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}function e2(t){return H(t)?t.get():t}var e5=i(5673),e4=i(2385);let e9=t=>(e,i)=>{let n=(0,eZ.useContext)(eq),r=(0,eZ.useContext)(e5.t),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=e2(s[t]);let{initial:a,animate:o}=t,l=ee(t),u=ei(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!t6(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=en(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?s():(0,e4.M)(s)},e3=e9({scrapeMotionValuesFromProps:eS,createRenderState:eX}),e6=e9({scrapeMotionValuesFromProps:eP,createRenderState:eG});var e8=i(4056);let e7={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},it=!1;function ie(){return!function(){if(it)return;let t={};for(let e in e7)t[e]={isEnabled:t=>e7[e].some(e=>!!t[e])};es=t,it=!0}(),es}let ii=Symbol.for("motionComponentSymbol"),ir="data-"+el("framerAppearId"),is=(0,eZ.createContext)({});function ia(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var io=i(6154);function il(t){var e,i;let{forwardMotionProps:n=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=ie();for(let i in t)e[i]={...e[i],...t[i]};es=e}(s);let o=r?"svg"===r:eW(t),l=o?e6:e3;function u(e,i){let r;let s={...(0,eZ.useContext)(eQ.Q),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,eZ.useContext)(ez.L).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=s,h=function(t){let{initial:e,animate:i}=function(t,e){if(ee(t)){let{initial:e,animate:i}=t;return{initial:!1===e||t8(e)?e:void 0,animate:t8(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,eZ.useContext)(eq));return(0,eZ.useMemo)(()=>({initial:e,animate:i}),[eH(e),eH(i)])}(e),d=l(e,u);if(!u&&e8.B){(0,eZ.useContext)(eY).strict;let e=function(t){let{drag:e,layout:i}=ie();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(s);r=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){var a,o,l,u;let{visualElement:h}=(0,eZ.useContext)(eq),d=(0,eZ.useContext)(eY),c=(0,eZ.useContext)(e5.t),p=(0,eZ.useContext)(eQ.Q).reducedMotion,m=(0,eZ.useRef)(null);n=n||d.renderer,!m.current&&n&&(m.current=n(t,{visualState:e,parent:h,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:p,isSVG:s}));let f=m.current,g=(0,eZ.useContext)(is);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&ia(o),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(m.current,i,r,g);let y=(0,eZ.useRef)(!1);(0,eZ.useInsertionEffect)(()=>{f&&y.current&&f.update(i,c)});let v=i[ir],x=(0,eZ.useRef)(!!v&&!(null===(a=(o=window).MotionHandoffIsComplete)||void 0===a?void 0:a.call(o,v))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,v)));return(0,io.E)(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,eZ.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,v)}),x.current=!1),f.enteringChildren=void 0)}),f}(t,d,s,a,e.ProjectionNode,o)}return(0,eU.jsxs)(eq.Provider,{value:h,children:[r&&h.visualElement?(0,eU.jsx)(r,{visualElement:h.visualElement,...s}):null,function(t,e,i,n,r){let{latestValues:s}=n,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6?arguments[6]:void 0,l=((null!=o?o:eW(t))?function(t,e,i,n){let r=(0,eZ.useMemo)(()=>{let i=eG();return eg(i,e,ev(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eK(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return eK(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,eZ.useMemo)(()=>{let t=eX();return ec(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,s,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(e1(r)||!0===i&&e0(r)||!e&&!e0(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,a),h=t!==eZ.Fragment?{...u,...l,ref:i}:{},{children:d}=e,c=(0,eZ.useMemo)(()=>H(d)?d.get():d,[d]);return(0,eZ.createElement)(t,{...h,children:c})}(t,e,function(t,e,i){let n=(0,eZ.useRef)(i);(0,eZ.useInsertionEffect)(()=>{n.current=i});let r=(0,eZ.useRef)(null);return(0,eZ.useCallback)(i=>{if(i){var s;null===(s=t.onMount)||void 0===s||s.call(t,i)}e&&(i?e.mount(i):e.unmount());let a=n.current;if("function"==typeof a){if(i){let t=a(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):a(i)}else a&&(a.current=i)},[e])}(d,h.visualElement,i),d,u,n,o)]})}u.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let h=(0,eZ.forwardRef)(u);return h[ii]=t,h}class iu{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ih(t,e,i){let n=t.getProps();return en(n,e,void 0!==i?i:n.custom,t)}function id(t,e){return t?.[e]??t?.default??t}let ic=t=>Array.isArray(t);function ip(t,e){let i=t.getValue("willChange");if(H(i)&&i.add)return i.add(e);if(!i&&tP.WillChange){let i=new tP.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let im=t=>1e3*t,ig=t=>t/1e3,iy=(t,e)=>i=>e(t(i)),iv=(...t)=>t.reduce(iy),ix={layout:0,mainThread:0,waapi:0};function iw(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ib(t,e){return i=>i>0?e:t}let i_=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},ik=[v,y,P],iT=t=>ik.find(e=>e.test(t));function iS(t){let e=iT(t);if(tt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===P&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;r=iw(o,n,t+1/3),s=iw(o,n,t),a=iw(o,n,t-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let iP=(t,e)=>{let i=iS(t),n=iS(e);if(!i||!n)return ib(t,e);let r={...i};return t=>(r.red=i_(i.red,n.red,t),r.green=i_(i.green,n.green,t),r.blue=i_(i.blue,n.blue,t),r.alpha=e_(i.alpha,n.alpha,t),y.transform(r))},iM=new Set(["none","hidden"]);function iA(t,e){return i=>e_(t,e,i)}function iC(t){return"number"==typeof t?iA:"string"==typeof t?ta(t)?ib:M.test(t)?iP:iD:Array.isArray(t)?iE:"object"==typeof t?M.test(t)?iP:iR:ib}function iE(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iC(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iR(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iC(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iD=(t,e)=>{let i=I.createTransformer(e),n=D(t),r=D(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?iM.has(t)&&!r.values.length||iM.has(e)&&!n.values.length?function(t,e){return iM.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):iv(iE(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],a=t.indexes[s][n[s]],o=t.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i):(tt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ib(t,e))};function iO(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e_(t,e,i):iC(t)(t,e)}let ij=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tE.update(e,t),stop:()=>tR(e),now:()=>tD.isProcessing?tD.timestamp:tX.now()}},iV=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iI(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function iF(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let iL={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function iN(t,e){return t*Math.sqrt(1-e*e)}let iB=["duration","bounce"],iZ=["stiffness","damping","mass"];function i$(t,e){return e.some(e=>void 0!==t[e])}function iW(t=iL.visualDuration,e=iL.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:h,damping:d,mass:c,duration:p,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:iL.velocity,stiffness:iL.stiffness,damping:iL.damping,mass:iL.mass,isResolvedFromDuration:!1,...t};if(!i$(t,iZ)&&i$(t,iB)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*a(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:iL.mass,stiffness:n,damping:r}}else{let i=function({duration:t=iL.duration,bounce:e=iL.bounce,velocity:i=iL.velocity,mass:n=iL.mass}){let r,s;tt(t<=im(iL.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=a(iL.minDamping,iL.maxDamping,o),t=a(iL.minDuration,iL.maxDuration,ig(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iN(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iN(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=im(t),isNaN(l))return{stiffness:iL.stiffness,damping:iL.damping,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:iL.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-ig(n.velocity||0)}),g=m||0,y=d/(2*Math.sqrt(h*c)),v=l-o,x=ig(Math.sqrt(h/c)),w=5>Math.abs(v);if(r||(r=w?iL.restSpeed.granular:iL.restSpeed.default),s||(s=w?iL.restDelta.granular:iL.restDelta.default),y<1){let t=iN(x,y);i=e=>l-Math.exp(-y*x*e)*((g+y*x*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===y)i=t=>l-Math.exp(-x*t)*(v+(g+x*v)*t);else{let t=x*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*x*e),n=Math.min(t*e,300);return l-i*((g+y*x*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let b={calculatedDuration:f&&p||null,next:t=>{let e=i(t);if(f)u.done=t>=p;else{let n=0===t?g:0;y<1&&(n=0===t?im(g):iF(i,t,e));let a=Math.abs(n)<=r,o=Math.abs(l-e)<=s;u.done=a&&o}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min(iI(b),2e4),e=iV(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function iU({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==o&&t<o||void 0!==l&&t>l,g=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)<Math.abs(l-t)?o:l,y=i*e,v=p+y,x=void 0===a?v:a(v);x!==v&&(y=x-p);let w=t=>-y*Math.exp(-t/n),b=t=>x+w(t),_=t=>{let e=w(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},k=t=>{f(m.value)&&(d=t,c=iW({keyframes:[m.value,g(m.value)],velocity:iF(b,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return k(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,_(t),k(t)),void 0!==d&&t>=d)?c.next(t-d):(e||_(t),m)}}}iW.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iI(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:ig(r)}}(t,100,iW);return t.ease=e.ease,t.duration=im(e.duration),t.type="keyframes",t};let iz=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iY(t,e,i,n){if(t===e&&i===n)return tS;let r=e=>(function(t,e,i,n,r){let s,a;let o=0;do(s=iz(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:iz(r(t),e,n)}let iQ=iY(.42,0,1,1),iq=iY(0,0,.58,1),iH=iY(.42,0,.58,1),iX=t=>Array.isArray(t)&&"number"!=typeof t[0],iK=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iG=t=>e=>1-t(1-e),iJ=iY(.33,1.53,.69,.99),i0=iG(iJ),i1=iK(i0),i2=t=>(t*=2)<1?.5*i0(t):.5*(2-Math.pow(2,-10*(t-1))),i5=t=>1-Math.sin(Math.acos(t)),i4=iG(i5),i9=iK(i5),i3=t=>Array.isArray(t)&&"number"==typeof t[0],i6={linear:tS,easeIn:iQ,easeInOut:iH,easeOut:iq,circIn:i5,circInOut:i9,circOut:i4,backIn:i0,backInOut:i1,backOut:iJ,anticipate:i2},i8=t=>"string"==typeof t,i7=t=>{if(i3(t)){te(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return iY(e,i,n,r)}return i8(t)?(te(void 0!==i6[t],`Invalid easing type '${t}'`,"invalid-easing-type"),i6[t]):t},nt=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function ne({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=iX(n)?n.map(i7):i7(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(te(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],r=i||tP.mix||iO,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iv(Array.isArray(e)?e[i]||tS:e,s)),n.push(s)}return n}(e,n,r),u=l.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nt(t[n],t[n+1],i);return l[n](r)};return i?e=>h(a(t[0],t[s-1],e)):h}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nt(0,e,n);t.push(e_(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||iH).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let ni=t=>null!==t;function nn(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(ni),a=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}let nr={decay:iU,inertia:iU,tween:ne,keyframes:ne,spring:iW};function ns(t){"string"==typeof t.type&&(t.type=nr[t.type])}class na{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let no=t=>t/100;class nl extends na{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tX.now()&&this.tick(tX.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ix.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ns(t);let{type:e=ne,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:a}=t,o=e||ne;o!==ne&&"number"!=typeof a[0]&&(this.mixKeyframes=iv(no,iO(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iI(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,w=i;if(d){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/o)):"mirror"===c&&(w=s)),x=a(0,1,i)*o}let b=v?{done:!1,value:h[0]}:w.next(x);r&&(b.value=r(b.value));let{done:_}=b;v||null===l||(_=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return k&&m!==iU&&(b.value=nn(h,this.options,g,this.speed)),f&&f(b.value),k&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return ig(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ig(t)}get time(){return ig(this.currentTime)}set time(t){t=im(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tX.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=ig(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=ij,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tX.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ix.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nu=t=>t.startsWith("--");function nh(t){let e;return()=>(void 0===e&&(e=t()),e)}let nd=nh(()=>void 0!==window.ScrollTimeline),nc={},np=function(t,e){let i=nh(t);return()=>nc[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),nm=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,nf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nm([0,.65,.55,1]),circOut:nm([.55,0,1,.45]),backIn:nm([.31,.01,.66,-.59]),backOut:nm([.33,1.53,.69,.99])};function ng(t){return"function"==typeof t&&"applyToOptions"in t}class ny extends na{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,te("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return ng(t)&&np()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?np()?iV(e,i):"ease-out":i3(e)?nm(e):Array.isArray(e)?e.map(e=>t(e,i)||nf.easeOut):nf[e]}(o,r);Array.isArray(d)&&(h.easing=d),tA.value&&ix.waapi++;let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return tA.value&&p.finished.finally(()=>{ix.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=nn(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){nu(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return ig(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ig(t)}get time(){return ig(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=im(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&nd())?(this.animation.timeline=t,tS):e(this)}}let nv={anticipate:i2,backInOut:i1,circInOut:i9};class nx extends ny{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nv&&(t.ease=nv[t.ease])}(t),ns(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new nl({...s,autoplay:!1}),l=Math.max(10,tX.now()-this.startTime),u=a(0,10,l-10);e.setWithVelocity(o.sample(Math.max(0,l-u)).value,o.sample(l).value,u),o.stop()}}let nw=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(I.test(t)||"0"===t)&&!t.startsWith("url("));function nb(t){t.duration=0,t.type="keyframes"}let n_=new Set(["opacity","clipPath","filter","transform"]),nk=nh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nT extends na{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tX.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tB;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;this.resolvedAt=tX.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=nw(r,e),o=nw(s,e);return tt(a===o,`You are trying to animate ${e} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ng(i))&&n)}(t,r,s,a)&&((tP.instantAnimations||!o)&&u?.(nn(t,i,e)),t[0]=t[t.length-1],nb(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return nk()&&i&&n_.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(h)?new nx({...h,element:h.motionValue.owner.current}):new nl(h);d.finished.then(()=>this.notifyFinished()).catch(tS),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tF=!0,tN(),tL(),tF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nS={type:"spring",stiffness:500,damping:25,restSpeed:10},nP=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nM={type:"keyframes",duration:.8},nA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nC=(t,{keyframes:e})=>e.length>2?nM:s.has(t)?t.startsWith("scale")?nP(e[1]):nS:nA,nE=t=>null!==t,nR=(t,e,i,n={},r,s)=>a=>{let o=id(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=im(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(h,nC(t,h)),h.duration&&(h.duration=im(h.duration)),h.repeatDelay&&(h.repeatDelay=im(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nb(h),0!==h.delay||(d=!0)),(tP.instantAnimations||tP.skipAnimations)&&(d=!0,nb(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,d&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(nE),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(h.keyframes,o);if(void 0!==t){tE.update(()=>{h.onUpdate(t),h.onComplete()});return}}return o.isSync?new nl(h):new nT(h)};function nD(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:a,...o}=e;n&&(s=n);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),r=o[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let a={delay:i,...id(s||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(r)&&r===h&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[ir];if(i){let t=window.MotionHandoffAnimation(i,e,tE);null!==t&&(a.startTime=t,d=!0)}}ip(t,e),n.start(nR(e,n,r,t.shouldReduceMotion&&X.has(e)?{type:!1}:a,t,d));let c=n.animation;c&&l.push(c)}return a&&Promise.all(l).then(()=>{tE.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=ih(t,e)||{};for(let e in r={...r,...i}){var s;let i=ic(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t0(i))}}(t,a)})}),l}function nO(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function nj(t,e,i={}){let n=ih(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nD(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(t,e,i=0,n=0,r=0,s=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(nj(l,e,{...a,delay:i+("function"==typeof n?0:n)+nO(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[s,a]:[a,s];return t().then(()=>e())}}let nV=et.length;function nI(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nF=[...t7].reverse(),nL=t7.length;function nN(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nB(){return{animate:nN(!0),whileInView:nN(),whileHover:nN(),whileTap:nN(),whileDrag:nN(),whileFocus:nN(),exit:nN()}}class nZ extends iu{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nj(t,e,i)));else if("string"==typeof e)n=nj(t,e,i);else{let r="function"==typeof e?ih(t,e,i.custom):e;n=Promise.all(nD(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nB(),n=!0,r=e=>(i,n)=>{let r=ih(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:a}=t,o=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nV;t++){let n=et[t],r=e.props[n];(t8(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},d=1/0;for(let e=0;e<nL;e++){var c;let p=nF[e],m=i[p],f=void 0!==a[p]?a[p]:o[p],g=t8(f),y=p===s?m.isActive:null;!1===y&&(d=e);let v=f===o[p]&&f!==a[p]&&g;if(v&&n&&t.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...h},!m.isActive&&null===y||!f&&!m.prevProp||t6(f)||"boolean"==typeof f)continue;let x=(c=m.prevProp,"string"==typeof f?f!==c:!!Array.isArray(f)&&!nI(f,c)),w=x||p===s&&m.isActive&&!v&&g||e>d&&g,b=!1,_=Array.isArray(f)?f:[f],k=_.reduce(r(p),{});!1===y&&(k={});let{prevResolvedValues:T={}}=m,S={...T,...k},P=e=>{w=!0,u.has(e)&&(b=!0,u.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in S){let e=k[t],i=T[t];if(!h.hasOwnProperty(t))(ic(e)&&ic(i)?nI(e,i):e===i)?void 0!==e&&u.has(t)?P(t):m.protectedKeys[t]=!0:null!=e?P(t):u.add(t)}m.prevProp=f,m.prevResolvedValues=k,m.isActive&&(h={...h,...k}),n&&t.blockInitialAnimation&&(w=!1);let M=v&&x,A=!M||b;w&&A&&l.push(..._.map(e=>{let i={type:p};if("string"==typeof e&&n&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=ih(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nO(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=ih(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let p=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nB()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();t6(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let n$=0;class nW extends iu{constructor(){super(...arguments),this.id=n$++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nU={x:!1,y:!1};function nz(t){return[t("x"),t("y")]}function nY(t){return t.max-t.min}function nQ(t,e,i,n=.5){t.origin=n,t.originPoint=e_(e.min,e.max,t.origin),t.scale=nY(i)/nY(e),t.translate=e_(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nq(t,e,i,n){nQ(t.x,e.x,i.x,n?n.originX:void 0),nQ(t.y,e.y,i.y,n?n.originY:void 0)}function nH(t,e,i){t.min=i.min+e.min,t.max=t.min+nY(e)}function nX(t,e,i){t.min=e.min-i.min,t.max=t.min+nY(e)}function nK(t,e,i){nX(t.x,e.x,i.x),nX(t.y,e.y,i.y)}let nG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nJ(t){return nG.has(t.tagName)||!0===t.isContentEditable}function n0(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let n1=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n2(t){return{point:{x:t.pageX,y:t.pageY}}}let n5=t=>e=>n1(e)&&t(e,n2(e));function n4(t,e,i,n){return n0(t,e,n5(i),n)}let n9=({current:t})=>t?t.ownerDocument.defaultView:null,n3=(t,e)=>Math.abs(t-e),n6=new Set(["auto","scroll"]);class n8{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=re(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(n3(t.x,e.x)**2+n3(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=tD;this.history.push({...n,timestamp:r});let{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=n7(e,this.transformPagePoint),tE.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=re("pointercancel"===t.type?this.lastMoveEventInfo:n7(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!n1(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=n7(n2(t),this.transformPagePoint),{point:l}=o,{timestamp:u}=tD;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,re(o,this.history)),this.removeListeners=iv(n4(this.contextWindow,"pointermove",this.handlePointerMove),n4(this.contextWindow,"pointerup",this.handlePointerUp),n4(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(n6.has(t.overflowX)||n6.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tE.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tR(this.updatePoint)}}function n7(t,e){return e?{point:e(t.point)}:t}function rt(t,e){return{x:t.x-e.x,y:t.y-e.y}}function re({point:t},e){return{point:t,delta:rt(t,ri(e)),offset:rt(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=ri(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>im(.1)));)i--;if(!n)return{x:0,y:0};let s=ig(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let a={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function ri(t){return t[t.length-1]}function rn(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function rr(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rs(t,e,i){return{min:ra(t,e),max:ra(t,i)}}function ra(t,e){return"number"==typeof t?t:t[e]||0}let ro=new WeakMap;class rl{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new n8(t,{onSessionStart:t=>{e?(this.stopAnimation(),this.snapToCursor(n2(t).point)):this.pauseAnimation()},onStart:(t,e)=>{this.stopAnimation();let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?nU[i]?null:(nU[i]=!0,()=>{nU[i]=!1}):nU.x||nU.y?null:(nU.x=nU.y=!0,()=>{nU.x=nU.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nz(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nY(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tE.postRender(()=>r(t,e)),ip(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>nz(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:n9(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&tE.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!ru(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?e_(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?e_(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&ia(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:rn(t.x,i,r),y:rn(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rs(t,"left","right"),y:rs(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nz(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ia(e))return!1;let n=e.current;te(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=eN(t,i),{scroll:r}=e;return r&&(eI(n.x,r.offset.x),eI(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),a={x:rr((t=r.layout.layoutBox).x,s.x),y:rr(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eA(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(nz(a=>{if(!ru(a,e,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ip(this.visualElement,t),i.start(nR(t,i,0,e,this.visualElement,!1))}stopAnimation(){nz(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nz(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nz(e=>{let{drag:i}=this.getProps();if(!ru(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],a=r.get()||0;r.set(t[e]-e_(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ia(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nz(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=nY(t),r=nY(e);return r>n?i=nt(e.min,e.max-n,t.min):n>r&&(i=nt(t.min,t.max-r,e.min)),a(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nz(e=>{if(!ru(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(e_(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;ro.set(this.visualElement,this);let t=n4(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&!nJ(t.target)&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();ia(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tE.read(e);let r=n0(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nz(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function ru(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rh extends iu{constructor(t){super(t),this.removeGroupControls=tS,this.removeListeners=tS,this.controls=new rl(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tS}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}let rd=t=>(e,i)=>{t&&tE.postRender(()=>t(e,i))};class rc extends iu{constructor(){super(...arguments),this.removePointerDownListener=tS}onPointerDown(t){this.session=new n8(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n9(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rd(t),onStart:rd(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tE.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n4(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rm=i(8678);let rf=!1;class rg extends eZ.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rf&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),rp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,rf=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tE.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tq.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rf=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ry(t){let[e,i]=(0,rm.xQ)(),n=(0,eZ.useContext)(ez.L);return(0,eU.jsx)(rg,{...t,layoutGroup:n,switchLayoutGroup:(0,eZ.useContext)(is),isPresent:e,safeToRemove:i})}function rv(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rx(t,e,[i,n,r],s,a){!function(t,e=0,i=1,n=.5,r,s=t,a=t){if(b.test(e)&&(e=parseFloat(e),e=e_(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=e_(s.min,s.max,n);t===s&&(o-=e),t.min=rv(t.min,e,i,o,r),t.max=rv(t.max,e,i,o,r)}(t,e[i],e[n],e[r],e.scale,s,a)}let rw=["x","scaleX","originX"],rb=["y","scaleY","originY"];function r_(t,e,i,n){rx(t.x,e,rw,i?i.x:void 0,n?n.x:void 0),rx(t.y,e,rb,i?i.y:void 0,n?n.y:void 0)}function rk(t,e){t.min=e.min,t.max=e.max}function rT(t,e){rk(t.x,e.x),rk(t.y,e.y)}function rS(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rP(t){return 0===t.translate&&1===t.scale}function rM(t){return rP(t.x)&&rP(t.y)}function rA(t,e){return t.min===e.min&&t.max===e.max}function rC(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rE(t,e){return rC(t.x,e.x)&&rC(t.y,e.y)}function rR(t){return nY(t.x)/nY(t.y)}function rD(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let rO=["TopLeft","TopRight","BottomLeft","BottomRight"],rj=rO.length,rV=t=>"string"==typeof t?parseFloat(t):t,rI=t=>"number"==typeof t||_.test(t);function rF(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rL=rB(0,.5,i4),rN=rB(.5,.95,tS);function rB(t,e,i){return n=>n<t?0:n>e?1:i(nt(t,e,n))}var rZ=i(8835);function r$(t){return(0,rZ.G)(t)&&"ownerSVGElement"in t}let rW=(t,e)=>t.depth-e.depth;class rU{constructor(){this.children=[],this.isDirty=!1}add(t){tz(this.children,t),this.isDirty=!0}remove(t){tY(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rW),this.isDirty=!1,this.children.forEach(t)}}class rz{constructor(){this.members=[]}add(t){tz(this.members,t),t.scheduleRender()}remove(t){if(tY(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rY={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rQ=["","X","Y","Z"],rq=0;function rH(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rX({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rq++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tA.value&&(rY.nodes=rY.calculatedTargetDeltas=rY.calculatedProjections=0),this.nodes.forEach(rJ),this.nodes.forEach(r3),this.nodes.forEach(r6),this.nodes.forEach(r0),tA.addProjectionMetrics&&tA.addProjectionMetrics(rY)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rU)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tQ),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=r$(e)&&!(r$(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,r=()=>this.root.updateBlockedByResize=!1;tE.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tX.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(tR(n),t(r-250))};return tE.setup(n,!0),()=>tR(n)}(r,250),rp.hasAnimatedSinceResize&&(rp.hasAnimatedSinceResize=!1,this.nodes.forEach(r9)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sn,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!rE(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...id(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||r9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tR(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r8),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[ir];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tE,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r2);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(r5);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r4),this.nodes.forEach(rK),this.nodes.forEach(rG)):this.nodes.forEach(r5),this.clearAllSnapshots();let t=tX.now();tD.delta=a(0,1e3/60,t-tD.timestamp),tD.timestamp=t,tD.isProcessing=!0,tO.update.process(tD),tO.preRender.process(tD),tO.render.process(tD),tD.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tq.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r1),this.sharedNodes.forEach(r7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tE.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||nY(this.snapshot.measuredBox.x)||nY(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rM(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eR(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sa((e=n).x),sa(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return q();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sl))){let{scroll:t}=this.root;t&&(eI(e.x,t.offset.x),eI(e.y,t.offset.y))}return e}removeElementScroll(t){let e=q();if(rT(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rT(e,t),eI(e.x,r.offset.x),eI(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=q();rT(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&eL(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),eR(n.latestValues)&&eL(i,n.latestValues)}return eR(this.latestValues)&&eL(i,this.latestValues),i}removeTransform(t){let e=q();rT(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!eR(i.latestValues))continue;eE(i.latestValues)&&i.updateSnapshot();let n=q();rT(n,i.measurePageBox()),r_(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return eR(this.latestValues)&&r_(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tD.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tD.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,nH(a.x,o.x,l.x),nH(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rT(this.target,this.layout.layoutBox),eV(this.target,this.targetDelta)):rT(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),tA.value&&rY.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||eE(this.parent.latestValues)||eD(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),nK(this.relativeTargetOrigin,e,i),rT(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tD.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rT(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&eL(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eV(t,s)),n&&eR(r.latestValues)&&eL(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=q());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rS(this.prevProjectionDelta.x,this.projectionDelta.x),rS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nq(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&rD(this.projectionDelta.x,this.prevProjectionDelta.x)&&rD(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),tA.value&&rY.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=Y();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=q(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(si));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(st(a.x,t.x,n),st(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m;nK(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,se(p.x,m.x,o.x,n),se(p.y,m.y,o.y,n),i&&(u=this.relativeTarget,c=i,rA(u.x,c.x)&&rA(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=q()),rT(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=e_(0,i.opacity??1,rL(n)),t.opacityExit=e_(e.opacity??1,0,rN(n))):s&&(t.opacity=e_(e.opacity??1,i.opacity??1,n));for(let r=0;r<rj;r++){let s=`border${rO[r]}Radius`,a=rF(e,s),o=rF(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||rI(a)===rI(o)?(t[s]=Math.max(e_(rV(a),rV(o),n),0),(b.test(o)||b.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=e_(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tR(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tE.update(()=>{rp.hasAnimatedSinceResize=!0,ix.layout++,this.motionValue||(this.motionValue=t0(0)),this.currentAnimation=function(t,e,i){let n=H(t)?t:t0(t);return n.start(nR("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ix.layout--},onComplete:()=>{ix.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&so(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||q();let e=nY(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nY(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rT(e,i),eL(e,r),nq(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rz),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rH("z",t,n,this.animationValues);for(let e=0;e<rQ.length;e++)rH(`rotate${rQ[e]}`,t,n,this.animationValues),rH(`skew${rQ[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=e2(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=e2(e?.pointerEvents)||""),this.hasProjected&&!eR(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,ek){if(void 0===r[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=ek[e],l="none"===s?r[e]:i(r[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?e2(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r2),this.root.sharedNodes.clear()}}}function rK(t){t.updateLayout()}function rG(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?nz(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nY(n);n.min=i[t].min,n.max=n.min+r}):so(r,e.layoutBox,i)&&nz(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],a=nY(i[n]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=Y();nq(a,i,e.layoutBox);let o=Y();s?nq(o,t.applyTransform(n,!0),e.measuredBox):nq(o,i,e.layoutBox);let l=!rM(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=q();nK(a,e.layoutBox,r.layoutBox);let o=q();nK(o,i,s.layoutBox),rE(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rJ(t){tA.value&&rY.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r1(t){t.clearSnapshot()}function r2(t){t.clearMeasurements()}function r5(t){t.isLayoutDirty=!1}function r4(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r3(t){t.resolveTargetDelta()}function r6(t){t.calcProjection()}function r8(t){t.resetSkewAndRotation()}function r7(t){t.removeLeadSnapshot()}function st(t,e,i){t.translate=e_(e.translate,0,i),t.scale=e_(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function se(t,e,i,n){t.min=e_(e.min,i.min,n),t.max=e_(e.max,i.max,n)}function si(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sn={duration:.45,ease:[.4,0,.1,1]},sr=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ss=sr("applewebkit/")&&!sr("chrome/")?Math.round:tS;function sa(t){t.min=ss(t.min),t.max=ss(t.max)}function so(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rR(e)-rR(i)))}function sl(t){return t!==t.root&&t.scroll?.wasRoot}let su=rX({attachResizeListener:(t,e)=>n0(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sh={current:void 0},sd=rX({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sh.current){let t=new su({});t.mount(window),t.setOptions({layoutScroll:!0}),sh.current=t}return sh.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sc(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sp(t){return!("touch"===t.pointerType||nU.x||nU.y)}function sm(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tE.postRender(()=>r(e,n2(e)))}class sf extends iu{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sc(t,i),a=t=>{if(!sp(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{sp(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",a,r)}),s}(t,(t,e)=>(sm(this.node,e,"Start"),t=>sm(this.node,t,"End"))))}unmount(){}}class sg extends iu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iv(n0(this.node.current,"focus",()=>this.onFocus()),n0(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var sy=i(2339);let sv=(t,e)=>!!e&&(t===e||sv(t,e.parentElement)),sx=new WeakSet;function sw(t){return e=>{"Enter"===e.key&&t(e)}}function sb(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let s_=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sw(()=>{if(sx.has(i))return;sb(i,"down");let t=sw(()=>{sb(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sb(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sk(t){return n1(t)&&!(nU.x||nU.y)}function sT(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tE.postRender(()=>r(e,n2(e)))}class sS extends iu{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sc(t,i),a=t=>{let n=t.currentTarget;if(!sk(t))return;sx.add(n);let s=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sx.has(n)&&sx.delete(n),sk(t)&&"function"==typeof s&&s(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||sv(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,r),!(0,sy.s)(t)||(t.addEventListener("focus",t=>s_(t,r)),nJ(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sT(this.node,e,"Start"),(t,{success:e})=>sT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sP=new WeakMap,sM=new WeakMap,sA=t=>{let e=sP.get(t.target);e&&e(t)},sC=t=>{t.forEach(sA)},sE={some:0,all:1};class sR extends iu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sE[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sM.has(i)||sM.set(i,{});let n=sM.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sC,{root:t,...e})),n[r]}(e);return sP.set(t,i),n.observe(t),()=>{sP.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let sD=function(t,e){if("undefined"==typeof Proxy)return il;let i=new Map,n=(i,n)=>il(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,il(s,void 0,t,e)),i.get(s))})}({animation:{Feature:nZ},exit:{Feature:nW},inView:{Feature:sR},tap:{Feature:sS},focus:{Feature:sg},hover:{Feature:sf},pan:{Feature:rc},drag:{Feature:rh,ProjectionNode:sd,MeasureLayout:ry},layout:{ProjectionNode:sd,MeasureLayout:ry}},(t,e)=>e.isSVG??eW(t)?new eM(e):new eB(e,{allowProjection:t!==eZ.Fragment}))},4056:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},2385:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(7620);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},6154:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(7620);let r=i(4056).B?n.useLayoutEffect:n.useEffect},2339:(t,e,i)=>{i.d(e,{s:()=>r});var n=i(8835);function r(t){return(0,n.G)(t)&&"offsetHeight"in t}},8835:(t,e,i)=>{i.d(e,{G:()=>n});function n(t){return"object"==typeof t&&null!==t}},9772:(t,e,i)=>{var n,r,s,a;let o;i.d(e,{YO:()=>tR,zM:()=>tE,fc:()=>tO,ai:()=>tC,Ik:()=>tD,Yj:()=>tA}),function(t){t.assertEqual=t=>{},t.assertIs=function(t){},t.assertNever=function(t){throw Error()},t.arrayToEnum=t=>{let e={};for(let i of t)e[i]=i;return e},t.getValidEnumValues=e=>{let i=t.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let t of i)n[t]=e[t];return t.objectValues(n)},t.objectValues=e=>t.objectKeys(e).map(function(t){return e[t]}),t.objectKeys="function"==typeof Object.keys?t=>Object.keys(t):t=>{let e=[];for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);return e},t.find=(t,e)=>{for(let i of t)if(e(i))return i},t.isInteger="function"==typeof Number.isInteger?t=>Number.isInteger(t):t=>"number"==typeof t&&Number.isFinite(t)&&Math.floor(t)===t,t.joinValues=function(t,e=" | "){return t.map(t=>"string"==typeof t?`'${t}'`:t).join(e)},t.jsonStringifyReplacer=(t,e)=>"bigint"==typeof e?e.toString():e}(n||(n={})),(r||(r={})).mergeShapes=(t,e)=>({...t,...e});let l=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),u=t=>{switch(typeof t){case"undefined":return l.undefined;case"string":return l.string;case"number":return Number.isNaN(t)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":if(Array.isArray(t))return l.array;if(null===t)return l.null;if(t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch)return l.promise;if("undefined"!=typeof Map&&t instanceof Map)return l.map;if("undefined"!=typeof Set&&t instanceof Set)return l.set;if("undefined"!=typeof Date&&t instanceof Date)return l.date;return l.object;default:return l.unknown}},h=n.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class d extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};let e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}format(t){let e=t||function(t){return t.message},i={_errors:[]},n=t=>{for(let r of t.issues)if("invalid_union"===r.code)r.unionErrors.map(n);else if("invalid_return_type"===r.code)n(r.returnTypeError);else if("invalid_arguments"===r.code)n(r.argumentsError);else if(0===r.path.length)i._errors.push(e(r));else{let t=i,n=0;for(;n<r.path.length;){let i=r.path[n];n===r.path.length-1?(t[i]=t[i]||{_errors:[]},t[i]._errors.push(e(r))):t[i]=t[i]||{_errors:[]},t=t[i],n++}}};return n(this),i}static assert(t){if(!(t instanceof d))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(t=t=>t.message){let e={},i=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];e[i]=e[i]||[],e[i].push(t(n))}else i.push(t(n));return{formErrors:i,fieldErrors:e}}get formErrors(){return this.flatten()}}d.create=t=>new d(t);let c=(t,e)=>{let i;switch(t.code){case h.invalid_type:i=t.received===l.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case h.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,n.jsonStringifyReplacer)}`;break;case h.unrecognized_keys:i=`Unrecognized key(s) in object: ${n.joinValues(t.keys,", ")}`;break;case h.invalid_union:i="Invalid input";break;case h.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${n.joinValues(t.options)}`;break;case h.invalid_enum_value:i=`Invalid enum value. Expected ${n.joinValues(t.options)}, received '${t.received}'`;break;case h.invalid_arguments:i="Invalid function arguments";break;case h.invalid_return_type:i="Invalid function return type";break;case h.invalid_date:i="Invalid date";break;case h.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,"number"==typeof t.validation.position&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:n.assertNever(t.validation):i="regex"!==t.validation?`Invalid ${t.validation}`:"Invalid";break;case h.too_small:i="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"bigint"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"date"===t.type?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case h.too_big:i="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"bigint"===t.type?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"date"===t.type?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case h.custom:i="Invalid input";break;case h.invalid_intersection_types:i="Intersection results could not be merged";break;case h.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case h.not_finite:i="Number must be finite";break;default:i=e.defaultError,n.assertNever(t)}return{message:i}};!function(t){t.errToObj=t=>"string"==typeof t?{message:t}:t||{},t.toString=t=>"string"==typeof t?t:t?.message}(s||(s={}));let p=t=>{let{data:e,path:i,errorMaps:n,issueData:r}=t,s=[...i,...r.path||[]],a={...r,path:s};if(void 0!==r.message)return{...r,path:s,message:r.message};let o="";for(let t of n.filter(t=>!!t).slice().reverse())o=t(a,{data:e,defaultError:o}).message;return{...r,path:s,message:o}};function m(t,e){let i=p({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c==c?void 0:c].filter(t=>!!t)});t.common.issues.push(i)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(t,e){let i=[];for(let n of e){if("aborted"===n.status)return g;"dirty"===n.status&&t.dirty(),i.push(n.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,e){let i=[];for(let t of e){let e=await t.key,n=await t.value;i.push({key:e,value:n})}return f.mergeObjectSync(t,i)}static mergeObjectSync(t,e){let i={};for(let n of e){let{key:e,value:r}=n;if("aborted"===e.status||"aborted"===r.status)return g;"dirty"===e.status&&t.dirty(),"dirty"===r.status&&t.dirty(),"__proto__"!==e.value&&(void 0!==r.value||n.alwaysSet)&&(i[e.value]=r.value)}return{status:t.value,value:i}}}let g=Object.freeze({status:"aborted"}),y=t=>({status:"dirty",value:t}),v=t=>({status:"valid",value:t}),x=t=>"aborted"===t.status,w=t=>"dirty"===t.status,b=t=>"valid"===t.status,_=t=>"undefined"!=typeof Promise&&t instanceof Promise;class k{constructor(t,e,i,n){this._cachedPath=[],this.parent=t,this.data=e,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let T=(t,e)=>{if(b(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let e=new d(t.common.issues);return this._error=e,this._error}}};function S(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:r}=t;if(e&&(i||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return e?{errorMap:e,description:r}:{errorMap:(e,r)=>{let{message:s}=t;return"invalid_enum_value"===e.code?{message:s??r.defaultError}:void 0===r.data?{message:s??n??r.defaultError}:"invalid_type"!==e.code?{message:r.defaultError}:{message:s??i??r.defaultError}},description:r}}class P{get description(){return this._def.description}_getType(t){return u(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:u(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new f,ctx:{common:t.parent.common,data:t.data,parsedType:u(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let e=this._parse(t);if(_(e))throw Error("Synchronous parse encountered promise.");return e}_parseAsync(t){return Promise.resolve(this._parse(t))}parse(t,e){let i=this.safeParse(t,e);if(i.success)return i.data;throw i.error}safeParse(t,e){let i={common:{issues:[],async:e?.async??!1,contextualErrorMap:e?.errorMap},path:e?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:u(t)},n=this._parseSync({data:t,path:i.path,parent:i});return T(i,n)}"~validate"(t){let e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:u(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:e});return b(i)?{value:i.value}:{issues:e.common.issues}}catch(t){t?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),e.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:e}).then(t=>b(t)?{value:t.value}:{issues:e.common.issues})}async parseAsync(t,e){let i=await this.safeParseAsync(t,e);if(i.success)return i.data;throw i.error}async safeParseAsync(t,e){let i={common:{issues:[],contextualErrorMap:e?.errorMap,async:!0},path:e?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:u(t)},n=this._parse({data:t,path:i.path,parent:i});return T(i,await (_(n)?n:Promise.resolve(n)))}refine(t,e){let i=t=>"string"==typeof e||void 0===e?{message:e}:"function"==typeof e?e(t):e;return this._refinement((e,n)=>{let r=t(e),s=()=>n.addIssue({code:h.custom,...i(e)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then(t=>!!t||(s(),!1)):!!r||(s(),!1)})}refinement(t,e){return this._refinement((i,n)=>!!t(i)||(n.addIssue("function"==typeof e?e(i,n):e),!1))}_refinement(t){return new tx({schema:this,typeName:a.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return tw.create(this,this._def)}nullable(){return tb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ti.create(this)}promise(){return tv.create(this,this._def)}or(t){return tr.create([this,t],this._def)}and(t){return to.create(this,t,this._def)}transform(t){return new tx({...S(this._def),schema:this,typeName:a.ZodEffects,effect:{type:"transform",transform:t}})}default(t){return new t_({...S(this._def),innerType:this,defaultValue:"function"==typeof t?t:()=>t,typeName:a.ZodDefault})}brand(){return new tS({typeName:a.ZodBranded,type:this,...S(this._def)})}catch(t){return new tk({...S(this._def),innerType:this,catchValue:"function"==typeof t?t:()=>t,typeName:a.ZodCatch})}describe(t){return new this.constructor({...this._def,description:t})}pipe(t){return tP.create(this,t)}readonly(){return tM.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let M=/^c[^\s-]{8,}$/i,A=/^[0-9a-z]+$/,C=/^[0-9A-HJKMNP-TV-Z]{26}$/i,E=/^[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,R=/^[a-z0-9_-]{21}$/i,D=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,O=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,j=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,V=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,F=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,L=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,N=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,B=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Z="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$=RegExp(`^${Z}$`);function W(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:null==t.precision&&(e=`${e}(\\.\\d+)?`);let i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}class U extends P{_parse(t){var e,i,r,s;let a;if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==l.string){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.string,received:e.parsedType}),g}let u=new f;for(let l of this._def.checks)if("min"===l.kind)t.data.length<l.value&&(m(a=this._getOrReturnCtx(t,a),{code:h.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("max"===l.kind)t.data.length>l.value&&(m(a=this._getOrReturnCtx(t,a),{code:h.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("length"===l.kind){let e=t.data.length>l.value,i=t.data.length<l.value;(e||i)&&(a=this._getOrReturnCtx(t,a),e?m(a,{code:h.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):i&&m(a,{code:h.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),u.dirty())}else if("email"===l.kind)j.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"email",code:h.invalid_string,message:l.message}),u.dirty());else if("emoji"===l.kind)o||(o=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),o.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"emoji",code:h.invalid_string,message:l.message}),u.dirty());else if("uuid"===l.kind)E.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"uuid",code:h.invalid_string,message:l.message}),u.dirty());else if("nanoid"===l.kind)R.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"nanoid",code:h.invalid_string,message:l.message}),u.dirty());else if("cuid"===l.kind)M.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"cuid",code:h.invalid_string,message:l.message}),u.dirty());else if("cuid2"===l.kind)A.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"cuid2",code:h.invalid_string,message:l.message}),u.dirty());else if("ulid"===l.kind)C.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"ulid",code:h.invalid_string,message:l.message}),u.dirty());else if("url"===l.kind)try{new URL(t.data)}catch{m(a=this._getOrReturnCtx(t,a),{validation:"url",code:h.invalid_string,message:l.message}),u.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"regex",code:h.invalid_string,message:l.message}),u.dirty())):"trim"===l.kind?t.data=t.data.trim():"includes"===l.kind?t.data.includes(l.value,l.position)||(m(a=this._getOrReturnCtx(t,a),{code:h.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),u.dirty()):"toLowerCase"===l.kind?t.data=t.data.toLowerCase():"toUpperCase"===l.kind?t.data=t.data.toUpperCase():"startsWith"===l.kind?t.data.startsWith(l.value)||(m(a=this._getOrReturnCtx(t,a),{code:h.invalid_string,validation:{startsWith:l.value},message:l.message}),u.dirty()):"endsWith"===l.kind?t.data.endsWith(l.value)||(m(a=this._getOrReturnCtx(t,a),{code:h.invalid_string,validation:{endsWith:l.value},message:l.message}),u.dirty()):"datetime"===l.kind?(function(t){let e=`${Z}T${W(t)}`,i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,RegExp(`^${e}$`)})(l).test(t.data)||(m(a=this._getOrReturnCtx(t,a),{code:h.invalid_string,validation:"datetime",message:l.message}),u.dirty()):"date"===l.kind?$.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{code:h.invalid_string,validation:"date",message:l.message}),u.dirty()):"time"===l.kind?RegExp(`^${W(l)}$`).test(t.data)||(m(a=this._getOrReturnCtx(t,a),{code:h.invalid_string,validation:"time",message:l.message}),u.dirty()):"duration"===l.kind?O.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"duration",code:h.invalid_string,message:l.message}),u.dirty()):"ip"===l.kind?(e=t.data,("v4"===(i=l.version)||!i)&&V.test(e)||("v6"===i||!i)&&F.test(e)||(m(a=this._getOrReturnCtx(t,a),{validation:"ip",code:h.invalid_string,message:l.message}),u.dirty())):"jwt"===l.kind?!function(t,e){if(!D.test(t))return!1;try{let[i]=t.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),r=JSON.parse(atob(n));if("object"!=typeof r||null===r||"typ"in r&&r?.typ!=="JWT"||!r.alg||e&&r.alg!==e)return!1;return!0}catch{return!1}}(t.data,l.alg)&&(m(a=this._getOrReturnCtx(t,a),{validation:"jwt",code:h.invalid_string,message:l.message}),u.dirty()):"cidr"===l.kind?(r=t.data,("v4"===(s=l.version)||!s)&&I.test(r)||("v6"===s||!s)&&L.test(r)||(m(a=this._getOrReturnCtx(t,a),{validation:"cidr",code:h.invalid_string,message:l.message}),u.dirty())):"base64"===l.kind?N.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"base64",code:h.invalid_string,message:l.message}),u.dirty()):"base64url"===l.kind?B.test(t.data)||(m(a=this._getOrReturnCtx(t,a),{validation:"base64url",code:h.invalid_string,message:l.message}),u.dirty()):n.assertNever(l);return{status:u.value,value:t.data}}_regex(t,e,i){return this.refinement(e=>t.test(e),{validation:e,code:h.invalid_string,...s.errToObj(i)})}_addCheck(t){return new U({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...s.errToObj(t)})}url(t){return this._addCheck({kind:"url",...s.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...s.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...s.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...s.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...s.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...s.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...s.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...s.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...s.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...s.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...s.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...s.errToObj(t)})}datetime(t){return"string"==typeof t?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:void 0===t?.precision?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...s.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return"string"==typeof t?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:void 0===t?.precision?null:t?.precision,...s.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...s.errToObj(t)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,...s.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:e?.position,...s.errToObj(e?.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,...s.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,...s.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,...s.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,...s.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,...s.errToObj(e)})}nonempty(t){return this.min(1,s.errToObj(t))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>"datetime"===t.kind)}get isDate(){return!!this._def.checks.find(t=>"date"===t.kind)}get isTime(){return!!this._def.checks.find(t=>"time"===t.kind)}get isDuration(){return!!this._def.checks.find(t=>"duration"===t.kind)}get isEmail(){return!!this._def.checks.find(t=>"email"===t.kind)}get isURL(){return!!this._def.checks.find(t=>"url"===t.kind)}get isEmoji(){return!!this._def.checks.find(t=>"emoji"===t.kind)}get isUUID(){return!!this._def.checks.find(t=>"uuid"===t.kind)}get isNANOID(){return!!this._def.checks.find(t=>"nanoid"===t.kind)}get isCUID(){return!!this._def.checks.find(t=>"cuid"===t.kind)}get isCUID2(){return!!this._def.checks.find(t=>"cuid2"===t.kind)}get isULID(){return!!this._def.checks.find(t=>"ulid"===t.kind)}get isIP(){return!!this._def.checks.find(t=>"ip"===t.kind)}get isCIDR(){return!!this._def.checks.find(t=>"cidr"===t.kind)}get isBase64(){return!!this._def.checks.find(t=>"base64"===t.kind)}get isBase64url(){return!!this._def.checks.find(t=>"base64url"===t.kind)}get minLength(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}}U.create=t=>new U({checks:[],typeName:a.ZodString,coerce:t?.coerce??!1,...S(t)});class z extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){let e;if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==l.number){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.number,received:e.parsedType}),g}let i=new f;for(let r of this._def.checks)"int"===r.kind?n.isInteger(t.data)||(m(e=this._getOrReturnCtx(t,e),{code:h.invalid_type,expected:"integer",received:"float",message:r.message}),i.dirty()):"min"===r.kind?(r.inclusive?t.data<r.value:t.data<=r.value)&&(m(e=this._getOrReturnCtx(t,e),{code:h.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?t.data>r.value:t.data>=r.value)&&(m(e=this._getOrReturnCtx(t,e),{code:h.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"multipleOf"===r.kind?0!==function(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,r=i>n?i:n;return Number.parseInt(t.toFixed(r).replace(".",""))%Number.parseInt(e.toFixed(r).replace(".",""))/10**r}(t.data,r.value)&&(m(e=this._getOrReturnCtx(t,e),{code:h.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):"finite"===r.kind?Number.isFinite(t.data)||(m(e=this._getOrReturnCtx(t,e),{code:h.not_finite,message:r.message}),i.dirty()):n.assertNever(r);return{status:i.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,s.toString(e))}gt(t,e){return this.setLimit("min",t,!1,s.toString(e))}lte(t,e){return this.setLimit("max",t,!0,s.toString(e))}lt(t,e){return this.setLimit("max",t,!1,s.toString(e))}setLimit(t,e,i,n){return new z({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:i,message:s.toString(n)}]})}_addCheck(t){return new z({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:s.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:s.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:s.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.toString(t)})}get minValue(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}get isInt(){return!!this._def.checks.find(t=>"int"===t.kind||"multipleOf"===t.kind&&n.isInteger(t.value))}get isFinite(){let t=null,e=null;for(let i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===e||i.value>e)&&(e=i.value):"max"===i.kind&&(null===t||i.value<t)&&(t=i.value)}return Number.isFinite(e)&&Number.isFinite(t)}}z.create=t=>new z({checks:[],typeName:a.ZodNumber,coerce:t?.coerce||!1,...S(t)});class Y extends P{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){let e;if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==l.bigint)return this._getInvalidInput(t);let i=new f;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?t.data<r.value:t.data<=r.value)&&(m(e=this._getOrReturnCtx(t,e),{code:h.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?t.data>r.value:t.data>=r.value)&&(m(e=this._getOrReturnCtx(t,e),{code:h.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"multipleOf"===r.kind?t.data%r.value!==BigInt(0)&&(m(e=this._getOrReturnCtx(t,e),{code:h.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):n.assertNever(r);return{status:i.value,value:t.data}}_getInvalidInput(t){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.bigint,received:e.parsedType}),g}gte(t,e){return this.setLimit("min",t,!0,s.toString(e))}gt(t,e){return this.setLimit("min",t,!1,s.toString(e))}lte(t,e){return this.setLimit("max",t,!0,s.toString(e))}lt(t,e){return this.setLimit("max",t,!1,s.toString(e))}setLimit(t,e,i,n){return new Y({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:i,message:s.toString(n)}]})}_addCheck(t){return new Y({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:s.toString(e)})}get minValue(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}}Y.create=t=>new Y({checks:[],typeName:a.ZodBigInt,coerce:t?.coerce??!1,...S(t)});class Q extends P{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==l.boolean){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.boolean,received:e.parsedType}),g}return v(t.data)}}Q.create=t=>new Q({typeName:a.ZodBoolean,coerce:t?.coerce||!1,...S(t)});class q extends P{_parse(t){let e;if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==l.date){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.date,received:e.parsedType}),g}if(Number.isNaN(t.data.getTime()))return m(this._getOrReturnCtx(t),{code:h.invalid_date}),g;let i=new f;for(let r of this._def.checks)"min"===r.kind?t.data.getTime()<r.value&&(m(e=this._getOrReturnCtx(t,e),{code:h.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):"max"===r.kind?t.data.getTime()>r.value&&(m(e=this._getOrReturnCtx(t,e),{code:h.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):n.assertNever(r);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new q({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:s.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:s.toString(e)})}get minDate(){let t=null;for(let e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return null!=t?new Date(t):null}get maxDate(){let t=null;for(let e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return null!=t?new Date(t):null}}q.create=t=>new q({checks:[],coerce:t?.coerce||!1,typeName:a.ZodDate,...S(t)});class H extends P{_parse(t){if(this._getType(t)!==l.symbol){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.symbol,received:e.parsedType}),g}return v(t.data)}}H.create=t=>new H({typeName:a.ZodSymbol,...S(t)});class X extends P{_parse(t){if(this._getType(t)!==l.undefined){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.undefined,received:e.parsedType}),g}return v(t.data)}}X.create=t=>new X({typeName:a.ZodUndefined,...S(t)});class K extends P{_parse(t){if(this._getType(t)!==l.null){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.null,received:e.parsedType}),g}return v(t.data)}}K.create=t=>new K({typeName:a.ZodNull,...S(t)});class G extends P{constructor(){super(...arguments),this._any=!0}_parse(t){return v(t.data)}}G.create=t=>new G({typeName:a.ZodAny,...S(t)});class J extends P{constructor(){super(...arguments),this._unknown=!0}_parse(t){return v(t.data)}}J.create=t=>new J({typeName:a.ZodUnknown,...S(t)});class tt extends P{_parse(t){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.never,received:e.parsedType}),g}}tt.create=t=>new tt({typeName:a.ZodNever,...S(t)});class te extends P{_parse(t){if(this._getType(t)!==l.undefined){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.void,received:e.parsedType}),g}return v(t.data)}}te.create=t=>new te({typeName:a.ZodVoid,...S(t)});class ti extends P{_parse(t){let{ctx:e,status:i}=this._processInputParams(t),n=this._def;if(e.parsedType!==l.array)return m(e,{code:h.invalid_type,expected:l.array,received:e.parsedType}),g;if(null!==n.exactLength){let t=e.data.length>n.exactLength.value,r=e.data.length<n.exactLength.value;(t||r)&&(m(e,{code:t?h.too_big:h.too_small,minimum:r?n.exactLength.value:void 0,maximum:t?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(null!==n.minLength&&e.data.length<n.minLength.value&&(m(e,{code:h.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),null!==n.maxLength&&e.data.length>n.maxLength.value&&(m(e,{code:h.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),e.common.async)return Promise.all([...e.data].map((t,i)=>n.type._parseAsync(new k(e,t,e.path,i)))).then(t=>f.mergeArray(i,t));let r=[...e.data].map((t,i)=>n.type._parseSync(new k(e,t,e.path,i)));return f.mergeArray(i,r)}get element(){return this._def.type}min(t,e){return new ti({...this._def,minLength:{value:t,message:s.toString(e)}})}max(t,e){return new ti({...this._def,maxLength:{value:t,message:s.toString(e)}})}length(t,e){return new ti({...this._def,exactLength:{value:t,message:s.toString(e)}})}nonempty(t){return this.min(1,t)}}ti.create=(t,e)=>new ti({type:t,minLength:null,maxLength:null,exactLength:null,typeName:a.ZodArray,...S(e)});class tn extends P{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let t=this._def.shape(),e=n.objectKeys(t);return this._cached={shape:t,keys:e},this._cached}_parse(t){if(this._getType(t)!==l.object){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.object,received:e.parsedType}),g}let{status:e,ctx:i}=this._processInputParams(t),{shape:n,keys:r}=this._getCached(),s=[];if(!(this._def.catchall instanceof tt&&"strip"===this._def.unknownKeys))for(let t in i.data)r.includes(t)||s.push(t);let a=[];for(let t of r){let e=n[t],r=i.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new k(i,r,i.path,t)),alwaysSet:t in i.data})}if(this._def.catchall instanceof tt){let t=this._def.unknownKeys;if("passthrough"===t)for(let t of s)a.push({key:{status:"valid",value:t},value:{status:"valid",value:i.data[t]}});else if("strict"===t)s.length>0&&(m(i,{code:h.unrecognized_keys,keys:s}),e.dirty());else if("strip"===t);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let t=this._def.catchall;for(let e of s){let n=i.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new k(i,n,i.path,e)),alwaysSet:e in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let t=[];for(let e of a){let i=await e.key,n=await e.value;t.push({key:i,value:n,alwaysSet:e.alwaysSet})}return t}).then(t=>f.mergeObjectSync(e,t)):f.mergeObjectSync(e,a)}get shape(){return this._def.shape()}strict(t){return s.errToObj,new tn({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(e,i)=>{let n=this._def.errorMap?.(e,i).message??i.defaultError;return"unrecognized_keys"===e.code?{message:s.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new tn({...this._def,unknownKeys:"strip"})}passthrough(){return new tn({...this._def,unknownKeys:"passthrough"})}extend(t){return new tn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new tn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:a.ZodObject})}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new tn({...this._def,catchall:t})}pick(t){let e={};for(let i of n.objectKeys(t))t[i]&&this.shape[i]&&(e[i]=this.shape[i]);return new tn({...this._def,shape:()=>e})}omit(t){let e={};for(let i of n.objectKeys(this.shape))t[i]||(e[i]=this.shape[i]);return new tn({...this._def,shape:()=>e})}deepPartial(){return function t(e){if(e instanceof tn){let i={};for(let n in e.shape){let r=e.shape[n];i[n]=tw.create(t(r))}return new tn({...e._def,shape:()=>i})}return e instanceof ti?new ti({...e._def,type:t(e.element)}):e instanceof tw?tw.create(t(e.unwrap())):e instanceof tb?tb.create(t(e.unwrap())):e instanceof tl?tl.create(e.items.map(e=>t(e))):e}(this)}partial(t){let e={};for(let i of n.objectKeys(this.shape)){let n=this.shape[i];t&&!t[i]?e[i]=n:e[i]=n.optional()}return new tn({...this._def,shape:()=>e})}required(t){let e={};for(let i of n.objectKeys(this.shape))if(t&&!t[i])e[i]=this.shape[i];else{let t=this.shape[i];for(;t instanceof tw;)t=t._def.innerType;e[i]=t}return new tn({...this._def,shape:()=>e})}keyof(){return tf(n.objectKeys(this.shape))}}tn.create=(t,e)=>new tn({shape:()=>t,unknownKeys:"strip",catchall:tt.create(),typeName:a.ZodObject,...S(e)}),tn.strictCreate=(t,e)=>new tn({shape:()=>t,unknownKeys:"strict",catchall:tt.create(),typeName:a.ZodObject,...S(e)}),tn.lazycreate=(t,e)=>new tn({shape:t,unknownKeys:"strip",catchall:tt.create(),typeName:a.ZodObject,...S(e)});class tr extends P{_parse(t){let{ctx:e}=this._processInputParams(t),i=this._def.options;if(e.common.async)return Promise.all(i.map(async t=>{let i={...e,common:{...e.common,issues:[]},parent:null};return{result:await t._parseAsync({data:e.data,path:e.path,parent:i}),ctx:i}})).then(function(t){for(let e of t)if("valid"===e.result.status)return e.result;for(let i of t)if("dirty"===i.result.status)return e.common.issues.push(...i.ctx.common.issues),i.result;let i=t.map(t=>new d(t.ctx.common.issues));return m(e,{code:h.invalid_union,unionErrors:i}),g});{let t;let n=[];for(let r of i){let i={...e,common:{...e.common,issues:[]},parent:null},s=r._parseSync({data:e.data,path:e.path,parent:i});if("valid"===s.status)return s;"dirty"!==s.status||t||(t={result:s,ctx:i}),i.common.issues.length&&n.push(i.common.issues)}if(t)return e.common.issues.push(...t.ctx.common.issues),t.result;let r=n.map(t=>new d(t));return m(e,{code:h.invalid_union,unionErrors:r}),g}}get options(){return this._def.options}}tr.create=(t,e)=>new tr({options:t,typeName:a.ZodUnion,...S(e)});let ts=t=>{if(t instanceof tp)return ts(t.schema);if(t instanceof tx)return ts(t.innerType());if(t instanceof tm)return[t.value];if(t instanceof tg)return t.options;if(t instanceof ty)return n.objectValues(t.enum);if(t instanceof t_)return ts(t._def.innerType);if(t instanceof X)return[void 0];else if(t instanceof K)return[null];else if(t instanceof tw)return[void 0,...ts(t.unwrap())];else if(t instanceof tb)return[null,...ts(t.unwrap())];else if(t instanceof tS)return ts(t.unwrap());else if(t instanceof tM)return ts(t.unwrap());else if(t instanceof tk)return ts(t._def.innerType);else return[]};class ta extends P{_parse(t){let{ctx:e}=this._processInputParams(t);if(e.parsedType!==l.object)return m(e,{code:h.invalid_type,expected:l.object,received:e.parsedType}),g;let i=this.discriminator,n=e.data[i],r=this.optionsMap.get(n);return r?e.common.async?r._parseAsync({data:e.data,path:e.path,parent:e}):r._parseSync({data:e.data,path:e.path,parent:e}):(m(e,{code:h.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),g)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,e,i){let n=new Map;for(let i of e){let e=ts(i.shape[t]);if(!e.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of e){if(n.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);n.set(r,i)}}return new ta({typeName:a.ZodDiscriminatedUnion,discriminator:t,options:e,optionsMap:n,...S(i)})}}class to extends P{_parse(t){let{status:e,ctx:i}=this._processInputParams(t),r=(t,r)=>{if(x(t)||x(r))return g;let s=function t(e,i){let r=u(e),s=u(i);if(e===i)return{valid:!0,data:e};if(r===l.object&&s===l.object){let r=n.objectKeys(i),s=n.objectKeys(e).filter(t=>-1!==r.indexOf(t)),a={...e,...i};for(let n of s){let r=t(e[n],i[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(r===l.array&&s===l.array){if(e.length!==i.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let s=t(e[r],i[r]);if(!s.valid)return{valid:!1};n.push(s.data)}return{valid:!0,data:n}}return r===l.date&&s===l.date&&+e==+i?{valid:!0,data:e}:{valid:!1}}(t.value,r.value);return s.valid?((w(t)||w(r))&&e.dirty(),{status:e.value,value:s.data}):(m(i,{code:h.invalid_intersection_types}),g)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([t,e])=>r(t,e)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}to.create=(t,e,i)=>new to({left:t,right:e,typeName:a.ZodIntersection,...S(i)});class tl extends P{_parse(t){let{status:e,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.array)return m(i,{code:h.invalid_type,expected:l.array,received:i.parsedType}),g;if(i.data.length<this._def.items.length)return m(i,{code:h.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&i.data.length>this._def.items.length&&(m(i,{code:h.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());let n=[...i.data].map((t,e)=>{let n=this._def.items[e]||this._def.rest;return n?n._parse(new k(i,t,i.path,e)):null}).filter(t=>!!t);return i.common.async?Promise.all(n).then(t=>f.mergeArray(e,t)):f.mergeArray(e,n)}get items(){return this._def.items}rest(t){return new tl({...this._def,rest:t})}}tl.create=(t,e)=>{if(!Array.isArray(t))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new tl({items:t,typeName:a.ZodTuple,rest:null,...S(e)})};class tu extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:e,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.object)return m(i,{code:h.invalid_type,expected:l.object,received:i.parsedType}),g;let n=[],r=this._def.keyType,s=this._def.valueType;for(let t in i.data)n.push({key:r._parse(new k(i,t,i.path,t)),value:s._parse(new k(i,i.data[t],i.path,t)),alwaysSet:t in i.data});return i.common.async?f.mergeObjectAsync(e,n):f.mergeObjectSync(e,n)}get element(){return this._def.valueType}static create(t,e,i){return new tu(e instanceof P?{keyType:t,valueType:e,typeName:a.ZodRecord,...S(i)}:{keyType:U.create(),valueType:t,typeName:a.ZodRecord,...S(e)})}}class th extends P{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:e,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.map)return m(i,{code:h.invalid_type,expected:l.map,received:i.parsedType}),g;let n=this._def.keyType,r=this._def.valueType,s=[...i.data.entries()].map(([t,e],s)=>({key:n._parse(new k(i,t,i.path,[s,"key"])),value:r._parse(new k(i,e,i.path,[s,"value"]))}));if(i.common.async){let t=new Map;return Promise.resolve().then(async()=>{for(let i of s){let n=await i.key,r=await i.value;if("aborted"===n.status||"aborted"===r.status)return g;("dirty"===n.status||"dirty"===r.status)&&e.dirty(),t.set(n.value,r.value)}return{status:e.value,value:t}})}{let t=new Map;for(let i of s){let n=i.key,r=i.value;if("aborted"===n.status||"aborted"===r.status)return g;("dirty"===n.status||"dirty"===r.status)&&e.dirty(),t.set(n.value,r.value)}return{status:e.value,value:t}}}}th.create=(t,e,i)=>new th({valueType:e,keyType:t,typeName:a.ZodMap,...S(i)});class td extends P{_parse(t){let{status:e,ctx:i}=this._processInputParams(t);if(i.parsedType!==l.set)return m(i,{code:h.invalid_type,expected:l.set,received:i.parsedType}),g;let n=this._def;null!==n.minSize&&i.data.size<n.minSize.value&&(m(i,{code:h.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),e.dirty()),null!==n.maxSize&&i.data.size>n.maxSize.value&&(m(i,{code:h.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),e.dirty());let r=this._def.valueType;function s(t){let i=new Set;for(let n of t){if("aborted"===n.status)return g;"dirty"===n.status&&e.dirty(),i.add(n.value)}return{status:e.value,value:i}}let a=[...i.data.values()].map((t,e)=>r._parse(new k(i,t,i.path,e)));return i.common.async?Promise.all(a).then(t=>s(t)):s(a)}min(t,e){return new td({...this._def,minSize:{value:t,message:s.toString(e)}})}max(t,e){return new td({...this._def,maxSize:{value:t,message:s.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}td.create=(t,e)=>new td({valueType:t,minSize:null,maxSize:null,typeName:a.ZodSet,...S(e)});class tc extends P{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:e}=this._processInputParams(t);if(e.parsedType!==l.function)return m(e,{code:h.invalid_type,expected:l.function,received:e.parsedType}),g;function i(t,i){return p({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c,c].filter(t=>!!t),issueData:{code:h.invalid_arguments,argumentsError:i}})}function n(t,i){return p({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c,c].filter(t=>!!t),issueData:{code:h.invalid_return_type,returnTypeError:i}})}let r={errorMap:e.common.contextualErrorMap},s=e.data;if(this._def.returns instanceof tv){let t=this;return v(async function(...e){let a=new d([]),o=await t._def.args.parseAsync(e,r).catch(t=>{throw a.addIssue(i(e,t)),a}),l=await Reflect.apply(s,this,o);return await t._def.returns._def.type.parseAsync(l,r).catch(t=>{throw a.addIssue(n(l,t)),a})})}{let t=this;return v(function(...e){let a=t._def.args.safeParse(e,r);if(!a.success)throw new d([i(e,a.error)]);let o=Reflect.apply(s,this,a.data),l=t._def.returns.safeParse(o,r);if(!l.success)throw new d([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new tc({...this._def,args:tl.create(t).rest(J.create())})}returns(t){return new tc({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,e,i){return new tc({args:t||tl.create([]).rest(J.create()),returns:e||J.create(),typeName:a.ZodFunction,...S(i)})}}class tp extends P{get schema(){return this._def.getter()}_parse(t){let{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}tp.create=(t,e)=>new tp({getter:t,typeName:a.ZodLazy,...S(e)});class tm extends P{_parse(t){if(t.data!==this._def.value){let e=this._getOrReturnCtx(t);return m(e,{received:e.data,code:h.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:t.data}}get value(){return this._def.value}}function tf(t,e){return new tg({values:t,typeName:a.ZodEnum,...S(e)})}tm.create=(t,e)=>new tm({value:t,typeName:a.ZodLiteral,...S(e)});class tg extends P{_parse(t){if("string"!=typeof t.data){let e=this._getOrReturnCtx(t),i=this._def.values;return m(e,{expected:n.joinValues(i),received:e.parsedType,code:h.invalid_type}),g}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let e=this._getOrReturnCtx(t),i=this._def.values;return m(e,{received:e.data,code:h.invalid_enum_value,options:i}),g}return v(t.data)}get options(){return this._def.values}get enum(){let t={};for(let e of this._def.values)t[e]=e;return t}get Values(){let t={};for(let e of this._def.values)t[e]=e;return t}get Enum(){let t={};for(let e of this._def.values)t[e]=e;return t}extract(t,e=this._def){return tg.create(t,{...this._def,...e})}exclude(t,e=this._def){return tg.create(this.options.filter(e=>!t.includes(e)),{...this._def,...e})}}tg.create=tf;class ty extends P{_parse(t){let e=n.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==l.string&&i.parsedType!==l.number){let t=n.objectValues(e);return m(i,{expected:n.joinValues(t),received:i.parsedType,code:h.invalid_type}),g}if(this._cache||(this._cache=new Set(n.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let t=n.objectValues(e);return m(i,{received:i.data,code:h.invalid_enum_value,options:t}),g}return v(t.data)}get enum(){return this._def.values}}ty.create=(t,e)=>new ty({values:t,typeName:a.ZodNativeEnum,...S(e)});class tv extends P{unwrap(){return this._def.type}_parse(t){let{ctx:e}=this._processInputParams(t);return e.parsedType!==l.promise&&!1===e.common.async?(m(e,{code:h.invalid_type,expected:l.promise,received:e.parsedType}),g):v((e.parsedType===l.promise?e.data:Promise.resolve(e.data)).then(t=>this._def.type.parseAsync(t,{path:e.path,errorMap:e.common.contextualErrorMap})))}}tv.create=(t,e)=>new tv({type:t,typeName:a.ZodPromise,...S(e)});class tx extends P{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===a.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:e,ctx:i}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:t=>{m(i,t),t.fatal?e.abort():e.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===r.type){let t=r.transform(i.data,s);if(i.common.async)return Promise.resolve(t).then(async t=>{if("aborted"===e.value)return g;let n=await this._def.schema._parseAsync({data:t,path:i.path,parent:i});return"aborted"===n.status?g:"dirty"===n.status||"dirty"===e.value?y(n.value):n});{if("aborted"===e.value)return g;let n=this._def.schema._parseSync({data:t,path:i.path,parent:i});return"aborted"===n.status?g:"dirty"===n.status||"dirty"===e.value?y(n.value):n}}if("refinement"===r.type){let t=t=>{let e=r.refinement(t,s);if(i.common.async)return Promise.resolve(e);if(e instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return t};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?g:("dirty"===i.status&&e.dirty(),t(i.value).then(()=>({status:e.value,value:i.value}))));{let n=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===n.status?g:("dirty"===n.status&&e.dirty(),t(n.value),{status:e.value,value:n.value})}}if("transform"===r.type){if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(t=>b(t)?Promise.resolve(r.transform(t.value,s)).then(t=>({status:e.value,value:t})):g);{let t=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!b(t))return g;let n=r.transform(t.value,s);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:n}}}n.assertNever(r)}}tx.create=(t,e,i)=>new tx({schema:t,typeName:a.ZodEffects,effect:e,...S(i)}),tx.createWithPreprocess=(t,e,i)=>new tx({schema:e,effect:{type:"preprocess",transform:t},typeName:a.ZodEffects,...S(i)});class tw extends P{_parse(t){return this._getType(t)===l.undefined?v(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}tw.create=(t,e)=>new tw({innerType:t,typeName:a.ZodOptional,...S(e)});class tb extends P{_parse(t){return this._getType(t)===l.null?v(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}tb.create=(t,e)=>new tb({innerType:t,typeName:a.ZodNullable,...S(e)});class t_ extends P{_parse(t){let{ctx:e}=this._processInputParams(t),i=e.data;return e.parsedType===l.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}t_.create=(t,e)=>new t_({innerType:t,typeName:a.ZodDefault,defaultValue:"function"==typeof e.default?e.default:()=>e.default,...S(e)});class tk extends P{_parse(t){let{ctx:e}=this._processInputParams(t),i={...e,common:{...e.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return _(n)?n.then(t=>({status:"valid",value:"valid"===t.status?t.value:this._def.catchValue({get error(){return new d(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new d(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}tk.create=(t,e)=>new tk({innerType:t,typeName:a.ZodCatch,catchValue:"function"==typeof e.catch?e.catch:()=>e.catch,...S(e)});class tT extends P{_parse(t){if(this._getType(t)!==l.nan){let e=this._getOrReturnCtx(t);return m(e,{code:h.invalid_type,expected:l.nan,received:e.parsedType}),g}return{status:"valid",value:t.data}}}tT.create=t=>new tT({typeName:a.ZodNaN,...S(t)}),Symbol("zod_brand");class tS extends P{_parse(t){let{ctx:e}=this._processInputParams(t),i=e.data;return this._def.type._parse({data:i,path:e.path,parent:e})}unwrap(){return this._def.type}}class tP extends P{_parse(t){let{status:e,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let t=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===t.status?g:"dirty"===t.status?(e.dirty(),y(t.value)):this._def.out._parseAsync({data:t.value,path:i.path,parent:i})})();{let t=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===t.status?g:"dirty"===t.status?(e.dirty(),{status:"dirty",value:t.value}):this._def.out._parseSync({data:t.value,path:i.path,parent:i})}}static create(t,e){return new tP({in:t,out:e,typeName:a.ZodPipeline})}}class tM extends P{_parse(t){let e=this._def.innerType._parse(t),i=t=>(b(t)&&(t.value=Object.freeze(t.value)),t);return _(e)?e.then(t=>i(t)):i(e)}unwrap(){return this._def.innerType}}tM.create=(t,e)=>new tM({innerType:t,typeName:a.ZodReadonly,...S(e)}),tn.lazycreate,function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"}(a||(a={}));let tA=U.create,tC=z.create;tT.create,Y.create;let tE=Q.create;q.create,H.create,X.create,K.create,G.create,J.create,tt.create,te.create;let tR=ti.create,tD=tn.create;tn.strictCreate,tr.create,ta.create,to.create,tl.create,tu.create,th.create,td.create,tc.create,tp.create,tm.create,tg.create;let tO=ty.create;tv.create,tx.create,tw.create,tb.create,tx.createWithPreprocess,tP.create}}]);