cloudcommerce 2.10.2 → 2.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/.vscode/settings.json +3 -3
  2. package/CHANGELOG.md +15 -0
  3. package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
  4. package/ecomplus-stores/barradoce/functions/ssr/content/pages/products.json +1 -4
  5. package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
  6. package/ecomplus-stores/barradoce/functions/ssr/{tailwind.config.cjs → tailwind.config.js} +3 -3
  7. package/ecomplus-stores/barradoce/functions/ssr/uno.config.js +4 -0
  8. package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
  9. package/ecomplus-stores/barradoce/package.json +2 -2
  10. package/ecomplus-stores/barradoce/tailwind.config.js +8 -0
  11. package/package.json +4 -4
  12. package/packages/api/package.json +1 -1
  13. package/packages/apps/affiliate-program/package.json +2 -2
  14. package/packages/apps/correios/package.json +2 -2
  15. package/packages/apps/custom-payment/package.json +1 -1
  16. package/packages/apps/custom-shipping/package.json +1 -1
  17. package/packages/apps/datafrete/package.json +3 -3
  18. package/packages/apps/discounts/package.json +1 -1
  19. package/packages/apps/emails/package.json +3 -3
  20. package/packages/apps/fb-conversions/package.json +3 -3
  21. package/packages/apps/flash-courier/package.json +2 -2
  22. package/packages/apps/frenet/package.json +3 -3
  23. package/packages/apps/galaxpay/package.json +3 -3
  24. package/packages/apps/google-analytics/package.json +3 -3
  25. package/packages/apps/jadlog/package.json +1 -1
  26. package/packages/apps/loyalty-points/package.json +1 -1
  27. package/packages/apps/mandae/package.json +2 -2
  28. package/packages/apps/melhor-envio/package.json +3 -3
  29. package/packages/apps/mercadopago/package.json +3 -3
  30. package/packages/apps/pagarme/package.json +3 -3
  31. package/packages/apps/pagarme-v5/package.json +2 -2
  32. package/packages/apps/paghiper/package.json +3 -3
  33. package/packages/apps/pix/package.json +3 -3
  34. package/packages/apps/tiny-erp/package.json +3 -3
  35. package/packages/apps/webhooks/package.json +3 -3
  36. package/packages/cli/package.json +1 -1
  37. package/packages/config/package.json +1 -1
  38. package/packages/emails/package.json +1 -1
  39. package/packages/eslint/base.eslintrc.cjs +1 -0
  40. package/packages/eslint/package.json +4 -4
  41. package/packages/events/package.json +3 -3
  42. package/packages/feeds/package.json +2 -2
  43. package/packages/firebase/package.json +3 -3
  44. package/packages/i18n/package.json +1 -1
  45. package/packages/modules/package.json +3 -3
  46. package/packages/passport/package.json +3 -3
  47. package/packages/ssr/package.json +3 -3
  48. package/packages/storefront/config/{storefront.tailwind.cjs → storefront.tailwind.mjs} +19 -19
  49. package/packages/storefront/config/{storefront.unocss.cjs → storefront.unocss.mjs} +9 -9
  50. package/packages/storefront/dist/client/_astro/AccountPage.Cf0WE6GF.js +1 -0
  51. package/packages/storefront/dist/client/_astro/CartSidebar.DAvJKL2c.js +1 -0
  52. package/packages/storefront/dist/client/_astro/HeroSlider.DyjSOy4Q.js +1 -0
  53. package/packages/storefront/dist/client/_astro/PitchBar.CEGsee2q.js +1 -0
  54. package/packages/storefront/dist/client/_astro/Prices.9RhV7hCY.js +1 -0
  55. package/packages/storefront/dist/client/_astro/ProductDetails.BpZtnS8j.js +7 -0
  56. package/packages/storefront/dist/client/_astro/ProductShelf.C0TU_sRb.js +1 -0
  57. package/packages/storefront/dist/client/_astro/SearchModal.DWNSfxML.js +1 -0
  58. package/packages/storefront/dist/client/_astro/SearchShowcase.CUkbXIRk.js +1 -0
  59. package/packages/storefront/dist/client/_astro/ShippingCalculator.DZSCK4xv.js +1 -0
  60. package/packages/storefront/dist/client/_astro/ShopHeader.D7qqQxFD.js +7 -0
  61. package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.3R8ooc_r.js → _plugin-vue_export-helper.6K9uDcVo.js} +1 -1
  62. package/packages/storefront/dist/client/_astro/_slug_.HhgCFKHv.css +1 -0
  63. package/packages/storefront/dist/client/_astro/client.D_V8TfA5.js +1 -0
  64. package/packages/storefront/dist/client/_astro/customer-session.Cctko5_9.js +7 -0
  65. package/packages/storefront/dist/client/_astro/{firebase-app.CBckq0Sj.js → firebase-app.CmI1zl7o.js} +1 -1
  66. package/packages/storefront/dist/client/_astro/{format-money.vLicYTv9.js → format-money.D19_eJVX.js} +1 -1
  67. package/packages/storefront/dist/client/_astro/{grid-title.CxNZApGL.js → grid-title.CZdq2sDS.js} +1 -1
  68. package/packages/storefront/dist/client/_astro/hoisted.BeKMioW4.js +1 -0
  69. package/packages/storefront/dist/client/_astro/hoisted.Bf1gCkSN.js +1 -0
  70. package/packages/storefront/dist/client/_astro/hoisted.CSjieYcR.js +8 -0
  71. package/packages/storefront/dist/client/_astro/{i18n.BE5r_SIU.js → i18n.DPcLqMFO.js} +1 -1
  72. package/packages/storefront/dist/client/_astro/{img.CB-F9VLo.js → img.Be85e5da.js} +1 -1
  73. package/packages/storefront/dist/client/_astro/{index-bea2a320.CHELEM8n.js → index-a8cf6c8f.k99a-gIB.js} +99 -99
  74. package/packages/storefront/dist/client/_astro/index.BCNoXz_Z.js +1 -0
  75. package/packages/storefront/dist/client/_astro/index.BgtOIB20.js +1 -0
  76. package/packages/storefront/dist/client/_astro/index.DlxZwqDP.js +1 -0
  77. package/packages/storefront/dist/client/_astro/modules-info.BswYf_-7.js +1 -0
  78. package/packages/storefront/dist/client/_astro/name.Dll7Wwmg.js +1 -0
  79. package/packages/storefront/dist/client/_astro/page.FdSlRisw.js +1 -0
  80. package/packages/storefront/dist/client/_astro/sf-utils.C9ygvYIB.js +13 -0
  81. package/packages/storefront/dist/client/_astro/shopping-cart.Cqc6p5UR.js +1 -0
  82. package/packages/storefront/dist/client/_astro/use-analytics.bP3a5cR0.js +1 -0
  83. package/packages/storefront/dist/client/_astro/{use-cms-preview.CPGTKut8.js → use-cms-preview.BxKK4a1X.js} +1 -1
  84. package/packages/storefront/dist/client/_astro/use-product-card.Cj9Q-Y1A.js +1 -0
  85. package/packages/storefront/dist/client/_astro/{use-text-value.D4Rw7N4D.js → use-text-value.DT0v9Yj_.js} +2 -2
  86. package/packages/storefront/dist/server/_astro-internal_middleware.mjs +4 -0
  87. package/packages/storefront/dist/server/chunks/404_jTV5wvby.mjs +5 -0
  88. package/packages/storefront/dist/server/chunks/{CartSidebar_lUckG0fs.mjs → CartSidebar_CV9qwGNE.mjs} +2 -1
  89. package/packages/storefront/dist/server/chunks/{SearchModal_B2f22Mff.mjs → SearchModal_Cw1ECnXI.mjs} +37 -15
  90. package/packages/storefront/dist/server/chunks/_.._k1NruPDv.mjs +5 -0
  91. package/packages/storefront/dist/server/chunks/_astro-internal_middleware_DIG56BhA.mjs +40 -0
  92. package/packages/storefront/dist/server/chunks/{_page__Ex4FhYrc.mjs → _page__BKNX3RH7.mjs} +1 -1
  93. package/packages/storefront/dist/server/chunks/{account_B7sLjsXD.mjs → account_BZOa6Kmc.mjs} +1 -1
  94. package/packages/storefront/dist/server/chunks/astro/{assets-service_BOyOfKDQ.mjs → assets-service_MW85B416.mjs} +5 -2
  95. package/packages/storefront/dist/server/chunks/{astro_B5LBy7PI.mjs → astro_8KdHu_Gf.mjs} +83 -113
  96. package/packages/storefront/dist/server/chunks/{index_C2hkTn-w.mjs → index_CZ6FSUEb.mjs} +1 -1
  97. package/packages/storefront/dist/server/chunks/{index_BOh755yP.mjs → index_D1o9pXka.mjs} +1 -1
  98. package/packages/storefront/dist/server/chunks/{node_DavlI8UF.mjs → node_Khrf-0bH.mjs} +1 -1
  99. package/packages/storefront/dist/server/chunks/pages/{__RXg_hYeF.mjs → 404_BPSxJtl3.mjs} +675 -4955
  100. package/packages/storefront/dist/server/chunks/pages/__ByRpsTnC.mjs +4630 -0
  101. package/packages/storefront/dist/server/chunks/pages/{_page__Dyte93f2.mjs → _page__BasreLue.mjs} +32 -9
  102. package/packages/storefront/dist/server/chunks/pages/{account_C66y6_Y9.mjs → account_MZBvNAyZ.mjs} +2 -2
  103. package/packages/storefront/dist/server/chunks/pages/{index_EO1hhrt8.mjs → index_CV2ET14h.mjs} +24 -9
  104. package/packages/storefront/dist/server/chunks/pages/{node_hc25rqYt.mjs → node_1tKTIKG-.mjs} +145 -11
  105. package/packages/storefront/dist/server/chunks/pages/{~fallback_-K3esUV3.mjs → ~fallback_BVYzgZ5p.mjs} +2 -28
  106. package/packages/storefront/dist/server/chunks/{~fallback_DQ6yB81s.mjs → ~fallback_xH9bJF7E.mjs} +1 -1
  107. package/packages/storefront/dist/server/entry.mjs +469 -507
  108. package/packages/storefront/dist/server/manifest_S9lE9v48.mjs +206 -0
  109. package/packages/storefront/dist/server/middleware.mjs +4 -0
  110. package/packages/storefront/dist/server/renderers.mjs +39 -50
  111. package/packages/storefront/package.json +7 -7
  112. package/packages/storefront/src/decap-cms/get-cms-config.ts +0 -1
  113. package/packages/storefront/src/images/picture-base.ts +1 -1
  114. package/packages/storefront/src/lib/assets/decap-cms.css +13 -3
  115. package/packages/storefront/src/lib/components/Picture.astro +1 -1
  116. package/packages/storefront/src/lib/composables/use-product-shelf.ts +1 -1
  117. package/packages/storefront/tailwind.config.js +3 -0
  118. package/packages/storefront/uno.config.js +3 -0
  119. package/packages/test-base/package.json +1 -1
  120. package/packages/types/package.json +1 -1
  121. package/tailwind.config.js +6 -0
  122. package/ecomplus-stores/barradoce/functions/ssr/uno.config.cjs +0 -5
  123. package/ecomplus-stores/barradoce/tailwind.config.cjs +0 -7
  124. package/packages/storefront/dist/client/_astro/AccountPage.Cq0jrJE5.js +0 -1
  125. package/packages/storefront/dist/client/_astro/CartSidebar.DkX2BE1w.js +0 -1
  126. package/packages/storefront/dist/client/_astro/HeroSlider.CZujn8cU.js +0 -1
  127. package/packages/storefront/dist/client/_astro/PitchBar.DhcSEQPV.js +0 -1
  128. package/packages/storefront/dist/client/_astro/Prices.D1uItqV5.js +0 -1
  129. package/packages/storefront/dist/client/_astro/ProductDetails.DDNMc2oj.js +0 -7
  130. package/packages/storefront/dist/client/_astro/ProductShelf.BwRDTU-V.js +0 -1
  131. package/packages/storefront/dist/client/_astro/SearchModal.DgrtGsIu.js +0 -1
  132. package/packages/storefront/dist/client/_astro/SearchShowcase.DggdcmcI.js +0 -1
  133. package/packages/storefront/dist/client/_astro/ShippingCalculator.B5JIh5xw.js +0 -1
  134. package/packages/storefront/dist/client/_astro/ShopHeader.CIsQLhMR.js +0 -7
  135. package/packages/storefront/dist/client/_astro/_slug_.CnXAH2gj.css +0 -1
  136. package/packages/storefront/dist/client/_astro/client.mwowSQrH.js +0 -1
  137. package/packages/storefront/dist/client/_astro/customer-session.BAjMMoBA.js +0 -7
  138. package/packages/storefront/dist/client/_astro/hoisted.B8Lw6O9a.js +0 -1
  139. package/packages/storefront/dist/client/_astro/hoisted.D4m7OTKi.js +0 -8
  140. package/packages/storefront/dist/client/_astro/hoisted.DSAg3dYh.js +0 -1
  141. package/packages/storefront/dist/client/_astro/hoisted.D_dlmSy5.js +0 -1
  142. package/packages/storefront/dist/client/_astro/index.BAyyMfaO.js +0 -1
  143. package/packages/storefront/dist/client/_astro/index.CTTHpJlV.js +0 -1
  144. package/packages/storefront/dist/client/_astro/modules-info.C6KJuGeB.js +0 -1
  145. package/packages/storefront/dist/client/_astro/name.CIPngEFN.js +0 -1
  146. package/packages/storefront/dist/client/_astro/server-data.CUHTES8a.js +0 -1
  147. package/packages/storefront/dist/client/_astro/sf-utils.xmJHVMAX.js +0 -13
  148. package/packages/storefront/dist/client/_astro/shopping-cart.DGvCZWRZ.js +0 -1
  149. package/packages/storefront/dist/client/_astro/use-analytics.BWhF_fCv.js +0 -1
  150. package/packages/storefront/dist/client/_astro/use-product-card.C-RbCwna.js +0 -1
  151. package/packages/storefront/dist/server/_noop-middleware.mjs +0 -3
  152. package/packages/storefront/dist/server/chunks/_.._CvgSOb3Z.mjs +0 -5
  153. package/packages/storefront/dist/server/manifest_bZVxjk3o.mjs +0 -201
  154. package/packages/storefront/tailwind.config.cjs +0 -3
  155. package/packages/storefront/uno.config.cjs +0 -3
  156. package/tailwind.config.cjs +0 -5
