cloudcommerce 2.0.4 → 2.0.6

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 (186) hide show
  1. package/.github/workflows/test-apps.yml +2 -2
  2. package/CHANGELOG.md +18 -0
  3. package/README.md +1 -1
  4. package/action.yml +4 -4
  5. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  6. package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
  7. package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +2 -2
  8. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +1 -1
  9. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  10. package/ecomplus-stores/barra-doce/package.json +2 -2
  11. package/package.json +2 -2
  12. package/packages/api/lib/api.d.ts +8 -2
  13. package/packages/api/lib/api.js +8 -6
  14. package/packages/api/lib/api.js.map +1 -1
  15. package/packages/api/package.json +3 -2
  16. package/packages/api/src/api.ts +12 -6
  17. package/packages/api/tests/index.test.ts +9 -0
  18. package/packages/api/types.d.ts +35 -26
  19. package/packages/apps/affiliate-program/package.json +1 -1
  20. package/packages/apps/correios/package.json +1 -1
  21. package/packages/apps/custom-payment/package.json +1 -1
  22. package/packages/apps/custom-shipping/package.json +1 -1
  23. package/packages/apps/datafrete/package.json +1 -1
  24. package/packages/apps/discounts/package.json +1 -1
  25. package/packages/apps/emails/package.json +1 -1
  26. package/packages/apps/fb-conversions/package.json +1 -1
  27. package/packages/apps/flash-courier/package.json +1 -1
  28. package/packages/apps/frenet/package.json +1 -1
  29. package/packages/apps/galaxpay/package.json +1 -1
  30. package/packages/apps/google-analytics/package.json +1 -1
  31. package/packages/apps/jadlog/package.json +1 -1
  32. package/packages/apps/loyalty-points/package.json +1 -1
  33. package/packages/apps/mandae/package.json +1 -1
  34. package/packages/apps/melhor-envio/package.json +1 -1
  35. package/packages/apps/mercadopago/package.json +1 -1
  36. package/packages/apps/pagarme/package.json +1 -1
  37. package/packages/apps/pagarme-v5/package.json +1 -1
  38. package/packages/apps/paghiper/package.json +1 -1
  39. package/packages/apps/pix/package.json +1 -1
  40. package/packages/apps/tiny-erp/package.json +1 -1
  41. package/packages/apps/webhooks/package.json +1 -1
  42. package/packages/cli/package.json +1 -1
  43. package/packages/config/package.json +1 -1
  44. package/packages/emails/package.json +1 -1
  45. package/packages/eslint/package.json +1 -1
  46. package/packages/events/package.json +1 -1
  47. package/packages/feeds/package.json +1 -1
  48. package/packages/firebase/package.json +1 -1
  49. package/packages/i18n/package.json +1 -1
  50. package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js.map +1 -1
  51. package/packages/modules/package.json +1 -1
  52. package/packages/modules/src/firebase/functions-checkout/handle-order-transaction.ts +1 -1
  53. package/packages/passport/package.json +1 -1
  54. package/packages/ssr/lib/lib/cron-ssr-save-views.js +8 -4
  55. package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
  56. package/packages/ssr/package.json +2 -2
  57. package/packages/ssr/src/lib/cron-ssr-save-views.ts +8 -4
  58. package/packages/storefront/config/storefront.tailwind.cjs +10 -1
  59. package/packages/storefront/config/storefront.unocss.cjs +1 -1
  60. package/packages/storefront/dist/client/_astro/AccountPage.oxrx8xO0.js +1 -0
  61. package/packages/storefront/dist/client/_astro/CartSidebar.ShqcM66P.js +1 -0
  62. package/packages/storefront/dist/client/_astro/HeroSlider.OYdereCn.js +1 -0
  63. package/packages/storefront/dist/client/_astro/PitchBar.RVEArMQA.js +1 -0
  64. package/packages/storefront/dist/client/_astro/Prices.Bsod-tLh.js +1 -0
  65. package/packages/storefront/dist/client/_astro/ProductDetails.TQM36pzk.js +7 -0
  66. package/packages/storefront/dist/client/_astro/ProductShelf.HX1P9sTW.js +1 -0
  67. package/packages/storefront/dist/client/_astro/ProductShelf._0iHMZBO.js +1 -0
  68. package/packages/storefront/dist/client/_astro/QuantitySelector.SEAsIOhe.js +1 -0
  69. package/packages/storefront/dist/client/_astro/SearchModal.JVuqMQFe.js +1 -0
  70. package/packages/storefront/dist/client/_astro/SearchShowcase.zwEq0xsL.js +1 -0
  71. package/packages/storefront/dist/client/_astro/ShopHeader.BoPmUmjI.js +7 -0
  72. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.40kDRyEO.js +1 -0
  73. package/packages/storefront/dist/client/_astro/{_slug_.cfRx-rdA.css → _slug_.PTG68eA8.css} +1 -1
  74. package/packages/storefront/dist/client/_astro/client.nPN_zw-c.js +1 -0
  75. package/packages/storefront/dist/client/_astro/customer-session.yn5lG3w3.js +7 -0
  76. package/packages/storefront/dist/client/_astro/format-money.ykh8O7d2.js +1 -0
  77. package/packages/storefront/dist/client/_astro/grid-title.z5ui_5pL.js +1 -0
  78. package/packages/storefront/dist/client/_astro/hoisted.FcmEawNA.js +1 -0
  79. package/packages/storefront/dist/client/_astro/hoisted.daSrX1-i.js +1 -0
  80. package/packages/storefront/dist/client/_astro/hoisted.hpPOAcMM.js +1 -0
  81. package/packages/storefront/dist/client/_astro/i18n.MycOopxQ.js +1 -0
  82. package/packages/storefront/dist/client/_astro/img.c2KI4eO6.js +1 -0
  83. package/packages/storefront/dist/client/_astro/index.8acAQSHW.js +1 -0
  84. package/packages/storefront/dist/client/_astro/index.NRzvVgQf.js +1 -0
  85. package/packages/storefront/dist/client/_astro/modules-info.dHD0h8Nc.js +1 -0
  86. package/packages/storefront/dist/client/_astro/name.itYHl42A.js +1 -0
  87. package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.Pr2hdd7G.js +1 -0
  88. package/packages/storefront/dist/client/_astro/shopping-cart.MgpVRgys.js +1 -0
  89. package/packages/storefront/dist/client/_astro/use-analytics.D9xd-k7D.js +1 -0
  90. package/packages/storefront/dist/client/_astro/use-product-card.gKh9czSW.js +1 -0
  91. package/packages/storefront/dist/client/_astro/use-text-value.ZIz7zsXT.js +4 -0
  92. package/packages/storefront/dist/server/chunks/{CartSidebar_gCUGFy65.mjs → CartSidebar_8VAKl-jR.mjs} +1 -1
  93. package/packages/storefront/dist/server/chunks/{SearchModal_2uYZ9tHy.mjs → SearchModal_7debttOi.mjs} +5 -5
  94. package/packages/storefront/dist/server/chunks/{_.._FnNLvTNv.mjs → _.._D6rq0cLa.mjs} +1 -1
  95. package/packages/storefront/dist/server/chunks/{account_iZ2QmK5E.mjs → _page__WXDIwV7g.mjs} +1 -1
  96. package/packages/storefront/dist/server/chunks/{~fallback_wxuqpDXG.mjs → account_DOT2RzND.mjs} +1 -1
  97. package/packages/storefront/dist/server/chunks/astro/{assets-service_TpUb271h.mjs → assets-service_gJYJeEDH.mjs} +9 -5
  98. package/packages/storefront/dist/server/chunks/{astro_PpArQAsY.mjs → astro_H-6uiAAG.mjs} +36 -30
  99. package/packages/storefront/dist/server/chunks/index_eXlHIU83.mjs +6 -0
  100. package/packages/storefront/dist/server/chunks/{node_wOa5hJmt.mjs → node_-eQO2yOn.mjs} +1 -1
  101. package/packages/storefront/dist/server/chunks/pages/{__cEcxuEWe.mjs → __fI3NeWvy.mjs} +1750 -730
  102. package/packages/storefront/dist/server/chunks/pages/_page__Piz8geXW.mjs +165 -0
  103. package/packages/storefront/dist/server/chunks/pages/{account_WliDuQOB.mjs → account_6pD7OYw-.mjs} +6 -3
  104. package/packages/storefront/dist/server/chunks/pages/index_2F5yi6YO.mjs +128 -0
  105. package/packages/storefront/dist/server/chunks/pages/{node_ZaY4t9qW.mjs → node_-Buhxl8v.mjs} +3 -3
  106. package/packages/storefront/dist/server/chunks/pages/{~fallback_TL5hPXF_.mjs → ~fallback_okEL1qQ3.mjs} +25 -8
  107. package/packages/storefront/dist/server/chunks/~fallback_M-xiy2GE.mjs +6 -0
  108. package/packages/storefront/dist/server/entry.mjs +34 -29
  109. package/packages/storefront/dist/server/manifest_oV2meNKS.mjs +196 -0
  110. package/packages/storefront/dist/server/renderers.mjs +5 -612
  111. package/packages/storefront/package.json +3 -3
  112. package/packages/storefront/src/lib/components/globals/ALink.vue +1 -0
  113. package/packages/test-base/package.json +1 -1
  114. package/packages/types/package.json +1 -1
  115. package/packages/storefront/dist/client/_astro/AccountPage.Osc6ffV0.js +0 -1
  116. package/packages/storefront/dist/client/_astro/CartSidebar.LrfpXG2B.js +0 -1
  117. package/packages/storefront/dist/client/_astro/HeroSlider.Zf6kCaqD.js +0 -1
  118. package/packages/storefront/dist/client/_astro/PitchBar.N4d9fV8H.js +0 -1
  119. package/packages/storefront/dist/client/_astro/Prices.eQ9Vd255.js +0 -1
  120. package/packages/storefront/dist/client/_astro/ProductDetails.Ln_jf57U.js +0 -7
  121. package/packages/storefront/dist/client/_astro/ProductShelf.X389bv9S.js +0 -1
  122. package/packages/storefront/dist/client/_astro/ProductShelf.vj6lVDCr.js +0 -1
  123. package/packages/storefront/dist/client/_astro/QuantitySelector.qSJQlvTe.js +0 -1
  124. package/packages/storefront/dist/client/_astro/SearchModal.BrVoDBvg.js +0 -1
  125. package/packages/storefront/dist/client/_astro/SearchShowcase.KAz3nwco.js +0 -1
  126. package/packages/storefront/dist/client/_astro/ShopHeader.mFKGzhIu.js +0 -7
  127. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper._suIQ7WC.js +0 -1
  128. package/packages/storefront/dist/client/_astro/client.PdegUP6S.js +0 -1
  129. package/packages/storefront/dist/client/_astro/customer-session.KkTHFOXl.js +0 -7
  130. package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
  131. package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
  132. package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
  133. package/packages/storefront/dist/client/_astro/ecom-utils.Ld2zf-Ve.js +0 -1
  134. package/packages/storefront/dist/client/_astro/format-money.Axn0YFLJ.js +0 -1
  135. package/packages/storefront/dist/client/_astro/grid-title.GntHOijE.js +0 -1
  136. package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
  137. package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
  138. package/packages/storefront/dist/client/_astro/hoisted.3ec9NcvP.js +0 -1
  139. package/packages/storefront/dist/client/_astro/hoisted.UnTlypMd.js +0 -1
  140. package/packages/storefront/dist/client/_astro/i18n.3-NUtxYq.js +0 -1
  141. package/packages/storefront/dist/client/_astro/img.pozlYdd3.js +0 -1
  142. package/packages/storefront/dist/client/_astro/index.TkCbiY_p.js +0 -1
  143. package/packages/storefront/dist/client/_astro/index.m6fK0JXC.js +0 -1
  144. package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
  145. package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
  146. package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
  147. package/packages/storefront/dist/client/_astro/modules-info.mmwB1qIJ.js +0 -1
  148. package/packages/storefront/dist/client/_astro/name.49dZlpDx.js +0 -1
  149. package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
  150. package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
  151. package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
  152. package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
  153. package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
  154. package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
  155. package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
  156. package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
  157. package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
  158. package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
  159. package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
  160. package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
  161. package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
  162. package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
  163. package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
  164. package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
  165. package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
  166. package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
  167. package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
  168. package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
  169. package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
  170. package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
  171. package/packages/storefront/dist/client/_astro/shopping-cart.Ean2uW2R.js +0 -1
  172. package/packages/storefront/dist/client/_astro/use-analytics.Y7amTmnr.js +0 -1
  173. package/packages/storefront/dist/client/_astro/use-product-card.zB4z32bC.js +0 -1
  174. package/packages/storefront/dist/client/_astro/use-text-value.f9pDzruv.js +0 -4
  175. package/packages/storefront/dist/client/app/account/index.html +0 -56
  176. package/packages/storefront/dist/client/app/index.html +0 -96
  177. package/packages/storefront/dist/client/headset-gamer-corsair-hs40-raptor-ca-9011122-naap-vinho/index.html +0 -107
  178. package/packages/storefront/dist/client/index.html +0 -120
  179. package/packages/storefront/dist/client/macbook-apple-pro-15.4-intel-core-i7-2.6ghz-ram-16gb-ssd-512gb-mr972ll/a-prata/index.html +0 -107
  180. package/packages/storefront/dist/client/mouse-gamer-corsair-optico-harpoon-rgb-ch-9301011-na/index.html +0 -107
  181. package/packages/storefront/dist/client/teclado-gamer-fortrek-mecanico-k5-rgb-outemu-blue-preto/index.html +0 -107
  182. package/packages/storefront/dist/client/~fallback/index.html +0 -74
  183. package/packages/storefront/dist/server/chunks/index_1q5IpD39.mjs +0 -6
  184. package/packages/storefront/dist/server/chunks/index_JEU6B2DI.mjs +0 -6
  185. package/packages/storefront/dist/server/chunks/pages/index_2bQLkQf-.mjs +0 -317
  186. package/packages/storefront/dist/server/manifest_YgAgEwvF.mjs +0 -196