@@ -0,0 +1 @@
1
+ import{R as x,_ as D,w as C,S as A,a as b,T,c as W,o as _,U as R,V as k,g as I,W as M,X as V}from"./sf-utils.C9ygvYIB.js";x.$ecomConfig||D;function z(e){return M()?(V(e),!0):!1}function H(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 y=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const J=e=>e!=null,E=Object.prototype.toString,K=e=>E.call(e)==="[object Object]",f=()=>{},Q=G();function G(){var e,t;return y&&((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 w(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 F=e=>e();function O(e,t={}){let n,o,i=f;const r=s=>{clearTimeout(s),i(),i=f};return s=>{const u=m(e),a=m(t.maxWait);return n&&r(n),u<=0||a!==void 0&&a<=0?(o&&(r(o),o=null),Promise.resolve(s())):new Promise((c,v)=>{i=t.rejectOnCancel?v:c,a&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,c(s())},a)),n=setTimeout(()=>{o&&r(o),o=null,c(s())},u)})}}function L(...e){let t=0,n,o=!0,i=f,r,l,s,u,a;!k(e[0])&&typeof e[0]=="object"?{delay:l,trailing:s=!0,leading:u=!0,rejectOnCancel:a=!1}=e[0]:[l,s=!0,u=!0,a=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,i(),i=f)};return S=>{const d=m(l),h=Date.now()-t,p=()=>r=S();return c(),d<=0?(t=Date.now(),p()):(h>d&&(u||!o)?(t=Date.now(),p()):s&&(r=new Promise((g,j)=>{i=a?j:g,n=setTimeout(()=>{t=Date.now(),o=!0,g(p()),c()},Math.max(0,d-h))})),!u&&!n&&(n=setTimeout(()=>o=!0,d)),o=!1,r)}}function U(e=F){const t=b(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:T(t),pause:n,resume:o,eventFilter:i}}function N(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const X=/-(\w)/g,Y=N(e=>e.replace(X,(t,n)=>n?n.toUpperCase():""));function Z(e,t=!1,n="Timeout"){return new Promise((o,i)=>{setTimeout(t?()=>i(n):o,e)})}function $(e){return e||I()}function ee(e,t=200,n={}){return w(O(t,n),e)}function te(e,t=200,n=!1,o=!0,i=!1){return w(L(t,n,o,i),e)}function P(e,t,n={}){const{eventFilter:o=F,...i}=n;return C(e,w(o,t),i)}function ne(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:l,resume:s,isActive:u}=U(o);return{stop:P(e,t,{...i,eventFilter:r}),pause:l,resume:s,isActive:u}}function oe(e,t=!0,n){$()?_(e,n):t?e():R(e)}function q(e,t,n={}){const{immediate:o=!0}=n,i=b(!1);let r=null;function l(){r&&(clearTimeout(r),r=null)}function s(){i.value=!1,l()}function u(...a){l(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...a)},m(t))}return o&&(i.value=!0,y&&u()),z(s),{isPending:T(i),start:u,stop:s}}function ie(e=1e3,t={}){const{controls:n=!1,callback:o}=t,i=q(o??f,e,t),r=W(()=>!i.isPending.value);return n?{ready:r,...i}:r}function re(e,t,n={}){const{debounce:o=0,maxWait:i=void 0,...r}=n;return P(e,t,{...r,eventFilter:O(o,{maxWait:i})})}export{K as a,oe as b,Y as c,Q as d,ee as e,z as f,J as g,re as h,y as i,ie as j,H as m,f as n,Z as p,m as t,te as u,ne as w};
@@ -0,0 +1 @@
1
+ import{m as q,w as z,i as Q,n as O,a as Y,t as A,c as G,u as J,b as Z,d as ee,e as te,f as B,g as ne}from"./index.BCNoXz_Z.js";import{s as oe,r as C,w as X,d as U,a as M,c as R,o as se,g as re}from"./sf-utils.C9ygvYIB.js";function de(e={}){const{inheritAttrs:r=!0}=e,n=oe(),a=U({setup(h,{slots:t}){return()=>{n.value=t.default}}}),y=U({inheritAttrs:r,setup(h,{attrs:t,slots:i}){return()=>{var v;n.value;const c=(v=n.value)==null?void 0:v.call(n,{...le(t),$slots:i});return r&&c?.length===1?c[0]:c}}});return q({define:a,reuse:y},[a,y])}function le(e){const r={};for(const n in e)r[G(n)]=e[n];return r}function _(e){var r;const n=A(e);return(r=n?.$el)!=null?r:n}const x=Q?window:void 0;function T(...e){let r,n,a,y;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,a,y]=e,r=x):[r,n,a,y]=e,!r)return O;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const h=[],t=()=>{h.forEach(p=>p()),h.length=0},i=(p,m,o,f)=>(p.addEventListener(m,o,f),()=>p.removeEventListener(m,o,f)),v=X(()=>[_(r),A(y)],([p,m])=>{if(t(),!p)return;const o=Y(m)?{...m}:m;h.push(...n.flatMap(f=>a.map(d=>i(p,f,d,o))))},{immediate:!0,flush:"post"}),c=()=>{v(),t()};return B(c),c}let K=!1;function he(e,r,n={}){const{window:a=x,ignore:y=[],capture:h=!0,detectIframe:t=!1}=n;if(!a)return O;ee&&!K&&(K=!0,Array.from(a.document.body.children).forEach(o=>o.addEventListener("click",O)),a.document.documentElement.addEventListener("click",O));let i=!0;const v=o=>y.some(f=>{if(typeof f=="string")return Array.from(a.document.querySelectorAll(f)).some(d=>d===o.target||o.composedPath().includes(d));{const d=_(f);return d&&(o.target===d||o.composedPath().includes(d))}}),p=[T(a,"click",o=>{const f=_(e);if(!(!f||f===o.target||o.composedPath().includes(f))){if(o.detail===0&&(i=!v(o)),!i){i=!0;return}r(o)}},{passive:!0,capture:h}),T(a,"pointerdown",o=>{const f=_(e);i=!v(o)&&!!(f&&!o.composedPath().includes(f))},{passive:!0}),t&&T(a,"blur",o=>{setTimeout(()=>{var f;const d=_(e);((f=a.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!d?.contains(a.document.activeElement)&&r(o)},0)})].filter(Boolean);return()=>p.forEach(o=>o())}function ae(){const e=M(!1),r=re();return r&&se(()=>{e.value=!0},r),e}function ie(e){const r=ae();return R(()=>(r.value,!!e()))}function me(e,r={}){const{delayEnter:n=0,delayLeave:a=0,window:y=x}=r,h=M(!1);let t;const i=v=>{const c=v?n:a;t&&(clearTimeout(t),t=void 0),c?t=setTimeout(()=>h.value=v,c):h.value=v};return y&&(T(e,"mouseenter",()=>i(!0),{passive:!0}),T(e,"mouseleave",()=>i(!1),{passive:!0})),h}function ue(e,r,n={}){const{root:a,rootMargin:y="0px",threshold:h=.1,window:t=x,immediate:i=!0}=n,v=ie(()=>t&&"IntersectionObserver"in t),c=R(()=>{const d=A(e);return(Array.isArray(d)?d:[d]).map(_).filter(ne)});let p=O;const m=M(i),o=v.value?X(()=>[c.value,_(a),m.value],([d,L])=>{if(p(),!m.value||!d.length)return;const g=new IntersectionObserver(r,{root:_(L),rootMargin:y,threshold:h});d.forEach(l=>l&&g.observe(l)),p=()=>{g.disconnect(),p=O}},{immediate:i,flush:"post"}):O,f=()=>{p(),o(),m.value=!1};return B(f),{isSupported:v,isActive:m,pause(){p(),m.value=!1},resume(){m.value=!0},stop:f}}function ve(e,r={}){const{window:n=x,scrollTarget:a,threshold:y=0}=r,h=M(!1);return ue(e,t=>{let i=h.value,v=0;for(const c of t)c.time>=v&&(v=c.time,i=c.isIntersecting);h.value=i},{root:a,window:n,threshold:y}),h}const N=1;function pe(e,r={}){const{throttle:n=0,idle:a=200,onStop:y=O,onScroll:h=O,offset:t={left:0,right:0,top:0,bottom:0},eventListenerOptions:i={capture:!1,passive:!0},behavior:v="auto",window:c=x,onError:p=u=>{console.error(u)}}=r,m=M(0),o=M(0),f=R({get(){return m.value},set(u){L(u,void 0)}}),d=R({get(){return o.value},set(u){L(void 0,u)}});function L(u,$){var b,P,k;if(!c)return;const S=A(e);S&&((k=S instanceof Document?c.document.body:S)==null||k.scrollTo({top:(b=A($))!=null?b:d.value,left:(P=A(u))!=null?P:f.value,behavior:A(v)}))}const g=M(!1),l=C({left:!0,right:!1,top:!0,bottom:!1}),s=C({left:!1,right:!1,top:!1,bottom:!1}),w=u=>{g.value&&(g.value=!1,s.left=!1,s.right=!1,s.top=!1,s.bottom=!1,y(u))},E=te(w,n+a),D=u=>{var $;if(!c)return;const b=(($=u?.document)==null?void 0:$.documentElement)||u?.documentElement||_(u),{display:P,flexDirection:k}=getComputedStyle(b),S=b.scrollLeft;s.left=S<m.value,s.right=S>m.value;const H=Math.abs(S)<=(t.left||0),W=Math.abs(S)+b.clientWidth>=b.scrollWidth-(t.right||0)-N;P==="flex"&&k==="row-reverse"?(l.left=W,l.right=H):(l.left=H,l.right=W),m.value=S;let I=b.scrollTop;u===c.document&&!I&&(I=c.document.body.scrollTop),s.top=I<o.value,s.bottom=I>o.value;const F=Math.abs(I)<=(t.top||0),j=Math.abs(I)+b.clientHeight>=b.scrollHeight-(t.bottom||0)-N;P==="flex"&&k==="column-reverse"?(l.top=j,l.bottom=F):(l.top=F,l.bottom=j),o.value=I},V=u=>{var $;if(!c)return;const b=($=u.target.documentElement)!=null?$:u.target;D(b),g.value=!0,E(u),h(u)};return T(e,"scroll",n?J(V,n,!0,!1):V,i),Z(()=>{try{const u=A(e);if(!u)return;D(u)}catch(u){p(u)}}),T(e,"scrollend",w,i),{x:f,y:d,isScrolling:g,arrivedState:l,directions:s,measure(){const u=A(e);c&&u&&D(u)}}}function we(e="history",r={}){const{initialValue:n={},removeNullishValues:a=!0,removeFalsyValues:y=!1,write:h=!0,window:t=x}=r;if(!t)return C(n);const i=C({});function v(){if(e==="history")return t.location.search||"";if(e==="hash"){const l=t.location.hash||"",s=l.indexOf("?");return s>0?l.slice(s):""}else return(t.location.hash||"").replace(/^#/,"")}function c(l){const s=l.toString();if(e==="history")return`${s?`?${s}`:""}${t.location.hash||""}`;if(e==="hash-params")return`${t.location.search||""}${s?`#${s}`:""}`;const w=t.location.hash||"#",E=w.indexOf("?");return E>0?`${w.slice(0,E)}${s?`?${s}`:""}`:`${w}${s?`?${s}`:""}`}function p(){return new URLSearchParams(v())}function m(l){const s=new Set(Object.keys(i));for(const w of l.keys()){const E=l.getAll(w);i[w]=E.length>1?E:l.get(w)||"",s.delete(w)}Array.from(s).forEach(w=>delete i[w])}const{pause:o,resume:f}=z(i,()=>{const l=new URLSearchParams("");Object.keys(i).forEach(s=>{const w=i[s];Array.isArray(w)?w.forEach(E=>l.append(s,E)):a&&w==null||y&&!w?l.delete(s):l.set(s,w)}),d(l)},{deep:!0});function d(l,s){o(),s&&m(l),t.history.replaceState(t.history.state,t.document.title,t.location.pathname+c(l)),f()}function L(){h&&d(p(),!0)}T(t,"popstate",L,!1),e!=="history"&&T(t,"hashchange",L,!1);const g=p();return g.keys().next().value?m(g):Object.assign(i,n),i}export{ve as a,me as b,pe as c,de as d,he as o,we as u};
@@ -0,0 +1 @@
1
+ const d=new Set,c=new WeakSet;let f,h,l=!1;function L(e){l||(l=!0,f??=e?.prefetchAll??!1,h??=e?.defaultStrategy??"hover",g(),m(),p(),y())}function g(){for(const e of["touchstart","mousedown"])document.body.addEventListener(e,t=>{i(t.target,"tap")&&s(t.target.href,{with:"fetch",ignoreSlowConnection:!0})},{passive:!0})}function m(){let e;document.body.addEventListener("focusin",o=>{i(o.target,"hover")&&t(o)},{passive:!0}),document.body.addEventListener("focusout",n,{passive:!0}),u(()=>{for(const o of document.getElementsByTagName("a"))c.has(o)||i(o,"hover")&&(c.add(o),o.addEventListener("mouseenter",t,{passive:!0}),o.addEventListener("mouseleave",n,{passive:!0}))});function t(o){const r=o.target.href;e&&clearTimeout(e),e=setTimeout(()=>{s(r,{with:"fetch"})},80)}function n(){e&&(clearTimeout(e),e=0)}}function p(){let e;u(()=>{for(const t of document.getElementsByTagName("a"))c.has(t)||i(t,"viewport")&&(c.add(t),e??=w(),e.observe(t))})}function w(){const e=new WeakMap;return new IntersectionObserver((t,n)=>{for(const o of t){const r=o.target,a=e.get(r);o.isIntersecting?(a&&clearTimeout(a),e.set(r,setTimeout(()=>{n.unobserve(r),e.delete(r),s(r.href,{with:"link"})},300))):a&&(clearTimeout(a),e.delete(r))}})}function y(){u(()=>{for(const e of document.getElementsByTagName("a"))i(e,"load")&&s(e.href,{with:"link"})})}function s(e,t){const n=t?.ignoreSlowConnection??!1;if(!S(e,n))return;if(d.add(e),(t?.with??"link")==="link"){const r=document.createElement("link");r.rel="prefetch",r.setAttribute("href",e),document.head.append(r)}else fetch(e).catch(r=>{console.log(`[astro] Failed to prefetch ${e}`),console.error(r)})}function S(e,t){if(!navigator.onLine||!t&&v())return!1;try{const n=new URL(e,location.href);return location.origin===n.origin&&(location.pathname!==n.pathname||location.search!==n.search)&&!d.has(e)}catch{}return!1}function i(e,t){if(e?.tagName!=="A")return!1;const n=e.dataset.astroPrefetch;return n==="false"?!1:t==="tap"&&(n!=null||f)&&v()?!0:n==null&&f||n===""?t===h:n===t}function v(){if("connection"in navigator){const e=navigator.connection;return e.saveData||/2g/.test(e.effectiveType)}return!1}function u(e){e();let t=!1;document.addEventListener("astro:page-load",()=>{if(!t){t=!0;return}e()})}export{L as i,s as p};
@@ -0,0 +1 @@
1
+ import{l as g,u as h,a as d}from"./afetch.DPLba2tr.js";import{r as b,b as v,c as p}from"./sf-utils.C9ygvYIB.js";import{f as O}from"./format-money.D19_eJVX.js";const I={list_payments:{},calculate_shipping:{},apply_discount:{}},i=b(I);g.then(n=>{Object.assign(i,n)});const S=(n,r)=>{const{hostname:l}=window.location,{domain:o}=globalThis.$storefront.settings,a=l!=="localhost"&&l!=="127.0.0.1"?`https://${o}/_api/modules/`:"/_api/modules/";return d(`${a}${n}`,r)};{const n="MODULES_INFO",r=sessionStorage.getItem(n);if(r)try{const o=JSON.parse(r);o.__timestamp>=Date.now()-1e3*60*5?(delete o.__timestamp,Object.assign(i,o)):sessionStorage.removeItem(n)}catch{sessionStorage.removeItem(n)}v(()=>{const o=[];["list_payments","calculate_shipping"].forEach(a=>{Object.keys(i[a]).length||o.push({modName:a})}),Object.keys(h).length&&o.push({modName:"apply_discount",reqOptions:{method:"POST",body:{utm:h}}}),o.forEach(({modName:a,reqOptions:u})=>{S(a,u).then(async _=>{if(_.ok){const s={};i[a]=s;const{result:f}=await _.json();Array.isArray(f)&&f.forEach(({error:y,response:c})=>{if(!y){let t,e;switch(a){case"calculate_shipping":t="free_shipping_from_value",e=c[t],typeof e=="number"&&(s[t]===void 0||e<s[t])&&(s[t]=e);break;case"list_payments":t="installments_option",e=c[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=c[t],e&&(!s[t]||e.value>s[t].value)&&c.payment_gateways.forEach(({discount:m})=>{m&&m.apply_at!=="freight"&&m.value===e.value&&(s[t]={apply_at:m.apply_at,...e})}),t="loyalty_points_programs",e=c[t],e&&(s[t]={...s[t],...e});break;default:t="available_extra_discount",e=c[t],e&&(!s[t]||e.value>s[t].value)&&(s[t]=e)}}}),sessionStorage.setItem(n,JSON.stringify({...i,__timestamp:Date.now()}))}}).catch(console.error)})})}const P=p(()=>i.calculate_shipping.free_shipping_from_value),j=p(()=>i.list_payments.installments_option),$=p(()=>i.list_payments.discount_option),D=p(()=>i.list_payments.loyalty_points_programs),F=p(()=>i.apply_discount.available_extra_discount),x=(n,r,l,o=O)=>p(()=>{const a=`{${l}}`,u=n.indexOf(a);if(u>-1){const _=i[r][l];if(_){const s=o(_);return n.substring(0,u)+s+n.substring(u+a.length)}return""}return n}),J=n=>x(n,"calculate_shipping","free_shipping_from_value");export{F as a,S as b,$ as d,P as f,j as i,D as l,J as p};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./sf-utils.C9ygvYIB.js";import{i as r}from"./i18n.DPcLqMFO.js";const s=(i,n=e.get("lang"))=>n&&i.i18n&&i.i18n[n]?i.i18n[n]:i.name||i.title||r(i.i18n,n)||"";export{s as n};
@@ -0,0 +1 @@
1
+ import{i}from"./index.DlxZwqDP.js";i();
@@ -0,0 +1,13 @@
1
+ var yn={};let Vt,_s;typeof window=="object"&&window?_s=Vt=window:typeof process=="object"&&yn?(_s=global,Vt=yn):_s=Vt=typeof self=="object"&&self||{};const el="en_us",tl="USD",sl="$",nl="US",rl=1011,ll="5b1abe30a4d4531b8fe40725",il=e=>{if(typeof document=="object"&&document){const t=document.getElementsByTagName("meta");for(let s=0;s<t.length;s++)if(t[s].getAttribute("name")===e.replace(/_/g,"-")){const n=t[s].getAttribute("content");return e==="ecom_store_id"?parseInt(n,10):n}}return Vt[e.toUpperCase()]},As={};["lang","currency","currency_symbol","country_code","store_id","store_object_id"].forEach(e=>{As[e]=il("ecom_"+e)});const To={get(e){const t=As[e];if(t!=null&&t!=="")return t;switch(e){case"lang":return el;case"currency":return tl;case"currency_symbol":return sl;case"country_code":return nl;case"store_id":return rl;case"store_object_id":return ll}return null},set(e,t){As[e]=t}};/**
2
+ * @vue/shared v3.4.21
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Vs(e,t){const s=new Set(e.split(","));return t?n=>s.has(n.toLowerCase()):n=>s.has(n)}const ee={},st=[],Ce=()=>{},ol=()=>!1,ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kn=e=>e.startsWith("onUpdate:"),fe=Object.assign,Ds=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},cl=Object.prototype.hasOwnProperty,Y=(e,t)=>cl.call(e,t),U=Array.isArray,nt=e=>Et(e)==="[object Map]",Wn=e=>Et(e)==="[object Set]",mn=e=>Et(e)==="[object Date]",$=e=>typeof e=="function",le=e=>typeof e=="string",Ke=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",qn=e=>(z(e)||$(e))&&$(e.then)&&$(e.catch),Gn=Object.prototype.toString,Et=e=>Gn.call(e),fl=e=>Et(e).slice(8,-1),Jn=e=>Et(e)==="[object Object]",Ks=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rt=Vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ns=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},ul=/-(\w)/g,Me=ns(e=>e.replace(ul,(t,s)=>s?s.toUpperCase():"")),al=/\B([A-Z])/g,At=ns(e=>e.replace(al,"-$1").toLowerCase()),Ws=ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),ys=ns(e=>e?`on${Ws(e)}`:""),Pe=(e,t)=>!Object.is(e,t),ms=(e,t)=>{for(let s=0;s<e.length;s++)e[s](t)},Gt=(e,t,s)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:s})},dl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},hl=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let bn;const Yn=()=>bn||(bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rs(e){if(U(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=le(n)?yl(n):rs(n);if(r)for(const l in r)t[l]=r[l]}return t}else if(le(e)||z(e))return e}const gl=/;(?![^(]*\))/g,pl=/:([^]+)/,_l=/\/\*[^]*?\*\//g;function yl(e){const t={};return e.replace(_l,"").split(gl).forEach(s=>{if(s){const n=s.split(pl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ls(e){let t="";if(le(e))t=e;else if(U(e))for(let s=0;s<e.length;s++){const n=ls(e[s]);n&&(t+=n+" ")}else if(z(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function vo(e){if(!e)return null;let{class:t,style:s}=e;return t&&!le(t)&&(e.class=ls(t)),s&&(e.style=rs(s)),e}const ml="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Eo=Vs(ml);function Ao(e){return!!e||e===""}function bl(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Xn(e[n],t[n]);return s}function Xn(e,t){if(e===t)return!0;let s=mn(e),n=mn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ke(e),n=Ke(t),s||n)return e===t;if(s=U(e),n=U(t),s||n)return s&&n?bl(e,t):!1;if(s=z(e),n=z(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,l=Object.keys(t).length;if(r!==l)return!1;for(const i in e){const o=e.hasOwnProperty(i),f=t.hasOwnProperty(i);if(o&&!f||!o&&f||!Xn(e[i],t[i]))return!1}}return String(e)===String(t)}const Fo=e=>le(e)?e:e==null?"":U(e)||z(e)&&(e.toString===Gn||!$(e.toString))?JSON.stringify(e,Zn,2):String(e),Zn=(e,t)=>t&&t.__v_isRef?Zn(e,t.value):nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],l)=>(s[bs(n,l)+" =>"]=r,s),{})}:Wn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>bs(s))}:Ke(t)?bs(t):z(t)&&!U(t)&&!Jn(t)?String(t):t,bs=(e,t="")=>{var s;return Ke(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
6
+ * @vue/reactivity v3.4.21
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let me;class xl{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 s=me;try{return me=this,t()}finally{me=s}}}on(){me=this}off(){me=this.parent}stop(t){if(this._active){let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.scopes)for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function wl(e,t=me){t&&t.active&&t.effects.push(e)}function Cl(){return me}function Ro(e){me&&me.cleanups.push(e)}let Xe;class qs{constructor(t,s,n,r){this.fn=t,this.trigger=s,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,wl(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Qe();for(let t=0;t<this._depsLength;t++){const s=this.deps[t];if(s.computed&&(Tl(s.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ze()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ve,s=Xe;try{return Ve=!0,Xe=this,this._runnings++,xn(this),this.fn()}finally{wn(this),this._runnings--,Xe=s,Ve=t}}stop(){var t;this.active&&(xn(this),wn(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function xn(e){e._trackId++,e._depsLength=0}function wn(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Qn(e.deps[t],e);e.deps.length=e._depsLength}}function Qn(e,t){const s=e.get(t);s!==void 0&&t._trackId!==s&&(e.delete(t),e.size===0&&e.cleanup())}let Ve=!0,Fs=0;const zn=[];function Qe(){zn.push(Ve),Ve=!1}function ze(){const e=zn.pop();Ve=e===void 0?!0:e}function Gs(){Fs++}function Js(){for(Fs--;!Fs&&Rs.length;)Rs.shift()()}function er(e,t,s){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Qn(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Rs=[];function tr(e,t,s){Gs();for(const n of e.keys()){let r;n._dirtyLevel<t&&(r??(r=e.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(r??(r=e.get(n)===n._trackId))&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&Rs.push(n.scheduler)))}Js()}const sr=(e,t)=>{const s=new Map;return s.cleanup=e,s.computed=t,s},Jt=new WeakMap,Ze=Symbol(""),Is=Symbol("");function _e(e,t,s){if(Ve&&Xe){let n=Jt.get(e);n||Jt.set(e,n=new Map);let r=n.get(s);r||n.set(s,r=sr(()=>n.delete(s))),er(Xe,r)}}function Be(e,t,s,n,r,l){const i=Jt.get(e);if(!i)return;let o=[];if(t==="clear")o=[...i.values()];else if(s==="length"&&U(e)){const f=Number(n);i.forEach((d,h)=>{(h==="length"||!Ke(h)&&h>=f)&&o.push(d)})}else switch(s!==void 0&&o.push(i.get(s)),t){case"add":U(e)?Ks(s)&&o.push(i.get("length")):(o.push(i.get(Ze)),nt(e)&&o.push(i.get(Is)));break;case"delete":U(e)||(o.push(i.get(Ze)),nt(e)&&o.push(i.get(Is)));break;case"set":nt(e)&&o.push(i.get(Ze));break}Gs();for(const f of o)f&&tr(f,4);Js()}function vl(e,t){var s;return(s=Jt.get(e))==null?void 0:s.get(t)}const El=Vs("__proto__,__v_isRef,__isVue"),nr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke)),Cn=Al();function Al(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...s){const n=X(this);for(let l=0,i=this.length;l<i;l++)_e(n,"get",l+"");const r=n[t](...s);return r===-1||r===!1?n[t](...s.map(X)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...s){Qe(),Gs();const n=X(this)[t].apply(this,s);return Js(),ze(),n}}),e}function Fl(e){const t=X(this);return _e(t,"has",e),t.hasOwnProperty(e)}class rr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){const r=this._isReadonly,l=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return l;if(s==="__v_raw")return n===(r?l?Hl:cr:l?or:ir).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=U(t);if(!r){if(i&&Y(Cn,s))return Reflect.get(Cn,s,n);if(s==="hasOwnProperty")return Fl}const o=Reflect.get(t,s,n);return(Ke(s)?nr.has(s):El(s))||(r||_e(t,"get",s),l)?o:ae(o)?i&&Ks(s)?o:o.value:z(o)?r?fr(o):Zs(o):o}}class lr extends rr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let l=t[s];if(!this._isShallow){const f=ft(l);if(!Yt(n)&&!ft(n)&&(l=X(l),n=X(n)),!U(t)&&ae(l)&&!ae(n))return f?!1:(l.value=n,!0)}const i=U(t)&&Ks(s)?Number(s)<t.length:Y(t,s),o=Reflect.set(t,s,n,r);return t===X(r)&&(i?Pe(n,l)&&Be(t,"set",s,n):Be(t,"add",s,n)),o}deleteProperty(t,s){const n=Y(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&Be(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Ke(s)||!nr.has(s))&&_e(t,"has",s),n}ownKeys(t){return _e(t,"iterate",U(t)?"length":Ze),Reflect.ownKeys(t)}}class Rl extends rr{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Il=new lr,Ol=new Rl,Ml=new lr(!0),Ys=e=>e,is=e=>Reflect.getPrototypeOf(e);function Pt(e,t,s=!1,n=!1){e=e.__v_raw;const r=X(e),l=X(t);s||(Pe(t,l)&&_e(r,"get",t),_e(r,"get",l));const{has:i}=is(r),o=n?Ys:s?zs:xt;if(i.call(r,t))return o(e.get(t));if(i.call(r,l))return o(e.get(l));e!==r&&e.get(t)}function Lt(e,t=!1){const s=this.__v_raw,n=X(s),r=X(e);return t||(Pe(e,r)&&_e(n,"has",e),_e(n,"has",r)),e===r?s.has(e):s.has(e)||s.has(r)}function kt(e,t=!1){return e=e.__v_raw,!t&&_e(X(e),"iterate",Ze),Reflect.get(e,"size",e)}function Tn(e){e=X(e);const t=X(this);return is(t).has.call(t,e)||(t.add(e),Be(t,"add",e,e)),this}function vn(e,t){t=X(t);const s=X(this),{has:n,get:r}=is(s);let l=n.call(s,e);l||(e=X(e),l=n.call(s,e));const i=r.call(s,e);return s.set(e,t),l?Pe(t,i)&&Be(s,"set",e,t):Be(s,"add",e,t),this}function En(e){const t=X(this),{has:s,get:n}=is(t);let r=s.call(t,e);r||(e=X(e),r=s.call(t,e)),n&&n.call(t,e);const l=t.delete(e);return r&&Be(t,"delete",e,void 0),l}function An(){const e=X(this),t=e.size!==0,s=e.clear();return t&&Be(e,"clear",void 0,void 0),s}function Bt(e,t){return function(n,r){const l=this,i=l.__v_raw,o=X(i),f=t?Ys:e?zs:xt;return!e&&_e(o,"iterate",Ze),i.forEach((d,h)=>n.call(r,f(d),f(h),l))}}function Nt(e,t,s){return function(...n){const r=this.__v_raw,l=X(r),i=nt(l),o=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,d=r[e](...n),h=s?Ys:t?zs:xt;return!t&&_e(l,"iterate",f?Is:Ze),{next(){const{value:a,done:g}=d.next();return g?{value:a,done:g}:{value:o?[h(a[0]),h(a[1])]:h(a),done:g}},[Symbol.iterator](){return this}}}}function Se(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pl(){const e={get(l){return Pt(this,l)},get size(){return kt(this)},has:Lt,add:Tn,set:vn,delete:En,clear:An,forEach:Bt(!1,!1)},t={get(l){return Pt(this,l,!1,!0)},get size(){return kt(this)},has:Lt,add:Tn,set:vn,delete:En,clear:An,forEach:Bt(!1,!0)},s={get(l){return Pt(this,l,!0)},get size(){return kt(this,!0)},has(l){return Lt.call(this,l,!0)},add:Se("add"),set:Se("set"),delete:Se("delete"),clear:Se("clear"),forEach:Bt(!0,!1)},n={get(l){return Pt(this,l,!0,!0)},get size(){return kt(this,!0)},has(l){return Lt.call(this,l,!0)},add:Se("add"),set:Se("set"),delete:Se("delete"),clear:Se("clear"),forEach:Bt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Nt(l,!1,!1),s[l]=Nt(l,!0,!1),t[l]=Nt(l,!1,!0),n[l]=Nt(l,!0,!0)}),[e,s,t,n]}const[Ll,kl,Bl,Nl]=Pl();function Xs(e,t){const s=t?e?Nl:Bl:e?kl:Ll;return(n,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Y(s,r)&&r in n?s:n,r,l)}const Sl={get:Xs(!1,!1)},jl={get:Xs(!1,!0)},Ul={get:Xs(!0,!1)},ir=new WeakMap,or=new WeakMap,cr=new WeakMap,Hl=new WeakMap;function $l(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vl(e){return e.__v_skip||!Object.isExtensible(e)?0:$l(fl(e))}function Zs(e){return ft(e)?e:Qs(e,!1,Il,Sl,ir)}function Dl(e){return Qs(e,!1,Ml,jl,or)}function fr(e){return Qs(e,!0,Ol,Ul,cr)}function Qs(e,t,s,n,r){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const i=Vl(e);if(i===0)return e;const o=new Proxy(e,i===2?n:s);return r.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 Yt(e){return!!(e&&e.__v_isShallow)}function ur(e){return lt(e)||ft(e)}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function ar(e){return Object.isExtensible(e)&&Gt(e,"__v_skip",!0),e}const xt=e=>z(e)?Zs(e):e,zs=e=>z(e)?fr(e):e;class dr{constructor(t,s,n,r){this.getter=t,this._setter=s,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new qs(()=>t(this._value),()=>pt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=X(this);return(!t._cacheable||t.effect.dirty)&&Pe(t._value,t._value=t.effect.run())&&pt(t,4),en(t),t.effect._dirtyLevel>=2&&pt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Kl(e,t,s=!1){let n,r;const l=$(e);return l?(n=e,r=Ce):(n=e.get,r=e.set),new dr(n,r,l||!r,s)}function en(e){var t;Ve&&Xe&&(e=X(e),er(Xe,(t=e.dep)!=null?t:e.dep=sr(()=>e.dep=void 0,e instanceof dr?e:void 0)))}function pt(e,t=4,s){e=X(e);const n=e.dep;n&&tr(n,t)}function ae(e){return!!(e&&e.__v_isRef===!0)}function Dt(e){return hr(e,!1)}function Io(e){return hr(e,!0)}function hr(e,t){return ae(e)?e:new Wl(e,t)}class Wl{constructor(t,s){this.__v_isShallow=s,this.dep=void 0,this.__v_isRef=!0,this._rawValue=s?t:X(t),this._value=s?t:xt(t)}get value(){return en(this),this._value}set value(t){const s=this.__v_isShallow||Yt(t)||ft(t);t=s?t:X(t),Pe(t,this._rawValue)&&(this._rawValue=t,this._value=s?t:xt(t),pt(this,4))}}function ql(e){return ae(e)?e.value:e}const Gl={get:(e,t,s)=>ql(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ae(r)&&!ae(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function gr(e){return lt(e)?e:new Proxy(e,Gl)}class Jl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:s,set:n}=t(()=>en(this),()=>pt(this));this._get=s,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function Yl(e){return new Jl(e)}class Xl{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,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 vl(X(this._object),this._key)}}class Zl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Oo(e,t,s){return ae(e)?e:$(e)?new Zl(e):z(e)&&arguments.length>1?Ql(e,t,s):Dt(e)}function Ql(e,t,s){const n=e[t];return ae(n)?n:new Xl(e,t,s)}/**
10
+ * @vue/runtime-core v3.4.21
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function De(e,t,s,n){try{return n?e(...n):e()}catch(r){dt(r,t,s)}}function Ee(e,t,s,n){if($(e)){const l=De(e,t,s,n);return l&&qn(l)&&l.catch(i=>{dt(i,t,s)}),l}const r=[];for(let l=0;l<e.length;l++)r.push(Ee(e[l],t,s,n));return r}function dt(e,t,s,n=!0){const r=t?t.vnode:null;if(t){let l=t.parent;const i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const d=l.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,i,o)===!1)return}l=l.parent}const f=t.appContext.config.errorHandler;if(f){De(f,null,10,[e,i,o]);return}}zl(e,s,r,n)}function zl(e,t,s,n=!0){console.error(e)}let wt=!1,Os=!1;const ue=[];let Ie=0;const it=[];let Ue=null,Je=0;const pr=Promise.resolve();let tn=null;function ei(e){const t=tn||pr;return e?t.then(this?e.bind(this):e):t}function ti(e){let t=Ie+1,s=ue.length;for(;t<s;){const n=t+s>>>1,r=ue[n],l=Ct(r);l<e||l===e&&r.pre?t=n+1:s=n}return t}function os(e){(!ue.length||!ue.includes(e,wt&&e.allowRecurse?Ie+1:Ie))&&(e.id==null?ue.push(e):ue.splice(ti(e.id),0,e),_r())}function _r(){!wt&&!Os&&(Os=!0,tn=pr.then(yr))}function si(e){const t=ue.indexOf(e);t>Ie&&ue.splice(t,1)}function Ms(e){U(e)?it.push(...e):(!Ue||!Ue.includes(e,e.allowRecurse?Je+1:Je))&&it.push(e),_r()}function Fn(e,t,s=wt?Ie+1:0){for(;s<ue.length;s++){const n=ue[s];if(n&&n.pre){if(e&&n.id!==e.uid)continue;ue.splice(s,1),s--,n()}}}function Xt(e){if(it.length){const t=[...new Set(it)].sort((s,n)=>Ct(s)-Ct(n));if(it.length=0,Ue){Ue.push(...t);return}for(Ue=t,Je=0;Je<Ue.length;Je++)Ue[Je]();Ue=null,Je=0}}const Ct=e=>e.id==null?1/0:e.id,ni=(e,t)=>{const s=Ct(e)-Ct(t);if(s===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return s};function yr(e){Os=!1,wt=!0,ue.sort(ni);try{for(Ie=0;Ie<ue.length;Ie++){const t=ue[Ie];t&&t.active!==!1&&De(t,null,14)}}finally{Ie=0,ue.length=0,Xt(),wt=!1,tn=null,(ue.length||it.length)&&yr()}}function ri(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ee;let r=s;const l=t.startsWith("update:"),i=l&&t.slice(7);if(i&&i in n){const h=`${i==="modelValue"?"model":i}Modifiers`,{number:a,trim:g}=n[h]||ee;g&&(r=s.map(E=>le(E)?E.trim():E)),a&&(r=s.map(dl))}let o,f=n[o=ys(t)]||n[o=ys(Me(t))];!f&&l&&(f=n[o=ys(At(t))]),f&&Ee(f,e,6,r);const d=n[o+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ee(d,e,6,r)}}function mr(e,t,s=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const l=e.emits;let i={},o=!1;if(!$(e)){const f=d=>{const h=mr(d,t,!0);h&&(o=!0,fe(i,h))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!l&&!o?(z(e)&&n.set(e,null),null):(U(l)?l.forEach(f=>i[f]=null):fe(i,l),z(e)&&n.set(e,i),i)}function cs(e,t){return!e||!ss(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,At(t))||Y(e,t))}let re=null,br=null;function Zt(e){const t=re;return re=e,br=e&&e.type.__scopeId||null,t}function li(e,t=re,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&$n(-1);const l=Zt(t);let i;try{i=e(...r)}finally{Zt(l),n._d&&$n(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function xs(e){const{type:t,vnode:s,proxy:n,withProxy:r,props:l,propsOptions:[i],slots:o,attrs:f,emit:d,render:h,renderCache:a,data:g,setupState:E,ctx:I,inheritAttrs:k}=e;let D,q;const K=Zt(e);try{if(s.shapeFlag&4){const C=r||n,w=C;D=we(h.call(w,C,a,l,E,g,I)),q=f}else{const C=t;D=we(C.length>1?C(l,{attrs:f,slots:o,emit:d}):C(l,null)),q=t.props?f:oi(f)}}catch(C){bt.length=0,dt(C,e,1),D=se(he)}let _=D;if(q&&k!==!1){const C=Object.keys(q),{shapeFlag:w}=_;C.length&&w&7&&(i&&C.some(Kn)&&(q=ci(q,i)),_=We(_,q))}return s.dirs&&(_=We(_),_.dirs=_.dirs?_.dirs.concat(s.dirs):s.dirs),s.transition&&(_.transition=s.transition),D=_,Zt(K),D}function ii(e,t=!0){let s;for(let n=0;n<e.length;n++){const r=e[n];if(vt(r)){if(r.type!==he||r.children==="v-if"){if(s)return;s=r}}else return}return s}const oi=e=>{let t;for(const s in e)(s==="class"||s==="style"||ss(s))&&((t||(t={}))[s]=e[s]);return t},ci=(e,t)=>{const s={};for(const n in e)(!Kn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function fi(e,t,s){const{props:n,children:r,component:l}=e,{props:i,children:o,patchFlag:f}=t,d=l.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?Rn(n,i,d):!!i;if(f&8){const h=t.dynamicProps;for(let a=0;a<h.length;a++){const g=h[a];if(i[g]!==n[g]&&!cs(d,g))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:n===i?!1:n?i?Rn(n,i,d):!0:!!i;return!1}function Rn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const l=n[r];if(t[l]!==e[l]&&!cs(s,l))return!0}return!1}function sn({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const nn="components";function Mo(e,t){return wr(nn,e,!0,t)||e}const xr=Symbol.for("v-ndc");function Po(e){return le(e)?wr(nn,e,!1)||e:e||xr}function wr(e,t,s=!0,n=!1){const r=re||oe;if(r){const l=r.type;if(e===nn){const o=ho(l,!1);if(o&&(o===t||o===Me(t)||o===Ws(Me(t))))return l}const i=In(r[e]||l[e],t)||In(r.appContext[e],t);return!i&&n?l:i}}function In(e,t){return e&&(e[t]||e[Me(t)]||e[Ws(Me(t))])}const ui=e=>e.__isSuspense;let Ps=0;const ai={name:"Suspense",__isSuspense:!0,process(e,t,s,n,r,l,i,o,f,d){if(e==null)di(t,s,n,r,l,i,o,f,d);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}hi(e,t,s,n,r,i,o,f,d)}},hydrate:gi,create:rn,normalize:pi},Lo=ai;function Tt(e,t){const s=e.props&&e.props[t];$(s)&&s()}function di(e,t,s,n,r,l,i,o,f){const{p:d,o:{createElement:h}}=f,a=h("div"),g=e.suspense=rn(e,r,n,t,a,s,l,i,o,f);d(null,g.pendingBranch=e.ssContent,a,null,n,g,l,i),g.deps>0?(Tt(e,"onPending"),Tt(e,"onFallback"),d(null,e.ssFallback,t,s,n,null,l,i),ot(g,e.ssFallback)):g.resolve(!1,!0)}function hi(e,t,s,n,r,l,i,o,{p:f,um:d,o:{createElement:h}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const g=t.ssContent,E=t.ssFallback,{activeBranch:I,pendingBranch:k,isInFallback:D,isHydrating:q}=a;if(k)a.pendingBranch=g,Oe(g,k)?(f(k,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0?a.resolve():D&&(q||(f(I,E,s,n,r,null,l,i,o),ot(a,E)))):(a.pendingId=Ps++,q?(a.isHydrating=!1,a.activeBranch=k):d(k,r,a),a.deps=0,a.effects.length=0,a.hiddenContainer=h("div"),D?(f(null,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0?a.resolve():(f(I,E,s,n,r,null,l,i,o),ot(a,E))):I&&Oe(g,I)?(f(I,g,s,n,r,a,l,i,o),a.resolve(!0)):(f(null,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0&&a.resolve()));else if(I&&Oe(g,I))f(I,g,s,n,r,a,l,i,o),ot(a,g);else if(Tt(t,"onPending"),a.pendingBranch=g,g.shapeFlag&512?a.pendingId=g.component.suspenseId:a.pendingId=Ps++,f(null,g,a.hiddenContainer,null,r,a,l,i,o),a.deps<=0)a.resolve();else{const{timeout:K,pendingId:_}=a;K>0?setTimeout(()=>{a.pendingId===_&&a.fallback(E)},K):K===0&&a.fallback(E)}}function rn(e,t,s,n,r,l,i,o,f,d,h=!1){const{p:a,m:g,um:E,n:I,o:{parentNode:k,remove:D}}=d;let q;const K=_i(e);K&&t?.pendingBranch&&(q=t.pendingId,t.deps++);const _=e.props?hl(e.props.timeout):void 0,C=l,w={vnode:e,parent:t,parentComponent:s,namespace:i,container:n,hiddenContainer:r,deps:0,pendingId:Ps++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(b=!1,L=!1){const{vnode:F,activeBranch:P,pendingBranch:O,pendingId:V,effects:J,parentComponent:Z,container:ce}=w;let ne=!1;w.isHydrating?w.isHydrating=!1:b||(ne=P&&O.transition&&O.transition.mode==="out-in",ne&&(P.transition.afterLeave=()=>{V===w.pendingId&&(g(O,ce,l===C?I(P):l,0),Ms(J))}),P&&(k(P.el)!==w.hiddenContainer&&(l=I(P)),E(P,Z,w,!0)),ne||g(O,ce,l,0)),ot(w,O),w.pendingBranch=null,w.isInFallback=!1;let B=w.parent,W=!1;for(;B;){if(B.pendingBranch){B.effects.push(...J),W=!0;break}B=B.parent}!W&&!ne&&Ms(J),w.effects=[],K&&t&&t.pendingBranch&&q===t.pendingId&&(t.deps--,t.deps===0&&!L&&t.resolve()),Tt(F,"onResolve")},fallback(b){if(!w.pendingBranch)return;const{vnode:L,activeBranch:F,parentComponent:P,container:O,namespace:V}=w;Tt(L,"onFallback");const J=I(F),Z=()=>{w.isInFallback&&(a(null,b,O,J,P,null,V,o,f),ot(w,b))},ce=b.transition&&b.transition.mode==="out-in";ce&&(F.transition.afterLeave=Z),w.isInFallback=!0,E(F,P,null,!0),ce||Z()},move(b,L,F){w.activeBranch&&g(w.activeBranch,b,L,F),w.container=b},next(){return w.activeBranch&&I(w.activeBranch)},registerDep(b,L){const F=!!w.pendingBranch;F&&w.deps++;const P=b.vnode.el;b.asyncDep.catch(O=>{dt(O,b,0)}).then(O=>{if(b.isUnmounted||w.isUnmounted||w.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:V}=b;$s(b,O,!1),P&&(V.el=P);const J=!P&&b.subTree.el;L(b,V,k(P||b.subTree.el),P?null:I(b.subTree),w,i,f),J&&D(J),sn(b,V.el),F&&--w.deps===0&&w.resolve()})},unmount(b,L){w.isUnmounted=!0,w.activeBranch&&E(w.activeBranch,s,b,L),w.pendingBranch&&E(w.pendingBranch,s,b,L)}};return w}function gi(e,t,s,n,r,l,i,o,f){const d=t.suspense=rn(t,n,s,e.parentNode,document.createElement("div"),null,r,l,i,o,!0),h=f(e,d.pendingBranch=t.ssContent,s,d,l,i);return d.deps===0&&d.resolve(!1,!0),h}function pi(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=On(n?s.default:s),e.ssFallback=n?On(s.fallback):se(he)}function On(e){let t;if($(e)){const s=at&&e._c;s&&(e._d=!1,fn()),e=e(),s&&(e._d=!0,t=Te,Vr())}return U(e)&&(e=ii(e)),e=we(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Cr(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Ms(e)}function ot(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;s.el=r,n&&n.subTree===s&&(n.vnode.el=r,sn(n,r))}function _i(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const yi=Symbol.for("v-scx"),mi=()=>Kt(yi);function ko(e,t){return fs(e,null,t)}function bi(e,t){return fs(e,null,{flush:"sync"})}const St={};function ws(e,t,s){return fs(e,t,s)}function fs(e,t,{immediate:s,deep:n,flush:r,once:l,onTrack:i,onTrigger:o}=ee){if(t&&l){const b=t;t=(...L)=>{b(...L),w()}}const f=oe,d=b=>n===!0?b:Ye(b,n===!1?1:void 0);let h,a=!1,g=!1;if(ae(e)?(h=()=>e.value,a=Yt(e)):lt(e)?(h=()=>d(e),a=!0):U(e)?(g=!0,a=e.some(b=>lt(b)||Yt(b)),h=()=>e.map(b=>{if(ae(b))return b.value;if(lt(b))return d(b);if($(b))return De(b,f,2)})):$(e)?t?h=()=>De(e,f,2):h=()=>(E&&E(),Ee(e,f,3,[I])):h=Ce,t&&n){const b=h;h=()=>Ye(b())}let E,I=b=>{E=_.onStop=()=>{De(b,f,4),E=_.onStop=void 0}},k;if(It)if(I=Ce,t?s&&Ee(t,f,3,[h(),g?[]:void 0,I]):h(),r==="sync"){const b=mi();k=b.__watcherHandles||(b.__watcherHandles=[])}else return Ce;let D=g?new Array(e.length).fill(St):St;const q=()=>{if(!(!_.active||!_.dirty))if(t){const b=_.run();(n||a||(g?b.some((L,F)=>Pe(L,D[F])):Pe(b,D)))&&(E&&E(),Ee(t,f,3,[b,D===St?void 0:g&&D[0]===St?[]:D,I]),D=b)}else _.run()};q.allowRecurse=!!t;let K;r==="sync"?K=q:r==="post"?K=()=>ge(q,f&&f.suspense):(q.pre=!0,f&&(q.id=f.uid),K=()=>os(q));const _=new qs(h,Ce,K),C=Cl(),w=()=>{_.stop(),C&&Ds(C.effects,_)};return t?s?q():D=_.run():r==="post"?ge(_.run.bind(_),f&&f.suspense):_.run(),k&&k.push(w),w}function xi(e,t,s){const n=this.proxy,r=le(e)?e.includes(".")?Tr(n,e):()=>n[e]:e.bind(n,n);let l;$(t)?l=t:(l=t.handler,s=t);const i=Rt(this),o=fs(r,l.bind(n),s);return i(),o}function Tr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}function Ye(e,t,s=0,n){if(!z(e)||e.__v_skip)return e;if(t&&t>0){if(s>=t)return e;s++}if(n=n||new Set,n.has(e))return e;if(n.add(e),ae(e))Ye(e.value,t,s,n);else if(U(e))for(let r=0;r<e.length;r++)Ye(e[r],t,s,n);else if(Wn(e)||nt(e))e.forEach(r=>{Ye(r,t,s,n)});else if(Jn(e))for(const r in e)Ye(e[r],t,s,n);return e}function Bo(e,t){if(re===null)return e;const s=ds(re)||re.proxy,n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[l,i,o,f=ee]=t[r];l&&($(l)&&(l={mounted:l,updated:l}),l.deep&&Ye(i),n.push({dir:l,instance:s,value:i,oldValue:void 0,arg:o,modifiers:f}))}return e}function Re(e,t,s,n){const r=e.dirs,l=t&&t.dirs;for(let i=0;i<r.length;i++){const o=r[i];l&&(o.oldValue=l[i].value);let f=o.dir[n];f&&(Qe(),Ee(f,s,8,[e.el,o,e,t]),ze())}}const He=Symbol("_leaveCb"),jt=Symbol("_enterCb");function wi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fr(()=>{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}const be=[Function,Array],Ci={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},Ti={name:"BaseTransition",props:Ci,setup(e,{slots:t}){const s=Jr(),n=wi();return()=>{const r=t.default&&Er(t.default(),!0);if(!r||!r.length)return;let l=r[0];if(r.length>1){for(const g of r)if(g.type!==he){l=g;break}}const i=X(e),{mode:o}=i;if(n.isLeaving)return Cs(l);const f=Mn(l);if(!f)return Cs(l);const d=Ls(f,i,n,s);ks(f,d);const h=s.subTree,a=h&&Mn(h);if(a&&a.type!==he&&!Oe(f,a)){const g=Ls(a,i,n,s);if(ks(a,g),o==="out-in")return n.isLeaving=!0,g.afterLeave=()=>{n.isLeaving=!1,s.update.active!==!1&&(s.effect.dirty=!0,s.update())},Cs(l);o==="in-out"&&f.type!==he&&(g.delayLeave=(E,I,k)=>{const D=vr(n,a);D[String(a.key)]=a,E[He]=()=>{I(),E[He]=void 0,delete d.delayedLeave},d.delayedLeave=k})}return l}}},No=Ti;function vr(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Ls(e,t,s,n){const{appear:r,mode:l,persisted:i=!1,onBeforeEnter:o,onEnter:f,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:a,onLeave:g,onAfterLeave:E,onLeaveCancelled:I,onBeforeAppear:k,onAppear:D,onAfterAppear:q,onAppearCancelled:K}=t,_=String(e.key),C=vr(s,e),w=(F,P)=>{F&&Ee(F,n,9,P)},b=(F,P)=>{const O=P[1];w(F,P),U(F)?F.every(V=>V.length<=1)&&O():F.length<=1&&O()},L={mode:l,persisted:i,beforeEnter(F){let P=o;if(!s.isMounted)if(r)P=k||o;else return;F[He]&&F[He](!0);const O=C[_];O&&Oe(e,O)&&O.el[He]&&O.el[He](),w(P,[F])},enter(F){let P=f,O=d,V=h;if(!s.isMounted)if(r)P=D||f,O=q||d,V=K||h;else return;let J=!1;const Z=F[jt]=ce=>{J||(J=!0,ce?w(V,[F]):w(O,[F]),L.delayedLeave&&L.delayedLeave(),F[jt]=void 0)};P?b(P,[F,Z]):Z()},leave(F,P){const O=String(e.key);if(F[jt]&&F[jt](!0),s.isUnmounting)return P();w(a,[F]);let V=!1;const J=F[He]=Z=>{V||(V=!0,P(),Z?w(I,[F]):w(E,[F]),F[He]=void 0,C[O]===e&&delete C[O])};C[O]=e,g?b(g,[F,J]):J()},clone(F){return Ls(F,t,s,n)}};return L}function Cs(e){if(Ft(e))return e=We(e),e.children=null,e}function Mn(e){return Ft(e)?e.children?e.children[0]:void 0:e}function ks(e,t){e.shapeFlag&6&&e.component?ks(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,s){let n=[],r=0;for(let l=0;l<e.length;l++){let i=e[l];const o=s==null?i.key:String(s)+String(i.key!=null?i.key:l);i.type===pe?(i.patchFlag&128&&r++,n=n.concat(Er(i.children,t,o))):(t||i.type!==he)&&n.push(o!=null?We(i,{key:o}):i)}if(r>1)for(let l=0;l<n.length;l++)n[l].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function vi(e,t){return $(e)?fe({name:e.name},t,{setup:e}):e}const ct=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function So(e){$(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:r=200,timeout:l,suspensible:i=!0,onError:o}=e;let f=null,d,h=0;const a=()=>(h++,f=null,g()),g=()=>{let E;return f||(E=f=t().catch(I=>{if(I=I instanceof Error?I:new Error(String(I)),o)return new Promise((k,D)=>{o(I,()=>k(a()),()=>D(I),h+1)});throw I}).then(I=>E!==f&&f?f:(I&&(I.__esModule||I[Symbol.toStringTag]==="Module")&&(I=I.default),d=I,I)))};return vi({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return d},setup(){const E=oe;if(d)return()=>Ts(d,E);const I=K=>{f=null,dt(K,E,13,!n)};if(i&&E.suspense||It)return g().then(K=>()=>Ts(K,E)).catch(K=>(I(K),()=>n?se(n,{error:K}):null));const k=Dt(!1),D=Dt(),q=Dt(!!r);return r&&setTimeout(()=>{q.value=!1},r),l!=null&&setTimeout(()=>{if(!k.value&&!D.value){const K=new Error(`Async component timed out after ${l}ms.`);I(K),D.value=K}},l),g().then(()=>{k.value=!0,E.parent&&Ft(E.parent.vnode)&&(E.parent.effect.dirty=!0,os(E.parent.update))}).catch(K=>{I(K),D.value=K}),()=>{if(k.value&&d)return Ts(d,E);if(D.value&&n)return se(n,{error:D.value});if(s&&!q.value)return se(s)}}})}function Ts(e,t){const{ref:s,props:n,children:r,ce:l}=t.vnode,i=se(e,n,r);return i.ref=s,i.ce=l,delete t.vnode.ce,i}const Ft=e=>e.type.__isKeepAlive;function Ei(e,t){Ar(e,"a",t)}function Ai(e,t){Ar(e,"da",t)}function Ar(e,t,s=oe){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(us(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Ft(r.parent.vnode)&&Fi(n,t,s,r),r=r.parent}}function Fi(e,t,s,n){const r=us(t,e,n,!0);Ir(()=>{Ds(n[t],r)},s)}function us(e,t,s=oe,n=!1){if(s){const r=s[e]||(s[e]=[]),l=t.__weh||(t.__weh=(...i)=>{if(s.isUnmounted)return;Qe();const o=Rt(s),f=Ee(t,s,e,i);return o(),ze(),f});return n?r.unshift(l):r.push(l),l}}const Ne=e=>(t,s=oe)=>(!It||e==="sp")&&us(e,(...n)=>t(...n),s),Ri=Ne("bm"),Fr=Ne("m"),Ii=Ne("bu"),Oi=Ne("u"),Rr=Ne("bum"),Ir=Ne("um"),Mi=Ne("sp"),Pi=Ne("rtg"),Li=Ne("rtc");function ki(e,t=oe){us("ec",e,t)}function jo(e,t,s,n){let r;const l=s&&s[n];if(U(e)||le(e)){r=new Array(e.length);for(let i=0,o=e.length;i<o;i++)r[i]=t(e[i],i,void 0,l&&l[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,l&&l[i])}else if(z(e))if(e[Symbol.iterator])r=Array.from(e,(i,o)=>t(i,o,void 0,l&&l[o]));else{const i=Object.keys(e);r=new Array(i.length);for(let o=0,f=i.length;o<f;o++){const d=i[o];r[o]=t(e[d],d,o,l&&l[o])}}else r=[];return s&&(s[n]=r),r}function Uo(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(U(n))for(let r=0;r<n.length;r++)e[n[r].name]=n[r].fn;else n&&(e[n.name]=n.key?(...r)=>{const l=n.fn(...r);return l&&(l.key=n.key),l}:n.fn)}return e}function Ho(e,t,s={},n,r){if(re.isCE||re.parent&&ct(re.parent)&&re.parent.isCE)return t!=="default"&&(s.name=t),se("slot",s,n&&n());let l=e[t];l&&l._c&&(l._d=!1),fn();const i=l&&Or(l(s)),o=Kr(pe,{key:s.key||i&&i.key||`_${t}`},i||(n?n():[]),i&&e._===1?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o}function Or(e){return e.some(t=>vt(t)?!(t.type===he||t.type===pe&&!Or(t.children)):!0)?e:null}const Bs=e=>e?Yr(e)?ds(e)||e.proxy:Bs(e.parent):null,_t=fe(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=>Bs(e.parent),$root:e=>Bs(e.root),$emit:e=>e.emit,$options:e=>ln(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,os(e.update)}),$nextTick:e=>e.n||(e.n=ei.bind(e.proxy)),$watch:e=>xi.bind(e)}),vs=(e,t)=>e!==ee&&!e.__isScriptSetup&&Y(e,t),Bi={get({_:e},t){const{ctx:s,setupState:n,data:r,props:l,accessCache:i,type:o,appContext:f}=e;let d;if(t[0]!=="$"){const E=i[t];if(E!==void 0)switch(E){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return l[t]}else{if(vs(n,t))return i[t]=1,n[t];if(r!==ee&&Y(r,t))return i[t]=2,r[t];if((d=e.propsOptions[0])&&Y(d,t))return i[t]=3,l[t];if(s!==ee&&Y(s,t))return i[t]=4,s[t];Ns&&(i[t]=0)}}const h=_t[t];let a,g;if(h)return t==="$attrs"&&_e(e,"get",t),h(e);if((a=o.__cssModules)&&(a=a[t]))return a;if(s!==ee&&Y(s,t))return i[t]=4,s[t];if(g=f.config.globalProperties,Y(g,t))return g[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:l}=e;return vs(r,t)?(r[t]=s,!0):n!==ee&&Y(n,t)?(n[t]=s,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,propsOptions:l}},i){let o;return!!s[i]||e!==ee&&Y(e,i)||vs(t,i)||(o=l[0])&&Y(o,i)||Y(n,i)||Y(_t,i)||Y(r.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Y(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Qt(e){return U(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function $o(e,t){return!e||!t?e||t:U(e)&&U(t)?e.concat(t):fe({},Qt(e),Qt(t))}let Ns=!0;function Ni(e){const t=ln(e),s=e.proxy,n=e.ctx;Ns=!1,t.beforeCreate&&Pn(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:i,watch:o,provide:f,inject:d,created:h,beforeMount:a,mounted:g,beforeUpdate:E,updated:I,activated:k,deactivated:D,beforeDestroy:q,beforeUnmount:K,destroyed:_,unmounted:C,render:w,renderTracked:b,renderTriggered:L,errorCaptured:F,serverPrefetch:P,expose:O,inheritAttrs:V,components:J,directives:Z,filters:ce}=t;if(d&&Si(d,n,null),i)for(const W in i){const S=i[W];$(S)&&(n[W]=S.bind(s))}if(r){const W=r.call(s,s);z(W)&&(e.data=Zs(W))}if(Ns=!0,l)for(const W in l){const S=l[W],Le=$(S)?S.bind(s,s):$(S.get)?S.get.bind(s,s):Ce,Ot=!$(S)&&$(S.set)?S.set.bind(s):Ce,qe=po({get:Le,set:Ot});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Ae=>qe.value=Ae})}if(o)for(const W in o)Mr(o[W],n,s,W);if(f){const W=$(f)?f.call(s):f;Reflect.ownKeys(W).forEach(S=>{Di(S,W[S])})}h&&Pn(h,e,"c");function B(W,S){U(S)?S.forEach(Le=>W(Le.bind(s))):S&&W(S.bind(s))}if(B(Ri,a),B(Fr,g),B(Ii,E),B(Oi,I),B(Ei,k),B(Ai,D),B(ki,F),B(Li,b),B(Pi,L),B(Rr,K),B(Ir,C),B(Mi,P),U(O))if(O.length){const W=e.exposed||(e.exposed={});O.forEach(S=>{Object.defineProperty(W,S,{get:()=>s[S],set:Le=>s[S]=Le})})}else e.exposed||(e.exposed={});w&&e.render===Ce&&(e.render=w),V!=null&&(e.inheritAttrs=V),J&&(e.components=J),Z&&(e.directives=Z)}function Si(e,t,s=Ce){U(e)&&(e=Ss(e));for(const n in e){const r=e[n];let l;z(r)?"default"in r?l=Kt(r.from||n,r.default,!0):l=Kt(r.from||n):l=Kt(r),ae(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[n]=l}}function Pn(e,t,s){Ee(U(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Mr(e,t,s,n){const r=n.includes(".")?Tr(s,n):()=>s[n];if(le(e)){const l=t[e];$(l)&&ws(r,l)}else if($(e))ws(r,e.bind(s));else if(z(e))if(U(e))e.forEach(l=>Mr(l,t,s,n));else{const l=$(e.handler)?e.handler.bind(s):t[e.handler];$(l)&&ws(r,l,e)}}function ln(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,o=l.get(t);let f;return o?f=o:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(d=>zt(f,d,i,!0)),zt(f,t,i)),z(t)&&l.set(t,f),f}function zt(e,t,s,n=!1){const{mixins:r,extends:l}=t;l&&zt(e,l,s,!0),r&&r.forEach(i=>zt(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const o=ji[i]||s&&s[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const ji={data:Ln,props:kn,emits:kn,methods:gt,computed:gt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:gt,directives:gt,watch:Hi,provide:Ln,inject:Ui};function Ln(e,t){return t?e?function(){return fe($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Ui(e,t){return gt(Ss(e),Ss(t))}function Ss(e){if(U(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function de(e,t){return e?[...new Set([].concat(e,t))]:t}function gt(e,t){return e?fe(Object.create(null),e,t):t}function kn(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:fe(Object.create(null),Qt(e),Qt(t??{})):t}function Hi(e,t){if(!e)return t;if(!t)return e;const s=fe(Object.create(null),e);for(const n in t)s[n]=de(e[n],t[n]);return s}function Pr(){return{app:null,config:{isNativeTag:ol,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 $i=0;function Vi(e,t){return function(n,r=null){$(n)||(n=fe({},n)),r!=null&&!z(r)&&(r=null);const l=Pr(),i=new WeakSet;let o=!1;const f=l.app={_uid:$i++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:_o,get config(){return l.config},set config(d){},use(d,...h){return i.has(d)||(d&&$(d.install)?(i.add(d),d.install(f,...h)):$(d)&&(i.add(d),d(f,...h))),f},mixin(d){return l.mixins.includes(d)||l.mixins.push(d),f},component(d,h){return h?(l.components[d]=h,f):l.components[d]},directive(d,h){return h?(l.directives[d]=h,f):l.directives[d]},mount(d,h,a){if(!o){const g=se(n,r);return g.appContext=l,a===!0?a="svg":a===!1&&(a=void 0),h&&t?t(g,d):e(g,d,a),o=!0,f._container=d,d.__vue_app__=f,ds(g.component)||g.component.proxy}},unmount(){o&&(e(null,f._container),delete f._container.__vue_app__)},provide(d,h){return l.provides[d]=h,f},runWithContext(d){const h=yt;yt=f;try{return d()}finally{yt=h}}};return f}}let yt=null;function Di(e,t){if(oe){let s=oe.provides;const n=oe.parent&&oe.parent.provides;n===s&&(s=oe.provides=Object.create(n)),s[e]=t}}function Kt(e,t,s=!1){const n=oe||re;if(n||yt){const r=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:yt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return s&&$(t)?t.call(n&&n.proxy):t}}function Ki(e,t,s,n=!1){const r={},l={};Gt(l,as,1),e.propsDefaults=Object.create(null),Lr(e,t,r,l);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);s?e.props=n?r:Dl(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Wi(e,t,s,n){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,o=X(r),[f]=e.propsOptions;let d=!1;if((n||i>0)&&!(i&16)){if(i&8){const h=e.vnode.dynamicProps;for(let a=0;a<h.length;a++){let g=h[a];if(cs(e.emitsOptions,g))continue;const E=t[g];if(f)if(Y(l,g))E!==l[g]&&(l[g]=E,d=!0);else{const I=Me(g);r[I]=js(f,o,I,E,e,!1)}else E!==l[g]&&(l[g]=E,d=!0)}}}else{Lr(e,t,r,l)&&(d=!0);let h;for(const a in o)(!t||!Y(t,a)&&((h=At(a))===a||!Y(t,h)))&&(f?s&&(s[a]!==void 0||s[h]!==void 0)&&(r[a]=js(f,o,a,void 0,e,!0)):delete r[a]);if(l!==o)for(const a in l)(!t||!Y(t,a))&&(delete l[a],d=!0)}d&&Be(e,"set","$attrs")}function Lr(e,t,s,n){const[r,l]=e.propsOptions;let i=!1,o;if(t)for(let f in t){if(rt(f))continue;const d=t[f];let h;r&&Y(r,h=Me(f))?!l||!l.includes(h)?s[h]=d:(o||(o={}))[h]=d:cs(e.emitsOptions,f)||(!(f in n)||d!==n[f])&&(n[f]=d,i=!0)}if(l){const f=X(s),d=o||ee;for(let h=0;h<l.length;h++){const a=l[h];s[a]=js(r,f,a,d[a],e,!Y(d,a))}}return i}function js(e,t,s,n,r,l){const i=e[s];if(i!=null){const o=Y(i,"default");if(o&&n===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&$(f)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const h=Rt(r);n=d[s]=f.call(null,t),h()}}else n=f}i[0]&&(l&&!o?n=!1:i[1]&&(n===""||n===At(s))&&(n=!0))}return n}function kr(e,t,s=!1){const n=t.propsCache,r=n.get(e);if(r)return r;const l=e.props,i={},o=[];let f=!1;if(!$(e)){const h=a=>{f=!0;const[g,E]=kr(a,t,!0);fe(i,g),E&&o.push(...E)};!s&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!l&&!f)return z(e)&&n.set(e,st),st;if(U(l))for(let h=0;h<l.length;h++){const a=Me(l[h]);Bn(a)&&(i[a]=ee)}else if(l)for(const h in l){const a=Me(h);if(Bn(a)){const g=l[h],E=i[a]=U(g)||$(g)?{type:g}:fe({},g);if(E){const I=jn(Boolean,E.type),k=jn(String,E.type);E[0]=I>-1,E[1]=k<0||I<k,(I>-1||Y(E,"default"))&&o.push(a)}}}const d=[i,o];return z(e)&&n.set(e,d),d}function Bn(e){return e[0]!=="$"&&!rt(e)}function Nn(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Sn(e,t){return Nn(e)===Nn(t)}function jn(e,t){return U(t)?t.findIndex(s=>Sn(s,e)):$(t)&&Sn(t,e)?0:-1}const Br=e=>e[0]==="_"||e==="$stable",on=e=>U(e)?e.map(we):[we(e)],qi=(e,t,s)=>{if(t._n)return t;const n=li((...r)=>on(t(...r)),s);return n._c=!1,n},Nr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Br(r))continue;const l=e[r];if($(l))t[r]=qi(r,l,n);else if(l!=null){const i=on(l);t[r]=()=>i}}},Sr=(e,t)=>{const s=on(t);e.slots.default=()=>s},Gi=(e,t)=>{if(e.vnode.shapeFlag&32){const s=t._;s?(e.slots=X(t),Gt(t,"_",s)):Nr(t,e.slots={})}else e.slots={},t&&Sr(e,t);Gt(e.slots,as,1)},Ji=(e,t,s)=>{const{vnode:n,slots:r}=e;let l=!0,i=ee;if(n.shapeFlag&32){const o=t._;o?s&&o===1?l=!1:(fe(r,t),!s&&o===1&&delete r._):(l=!t.$stable,Nr(t,r)),i=t}else t&&(Sr(e,t),i={default:1});if(l)for(const o in r)!Br(o)&&i[o]==null&&delete r[o]};function es(e,t,s,n,r=!1){if(U(e)){e.forEach((g,E)=>es(g,t&&(U(t)?t[E]:t),s,n,r));return}if(ct(n)&&!r)return;const l=n.shapeFlag&4?ds(n.component)||n.component.proxy:n.el,i=r?null:l,{i:o,r:f}=e,d=t&&t.r,h=o.refs===ee?o.refs={}:o.refs,a=o.setupState;if(d!=null&&d!==f&&(le(d)?(h[d]=null,Y(a,d)&&(a[d]=null)):ae(d)&&(d.value=null)),$(f))De(f,o,12,[i,h]);else{const g=le(f),E=ae(f);if(g||E){const I=()=>{if(e.f){const k=g?Y(a,f)?a[f]:h[f]:f.value;r?U(k)&&Ds(k,l):U(k)?k.includes(l)||k.push(l):g?(h[f]=[l],Y(a,f)&&(a[f]=h[f])):(f.value=[l],e.k&&(h[e.k]=f.value))}else g?(h[f]=i,Y(a,f)&&(a[f]=i)):E&&(f.value=i,e.k&&(h[e.k]=i))};i?(I.id=-1,ge(I,s)):I()}}}let je=!1;const Yi=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Xi=e=>e.namespaceURI.includes("MathML"),Ut=e=>{if(Yi(e))return"svg";if(Xi(e))return"mathml"},Ht=e=>e.nodeType===8;function Zi(e){const{mt:t,p:s,o:{patchProp:n,createText:r,nextSibling:l,parentNode:i,remove:o,insert:f,createComment:d}}=e,h=(_,C)=>{if(!C.hasChildNodes()){s(null,_,C),Xt(),C._vnode=_;return}je=!1,a(C.firstChild,_,null,null,null),Xt(),C._vnode=_,je&&console.error("Hydration completed but contains mismatches.")},a=(_,C,w,b,L,F=!1)=>{const P=Ht(_)&&_.data==="[",O=()=>k(_,C,w,b,L,P),{type:V,ref:J,shapeFlag:Z,patchFlag:ce}=C;let ne=_.nodeType;C.el=_,ce===-2&&(F=!1,C.dynamicChildren=null);let B=null;switch(V){case ut:ne!==3?C.children===""?(f(C.el=r(""),i(_),_),B=_):B=O():(_.data!==C.children&&(je=!0,_.data=C.children),B=l(_));break;case he:K(_)?(B=l(_),q(C.el=_.content.firstChild,_,w)):ne!==8||P?B=O():B=l(_);break;case Wt:if(P&&(_=l(_),ne=_.nodeType),ne===1||ne===3){B=_;const W=!C.children.length;for(let S=0;S<C.staticCount;S++)W&&(C.children+=B.nodeType===1?B.outerHTML:B.data),S===C.staticCount-1&&(C.anchor=B),B=l(B);return P?l(B):B}else O();break;case pe:P?B=I(_,C,w,b,L,F):B=O();break;default:if(Z&1)(ne!==1||C.type.toLowerCase()!==_.tagName.toLowerCase())&&!K(_)?B=O():B=g(_,C,w,b,L,F);else if(Z&6){C.slotScopeIds=L;const W=i(_);if(P?B=D(_):Ht(_)&&_.data==="teleport start"?B=D(_,_.data,"teleport end"):B=l(_),t(C,W,null,w,b,Ut(W),F),ct(C)){let S;P?(S=se(pe),S.anchor=B?B.previousSibling:W.lastChild):S=_.nodeType===3?Gr(""):se("div"),S.el=_,C.component.subTree=S}}else Z&64?ne!==8?B=O():B=C.type.hydrate(_,C,w,b,L,F,e,E):Z&128&&(B=C.type.hydrate(_,C,w,b,Ut(i(_)),L,F,e,a))}return J!=null&&es(J,null,b,C),B},g=(_,C,w,b,L,F)=>{F=F||!!C.dynamicChildren;const{type:P,props:O,patchFlag:V,shapeFlag:J,dirs:Z,transition:ce}=C,ne=P==="input"||P==="option";if(ne||V!==-1){Z&&Re(C,null,w,"created");let B=!1;if(K(_)){B=Ur(b,ce)&&w&&w.vnode.props&&w.vnode.props.appear;const S=_.content.firstChild;B&&ce.beforeEnter(S),q(S,_,w),C.el=_=S}if(J&16&&!(O&&(O.innerHTML||O.textContent))){let S=E(_.firstChild,C,_,w,b,L,F);for(;S;){je=!0;const Le=S;S=S.nextSibling,o(Le)}}else J&8&&_.textContent!==C.children&&(je=!0,_.textContent=C.children);if(O)if(ne||!F||V&48)for(const S in O)(ne&&(S.endsWith("value")||S==="indeterminate")||ss(S)&&!rt(S)||S[0]===".")&&n(_,S,null,O[S],void 0,void 0,w);else O.onClick&&n(_,"onClick",null,O.onClick,void 0,void 0,w);let W;(W=O&&O.onVnodeBeforeMount)&&xe(W,w,C),Z&&Re(C,null,w,"beforeMount"),((W=O&&O.onVnodeMounted)||Z||B)&&Cr(()=>{W&&xe(W,w,C),B&&ce.enter(_),Z&&Re(C,null,w,"mounted")},b)}return _.nextSibling},E=(_,C,w,b,L,F,P)=>{P=P||!!C.dynamicChildren;const O=C.children,V=O.length;for(let J=0;J<V;J++){const Z=P?O[J]:O[J]=we(O[J]);if(_)_=a(_,Z,b,L,F,P);else{if(Z.type===ut&&!Z.children)continue;je=!0,s(null,Z,w,null,b,L,Ut(w),F)}}return _},I=(_,C,w,b,L,F)=>{const{slotScopeIds:P}=C;P&&(L=L?L.concat(P):P);const O=i(_),V=E(l(_),C,O,w,b,L,F);return V&&Ht(V)&&V.data==="]"?l(C.anchor=V):(je=!0,f(C.anchor=d("]"),O,V),V)},k=(_,C,w,b,L,F)=>{if(je=!0,C.el=null,F){const V=D(_);for(;;){const J=l(_);if(J&&J!==V)o(J);else break}}const P=l(_),O=i(_);return o(_),s(null,C,O,P,w,b,Ut(O),L),P},D=(_,C="[",w="]")=>{let b=0;for(;_;)if(_=l(_),_&&Ht(_)&&(_.data===C&&b++,_.data===w)){if(b===0)return l(_);b--}return _},q=(_,C,w)=>{const b=C.parentNode;b&&b.replaceChild(_,C);let L=w;for(;L;)L.vnode.el===C&&(L.vnode.el=L.subTree.el=_),L=L.parent},K=_=>_.nodeType===1&&_.tagName.toLowerCase()==="template";return[h,a]}const ge=Cr;function Vo(e){return jr(e)}function Do(e){return jr(e,Zi)}function jr(e,t){const s=Yn();s.__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:i,createText:o,createComment:f,setText:d,setElementText:h,parentNode:a,nextSibling:g,setScopeId:E=Ce,insertStaticContent:I}=e,k=(c,u,p,y=null,m=null,v=null,R=void 0,T=null,A=!!u.dynamicChildren)=>{if(c===u)return;c&&!Oe(c,u)&&(y=Mt(c),Ae(c,m,v,!0),c=null),u.patchFlag===-2&&(A=!1,u.dynamicChildren=null);const{type:x,ref:M,shapeFlag:j}=u;switch(x){case ut:D(c,u,p,y);break;case he:q(c,u,p,y);break;case Wt:c==null&&K(u,p,y,R);break;case pe:J(c,u,p,y,m,v,R,T,A);break;default:j&1?w(c,u,p,y,m,v,R,T,A):j&6?Z(c,u,p,y,m,v,R,T,A):(j&64||j&128)&&x.process(c,u,p,y,m,v,R,T,A,et)}M!=null&&m&&es(M,c&&c.ref,v,u||c,!u)},D=(c,u,p,y)=>{if(c==null)n(u.el=o(u.children),p,y);else{const m=u.el=c.el;u.children!==c.children&&d(m,u.children)}},q=(c,u,p,y)=>{c==null?n(u.el=f(u.children||""),p,y):u.el=c.el},K=(c,u,p,y)=>{[c.el,c.anchor]=I(c.children,u,p,y,c.el,c.anchor)},_=({el:c,anchor:u},p,y)=>{let m;for(;c&&c!==u;)m=g(c),n(c,p,y),c=m;n(u,p,y)},C=({el:c,anchor:u})=>{let p;for(;c&&c!==u;)p=g(c),r(c),c=p;r(u)},w=(c,u,p,y,m,v,R,T,A)=>{u.type==="svg"?R="svg":u.type==="math"&&(R="mathml"),c==null?b(u,p,y,m,v,R,T,A):P(c,u,m,v,R,T,A)},b=(c,u,p,y,m,v,R,T)=>{let A,x;const{props:M,shapeFlag:j,transition:N,dirs:H}=c;if(A=c.el=i(c.type,v,M&&M.is,M),j&8?h(A,c.children):j&16&&F(c.children,A,null,y,m,Es(c,v),R,T),H&&Re(c,null,y,"created"),L(A,c,c.scopeId,R,y),M){for(const Q in M)Q!=="value"&&!rt(Q)&&l(A,Q,null,M[Q],v,c.children,y,m,ke);"value"in M&&l(A,"value",null,M.value,v),(x=M.onVnodeBeforeMount)&&xe(x,y,c)}H&&Re(c,null,y,"beforeMount");const G=Ur(m,N);G&&N.beforeEnter(A),n(A,u,p),((x=M&&M.onVnodeMounted)||G||H)&&ge(()=>{x&&xe(x,y,c),G&&N.enter(A),H&&Re(c,null,y,"mounted")},m)},L=(c,u,p,y,m)=>{if(p&&E(c,p),y)for(let v=0;v<y.length;v++)E(c,y[v]);if(m){let v=m.subTree;if(u===v){const R=m.vnode;L(c,R,R.scopeId,R.slotScopeIds,m.parent)}}},F=(c,u,p,y,m,v,R,T,A=0)=>{for(let x=A;x<c.length;x++){const M=c[x]=T?$e(c[x]):we(c[x]);k(null,M,u,p,y,m,v,R,T)}},P=(c,u,p,y,m,v,R)=>{const T=u.el=c.el;let{patchFlag:A,dynamicChildren:x,dirs:M}=u;A|=c.patchFlag&16;const j=c.props||ee,N=u.props||ee;let H;if(p&&Ge(p,!1),(H=N.onVnodeBeforeUpdate)&&xe(H,p,u,c),M&&Re(u,c,p,"beforeUpdate"),p&&Ge(p,!0),x?O(c.dynamicChildren,x,T,p,y,Es(u,m),v):R||S(c,u,T,null,p,y,Es(u,m),v,!1),A>0){if(A&16)V(T,u,j,N,p,y,m);else if(A&2&&j.class!==N.class&&l(T,"class",null,N.class,m),A&4&&l(T,"style",j.style,N.style,m),A&8){const G=u.dynamicProps;for(let Q=0;Q<G.length;Q++){const te=G[Q],ie=j[te],ve=N[te];(ve!==ie||te==="value")&&l(T,te,ie,ve,m,c.children,p,y,ke)}}A&1&&c.children!==u.children&&h(T,u.children)}else!R&&x==null&&V(T,u,j,N,p,y,m);((H=N.onVnodeUpdated)||M)&&ge(()=>{H&&xe(H,p,u,c),M&&Re(u,c,p,"updated")},y)},O=(c,u,p,y,m,v,R)=>{for(let T=0;T<u.length;T++){const A=c[T],x=u[T],M=A.el&&(A.type===pe||!Oe(A,x)||A.shapeFlag&70)?a(A.el):p;k(A,x,M,null,y,m,v,R,!0)}},V=(c,u,p,y,m,v,R)=>{if(p!==y){if(p!==ee)for(const T in p)!rt(T)&&!(T in y)&&l(c,T,p[T],null,R,u.children,m,v,ke);for(const T in y){if(rt(T))continue;const A=y[T],x=p[T];A!==x&&T!=="value"&&l(c,T,x,A,R,u.children,m,v,ke)}"value"in y&&l(c,"value",p.value,y.value,R)}},J=(c,u,p,y,m,v,R,T,A)=>{const x=u.el=c?c.el:o(""),M=u.anchor=c?c.anchor:o("");let{patchFlag:j,dynamicChildren:N,slotScopeIds:H}=u;H&&(T=T?T.concat(H):H),c==null?(n(x,p,y),n(M,p,y),F(u.children||[],p,M,m,v,R,T,A)):j>0&&j&64&&N&&c.dynamicChildren?(O(c.dynamicChildren,N,p,m,v,R,T),(u.key!=null||m&&u===m.subTree)&&cn(c,u,!0)):S(c,u,p,M,m,v,R,T,A)},Z=(c,u,p,y,m,v,R,T,A)=>{u.slotScopeIds=T,c==null?u.shapeFlag&512?m.ctx.activate(u,p,y,R,A):ce(u,p,y,m,v,R,A):ne(c,u,A)},ce=(c,u,p,y,m,v,R)=>{const T=c.component=oo(c,y,m);if(Ft(c)&&(T.ctx.renderer=et),co(T),T.asyncDep){if(m&&m.registerDep(T,B),!c.el){const A=T.subTree=se(he);q(null,A,u,p)}}else B(T,c,u,p,m,v,R)},ne=(c,u,p)=>{const y=u.component=c.component;if(fi(c,u,p))if(y.asyncDep&&!y.asyncResolved){W(y,u,p);return}else y.next=u,si(y.update),y.effect.dirty=!0,y.update();else u.el=c.el,y.vnode=u},B=(c,u,p,y,m,v,R)=>{const T=()=>{if(c.isMounted){let{next:M,bu:j,u:N,parent:H,vnode:G}=c;{const tt=Hr(c);if(tt){M&&(M.el=G.el,W(c,M,R)),tt.asyncDep.then(()=>{c.isUnmounted||T()});return}}let Q=M,te;Ge(c,!1),M?(M.el=G.el,W(c,M,R)):M=G,j&&ms(j),(te=M.props&&M.props.onVnodeBeforeUpdate)&&xe(te,H,M,G),Ge(c,!0);const ie=xs(c),ve=c.subTree;c.subTree=ie,k(ve,ie,a(ve.el),Mt(ve),c,m,v),M.el=ie.el,Q===null&&sn(c,ie.el),N&&ge(N,m),(te=M.props&&M.props.onVnodeUpdated)&&ge(()=>xe(te,H,M,G),m)}else{let M;const{el:j,props:N}=u,{bm:H,m:G,parent:Q}=c,te=ct(u);if(Ge(c,!1),H&&ms(H),!te&&(M=N&&N.onVnodeBeforeMount)&&xe(M,Q,u),Ge(c,!0),j&&ps){const ie=()=>{c.subTree=xs(c),ps(j,c.subTree,c,m,null)};te?u.type.__asyncLoader().then(()=>!c.isUnmounted&&ie()):ie()}else{const ie=c.subTree=xs(c);k(null,ie,p,y,c,m,v),u.el=ie.el}if(G&&ge(G,m),!te&&(M=N&&N.onVnodeMounted)){const ie=u;ge(()=>xe(M,Q,ie),m)}(u.shapeFlag&256||Q&&ct(Q.vnode)&&Q.vnode.shapeFlag&256)&&c.a&&ge(c.a,m),c.isMounted=!0,u=p=y=null}},A=c.effect=new qs(T,Ce,()=>os(x),c.scope),x=c.update=()=>{A.dirty&&A.run()};x.id=c.uid,Ge(c,!0),x()},W=(c,u,p)=>{u.component=c;const y=c.vnode.props;c.vnode=u,c.next=null,Wi(c,u.props,y,p),Ji(c,u.children,p),Qe(),Fn(c),ze()},S=(c,u,p,y,m,v,R,T,A=!1)=>{const x=c&&c.children,M=c?c.shapeFlag:0,j=u.children,{patchFlag:N,shapeFlag:H}=u;if(N>0){if(N&128){Ot(x,j,p,y,m,v,R,T,A);return}else if(N&256){Le(x,j,p,y,m,v,R,T,A);return}}H&8?(M&16&&ke(x,m,v),j!==x&&h(p,j)):M&16?H&16?Ot(x,j,p,y,m,v,R,T,A):ke(x,m,v,!0):(M&8&&h(p,""),H&16&&F(j,p,y,m,v,R,T,A))},Le=(c,u,p,y,m,v,R,T,A)=>{c=c||st,u=u||st;const x=c.length,M=u.length,j=Math.min(x,M);let N;for(N=0;N<j;N++){const H=u[N]=A?$e(u[N]):we(u[N]);k(c[N],H,p,null,m,v,R,T,A)}x>M?ke(c,m,v,!0,!1,j):F(u,p,y,m,v,R,T,A,j)},Ot=(c,u,p,y,m,v,R,T,A)=>{let x=0;const M=u.length;let j=c.length-1,N=M-1;for(;x<=j&&x<=N;){const H=c[x],G=u[x]=A?$e(u[x]):we(u[x]);if(Oe(H,G))k(H,G,p,null,m,v,R,T,A);else break;x++}for(;x<=j&&x<=N;){const H=c[j],G=u[N]=A?$e(u[N]):we(u[N]);if(Oe(H,G))k(H,G,p,null,m,v,R,T,A);else break;j--,N--}if(x>j){if(x<=N){const H=N+1,G=H<M?u[H].el:y;for(;x<=N;)k(null,u[x]=A?$e(u[x]):we(u[x]),p,G,m,v,R,T,A),x++}}else if(x>N)for(;x<=j;)Ae(c[x],m,v,!0),x++;else{const H=x,G=x,Q=new Map;for(x=G;x<=N;x++){const ye=u[x]=A?$e(u[x]):we(u[x]);ye.key!=null&&Q.set(ye.key,x)}let te,ie=0;const ve=N-G+1;let tt=!1,gn=0;const ht=new Array(ve);for(x=0;x<ve;x++)ht[x]=0;for(x=H;x<=j;x++){const ye=c[x];if(ie>=ve){Ae(ye,m,v,!0);continue}let Fe;if(ye.key!=null)Fe=Q.get(ye.key);else for(te=G;te<=N;te++)if(ht[te-G]===0&&Oe(ye,u[te])){Fe=te;break}Fe===void 0?Ae(ye,m,v,!0):(ht[Fe-G]=x+1,Fe>=gn?gn=Fe:tt=!0,k(ye,u[Fe],p,null,m,v,R,T,A),ie++)}const pn=tt?Qi(ht):st;for(te=pn.length-1,x=ve-1;x>=0;x--){const ye=G+x,Fe=u[ye],_n=ye+1<M?u[ye+1].el:y;ht[x]===0?k(null,Fe,p,_n,m,v,R,T,A):tt&&(te<0||x!==pn[te]?qe(Fe,p,_n,2):te--)}}},qe=(c,u,p,y,m=null)=>{const{el:v,type:R,transition:T,children:A,shapeFlag:x}=c;if(x&6){qe(c.component.subTree,u,p,y);return}if(x&128){c.suspense.move(u,p,y);return}if(x&64){R.move(c,u,p,et);return}if(R===pe){n(v,u,p);for(let j=0;j<A.length;j++)qe(A[j],u,p,y);n(c.anchor,u,p);return}if(R===Wt){_(c,u,p);return}if(y!==2&&x&1&&T)if(y===0)T.beforeEnter(v),n(v,u,p),ge(()=>T.enter(v),m);else{const{leave:j,delayLeave:N,afterLeave:H}=T,G=()=>n(v,u,p),Q=()=>{j(v,()=>{G(),H&&H()})};N?N(v,G,Q):Q()}else n(v,u,p)},Ae=(c,u,p,y=!1,m=!1)=>{const{type:v,props:R,ref:T,children:A,dynamicChildren:x,shapeFlag:M,patchFlag:j,dirs:N}=c;if(T!=null&&es(T,null,p,c,!0),M&256){u.ctx.deactivate(c);return}const H=M&1&&N,G=!ct(c);let Q;if(G&&(Q=R&&R.onVnodeBeforeUnmount)&&xe(Q,u,c),M&6)zr(c.component,p,y);else{if(M&128){c.suspense.unmount(p,y);return}H&&Re(c,null,u,"beforeUnmount"),M&64?c.type.remove(c,u,p,m,et,y):x&&(v!==pe||j>0&&j&64)?ke(x,u,p,!1,!0):(v===pe&&j&384||!m&&M&16)&&ke(A,u,p),y&&dn(c)}(G&&(Q=R&&R.onVnodeUnmounted)||H)&&ge(()=>{Q&&xe(Q,u,c),H&&Re(c,null,u,"unmounted")},p)},dn=c=>{const{type:u,el:p,anchor:y,transition:m}=c;if(u===pe){Qr(p,y);return}if(u===Wt){C(c);return}const v=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:R,delayLeave:T}=m,A=()=>R(p,v);T?T(c.el,v,A):A()}else v()},Qr=(c,u)=>{let p;for(;c!==u;)p=g(c),r(c),c=p;r(u)},zr=(c,u,p)=>{const{bum:y,scope:m,update:v,subTree:R,um:T}=c;y&&ms(y),m.stop(),v&&(v.active=!1,Ae(R,c,u,p)),T&&ge(T,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())},ke=(c,u,p,y=!1,m=!1,v=0)=>{for(let R=v;R<c.length;R++)Ae(c[R],u,p,y,m)},Mt=c=>c.shapeFlag&6?Mt(c.component.subTree):c.shapeFlag&128?c.suspense.next():g(c.anchor||c.el);let hs=!1;const hn=(c,u,p)=>{c==null?u._vnode&&Ae(u._vnode,null,null,!0):k(u._vnode||null,c,u,null,null,null,p),hs||(hs=!0,Fn(),Xt(),hs=!1),u._vnode=c},et={p:k,um:Ae,m:qe,r:dn,mt:ce,mc:F,pc:S,pbc:O,n:Mt,o:e};let gs,ps;return t&&([gs,ps]=t(et)),{render:hn,hydrate:gs,createApp:Vi(hn,gs)}}function Es({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Ge({effect:e,update:t},s){e.allowRecurse=t.allowRecurse=s}function Ur(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function cn(e,t,s=!1){const n=e.children,r=t.children;if(U(n)&&U(r))for(let l=0;l<n.length;l++){const i=n[l];let o=r[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[l]=$e(r[l]),o.el=i.el),s||cn(i,o)),o.type===ut&&(o.el=i.el)}}function Qi(e){const t=e.slice(),s=[0];let n,r,l,i,o;const f=e.length;for(n=0;n<f;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(l=0,i=s.length-1;l<i;)o=l+i>>1,e[s[o]]<d?l=o+1:i=o;d<e[s[l]]&&(l>0&&(t[n]=s[l-1]),s[l]=n)}}for(l=s.length,i=s[l-1];l-- >0;)s[l]=i,i=t[i];return s}function Hr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hr(t)}const zi=e=>e.__isTeleport,mt=e=>e&&(e.disabled||e.disabled===""),Un=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Hn=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Us=(e,t)=>{const s=e&&e.to;return le(s)?t?t(s):null:s},eo={name:"Teleport",__isTeleport:!0,process(e,t,s,n,r,l,i,o,f,d){const{mc:h,pc:a,pbc:g,o:{insert:E,querySelector:I,createText:k,createComment:D}}=d,q=mt(t.props);let{shapeFlag:K,children:_,dynamicChildren:C}=t;if(e==null){const w=t.el=k(""),b=t.anchor=k("");E(w,s,n),E(b,s,n);const L=t.target=Us(t.props,I),F=t.targetAnchor=k("");L&&(E(F,L),i==="svg"||Un(L)?i="svg":(i==="mathml"||Hn(L))&&(i="mathml"));const P=(O,V)=>{K&16&&h(_,O,V,r,l,i,o,f)};q?P(s,b):L&&P(L,F)}else{t.el=e.el;const w=t.anchor=e.anchor,b=t.target=e.target,L=t.targetAnchor=e.targetAnchor,F=mt(e.props),P=F?s:b,O=F?w:L;if(i==="svg"||Un(b)?i="svg":(i==="mathml"||Hn(b))&&(i="mathml"),C?(g(e.dynamicChildren,C,P,r,l,i,o),cn(e,t,!0)):f||a(e,t,P,O,r,l,i,o,!1),q)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$t(t,s,w,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=Us(t.props,I);V&&$t(t,V,null,d,0)}else F&&$t(t,b,L,d,1)}$r(t)},remove(e,t,s,n,{um:r,o:{remove:l}},i){const{shapeFlag:o,children:f,anchor:d,targetAnchor:h,target:a,props:g}=e;if(a&&l(h),i&&l(d),o&16){const E=i||!mt(g);for(let I=0;I<f.length;I++){const k=f[I];r(k,t,s,E,!!k.dynamicChildren)}}},move:$t,hydrate:to};function $t(e,t,s,{o:{insert:n},m:r},l=2){l===0&&n(e.targetAnchor,t,s);const{el:i,anchor:o,shapeFlag:f,children:d,props:h}=e,a=l===2;if(a&&n(i,t,s),(!a||mt(h))&&f&16)for(let g=0;g<d.length;g++)r(d[g],t,s,2);a&&n(o,t,s)}function to(e,t,s,n,r,l,{o:{nextSibling:i,parentNode:o,querySelector:f}},d){const h=t.target=Us(t.props,f);if(h){const a=h._lpa||h.firstChild;if(t.shapeFlag&16)if(mt(t.props))t.anchor=d(i(e),t,o(e),s,n,r,l),t.targetAnchor=a;else{t.anchor=i(e);let g=a;for(;g;)if(g=i(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,h._lpa=t.targetAnchor&&i(t.targetAnchor);break}d(a,t,h,s,n,r,l)}$r(t)}return t.anchor&&i(t.anchor)}const Ko=eo;function $r(e){const t=e.ctx;if(t&&t.ut){let s=e.children[0].el;for(;s&&s!==e.targetAnchor;)s.nodeType===1&&s.setAttribute("data-v-owner",t.uid),s=s.nextSibling;t.ut()}}const pe=Symbol.for("v-fgt"),ut=Symbol.for("v-txt"),he=Symbol.for("v-cmt"),Wt=Symbol.for("v-stc"),bt=[];let Te=null;function fn(e=!1){bt.push(Te=e?null:[])}function Vr(){bt.pop(),Te=bt[bt.length-1]||null}let at=1;function $n(e){at+=e}function Dr(e){return e.dynamicChildren=at>0?Te||st:null,Vr(),at>0&&Te&&Te.push(e),e}function Wo(e,t,s,n,r,l){return Dr(qr(e,t,s,n,r,l,!0))}function Kr(e,t,s,n,r){return Dr(se(e,t,s,n,r,!0))}function vt(e){return e?e.__v_isVNode===!0:!1}function Oe(e,t){return e.type===t.type&&e.key===t.key}const as="__vInternal",Wr=({key:e})=>e??null,qt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ae(e)||$(e)?{i:re,r:e,k:t,f:!!s}:e:null);function qr(e,t=null,s=null,n=0,r=null,l=e===pe?0:1,i=!1,o=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wr(t),ref:t&&qt(t),scopeId:br,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:re};return o?(un(f,s),l&128&&e.normalize(f)):s&&(f.shapeFlag|=le(s)?8:16),at>0&&!i&&Te&&(f.patchFlag>0||l&6)&&f.patchFlag!==32&&Te.push(f),f}const se=so;function so(e,t=null,s=null,n=0,r=null,l=!1){if((!e||e===xr)&&(e=he),vt(e)){const o=We(e,t,!0);return s&&un(o,s),at>0&&!l&&Te&&(o.shapeFlag&6?Te[Te.indexOf(e)]=o:Te.push(o)),o.patchFlag|=-2,o}if(go(e)&&(e=e.__vccOpts),t){t=no(t);let{class:o,style:f}=t;o&&!le(o)&&(t.class=ls(o)),z(f)&&(ur(f)&&!U(f)&&(f=fe({},f)),t.style=rs(f))}const i=le(e)?1:ui(e)?128:zi(e)?64:z(e)?4:$(e)?2:0;return qr(e,t,s,n,r,i,l,!0)}function no(e){return e?ur(e)||as in e?fe({},e):e:null}function We(e,t,s=!1){const{props:n,ref:r,patchFlag:l,children:i}=e,o=t?ro(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Wr(o),ref:t&&t.ref?s&&r?U(r)?r.concat(qt(t)):[r,qt(t)]:qt(t):r,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?l===-1?16:l|16:l,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 Gr(e=" ",t=0){return se(ut,null,e,t)}function qo(e="",t=!1){return t?(fn(),Kr(he,null,e)):se(he,null,e)}function we(e){return e==null||typeof e=="boolean"?se(he):U(e)?se(pe,null,e.slice()):typeof e=="object"?$e(e):se(ut,null,String(e))}function $e(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:We(e)}function un(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(U(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),un(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!(as in t)?t._ctx=re:r===3&&re&&(re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $(t)?(t={default:t,_ctx:re},s=32):(t=String(t),n&64?(s=16,t=[Gr(t)]):s=8);e.children=t,e.shapeFlag|=s}function ro(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=ls([t.class,n.class]));else if(r==="style")t.style=rs([t.style,n.style]);else if(ss(r)){const l=t[r],i=n[r];i&&l!==i&&!(U(l)&&l.includes(i))&&(t[r]=l?[].concat(l,i):i)}else r!==""&&(t[r]=n[r])}return t}function xe(e,t,s,n=null){Ee(e,t,7,[s,n])}const lo=Pr();let io=0;function oo(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||lo,l={uid:io++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new xl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:kr(n,r),emitsOptions:mr(n,r),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:n.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:s,suspenseId:s?s.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 l.ctx={_:l},l.root=t?t.root:l,l.emit=ri.bind(null,l),e.ce&&e.ce(l),l}let oe=null;const Jr=()=>oe||re;let ts,Hs;{const e=Yn(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),l=>{r.length>1?r.forEach(i=>i(l)):r[0](l)}};ts=t("__VUE_INSTANCE_SETTERS__",s=>oe=s),Hs=t("__VUE_SSR_SETTERS__",s=>It=s)}const Rt=e=>{const t=oe;return ts(e),e.scope.on(),()=>{e.scope.off(),ts(t)}},Vn=()=>{oe&&oe.scope.off(),ts(null)};function Yr(e){return e.vnode.shapeFlag&4}let It=!1;function co(e,t=!1){t&&Hs(t);const{props:s,children:n}=e.vnode,r=Yr(e);Ki(e,s,r,t),Gi(e,n);const l=r?fo(e,t):void 0;return t&&Hs(!1),l}function fo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=ar(new Proxy(e.ctx,Bi));const{setup:n}=s;if(n){const r=e.setupContext=n.length>1?ao(e):null,l=Rt(e);Qe();const i=De(n,e,0,[e.props,r]);if(ze(),l(),qn(i)){if(i.then(Vn,Vn),t)return i.then(o=>{$s(e,o,t)}).catch(o=>{dt(o,e,0)});e.asyncDep=i}else $s(e,i,t)}else Xr(e,t)}function $s(e,t,s){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=gr(t)),Xr(e,s)}let Dn;function Xr(e,t,s){const n=e.type;if(!e.render){if(!t&&Dn&&!n.render){const r=n.template||ln(e).template;if(r){const{isCustomElement:l,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:f}=n,d=fe(fe({isCustomElement:l,delimiters:o},i),f);n.render=Dn(r,d)}}e.render=n.render||Ce}{const r=Rt(e);Qe();try{Ni(e)}finally{ze(),r()}}}function uo(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,s){return _e(e,"get","$attrs"),t[s]}}))}function ao(e){const t=s=>{e.exposed=s||{}};return{get attrs(){return uo(e)},slots:e.slots,emit:e.emit,expose:t}}function ds(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gr(ar(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in _t)return _t[s](e)},has(t,s){return s in t||s in _t}}))}function ho(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function go(e){return $(e)&&"__vccOpts"in e}const po=(e,t)=>Kl(e,t,It);function Go(e,t,s=ee){const n=Jr(),r=Me(t),l=At(t),i=Yl((f,d)=>{let h;return bi(()=>{const a=e[t];Pe(h,a)&&(h=a,d())}),{get(){return f(),s.get?s.get(h):h},set(a){const g=n.vnode.props;!(g&&(t in g||r in g||l in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${l}`in g))&&Pe(a,h)&&(h=a,d()),n.emit(`update:${t}`,s.set?s.set(a):a)}}}),o=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let f=0;return{next(){return f<2?{value:f++?e[o]||{}:i,done:!1}:{done:!0}}}},i}function Jo(e,t,s){const n=arguments.length;return n===2?z(t)&&!U(t)?vt(t)?se(e,null,[t]):se(e,t):se(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&vt(s)&&(s=[s]),se(e,t,s))}const _o="3.4.21";let Zr,an;Zr=navigator.userAgent,an=document.body?document.body.offsetWidth:window.screen.width;const Yo=/Android|iPhone|iPad|iPod|webOS/i.test(Zr),Xo=an<640,Zo=an>=1024,yo=["whatsapp","instagram","facebook","twitter","youtube","tiktok","pinterest","threads"],mo={},bo=()=>{if(!globalThis.$storefront)return;const{settings:e}=globalThis.$storefront;yo.forEach(t=>{e[t]&&(mo[t]=e[t])})};bo();globalThis.__sfIds||(globalThis.__sfIds={});const Qo=(e="_")=>(typeof globalThis.__sfIds[e]!="number"&&(globalThis.__sfIds[e]=-1),`${e}${++globalThis.__sfIds[e]}`),zo=(e,t=300)=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):setTimeout(e,t)},xo=e=>e.replace(/[ÁáÃãÂâÀà]/g,"a").replace(/[ÉéÊê]/g,"e").replace(/[Íí]/g,"i").replace(/[ÕõÓóÔô]/g,"o").replace(/[Úú]/g,"u").replace(/[Çç]/g,"c"),ec=e=>xo(e.trim()).toLowerCase().replace(/[\W\r\n]/gm,"-").replace(/-{2,}/g,"-").replace(/(^-)|(-$)/g,""),wo=e=>e.toLowerCase().replace(/Á/g,"á").replace(/Ã/g,"ã").replace(/Â/g,"â").replace(/À/g,"à").replace(/É/g,"é").replace(/Ê/g,"ê").replace(/Í/g,"í").replace(/Õ/g,"õ").replace(/Ó/g,"ó").replace(/Ô/g,"ô").replace(/Ú/g,"ú").replace(/Ç/g,"ç"),Co=e=>wo(e.trim()).replace(/[\r\n]/gm," ").replace(/[^\w-&%áãâàéêíõóôúç]/g," ").replace(/\s{2,}/g," "),tc=(e,t="/s/")=>`${t}${encodeURIComponent(Co(e))}`,sc=(e,t=0)=>{for(;e.offsetParent;)t+=e.offsetTop,e=e.offsetParent;return window.scroll({top:t,behavior:"smooth"})};export{Kr as $,Xn as A,Jo as B,No as C,el as D,fe as E,pe as F,Ci as G,z as H,hl as I,ss as J,Kn as K,At as L,Me as M,Ws as N,Eo as O,Ao as P,Ee as Q,_s as R,ql as S,fr as T,ei as U,ae as V,Cl as W,Ro as X,Dl as Y,Ho as Z,To as _,Dt as a,Gr as a0,Fo as a1,Po as a2,ro as a3,vo as a4,no as a5,ec as a6,xo as a7,Oo as a8,tc as a9,$n as aa,Qo as ab,rs as ac,Di as ad,Ir as ae,ko as af,Kt as ag,X as ah,sc as ai,Zo as aj,$o as ak,Go as al,Yo as am,Rr as an,Lo as ao,Xo as ap,mo as aq,Ko as ar,So as as,We as at,Uo as au,zo as b,po as c,vi as d,Wo as e,qr as f,Jr as g,se as h,li as i,Mo as j,fn as k,Bo as l,jo as m,ls as n,Fr as o,qo as p,$ as q,Zs as r,Io as s,le as t,dl as u,Vo as v,ws as w,Do as x,U as y,ms as z};
@@ -0,0 +1 @@
1
+ import{u as _}from"./customer-session.Cctko5_9.js";import{e as l}from"./index.BCNoXz_Z.js";import{p as y}from"./price.CHiL6Z1J.js";import{c as m,w as q}from"./sf-utils.C9ygvYIB.js";const g=()=>{let i=Math.floor(Math.random()*1e6).toString()+Date.now();for(;i.length<24;)i+="0";return i};function h(i){return{all:i=i||new Map,on:function(t,r){var n=i.get(t);n?n.push(r):i.set(t,[r])},off:function(t,r){var n=i.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):i.set(t,[]))},emit:function(t,r){var n=i.get(t);n&&n.slice().map(function(o){o(r)}),(n=i.get("*"))&&n.slice().map(function(o){o(t,r)})}}}const b=(i,{flags:t})=>!i.flags&&!t?!0:!i.flags||!t||i.flags.length!==t.length?!1:i.flags.every(r=>t.includes(r)),v=(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 o=0;o<r.length;o++){const a=r[o];if(!a.kit_product&&a.product_id===t.product_id&&a.variation_id===t.variation_id&&(!a.customizations||!a.customizations.length)&&b(a,t))return a.quantity+=t.quantity,t.price&&(a.price=t.price),t.final_price&&(a.final_price=t.final_price),a}const n={...t};if((!t._id||t._id===t.variation_id||r.find(({_id:o})=>o===t._id))&&(n._id=g()),t.customizations){const o=[];t.customizations.forEach((a,c)=>{o[c]={...a}}),n.customizations=o}return r.push(n),n},C=(i,t,r)=>{(typeof r!="number"||Number.isNaN(r))&&(r=i.min_quantity||1);const n=i.min_quantity||0,o=t&&i.variations?i.variations.find(({_id:c})=>c===t):void 0,a={product_id:i._id,variation_id:t,sku:o?.sku||i.sku,name:o?.name||i.name,slug:i.slug,production_time:o?.production_time||i.production_time,currency_id:i.currency_id,currency_symbol:i.currency_symbol,base_price:o?.base_price||i.base_price,max_quantity:i.quantity,quantity:n>0?Math.max(n,r):r,price:y(i)};return o?.picture_id&&i.pictures&&(a.picture=i.pictures.find(c=>c._id===o.picture_id)),!a.picture&&i.pictures&&([a.picture]=i.pictures),a},k="ecomShoppingCart",E={subtotal:0,items:[]},s=_(k,E),S=m(()=>s.items.reduce((i,t)=>i+t.quantity,0)),x=i=>{v(s,i)},T=i=>{for(let t=0;t<s.items.length;t++)if(s.items[t]._id===i){s.items.splice(t,1);break}},j=(i,t,r)=>x(C(i,t,r)),f=h(),p=()=>s.items.map(i=>({...i}));let u=p();const z=l(i=>{["addCartItem","removeCartItem"].forEach(t=>{const r=t==="addCartItem",n=r?i:u,o=r?u:i;n.forEach(a=>{if(!a.quantity)return;const e=o.find(({_id:d})=>d===a._id)?.quantity||0;a.quantity>e&&f.emit(t,{...a,quantity:a.quantity-e})})}),u=p()},200);q(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:e}=a.add_to_price;r+=c==="fixed"?e:t.price*(e/100)}}),t.final_price=r;const n=t.min_quantity||1,o=t.max_quantity;typeof t.quantity!="number"||Number.isNaN(t.quantity)||t.quantity<n?setTimeout(()=>{t.quantity=n},9):o&&t.quantity>o&&setTimeout(()=>{t.quantity=o},9)}),s.subtotal=i.reduce((t,r)=>t+r.quantity*(r.final_price||r.price),0),z(i)});const D={on:f.on,off:f.off};export{j as a,D as c,C as p,T as r,s,S as t};
@@ -0,0 +1 @@
1
+ import{u as $,b as P,d as y,c as C}from"./customer-session.Cctko5_9.js";import{c as R}from"./shopping-cart.Cqc6p5UR.js";import{a as m,r as T,c as b,Y as I,w as E}from"./sf-utils.C9ygvYIB.js";import{e as x}from"./index.BCNoXz_Z.js";import{u as G}from"./afetch.DPLba2tr.js";import{n as N}from"./name.Dll7Wwmg.js";import{p as A}from"./price.CHiL6Z1J.js";const M="ecomSeachHistory",l=$(M,[]);for(let e=0;e<l.length;e++)typeof l[e]!="string"&&(l.splice(e,1),e-=1);const L=async({term:e,params:s,fields:o,url:t="search/v1"})=>{if(typeof e=="string"&&(e=e.trim(),e.length<2))return{data:{result:[],meta:null}};const a=await P.get(t,{fields:o,params:e?{...s,term:e}:s});if(e&&a.data.result.length){const r=e,n=l.findIndex(h=>h.includes(r)&&!h.replace(r,"").includes(" "));if(n>-1){const h=l[n];l.splice(n,1),l.unshift(h)}else{const h=l.findIndex(d=>r.startsWith(d));h>-1&&l.splice(h,1),l.unshift(e)}for(;l.length>20;)l.pop()}return a};class O{fields;term=m(null);isWithCount=m(!0);isWithBuckets=m(!0);params=T({});pageSize=m(24);pageNumber=m(1);#i=[];#s=m(!1);isFetching=b(()=>this.#s.value);#e=m(!1);wasFetched=b(()=>this.#e.value);#a=m(null);#t;fetching=b(()=>this.#a.value);#n=m(null);fetchError=b(()=>this.#n.value);products=I([]);meta=I({offset:0,limit:0,fields:[],sort:[],query:{}});#o;constructor({fields:s,debounce:o=150}={}){this.fields=s,this.#o=x(t=>(this.#s.value=!0,L(t)),o),E([this.term,this.params,this.pageSize],()=>{this.wasFetched.value&&(this.pageNumber.value=1,this.#e.value=!1)}),E(this.pageNumber,()=>{this.#e.value=!1})}async fetch(s){s!==void 0&&s!==this.term.value&&(this.term.value=s,this.pageNumber.value=1);const o=this.pageSize.value,t=o*(this.pageNumber.value-1);this.#a.value||(this.#a.value=new Promise(n=>{this.#t=n}));let a;const r={term:this.term.value,params:{...this.params,limit:o,offset:t,count:this.isWithCount.value||void 0,buckets:this.isWithBuckets.value||void 0},fields:this.fields};try{for(let n=0;n<this.#i.length;n++)this.#i[n](r);a=await this.#o(r)}catch(n){throw this.#t&&(this.#n.value=n,this.#t()),n}if(a){this.#s.value=!1,this.#e.value=!0;const{data:n}=a;n.meta&&this.setResult(n),this.#t&&this.#t()}}addMiddleware(s){this.#i.push(s)}setResult(s){s.meta&&Object.assign(this.meta,s.meta),s.result&&(this.products.splice(0),s.result.forEach(o=>this.products.push(o))),s.meta&&s.result&&setTimeout(()=>{this.#e.value=!0},9)}}const c={},f={},W=()=>{f.resolve||(f.waiting=new Promise(e=>{f.resolve=e}))};W();const F=()=>{let e="";return window.location.pathname.startsWith("/~")&&(e=new URLSearchParams(window.location.search).get("url")||""),e||(e=window.location.toString()),{page_location:e,language:globalThis.$storefront.settings.lang||"pt_br",page_title:document.title,user_agent:navigator.userAgent}},V=()=>({...f.params||F(),...c,user_id:C.value._id,utm:G}),S="GtagEvent";let _={},g="";const p=async(e,s)=>{const o=s;if(e==="page_view"){_={};const{apiContext:t}=window.$storefront;if(g="",t){const{name:a}=t.doc;switch(t.resource){case"categories":g=`Category: ${a}`;break;case"brands":g=`Brand: ${a}`;break;case"collections":g=`Collection: ${a}`;break}}else{const{pathname:a}=window.location;a==="/"?g="Home":(/^\/s\/?/.test(a)||a==="/search"||a==="/busca")&&(g="Search results")}f.resolve&&(f.params=s,f.resolve(),f.resolve=null)}else f.waiting&&await f.waiting,e==="view_item"&&o.items?.forEach(t=>{if(t.index!==void 0)return;if(!t.item_list_id&&!t.item_list_name){const{apiContext:r}=window.$storefront;r?.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||g;a&&(_[a]?_[a]+=1:_[a]=1,t.index=_[a],!t.item_list_id&&!t.item_list_name&&(t.item_list_name=a))}),typeof o.value=="number"&&!o.currency&&(o.currency=window.ECOM_CURRENCY||"BRL");try{const t={type:S,...V(),event:{name:e,params:o}};window.postMessage(t,window.origin)}catch(t){console.error(t)}},Y=e=>{window.addEventListener("message",({data:s})=>{s.type===S&&e(s)})},q=e=>{const[s,...o]=N(e).split(" / "),t={item_name:s,item_id:e.sku,price:Math.round(A(e)*100)/100,object_id:e._id};o&&o.length?t.item_variant=o.join(" / "):e.variation_id&&(t.item_name=s.replace(window.__customGTMVariantRegex||/\s[^\s]+$/,""),t.item_variant=s.replace(t.item_name,"").trim()),(e.quantity===0||e.quantity&&e.product_id)&&(t.quantity=e.quantity);const{brands:a,categories:r}=e;if(a?.length&&(t.item_brand=a[0].name),r?.length)for(let n=0;n<r.length;n++){const{name:h}=r[n];if(n===0)t.item_category=h;else if(t[`item_category${n+1}`]=h,n===4)break}return t},Q=({experimentId:e=window.AB_EXPERIMENT_ID}={})=>{const{gtag:s,GTAG_TAG_ID:o,GA_TRACKING_ID:t,GIT_BRANCH:a}=window,r=o||t,n=a&&e?`${e}-${a}`:a?.startsWith("main-")&&a||null;typeof s=="function"&&(r&&["client_id","session_id","gclid"].forEach(i=>{s("get",r,i,u=>{c[i==="gclid"?i:`g_${i}`]=u})}),n&&s("event","experience_impression",{exp_variant_string:n}));const h=new URL(window.location.toString());["gclid","fbclid","ttclid"].forEach(i=>{const u=c[i]||h.searchParams.get(i);u?(c[i]=u,sessionStorage.setItem(`analytics_${i}`,u)):c[i]=sessionStorage.getItem(`analytics_${i}`)||void 0});const d=["_fbp"];return c.fbclid||d.push("_fbc"),c.g_client_id||d.push("_ga"),d.forEach(i=>{document.cookie.split(";").forEach(u=>{const[w,v]=u.split("=");if(w.trim()===i&&v)switch(i){case"_fbp":c.fbp=v;break;case"_fbc":c.fbclid=v;break;case"_ga":c.g_client_id=v.substring(6);break}})}),["client_id","session_id"].forEach(i=>{const u=i==="client_id"?localStorage:sessionStorage,w=u.getItem(`analytics_${i}`);w?c[i]=w:c[i]=c[`g_${i}`]||`${Math.ceil(Math.random()*1e6)}.${Math.ceil(Math.random()*1e6)}`,u.setItem(`analytics_${i}`,c[i])}),y.value?p("login",{}):E(y,()=>p("login",{}),{once:!0}),R.on("*",(i,u)=>{p(i==="addCartItem"?"add_to_cart":"remove_from_cart",{items:[q(u)]})}),E(l,()=>{const i=l[0];i&&p("search",{search_term:i})}),window.location.pathname.startsWith("/s")&&setTimeout(()=>{let i=new URLSearchParams(window.location.search).get("q");i||(i=decodeURIComponent(window.location.pathname.split("/")[2])),i&&typeof i=="string"&&p("view_search_results",{search_term:i})},300),{expVariantString:n}};export{O as S,F as a,V as b,p as e,q as g,l as s,c as t,Q as u,Y as w};
@@ -1 +1 @@
1
- import{s as u,w as c}from"./sf-utils.xmJHVMAX.js";function d(n){let i,s;Array.isArray(n)&&(i=n[1],s=n[2],n=n[0]);const r=u();if(window.$isCmsPreview){const a=btoa(JSON.stringify({filename:n})),o={type:"open",filename:n,field:i,subfield:s,id:a};window.parent.postMessage(o,window.location.origin),window.addEventListener("message",t=>{t.data.id===a&&(i?r.value=s?t.data.data[i][s]:t.data.data[i]:r.value=t.data.data)})}return{liveContent:r}}const l=({cmsPreview:n},i)=>{if(n){const{contentFilename:s,sectionIndex:r}=n,{liveContent:a}=d([s,"sections",r]);return i&&c(a,o=>{o&&Object.keys(i).forEach(t=>{if(i[t].value!==void 0){if(o[t]===void 0)return;i[t].value=o[t];return}if(o[t]){if(Array.isArray(i[t])){i[t].splice(0),o[t].forEach(e=>i[t].push(e));return}Object.assign(i[t],o[t])}})}),{liveContent:a}}return null};export{l as a,d as u};
1
+ import{s as u,w as c}from"./sf-utils.C9ygvYIB.js";function d(n){let i,s;Array.isArray(n)&&(i=n[1],s=n[2],n=n[0]);const r=u();if(window.$isCmsPreview){const a=btoa(JSON.stringify({filename:n})),o={type:"open",filename:n,field:i,subfield:s,id:a};window.parent.postMessage(o,window.location.origin),window.addEventListener("message",t=>{t.data.id===a&&(i?r.value=s?t.data.data[i][s]:t.data.data[i]:r.value=t.data.data)})}return{liveContent:r}}const l=({cmsPreview:n},i)=>{if(n){const{contentFilename:s,sectionIndex:r}=n,{liveContent:a}=d([s,"sections",r]);return i&&c(a,o=>{o&&Object.keys(i).forEach(t=>{if(i[t].value!==void 0){if(o[t]===void 0)return;i[t].value=o[t];return}if(o[t]){if(Array.isArray(i[t])){i[t].splice(0),o[t].forEach(e=>i[t].push(e));return}Object.assign(i[t],o[t])}})}),{liveContent:a}}return null};export{l as a,d as u};
@@ -0,0 +1 @@
1
+ import{b}from"./customer-session.Cctko5_9.js";import{a as f,Y as P,c as a,a6 as w}from"./sf-utils.C9ygvYIB.js";import{e as I,g as k}from"./use-analytics.bP3a5cR0.js";import{p as g,o as q}from"./price.CHiL6Z1J.js";import{n as E}from"./name.Dll7Wwmg.js";import{i as N}from"./img.Be85e5da.js";import"./index.BCNoXz_Z.js";const $=t=>t&&t.min_quantity||1,G=t=>!t.hasOwnProperty("quantity")||t.quantity>=$(t),F=t=>{const n=f(!1);let s=null;const o=f(null),{productId:r}=t,e=P({...t.product,_id:t.product?._id||r,price:g(t.product||{})});!t.product&&r&&(n.value=!0,s=(async()=>{try{const{data:i}=await b.get(`products/${r}`);Object.assign(e,i)}catch(i){console.error(i),o.value=i}n.value=!1})());const d=a(()=>E(e)),v=a(()=>{const{slug:i}=e;return typeof i=="string"?`/${i}`:null}),h=a(()=>{const{pictures:i}=e,l=[];return i&&i.forEach(p=>{const m=N(p);m&&l.push(m)}),l}),c=a(()=>G(e)),u=a(()=>c.value&&e.available&&e.visible),_=a(()=>{if(q(e)){const i=e.base_price;return Math.round((i-g(e))*100/i)}return 0}),y=a(()=>e.has_variations?!0:!!e.variations?.length);return I("view_item",{value:u.value?e.price:0,items:[{...k(e),item_list_name:t.listName,item_list_id:t.listId||t.listName&&w(t.listName)}]}),{isFetching:n,fetching:s,fetchError:o,product:e,title:d,link:v,images:h,isInStock:c,isActive:u,discountPercentage:_,hasVariations:y}};export{G as i,F as u};
@@ -1,4 +1,4 @@
1
- import{_ as Q,w as Z,v as J}from"./_plugin-vue_export-helper.3R8ooc_r.js";import{d as H,aj as ee,ak as te,a as h,w as P,c as b,Q as B,i as ne,o as g,$ as A,h as T,j as re,e as F,n as D,ac as le,f as W,Z as _,l as y,an as oe,g as ae,ag as R,af as k,T as ie,ap as se,z as ue,F as ce,ad as de}from"./sf-utils.xmJHVMAX.js";const fe=H({__name:"Drawer",props:ee({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:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:n}){n();const t=e,r=te(e,"modelValue"),o=()=>{r.value=!1},l=h(null),a=s=>{if(!l.value?.contains(s.target)){if(t.anchorEl?.contains(s.target))return;o()}},i=s=>{s.key==="Escape"&&o()},f=h(0);P(r,async s=>{s?(t.canLockScroll&&(f.value=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",document.body.style.paddingRight=`${f.value}px`),setTimeout(()=>{document.addEventListener("click",a,{passive:!0}),document.addEventListener("keydown",i,{passive:!0})},500)):(t.canLockScroll&&(document.body.style.overflow="",document.body.style.paddingRight=""),document.removeEventListener("click",a),document.removeEventListener("keydown",i))});const u=b(()=>{if(t.animation!=="slide")return null;switch(t.placement){case"start":return"left";case"end":return"right";case"top":return"down";default:return"up"}}),c=h(null);t.animation==="scale"&&P(r,s=>{s?B(()=>{setTimeout(()=>{c.value="transition",setTimeout(()=>{r.value&&(c.value="")},300)},50)}):c.value="transition scale-90"},{immediate:!0});const v=b(()=>Array.isArray(t.class)?t.class:[t.class]),p=b(()=>t.position==="fixed"),m=b(()=>t.placement==="start"||t.placement==="end"),d={props:t,model:r,close:o,drawer:l,outsideClickListener:a,escClickListener:i,scrollbarWidth:f,slideTo:u,animationClassName:c,customClassList:v,isFixed:p,isPlacementX:m};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),me=["open","data-drawer"],ve={class:"relative h-full"},pe=W("i",{class:"m-0 text-3xl text-base-400 i-close hover:text-base-600"},null,-1),he={key:0,class:"size-screen fixed left-0 top-0 z-30 bg-black/50","data-drawer-backdrop":""};function we(e,n,t,r,o,l){const a=ne("Fade");return g(),A(a,{slide:r.slideTo,speed:"slow","is-floating":""},{default:T(()=>[r.model?re((g(),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:le({maxWidth:t.maxWidth?`min(${t.maxWidth}, calc(100vw - ${r.scrollbarWidth}px))`:r.isPlacementX?void 0:`calc(100vw - ${r.scrollbarWidth}px)`}),open:r.model,"data-drawer":t.placement},[W("div",ve,[t.hasCloseButton?(g(),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":""},[_(e.$slots,"close",{},()=>[pe])],2)):y("",!0),_(e.$slots,"default")]),t.backdropTarget?(g(),A(oe,{key:0,to:t.backdropTarget},[ae(a,null,{default:T(()=>[r.model&&!t.isHidden?(g(),F("div",he)):y("",!0)]),_:1})],8,["to"])):y("",!0)],14,me)),[[J,!t.isHidden]]):y("",!0)]),_:3},8,["slide"])}const qe=Q(fe,[["render",we]]);let ge=Symbol("headlessui.useid"),be=0;function Ye(){return R(ge,()=>`${++be}`)()}function w(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 o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var ye=Object.defineProperty,Ee=(e,n,t)=>n in e?ye(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n,t)=>(Ee(e,typeof n!="symbol"?n+"":n,t),t);let xe=class{constructor(){j(this,"current",this.detect()),j(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 xe;function U(e){if(O.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=w(e);if(n)return n.ownerDocument}return document}let N=["[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 Fe=(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))(Fe||{}),Se=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Se||{}),Ne=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ne||{});function V(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(N)).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=U(e))==null?void 0:t.body)?!1:L(n,{0(){return e.matches(N)},1(){let r=e;for(;r!==null;){if(r.matches(N))return!0;r=r.parentElement}return!1}})}function Ze(e){let n=U(e);B(()=>{n&&!z(n.activeElement,0)&&Le(e)})}var ke=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ke||{});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 Le(e){e?.focus({preventScroll:!0})}let Oe=["textarea","input"].join(",");function Pe(e){var n,t;return(t=(n=e?.matches)==null?void 0:n.call(e,Oe))!=null?t:!1}function Ae(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),l=n(r);if(o===null||l===null)return 0;let a=o.compareDocumentPosition(l);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Je(e,n){return Te(V(),n,{relativeTo:e})}function Te(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){var l;let a=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?l:document,i=Array.isArray(e)?t?Ae(e):e:V(e);o.length>0&&i.length>1&&(i=i.filter(d=>!o.includes(d))),r=r??a.activeElement;let f=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{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")})(),c=n&32?{preventScroll:!0}:{},v=0,p=i.length,m;do{if(v>=p||v+p<=0)return 0;let d=u+v;if(n&16)d=(d+p)%p;else{if(d<0)return 3;if(d>=p)return 1}m=i[d],m?.focus(c),v+=f}while(m!==a.activeElement);return n&6&&Pe(m)&&m.select(),2}function De(){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 je(){return De()||_e()}function E(e,n,t){O.isServer||k(r=>{document.addEventListener(e,n,t),r(()=>document.removeEventListener(e,n,t))})}function Ce(e,n,t){O.isServer||k(r=>{window.addEventListener(e,n,t),r(()=>window.removeEventListener(e,n,t))})}function et(e,n,t=b(()=>!0)){function r(l,a){if(!t.value||l.defaultPrevented)return;let i=a(l);if(i===null||!i.getRootNode().contains(i))return;let f=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of f){if(u===null)continue;let c=u instanceof HTMLElement?u:w(u);if(c!=null&&c.contains(i)||l.composed&&l.composedPath().includes(c))return}return!z(i,X.Loose)&&i.tabIndex!==-1&&l.preventDefault(),n(l,i)}let o=h(null);E("pointerdown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("mousedown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("click",l=>{je()||o.value&&(r(l,()=>o.value),o.value=null)},!0),E("touchend",l=>r(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Ce("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function C(e,n){if(e)return e;let t=n??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function tt(e,n){let t=h(C(e.value.type,e.value.as));return ie(()=>{t.value=C(e.value.type,e.value.as)}),k(()=>{var r;t.value||w(n)&&w(n)instanceof HTMLButtonElement&&!((r=w(n))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function M(e){return[e.screenX,e.screenY]}function nt(){let e=h([-1,-1]);return{wasMoved(n){let t=M(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=M(n)}}}var Me=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Me||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function $e({visible:e=!0,features:n=0,ourProps:t,theirProps:r,...o}){var l;let a=G(r,t),i=Object.assign(o,{props:a});if(e||n&2&&a.static)return S(i);if(n&1){let f=(l=a.unmount)==null||l?0:1;return L(f,{0(){return null},1(){return S({...o,props:{...a,hidden:!0,style:{display:"none"}}})}})}return S(i)}function S({props:e,attrs:n,slots:t,slot:r,name:o}){var l,a;let{as:i,...f}=He(e,["unmount","static"]),u=(l=t.default)==null?void 0:l.call(t,r),c={};if(r){let v=!1,p=[];for(let[m,d]of Object.entries(r))typeof d=="boolean"&&(v=!0),d===!0&&p.push(m);v&&(c["data-headlessui-state"]=p.join(" "))}if(i==="template"){if(u=K(u??[]),Object.keys(f).length>0||Object.keys(n).length>0){let[v,...p]=u??[];if(!Be(v)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(n)).map(s=>s.trim()).filter((s,x,Y)=>Y.indexOf(s)===x).sort((s,x)=>s.localeCompare(x)).map(s=>` - ${s}`).join(`
1
+ import{_ as Z,w as J,v as Q}from"./_plugin-vue_export-helper.6K9uDcVo.js";import{d as H,ak as ee,al as te,a as h,w as P,c as b,U as B,j as ne,k as g,$ as A,i as D,l as re,e as F,n as T,ac as le,f as W,Z as _,p as y,ar as oe,h as ae,ag as U,af as N,o as ie,at as se,B as ue,F as ce,ad as de}from"./sf-utils.C9ygvYIB.js";const fe=H({__name:"Drawer",props:ee({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:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:n}){n();const t=e,r=te(e,"modelValue"),o=()=>{r.value=!1},l=h(null),a=s=>{if(!l.value?.contains(s.target)){if(t.anchorEl?.contains(s.target))return;o()}},i=s=>{s.key==="Escape"&&o()},f=h(0);P(r,async s=>{s?(t.canLockScroll&&(f.value=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",document.body.style.paddingRight=`${f.value}px`),setTimeout(()=>{document.addEventListener("click",a,{passive:!0}),document.addEventListener("keydown",i,{passive:!0})},500)):(t.canLockScroll&&(document.body.style.overflow="",document.body.style.paddingRight=""),document.removeEventListener("click",a),document.removeEventListener("keydown",i))});const u=b(()=>{if(t.animation!=="slide")return null;switch(t.placement){case"start":return"left";case"end":return"right";case"top":return"down";default:return"up"}}),c=h(null);t.animation==="scale"&&P(r,s=>{s?B(()=>{setTimeout(()=>{c.value="transition",setTimeout(()=>{r.value&&(c.value="")},300)},50)}):c.value="transition scale-90"},{immediate:!0});const v=b(()=>Array.isArray(t.class)?t.class:[t.class]),p=b(()=>t.position==="fixed"),m=b(()=>t.placement==="start"||t.placement==="end"),d={props:t,model:r,close:o,drawer:l,outsideClickListener:a,escClickListener:i,scrollbarWidth:f,slideTo:u,animationClassName:c,customClassList:v,isFixed:p,isPlacementX:m};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}}),me=["open","data-drawer"],ve={class:"relative h-full"},pe=W("i",{class:"m-0 text-3xl text-base-400 i-close hover:text-base-600"},null,-1),he={key:0,class:"size-screen fixed left-0 top-0 z-30 bg-black/50","data-drawer-backdrop":""};function we(e,n,t,r,o,l){const a=ne("Fade");return g(),A(a,{slide:r.slideTo,speed:"slow","is-floating":""},{default:D(()=>[r.model?re((g(),F("dialog",{key:0,ref:"drawer",class:T(["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:le({maxWidth:t.maxWidth?`min(${t.maxWidth}, calc(100vw - ${r.scrollbarWidth}px))`:r.isPlacementX?void 0:`calc(100vw - ${r.scrollbarWidth}px)`}),open:r.model,"data-drawer":t.placement},[W("div",ve,[t.hasCloseButton?(g(),F("button",{key:0,type:"button","aria-label":"Fechar",onClick:J(r.close,["prevent"]),class:T(["absolute top-2 z-30 rounded",t.placement==="end"?"left-2":"right-2"]),"data-drawer-close":""},[_(e.$slots,"close",{},()=>[pe])],2)):y("",!0),_(e.$slots,"default")]),t.backdropTarget?(g(),A(oe,{key:0,to:t.backdropTarget},[ae(a,null,{default:D(()=>[r.model&&!t.isHidden?(g(),F("div",he)):y("",!0)]),_:1})],8,["to"])):y("",!0)],14,me)),[[Q,!t.isHidden]]):y("",!0)]),_:3},8,["slide"])}const qe=Z(fe,[["render",we]]);let ge=Symbol("headlessui.useid"),be=0;function Ye(){return U(ge,()=>`${++be}`)()}function w(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 o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,L),r}var ye=Object.defineProperty,Ee=(e,n,t)=>n in e?ye(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n,t)=>(Ee(e,typeof n!="symbol"?n+"":n,t),t);let xe=class{constructor(){j(this,"current",this.detect()),j(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 xe;function R(e){if(O.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let n=w(e);if(n)return n.ownerDocument}return document}let k=["[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 Fe=(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))(Fe||{}),Se=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Se||{}),ke=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ke||{});function V(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(k)).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(k)},1(){let r=e;for(;r!==null;){if(r.matches(k))return!0;r=r.parentElement}return!1}})}function Je(e){let n=R(e);B(()=>{n&&!z(n.activeElement,0)&&Le(e)})}var Ne=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ne||{});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 Le(e){e?.focus({preventScroll:!0})}let Oe=["textarea","input"].join(",");function Pe(e){var n,t;return(t=(n=e?.matches)==null?void 0:n.call(e,Oe))!=null?t:!1}function Ae(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),l=n(r);if(o===null||l===null)return 0;let a=o.compareDocumentPosition(l);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Qe(e,n){return De(V(),n,{relativeTo:e})}function De(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){var l;let a=(l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?l:document,i=Array.isArray(e)?t?Ae(e):e:V(e);o.length>0&&i.length>1&&(i=i.filter(d=>!o.includes(d))),r=r??a.activeElement;let f=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{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")})(),c=n&32?{preventScroll:!0}:{},v=0,p=i.length,m;do{if(v>=p||v+p<=0)return 0;let d=u+v;if(n&16)d=(d+p)%p;else{if(d<0)return 3;if(d>=p)return 1}m=i[d],m?.focus(c),v+=f}while(m!==a.activeElement);return n&6&&Pe(m)&&m.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 je(){return Te()||_e()}function E(e,n,t){O.isServer||N(r=>{document.addEventListener(e,n,t),r(()=>document.removeEventListener(e,n,t))})}function Ce(e,n,t){O.isServer||N(r=>{window.addEventListener(e,n,t),r(()=>window.removeEventListener(e,n,t))})}function et(e,n,t=b(()=>!0)){function r(l,a){if(!t.value||l.defaultPrevented)return;let i=a(l);if(i===null||!i.getRootNode().contains(i))return;let f=function u(c){return typeof c=="function"?u(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let u of f){if(u===null)continue;let c=u instanceof HTMLElement?u:w(u);if(c!=null&&c.contains(i)||l.composed&&l.composedPath().includes(c))return}return!z(i,X.Loose)&&i.tabIndex!==-1&&l.preventDefault(),n(l,i)}let o=h(null);E("pointerdown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("mousedown",l=>{var a,i;t.value&&(o.value=((i=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:i[0])||l.target)},!0),E("click",l=>{je()||o.value&&(r(l,()=>o.value),o.value=null)},!0),E("touchend",l=>r(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Ce("blur",l=>r(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function C(e,n){if(e)return e;let t=n??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function tt(e,n){let t=h(C(e.value.type,e.value.as));return ie(()=>{t.value=C(e.value.type,e.value.as)}),N(()=>{var r;t.value||w(n)&&w(n)instanceof HTMLButtonElement&&!((r=w(n))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function M(e){return[e.screenX,e.screenY]}function nt(){let e=h([-1,-1]);return{wasMoved(n){let t=M(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=M(n)}}}var Me=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Me||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function $e({visible:e=!0,features:n=0,ourProps:t,theirProps:r,...o}){var l;let a=G(r,t),i=Object.assign(o,{props:a});if(e||n&2&&a.static)return S(i);if(n&1){let f=(l=a.unmount)==null||l?0:1;return L(f,{0(){return null},1(){return S({...o,props:{...a,hidden:!0,style:{display:"none"}}})}})}return S(i)}function S({props:e,attrs:n,slots:t,slot:r,name:o}){var l,a;let{as:i,...f}=He(e,["unmount","static"]),u=(l=t.default)==null?void 0:l.call(t,r),c={};if(r){let v=!1,p=[];for(let[m,d]of Object.entries(r))typeof d=="boolean"&&(v=!0),d===!0&&p.push(m);v&&(c["data-headlessui-state"]=p.join(" "))}if(i==="template"){if(u=K(u??[]),Object.keys(f).length>0||Object.keys(n).length>0){let[v,...p]=u??[];if(!Be(v)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(f).concat(Object.keys(n)).map(s=>s.trim()).filter((s,x,Y)=>Y.indexOf(s)===x).sort((s,x)=>s.localeCompare(x)).map(s=>` - ${s}`).join(`
2
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(s=>` - ${s}`).join(`
3
3
  `)].join(`
4
- `));let m=G((a=v.props)!=null?a:{},f,c),d=se(v,m,!0);for(let s in m)s.startsWith("on")&&(d.props||(d.props={}),d.props[s]=m[s]);return d}return Array.isArray(u)&&u.length===1?u[0]:u}return ue(i,Object.assign({},f,c),{default:()=>u})}function K(e){return e.flatMap(n=>n.type===ce?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 o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];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](o,...l){let a=t[r];for(let i of a){if(o instanceof Event&&o.defaultPrevented)return;i(o,...l)}}});return n}function rt(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 Be(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var We=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(We||{});let lt=H({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:o,...l}=e,a={"aria-hidden":(o&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",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return $e({ourProps:a,theirProps:l,slot:{},attrs:t,slots:n,name:"Hidden"})}}}),q=Symbol("Context");var Re=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Re||{});function ot(){return R(q,null)}function at(e){de(q,e)}var Ue=(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))(Ue||{});function Ve(e){throw new Error("Unexpected object: "+e)}var Xe=(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))(Xe||{});function it(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),o=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:{o===-1&&(o=t.length);for(let l=o-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 2:{for(let l=o+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:Ve(e)}}let I=/([\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:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let l=!1;for(let i of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),l=!0;let a=l?(t=o.innerText)!=null?t:"":r;return I.test(a)&&(a=a.replace(I,"")),a}function ze(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(o=>{let l=document.getElementById(o);if(l){let a=l.getAttribute("aria-label");return typeof a=="string"?a.trim():$(l).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return $(e).trim()}function st(e){let n=h(""),t=h("");return()=>{let r=w(e);if(!r)return"";let o=r.innerText;if(n.value===o)return t.value;let l=ze(r).trim().toLowerCase();return n.value=o,t.value=l,l}}export{$e as A,qe as D,rt as E,Ye as I,Me as N,Ae as O,Te as P,He as T,Ze as _,z as a,lt as b,Xe as c,tt as d,nt as e,it as f,Ue as g,X as h,Re as i,U as j,O as k,ot as l,Ce as m,Fe as n,w as o,st as p,V as q,Se as r,We as s,at as t,L as u,Je as v,et as w};
4
+ `));let m=G((a=v.props)!=null?a:{},f,c),d=se(v,m,!0);for(let s in m)s.startsWith("on")&&(d.props||(d.props={}),d.props[s]=m[s]);return d}return Array.isArray(u)&&u.length===1?u[0]:u}return ue(i,Object.assign({},f,c),{default:()=>u})}function K(e){return e.flatMap(n=>n.type===ce?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 o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];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](o,...l){let a=t[r];for(let i of a){if(o instanceof Event&&o.defaultPrevented)return;i(o,...l)}}});return n}function rt(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 Be(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var We=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(We||{});let lt=H({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:o,...l}=e,a={"aria-hidden":(o&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",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return $e({ourProps:a,theirProps:l,slot:{},attrs:t,slots:n,name:"Hidden"})}}}),q=Symbol("Context");var Ue=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ue||{});function ot(){return U(q,null)}function at(e){de(q,e)}var Re=(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))(Re||{});function Ve(e){throw new Error("Unexpected object: "+e)}var Xe=(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))(Xe||{});function it(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),o=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:{o===-1&&(o=t.length);for(let l=o-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 2:{for(let l=o+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:Ve(e)}}let I=/([\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:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let l=!1;for(let i of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),l=!0;let a=l?(t=o.innerText)!=null?t:"":r;return I.test(a)&&(a=a.replace(I,"")),a}function ze(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(o=>{let l=document.getElementById(o);if(l){let a=l.getAttribute("aria-label");return typeof a=="string"?a.trim():$(l).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return $(e).trim()}function st(e){let n=h(""),t=h("");return()=>{let r=w(e);if(!r)return"";let o=r.innerText;if(n.value===o)return t.value;let l=ze(r).trim().toLowerCase();return n.value=o,t.value=l,l}}export{$e as A,qe as D,rt as E,Ye as I,Me as N,Ae as O,De as P,He as T,Je as _,z as a,lt as b,Xe as c,tt as d,nt as e,it as f,Re as g,X as h,Ue as i,R as j,O as k,ot as l,Ce as m,Fe as n,w as o,st as p,V as q,Se as r,We as s,at as t,L as u,Qe as v,et as w};
@@ -0,0 +1,4 @@
1
+ import '@astrojs/internal-helpers/path';
2
+ import 'cookie';
3
+ export { o as onRequest } from './chunks/_astro-internal_middleware_DIG56BhA.mjs';
4
+ import './chunks/pages/404_BPSxJtl3.mjs';
@@ -0,0 +1,5 @@
1
+ export { renderers } from '../renderers.mjs';
2
+
3
+ const page = () => import('./pages/404_BPSxJtl3.mjs').then(n => n.a7);
4
+
5
+ export { page };
@@ -1,5 +1,6 @@
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, A as ShippingCalculator } from './pages/__RXg_hYeF.mjs';
1
+ import { a2 as parseProduct, _ as _export_sfc, a3 as removeCartItem, a4 as freeShippingFromValue, a5 as shoppingCart, a6 as totalItems } from './pages/404_BPSxJtl3.mjs';
2
2
  import { computed, useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, openBlock, createBlock, createCommentVNode, createVNode, toDisplayString, ref, createTextVNode } from 'vue';
3
+ import { Q as QuantitySelector, b as Prices, C as CheckoutLink, c as ShippingCalculator } from './pages/__ByRpsTnC.mjs';
3
4
  import { name, img } from '@ecomplus/utils';
4
5
  import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderList } from 'vue/server-renderer';
5
6
 
@@ -1,6 +1,7 @@
1
- import { q as clearAccents, S as SearchEngine, s as searchHistory, _ as _export_sfc, r as getSearchUrl, t as ProductShelf } from './pages/__RXg_hYeF.mjs';
1
+ import { a0 as clearAccents, _ as _export_sfc, a1 as getSearchUrl } from './pages/404_BPSxJtl3.mjs';
2
2
  import { ref, watch, toRef, defineComponent, resolveComponent, mergeProps, withCtx, createTextVNode, toDisplayString, openBlock, createBlock, Fragment, renderList, createVNode, createCommentVNode, useSSRContext } from 'vue';
3
3
  import Wade from 'wade';
4
+ import { S as SearchEngine, s as searchHistory, a as ProductShelf } from './pages/__ByRpsTnC.mjs';
4
5
  import { ssrRenderAttrs, ssrRenderComponent, ssrRenderClass, ssrRenderList, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer';
5
6
 
6
7
  const wadeDocs = [];
@@ -226,14 +227,29 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
226
227
  default: withCtx((_, _push2, _parent2, _scopeId) => {
227
228
  if (_push2) {
228
229
  if (!$setup.isFetching && ($setup.searchHistory.length || $setup.productCount > $setup.products.length)) {
229
- _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}>`);
230
+ _push2(`<section class="grid grid-cols-1 items-center gap-4 bg-base-100/80 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}>`);
230
231
  if ($setup.productCount > 1) {
231
- _push2(`<p class="text-base-900 text-right text-sm lowercase"${_scopeId}><strong${_scopeId}>${ssrInterpolate($setup.productCount)}</strong> ${ssrInterpolate("Itens encontrados")}</p>`);
232
+ _push2(`<p class="text-right text-sm lowercase text-base-900"${_scopeId}><strong${_scopeId}>${ssrInterpolate($setup.productCount)}</strong> ${ssrInterpolate("Itens encontrados")}</p>`);
232
233
  } else {
233
234
  _push2(`<!---->`);
234
235
  }
235
236
  if ($setup.productCount > $setup.products.length) {
236
- _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>`);
237
+ _push2(ssrRenderComponent(_component_ALink, {
238
+ href: $setup.getSearchUrl($props.term),
239
+ prefetch: "visible",
240
+ class: "w-auto whitespace-nowrap text-center ui-btn ui-btn-primary"
241
+ }, {
242
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
243
+ if (_push3) {
244
+ _push3(`${ssrInterpolate("Ver todos")}`);
245
+ } else {
246
+ return [
247
+ createTextVNode(toDisplayString("Ver todos"))
248
+ ];
249
+ }
250
+ }),
251
+ _: 1
252
+ }, _parent2, _scopeId));
237
253
  } else {
238
254
  _push2(`<!---->`);
239
255
  }
@@ -244,11 +260,11 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
244
260
  }, {
245
261
  previous: withCtx((_2, _push3, _parent3, _scopeId2) => {
246
262
  if (_push3) {
247
- _push3(`<i class="i-clock m-0"${ssrRenderAttr("aria-label", "Buscar novamente")}${_scopeId2}></i>`);
263
+ _push3(`<i class="m-0 i-clock"${ssrRenderAttr("aria-label", "Buscar novamente")}${_scopeId2}></i>`);
248
264
  } else {
249
265
  return [
250
266
  createVNode("i", {
251
- class: "i-clock m-0",
267
+ class: "m-0 i-clock",
252
268
  "aria-label": "Buscar novamente"
253
269
  })
254
270
  ];
@@ -258,7 +274,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
258
274
  if (_push3) {
259
275
  _push3(`<!--[-->`);
260
276
  ssrRenderList($setup.searchHistory, (term, i) => {
261
- _push3(`<li class="shrink-0"${_scopeId2}><a${ssrRenderAttr("href", $setup.getSearchUrl(term))} class="text-base-700 ui-link text-sm font-normal"${_scopeId2}>${ssrInterpolate(term)}</a></li>`);
277
+ _push3(`<li class="shrink-0"${_scopeId2}><a${ssrRenderAttr("href", $setup.getSearchUrl(term))} class="text-sm font-normal text-base-700 ui-link"${_scopeId2}>${ssrInterpolate(term)}</a></li>`);
262
278
  });
263
279
  _push3(`<!--]-->`);
264
280
  } else {
@@ -270,7 +286,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
270
286
  }, [
271
287
  createVNode("a", {
272
288
  href: $setup.getSearchUrl(term),
273
- class: "text-base-700 ui-link text-sm font-normal"
289
+ class: "text-sm font-normal text-base-700 ui-link"
274
290
  }, toDisplayString(term), 9, ["href"])
275
291
  ]);
276
292
  }), 128))
@@ -287,21 +303,27 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
287
303
  return [
288
304
  !$setup.isFetching && ($setup.searchHistory.length || $setup.productCount > $setup.products.length) ? (openBlock(), createBlock("section", {
289
305
  key: 0,
290
- 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"
306
+ class: "grid grid-cols-1 items-center gap-4 bg-base-100/80 p-4 backdrop-blur-md md:grid-cols-2 md:rounded-b lg:mt-5 lg:grid-cols-3 lg:rounded"
291
307
  }, [
292
308
  createVNode("div", { class: "flex items-center justify-end gap-4 md:order-2" }, [
293
309
  $setup.productCount > 1 ? (openBlock(), createBlock("p", {
294
310
  key: 0,
295
- class: "text-base-900 text-right text-sm lowercase"
311
+ class: "text-right text-sm lowercase text-base-900"
296
312
  }, [
297
313
  createVNode("strong", null, toDisplayString($setup.productCount), 1),
298
314
  createTextVNode(" " + toDisplayString("Itens encontrados"))
299
315
  ])) : createCommentVNode("", true),
300
- $setup.productCount > $setup.products.length ? (openBlock(), createBlock("a", {
316
+ $setup.productCount > $setup.products.length ? (openBlock(), createBlock(_component_ALink, {
301
317
  key: 1,
302
318
  href: $setup.getSearchUrl($props.term),
303
- class: "ui-btn ui-btn-primary w-auto whitespace-nowrap text-center"
304
- }, toDisplayString("Ver todos"), 8, ["href"])) : createCommentVNode("", true)
319
+ prefetch: "visible",
320
+ class: "w-auto whitespace-nowrap text-center ui-btn ui-btn-primary"
321
+ }, {
322
+ default: withCtx(() => [
323
+ createTextVNode(toDisplayString("Ver todos"))
324
+ ]),
325
+ _: 1
326
+ }, 8, ["href"])) : createCommentVNode("", true)
305
327
  ]),
306
328
  createVNode("div", { class: "lg:col-span-2" }, [
307
329
  createVNode("nav", null, [
@@ -311,7 +333,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
311
333
  }, {
312
334
  previous: withCtx(() => [
313
335
  createVNode("i", {
314
- class: "i-clock m-0",
336
+ class: "m-0 i-clock",
315
337
  "aria-label": "Buscar novamente"
316
338
  })
317
339
  ]),
@@ -323,7 +345,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
323
345
  }, [
324
346
  createVNode("a", {
325
347
  href: $setup.getSearchUrl(term),
326
- class: "text-base-700 ui-link text-sm font-normal"
348
+ class: "text-sm font-normal text-base-700 ui-link"
327
349
  }, toDisplayString(term), 9, ["href"])
328
350
  ]);
329
351
  }), 128))
@@ -0,0 +1,5 @@
1
+ export { renderers } from '../renderers.mjs';
2
+
3
+ const page = () => import('./pages/__ByRpsTnC.mjs').then(n => n._);
4
+
5
+ export { page };
@@ -0,0 +1,40 @@
1
+ import '@astrojs/internal-helpers/path';
2
+ import 'cookie';
3
+ import { Z as onRequest$1 } from './pages/404_BPSxJtl3.mjs';
4
+
5
+ function sequence(...handlers) {
6
+ const filtered = handlers.filter((h) => !!h);
7
+ const length = filtered.length;
8
+ if (!length) {
9
+ const handler = defineMiddleware((context, next) => {
10
+ return next();
11
+ });
12
+ return handler;
13
+ }
14
+ return defineMiddleware((context, next) => {
15
+ return applyHandle(0, context);
16
+ function applyHandle(i, handleContext) {
17
+ const handle = filtered[i];
18
+ const result = handle(handleContext, async () => {
19
+ if (i < length - 1) {
20
+ return applyHandle(i + 1, handleContext);
21
+ } else {
22
+ return next();
23
+ }
24
+ });
25
+ return result;
26
+ }
27
+ });
28
+ }
29
+
30
+ function defineMiddleware(fn) {
31
+ return fn;
32
+ }
33
+
34
+ const onRequest = sequence(
35
+ onRequest$1,
36
+
37
+
38
+ );
39
+
40
+ export { onRequest as o, sequence as s };
@@ -1,5 +1,5 @@
1
1
  export { renderers } from '../renderers.mjs';
2
2
 
3
- const page = () => import('./pages/_page__Dyte93f2.mjs');
3
+ const page = () => import('./pages/_page__BasreLue.mjs');
4
4
 
5
5
  export { page };
@@ -1,5 +1,5 @@
1
1
  export { renderers } from '../renderers.mjs';
2
2
 
3
- const page = () => import('./pages/account_C66y6_Y9.mjs');
3
+ const page = () => import('./pages/account_MZBvNAyZ.mjs');
4
4
 
5
5
  export { page };