@@ -0,0 +1 @@
1
+ import{_ as B,T as ne,c as ae,d as oe}from"./_plugin-vue_export-helper.40kDRyEO.js";import{d as C,c,N as y,$ as A,V as k,Z as b,a0 as G,O as R,a2 as J,a3 as ee,R as S,T as v,a4 as se,a as L,w as z,a6 as K,H as ie,E as le,ac as ue,a5 as ce,Q as Z,k as $,ad as de}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{g as fe}from"./img.c2KI4eO6.js";import{u as me}from"./index.8acAQSHW.js";import{g as ve}from"./img-sizes.gxAI9JNh.js";import{i as pe}from"./i18n.MycOopxQ.js";import{f as ge}from"./format-money.ykh8O7d2.js";import{a as he,b as ye}from"./index.NRzvVgQf.js";import"./price.Easct8WC.js";const _e=C({__name:"Fade",props:{speed:{default:"default"},slide:{},isFloating:{type:Boolean,default:!1},isLeaveTo:{type:Boolean,default:!0},isEnterFrom:{type:Boolean,default:!0}},setup(r,{expose:a}){a();const e=r,t=c(()=>e.speed==="default"?"var(--transition, .2s linear)":`var(--transition-${e.speed}, .4s linear)`),s=c(()=>{switch(e.slide){case"down":return"translate3d(0, -100%, 0)";case"left":return"translate3d(-100%, 0, 0)";case"right":return"translate3d(100%, 0, 0)";case"up":return"translate3d(0, 100%, 0)";default:return"none"}}),i=c(()=>s.value!=="none"?.1:0),u=c(()=>e.isEnterFrom?i.value:1),g=c(()=>e.isLeaveTo?i.value:1),P=c(()=>e.isEnterFrom?s.value:"none"),f=c(()=>e.isLeaveTo?s.value:"none"),l=c(()=>e.slide==="down"||e.slide==="up"),_=c(()=>e.isFloating?null:l.value?0:"auto"),T=c(()=>e.isFloating?null:e.slide&&!l.value?0:"auto"),m=c(()=>e.isEnterFrom?_.value:"auto"),w=c(()=>e.isEnterFrom?T.value:"auto"),x=c(()=>{let n="opacity";return s.value!=="none"&&(n+=", transform"),_.value===0&&(n+=", height"),T.value===0&&(n+=", width"),n}),p={props:e,duration:t,transform:s,opacity:i,enterFromOpacity:u,leaveToOpacity:g,enterFromTransform:P,leaveToTransform:f,isSlideY:l,height:_,width:T,enterFromHeight:m,enterFromWidth:w,willChange:x,setInitialStyles:n=>{n.style.setProperty("--fade-will-change",x.value),n.style.setProperty("--fade-duration",t.value),n.style.setProperty("--fade-enter-opacity",String(u.value)),n.style.setProperty("--fade-enter-transform",String(P.value)),n.style.setProperty("--fade-enter-height",String(m.value)),n.style.setProperty("--fade-enter-width",String(w.value)),n.style.setProperty("--fade-leave-opacity",String(g.value)),n.style.setProperty("--fade-leave-transform",String(f.value))},onEnter:n=>{if(e.slide&&!e.isFloating&&e.isEnterFrom){l.value?(n.style.width=getComputedStyle(n).width,n.style.height="auto"):(n.style.width="auto",n.style.height=getComputedStyle(n).height),n.style.position="absolute",n.style.visibility="hidden";const{width:h,height:N}=getComputedStyle(n);n.style.width=l.value?"":"0",n.style.height=l.value?"0":"",n.style.position="",n.style.visibility="",getComputedStyle(n)[l.value?"height":"width"],requestAnimationFrame(()=>{l.value?n.style.height=N:n.style.width=h})}},onAfterEnter:n=>{e.slide&&!e.isFloating&&e.isEnterFrom&&(n.style[l.value?"height":"width"]="")},onLeave:n=>{if(e.slide&&!e.isFloating&&e.isLeaveTo){l.value?n.style.height=getComputedStyle(n).height:n.style.width=getComputedStyle(n).width;const h=l.value?"height":"width";getComputedStyle(n)[h],requestAnimationFrame(()=>{n.style[h]="0"})}}};return Object.defineProperty(p,"__isScriptSetup",{enumerable:!1,value:!0}),p}});function xe(r,a,e,t,s,i){return y(),A(ne,{name:"sf-fade",onBeforeEnter:t.setInitialStyles,onEnter:t.onEnter,onBeforeLeave:t.setInitialStyles,onAfterEnter:t.onAfterEnter,onLeave:t.onLeave},{default:k(()=>[b(r.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onBeforeLeave","onAfterEnter","onLeave"])}const Se=B(_e,[["render",xe]]),we=C({__name:"ALink",props:{href:{},target:{}},setup(r,{expose:a}){a();const e=r,t=c(()=>{if(e.href){if(e.target)return e.target;if(e.href.startsWith("http")){const i=globalThis.$storefront.settings.domain||window.location.host;if(e.href.startsWith(`https://${i}`))return}}}),s={props:e,linkTarget:t};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}});function be(r,a,e,t,s,i){return y(),A(G(e.href?"a":"span"),{href:e.href,target:t.linkTarget,rel:t.linkTarget==="_blank"?"noopener":void 0},{default:k(()=>[b(r.$slots,"default")]),_:3},8,["href","target","rel"])}const Ce=B(we,[["render",be]]),Pe=C({__name:"AImg",props:{picture:{},loading:{default:"lazy"},decoding:{},alt:{},preferredSize:{}},setup(r,{expose:a}){a();const e=r,t=c(()=>e.picture.url?e.picture:fe(e.picture,void 0,e.preferredSize)||{}),s=c(()=>ve(t.value)),i=c(()=>({src:t.value.url,alt:t.value.alt||e.alt,width:s.value.width||void 0,height:s.value.height||void 0,loading:e.loading,decoding:e.decoding||(s.value.height?"async":void 0)})),u={props:e,image:t,dimensions:s,attrs:i};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}});function Te(r,a,e,t,s,i){return y(),R("img",J(ee(t.attrs)),null,16)}const Ee=B(Pe,[["render",Te]]),q="bg-gray-200 rounded-md dark:bg-gray-700",Le=C({__name:"Skeleton",props:{isBold:{type:Boolean},isLarge:{type:Boolean}},setup(r,{expose:a}){a();const e=r,t=c(()=>`${q} ${e.isBold?"h-8 mb-6":"h-2.5 mb-4"}`),s=c(()=>`${q} ${e.isBold?"h-5 mb-4":"h-2 mb-2.5"}`),i={props:e,rowClassName:q,firstRowClassName:t,nextRowsClassName:s};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),Be=S("span",{class:"sr-only"},"Loading...",-1);function Fe(r,a,e,t,s,i){return y(),R("div",{role:"status",class:v(["animate-pulse",e.isLarge?"max-w-4xl":"max-w-sm"])},[S("div",{class:v([t.firstRowClassName,e.isLarge?"w-96":"w-48"])},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[680px]":"max-w-[340px]"])},null,2),S("div",{class:v(t.nextRowsClassName)},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[660px]":"max-w-[330px]"])},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[600px]":"max-w-[300px]"])},null,2),S("div",{class:v([t.nextRowsClassName,e.isLarge?"max-w-[720px]":"max-w-[360px]"])},null,2),Be],2)}const ze=B(Le,[["render",Fe]]),Ae=(r,a=1)=>Number.isInteger(r)?`${r}%`:`${r.toFixed(a)}%`,ke=r=>{r.use({install:(a,e)=>{a.config.globalProperties.$t=(t,s)=>pe(t,s||e?.lang),a.config.globalProperties.$money=ge,a.config.globalProperties.$percentage=Ae,a.config.globalProperties.$settings=globalThis.$storefront.settings,a.config.globalProperties.$apiContext=globalThis.$storefront.apiContext}}),r.component("Fade",Se),r.component("ALink",Ce),r.component("AImg",Ee),r.component("Skeleton",ze)},Ie=C({__name:"CarouselControl",props:{isPrev:{type:Boolean,default:!1}},setup(r,{expose:a}){a();const{axis:e,changeSlide:t}=se(D),i={axis:e,changeSlide:t,isX:e==="x"};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),Ne=["aria-label","data-carousel-control"];function Oe(r,a,e,t,s,i){return y(),R("button",{type:"button","aria-label":e.isPrev?"Anterior":"Próximo",onClick:a[0]||(a[0]=u=>t.changeSlide(e.isPrev?-1:1)),class:v(["group absolute z-[11]",t.isX?`${e.isPrev?"left-0":"right-0"} top-0`:`${e.isPrev?"top-0":"bottom-0"} left-0`]),"data-carousel-control":e.isPrev?"previous":"next"},[b(r.$slots,"default",{},()=>[S("i",{class:v(["i-chevron-right m-0",{"group-active:translate-x-1":t.isX&&!e.isPrev,"rotate-180 group-active:-translate-x-1":t.isX&&e.isPrev,"rotate-90 group-active:translate-y-1":!t.isX&&!e.isPrev,"-rotate-90 group-active:-translate-y-1":!t.isX&&e.isPrev}])},null,2)])],10,Ne)}const te=B(Ie,[["render",Oe]]),D=Symbol("carousel"),$e=C({__name:"Carousel",props:{as:{default:"ul"},index:{default:0},autoplay:{},axis:{default:"x"},hasControls:{type:Boolean},wrapperKey:{}},emits:["update:index"],setup(r,{expose:a,emit:e}){a();const t=r,s=e,i=L(0);z(K(t,"index"),o=>{if(o!==i.value){const d=o-i.value;h(d,!1)}},{immediate:!0}),z(i,(o,d)=>{o!==d&&s("update:index",o)});const u=L(null),{[t.axis]:g,isScrolling:P,arrivedState:f}=he(u),l=t.axis==="x",_=c(()=>l?f.left:f.top),T=c(()=>l?f.right:f.bottom),m=L([]),w=L(0),x=L(0),H=()=>{u.value&&(l?(w.value=u.value.scrollWidth,x.value=u.value.offsetWidth):(w.value=u.value.scrollHeight,x.value=u.value.offsetHeight))},j=()=>{if(!u.value)return;let o=[...u.value.children];o.length===1&&o[0].tagName.endsWith("SLOT")&&(o=[...o[0].children]),m.value=o.map(d=>({offset:l?d.offsetLeft:d.offsetTop,size:l?d.offsetWidth:d.offsetHeight}))},X=o=>{let d=i.value+o;if(d>=m.value.length)return 0;d<0&&(d=m.value.length+d);const{offset:F,size:E}=m.value[d]||{};return E?F:0},I=()=>{const o=m.value.findIndex(d=>Math.abs(d.offset-g.value)<=5);o>-1&&(i.value=o||0)};let p;const n=()=>{t.autoplay&&(clearTimeout(p),p=setTimeout(()=>{h(1)},t.autoplay))},h=(o,d=!0)=>{if(m.value.length<2)return;let F=-1;if(g.value+x.value>=w.value)F=0;else{if(d&&(o===1||o===-1)){let E=0,Y=0;for(let M=i.value;M<m.value.length;M++){const{size:V}=m.value[M]||{};if(V&&(E+=1,Y+=V,Y+V*.75>=x.value))break}E&&(o=o>0?E:-E)}F=X(o)}u.value?.scrollTo({[l?"left":"top"]:F,behavior:"smooth"}),n()};z(P,o=>{o?clearTimeout(p):(I(),n())});const N=L(null),Q=ye(N);z(Q,o=>{o?clearTimeout(p):n()});const O=()=>{u.value&&(H(),j(),I())},W=me(()=>{u.value&&(l?u.value.scrollLeft=0:u.value.scrollTop=0,O())},400);ie(()=>{O(),le(()=>{u.value&&[...u.value.children].forEach(o=>{o.setAttribute("tabindex","0")})}),n(),window.addEventListener("resize",W)}),z(K(t,"wrapperKey"),O),ue(()=>{window.removeEventListener("resize",W),clearTimeout(p)}),ce(D,{autoplay:K(t,"autoplay"),axis:t.axis,changeSlide:h,isBoundStart:_,isBoundEnd:T});const U={carouselKey:D,props:t,emit:s,activeIndex:i,wrapper:u,currentPos:g,isScrolling:P,arrivedState:f,isX:l,isBoundStart:_,isBoundEnd:T,slideSizes:m,wrapperScrollSize:w,wrapperVisibleSize:x,calcWrapperSize:H,calcSlidesSize:j,calcNextOffset:X,calcCurrentIndex:I,get autoplayTimer(){return p},set autoplayTimer(o){p=o},restartAutoplay:n,changeSlide:h,carousel:N,isHovered:Q,calcOnInit:O,onResize:W,CarouselControl:te};return Object.defineProperty(U,"__isScriptSetup",{enumerable:!1,value:!0}),U}});function Re(r,a,e,t,s,i){return y(),R("div",{ref:"carousel",class:v(`relative ${t.isX?"":"overflow-hidden"}`),"data-carousel":""},[(y(),A(G(e.as),{ref:"wrapper",class:v(["m-0 flex snap-mandatory list-none scroll-smooth p-0 [&>*]:snap-start [&>*]:outline-none",t.isX?"snap-x overflow-y-hidden overflow-x-scroll":"h-full flex-col snap-y overflow-x-hidden overflow-y-scroll"]),style:{"scrollbar-width":"none","-webkit-overflow-scrolling":"touch","-ms-overflow-style":"none"},"data-carousel-wrapper":""},{default:k(()=>[b(r.$slots,"default")]),_:3},8,["class"])),b(r.$slots,"controls",J(ee({changeSlide:t.changeSlide,isBoundStart:t.isBoundStart,isBoundEnd:t.isBoundEnd,activeIndex:t.activeIndex})),()=>[t.slideSizes.length>1||e.hasControls?(y(),A(t.CarouselControl,{key:0,"is-prev":""},{default:k(()=>[b(r.$slots,"previous")]),_:3})):Z("",!0),t.slideSizes.length>1||e.hasControls?(y(),A(t.CarouselControl,{key:1},{default:k(()=>[b(r.$slots,"next")]),_:3})):Z("",!0)])],2)}const He=B($e,[["render",Re]]),re=r=>{ke(r),r.component("Carousel",He),r.component("CarouselControl",te)},je=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),Xe=async r=>{"default"in je&&await re(r)},We=C({props:{value:String,name:String,hydrate:{type:Boolean,default:!0}},setup({name:r,value:a,hydrate:e}){if(!a)return()=>null;let t=e?"astro-slot":"astro-static-slot";return()=>$(t,{name:r,innerHTML:a})}}),Je=r=>async(a,e,t,{client:s})=>{if(!r.hasAttribute("ssr"))return;const i=a.name?`${a.name} Host`:void 0,u={};for(const[l,_]of Object.entries(t))u[l]=()=>$(We,{value:_,name:l==="default"?void 0:l});const g=s!=="only",f=(g?ae:oe)({name:i,render(){let l=$(a,e,u);return Me(a.setup)&&(l=$(de,null,l)),l}});await Xe(f),f.mount(r,g),r.addEventListener("astro:unmount",()=>f.unmount(),{once:!0})};function Me(r){const a=r?.constructor;return a&&a.name==="AsyncFunction"}export{Je as default};
@@ -0,0 +1,7 @@
1
+ import{r as M}from"./sf-utils.yjuG8NjM.js";import{h as x}from"./index.8acAQSHW.js";import{r as C,c as b}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const K=e=>{if(e){if(e.display_name)return e.display_name;if(e.name&&e.name.given_name)return e.name.given_name}return""},z=K,J="modulepreload",G=function(e){return"/"+e},I={},V=function(a,t,r){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(s=>{if(s=G(s),s in I)return;I[s]=!0;const n=s.endsWith(".css"),f=n?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===s&&(!n||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${f}`))return;const l=document.createElement("link");if(l.rel=n?"stylesheet":J,n||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),n)return new Promise((p,g)=>{l.addEventListener("load",p),l.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>a()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},F=(e,a,t=globalThis.localStorage)=>{if(!t)return C(a);let r;const i=t.getItem(e);if(i)try{r=JSON.parse(i)}catch{r=null,t.removeItem(e)}const o=C(r||a);return x(o,()=>{t.setItem(e,JSON.stringify(o))},{debounce:50}),o};globalThis.__apiCache||(globalThis.__apiCache={});const y=typeof process=="object"&&process?.env||globalThis;class S extends Error{constructor(a,t,r,i=!1){t?(super(t.statusText),this.data=t.data,this.statusCode=t.status):super(r||"Request error"),this.config=a,this.response=t,this.isTimeout=i}}const Y={middleware(e){const a={...e.headers};if(!e.isNoAuth)if(e.accessToken)a.Authorization=`Bearer ${e.accessToken}`;else{const o=e.authenticationId||y.ECOM_AUTHENTICATION_ID,s=e.apiKey||y.ECOM_API_KEY;if(o&&s){const n=`${o}:${s}`,f=typeof Buffer=="function"?Buffer.from(n).toString("base64"):btoa(n);a.Authorization=`Basic ${f}`}}let t=e.baseUrl||y.API_BASE_URL||"https://ecomplus.io/v2";const{endpoint:r,params:i}=e;if(r!=="login"&&r!=="authenticate"&&r!=="ask-auth-callback"&&r!=="check-username"){const o=e.storeId||y.ECOM_STORE_ID;if(!o)throw new Error("`storeId` must be set in config or `ECOM_STORE_ID` env var");t+=`/:${o}`;const s=e.lang||y.ECOM_LANG;s&&(t+=`,lang:${s}`)}if(t+=`/${r}`,typeof i=="string")t+=`?${i}`;else{const o=i||{};if(["fields","sort"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n.join(","))}),["limit","offset","count","buckets","concise","verbose"].forEach(s=>{const n=e[s];n&&!o[s]&&(o[s]=n)}),Object.keys(o).length){const s=new URLSearchParams;Object.keys(o).forEach(n=>{const f=o[n];Array.isArray(f)?f.forEach(_=>{s.append(n,_)}):f!==void 0&&s.append(n,f)}),t+=`?${s.toString()}`}}return{url:t,headers:a}}},c=async(e,a=0)=>{const t=globalThis.$apiMergeConfig?{...globalThis.$apiMergeConfig,...e}:e,{url:r,headers:i}=Y.middleware(t),o=t.method?.toUpperCase()||"GET",{timeout:s=2e4,maxRetries:n=3,cacheMaxAge:f=6e5}=t,_=o==="GET"&&t.canCache;let l;if(_){l=`${r}${JSON.stringify(i)}`;const m=globalThis.__apiCache[l];if(m&&Date.now()-m.timestamp<=f)return{...m.res,config:t}}const p=t.body||t.data;let g;p&&(g=JSON.stringify(p),i["Content-Type"]="application/json");const T=new AbortController;let A=!1;const L=setTimeout(()=>{T.abort(),A=!0},s);let u;try{u=await(t.fetch||fetch)(r,{method:o,headers:i,body:g,signal:T.signal})}catch(m){let d=m.message;throw m.cause&&(d+=` - ${m.cause}`),new S(t,u,d,A)}if(clearTimeout(L),u){if(u.ok){const d=u;return d.data=u.status!==204?await u.json():null,_&&l&&(globalThis.__apiCache[l]={timestamp:Date.now(),res:d}),d.config=t,d}const{status:m}=u;if(n<a&&(m===429||m>=500)){const d=u.headers.get("retry-after");return new Promise((U,B)=>{setTimeout(()=>{c(e,a+1).then(U).catch(B)},d&&parseInt(d,10)*1e3||5e3)})}}try{u.data=await u?.json()}catch{}throw new S(t,u)},q=(e,a)=>c({...a,endpoint:e}),H=(e,a,t)=>c({...t,method:"post",endpoint:e,body:a}),Q=(e,a,t)=>c({...t,method:"put",endpoint:e,body:a}),W=(e,a,t)=>c({...t,method:"patch",endpoint:e,body:a}),N=(e,a)=>c({...a,method:"delete",endpoint:e});c.get=q;c.post=H;c.put=Q;c.patch=W;c.del=N;c.delete=N;const X="emailForSignIn",P="ecomSession",v={customer:{display_name:"",main_email:""},auth:null},h=F(P,v),E=b(()=>{const{auth:e}=h;return e&&new Date(e.expires).getTime()-Date.now()>1e3*10}),R=b(()=>h.customer),k=b(()=>z(R.value)),O=b({get(){return R.value.main_email},set(e){h.customer.main_email=e}});let w;const ne=b(()=>E.value||!!w?.currentUser?.emailVerified),Z=()=>{h.auth=v.auth,h.customer=v.customer,localStorage.removeItem(P),w.signOut()},j=(e="Not authenticated")=>{const a=new Error(e);throw a.isNoAuth=!0,a},D=async()=>{const e=await w.currentUser?.getIdToken();if(!e){j("Can't get Firebase user ID token");return}const{domain:a}=globalThis.$storefront.settings;try{const t=await fetch(`https://${a}/_api/passport/token`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}});h.auth=await t.json()}catch(t){console.error(t)}},ee=async()=>(E.value||await D(),h.auth?h.auth.access_token:j()),te=async()=>{const e=await ee(),a=h.auth,{data:t}=await c.get(`customers/${a.customer_id}`,{accessToken:e});return h.customer=t,t};let $=!1;const re=e=>{if($)return;e===void 0&&(e=!window.location.pathname.startsWith("/app/")),$=!0;const a=()=>V(()=>import("./firebase-app.cPMfoOsn.js"),__vite__mapDeps([0,1])).then(({getAuth:t,onAuthStateChanged:r,isSignInWithEmailLink:i,signInWithEmailLink:o})=>{if(w=t(),r(w,async s=>{if(s){if(s.displayName&&!k.value&&(h.customer.display_name=s.displayName),s.email&&(!O.value||s.emailVerified)&&(h.customer.main_email=s.email),s.emailVerified){const n=s.email!==O.value;(n||!E.value)&&(await D(),(n||!k.value)&&await te())}}else Z()}),i(w,window.location.href)){const n=new URLSearchParams(window.location.search).get("email");n&&o(w,n,window.location.href).then(()=>window.localStorage.removeItem(X)).catch(console.error)}}).catch(console.error);e?M(a):a()};export{X as E,V as _,k as a,c as b,R as c,ne as d,re as e,O as f,E as i,Z as l,h as s,F as u};
2
+ function __vite__mapDeps(indexes) {
3
+ if (!__vite__mapDeps.viteFileDeps) {
4
+ __vite__mapDeps.viteFileDeps = ["_astro/firebase-app.cPMfoOsn.js","_astro/index-dd468b12.D5s8VdAL.js"]
5
+ }
6
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
+ }
@@ -0,0 +1 @@
1
+ import{_ as t}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{g as c}from"./price.Easct8WC.js";const s=(r,o=t.get("currency"),e=t.get("lang"))=>{if(typeof r=="object"?r!==null&&(r=c(r)):typeof r=="string"&&(r=parseFloat(r)),o)try{return r.toLocaleString(e.replace("_","-"),{style:"currency",currency:o})}catch(f){console.error(f)}const n=(o||t.get("currency_symbol"))+" ";return typeof r=="number"?n+r:""},g=s;export{g as f};
@@ -0,0 +1 @@
1
+ import{_ as g}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{g as a}from"./name.itYHl42A.js";const s=(t,e,i=g.get("lang"))=>{let r;return Array.isArray(e)?r=e.find(o=>o.grid_id===t):console.error("`grids` must be array to get grid title"),r?a(r,i):t},m=s;export{m as g};
@@ -0,0 +1 @@
1
+ import"./hoisted.hpPOAcMM.js";import"./afetch.5c8VmT0-.js";import"./use-analytics.D9xd-k7D.js";import"./customer-session.yn5lG3w3.js";import"./sf-utils.yjuG8NjM.js";import"./index.8acAQSHW.js";import"./runtime-core.esm-bundler.Pr2hdd7G.js";import"./shopping-cart.MgpVRgys.js";import"./price.Easct8WC.js";import"./name.itYHl42A.js";import"./i18n.MycOopxQ.js";const t=window.location.search.includes("status=404")?"404Msg":"5xxMsg";document.getElementById(t).style.display="block";document.getElementById("loadingMsg").style.display="none";
@@ -0,0 +1 @@
1
+ import{i as E,s as b,c as p,a as N}from"./customer-session.yn5lG3w3.js";import{s as w}from"./shopping-cart.MgpVRgys.js";import{g as v,e as I}from"./use-analytics.D9xd-k7D.js";import{u as O}from"./afetch.5c8VmT0-.js";import"./index.8acAQSHW.js";import{w as T}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import"./hoisted.hpPOAcMM.js";import"./sf-utils.yjuG8NjM.js";import"./price.Easct8WC.js";import"./name.itYHl42A.js";import"./i18n.MycOopxQ.js";const R=o=>{let a="";if(typeof o=="object"&&o!==null){let i=Array.isArray(o.phones)?o.phones[0]:o;i&&i.number&&(i.country_code&&(a=`+${i.country_code} `),a+=i.number)}return a},k=R,M=()=>{const o=window.storefrontApp?.router;if(o){const a=()=>sessionStorage.getItem("st_discount_coupon")||void 0,i=s=>Math.round(s*100)/100,h=[],r=(s,t)=>{h.includes(s)||(h.push(s),t||(t={value:i(w.subtotal||0),items:w.items.map(v)}),s!=="view_cart"&&(t.coupon=a(),h.includes("begin_checkout")||r("begin_checkout")),I(s,t))};let g=!1;const m=(s,t)=>{if(!g){if(localStorage.getItem("gtag.orderIdSent")!==s){let _;if(t)try{_=JSON.parse(t)}catch{}const{amount:l}=_||window.storefrontApp,S={transaction_id:s,value:i(l?.total||w.subtotal||0),items:w.items.map(v),coupon:_?_.extra_discount?.discount_coupon:a()};l&&(l.freight!==void 0&&(S.shipping=i(l.freight)),l.tax!==void 0&&(S.tax=i(l.tax)));let A=1;const{dataLayer:y,__sendGTMExtraPurchaseData:P}=window;if(y&&P){const n={};let e;if(p){n.customerDisplayName=N.value;let c=p.value.name;if(!c?.given_name)try{const f=sessionStorage.getItem("ecomCustomerAccount");if(f){const C=JSON.parse(f);typeof C=="object"&&C&&(c=C.name)}}catch{}c&&(n.customerGivenName=c.given_name,n.customerFamilyName=c.family_name),n.customerEmail=p.value.main_email,n.customerPhone=k(p.value),e=p.value.addresses?.[0]}try{const c=sessionStorage.getItem("ecomCustomerAddress");if(c){const f=JSON.parse(c);typeof e=="object"&&e?Object.assign(e,f):e=f}}catch{}e&&e.zip&&(n.shippingAddrZip=e.zip,n.shippingAddrStreet=e.street,n.shippingAddrNumber=e.number,e.street&&e.number&&(n.shippingAddrStreet+=`, ${e.number}`),n.shippingAddrCity=e.city,n.shippingAddrProvinceCode=e.province_code),y.push({event:"purchaseExtraData",...n}),A=100}setTimeout(()=>I("purchase",S),A),localStorage.setItem("gtag.orderIdSent",s)}g=!0}};let u;const d=({name:s,params:t})=>{switch(s){case"cart":r("view_cart");break;case"checkout":t.step?Number(t.step)===1?r("add_shipping_info"):Number(t.step)===2&&r("add_payment_info"):r("begin_checkout");break;case"confirmation":clearTimeout(u),t.json?m(t.id,decodeURIComponent(t.json)):u=setTimeout(()=>{m(t.id)},1500);break}};o.currentRoute&&d(o.currentRoute),o.afterEach(d)}};{Object.keys(O).length&&sessionStorage.setItem("ecomUtm",JSON.stringify(O));let o=window.location.search;!o&&window.location.hash&&(o="?"+window.location.hash.split("?")[1]);const a=new URLSearchParams(o);a.get("product_id")&&a.get("quantity")==="1"&&(localStorage.setItem("ecomShoppingCart__tmp",JSON.stringify({items:[{product_id:a.get("product_id"),variation_id:a.get("variation_id")||void 0,quantity:1}]})),window.ECOM_CART_STORAGE_KEY="ecomShoppingCart__tmp");const{hostname:i}=window.location,{domain:h}=globalThis.$storefront.settings,r=`https://ecomplus.io/v2/:${window.ECOM_STORE_ID}/`;window.ECOMCLIENT_API_STORE=r,window.ECOMCLIENT_API_STORE_CACHE=r,window.ECOMCLIENT_API_PASSPORT=r,window.ECOMCLIENT_API_SEARCH=`${r}/search/_els/`,window.ECOMCLIENT_API_MODULES=["localhost","127.0.0.1"].includes(i)?`https://${h}/_api/modules/`:"/_api/modules/";const g=()=>{const{ecomPassport:u}=window;T(E,async()=>{E.value?u.setSession({auth:{...b.auth,id:b.auth?.customer_id,level:3},customer:p.value}):u.checkLogin()&&u.logout()},{immediate:!0}),T(p,d=>{(d.display_name||d.main_email)&&u.setCustomer(d)},{immediate:!0}),setTimeout(M,400)},m=document.createElement("script");m.src="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-app@2.0.0-beta.190/dist/lib/js/app.js",m.onload=g,document.body.appendChild(m)}
@@ -0,0 +1 @@
1
+ import{u as C,w as V,a as I,e as Y,b as $,t as v}from"./use-analytics.D9xd-k7D.js";import{a as H}from"./afetch.5c8VmT0-.js";import{u as R}from"./index.8acAQSHW.js";import"./customer-session.yn5lG3w3.js";import"./sf-utils.yjuG8NjM.js";import"./runtime-core.esm-bundler.Pr2hdd7G.js";import"./shopping-cart.MgpVRgys.js";import"./price.Easct8WC.js";import"./name.itYHl42A.js";import"./i18n.MycOopxQ.js";const p={waiting:Promise.resolve(),params:{content_ids:[],content_name:""}},A=(t,e="BRL",n=!1)=>{const a={currency:e,content_category:t.item_category,content_name:t.item_name,value:t.price,content_type:"product"};return n?(a.contents=[{id:t.item_id,quantity:t.quantity}],Number(t.quantity)<0&&(a.value=0)):a.content_ids=[t.item_id],a},W=async({event:t})=>{if(t.name==="page_view")return p.waiting=new Promise(a=>{setTimeout(a,110)}),p.params.content_name=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:A(a,n)}]:(e.forEach(({item_id:i})=>{p.params.content_ids.push(i)}),p.params.content_ids.length>e.length?[{name:null}]:(await p.waiting,[{name:"ViewContent",params:{...p.params,content_type:"product"}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>({name:"AddToCart",params:A({...i,quantity:a?i.quantity||1:-(i.quantity||1)},n,!0)}))}return[{name:null}]},h={waiting:Promise.resolve(),params:{description:"",contents:[]}},w=(t,e=!1)=>{const n={content_id:t.item_id,content_name:t.item_name,price:t.price,content_category:t.item_category,brand:t.item_brand};return e&&(n.quantity=t.quantity),n},D=async({event:t})=>{if(t.name==="page_view")return h.waiting=new Promise(a=>{setTimeout(a,110)}),h.params.description=t.params.page_title,[{name:"PageView"}];const{items:e,currency:n}=t.params;if(t.name==="view_item"&&e){const a=e[0];if(a)return a.item_list_id==="product-page"?[{name:"ViewContent",params:{contents:[w(a)],content_type:"product",currency:n,value:a.price}}]:(e.forEach(i=>{h.params.contents.push(w(i))}),h.params.contents.length>e.length?[{name:null}]:(await h.waiting,[{name:"ViewContent",params:{...h.params,content_type:"product",currency:n}}]))}if((t.name==="add_to_cart"||t.name==="remove_from_cart")&&e){const a=t.name==="add_to_cart";return e.map(i=>{const l=i.quantity||1,{price:d}=i;return{name:"AddToCart",params:{contents:[w({...i,quantity:a?l:-l},!0)],content_type:"product",currency:n,value:a&&typeof d=="number"?l*d:0}}})}return[{name:null}]};let b=[];const F=R(()=>{H("/_analytics",{method:"post",body:{...I(),events:b}}),b=[]},200),_=t=>{b.push(t),F()};{C(),V(async n=>{const{name:a,params:i}=n.event;_({type:"gtag",name:a,params:i});const{gtag:l,dataLayer:d,fbq:s,ttq:c}=window;typeof l=="function"&&l("event",a,i),d&&typeof d.push=="function"&&d.push(["event",a,i]),(await W(n)).forEach(o=>{o.name&&(_({type:"fbq",...o}),typeof s=="function"&&s("track",o.name,o.params))}),(await D(n)).forEach(o=>{o.name&&(_({type:"ttk",...o}),typeof c?.page=="function"&&(o.name==="PageView"?c.page():c.track(o.name,o.params)))})});let t="";const e=()=>{const n=window.location.toString();n!==t&&(Y("page_view",{...$(),page_location:n,client_id:v.g_client_id||v.client_id}),t=n)};e(),window.addEventListener("storefront:apiContext",()=>{try{window.dataLayer.push(function(){this.reset(),e()})}catch{e()}})}const y=t=>history.replaceState(t,""),k=!!document.startViewTransition,g=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=t=>document.dispatchEvent(new Event(t)),P=()=>q("astro:load"),f="data-astro-transition-persist";let m=history.state?.index||0;!history.state&&g()&&y({index:m,scrollY:0});const G=(t,e)=>{let n=!1,a=!1;return(...i)=>{if(n){a=!0;return}t(...i),n=!0,setTimeout(()=>{a&&(a=!1,t(...i)),n=!1},e)}};async function M(t){const e=await fetch(t),n=await e.text();return{ok:e.ok,html:n}}function x(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function L(){for(const t of document.scripts)t.dataset.astroExec=""}function K(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=document.createElement("script");n.innerHTML=e.innerHTML;for(const a of e.attributes){if(a.name==="src"){const i=new Promise(l=>{n.onload=l});t=t.then(()=>i)}n.setAttribute(a.name,a.value)}n.dataset.astroExec="",e.replaceWith(n)}return t}const B=new DOMParser;async function T(t,e,n){const a=B.parseFromString(t,"text/html"),i=s=>{const c=s.getAttribute(f),u=c&&a.head.querySelector(`[${f}="${c}"]`);if(u)return u;if(s.matches("link[rel=stylesheet]")){const r=s.getAttribute("href");return a.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}if(s.tagName==="SCRIPT"){let r=s;for(const o of a.scripts)if(r.textContent&&r.textContent===o.textContent||r.type===o.type&&r.src&&r.src===o.src)return o}return null},l=()=>{a.querySelectorAll("head noscript").forEach(r=>r.remove());const s=document.documentElement,c=[...s.attributes].filter(({name:r})=>(s.removeAttribute(r),r.startsWith("data-astro-")));[...a.documentElement.attributes,...c].forEach(({name:r,value:o})=>s.setAttribute(r,o));for(const r of Array.from(document.head.children)){const o=i(r);o?o.remove():r.remove()}document.head.append(...a.head.children);const u=document.body;document.body.replaceWith(a.body);for(const r of u.querySelectorAll(`[${f}]`)){const o=r.getAttribute(f),E=document.querySelector(`[${f}="${o}"]`);E&&E.replaceWith(r)}if(scrollTo({left:0,top:0,behavior:"instant"}),e?.scrollY===0&&location.hash){const r=decodeURIComponent(location.hash.slice(1)),o=document.getElementById(r);o&&(e.scrollY=o.offsetTop,y(e),o.scrollIntoView())}else e&&e.scrollY!==0&&scrollTo(0,e.scrollY);q("astro:beforeload")},d=[];for(const s of a.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${f}="${s.getAttribute(f)}"], link[rel=stylesheet]`)){const c=document.createElement("link");c.setAttribute("rel","preload"),c.setAttribute("as","style"),c.setAttribute("href",s.getAttribute("href")),d.push(new Promise(u=>{["load","error"].forEach(r=>c.addEventListener(r,u)),document.head.append(c)}))}if(d.length&&await Promise.all(d),n==="animate"){let s=!1;addEventListener("animationstart",()=>s=!0,{once:!0}),document.documentElement.dataset.astroTransitionFallback="old",await new Promise(c=>{const u=()=>{removeEventListener("animationend",u),clearTimeout(r),l(),c(!0),document.documentElement.dataset.astroTransitionFallback="new"};addEventListener("animationend",u,{once:!0});let r=setTimeout(()=>!s&&u())})}else l()}async function S(t,e,n){let a;const{html:i,ok:l}=await M(e);if(!l){location.href=e;return}document.documentElement.dataset.astroTransition=t,k?a=document.startViewTransition(()=>T(i,n)).finished:a=T(i,n,x());try{await a}finally{await K(),L(),P()}}function N(t){if(document.querySelector(`link[rel=prefetch][href="${t}"]`))return;if(navigator.connection){let n=navigator.connection;if(n.saveData||/(2|3)g/.test(n.effectiveType||""))return}let e=document.createElement("link");e.setAttribute("rel","prefetch"),e.setAttribute("href",t),document.head.append(e)}(k||x()!=="none")&&!location.pathname.startsWith("/app/")&&(L(),document.addEventListener("click",t=>{let e=t.target;if(e instanceof Element&&e.tagName!=="A"&&(e=e.closest("a")),!e||!(e instanceof HTMLAnchorElement)||e.dataset.astroReload!==void 0||e.hasAttribute("download")||!e.href||e.pathname.startsWith("/app/")||e.target&&e.target!=="_self"||e.origin!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||!g())return;if(location.pathname===e.pathname&&location.search===e.search){if(e.hash)return;if(t.preventDefault(),y({...history.state,scrollY}),scrollTo({left:0,top:0,behavior:"instant"}),location.hash){const a={index:++m,scrollY:0};history.pushState(a,"",e.href)}return}t.preventDefault(),S("forward",e.href,{index:++m,scrollY:0});const n={index:m,scrollY};y({index:m-1,scrollY}),history.pushState(n,"",e.href)}),addEventListener("popstate",t=>{if(!g()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e?.index??m+1,a=n>m?"forward":"back";S(a,location.href,e),m=n}),["mouseenter","touchstart","focus"].forEach(t=>{document.addEventListener(t,e=>{if(e.target instanceof HTMLAnchorElement){let n=e.target;n.origin===location.origin&&n.pathname!==location.pathname&&!n.pathname.startsWith("/app/")&&n.dataset.astroReload===void 0&&!n.hasAttribute("download")&&n.role!=="button"&&g()&&N(n.pathname)}},{passive:!0,capture:!0})}),addEventListener("load",P),addEventListener("scroll",G(()=>{history.state&&y({...history.state,scrollY})},300),{passive:!0}));
@@ -0,0 +1 @@
1
+ import{D as n,_ as o}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const t=(e,f=o.get("lang"))=>{if(typeof e=="object"&&e!==null){const p=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(p))return e[f]||e[n]||e[p];{const r=Array.isArray(e)?[]:{};for(const s in e)e[s]!==void 0&&(r[s]=t(e[s],f));return r}}return e},u=t;export{u as i};
@@ -0,0 +1 @@
1
+ import{_ as n}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const m=(l,f,o)=>{if(o||(o=n.get("default_img_size")||"normal"),l){let{pictures:a,picture:e}=l;e||a||(Array.isArray(l)?a=l:e=l),Array.isArray(a)&&(e=f&&a.filter(r=>r._id===f)[0]||a[0]);let s;if(typeof e=="object"&&e!==null){if(s=e[o],s&&s.url)return s;let r;switch(o){case"small":r=["normal","big"];break;case"normal":r=["big","zoom","small"];break;case"big":r=["zoom","normal"];break;case"zoom":r=["big"];break;default:r=["big","zoom","normal","small"]}for(let i=0;i<r.length;i++){const t=r[i];if(e[t]&&e[t].url)return e[t]}for(const i in e)if(e[i]&&e[i].url)return e[i]}}},b=m;export{b as g};
@@ -0,0 +1 @@
1
+ import{C as D,_ as C,w as b,E as T,F as A,a as y,G as F,c as W,H as _,I,J as k,K as M}from"./runtime-core.esm-bundler.Pr2hdd7G.js";D.$ecomConfig||C;function E(e){return k()?(M(e),!0):!1}function $(e,t){if(typeof Symbol<"u"){const n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:t[o++],done:o>t.length})}}}),n}else return Object.assign([...t],e)}function m(e){return typeof e=="function"?e():A(e)}const O=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const G=Object.prototype.toString,q=e=>G.call(e)==="[object Object]",l=()=>{},B=R();function R(){var e,t;return O&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function v(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const P=e=>e();function x(e,t={}){let n,o,i=l;const r=s=>{clearTimeout(s),i(),i=l};return s=>{const u=m(e),c=m(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(s())):new Promise((f,p)=>{i=t.rejectOnCancel?p:f,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,f(s())},c)),n=setTimeout(()=>{o&&r(o),o=null,f(s())},u)})}}function z(e,t=!0,n=!0,o=!1){let i=0,r,a=!0,s=l,u;const c=()=>{r&&(clearTimeout(r),r=void 0,s(),s=l)};return p=>{const d=m(e),h=Date.now()-i,w=()=>u=p();return c(),d<=0?(i=Date.now(),w()):(h>d&&(n||!a)?(i=Date.now(),w()):t&&(u=new Promise((g,j)=>{s=o?j:g,r=setTimeout(()=>{i=Date.now(),a=!0,g(w()),c()},Math.max(0,d-h))})),!n&&!r&&(r=setTimeout(()=>a=!0,d)),a=!1,u)}}function L(e=P){const t=y(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:F(t),pause:n,resume:o,eventFilter:i}}function V(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const H=/-(\w)/g,N=V(e=>e.replace(H,(t,n)=>n?n.toUpperCase():""));function Q(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function J(e){return e||I()}function X(e,t=200,n={}){return v(x(t,n),e)}function Y(e,t=200,n=!1,o=!0,i=!1){return v(z(t,n,o,i),e)}function S(e,t,n={}){const{eventFilter:o=P,...i}=n;return b(e,v(o,t),i)}function Z(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:a,resume:s,isActive:u}=L(o);return{stop:S(e,t,{...i,eventFilter:r}),pause:a,resume:s,isActive:u}}function ee(e,t=!0,n){J()?_(e,n):t?e():T(e)}function K(e,t,n={}){const{immediate:o=!0}=n,i=y(!1);let r=null;function a(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,a()}function u(...c){a(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},m(t))}return o&&(i.value=!0,O&&u()),E(s),{isPending:F(i),start:u,stop:s}}function te(e=1e3,t={}){const{controls:n=!1,callback:o}=t,i=K(o??l,e,t),r=W(()=>!i.isPending.value);return n?{ready:r,...i}:r}function ne(e,t,n={}){const{debounce:o=0,maxWait:i=void 0,...r}=n;return S(e,t,{...r,eventFilter:x(o,{maxWait:i})})}function oe(e,t,n){const o=b(e,(...i)=>(T(()=>o()),t(...i)),n);return o}export{q as a,Y as b,N as c,ee as d,B as e,E as f,oe as g,ne as h,O as i,te as j,$ as m,l as n,Q as p,m as t,X as u,Z as w};
@@ -0,0 +1 @@
1
+ import{m as N,w as X,i as q,n as $,a as z,t as _,c as B,u as Q,b as Y,d as G,e as J,f as Z}from"./index.8acAQSHW.js";import{s as ee,r as D,w as te,d as W,a as C,c as j}from"./runtime-core.esm-bundler.Pr2hdd7G.js";function re(t={}){const{inheritAttrs:u=!0}=t,o=ee(),r=W({setup(p,{slots:e}){return()=>{o.value=e.default}}}),b=W({inheritAttrs:u,setup(p,{attrs:e,slots:i}){return()=>{var v;o.value;const f=(v=o.value)==null?void 0:v.call(o,{...oe(e),$slots:i});return u&&f?.length===1?f[0]:f}}});return N({define:r,reuse:b},[r,b])}function oe(t){const u={};for(const o in t)u[B(o)]=t[o];return u}function k(t){var u;const o=_(t);return(u=o?.$el)!=null?u:o}const R=q?window:void 0;function A(...t){let u,o,r,b;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,b]=t,u=R):[u,o,r,b]=t,!u)return $;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const p=[],e=()=>{p.forEach(h=>h()),p.length=0},i=(h,y,n,c)=>(h.addEventListener(y,n,c),()=>h.removeEventListener(y,n,c)),v=te(()=>[k(u),_(b)],([h,y])=>{if(e(),!h)return;const n=z(y)?{...y}:y;p.push(...o.flatMap(c=>r.map(m=>i(h,c,m,n))))},{immediate:!0,flush:"post"}),f=()=>{v(),e()};return Z(f),f}let U=!1;function le(t,u,o={}){const{window:r=R,ignore:b=[],capture:p=!0,detectIframe:e=!1}=o;if(!r)return $;J&&!U&&(U=!0,Array.from(r.document.body.children).forEach(n=>n.addEventListener("click",$)),r.document.documentElement.addEventListener("click",$));let i=!0;const v=n=>b.some(c=>{if(typeof c=="string")return Array.from(r.document.querySelectorAll(c)).some(m=>m===n.target||n.composedPath().includes(m));{const m=k(c);return m&&(n.target===m||n.composedPath().includes(m))}}),h=[A(r,"click",n=>{const c=k(t);if(!(!c||c===n.target||n.composedPath().includes(c))){if(n.detail===0&&(i=!v(n)),!i){i=!0;return}u(n)}},{passive:!0,capture:p}),A(r,"pointerdown",n=>{const c=k(t);i=!v(n)&&!!(c&&!n.composedPath().includes(c))},{passive:!0}),e&&A(r,"blur",n=>{setTimeout(()=>{var c;const m=k(t);((c=r.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&u(n)},0)})].filter(Boolean);return()=>h.forEach(n=>n())}function ae(t,u={}){const{delayEnter:o=0,delayLeave:r=0,window:b=R}=u,p=C(!1);let e;const i=v=>{const f=v?o:r;e&&(clearTimeout(e),e=void 0),f?e=setTimeout(()=>p.value=v,f):p.value=v};return b&&(A(t,"mouseenter",()=>i(!0),{passive:!0}),A(t,"mouseleave",()=>i(!1),{passive:!0})),p}const K=1;function ie(t,u={}){const{throttle:o=0,idle:r=200,onStop:b=$,onScroll:p=$,offset:e={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:v="auto",window:f=R}=u,h=C(0),y=C(0),n=j({get(){return h.value},set(a){m(a,void 0)}}),c=j({get(){return y.value},set(a){m(void 0,a)}});function m(a,L){var E,x,P;if(!f)return;const S=_(t);S&&((P=S instanceof Document?f.document.body:S)==null||P.scrollTo({top:(E=_(L))!=null?E:c.value,left:(x=_(a))!=null?x:n.value,behavior:_(v)}))}const T=C(!1),w=D({left:!0,right:!1,top:!0,bottom:!1}),s=D({left:!1,right:!1,top:!1,bottom:!1}),l=a=>{T.value&&(T.value=!1,s.left=!1,s.right=!1,s.top=!1,s.bottom=!1,b(a))},d=Q(l,o+r),g=a=>{var L;if(!f)return;const E=a.document?a.document.documentElement:(L=a.documentElement)!=null?L:a,{display:x,flexDirection:P}=getComputedStyle(E),S=E.scrollLeft;s.left=S<h.value,s.right=S>h.value;const M=Math.abs(S)<=0+(e.left||0),F=Math.abs(S)+E.clientWidth>=E.scrollWidth-(e.right||0)-K;x==="flex"&&P==="row-reverse"?(w.left=F,w.right=M):(w.left=M,w.right=F),h.value=S;let O=E.scrollTop;a===f.document&&!O&&(O=f.document.body.scrollTop),s.top=O<y.value,s.bottom=O>y.value;const I=Math.abs(O)<=0+(e.top||0),V=Math.abs(O)+E.clientHeight>=E.scrollHeight-(e.bottom||0)-K;x==="flex"&&P==="column-reverse"?(w.top=V,w.bottom=I):(w.top=I,w.bottom=V),y.value=O},H=a=>{var L;if(!f)return;const E=(L=a.target.documentElement)!=null?L:a.target;g(E),T.value=!0,d(a),p(a)};return A(t,"scroll",o?Y(H,o,!0,!1):H,i),G(()=>{const a=_(t);a&&g(a)}),A(t,"scrollend",l,i),{x:n,y:c,isScrolling:T,arrivedState:w,directions:s,measure(){const a=_(t);f&&a&&g(a)}}}function ce(t="history",u={}){const{initialValue:o={},removeNullishValues:r=!0,removeFalsyValues:b=!1,write:p=!0,window:e=R}=u;if(!e)return D(o);const i=D({});function v(){if(t==="history")return e.location.search||"";if(t==="hash"){const s=e.location.hash||"",l=s.indexOf("?");return l>0?s.slice(l):""}else return(e.location.hash||"").replace(/^#/,"")}function f(s){const l=s.toString();if(t==="history")return`${l?`?${l}`:""}${e.location.hash||""}`;if(t==="hash-params")return`${e.location.search||""}${l?`#${l}`:""}`;const d=e.location.hash||"#",g=d.indexOf("?");return g>0?`${d.slice(0,g)}${l?`?${l}`:""}`:`${d}${l?`?${l}`:""}`}function h(){return new URLSearchParams(v())}function y(s){const l=new Set(Object.keys(i));for(const d of s.keys()){const g=s.getAll(d);i[d]=g.length>1?g:s.get(d)||"",l.delete(d)}Array.from(l).forEach(d=>delete i[d])}const{pause:n,resume:c}=X(i,()=>{const s=new URLSearchParams("");Object.keys(i).forEach(l=>{const d=i[l];Array.isArray(d)?d.forEach(g=>s.append(l,g)):r&&d==null||b&&!d?s.delete(l):s.set(l,d)}),m(s)},{deep:!0});function m(s,l){n(),l&&y(s),e.history.replaceState(e.history.state,e.document.title,e.location.pathname+f(s)),c()}function T(){p&&m(h(),!0)}A(e,"popstate",T,!1),t!=="history"&&A(e,"hashchange",T,!1);const w=h();return w.keys().next().value?y(w):Object.assign(i,o),i}export{ie as a,ae as b,re as c,le as o,ce as u};
@@ -0,0 +1 @@
1
+ import{l as v,u as g,a as I}from"./afetch.5c8VmT0-.js";import{r as O}from"./sf-utils.yjuG8NjM.js";import{r as S,c as l}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{f as x}from"./format-money.ykh8O7d2.js";const w={list_payments:{},calculate_shipping:{},apply_discount:{}},n=S(w);v.then(o=>{Object.assign(n,o)});{const o="MODULES_INFO",m=sessionStorage.getItem(o);if(m)try{const a=JSON.parse(m);a.__timestamp>=Date.now()-1e3*60*5?(delete a.__timestamp,Object.assign(n,a)):sessionStorage.removeItem(o)}catch{sessionStorage.removeItem(o)}O(()=>{const a=[];["list_payments","calculate_shipping"].forEach(i=>{Object.keys(n[i]).length||a.push({modName:i})}),Object.keys(g).length&&a.push({modName:"apply_discount",reqOptions:{method:"post",body:{utm:g}}}),a.forEach(({modName:i,reqOptions:p})=>{const{hostname:c}=window.location,{domain:f}=globalThis.$storefront.settings,d=c!=="localhost"&&c!=="127.0.0.1"?`https://${f}/_api/modules/`:"/_api/modules/";I(`${d}${i}`,p).then(async h=>{if(h.ok){const s={};n[i]=s;const{result:y}=await h.json();Array.isArray(y)&&y.forEach(({error:b,response:r})=>{if(!b){let t,e;switch(i){case"calculate_shipping":t="free_shipping_from_value",e=r[t],typeof e=="number"&&(s[t]===void 0||e<s[t])&&(s[t]=e);break;case"list_payments":t="installments_option",e=r[t],e&&(!s[t]||e.monthly_interest<s[t].monthly_interest||e.max_number>s[t].max_number)&&(s[t]=e),t="discount_option",e=r[t],e&&(!s[t]||e.value>s[t].value)&&r.payment_gateways.forEach(({discount:_})=>{_&&_.apply_at!=="freight"&&_.value===e.value&&(s[t]={apply_at:_.apply_at,...e})}),t="loyalty_points_programs",e=r[t],e&&(s[t]={...s[t],...e});break;default:t="available_extra_discount",e=r[t],e&&(!s[t]||e.value>s[t].value)&&(s[t]=e)}}}),sessionStorage.setItem(o,JSON.stringify({...n,__timestamp:Date.now()}))}}).catch(console.error)})})}const D=l(()=>n.calculate_shipping.free_shipping_from_value),F=l(()=>n.list_payments.installments_option),J=l(()=>n.list_payments.discount_option),V=l(()=>n.list_payments.loyalty_points_programs),q=l(()=>n.apply_discount.available_extra_discount),k=(o,m,u,a=x)=>l(()=>{const i=`{${u}}`,p=o.indexOf(i);if(p>-1){const c=n[m][u];if(c){const f=a(c);return o.substring(0,p)+f+o.substring(p+i.length)}return""}return o}),A=o=>k(o,"calculate_shipping","free_shipping_from_value");export{q as a,J as d,D as f,F as i,V as l,A as p};
@@ -0,0 +1 @@
1
+ import{_ as t}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{i as n}from"./i18n.MycOopxQ.js";const r=(e,i=t.get("lang"))=>i&&e.i18n&&e.i18n[i]?e.i18n[i]:e.name||e.title||n(e.i18n,i)||"",a=r;export{a as g};
@@ -0,0 +1 @@
1
+ var gs={};let St,dn;typeof window=="object"&&window?dn=St=window:typeof process=="object"&&gs?(dn=global,St=gs):dn=St=typeof self=="object"&&self||{};const Zr="en_us",Qr="USD",Xr="$",zr="US",el=1011,tl="5b1abe30a4d4531b8fe40725",nl=e=>{if(typeof document=="object"&&document){const t=document.getElementsByTagName("meta");for(let n=0;n<t.length;n++)if(t[n].getAttribute("name")===e.replace(/_/g,"-")){const s=t[n].getAttribute("content");return e==="ecom_store_id"?parseInt(s,10):s}}return St[e.toUpperCase()]},En={};["lang","currency","currency_symbol","country_code","store_id","store_object_id"].forEach(e=>{En[e]=nl("ecom_"+e)});const uo={get(e){const t=En[e];if(t!=null&&t!=="")return t;switch(e){case"lang":return Zr;case"currency":return Qr;case"currency_symbol":return Xr;case"country_code":return zr;case"store_id":return el;case"store_object_id":return tl}return null},set(e,t){En[e]=t}};function Sn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ee={},st=[],Te=()=>{},sl=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Vs=e=>e.startsWith("onUpdate:"),ue=Object.assign,Vn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rl=Object.prototype.hasOwnProperty,Y=(e,t)=>rl.call(e,t),U=Array.isArray,rt=e=>vt(e)==="[object Map]",$s=e=>vt(e)==="[object Set]",ps=e=>vt(e)==="[object Date]",V=e=>typeof e=="function",re=e=>typeof e=="string",De=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Ds=e=>(z(e)||V(e))&&V(e.then)&&V(e.catch),Ks=Object.prototype.toString,vt=e=>Ks.call(e),ll=e=>vt(e).slice(8,-1),Ws=e=>vt(e)==="[object Object]",$n=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_t=Sn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),en=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},il=/-(\w)/g,Ne=en(e=>e.replace(il,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,tn=en(e=>e.replace(ol,"-$1").toLowerCase()),Dn=en(e=>e.charAt(0).toUpperCase()+e.slice(1)),gn=en(e=>e?`on${Dn(e)}`:""),Ke=(e,t)=>!Object.is(e,t),pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Wt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},cl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},fl=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let _s;const qs=()=>_s||(_s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],l=re(s)?dl(s):nn(s);if(l)for(const r in l)t[r]=l[r]}return t}else if(re(e)||z(e))return e}const ul=/;(?![^(]*\))/g,al=/:([^]+)/,hl=/\/\*[^]*?\*\//g;function dl(e){const t={};return e.replace(hl,"").split(ul).forEach(n=>{if(n){const s=n.split(al);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function sn(e){let t="";if(re(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=sn(e[n]);s&&(t+=s+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ao(e){if(!e)return null;let{class:t,style:n}=e;return t&&!re(t)&&(e.class=sn(t)),n&&(e.style=nn(n)),e}const gl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ho=Sn(gl);function go(e){return!!e||e===""}function pl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Gs(e[s],t[s]);return n}function Gs(e,t){if(e===t)return!0;let n=ps(e),s=ps(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=De(e),s=De(t),n||s)return e===t;if(n=U(e),s=U(t),n||s)return n&&s?pl(e,t):!1;if(n=z(e),s=z(t),n||s){if(!n||!s)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const i in e){const o=e.hasOwnProperty(i),f=t.hasOwnProperty(i);if(o&&!f||!o&&f||!Gs(e[i],t[i]))return!1}}return String(e)===String(t)}const po=e=>re(e)?e:e==null?"":U(e)||z(e)&&(e.toString===Ks||!V(e.toString))?JSON.stringify(e,Ys,2):String(e),Ys=(e,t)=>t&&t.__v_isRef?Ys(e,t.value):rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,l],r)=>(n[_n(s,r)+" =>"]=l,n),{})}:$s(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>_n(n))}:De(t)?_n(t):z(t)&&!U(t)&&!Ws(t)?String(t):t,_n=(e,t="")=>{var n;return De(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let me;class _l{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=me,!t&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=me;try{return me=this,t()}finally{me=n}}}on(){me=this}off(){me=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0,this._active=!1}}}function yl(e,t=me){t&&t.active&&t.effects.push(e)}function ml(){return me}function _o(e){me&&me.cleanups.push(e)}let Ze;class Kn{constructor(t,n,s,l){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,yl(this,l)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,ze();for(const t of this.deps)if(t.computed&&(bl(t.computed),this._dirtyLevel>=2))break;et(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ve,n=Ze;try{return Ve=!0,Ze=this,this._runnings++,ys(this),this.fn()}finally{ms(this),this._runnings--,Ze=n,Ve=t}}stop(){var t;this.active&&(ys(this),ms(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function bl(e){return e.value}function ys(e){e._trackId++,e._depsLength=0}function ms(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Js(e.deps[t],e);e.deps.length=e._depsLength}}function Js(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ve=!0,wn=0;const Zs=[];function ze(){Zs.push(Ve),Ve=!1}function et(){const e=Zs.pop();Ve=e===void 0?!0:e}function Wn(){wn++}function qn(){for(wn--;!wn&&vn.length;)vn.shift()()}function Qs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Js(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const vn=[];function Xs(e,t,n){Wn();for(const s of e.keys())if(!(!s.allowRecurse&&s._runnings)&&s._dirtyLevel<t&&(!s._runnings||t!==2)){const l=s._dirtyLevel;s._dirtyLevel=t,l===0&&(!s._queryings||t!==2)&&(s.trigger(),s.scheduler&&vn.push(s.scheduler))}qn()}const zs=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},qt=new WeakMap,Qe=Symbol(""),Fn=Symbol("");function _e(e,t,n){if(Ve&&Ze){let s=qt.get(e);s||qt.set(e,s=new Map);let l=s.get(n);l||s.set(n,l=zs(()=>s.delete(n))),Qs(Ze,l)}}function Be(e,t,n,s,l,r){const i=qt.get(e);if(!i)return;let o=[];if(t==="clear")o=[...i.values()];else if(n==="length"&&U(e)){const f=Number(s);i.forEach((a,d)=>{(d==="length"||!De(d)&&d>=f)&&o.push(a)})}else switch(n!==void 0&&o.push(i.get(n)),t){case"add":U(e)?$n(n)&&o.push(i.get("length")):(o.push(i.get(Qe)),rt(e)&&o.push(i.get(Fn)));break;case"delete":U(e)||(o.push(i.get(Qe)),rt(e)&&o.push(i.get(Fn)));break;case"set":rt(e)&&o.push(i.get(Qe));break}Wn();for(const f of o)f&&Xs(f,3);qn()}function xl(e,t){var n;return(n=qt.get(e))==null?void 0:n.get(t)}const Cl=Sn("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(De)),bs=Tl();function Tl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=J(this);for(let r=0,i=this.length;r<i;r++)_e(s,"get",r+"");const l=s[t](...n);return l===-1||l===!1?s[t](...n.map(J)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ze(),Wn();const s=J(this)[t].apply(this,n);return qn(),et(),s}}),e}function El(e){const t=J(this);return _e(t,"has",e),t.hasOwnProperty(e)}class tr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const l=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(l?r?kl:lr:r?rr:sr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=U(t);if(!l){if(i&&Y(bs,n))return Reflect.get(bs,n,s);if(n==="hasOwnProperty")return El}const o=Reflect.get(t,n,s);return(De(n)?er.has(n):Cl(n))||(l||_e(t,"get",n),r)?o:ae(o)?i&&$n(n)?o:o.value:z(o)?l?ir(o):Jn(o):o}}class nr extends tr{constructor(t=!1){super(!1,t)}set(t,n,s,l){let r=t[n];if(!this._shallow){const f=ft(r);if(!Gt(s)&&!ft(s)&&(r=J(r),s=J(s)),!U(t)&&ae(r)&&!ae(s))return f?!1:(r.value=s,!0)}const i=U(t)&&$n(n)?Number(n)<t.length:Y(t,n),o=Reflect.set(t,n,s,l);return t===J(l)&&(i?Ke(s,r)&&Be(t,"set",n,s):Be(t,"add",n,s)),o}deleteProperty(t,n){const s=Y(t,n);t[n];const l=Reflect.deleteProperty(t,n);return l&&s&&Be(t,"delete",n,void 0),l}has(t,n){const s=Reflect.has(t,n);return(!De(n)||!er.has(n))&&_e(t,"has",n),s}ownKeys(t){return _e(t,"iterate",U(t)?"length":Qe),Reflect.ownKeys(t)}}class wl extends tr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const vl=new nr,Fl=new wl,Al=new nr(!0),Gn=e=>e,rn=e=>Reflect.getPrototypeOf(e);function It(e,t,n=!1,s=!1){e=e.__v_raw;const l=J(e),r=J(t);n||(Ke(t,r)&&_e(l,"get",t),_e(l,"get",r));const{has:i}=rn(l),o=s?Gn:n?Qn:xt;if(i.call(l,t))return o(e.get(t));if(i.call(l,r))return o(e.get(r));e!==l&&e.get(t)}function Mt(e,t=!1){const n=this.__v_raw,s=J(n),l=J(e);return t||(Ke(e,l)&&_e(s,"has",e),_e(s,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Pt(e,t=!1){return e=e.__v_raw,!t&&_e(J(e),"iterate",Qe),Reflect.get(e,"size",e)}function xs(e){e=J(e);const t=J(this);return rn(t).has.call(t,e)||(t.add(e),Be(t,"add",e,e)),this}function Cs(e,t){t=J(t);const n=J(this),{has:s,get:l}=rn(n);let r=s.call(n,e);r||(e=J(e),r=s.call(n,e));const i=l.call(n,e);return n.set(e,t),r?Ke(t,i)&&Be(n,"set",e,t):Be(n,"add",e,t),this}function Ts(e){const t=J(this),{has:n,get:s}=rn(t);let l=n.call(t,e);l||(e=J(e),l=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return l&&Be(t,"delete",e,void 0),r}function Es(){const e=J(this),t=e.size!==0,n=e.clear();return t&&Be(e,"clear",void 0,void 0),n}function Lt(e,t){return function(s,l){const r=this,i=r.__v_raw,o=J(i),f=t?Gn:e?Qn:xt;return!e&&_e(o,"iterate",Qe),i.forEach((a,d)=>s.call(l,f(a),f(d),r))}}function Bt(e,t,n){return function(...s){const l=this.__v_raw,r=J(l),i=rt(r),o=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=l[e](...s),d=n?Gn:t?Qn:xt;return!t&&_e(r,"iterate",f?Fn:Qe),{next(){const{value:h,done:y}=a.next();return y?{value:h,done:y}:{value:o?[d(h[0]),d(h[1])]:d(h),done:y}},[Symbol.iterator](){return this}}}}function je(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Rl(){const e={get(r){return It(this,r)},get size(){return Pt(this)},has:Mt,add:xs,set:Cs,delete:Ts,clear:Es,forEach:Lt(!1,!1)},t={get(r){return It(this,r,!1,!0)},get size(){return Pt(this)},has:Mt,add:xs,set:Cs,delete:Ts,clear:Es,forEach:Lt(!1,!0)},n={get(r){return It(this,r,!0)},get size(){return Pt(this,!0)},has(r){return Mt.call(this,r,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:Lt(!0,!1)},s={get(r){return It(this,r,!0,!0)},get size(){return Pt(this,!0)},has(r){return Mt.call(this,r,!0)},add:je("add"),set:je("set"),delete:je("delete"),clear:je("clear"),forEach:Lt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Bt(r,!1,!1),n[r]=Bt(r,!0,!1),t[r]=Bt(r,!1,!0),s[r]=Bt(r,!0,!0)}),[e,n,t,s]}const[Ol,Il,Ml,Pl]=Rl();function Yn(e,t){const n=t?e?Pl:Ml:e?Il:Ol;return(s,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?s:Reflect.get(Y(n,l)&&l in s?n:s,l,r)}const Ll={get:Yn(!1,!1)},Bl={get:Yn(!1,!0)},Nl={get:Yn(!0,!1)},sr=new WeakMap,rr=new WeakMap,lr=new WeakMap,kl=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hl(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(ll(e))}function Jn(e){return ft(e)?e:Zn(e,!1,vl,Ll,sr)}function Ul(e){return Zn(e,!1,Al,Bl,rr)}function ir(e){return Zn(e,!0,Fl,Nl,lr)}function Zn(e,t,n,s,l){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=l.get(e);if(r)return r;const i=Hl(e);if(i===0)return e;const o=new Proxy(e,i===2?s:n);return l.set(e,o),o}function lt(e){return ft(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function ft(e){return!!(e&&e.__v_isReadonly)}function Gt(e){return!!(e&&e.__v_isShallow)}function or(e){return lt(e)||ft(e)}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function cr(e){return Wt(e,"__v_skip",!0),e}const xt=e=>z(e)?Jn(e):e,Qn=e=>z(e)?ir(e):e;class fr{constructor(t,n,s,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Kn(()=>t(this._value),()=>An(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=s}get value(){const t=J(this);return ur(t),(!t._cacheable||t.effect.dirty)&&Ke(t._value,t._value=t.effect.run())&&An(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Sl(e,t,n=!1){let s,l;const r=V(e);return r?(s=e,l=Te):(s=e.get,l=e.set),new fr(s,l,r||!l,n)}function ur(e){Ve&&Ze&&(e=J(e),Qs(Ze,e.dep||(e.dep=zs(()=>e.dep=void 0,e instanceof fr?e:void 0))))}function An(e,t=3,n){e=J(e);const s=e.dep;s&&Xs(s,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function Vt(e){return ar(e,!1)}function yo(e){return ar(e,!0)}function ar(e,t){return ae(e)?e:new Vl(e,t)}class Vl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:J(t),this._value=n?t:xt(t)}get value(){return ur(this),this._value}set value(t){const n=this.__v_isShallow||Gt(t)||ft(t);t=n?t:J(t),Ke(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xt(t),An(this,3))}}function $l(e){return ae(e)?e.value:e}const Dl={get:(e,t,n)=>$l(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const l=e[t];return ae(l)&&!ae(n)?(l.value=n,!0):Reflect.set(e,t,n,s)}};function hr(e){return lt(e)?e:new Proxy(e,Dl)}class Kl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return xl(J(this._object),this._key)}}class Wl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function mo(e,t,n){return ae(e)?e:V(e)?new Wl(e):z(e)&&arguments.length>1?ql(e,t,n):Vt(e)}function ql(e,t,n){const s=e[t];return ae(s)?s:new Kl(e,t,n)}function $e(e,t,n,s){let l;try{l=s?e(...s):e()}catch(r){dt(r,t,n)}return l}function ve(e,t,n,s){if(V(e)){const r=$e(e,t,n,s);return r&&Ds(r)&&r.catch(i=>{dt(i,t,n)}),r}const l=[];for(let r=0;r<e.length;r++)l.push(ve(e[r],t,n,s));return l}function dt(e,t,n,s=!0){const l=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,o=`https://vuejs.org/errors/#runtime-${n}`;for(;r;){const a=r.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,o)===!1)return}r=r.parent}const f=t.appContext.config.errorHandler;if(f){$e(f,null,10,[e,i,o]);return}}Gl(e,n,l,s)}function Gl(e,t,n,s=!0){console.error(e)}let Ct=!1,Rn=!1;const fe=[];let Oe=0;const it=[];let Le=null,Ye=0;const dr=Promise.resolve();let Xn=null;function Yl(e){const t=Xn||dr;return e?t.then(this?e.bind(this):e):t}function Jl(e){let t=Oe+1,n=fe.length;for(;t<n;){const s=t+n>>>1,l=fe[s],r=Tt(l);r<e||r===e&&l.pre?t=s+1:n=s}return t}function ln(e){(!fe.length||!fe.includes(e,Ct&&e.allowRecurse?Oe+1:Oe))&&(e.id==null?fe.push(e):fe.splice(Jl(e.id),0,e),gr())}function gr(){!Ct&&!Rn&&(Rn=!0,Xn=dr.then(pr))}function Zl(e){const t=fe.indexOf(e);t>Oe&&fe.splice(t,1)}function On(e){U(e)?it.push(...e):(!Le||!Le.includes(e,e.allowRecurse?Ye+1:Ye))&&it.push(e),gr()}function ws(e,t,n=Ct?Oe+1:0){for(;n<fe.length;n++){const s=fe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;fe.splice(n,1),n--,s()}}}function Yt(e){if(it.length){const t=[...new Set(it)];if(it.length=0,Le){Le.push(...t);return}for(Le=t,Le.sort((n,s)=>Tt(n)-Tt(s)),Ye=0;Ye<Le.length;Ye++)Le[Ye]();Le=null,Ye=0}}const Tt=e=>e.id==null?1/0:e.id,Ql=(e,t)=>{const n=Tt(e)-Tt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pr(e){Rn=!1,Ct=!0,fe.sort(Ql);try{for(Oe=0;Oe<fe.length;Oe++){const t=fe[Oe];t&&t.active!==!1&&$e(t,null,14)}}finally{Oe=0,fe.length=0,Yt(),Ct=!1,Xn=null,(fe.length||it.length)&&pr()}}function Xl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let l=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:y}=s[d]||ee;y&&(l=n.map(v=>re(v)?v.trim():v)),h&&(l=n.map(cl))}let o,f=s[o=gn(t)]||s[o=gn(Ne(t))];!f&&r&&(f=s[o=gn(tn(t))]),f&&ve(f,e,6,l);const a=s[o+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ve(a,e,6,l)}}function _r(e,t,n=!1){const s=t.emitsCache,l=s.get(e);if(l!==void 0)return l;const r=e.emits;let i={},o=!1;if(!V(e)){const f=a=>{const d=_r(a,t,!0);d&&(o=!0,ue(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!r&&!o?(z(e)&&s.set(e,null),null):(U(r)?r.forEach(f=>i[f]=null):ue(i,r),z(e)&&s.set(e,i),i)}function on(e,t){return!e||!zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,tn(t))||Y(e,t))}let oe=null,yr=null;function Jt(e){const t=oe;return oe=e,yr=e&&e.type.__scopeId||null,t}function zl(e,t=oe,n){if(!t||e._n)return e;const s=(...l)=>{s._d&&Us(-1);const r=Jt(t);let i;try{i=e(...l)}finally{Jt(r),s._d&&Us(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function yn(e){const{type:t,vnode:n,proxy:s,withProxy:l,props:r,propsOptions:[i],slots:o,attrs:f,emit:a,render:d,renderCache:h,data:y,setupState:v,ctx:O,inheritAttrs:M}=e;let D,W;const K=Jt(e);try{if(n.shapeFlag&4){const g=l||s,T=g;D=Ce(d.call(T,g,h,r,v,y,O)),W=f}else{const g=t;D=Ce(g.length>1?g(r,{attrs:f,slots:o,emit:a}):g(r,null)),W=t.props?f:ti(f)}}catch(g){bt.length=0,dt(g,e,1),D=ne(de)}let p=D;if(W&&M!==!1){const g=Object.keys(W),{shapeFlag:T}=p;g.length&&T&7&&(i&&g.some(Vs)&&(W=ni(W,i)),p=We(p,W))}return n.dirs&&(p=We(p),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&(p.transition=n.transition),D=p,Jt(K),D}function ei(e){let t;for(let n=0;n<e.length;n++){const s=e[n];if(wt(s)){if(s.type!==de||s.children==="v-if"){if(t)return;t=s}}else return}return t}const ti=e=>{let t;for(const n in e)(n==="class"||n==="style"||zt(n))&&((t||(t={}))[n]=e[n]);return t},ni=(e,t)=>{const n={};for(const s in e)(!Vs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function si(e,t,n){const{props:s,children:l,component:r}=e,{props:i,children:o,patchFlag:f}=t,a=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?vs(s,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const y=d[h];if(i[y]!==s[y]&&!on(a,y))return!0}}}else return(l||o)&&(!o||!o.$stable)?!0:s===i?!1:s?i?vs(s,i,a):!0:!!i;return!1}function vs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let l=0;l<s.length;l++){const r=s[l];if(t[r]!==e[r]&&!on(n,r))return!0}return!1}function zn({vnode:e,parent:t},n){if(n)for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const es="components";function bo(e,t){return br(es,e,!0,t)||e}const mr=Symbol.for("v-ndc");function xo(e){return re(e)?br(es,e,!1)||e:e||mr}function br(e,t,n=!0,s=!1){const l=oe||ie;if(l){const r=l.type;if(e===es){const o=io(r,!1);if(o&&(o===t||o===Ne(t)||o===Dn(Ne(t))))return r}const i=Fs(l[e]||r[e],t)||Fs(l.appContext[e],t);return!i&&s?r:i}}function Fs(e,t){return e&&(e[t]||e[Ne(t)]||e[Dn(Ne(t))])}const ri=e=>e.__isSuspense;let In=0;const li={name:"Suspense",__isSuspense:!0,process(e,t,n,s,l,r,i,o,f,a){e==null?ii(t,n,s,l,r,i,o,f,a):oi(e,t,n,s,l,i,o,f,a)},hydrate:ci,create:ts,normalize:fi},Co=li;function Et(e,t){const n=e.props&&e.props[t];V(n)&&n()}function ii(e,t,n,s,l,r,i,o,f){const{p:a,o:{createElement:d}}=f,h=d("div"),y=e.suspense=ts(e,l,s,t,h,n,r,i,o,f);a(null,y.pendingBranch=e.ssContent,h,null,s,y,r,i),y.deps>0?(Et(e,"onPending"),Et(e,"onFallback"),a(null,e.ssFallback,t,n,s,null,r,i),ot(y,e.ssFallback)):y.resolve(!1,!0)}function oi(e,t,n,s,l,r,i,o,{p:f,um:a,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const y=t.ssContent,v=t.ssFallback,{activeBranch:O,pendingBranch:M,isInFallback:D,isHydrating:W}=h;if(M)h.pendingBranch=y,Ie(y,M)?(f(M,y,h.hiddenContainer,null,l,h,r,i,o),h.deps<=0?h.resolve():D&&(W||(f(O,v,n,s,l,null,r,i,o),ot(h,v)))):(h.pendingId=In++,W?(h.isHydrating=!1,h.activeBranch=M):a(M,l,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),D?(f(null,y,h.hiddenContainer,null,l,h,r,i,o),h.deps<=0?h.resolve():(f(O,v,n,s,l,null,r,i,o),ot(h,v))):O&&Ie(y,O)?(f(O,y,n,s,l,h,r,i,o),h.resolve(!0)):(f(null,y,h.hiddenContainer,null,l,h,r,i,o),h.deps<=0&&h.resolve()));else if(O&&Ie(y,O))f(O,y,n,s,l,h,r,i,o),ot(h,y);else if(Et(t,"onPending"),h.pendingBranch=y,y.shapeFlag&512?h.pendingId=y.component.suspenseId:h.pendingId=In++,f(null,y,h.hiddenContainer,null,l,h,r,i,o),h.deps<=0)h.resolve();else{const{timeout:K,pendingId:p}=h;K>0?setTimeout(()=>{h.pendingId===p&&h.fallback(v)},K):K===0&&h.fallback(v)}}function ts(e,t,n,s,l,r,i,o,f,a,d=!1){const{p:h,m:y,um:v,n:O,o:{parentNode:M,remove:D}}=a;let W;const K=ui(e);K&&t?.pendingBranch&&(W=t.pendingId,t.deps++);const p=e.props?fl(e.props.timeout):void 0,g={vnode:e,parent:t,parentComponent:n,namespace:i,container:s,hiddenContainer:l,anchor:r,deps:0,pendingId:In++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(T=!1,F=!1){const{vnode:L,activeBranch:w,pendingBranch:B,pendingId:P,effects:$,parentComponent:Z,container:Q}=g;let ce=!1;if(g.isHydrating)g.isHydrating=!1;else if(!T){ce=w&&B.transition&&B.transition.mode==="out-in",ce&&(w.transition.afterLeave=()=>{P===g.pendingId&&(y(B,Q,O(w),0),On($))});let{anchor:q}=g;w&&(q=O(w),v(w,Z,g,!0)),ce||y(B,Q,q,0)}ot(g,B),g.pendingBranch=null,g.isInFallback=!1;let se=g.parent,j=!1;for(;se;){if(se.pendingBranch){se.effects.push(...$),j=!0;break}se=se.parent}!j&&!ce&&On($),g.effects=[],K&&t&&t.pendingBranch&&W===t.pendingId&&(t.deps--,t.deps===0&&!F&&t.resolve()),Et(L,"onResolve")},fallback(T){if(!g.pendingBranch)return;const{vnode:F,activeBranch:L,parentComponent:w,container:B,namespace:P}=g;Et(F,"onFallback");const $=O(L),Z=()=>{g.isInFallback&&(h(null,T,B,$,w,null,P,o,f),ot(g,T))},Q=T.transition&&T.transition.mode==="out-in";Q&&(L.transition.afterLeave=Z),g.isInFallback=!0,v(L,w,null,!0),Q||Z()},move(T,F,L){g.activeBranch&&y(g.activeBranch,T,F,L),g.container=T},next(){return g.activeBranch&&O(g.activeBranch)},registerDep(T,F){const L=!!g.pendingBranch;L&&g.deps++;const w=T.vnode.el;T.asyncDep.catch(B=>{dt(B,T,0)}).then(B=>{if(T.isUnmounted||g.isUnmounted||g.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:P}=T;Un(T,B,!1),w&&(P.el=w);const $=!w&&T.subTree.el;F(T,P,M(w||T.subTree.el),w?null:O(T.subTree),g,i,f),$&&D($),zn(T,P.el),L&&--g.deps===0&&g.resolve()})},unmount(T,F){g.isUnmounted=!0,g.activeBranch&&v(g.activeBranch,n,T,F),g.pendingBranch&&v(g.pendingBranch,n,T,F)}};return g}function ci(e,t,n,s,l,r,i,o,f){const a=t.suspense=ts(t,s,n,e.parentNode,document.createElement("div"),null,l,r,i,o,!0),d=f(e,a.pendingBranch=t.ssContent,n,a,r,i);return a.deps===0&&a.resolve(!1,!0),d}function fi(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=As(s?n.default:n),e.ssFallback=s?As(n.fallback):ne(de)}function As(e){let t;if(V(e)){const n=at&&e._c;n&&(e._d=!1,is()),e=e(),n&&(e._d=!0,t=Ee,Sr())}return U(e)&&(e=ei(e)),e=Ce(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function xr(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):On(e)}function ot(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,l=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=l,zn(s,l))}function ui(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const ai=Symbol.for("v-scx"),hi=()=>$t(ai);function To(e,t){return ns(e,null,t)}const Nt={};function mn(e,t,n){return ns(e,t,n)}function ns(e,t,{immediate:n,deep:s,flush:l,once:r,onTrack:i,onTrigger:o}=ee){if(t&&r){const F=t;t=(...L)=>{F(...L),T()}}const f=ie,a=F=>s===!0?F:Je(F,s===!1?1:void 0);let d,h=!1,y=!1;if(ae(e)?(d=()=>e.value,h=Gt(e)):lt(e)?(d=()=>a(e),h=!0):U(e)?(y=!0,h=e.some(F=>lt(F)||Gt(F)),d=()=>e.map(F=>{if(ae(F))return F.value;if(lt(F))return a(F);if(V(F))return $e(F,f,2)})):V(e)?t?d=()=>$e(e,f,2):d=()=>(v&&v(),ve(e,f,3,[O])):d=Te,t&&s){const F=d;d=()=>Je(F())}let v,O=F=>{v=p.onStop=()=>{$e(F,f,4),v=p.onStop=void 0}},M;if(At)if(O=Te,t?n&&ve(t,f,3,[d(),y?[]:void 0,O]):d(),l==="sync"){const F=hi();M=F.__watcherHandles||(F.__watcherHandles=[])}else return Te;let D=y?new Array(e.length).fill(Nt):Nt;const W=()=>{if(!(!p.active||!p.dirty))if(t){const F=p.run();(s||h||(y?F.some((L,w)=>Ke(L,D[w])):Ke(F,D)))&&(v&&v(),ve(t,f,3,[F,D===Nt?void 0:y&&D[0]===Nt?[]:D,O]),D=F)}else p.run()};W.allowRecurse=!!t;let K;l==="sync"?K=W:l==="post"?K=()=>ge(W,f&&f.suspense):(W.pre=!0,f&&(W.id=f.uid),K=()=>ln(W));const p=new Kn(d,Te,K),g=ml(),T=()=>{p.stop(),g&&Vn(g.effects,p)};return t?n?W():D=p.run():l==="post"?ge(p.run.bind(p),f&&f.suspense):p.run(),M&&M.push(T),T}function di(e,t,n){const s=this.proxy,l=re(e)?e.includes(".")?Cr(s,e):()=>s[e]:e.bind(s,s);let r;V(t)?r=t:(r=t.handler,n=t);const i=ie;ht(this);const o=ns(l,r.bind(s),n);return i?ht(i):Xe(),o}function Cr(e,t){const n=t.split(".");return()=>{let s=e;for(let l=0;l<n.length&&s;l++)s=s[n[l]];return s}}function Je(e,t,n=0,s){if(!z(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),ae(e))Je(e.value,t,n,s);else if(U(e))for(let l=0;l<e.length;l++)Je(e[l],t,n,s);else if($s(e)||rt(e))e.forEach(l=>{Je(l,t,n,s)});else if(Ws(e))for(const l in e)Je(e[l],t,n,s);return e}function Eo(e,t){const n=oe;if(n===null)return e;const s=un(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,f,a=ee]=t[r];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&Je(o),l.push({dir:i,instance:s,value:o,oldValue:void 0,arg:f,modifiers:a}))}return e}function Re(e,t,n,s){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const o=l[i];r&&(o.oldValue=r[i].value);let f=o.dir[s];f&&(ze(),ve(f,n,8,[e.el,o,e,t]),et())}}const Ue=Symbol("_leaveCb"),kt=Symbol("_enterCb");function gi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vr(()=>{e.isMounted=!0}),Fr(()=>{e.isUnmounting=!0}),e}const be=[Function,Array],pi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:be,onEnter:be,onAfterEnter:be,onEnterCancelled:be,onBeforeLeave:be,onLeave:be,onAfterLeave:be,onLeaveCancelled:be,onBeforeAppear:be,onAppear:be,onAfterAppear:be,onAppearCancelled:be},_i={name:"BaseTransition",props:pi,setup(e,{slots:t}){const n=to(),s=gi();let l;return()=>{const r=t.default&&Er(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const M of r)if(M.type!==de){i=M;break}}const o=J(e),{mode:f}=o;if(s.isLeaving)return bn(i);const a=Rs(i);if(!a)return bn(i);const d=Mn(a,o,s,n);Pn(a,d);const h=n.subTree,y=h&&Rs(h);let v=!1;const{getTransitionKey:O}=a.type;if(O){const M=O();l===void 0?l=M:M!==l&&(l=M,v=!0)}if(y&&y.type!==de&&(!Ie(a,y)||v)){const M=Mn(y,o,s,n);if(Pn(y,M),f==="out-in")return s.isLeaving=!0,M.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},bn(i);f==="in-out"&&a.type!==de&&(M.delayLeave=(D,W,K)=>{const p=Tr(s,y);p[String(y.key)]=y,D[Ue]=()=>{W(),D[Ue]=void 0,delete d.delayedLeave},d.delayedLeave=K})}return i}}},wo=_i;function Tr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Mn(e,t,n,s){const{appear:l,mode:r,persisted:i=!1,onBeforeEnter:o,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:h,onLeave:y,onAfterLeave:v,onLeaveCancelled:O,onBeforeAppear:M,onAppear:D,onAfterAppear:W,onAppearCancelled:K}=t,p=String(e.key),g=Tr(n,e),T=(w,B)=>{w&&ve(w,s,9,B)},F=(w,B)=>{const P=B[1];T(w,B),U(w)?w.every($=>$.length<=1)&&P():w.length<=1&&P()},L={mode:r,persisted:i,beforeEnter(w){let B=o;if(!n.isMounted)if(l)B=M||o;else return;w[Ue]&&w[Ue](!0);const P=g[p];P&&Ie(e,P)&&P.el[Ue]&&P.el[Ue](),T(B,[w])},enter(w){let B=f,P=a,$=d;if(!n.isMounted)if(l)B=D||f,P=W||a,$=K||d;else return;let Z=!1;const Q=w[kt]=ce=>{Z||(Z=!0,ce?T($,[w]):T(P,[w]),L.delayedLeave&&L.delayedLeave(),w[kt]=void 0)};B?F(B,[w,Q]):Q()},leave(w,B){const P=String(e.key);if(w[kt]&&w[kt](!0),n.isUnmounting)return B();T(h,[w]);let $=!1;const Z=w[Ue]=Q=>{$||($=!0,B(),Q?T(O,[w]):T(v,[w]),w[Ue]=void 0,g[P]===e&&delete g[P])};g[P]=e,y?F(y,[w,Z]):Z()},clone(w){return Mn(w,t,n,s)}};return L}function bn(e){if(Ft(e))return e=We(e),e.children=null,e}function Rs(e){return Ft(e)?e.children?e.children[0]:void 0:e}function Pn(e,t){e.shapeFlag&6&&e.component?Pn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Er(e,t=!1,n){let s=[],l=0;for(let r=0;r<e.length;r++){let i=e[r];const o=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===pe?(i.patchFlag&128&&l++,s=s.concat(Er(i.children,t,o))):(t||i.type!==de)&&s.push(o!=null?We(i,{key:o}):i)}if(l>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function yi(e,t){return V(e)?ue({name:e.name},t,{setup:e}):e}const ct=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function vo(e){V(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:l=200,timeout:r,suspensible:i=!0,onError:o}=e;let f=null,a,d=0;const h=()=>(d++,f=null,y()),y=()=>{let v;return f||(v=f=t().catch(O=>{if(O=O instanceof Error?O:new Error(String(O)),o)return new Promise((M,D)=>{o(O,()=>M(h()),()=>D(O),d+1)});throw O}).then(O=>v!==f&&f?f:(O&&(O.__esModule||O[Symbol.toStringTag]==="Module")&&(O=O.default),a=O,O)))};return yi({name:"AsyncComponentWrapper",__asyncLoader:y,get __asyncResolved(){return a},setup(){const v=ie;if(a)return()=>xn(a,v);const O=K=>{f=null,dt(K,v,13,!s)};if(i&&v.suspense||At)return y().then(K=>()=>xn(K,v)).catch(K=>(O(K),()=>s?ne(s,{error:K}):null));const M=Vt(!1),D=Vt(),W=Vt(!!l);return l&&setTimeout(()=>{W.value=!1},l),r!=null&&setTimeout(()=>{if(!M.value&&!D.value){const K=new Error(`Async component timed out after ${r}ms.`);O(K),D.value=K}},r),y().then(()=>{M.value=!0,v.parent&&Ft(v.parent.vnode)&&(v.parent.effect.dirty=!0,ln(v.parent.update))}).catch(K=>{O(K),D.value=K}),()=>{if(M.value&&a)return xn(a,v);if(D.value&&s)return ne(s,{error:D.value});if(n&&!W.value)return ne(n)}}})}function xn(e,t){const{ref:n,props:s,children:l,ce:r}=t.vnode,i=ne(e,s,l);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const Ft=e=>e.type.__isKeepAlive;function mi(e,t){wr(e,"a",t)}function bi(e,t){wr(e,"da",t)}function wr(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(cn(t,s,n),n){let l=n.parent;for(;l&&l.parent;)Ft(l.parent.vnode)&&xi(s,t,n,l),l=l.parent}}function xi(e,t,n,s){const l=cn(t,e,s,!0);Ar(()=>{Vn(s[t],l)},n)}function cn(e,t,n=ie,s=!1){if(n){const l=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ze(),ht(n);const o=ve(t,n,e,i);return Xe(),et(),o});return s?l.unshift(r):l.push(r),r}}const ke=e=>(t,n=ie)=>(!At||e==="sp")&&cn(e,(...s)=>t(...s),n),Ci=ke("bm"),vr=ke("m"),Ti=ke("bu"),Ei=ke("u"),Fr=ke("bum"),Ar=ke("um"),wi=ke("sp"),vi=ke("rtg"),Fi=ke("rtc");function Ai(e,t=ie){cn("ec",e,t)}function Fo(e,t,n,s){let l;const r=n&&n[s];if(U(e)||re(e)){l=new Array(e.length);for(let i=0,o=e.length;i<o;i++)l[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){l=new Array(e);for(let i=0;i<e;i++)l[i]=t(i+1,i,void 0,r&&r[i])}else if(z(e))if(e[Symbol.iterator])l=Array.from(e,(i,o)=>t(i,o,void 0,r&&r[o]));else{const i=Object.keys(e);l=new Array(i.length);for(let o=0,f=i.length;o<f;o++){const a=i[o];l[o]=t(e[a],a,o,r&&r[o])}}else l=[];return n&&(n[s]=l),l}function Ao(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(U(s))for(let l=0;l<s.length;l++)e[s[l].name]=s[l].fn;else s&&(e[s.name]=s.key?(...l)=>{const r=s.fn(...l);return r&&(r.key=s.key),r}:s.fn)}return e}function Ro(e,t,n={},s,l){if(oe.isCE||oe.parent&&ct(oe.parent)&&oe.parent.isCE)return t!=="default"&&(n.name=t),ne("slot",n,s&&s());let r=e[t];r&&r._c&&(r._d=!1),is();const i=r&&Rr(r(n)),o=$r(pe,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!l&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),r&&r._c&&(r._d=!0),o}function Rr(e){return e.some(t=>wt(t)?!(t.type===de||t.type===pe&&!Rr(t.children)):!0)?e:null}const Ln=e=>e?qr(e)?un(e)||e.proxy:Ln(e.parent):null,yt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ln(e.parent),$root:e=>Ln(e.root),$emit:e=>e.emit,$options:e=>ss(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ln(e.update)}),$nextTick:e=>e.n||(e.n=Yl.bind(e.proxy)),$watch:e=>di.bind(e)}),Cn=(e,t)=>e!==ee&&!e.__isScriptSetup&&Y(e,t),Ri={get({_:e},t){const{ctx:n,setupState:s,data:l,props:r,accessCache:i,type:o,appContext:f}=e;let a;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return l[t];case 4:return n[t];case 3:return r[t]}else{if(Cn(s,t))return i[t]=1,s[t];if(l!==ee&&Y(l,t))return i[t]=2,l[t];if((a=e.propsOptions[0])&&Y(a,t))return i[t]=3,r[t];if(n!==ee&&Y(n,t))return i[t]=4,n[t];Bn&&(i[t]=0)}}const d=yt[t];let h,y;if(d)return t==="$attrs"&&_e(e,"get",t),d(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ee&&Y(n,t))return i[t]=4,n[t];if(y=f.config.globalProperties,Y(y,t))return y[t]},set({_:e},t,n){const{data:s,setupState:l,ctx:r}=e;return Cn(l,t)?(l[t]=n,!0):s!==ee&&Y(s,t)?(s[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:l,propsOptions:r}},i){let o;return!!n[i]||e!==ee&&Y(e,i)||Cn(t,i)||(o=r[0])&&Y(o,i)||Y(s,i)||Y(yt,i)||Y(l.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Os(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Bn=!0;function Oi(e){const t=ss(e),n=e.proxy,s=e.ctx;Bn=!1,t.beforeCreate&&Is(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:o,provide:f,inject:a,created:d,beforeMount:h,mounted:y,beforeUpdate:v,updated:O,activated:M,deactivated:D,beforeDestroy:W,beforeUnmount:K,destroyed:p,unmounted:g,render:T,renderTracked:F,renderTriggered:L,errorCaptured:w,serverPrefetch:B,expose:P,inheritAttrs:$,components:Z,directives:Q,filters:ce}=t;if(a&&Ii(a,s,null),i)for(const q in i){const k=i[q];V(k)&&(s[q]=k.bind(n))}if(l){const q=l.call(n,n);z(q)&&(e.data=Jn(q))}if(Bn=!0,r)for(const q in r){const k=r[q],Me=V(k)?k.bind(n,n):V(k.get)?k.get.bind(n,n):Te,Rt=!V(k)&&V(k.set)?k.set.bind(n):Te,qe=co({get:Me,set:Rt});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Fe=>qe.value=Fe})}if(o)for(const q in o)Or(o[q],s,n,q);if(f){const q=V(f)?f.call(n):f;Reflect.ownKeys(q).forEach(k=>{ki(k,q[k])})}d&&Is(d,e,"c");function j(q,k){U(k)?k.forEach(Me=>q(Me.bind(n))):k&&q(k.bind(n))}if(j(Ci,h),j(vr,y),j(Ti,v),j(Ei,O),j(mi,M),j(bi,D),j(Ai,w),j(Fi,F),j(vi,L),j(Fr,K),j(Ar,g),j(wi,B),U(P))if(P.length){const q=e.exposed||(e.exposed={});P.forEach(k=>{Object.defineProperty(q,k,{get:()=>n[k],set:Me=>n[k]=Me})})}else e.exposed||(e.exposed={});T&&e.render===Te&&(e.render=T),$!=null&&(e.inheritAttrs=$),Z&&(e.components=Z),Q&&(e.directives=Q)}function Ii(e,t,n=Te){U(e)&&(e=Nn(e));for(const s in e){const l=e[s];let r;z(l)?"default"in l?r=$t(l.from||s,l.default,!0):r=$t(l.from||s):r=$t(l),ae(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Is(e,t,n){ve(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Or(e,t,n,s){const l=s.includes(".")?Cr(n,s):()=>n[s];if(re(e)){const r=t[e];V(r)&&mn(l,r)}else if(V(e))mn(l,e.bind(n));else if(z(e))if(U(e))e.forEach(r=>Or(r,t,n,s));else{const r=V(e.handler)?e.handler.bind(n):t[e.handler];V(r)&&mn(l,r,e)}}function ss(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,o=r.get(t);let f;return o?f=o:!l.length&&!n&&!s?f=t:(f={},l.length&&l.forEach(a=>Zt(f,a,i,!0)),Zt(f,t,i)),z(t)&&r.set(t,f),f}function Zt(e,t,n,s=!1){const{mixins:l,extends:r}=t;r&&Zt(e,r,n,!0),l&&l.forEach(i=>Zt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const o=Mi[i]||n&&n[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Mi={data:Ms,props:Ps,emits:Ps,methods:pt,computed:pt,beforeCreate:he,created:he,beforeMount:he,mounted:he,beforeUpdate:he,updated:he,beforeDestroy:he,beforeUnmount:he,destroyed:he,unmounted:he,activated:he,deactivated:he,errorCaptured:he,serverPrefetch:he,components:pt,directives:pt,watch:Li,provide:Ms,inject:Pi};function Ms(e,t){return t?e?function(){return ue(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Pi(e,t){return pt(Nn(e),Nn(t))}function Nn(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function he(e,t){return e?[...new Set([].concat(e,t))]:t}function pt(e,t){return e?ue(Object.create(null),e,t):t}function Ps(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:ue(Object.create(null),Os(e),Os(t??{})):t}function Li(e,t){if(!e)return t;if(!t)return e;const n=ue(Object.create(null),e);for(const s in t)n[s]=he(e[s],t[s]);return n}function Ir(){return{app:null,config:{isNativeTag:sl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bi=0;function Ni(e,t){return function(s,l=null){V(s)||(s=ue({},s)),l!=null&&!z(l)&&(l=null);const r=Ir(),i=new WeakSet;let o=!1;const f=r.app={_uid:Bi++,_component:s,_props:l,_container:null,_context:r,_instance:null,version:fo,get config(){return r.config},set config(a){},use(a,...d){return i.has(a)||(a&&V(a.install)?(i.add(a),a.install(f,...d)):V(a)&&(i.add(a),a(f,...d))),f},mixin(a){return r.mixins.includes(a)||r.mixins.push(a),f},component(a,d){return d?(r.components[a]=d,f):r.components[a]},directive(a,d){return d?(r.directives[a]=d,f):r.directives[a]},mount(a,d,h){if(!o){const y=ne(s,l);return y.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(y,a):e(y,a,h),o=!0,f._container=a,a.__vue_app__=f,un(y.component)||y.component.proxy}},unmount(){o&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return r.provides[a]=d,f},runWithContext(a){Qt=f;try{return a()}finally{Qt=null}}};return f}}let Qt=null;function ki(e,t){if(ie){let n=ie.provides;const s=ie.parent&&ie.parent.provides;s===n&&(n=ie.provides=Object.create(s)),n[e]=t}}function $t(e,t,n=!1){const s=ie||oe;if(s||Qt){const l=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Qt._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&V(t)?t.call(s&&s.proxy):t}}function ji(e,t,n,s=!1){const l={},r={};Wt(r,fn,1),e.propsDefaults=Object.create(null),Mr(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);n?e.props=s?l:Ul(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function Hi(e,t,n,s){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,o=J(l),[f]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let y=d[h];if(on(e.emitsOptions,y))continue;const v=t[y];if(f)if(Y(r,y))v!==r[y]&&(r[y]=v,a=!0);else{const O=Ne(y);l[O]=kn(f,o,O,v,e,!1)}else v!==r[y]&&(r[y]=v,a=!0)}}}else{Mr(e,t,l,r)&&(a=!0);let d;for(const h in o)(!t||!Y(t,h)&&((d=tn(h))===h||!Y(t,d)))&&(f?n&&(n[h]!==void 0||n[d]!==void 0)&&(l[h]=kn(f,o,h,void 0,e,!0)):delete l[h]);if(r!==o)for(const h in r)(!t||!Y(t,h))&&(delete r[h],a=!0)}a&&Be(e,"set","$attrs")}function Mr(e,t,n,s){const[l,r]=e.propsOptions;let i=!1,o;if(t)for(let f in t){if(_t(f))continue;const a=t[f];let d;l&&Y(l,d=Ne(f))?!r||!r.includes(d)?n[d]=a:(o||(o={}))[d]=a:on(e.emitsOptions,f)||(!(f in s)||a!==s[f])&&(s[f]=a,i=!0)}if(r){const f=J(n),a=o||ee;for(let d=0;d<r.length;d++){const h=r[d];n[h]=kn(l,f,h,a[h],e,!Y(a,h))}}return i}function kn(e,t,n,s,l,r){const i=e[n];if(i!=null){const o=Y(i,"default");if(o&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&V(f)){const{propsDefaults:a}=l;n in a?s=a[n]:(ht(l),s=a[n]=f.call(null,t),Xe())}else s=f}i[0]&&(r&&!o?s=!1:i[1]&&(s===""||s===tn(n))&&(s=!0))}return s}function Pr(e,t,n=!1){const s=t.propsCache,l=s.get(e);if(l)return l;const r=e.props,i={},o=[];let f=!1;if(!V(e)){const d=h=>{f=!0;const[y,v]=Pr(h,t,!0);ue(i,y),v&&o.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!f)return z(e)&&s.set(e,st),st;if(U(r))for(let d=0;d<r.length;d++){const h=Ne(r[d]);Ls(h)&&(i[h]=ee)}else if(r)for(const d in r){const h=Ne(d);if(Ls(h)){const y=r[d],v=i[h]=U(y)||V(y)?{type:y}:ue({},y);if(v){const O=ks(Boolean,v.type),M=ks(String,v.type);v[0]=O>-1,v[1]=M<0||O<M,(O>-1||Y(v,"default"))&&o.push(h)}}}const a=[i,o];return z(e)&&s.set(e,a),a}function Ls(e){return e[0]!=="$"}function Bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ns(e,t){return Bs(e)===Bs(t)}function ks(e,t){return U(t)?t.findIndex(n=>Ns(n,e)):V(t)&&Ns(t,e)?0:-1}const Lr=e=>e[0]==="_"||e==="$stable",rs=e=>U(e)?e.map(Ce):[Ce(e)],Ui=(e,t,n)=>{if(t._n)return t;const s=zl((...l)=>rs(t(...l)),n);return s._c=!1,s},Br=(e,t,n)=>{const s=e._ctx;for(const l in e){if(Lr(l))continue;const r=e[l];if(V(r))t[l]=Ui(l,r,s);else if(r!=null){const i=rs(r);t[l]=()=>i}}},Nr=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Si=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=J(t),Wt(t,"_",n)):Br(t,e.slots={})}else e.slots={},t&&Nr(e,t);Wt(e.slots,fn,1)},Vi=(e,t,n)=>{const{vnode:s,slots:l}=e;let r=!0,i=ee;if(s.shapeFlag&32){const o=t._;o?n&&o===1?r=!1:(ue(l,t),!n&&o===1&&delete l._):(r=!t.$stable,Br(t,l)),i=t}else t&&(Nr(e,t),i={default:1});if(r)for(const o in l)!Lr(o)&&i[o]==null&&delete l[o]};function Xt(e,t,n,s,l=!1){if(U(e)){e.forEach((y,v)=>Xt(y,t&&(U(t)?t[v]:t),n,s,l));return}if(ct(s)&&!l)return;const r=s.shapeFlag&4?un(s.component)||s.component.proxy:s.el,i=l?null:r,{i:o,r:f}=e,a=t&&t.r,d=o.refs===ee?o.refs={}:o.refs,h=o.setupState;if(a!=null&&a!==f&&(re(a)?(d[a]=null,Y(h,a)&&(h[a]=null)):ae(a)&&(a.value=null)),V(f))$e(f,o,12,[i,d]);else{const y=re(f),v=ae(f);if(y||v){const O=()=>{if(e.f){const M=y?Y(h,f)?h[f]:d[f]:f.value;l?U(M)&&Vn(M,r):U(M)?M.includes(r)||M.push(r):y?(d[f]=[r],Y(h,f)&&(h[f]=d[f])):(f.value=[r],e.k&&(d[e.k]=f.value))}else y?(d[f]=i,Y(h,f)&&(h[f]=i)):v&&(f.value=i,e.k&&(d[e.k]=i))};i?(O.id=-1,ge(O,n)):O()}}}let He=!1;const $i=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Di=e=>e.namespaceURI.includes("MathML"),jt=e=>{if($i(e))return"svg";if(Di(e))return"mathml"},Ht=e=>e.nodeType===8;function Ki(e){const{mt:t,p:n,o:{patchProp:s,createText:l,nextSibling:r,parentNode:i,remove:o,insert:f,createComment:a}}=e,d=(p,g)=>{if(!g.hasChildNodes()){n(null,p,g),Yt(),g._vnode=p;return}He=!1,h(g.firstChild,p,null,null,null),Yt(),g._vnode=p,He&&console.error("Hydration completed but contains mismatches.")},h=(p,g,T,F,L,w=!1)=>{const B=Ht(p)&&p.data==="[",P=()=>M(p,g,T,F,L,B),{type:$,ref:Z,shapeFlag:Q,patchFlag:ce}=g;let se=p.nodeType;g.el=p,ce===-2&&(w=!1,g.dynamicChildren=null);let j=null;switch($){case ut:se!==3?g.children===""?(f(g.el=l(""),i(p),p),j=p):j=P():(p.data!==g.children&&(He=!0,p.data=g.children),j=r(p));break;case de:K(p)?(j=r(p),W(g.el=p.content.firstChild,p,T)):se!==8||B?j=P():j=r(p);break;case Dt:if(B&&(p=r(p),se=p.nodeType),se===1||se===3){j=p;const q=!g.children.length;for(let k=0;k<g.staticCount;k++)q&&(g.children+=j.nodeType===1?j.outerHTML:j.data),k===g.staticCount-1&&(g.anchor=j),j=r(j);return B?r(j):j}else P();break;case pe:B?j=O(p,g,T,F,L,w):j=P();break;default:if(Q&1)(se!==1||g.type.toLowerCase()!==p.tagName.toLowerCase())&&!K(p)?j=P():j=y(p,g,T,F,L,w);else if(Q&6){g.slotScopeIds=L;const q=i(p);if(B?j=D(p):Ht(p)&&p.data==="teleport start"?j=D(p,p.data,"teleport end"):j=r(p),t(g,q,null,T,F,jt(q),w),ct(g)){let k;B?(k=ne(pe),k.anchor=j?j.previousSibling:q.lastChild):k=p.nodeType===3?Wr(""):ne("div"),k.el=p,g.component.subTree=k}}else Q&64?se!==8?j=P():j=g.type.hydrate(p,g,T,F,L,w,e,v):Q&128&&(j=g.type.hydrate(p,g,T,F,jt(i(p)),L,w,e,h))}return Z!=null&&Xt(Z,null,F,g),j},y=(p,g,T,F,L,w)=>{w=w||!!g.dynamicChildren;const{type:B,props:P,patchFlag:$,shapeFlag:Z,dirs:Q,transition:ce}=g,se=B==="input"||B==="option";if(se||$!==-1){Q&&Re(g,null,T,"created");let j=!1;if(K(p)){j=jr(F,ce)&&T&&T.vnode.props&&T.vnode.props.appear;const k=p.content.firstChild;j&&ce.beforeEnter(k),W(k,p,T),g.el=p=k}if(Z&16&&!(P&&(P.innerHTML||P.textContent))){let k=v(p.firstChild,g,p,T,F,L,w);for(;k;){He=!0;const Me=k;k=k.nextSibling,o(Me)}}else Z&8&&p.textContent!==g.children&&(He=!0,p.textContent=g.children);if(P)if(se||!w||$&48)for(const k in P)(se&&(k.endsWith("value")||k==="indeterminate")||zt(k)&&!_t(k)||k[0]===".")&&s(p,k,null,P[k],void 0,void 0,T);else P.onClick&&s(p,"onClick",null,P.onClick,void 0,void 0,T);let q;(q=P&&P.onVnodeBeforeMount)&&xe(q,T,g),Q&&Re(g,null,T,"beforeMount"),((q=P&&P.onVnodeMounted)||Q||j)&&xr(()=>{q&&xe(q,T,g),j&&ce.enter(p),Q&&Re(g,null,T,"mounted")},F)}return p.nextSibling},v=(p,g,T,F,L,w,B)=>{B=B||!!g.dynamicChildren;const P=g.children,$=P.length;for(let Z=0;Z<$;Z++){const Q=B?P[Z]:P[Z]=Ce(P[Z]);if(p)p=h(p,Q,F,L,w,B);else{if(Q.type===ut&&!Q.children)continue;He=!0,n(null,Q,T,null,F,L,jt(T),w)}}return p},O=(p,g,T,F,L,w)=>{const{slotScopeIds:B}=g;B&&(L=L?L.concat(B):B);const P=i(p),$=v(r(p),g,P,T,F,L,w);return $&&Ht($)&&$.data==="]"?r(g.anchor=$):(He=!0,f(g.anchor=a("]"),P,$),$)},M=(p,g,T,F,L,w)=>{if(He=!0,g.el=null,w){const $=D(p);for(;;){const Z=r(p);if(Z&&Z!==$)o(Z);else break}}const B=r(p),P=i(p);return o(p),n(null,g,P,B,T,F,jt(P),L),B},D=(p,g="[",T="]")=>{let F=0;for(;p;)if(p=r(p),p&&Ht(p)&&(p.data===g&&F++,p.data===T)){if(F===0)return r(p);F--}return p},W=(p,g,T)=>{const F=g.parentNode;F&&F.replaceChild(p,g);let L=T;for(;L;)L.vnode.el===g&&(L.vnode.el=L.subTree.el=p),L=L.parent},K=p=>p.nodeType===1&&p.tagName.toLowerCase()==="template";return[d,h]}const ge=xr;function Oo(e){return kr(e)}function Io(e){return kr(e,Ki)}function kr(e,t){const n=qs();n.__VUE__=!0;const{insert:s,remove:l,patchProp:r,createElement:i,createText:o,createComment:f,setText:a,setElementText:d,parentNode:h,nextSibling:y,setScopeId:v=Te,insertStaticContent:O}=e,M=(c,u,_,m=null,b=null,E=null,R=void 0,C=null,A=!!u.dynamicChildren)=>{if(c===u)return;c&&!Ie(c,u)&&(m=Ot(c),Fe(c,b,E,!0),c=null),u.patchFlag===-2&&(A=!1,u.dynamicChildren=null);const{type:x,ref:I,shapeFlag:H}=u;switch(x){case ut:D(c,u,_,m);break;case de:W(c,u,_,m);break;case Dt:c==null&&K(u,_,m,R);break;case pe:Z(c,u,_,m,b,E,R,C,A);break;default:H&1?T(c,u,_,m,b,E,R,C,A):H&6?Q(c,u,_,m,b,E,R,C,A):(H&64||H&128)&&x.process(c,u,_,m,b,E,R,C,A,tt)}I!=null&&b&&Xt(I,c&&c.ref,E,u||c,!u)},D=(c,u,_,m)=>{if(c==null)s(u.el=o(u.children),_,m);else{const b=u.el=c.el;u.children!==c.children&&a(b,u.children)}},W=(c,u,_,m)=>{c==null?s(u.el=f(u.children||""),_,m):u.el=c.el},K=(c,u,_,m)=>{[c.el,c.anchor]=O(c.children,u,_,m,c.el,c.anchor)},p=({el:c,anchor:u},_,m)=>{let b;for(;c&&c!==u;)b=y(c),s(c,_,m),c=b;s(u,_,m)},g=({el:c,anchor:u})=>{let _;for(;c&&c!==u;)_=y(c),l(c),c=_;l(u)},T=(c,u,_,m,b,E,R,C,A)=>{u.type==="svg"?R="svg":u.type==="math"&&(R="mathml"),c==null?F(u,_,m,b,E,R,C,A):B(c,u,b,E,R,C,A)},F=(c,u,_,m,b,E,R,C)=>{let A,x;const{props:I,shapeFlag:H,transition:N,dirs:S}=c;if(A=c.el=i(c.type,E,I&&I.is,I),H&8?d(A,c.children):H&16&&w(c.children,A,null,m,b,Tn(c,E),R,C),S&&Re(c,null,m,"created"),L(A,c,c.scopeId,R,m),I){for(const X in I)X!=="value"&&!_t(X)&&r(A,X,null,I[X],E,c.children,m,b,Pe);"value"in I&&r(A,"value",null,I.value,E),(x=I.onVnodeBeforeMount)&&xe(x,m,c)}S&&Re(c,null,m,"beforeMount");const G=jr(b,N);G&&N.beforeEnter(A),s(A,u,_),((x=I&&I.onVnodeMounted)||G||S)&&ge(()=>{x&&xe(x,m,c),G&&N.enter(A),S&&Re(c,null,m,"mounted")},b)},L=(c,u,_,m,b)=>{if(_&&v(c,_),m)for(let E=0;E<m.length;E++)v(c,m[E]);if(b){let E=b.subTree;if(u===E){const R=b.vnode;L(c,R,R.scopeId,R.slotScopeIds,b.parent)}}},w=(c,u,_,m,b,E,R,C,A=0)=>{for(let x=A;x<c.length;x++){const I=c[x]=C?Se(c[x]):Ce(c[x]);M(null,I,u,_,m,b,E,R,C)}},B=(c,u,_,m,b,E,R)=>{const C=u.el=c.el;let{patchFlag:A,dynamicChildren:x,dirs:I}=u;A|=c.patchFlag&16;const H=c.props||ee,N=u.props||ee;let S;if(_&&Ge(_,!1),(S=N.onVnodeBeforeUpdate)&&xe(S,_,u,c),I&&Re(u,c,_,"beforeUpdate"),_&&Ge(_,!0),x?P(c.dynamicChildren,x,C,_,m,Tn(u,b),E):R||k(c,u,C,null,_,m,Tn(u,b),E,!1),A>0){if(A&16)$(C,u,H,N,_,m,b);else if(A&2&&H.class!==N.class&&r(C,"class",null,N.class,b),A&4&&r(C,"style",H.style,N.style,b),A&8){const G=u.dynamicProps;for(let X=0;X<G.length;X++){const te=G[X],le=H[te],we=N[te];(we!==le||te==="value")&&r(C,te,le,we,b,c.children,_,m,Pe)}}A&1&&c.children!==u.children&&d(C,u.children)}else!R&&x==null&&$(C,u,H,N,_,m,b);((S=N.onVnodeUpdated)||I)&&ge(()=>{S&&xe(S,_,u,c),I&&Re(u,c,_,"updated")},m)},P=(c,u,_,m,b,E,R)=>{for(let C=0;C<u.length;C++){const A=c[C],x=u[C],I=A.el&&(A.type===pe||!Ie(A,x)||A.shapeFlag&70)?h(A.el):_;M(A,x,I,null,m,b,E,R,!0)}},$=(c,u,_,m,b,E,R)=>{if(_!==m){if(_!==ee)for(const C in _)!_t(C)&&!(C in m)&&r(c,C,_[C],null,R,u.children,b,E,Pe);for(const C in m){if(_t(C))continue;const A=m[C],x=_[C];A!==x&&C!=="value"&&r(c,C,x,A,R,u.children,b,E,Pe)}"value"in m&&r(c,"value",_.value,m.value,R)}},Z=(c,u,_,m,b,E,R,C,A)=>{const x=u.el=c?c.el:o(""),I=u.anchor=c?c.anchor:o("");let{patchFlag:H,dynamicChildren:N,slotScopeIds:S}=u;S&&(C=C?C.concat(S):S),c==null?(s(x,_,m),s(I,_,m),w(u.children,_,I,b,E,R,C,A)):H>0&&H&64&&N&&c.dynamicChildren?(P(c.dynamicChildren,N,_,b,E,R,C),(u.key!=null||b&&u===b.subTree)&&ls(c,u,!0)):k(c,u,_,I,b,E,R,C,A)},Q=(c,u,_,m,b,E,R,C,A)=>{u.slotScopeIds=C,c==null?u.shapeFlag&512?b.ctx.activate(u,_,m,R,A):ce(u,_,m,b,E,R,A):se(c,u,A)},ce=(c,u,_,m,b,E,R)=>{const C=c.component=eo(c,m,b);if(Ft(c)&&(C.ctx.renderer=tt),no(C),C.asyncDep){if(b&&b.registerDep(C,j),!c.el){const A=C.subTree=ne(de);W(null,A,u,_)}}else j(C,c,u,_,b,E,R)},se=(c,u,_)=>{const m=u.component=c.component;if(si(c,u,_))if(m.asyncDep&&!m.asyncResolved){q(m,u,_);return}else m.next=u,Zl(m.update),m.effect.dirty=!0,m.update();else u.el=c.el,m.vnode=u},j=(c,u,_,m,b,E,R)=>{const C=()=>{if(c.isMounted){let{next:I,bu:H,u:N,parent:S,vnode:G}=c;{const nt=Hr(c);if(nt){I&&(I.el=G.el,q(c,I,R)),nt.asyncDep.then(()=>{c.isUnmounted||C()});return}}let X=I,te;Ge(c,!1),I?(I.el=G.el,q(c,I,R)):I=G,H&&pn(H),(te=I.props&&I.props.onVnodeBeforeUpdate)&&xe(te,S,I,G),Ge(c,!0);const le=yn(c),we=c.subTree;c.subTree=le,M(we,le,h(we.el),Ot(we),c,b,E),I.el=le.el,X===null&&zn(c,le.el),N&&ge(N,b),(te=I.props&&I.props.onVnodeUpdated)&&ge(()=>xe(te,S,I,G),b)}else{let I;const{el:H,props:N}=u,{bm:S,m:G,parent:X}=c,te=ct(u);if(Ge(c,!1),S&&pn(S),!te&&(I=N&&N.onVnodeBeforeMount)&&xe(I,X,u),Ge(c,!0),H&&hn){const le=()=>{c.subTree=yn(c),hn(H,c.subTree,c,b,null)};te?u.type.__asyncLoader().then(()=>!c.isUnmounted&&le()):le()}else{const le=c.subTree=yn(c);M(null,le,_,m,c,b,E),u.el=le.el}if(G&&ge(G,b),!te&&(I=N&&N.onVnodeMounted)){const le=u;ge(()=>xe(I,X,le),b)}(u.shapeFlag&256||X&&ct(X.vnode)&&X.vnode.shapeFlag&256)&&c.a&&ge(c.a,b),c.isMounted=!0,u=_=m=null}},A=c.effect=new Kn(C,Te,()=>ln(x),c.scope),x=c.update=()=>{A.dirty&&A.run()};x.id=c.uid,Ge(c,!0),x()},q=(c,u,_)=>{u.component=c;const m=c.vnode.props;c.vnode=u,c.next=null,Hi(c,u.props,m,_),Vi(c,u.children,_),ze(),ws(c),et()},k=(c,u,_,m,b,E,R,C,A=!1)=>{const x=c&&c.children,I=c?c.shapeFlag:0,H=u.children,{patchFlag:N,shapeFlag:S}=u;if(N>0){if(N&128){Rt(x,H,_,m,b,E,R,C,A);return}else if(N&256){Me(x,H,_,m,b,E,R,C,A);return}}S&8?(I&16&&Pe(x,b,E),H!==x&&d(_,H)):I&16?S&16?Rt(x,H,_,m,b,E,R,C,A):Pe(x,b,E,!0):(I&8&&d(_,""),S&16&&w(H,_,m,b,E,R,C,A))},Me=(c,u,_,m,b,E,R,C,A)=>{c=c||st,u=u||st;const x=c.length,I=u.length,H=Math.min(x,I);let N;for(N=0;N<H;N++){const S=u[N]=A?Se(u[N]):Ce(u[N]);M(c[N],S,_,null,b,E,R,C,A)}x>I?Pe(c,b,E,!0,!1,H):w(u,_,m,b,E,R,C,A,H)},Rt=(c,u,_,m,b,E,R,C,A)=>{let x=0;const I=u.length;let H=c.length-1,N=I-1;for(;x<=H&&x<=N;){const S=c[x],G=u[x]=A?Se(u[x]):Ce(u[x]);if(Ie(S,G))M(S,G,_,null,b,E,R,C,A);else break;x++}for(;x<=H&&x<=N;){const S=c[H],G=u[N]=A?Se(u[N]):Ce(u[N]);if(Ie(S,G))M(S,G,_,null,b,E,R,C,A);else break;H--,N--}if(x>H){if(x<=N){const S=N+1,G=S<I?u[S].el:m;for(;x<=N;)M(null,u[x]=A?Se(u[x]):Ce(u[x]),_,G,b,E,R,C,A),x++}}else if(x>N)for(;x<=H;)Fe(c[x],b,E,!0),x++;else{const S=x,G=x,X=new Map;for(x=G;x<=N;x++){const ye=u[x]=A?Se(u[x]):Ce(u[x]);ye.key!=null&&X.set(ye.key,x)}let te,le=0;const we=N-G+1;let nt=!1,as=0;const gt=new Array(we);for(x=0;x<we;x++)gt[x]=0;for(x=S;x<=H;x++){const ye=c[x];if(le>=we){Fe(ye,b,E,!0);continue}let Ae;if(ye.key!=null)Ae=X.get(ye.key);else for(te=G;te<=N;te++)if(gt[te-G]===0&&Ie(ye,u[te])){Ae=te;break}Ae===void 0?Fe(ye,b,E,!0):(gt[Ae-G]=x+1,Ae>=as?as=Ae:nt=!0,M(ye,u[Ae],_,null,b,E,R,C,A),le++)}const hs=nt?Wi(gt):st;for(te=hs.length-1,x=we-1;x>=0;x--){const ye=G+x,Ae=u[ye],ds=ye+1<I?u[ye+1].el:m;gt[x]===0?M(null,Ae,_,ds,b,E,R,C,A):nt&&(te<0||x!==hs[te]?qe(Ae,_,ds,2):te--)}}},qe=(c,u,_,m,b=null)=>{const{el:E,type:R,transition:C,children:A,shapeFlag:x}=c;if(x&6){qe(c.component.subTree,u,_,m);return}if(x&128){c.suspense.move(u,_,m);return}if(x&64){R.move(c,u,_,tt);return}if(R===pe){s(E,u,_);for(let H=0;H<A.length;H++)qe(A[H],u,_,m);s(c.anchor,u,_);return}if(R===Dt){p(c,u,_);return}if(m!==2&&x&1&&C)if(m===0)C.beforeEnter(E),s(E,u,_),ge(()=>C.enter(E),b);else{const{leave:H,delayLeave:N,afterLeave:S}=C,G=()=>s(E,u,_),X=()=>{H(E,()=>{G(),S&&S()})};N?N(E,G,X):X()}else s(E,u,_)},Fe=(c,u,_,m=!1,b=!1)=>{const{type:E,props:R,ref:C,children:A,dynamicChildren:x,shapeFlag:I,patchFlag:H,dirs:N}=c;if(C!=null&&Xt(C,null,_,c,!0),I&256){u.ctx.deactivate(c);return}const S=I&1&&N,G=!ct(c);let X;if(G&&(X=R&&R.onVnodeBeforeUnmount)&&xe(X,u,c),I&6)Jr(c.component,_,m);else{if(I&128){c.suspense.unmount(_,m);return}S&&Re(c,null,u,"beforeUnmount"),I&64?c.type.remove(c,u,_,b,tt,m):x&&(E!==pe||H>0&&H&64)?Pe(x,u,_,!1,!0):(E===pe&&H&384||!b&&I&16)&&Pe(A,u,_),m&&fs(c)}(G&&(X=R&&R.onVnodeUnmounted)||S)&&ge(()=>{X&&xe(X,u,c),S&&Re(c,null,u,"unmounted")},_)},fs=c=>{const{type:u,el:_,anchor:m,transition:b}=c;if(u===pe){Yr(_,m);return}if(u===Dt){g(c);return}const E=()=>{l(_),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(c.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:C}=b,A=()=>R(_,E);C?C(c.el,E,A):A()}else E()},Yr=(c,u)=>{let _;for(;c!==u;)_=y(c),l(c),c=_;l(u)},Jr=(c,u,_)=>{const{bum:m,scope:b,update:E,subTree:R,um:C}=c;m&&pn(m),b.stop(),E&&(E.active=!1,Fe(R,c,u,_)),C&&ge(C,u),ge(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Pe=(c,u,_,m=!1,b=!1,E=0)=>{for(let R=E;R<c.length;R++)Fe(c[R],u,_,m,b)},Ot=c=>c.shapeFlag&6?Ot(c.component.subTree):c.shapeFlag&128?c.suspense.next():y(c.anchor||c.el),us=(c,u,_)=>{c==null?u._vnode&&Fe(u._vnode,null,null,!0):M(u._vnode||null,c,u,null,null,null,_),ws(),Yt(),u._vnode=c},tt={p:M,um:Fe,m:qe,r:fs,mt:ce,mc:w,pc:k,pbc:P,n:Ot,o:e};let an,hn;return t&&([an,hn]=t(tt)),{render:us,hydrate:an,createApp:Ni(us,an)}}function Tn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ge({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ls(e,t,n=!1){const s=e.children,l=t.children;if(U(s)&&U(l))for(let r=0;r<s.length;r++){const i=s[r];let o=l[r];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=l[r]=Se(l[r]),o.el=i.el),n||ls(i,o)),o.type===ut&&(o.el=i.el)}}function Wi(e){const t=e.slice(),n=[0];let s,l,r,i,o;const f=e.length;for(s=0;s<f;s++){const a=e[s];if(a!==0){if(l=n[n.length-1],e[l]<a){t[s]=l,n.push(s);continue}for(r=0,i=n.length-1;r<i;)o=r+i>>1,e[n[o]]<a?r=o+1:i=o;a<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Hr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hr(t)}const qi=e=>e.__isTeleport,mt=e=>e&&(e.disabled||e.disabled===""),js=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Hs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,jn=(e,t)=>{const n=e&&e.to;return re(n)?t?t(n):null:n},Gi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,l,r,i,o,f,a){const{mc:d,pc:h,pbc:y,o:{insert:v,querySelector:O,createText:M,createComment:D}}=a,W=mt(t.props);let{shapeFlag:K,children:p,dynamicChildren:g}=t;if(e==null){const T=t.el=M(""),F=t.anchor=M("");v(T,n,s),v(F,n,s);const L=t.target=jn(t.props,O),w=t.targetAnchor=M("");L&&(v(w,L),i==="svg"||js(L)?i="svg":(i==="mathml"||Hs(L))&&(i="mathml"));const B=(P,$)=>{K&16&&d(p,P,$,l,r,i,o,f)};W?B(n,F):L&&B(L,w)}else{t.el=e.el;const T=t.anchor=e.anchor,F=t.target=e.target,L=t.targetAnchor=e.targetAnchor,w=mt(e.props),B=w?n:F,P=w?T:L;if(i==="svg"||js(F)?i="svg":(i==="mathml"||Hs(F))&&(i="mathml"),g?(y(e.dynamicChildren,g,B,l,r,i,o),ls(e,t,!0)):f||h(e,t,B,P,l,r,i,o,!1),W)w?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ut(t,n,T,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=jn(t.props,O);$&&Ut(t,$,null,a,0)}else w&&Ut(t,F,L,a,1)}Ur(t)},remove(e,t,n,s,{um:l,o:{remove:r}},i){const{shapeFlag:o,children:f,anchor:a,targetAnchor:d,target:h,props:y}=e;if(h&&r(d),i&&r(a),o&16){const v=i||!mt(y);for(let O=0;O<f.length;O++){const M=f[O];l(M,t,n,v,!!M.dynamicChildren)}}},move:Ut,hydrate:Yi};function Ut(e,t,n,{o:{insert:s},m:l},r=2){r===0&&s(e.targetAnchor,t,n);const{el:i,anchor:o,shapeFlag:f,children:a,props:d}=e,h=r===2;if(h&&s(i,t,n),(!h||mt(d))&&f&16)for(let y=0;y<a.length;y++)l(a[y],t,n,2);h&&s(o,t,n)}function Yi(e,t,n,s,l,r,{o:{nextSibling:i,parentNode:o,querySelector:f}},a){const d=t.target=jn(t.props,f);if(d){const h=d._lpa||d.firstChild;if(t.shapeFlag&16)if(mt(t.props))t.anchor=a(i(e),t,o(e),n,s,l,r),t.targetAnchor=h;else{t.anchor=i(e);let y=h;for(;y;)if(y=i(y),y&&y.nodeType===8&&y.data==="teleport anchor"){t.targetAnchor=y,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(h,t,d,n,s,l,r)}Ur(t)}return t.anchor&&i(t.anchor)}const Mo=Gi;function Ur(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const pe=Symbol.for("v-fgt"),ut=Symbol.for("v-txt"),de=Symbol.for("v-cmt"),Dt=Symbol.for("v-stc"),bt=[];let Ee=null;function is(e=!1){bt.push(Ee=e?null:[])}function Sr(){bt.pop(),Ee=bt[bt.length-1]||null}let at=1;function Us(e){at+=e}function Vr(e){return e.dynamicChildren=at>0?Ee||st:null,Sr(),at>0&&Ee&&Ee.push(e),e}function Po(e,t,n,s,l,r){return Vr(Kr(e,t,n,s,l,r,!0))}function $r(e,t,n,s,l){return Vr(ne(e,t,n,s,l,!0))}function wt(e){return e?e.__v_isVNode===!0:!1}function Ie(e,t){return e.type===t.type&&e.key===t.key}const fn="__vInternal",Dr=({key:e})=>e??null,Kt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ae(e)||V(e)?{i:oe,r:e,k:t,f:!!n}:e:null);function Kr(e,t=null,n=null,s=0,l=null,r=e===pe?0:1,i=!1,o=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dr(t),ref:t&&Kt(t),scopeId:yr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:oe};return o?(os(f,n),r&128&&e.normalize(f)):n&&(f.shapeFlag|=re(n)?8:16),at>0&&!i&&Ee&&(f.patchFlag>0||r&6)&&f.patchFlag!==32&&Ee.push(f),f}const ne=Ji;function Ji(e,t=null,n=null,s=0,l=null,r=!1){if((!e||e===mr)&&(e=de),wt(e)){const o=We(e,t,!0);return n&&os(o,n),at>0&&!r&&Ee&&(o.shapeFlag&6?Ee[Ee.indexOf(e)]=o:Ee.push(o)),o.patchFlag|=-2,o}if(oo(e)&&(e=e.__vccOpts),t){t=Zi(t);let{class:o,style:f}=t;o&&!re(o)&&(t.class=sn(o)),z(f)&&(or(f)&&!U(f)&&(f=ue({},f)),t.style=nn(f))}const i=re(e)?1:ri(e)?128:qi(e)?64:z(e)?4:V(e)?2:0;return Kr(e,t,n,s,l,i,r,!0)}function Zi(e){return e?or(e)||fn in e?ue({},e):e:null}function We(e,t,n=!1){const{props:s,ref:l,patchFlag:r,children:i}=e,o=t?Qi(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Dr(o),ref:t&&t.ref?n&&l?U(l)?l.concat(Kt(t)):[l,Kt(t)]:Kt(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&We(e.ssContent),ssFallback:e.ssFallback&&We(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Wr(e=" ",t=0){return ne(ut,null,e,t)}function Lo(e="",t=!1){return t?(is(),$r(de,null,e)):ne(de,null,e)}function Ce(e){return e==null||typeof e=="boolean"?ne(de):U(e)?ne(pe,null,e.slice()):typeof e=="object"?Se(e):ne(ut,null,String(e))}function Se(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:We(e)}function os(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(s&65){const l=t.default;l&&(l._c&&(l._d=!1),os(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(fn in t)?t._ctx=oe:l===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:oe},n=32):(t=String(t),s&64?(n=16,t=[Wr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qi(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const l in s)if(l==="class")t.class!==s.class&&(t.class=sn([t.class,s.class]));else if(l==="style")t.style=nn([t.style,s.style]);else if(zt(l)){const r=t[l],i=s[l];i&&r!==i&&!(U(r)&&r.includes(i))&&(t[l]=r?[].concat(r,i):i)}else l!==""&&(t[l]=s[l])}return t}function xe(e,t,n,s=null){ve(e,t,7,[n,s])}const Xi=Ir();let zi=0;function eo(e,t,n){const s=e.type,l=(t?t.appContext:e.appContext)||Xi,r={uid:zi++,vnode:e,type:s,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new _l(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pr(s,l),emitsOptions:_r(s,l),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:s.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Xl.bind(null,r),e.ce&&e.ce(r),r}let ie=null;const to=()=>ie||oe;let cs,Hn;{const e=qs(),t=(n,s)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(s),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};cs=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),Hn=t("__VUE_SSR_SETTERS__",n=>At=n)}const ht=e=>{cs(e),e.scope.on()},Xe=()=>{ie&&ie.scope.off(),cs(null)};function qr(e){return e.vnode.shapeFlag&4}let At=!1;function no(e,t=!1){t&&Hn(t);const{props:n,children:s}=e.vnode,l=qr(e);ji(e,n,l,t),Si(e,s);const r=l?so(e,t):void 0;return t&&Hn(!1),r}function so(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=cr(new Proxy(e.ctx,Ri));const{setup:s}=n;if(s){const l=e.setupContext=s.length>1?lo(e):null;ht(e),ze();const r=$e(s,e,0,[e.props,l]);if(et(),Xe(),Ds(r)){if(r.then(Xe,Xe),t)return r.then(i=>{Un(e,i,t)}).catch(i=>{dt(i,e,0)});e.asyncDep=r}else Un(e,r,t)}else Gr(e,t)}function Un(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=hr(t)),Gr(e,n)}let Ss;function Gr(e,t,n){const s=e.type;if(!e.render){if(!t&&Ss&&!s.render){const l=s.template||ss(e).template;if(l){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:f}=s,a=ue(ue({isCustomElement:r,delimiters:o},i),f);s.render=Ss(l,a)}}e.render=s.render||Te}{ht(e),ze();try{Oi(e)}finally{et(),Xe()}}}function ro(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return _e(e,"get","$attrs"),t[n]}}))}function lo(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ro(e)},slots:e.slots,emit:e.emit,expose:t}}function un(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hr(cr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yt)return yt[n](e)},has(t,n){return n in t||n in yt}}))}function io(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function oo(e){return V(e)&&"__vccOpts"in e}const co=(e,t)=>Sl(e,t,At);function Bo(e,t,n){const s=arguments.length;return s===2?z(t)&&!U(t)?wt(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&wt(n)&&(n=[n]),ne(e,t,n))}const fo="3.4.5";export{$r as $,ve as A,wo as B,dn as C,Zr as D,Yl as E,$l as F,ir as G,vr as H,to as I,ml as J,_o as K,Ul as L,bo as M,is as N,Po as O,po as P,Lo as Q,Kr as R,Wr as S,sn as T,ne as U,zl as V,Eo as W,pe as X,Fo as Y,Ro as Z,uo as _,Vt as a,xo as a0,Qi as a1,ao as a2,Zi as a3,$t as a4,ki as a5,mo as a6,Us as a7,nn as a8,Ar as a9,To as aa,J as ab,Fr as ac,Co as ad,Mo as ae,vo as af,We as ag,Ao as ah,re as b,co as c,yi as d,Oo as e,Io as f,U as g,pn as h,V as i,Gs as j,Bo as k,cl as l,ue as m,pi as n,z as o,zt as p,Vs as q,Jn as r,yo as s,fl as t,tn as u,Ne as v,mn as w,Dn as x,ho as y,go as z};
@@ -0,0 +1 @@
1
+ import{u as _}from"./customer-session.yn5lG3w3.js";import{u as l}from"./index.8acAQSHW.js";import{g as y}from"./price.Easct8WC.js";import{c as m,w as g}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const q=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i},h=q;function b(i){return{all:i=i||new Map,on:function(t,r){var o=i.get(t);o?o.push(r):i.set(t,[r])},off:function(t,r){var o=i.get(t);o&&(r?o.splice(o.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var o=i.get(t);o&&o.slice().map(function(n){n(r)}),(o=i.get("*"))&&o.slice().map(function(n){n(t,r)})}}}const v=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),C=(i,t)=>{if(typeof t.product_id!="string"||typeof t.quantity!="number"||!(t.quantity>=0)||typeof t.price!="number"||!(t.price>=0))return null;const{items:r}=i;if(!t.kit_product)for(let n=0;n<r.length;n++){const a=r[n];if(!a.kit_product&&a.product_id===t.product_id&&a.variation_id===t.variation_id&&(!a.customizations||!a.customizations.length)&&v(a,t))return a.quantity+=t.quantity,t.price&&(a.price=t.price),t.final_price&&(a.final_price=t.final_price),a}const o={...t};if((!t._id||t._id===t.variation_id||r.find(({_id:n})=>n===t._id))&&(o._id=h()),t.customizations){const n=[];t.customizations.forEach((a,c)=>{n[c]={...a}}),o.customizations=n}return r.push(o),o},k=(i,t,r)=>{(typeof r!="number"||Number.isNaN(r))&&(r=i.min_quantity||1);const o=i.min_quantity||0,n=t&&i.variations?i.variations.find(({_id:c})=>c===t):void 0,a={product_id:i._id,variation_id:t,sku:n?.sku||i.sku,name:n?.name||i.name,slug:i.slug,production_time:n?.production_time||i.production_time,currency_id:i.currency_id,currency_symbol:i.currency_symbol,base_price:n?.base_price||i.base_price,max_quantity:i.quantity,quantity:o>0?Math.max(o,r):r,price:y(i)};return n?.picture_id&&i.pictures&&(a.picture=i.pictures.find(c=>c._id===n.picture_id)),!a.picture&&i.pictures&&([a.picture]=i.pictures),a},E="ecomShoppingCart",x={subtotal:0,items:[]},s=_(E,x),O=m(()=>s.items.reduce((i,t)=>i+t.quantity,0)),z=i=>{C(s,i)},S=i=>{for(let t=0;t<s.items.length;t++)if(s.items[t]._id===i){s.items.splice(t,1);break}},D=(i,t,r)=>z(k(i,t,r)),f=b(),p=()=>s.items.map(i=>({...i}));let e=p();const N=l(i=>{["addCartItem","removeCartItem"].forEach(t=>{const r=t==="addCartItem",o=r?i:e,n=r?e:i;o.forEach(a=>{if(!a.quantity)return;const u=n.find(({_id:d})=>d===a._id)?.quantity||0;a.quantity>u&&f.emit(t,{...a,quantity:a.quantity-u})})}),e=p()},200);g(s.items,i=>{i.forEach(t=>{let r=t.kit_product?.price&&t.kit_product.pack_quantity?t.kit_product.price/t.kit_product.pack_quantity:t.price;Array.isArray(t.customizations)&&t.customizations.forEach(a=>{if(a.add_to_price){const{type:c,addition:u}=a.add_to_price;r+=c==="fixed"?u:t.price*(u/100)}}),t.final_price=r;const o=t.min_quantity||1,n=t.max_quantity;typeof t.quantity!="number"||Number.isNaN(t.quantity)||t.quantity<o?t.quantity=o:n&&t.quantity>n&&(t.quantity=n)}),s.subtotal=i.reduce((t,r)=>t+r.quantity*(r.final_price||r.price),0),N(i)});const Q={on:f.on,off:f.off};export{D as a,Q as c,k as p,S as r,s,O as t};
@@ -0,0 +1 @@
1
+ import{u as I,b as S,d as v,c as $}from"./customer-session.yn5lG3w3.js";import{c as C}from"./shopping-cart.MgpVRgys.js";import{a as h,r as G,c as p,L as b,w}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{u as P,g as x}from"./index.8acAQSHW.js";import{u as N}from"./afetch.5c8VmT0-.js";import{g as R}from"./name.itYHl42A.js";import{g as T}from"./price.Easct8WC.js";const L="ecomSeachHistory",l=I(L,[]);for(let s=0;s<l.length;s++)typeof l[s]!="string"&&(l.splice(s,1),s-=1);const A=async({term:s,params:i,fields:r,url:t="search/v1"})=>{if(typeof s=="string"&&(s=s.trim(),s.length<2))return{data:{result:[],meta:null}};const a=await S.get(t,{fields:r,params:s?{...i,term:s}:i});if(s&&a.data.result.length){const o=s,e=l.findIndex(n=>n.includes(o)&&!n.replace(o,"").includes(" "));if(e>-1){const n=l[e];l.splice(e,1),l.unshift(n)}else{const n=l.findIndex(g=>o.startsWith(g));n>-1&&l.splice(n,1),l.unshift(s)}for(;l.length>20;)l.pop()}return a};class H{fields;term=h(null);isWithCount=h(!0);isWithBuckets=h(!0);params=G({});pageSize=h(24);pageNumber=h(1);#s=h(!1);isFetching=p(()=>this.#s.value);#t=h(!1);wasFetched=p(()=>this.#t.value);#i=h(null);#e;fetching=p(()=>this.#i.value);#a=h(null);fetchError=p(()=>this.#a.value);products=b([]);meta=b({offset:0,limit:0,fields:[],sort:[],query:{}});#n;constructor({fields:i,debounce:r=150}={}){this.fields=i,this.#n=P(t=>(this.#s.value=!0,A(t)),r),w([this.term,this.params,this.pageSize],()=>{this.pageNumber.value=1}),w(this.pageNumber,()=>{this.#t.value=!1})}async fetch(i){i!==void 0&&i!==this.term.value&&(this.term.value=i,this.pageNumber.value=1);const r=this.pageSize.value,t=r*(this.pageNumber.value-1);this.#i.value||(this.#i.value=new Promise(o=>{this.#e=o}));let a;try{a=await this.#n({term:this.term.value,params:{...this.params,limit:r,offset:t,count:this.isWithCount.value||void 0,buckets:this.isWithBuckets.value||void 0},fields:this.fields})}catch(o){throw this.#e&&(this.#a.value=o,this.#e()),o}if(a){this.#s.value=!1,this.#t.value=!0;const{data:o}=a;o.meta&&this.setResult(o),this.#e&&this.#e()}}setResult(i){i.meta&&Object.assign(this.meta,i.meta),i.result&&(this.products.splice(0),i.result.forEach(r=>this.products.push(r))),i.meta&&i.result&&(this.#t.value=!0)}}const c={},f={},E=()=>{f.resolve||(f.waiting=new Promise(s=>{f.resolve=s}))};E();const M=()=>({page_location:window.location.toString(),language:globalThis.$storefront.settings.lang||"pt_br",page_title:document.title,user_agent:navigator.userAgent}),q=()=>({...f.params||M(),...c,user_id:$.value._id,utm:N}),y="GtagEvent";let m={},u="";const d=async(s,i)=>{const r=i;if(s==="page_view"){m={};const{apiContext:t}=window.$storefront;if(u="",t){const{name:a}=t.doc;switch(t.resource){case"categories":u=`Category: ${a}`;break;case"brands":u=`Brand: ${a}`;break;case"collections":u=`Collection: ${a}`;break}}else{const{pathname:a}=window.location;a==="/"?u="Home":(/^\/s\/?/.test(a)||a==="/search"||a==="/busca")&&(u="Search results")}f.resolve&&(f.params=i,f.resolve(),f.resolve=null)}else f.waiting&&await f.waiting,s==="view_item"&&r.items?.forEach(t=>{if(t.index!==void 0)return;if(!t.item_list_id&&!t.item_list_name){const{apiContext:o}=window.$storefront;o?.doc._id===t.object_id&&(t.item_list_id="product-page",t.item_list_name="Product page")}const a=t.item_list_id||t.item_list_name||u;a&&(m[a]?m[a]+=1:m[a]=1,t.index=m[a],!t.item_list_id&&!t.item_list_name&&(t.item_list_name=a))}),typeof r.value=="number"&&!r.currency&&(r.currency=window.ECOM_CURRENCY||"BRL");try{const t={type:y,...q(),event:{name:s,params:r}};window.postMessage(t,window.origin)}catch(t){console.error(t)}},K=s=>{window.addEventListener("message",({data:i})=>{i.type===y&&s(i)})},F=s=>{const[i,...r]=R(s).split(" / "),t={item_name:i,item_id:s.sku,price:Math.round(T(s)*100)/100,object_id:s._id};r&&r.length?t.item_variant=r.join(" / "):s.variation_id&&(t.item_name=i.replace(window.__customGTMVariantRegex||/\s[^\s]+$/,""),t.item_variant=i.replace(t.item_name,"").trim()),(s.quantity===0||s.quantity&&s.product_id)&&(t.quantity=s.quantity);const{brands:a,categories:o}=s;if(a?.length&&(t.item_brand=a[0].name),o?.length)for(let e=0;e<o.length;e++){const{name:n}=o[e];if(e===0)t.item_category=n;else if(t[`item_category${e+1}`]=n,e===4)break}return t},O=()=>{document.addEventListener("astro:beforeload",E);const{gtag:s,GTAG_TAG_ID:i,GA_TRACKING_ID:r}=window,t=i||r;t&&typeof s=="function"&&["client_id","session_id","gclid"].forEach(e=>{s("get",t,e,n=>{c[e==="gclid"?e:`g_${e}`]=n})});const a=new URL(window.location.toString());["gclid","fbclid","ttclid"].forEach(e=>{const n=c[e]||a.searchParams.get(e);n?(c[e]=n,sessionStorage.setItem(`analytics_${e}`,n)):c[e]=sessionStorage.getItem(`analytics_${e}`)||void 0});const o=["_fbp"];c.fbclid||o.push("_fbc"),c.g_client_id||o.push("_ga"),o.forEach(e=>{document.cookie.split(";").forEach(n=>{const[g,_]=n.split("=");if(g.trim()===e&&_)switch(e){case"_fbp":c.fbp=_;break;case"_fbc":c.fbclid=_;break;case"_ga":c.g_client_id=_.substring(6);break}})}),["client_id","session_id"].forEach(e=>{const n=e==="client_id"?localStorage:sessionStorage,g=n.getItem(`analytics_${e}`);g?c[e]=g:c[e]=c[`g_${e}`]||`${Math.ceil(Math.random()*1e6)}.${Math.ceil(Math.random()*1e6)}`,n.setItem(`analytics_${e}`,c[e])}),v.value?d("login",{}):x(v,()=>d("login",{})),C.on("*",(e,n)=>{d(e==="addCartItem"?"add_to_cart":"remove_from_cart",{items:[F(n)]})}),w(l,()=>{const e=l[0];e&&d("search",{search_term:e})}),window.location.pathname.startsWith("/s")&&setTimeout(()=>{let e=new URLSearchParams(window.location.search).get("q");e||(e=decodeURIComponent(window.location.pathname.split("/")[2])),e&&typeof e=="string"&&d("view_search_results",{search_term:e})},300)};export{H as S,q as a,M as b,d as e,F as g,l as s,c as t,O as u,K as w};
@@ -0,0 +1 @@
1
+ import{b as k}from"./customer-session.yn5lG3w3.js";import{s as p}from"./sf-utils.yjuG8NjM.js";import{e as I,g as P}from"./use-analytics.D9xd-k7D.js";import{g,c as w}from"./price.Easct8WC.js";import"./index.8acAQSHW.js";import{a as f,L as N,c as n}from"./runtime-core.esm-bundler.Pr2hdd7G.js";import{g as q}from"./name.itYHl42A.js";import{g as E}from"./img.c2KI4eO6.js";const O=t=>t&&t.min_quantity||1,S=O,$=t=>!t.hasOwnProperty("quantity")||t.quantity>=S(t),G=$,M=t=>{const a=f(!1);let s=null;const c=f(null),{productId:r}=t,e=N({...t.product,_id:t.product?._id||r,price:g(t.product||{})});!t.product&&r&&(a.value=!0,s=(async()=>{try{const{data:i}=await k.get(`products/${r}`);Object.assign(e,i)}catch(i){console.error(i),c.value=i}a.value=!1})());const d=n(()=>q(e)),h=n(()=>{const{slug:i}=e;return typeof i=="string"?`/${i}`:null}),v=n(()=>{const{pictures:i}=e,m=[];return i&&i.forEach(b=>{const l=E(b);l&&m.push(l)}),m}),o=n(()=>G(e)),u=n(()=>o.value&&e.available&&e.visible),_=n(()=>{if(w(e)){const i=e.base_price;return Math.round((i-g(e))*100/i)}return 0}),y=n(()=>e.has_variations?!0:!!e.variations?.length);return I("view_item",{value:u.value?e.price:0,items:[{...P(e),item_list_name:t.listName,item_list_id:t.listId||t.listName&&p(t.listName)}]}),{isFetching:a,fetching:s,fetchError:c,product:e,title:d,link:h,images:v,isInStock:o,isActive:u,discountPercentage:_,hasVariations:y}};export{G as c,M as u};
@@ -0,0 +1,4 @@
1
+ import{_ as Q,w as Z,v as J}from"./_plugin-vue_export-helper.40kDRyEO.js";import{d as V,a as w,w as P,a6 as A,c as y,E as W,M as ee,N as b,$ as T,V as _,T as D,a8 as te,Z as j,O as F,Q as E,R as B,ae as ne,U as re,W as le,aa as k,H as ae,ag as oe,k as ie,X as se,a4 as ue,a5 as ce}from"./runtime-core.esm-bundler.Pr2hdd7G.js";const de=V({__name:"Drawer",props:{modelValue:{type:Boolean,default:!1},isHidden:{type:Boolean,default:!1},placement:{default:"start"},position:{default:"fixed"},animation:{default:"slide"},hasCloseButton:{type:Boolean,default:!0},anchorEl:{},backdropTarget:{default:"#teleported-top"},canLockScroll:{type:Boolean,default:!0},maxWidth:{},class:{}},emits:["update:modelValue"],setup(e,{expose:n,emit:t}){n();const r=e,a=t,l=()=>a("update:modelValue",!1),o=w(null),i=h=>{if(!o.value?.contains(h.target)){if(r.anchorEl?.contains(h.target))return;l()}},m=h=>{h.key==="Escape"&&l()},s=w(0);P(A(r,"modelValue"),async h=>{h?(r.canLockScroll&&(s.value=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",document.body.style.paddingRight=`${s.value}px`),setTimeout(()=>{document.addEventListener("click",i,{passive:!0}),document.addEventListener("keydown",m,{passive:!0})},500)):(r.canLockScroll&&(document.body.style.overflow="",document.body.style.paddingRight=""),document.removeEventListener("click",i),document.removeEventListener("keydown",m))});const u=y(()=>{if(r.animation!=="slide")return null;switch(r.placement){case"start":return"left";case"end":return"right";case"top":return"down";default:return"up"}}),d=w(null);r.animation==="scale"&&P(A(r,"modelValue"),h=>{h?W(()=>{setTimeout(()=>{d.value="transition",setTimeout(()=>{r.modelValue&&(d.value="")},300)},50)}):d.value="transition scale-90"},{immediate:!0});const p=y(()=>Array.isArray(r.class)?r.class:[r.class]),v=y(()=>r.position==="fixed"),c=y(()=>r.placement==="start"||r.placement==="end"),f={props:r,emit:a,close:l,drawer:o,outsideClickListener:i,escClickListener:m,scrollbarWidth:s,slideTo:u,animationClassName:d,customClassList:p,isFixed:v,isPlacementX:c};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}}),fe=["open","data-drawer"],me={class:"relative h-full"},ve=B("i",{class:"i-close text-base-400 hover:text-base-600 m-0 text-3xl"},null,-1),pe={key:0,class:"fixed left-0 top-0 z-30 h-screen w-screen bg-black/50","data-drawer-backdrop":""};function he(e,n,t,r,a,l){const o=ee("Fade");return b(),T(o,{slide:r.slideTo,speed:"slow","is-floating":""},{default:_(()=>[t.modelValue?le((b(),F("dialog",{key:0,ref:"drawer",class:D(["z-40 w-screen p-0",[t.position,r.isPlacementX?"m-0":"mx-auto",r.isPlacementX&&!t.maxWidth?"max-w-sm":null,r.isFixed?`top-0 ${r.isPlacementX?"h-screen":"max-h-screen"}`:null,r.isFixed&&t.placement!=="end"?"left-0":null,r.isFixed&&t.placement==="end"?"left-auto right-0":null,r.animationClassName,...r.customClassList]]),style:te({maxWidth:t.maxWidth?`min(${t.maxWidth}, calc(100vw - ${r.scrollbarWidth}px))`:r.isPlacementX?void 0:`calc(100vw - ${r.scrollbarWidth}px)`}),open:t.modelValue,"data-drawer":t.placement},[B("div",me,[t.hasCloseButton?(b(),F("button",{key:0,type:"button","aria-label":"Fechar",onClick:Z(r.close,["prevent"]),class:D(["absolute top-2 z-30 rounded",t.placement==="end"?"left-2":"right-2"]),"data-drawer-close":""},[j(e.$slots,"close",{},()=>[ve])],2)):E("",!0),j(e.$slots,"default")]),t.backdropTarget?(b(),T(ne,{key:0,to:t.backdropTarget},[re(o,null,{default:_(()=>[t.modelValue&&!t.isHidden?(b(),F("div",pe)):E("",!0)]),_:1})],8,["to"])):E("",!0)],14,fe)),[[J,!t.isHidden]]):E("",!0)]),_:3},8,["slide"])}const Ge=Q(de,[["render",he]]);let we=0;function ge(){return++we}function qe(){return ge()}function g(e){var n;if(e==null||e.value==null)return null;let t=(n=e.value.$el)!=null?n:e.value;return t instanceof Node?t:null}function L(e,n,...t){if(e in n){let a=n[e];return typeof a=="function"?a(...t):a}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var be=Object.defineProperty,ye=(e,n,t)=>n in e?be(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,C=(e,n,t)=>(ye(e,typeof n!="symbol"?n+"":n,t),t);let Ee=class{constructor(){C(this,"current",this.detect()),C(this,"currentId",0)}set(n){this.current!==n&&(this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},O=new Ee;function R(e){if(O.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=g(e);if(n)return n.ownerDocument}return document}let S=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var xe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(xe||{}),Fe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Fe||{}),Ne=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ne||{});function U(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(S)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var X=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X||{});function z(e,n=0){var t;return e===((t=R(e))==null?void 0:t.body)?!1:L(n,{0(){return e.matches(S)},1(){let r=e;for(;r!==null;){if(r.matches(S))return!0;r=r.parentElement}return!1}})}function Qe(e){let n=R(e);W(()=>{n&&!z(n.activeElement,0)&&ke(e)})}var Se=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Se||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ke(e){e?.focus({preventScroll:!0})}let Le=["textarea","input"].join(",");function Oe(e){var n,t;return(t=(n=e?.matches)==null?void 0:n.call(e,Le))!=null?t:!1}function Pe(e,n=t=>t){return e.slice().sort((t,r)=>{let a=n(t),l=n(r);if(a===null||l===null)return 0;let o=a.compareDocumentPosition(l);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ze(e,n){return Ae(U(),n,{relativeTo:e})}function Ae(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:a=[]}={}){var l;let o=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?l:document,i=Array.isArray(e)?t?Pe(e):e:U(e);a.length>0&&i.length>1&&(i=i.filter(c=>!a.includes(c))),r=r??o.activeElement;let m=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,i.indexOf(r))-1;if(n&4)return Math.max(0,i.indexOf(r))+1;if(n&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=n&32?{preventScroll:!0}:{},d=0,p=i.length,v;do{if(d>=p||d+p<=0)return 0;let c=s+d;if(n&16)c=(c+p)%p;else{if(c<0)return 3;if(c>=p)return 1}v=i[c],v?.focus(u),d+=m}while(v!==o.activeElement);return n&6&&Oe(v)&&v.select(),2}function Te(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function _e(){return/Android/gi.test(window.navigator.userAgent)}function De(){return Te()||_e()}function x(e,n,t){O.isServer||k(r=>{document.addEventListener(e,n,t),r(()=>document.removeEventListener(e,n,t))})}function je(e,n,t){O.isServer||k(r=>{window.addEventListener(e,n,t),r(()=>window.removeEventListener(e,n,t))})}function Je(e,n,t=y(()=>!0)){function r(l,o){if(!t.value||l.defaultPrevented)return;let i=o(l);if(i===null||!i.getRootNode().contains(i))return;let m=function s(u){return typeof u=="function"?s(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let s of m){if(s===null)continue;let u=s instanceof HTMLElement?s:g(s);if(u!=null&&u.contains(i)||l.composed&&l.composedPath().includes(u))return}return!z(i,X.Loose)&&i.tabIndex!==-1&&l.preventDefault(),n(l,i)}let a=w(null);x("pointerdown",l=>{var o,i;t.value&&(a.value=((i=(o=l.composedPath)==null?void 0:o.call(l))==null?void 0:i[0])||l.target)},!0),x("mousedown",l=>{var o,i;t.value&&(a.value=((i=(o=l.composedPath)==null?void 0:o.call(l))==null?void 0:i[0])||l.target)},!0),x("click",l=>{De()||a.value&&(r(l,()=>a.value),a.value=null)},!0),x("touchend",l=>r(l,()=>l.target instanceof HTMLElement?l.target:null),!0),je("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function M(e,n){if(e)return e;let t=n??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function et(e,n){let t=w(M(e.value.type,e.value.as));return ae(()=>{t.value=M(e.value.type,e.value.as)}),k(()=>{var r;t.value||g(n)&&g(n)instanceof HTMLButtonElement&&!((r=g(n))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function I(e){return[e.screenX,e.screenY]}function tt(){let e=w([-1,-1]);return{wasMoved(n){let t=I(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=I(n)}}}var Ce=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ce||{}),Me=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Me||{});function Ie({visible:e=!0,features:n=0,ourProps:t,theirProps:r,...a}){var l;let o=G(r,t),i=Object.assign(a,{props:o});if(e||n&2&&o.static)return N(i);if(n&1){let m=(l=o.unmount)==null||l?0:1;return L(m,{0(){return null},1(){return N({...a,props:{...o,hidden:!0,style:{display:"none"}}})}})}return N(i)}function N({props:e,attrs:n,slots:t,slot:r,name:a}){var l,o;let{as:i,...m}=He(e,["unmount","static"]),s=(l=t.default)==null?void 0:l.call(t,r),u={};if(r){let d=!1,p=[];for(let[v,c]of Object.entries(r))typeof c=="boolean"&&(d=!0),c===!0&&p.push(v);d&&(u["data-headlessui-state"]=p.join(" "))}if(i==="template"){if(s=K(s??[]),Object.keys(m).length>0||Object.keys(n).length>0){let[d,...p]=s??[];if(!$e(d)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(m).concat(Object.keys(n)).map(f=>f.trim()).filter((f,h,Y)=>Y.indexOf(f)===h).sort((f,h)=>f.localeCompare(h)).map(f=>` - ${f}`).join(`
2
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
3
+ `)].join(`
4
+ `));let v=G((o=d.props)!=null?o:{},m,u),c=oe(d,v,!0);for(let f in v)f.startsWith("on")&&(c.props||(c.props={}),c.props[f]=v[f]);return c}return Array.isArray(s)&&s.length===1?s[0]:s}return ie(i,Object.assign({},m,u),{default:()=>s})}function K(e){return e.flatMap(n=>n.type===se?K(n.children):[n])}function G(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let a in r)a.startsWith("on")&&typeof r[a]=="function"?(t[a]!=null||(t[a]=[]),t[a].push(r[a])):n[a]=r[a];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(n,{[r](a,...l){let o=t[r];for(let i of o){if(a instanceof Event&&a.defaultPrevented)return;i(a,...l)}}});return n}function nt(e){let n=Object.assign({},e);for(let t in n)n[t]===void 0&&delete n[t];return n}function He(e,n=[]){let t=Object.assign({},e);for(let r of n)r in t&&delete t[r];return t}function $e(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var Ve=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ve||{});let rt=V({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:n,attrs:t}){return()=>{var r;let{features:a,...l}=e,o={"aria-hidden":(a&2)===2?!0:(r=l["aria-hidden"])!=null?r:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return Ie({ourProps:o,theirProps:l,slot:{},attrs:t,slots:n,name:"Hidden"})}}}),q=Symbol("Context");var We=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(We||{});function lt(){return ue(q,null)}function at(e){ce(q,e)}var Be=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Be||{});function Re(e){throw new Error("Unexpected object: "+e)}var Ue=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ue||{});function ot(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),a=r??-1;switch(e.focus){case 0:{for(let l=0;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 1:{a===-1&&(a=t.length);for(let l=a-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 2:{for(let l=a+1;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 3:{for(let l=t.length-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 4:{for(let l=0;l<t.length;++l)if(n.resolveId(t[l],l,t)===e.id)return l;return r}case 5:return null;default:Re(e)}}let H=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function $(e){var n,t;let r=(n=e.innerText)!=null?n:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return r;let l=!1;for(let i of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),l=!0;let o=l?(t=a.innerText)!=null?t:"":r;return H.test(o)&&(o=o.replace(H,"")),o}function Xe(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(a=>{let l=document.getElementById(a);if(l){let o=l.getAttribute("aria-label");return typeof o=="string"?o.trim():$(l).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return $(e).trim()}function it(e){let n=w(""),t=w("");return()=>{let r=g(e);if(!r)return"";let a=r.innerText;if(n.value===a)return t.value;let l=Xe(r).trim().toLowerCase();return n.value=a,t.value=l,l}}export{Ie as A,Ge as D,nt as E,Ce as N,Pe as O,Ae as P,He as T,Qe as _,z as a,rt as b,Ue as c,qe as d,et as e,ot as f,tt as g,X as h,We as i,Be as j,R as k,lt as l,O as m,je as n,g as o,it as p,xe as q,U as r,Ve as s,at as t,L as u,Ze as v,Je as w,Fe as x};
@@ -1,5 +1,5 @@
1
+ import { u as parseProduct, _ as _export_sfc, v as removeCartItem, Q as QuantitySelector, w as Prices, x as freeShippingFromValue, y as shoppingCart, z as totalItems, C as CheckoutLink } from './pages/__fI3NeWvy.mjs';
1
2
  import { computed, useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, openBlock, createBlock, createCommentVNode, createVNode, toDisplayString, createTextVNode } from 'vue';
2
- import { p as parseProduct, _ as _export_sfc, r as removeCartItem, Q as QuantitySelector, k as Prices, m as freeShippingFromValue, n as shoppingCart, t as totalItems, C as CheckoutLink } from './pages/__cEcxuEWe.mjs';
3
3
  import { name, img } from '@ecomplus/utils';
4
4
  import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderList } from 'vue/server-renderer';
5
5
 
@@ -1,6 +1,6 @@
1
+ import { q as clearAccents, S as SearchEngine, s as searchHistory, _ as _export_sfc, r as getSearchUrl, t as ProductShelf } from './pages/__fI3NeWvy.mjs';
1
2
  import { ref, watch, toRef, defineComponent, resolveComponent, mergeProps, withCtx, createTextVNode, toDisplayString, openBlock, createBlock, Fragment, renderList, createVNode, createCommentVNode, useSSRContext } from 'vue';
2
3
  import Wade from 'wade';
3
- import { h as clearAccents, S as SearchEngine, s as searchHistory, _ as _export_sfc, j as getSearchUrl, P as ProductShelf } from './pages/__cEcxuEWe.mjs';
4
4
  import { ssrRenderAttrs, ssrRenderComponent, ssrRenderClass, ssrRenderList, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer';
5
5
 
6
6
  const wadeDocs = [];
@@ -227,12 +227,12 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
227
227
  if (!$setup.isFetching && ($setup.searchHistory.length || $setup.productCount > $setup.products.length)) {
228
228
  _push2(`<section class="bg-base-100/80 grid grid-cols-1 items-center gap-4 p-4 backdrop-blur-md md:grid-cols-2 md:rounded-b lg:mt-5 lg:grid-cols-3 lg:rounded"${_scopeId}><div class="flex items-center justify-end gap-4 md:order-2"${_scopeId}>`);
229
229
  if ($setup.productCount > 1) {
230
- _push2(`<p class="text-base-900 text-sm lowercase"${_scopeId}><strong${_scopeId}>${ssrInterpolate($setup.productCount)}</strong> ${ssrInterpolate("Itens encontrados")}</p>`);
230
+ _push2(`<p class="text-base-900 text-right text-sm lowercase"${_scopeId}><strong${_scopeId}>${ssrInterpolate($setup.productCount)}</strong> ${ssrInterpolate("Itens encontrados")}</p>`);
231
231
  } else {
232
232
  _push2(`<!---->`);
233
233
  }
234
234
  if ($setup.productCount > $setup.products.length) {
235
- _push2(`<a${ssrRenderAttr("href", $setup.getSearchUrl($props.term))} class="ui-btn ui-btn-primary w-auto text-center"${_scopeId}>${ssrInterpolate("Ver todos")}</a>`);
235
+ _push2(`<a${ssrRenderAttr("href", $setup.getSearchUrl($props.term))} class="ui-btn ui-btn-primary w-auto whitespace-nowrap text-center"${_scopeId}>${ssrInterpolate("Ver todos")}</a>`);
236
236
  } else {
237
237
  _push2(`<!---->`);
238
238
  }
@@ -291,7 +291,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
291
291
  createVNode("div", { class: "flex items-center justify-end gap-4 md:order-2" }, [
292
292
  $setup.productCount > 1 ? (openBlock(), createBlock("p", {
293
293
  key: 0,
294
- class: "text-base-900 text-sm lowercase"
294
+ class: "text-base-900 text-right text-sm lowercase"
295
295
  }, [
296
296
  createVNode("strong", null, toDisplayString($setup.productCount), 1),
297
297
  createTextVNode(" " + toDisplayString("Itens encontrados"))
@@ -299,7 +299,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
299
299
  $setup.productCount > $setup.products.length ? (openBlock(), createBlock("a", {
300
300
  key: 1,
301
301
  href: $setup.getSearchUrl($props.term),
302
- class: "ui-btn ui-btn-primary w-auto text-center"
302
+ class: "ui-btn ui-btn-primary w-auto whitespace-nowrap text-center"
303
303
  }, toDisplayString("Ver todos"), 8, ["href"])) : createCommentVNode("", true)
304
304
  ]),
305
305
  createVNode("div", { class: "lg:col-span-2" }, [
@@ -1,6 +1,6 @@
1
1
  export { renderers } from '../renderers.mjs';
2
2
  export { onRequest } from '../_empty-middleware.mjs';
3
3
 
4
- const page = () => import('./pages/__cEcxuEWe.mjs').then(n => n.o);
4
+ const page = () => import('./pages/__fI3NeWvy.mjs').then(n => n.A);
5
5
 
6
6
  export { page };
@@ -1,6 +1,6 @@
1
1
  export { renderers } from '../renderers.mjs';
2
2
  export { onRequest } from '../_empty-middleware.mjs';
3
3
 
4
- const page = () => import('./pages/account_WliDuQOB.mjs');
4
+ const page = () => import('./pages/_page__Piz8geXW.mjs');
5
5
 
6
6
  export { page };
@@ -1,6 +1,6 @@
1
1
  export { renderers } from '../renderers.mjs';
2
2
  export { onRequest } from '../_empty-middleware.mjs';
3
3
 
4
- const page = () => import('./pages/~fallback_TL5hPXF_.mjs');
4
+ const page = () => import('./pages/account_6pD7OYw-.mjs');
5
5
 
6
6
  export { page };
@@ -1,5 +1,5 @@
1
1
  import { isRemotePath, joinPaths } from '@astrojs/internal-helpers/path';
2
- import { A as AstroError$1, E as ExpectedImage, L as LocalImageUsedWrongly, M as MissingImageDimension, U as UnsupportedImageFormat, I as IncompatibleDescriptorOptions, a as UnsupportedImageConversion, b as MissingSharp } from '../astro_PpArQAsY.mjs';
2
+ import { A as AstroError$1, E as ExpectedImage, L as LocalImageUsedWrongly, M as MissingImageDimension, U as UnsupportedImageFormat, I as IncompatibleDescriptorOptions, a as UnsupportedImageConversion, b as MissingSharp } from '../astro_H-6uiAAG.mjs';
3
3
 
4
4
  const InvalidImageService = {
5
5
  name: "InvalidImageService",
@@ -48,9 +48,9 @@ class AstroError extends Error {
48
48
  hint;
49
49
  frame;
50
50
  type = "AstroError";
51
- constructor(props, ...params) {
52
- super(...params);
51
+ constructor(props, options) {
53
52
  const { name, title, message, stack, location, hint, frame } = props;
53
+ super(message, options);
54
54
  this.title = title;
55
55
  this.name = name;
56
56
  if (message)
@@ -424,13 +424,17 @@ const sharpService = {
424
424
  parseURL: baseService.parseURL,
425
425
  getHTMLAttributes: baseService.getHTMLAttributes,
426
426
  getSrcSet: baseService.getSrcSet,
427
- async transform(inputBuffer, transformOptions) {
427
+ async transform(inputBuffer, transformOptions, config) {
428
428
  if (!sharp)
429
429
  sharp = await loadSharp();
430
430
  const transform = transformOptions;
431
431
  if (transform.format === "svg")
432
432
  return { data: inputBuffer, format: "svg" };
433
- let result = sharp(inputBuffer, { failOnError: false, pages: -1 });
433
+ const result = sharp(inputBuffer, {
434
+ failOnError: false,
435
+ pages: -1,
436
+ limitInputPixels: config.service.config.limitInputPixels
437
+ });
434
438
  result.rotate();
435
439
  if (transform.height && !transform.width) {
436
440
  result.resize({ height: Math.round(transform.height) });