cloudcommerce 0.1.0 → 0.1.2

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 (112) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/ecomplus-stores/monocard/.vscode/settings.json +5 -1
  3. package/ecomplus-stores/monocard/functions/core/package.json +1 -1
  4. package/ecomplus-stores/monocard/functions/events/package.json +2 -2
  5. package/ecomplus-stores/monocard/functions/modules/package.json +2 -2
  6. package/ecomplus-stores/monocard/functions/passport/package.json +2 -2
  7. package/ecomplus-stores/monocard/functions/ssr/.nvmrc +1 -0
  8. package/ecomplus-stores/monocard/functions/ssr/content/settings.json +13 -10
  9. package/ecomplus-stores/monocard/functions/ssr/package.json +18 -10
  10. package/ecomplus-stores/monocard/functions/ssr/src/components/LottiePhoneNFC.vue +1 -1
  11. package/ecomplus-stores/monocard/functions/ssr/src/pages/_vue.ts +3 -0
  12. package/ecomplus-stores/monocard/package.json +1 -1
  13. package/ecomplus-stores/tia-sonia/.firebaserc +5 -0
  14. package/ecomplus-stores/tia-sonia/.vscode/settings.json +5 -1
  15. package/ecomplus-stores/tia-sonia/functions/config.json +2 -2
  16. package/ecomplus-stores/tia-sonia/functions/core/package.json +1 -1
  17. package/ecomplus-stores/tia-sonia/functions/events/package.json +2 -2
  18. package/ecomplus-stores/tia-sonia/functions/modules/package.json +2 -2
  19. package/ecomplus-stores/tia-sonia/functions/passport/package.json +2 -2
  20. package/ecomplus-stores/tia-sonia/functions/ssr/.nvmrc +1 -0
  21. package/ecomplus-stores/tia-sonia/functions/ssr/content/settings.json +14 -11
  22. package/ecomplus-stores/tia-sonia/functions/ssr/package.json +15 -7
  23. package/ecomplus-stores/tia-sonia/functions/ssr/src/pages/_vue.ts +3 -0
  24. package/ecomplus-stores/tia-sonia/functions/ssr/src/scripts/InlineScripts.astro +6 -7
  25. package/ecomplus-stores/tia-sonia/package.json +1 -1
  26. package/package.json +1 -1
  27. package/packages/api/package.json +1 -1
  28. package/packages/apps/correios/package.json +1 -1
  29. package/packages/apps/custom-payment/package.json +1 -1
  30. package/packages/apps/custom-shipping/package.json +1 -1
  31. package/packages/apps/discounts/package.json +1 -1
  32. package/packages/apps/emails/package.json +1 -1
  33. package/packages/apps/frenet/package.json +1 -1
  34. package/packages/apps/galaxpay/package.json +1 -1
  35. package/packages/apps/infinitepay/package.json +1 -1
  36. package/packages/apps/jadlog/package.json +1 -1
  37. package/packages/apps/loyalty-points/CHANGELOG.md +1 -0
  38. package/packages/apps/loyalty-points/README.md +1 -0
  39. package/packages/apps/loyalty-points/events.js +1 -0
  40. package/packages/apps/loyalty-points/lib/functions-lib/get-program-id.d.ts +5 -0
  41. package/packages/apps/loyalty-points/lib/functions-lib/get-program-id.js +20 -0
  42. package/packages/apps/loyalty-points/lib/functions-lib/get-program-id.js.map +1 -0
  43. package/packages/apps/loyalty-points/lib/functions-lib/handle-loyalty-points-event.d.ts +3 -0
  44. package/packages/apps/loyalty-points/lib/functions-lib/handle-loyalty-points-event.js +172 -0
  45. package/packages/apps/loyalty-points/lib/functions-lib/handle-loyalty-points-event.js.map +1 -0
  46. package/packages/apps/loyalty-points/lib/index.d.ts +1 -0
  47. package/packages/apps/loyalty-points/lib/index.js +2 -0
  48. package/packages/apps/loyalty-points/lib/index.js.map +1 -0
  49. package/packages/apps/loyalty-points/lib/loyalty-create-transaction.d.ts +76 -0
  50. package/packages/apps/loyalty-points/lib/loyalty-create-transaction.js +210 -0
  51. package/packages/apps/loyalty-points/lib/loyalty-create-transaction.js.map +1 -0
  52. package/packages/apps/loyalty-points/lib/loyalty-list-payments.d.ts +3 -0
  53. package/packages/apps/loyalty-points/lib/loyalty-list-payments.js +44 -0
  54. package/packages/apps/loyalty-points/lib/loyalty-list-payments.js.map +1 -0
  55. package/packages/apps/loyalty-points/lib/loyalty-points-events.d.ts +4 -0
  56. package/packages/apps/loyalty-points/lib/loyalty-points-events.js +28 -0
  57. package/packages/apps/loyalty-points/lib/loyalty-points-events.js.map +1 -0
  58. package/packages/apps/loyalty-points/lib/loyalty-points.d.ts +77 -0
  59. package/packages/apps/loyalty-points/lib/loyalty-points.js +12 -0
  60. package/packages/apps/loyalty-points/lib/loyalty-points.js.map +1 -0
  61. package/packages/apps/loyalty-points/package.json +32 -0
  62. package/packages/apps/loyalty-points/src/functions-lib/get-program-id.ts +23 -0
  63. package/packages/apps/loyalty-points/src/functions-lib/handle-loyalty-points-event.ts +207 -0
  64. package/packages/apps/loyalty-points/src/index.ts +1 -0
  65. package/packages/apps/loyalty-points/src/loyalty-create-transaction.ts +241 -0
  66. package/packages/apps/loyalty-points/src/loyalty-list-payments.ts +55 -0
  67. package/packages/apps/loyalty-points/src/loyalty-points-events.ts +41 -0
  68. package/packages/apps/loyalty-points/src/loyalty-points.ts +12 -0
  69. package/packages/apps/loyalty-points/tsconfig.json +6 -0
  70. package/packages/apps/mercadopago/package.json +1 -1
  71. package/packages/apps/pagarme/package.json +1 -1
  72. package/packages/apps/pix/package.json +1 -1
  73. package/packages/apps/tiny-erp/package.json +1 -1
  74. package/packages/cli/package.json +1 -1
  75. package/packages/config/package.json +1 -1
  76. package/packages/emails/package.json +1 -1
  77. package/packages/events/lib/firebase.js +2 -0
  78. package/packages/events/lib/firebase.js.map +1 -1
  79. package/packages/events/package.json +2 -1
  80. package/packages/events/src/firebase.ts +2 -0
  81. package/packages/firebase/lib/config.d.ts +4 -0
  82. package/packages/firebase/lib/config.js +8 -0
  83. package/packages/firebase/lib/config.js.map +1 -1
  84. package/packages/firebase/package.json +1 -1
  85. package/packages/firebase/src/config.ts +9 -0
  86. package/packages/i18n/package.json +1 -1
  87. package/packages/modules/lib/firebase/call-app-module.js +12 -0
  88. package/packages/modules/lib/firebase/call-app-module.js.map +1 -1
  89. package/packages/modules/package.json +2 -1
  90. package/packages/modules/src/firebase/call-app-module.ts +12 -0
  91. package/packages/passport/package.json +1 -1
  92. package/packages/ssr/package.json +2 -1
  93. package/packages/storefront/dist/client/HeaderButtons.8acf8a3b.js +1 -0
  94. package/packages/storefront/dist/client/Prices.9099fe99.js +1 -0
  95. package/packages/storefront/dist/client/{ProductCard.f477b7a1.js → ProductCard.7b68cc35.js} +1 -1
  96. package/packages/storefront/dist/client/assets/{_...slug_.15766f41.css → _...slug_.f19a16ca.css} +1 -1
  97. package/packages/storefront/dist/client/assets/server.55b8d73d.css +1 -0
  98. package/packages/storefront/dist/client/chunks/{HeaderButtons.27ab2180.js → HeaderButtons.cbbb059d.js} +1 -1
  99. package/packages/storefront/dist/client/chunks/{LoginForm.36774236.js → LoginForm.ac2f1b1f.js} +1 -1
  100. package/packages/storefront/dist/client/chunks/{Prices.vue_vue_type_script_setup_true_lang.522e4ac4.js → Prices.vue_vue_type_script_setup_true_lang.c37148c1.js} +1 -1
  101. package/packages/storefront/dist/client/chunks/{_plugin-vue_export-helper.979dc9e3.js → _plugin-vue_export-helper.5ccc5d75.js} +1 -1
  102. package/packages/storefront/dist/client/chunks/{runtime-core.esm-bundler.6c012e5d.js → runtime-core.esm-bundler.d5646b29.js} +1 -1
  103. package/packages/storefront/dist/client/client.9783ef49.js +1 -0
  104. package/packages/storefront/dist/client/sw.js +1 -1
  105. package/packages/storefront/dist/server/entry.mjs +1544 -28
  106. package/packages/storefront/package.json +1 -1
  107. package/packages/storefront/src/lib/pages/_vue.ts +1 -1
  108. package/packages/types/package.json +1 -1
  109. package/packages/storefront/dist/client/HeaderButtons.f1c92fd8.js +0 -1
  110. package/packages/storefront/dist/client/Prices.795d082c.js +0 -1
  111. package/packages/storefront/dist/client/assets/server.4d9646d8.css +0 -1
  112. package/packages/storefront/dist/client/client.8b4e336b.js +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/storefront",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "E-Com Plus Cloud Commerce storefront with Astro",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -1,6 +1,6 @@
1
1
  import type { App } from 'vue';
2
2
  import { i18n, formatMoney } from '@ecomplus/utils';
3
- import { VTooltip } from 'floating-vue';
3
+ import VTooltip from 'floating-vue/src/directives/v-tooltip';
4
4
  // @ts-ignore
5
5
  import Fade from '@@components/globals/Fade.vue';
6
6
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {
@@ -1 +0,0 @@
1
- import{_ as a}from"./chunks/HeaderButtons.27ab2180.js";import"./chunks/preload-helper.1de719f8.js";import"./chunks/_plugin-vue_export-helper.979dc9e3.js";import"./chunks/runtime-core.esm-bundler.6c012e5d.js";/* empty css */export{a as default};
@@ -1 +0,0 @@
1
- import"./chunks/Prices.vue_vue_type_script_setup_true_lang.522e4ac4.js";import{_ as s}from"./chunks/Prices.vue_vue_type_script_setup_true_lang.522e4ac4.js";/* empty css */import"./chunks/session-utm.2de8b604.js";import"./chunks/runtime-core.esm-bundler.6c012e5d.js";import"./chunks/price.ecf7fed4.js";import"./chunks/ecom-utils.b0a26608.js";export{s as default};
@@ -1 +0,0 @@
1
- .sf-fade-enter-active,.sf-fade-leave-active{transition:opacity var(--duration),transform var(--duration),height var(--duration),width var(--duration);overflow:hidden}*[data-v-f3719df1]{will-change:var(--de1ebbd6);transform:translateZ(0);backface-visibility:hidden;perspective:1000px}.sf-fade-enter-active[data-v-f3719df1],.sf-fade-leave-active[data-v-f3719df1]{--duration: var(--fb017372)}.sf-fade-enter-from[data-v-f3719df1]{opacity:var(--a7913688);transform:var(--44556fdd);height:var(--b31f6b54);width:var(--77b9da92)}.sf-fade-leave-to[data-v-f3719df1]{opacity:var(--764bb2e8);transform:var(--816204a6);height:var(--5ef3e2f4);width:var(--7b2c0887)}
@@ -1 +0,0 @@
1
- import{a as Tt,c as st,T as St,u as Ct,_ as xt,b as Ot}from"./chunks/_plugin-vue_export-helper.979dc9e3.js";import{_ as At,$ as Nt,d as E,a0 as zt,o as O,q as le,f as ie,b as ne,n as Ht,g as Et,y as ye,a1 as kt,l as se,e as W,F as Lt,h as Ie,a2 as xe,w as re,j as rt,a as ze,D as Z,t as Dt,m as Rt,c as b,u as x}from"./chunks/runtime-core.esm-bundler.6c012e5d.js";/* empty css */import{D as Mt,_ as ce}from"./chunks/ecom-utils.b0a26608.js";import{g as Bt}from"./chunks/price.ecf7fed4.js";const at=(e,t=ce.get("lang"))=>{if(typeof e=="object"&&e!==null){const o=Object.keys(e)[0];if(/^[a-z]{2}(_[a-z]{2})?$/.test(o))return e[t]||e[Mt]||e[o];{const i=Array.isArray(e)?[]:{};for(const n in e)e[n]!==void 0&&(i[n]=at(e[n],t));return i}}return e},Ft=at,It=(e,t=ce.get("currency"),o=ce.get("lang"))=>{if(typeof e=="object"?e!==null&&(e=Bt(e)):typeof e=="string"&&(e=parseFloat(e)),t)try{return e.toLocaleString(o.replace("_","-"),{style:"currency",currency:t})}catch(n){console.error(n)}const i=(t||ce.get("currency_symbol"))+" ";return typeof e=="number"?i+e:""},Wt=It;function k(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function pe(e){return["top","bottom"].includes(k(e))?"x":"y"}function Me(e){return e==="y"?"height":"width"}function We(e){let{reference:t,floating:o,placement:i}=e;const n=t.x+t.width/2-o.width/2,r=t.y+t.height/2-o.height/2;let a;switch(k(i)){case"top":a={x:n,y:t.y-o.height};break;case"bottom":a={x:n,y:t.y+t.height};break;case"right":a={x:t.x+t.width,y:r};break;case"left":a={x:t.x-o.width,y:r};break;default:a={x:t.x,y:t.y}}const s=pe(i),l=Me(s);switch(q(i)){case"start":a[s]=a[s]-(t[l]/2-o[l]/2);break;case"end":a[s]=a[s]+(t[l]/2-o[l]/2);break}return a}const jt=async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:a}=o;let s=await a.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:p}=We({...s,placement:i}),h=i,f={};for(let c=0;c<r.length;c++){const{name:m,fn:y}=r[c],{x:$,y:w,data:g,reset:v}=await y({x:l,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:f,rects:s,platform:a,elements:{reference:e,floating:t}});if(l=$??l,p=w??p,f={...f,[m]:g??{}},v){typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(s=v.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:n}):v.rects),{x:l,y:p}=We({...s,placement:h})),c=-1;continue}}return{x:l,y:p,placement:h,strategy:n,middlewareData:f}};function Vt(e){return{top:0,right:0,bottom:0,left:0,...e}}function lt(e){return typeof e!="number"?Vt(e):{top:e,right:e,bottom:e,left:e}}function He(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ve(e,t){t===void 0&&(t={});const{x:o,y:i,platform:n,rects:r,elements:a,strategy:s}=e,{boundary:l="clippingParents",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:f=!1,padding:c=0}=t,m=lt(c),$=a[f?h==="floating"?"reference":"floating":h],w=await n.getClippingClientRect({element:await n.isElement($)?$:$.contextElement||await n.getDocumentElement({element:a.floating}),boundary:l,rootBoundary:p}),g=He(await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:h==="floating"?{...r.floating,x:o,y:i}:r.reference,offsetParent:await n.getOffsetParent({element:a.floating}),strategy:s}));return{top:w.top-g.top+m.top,bottom:g.bottom-w.bottom+m.bottom,left:w.left-g.left+m.left,right:g.right-w.right+m.right}}const Gt=Math.min,I=Math.max;function Ee(e,t,o){return I(e,Gt(t,o))}const qt=e=>({name:"arrow",options:e,async fn(t){const{element:o,padding:i=0}=e??{},{x:n,y:r,placement:a,rects:s,platform:l}=t;if(o==null)return{};const p=lt(i),h={x:n,y:r},f=k(a),c=pe(f),m=Me(c),y=await l.getDimensions({element:o}),$=c==="y"?"top":"left",w=c==="y"?"bottom":"right",g=s.reference[m]+s.reference[c]-h[c]-s.floating[m],v=h[c]-s.reference[c],_=await l.getOffsetParent({element:o}),d=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,P=g/2-v/2,L=p[$],V=d-y[m]-p[w],T=d/2-y[m]/2+P,C=Ee(L,T,V);return{data:{[c]:C,centerOffset:T-C}}}}),Yt={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,t=>Yt[t])}function pt(e,t){const o=q(e)==="start",i=pe(e),n=Me(i);let r=i==="x"?o?"right":"left":o?"bottom":"top";return t.reference[n]>t.floating[n]&&(r=fe(r)),{main:r,cross:fe(r)}}const Xt={start:"end",end:"start"};function ke(e){return e.replace(/start|end/g,t=>Xt[t])}const Ut=["top","right","bottom","left"],Kt=Ut.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function Jt(e,t,o){return(e?[...o.filter(n=>q(n)===e),...o.filter(n=>q(n)!==e)]:o.filter(n=>k(n)===n)).filter(n=>e?q(n)===e||(t?ke(n)!==n:!1):!0)}const Qt=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n,r,a,s;const{x:l,y:p,rects:h,middlewareData:f,placement:c}=t,{alignment:m=null,allowedPlacements:y=Kt,autoAlignment:$=!0,...w}=e;if((o=f.autoPlacement)!=null&&o.skip)return{};const g=Jt(m,$,y),v=await ve(t,w),_=(i=(n=f.autoPlacement)==null?void 0:n.index)!=null?i:0,d=g[_],{main:P,cross:L}=pt(d,h);if(c!==d)return{x:l,y:p,reset:{placement:g[0]}};const V=[v[k(d)],v[P],v[L]],T=[...(r=(a=f.autoPlacement)==null?void 0:a.overflows)!=null?r:[],{placement:d,overflows:V}],C=g[_+1];if(C)return{data:{index:_+1,overflows:T},reset:{placement:C}};const G=T.slice().sort((J,Q)=>J.overflows[0]-Q.overflows[0]),K=(s=G.find(J=>{let{overflows:Q}=J;return Q.every(A=>A<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:K??G[0].placement}}}}};function Zt(e){const t=fe(e);return[ke(e),t,ke(t)]}const eo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:r,rects:a,initialPlacement:s}=t;if((o=r.flip)!=null&&o.skip)return{};const{mainAxis:l=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",flipAlignment:c=!0,...m}=e,y=k(n),w=h||(y===s||!c?[fe(s)]:Zt(s)),g=[s,...w],v=await ve(t,m),_=[];let d=((i=r.flip)==null?void 0:i.overflows)||[];if(l&&_.push(v[y]),p){const{main:T,cross:C}=pt(n,a);_.push(v[T],v[C])}if(d=[...d,{placement:n,overflows:_}],!_.every(T=>T<=0)){var P,L;const T=((P=(L=r.flip)==null?void 0:L.index)!=null?P:0)+1,C=g[T];if(C)return{data:{index:T,overflows:d},reset:{placement:C}};let G="bottom";switch(f){case"bestFit":{var V;const K=(V=d.slice().sort((J,Q)=>J.overflows.filter(A=>A>0).reduce((A,Ce)=>A+Ce,0)-Q.overflows.filter(A=>A>0).reduce((A,Ce)=>A+Ce,0))[0])==null?void 0:V.placement;K&&(G=K);break}case"initialPlacement":G=s;break}return{data:{skip:!0},reset:{placement:G}}}return{}}}};function to(e){let{placement:t,rects:o,value:i}=e;const n=k(t),r=["left","top"].includes(n)?-1:1,a=typeof i=="function"?i({...o,placement:t}):i,{mainAxis:s,crossAxis:l}=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};return pe(n)==="x"?{x:l,y:s*r}:{x:s*r,y:l}}const oo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:o,y:i,placement:n,rects:r}=t,a=to({placement:n,rects:r,value:e});return{x:o+a.x,y:i+a.y,data:a}}}};function io(e){return e==="x"?"y":"x"}const no=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:g,y:v}=w;return{x:g,y:v}}},...l}=e,p={x:o,y:i},h=await ve(t,l),f=pe(k(n)),c=io(f);let m=p[f],y=p[c];if(r){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",v=m+h[w],_=m-h[g];m=Ee(v,m,_)}if(a){const w=c==="y"?"top":"left",g=c==="y"?"bottom":"right",v=y+h[w],_=y-h[g];y=Ee(v,y,_)}const $=s.fn({...t,[f]:m,[c]:y});return{...$,data:{x:$.x-o,y:$.y-i}}}}},so=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o;const{placement:i,rects:n,middlewareData:r}=t,{apply:a,...s}=e;if((o=r.size)!=null&&o.skip)return{};const l=await ve(t,s),p=k(i),h=q(i)==="end";let f,c;p==="top"||p==="bottom"?(f=p,c=h?"left":"right"):(c=p,f=h?"top":"bottom");const m=I(l.left,0),y=I(l.right,0),$=I(l.top,0),w=I(l.bottom,0),g={height:n.floating.height-(["left","right"].includes(i)?2*($!==0||w!==0?$+w:I(l.top,l.bottom)):l[f]),width:n.floating.width-(["top","bottom"].includes(i)?2*(m!==0||y!==0?m+y:I(l.left,l.right)):l[c])};return a?.({...g,...n}),{data:{skip:!0},reset:{rects:!0}}}}};function Be(e){return e?.toString()==="[object Window]"}function M(e){if(e==null)return window;if(!Be(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function $e(e){return M(e).getComputedStyle(e)}function z(e){return Be(e)?"":e?(e.nodeName||"").toLowerCase():""}function H(e){return e instanceof M(e).HTMLElement}function me(e){return e instanceof M(e).Element}function ro(e){return e instanceof M(e).Node}function dt(e){const t=M(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _e(e){const{overflow:t,overflowX:o,overflowY:i}=$e(e);return/auto|scroll|overlay|hidden/.test(t+i+o)}function ao(e){return["table","td","th"].includes(z(e))}function ht(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),o=$e(e);return o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].includes(o.willChange)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)}const je=Math.min,ee=Math.max,ge=Math.round;function Y(e,t){t===void 0&&(t=!1);const o=e.getBoundingClientRect();let i=1,n=1;return t&&H(e)&&(i=e.offsetWidth>0&&ge(o.width)/e.offsetWidth||1,n=e.offsetHeight>0&&ge(o.height)/e.offsetHeight||1),{width:o.width/i,height:o.height/n,top:o.top/n,right:o.right/i,bottom:o.bottom/n,left:o.left/i,x:o.left/i,y:o.top/n}}function B(e){return((ro(e)?e.ownerDocument:e.document)||window.document).documentElement}function be(e){return Be(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ct(e){return Y(B(e)).left+be(e).scrollLeft}function lo(e){const t=Y(e);return ge(t.width)!==e.offsetWidth||ge(t.height)!==e.offsetHeight}function po(e,t,o){const i=H(t),n=B(t),r=Y(e,i&&lo(t));let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&o!=="fixed")if((z(t)!=="body"||_e(n))&&(a=be(t)),H(t)){const l=Y(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=ct(n));return{x:r.left+a.scrollLeft-s.x,y:r.top+a.scrollTop-s.y,width:r.width,height:r.height}}function Pe(e){return z(e)==="html"?e:e.assignedSlot||e.parentNode||(dt(e)?e.host:null)||B(e)}function Ve(e){return!H(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function ho(e){let t=Pe(e);for(;H(t)&&!["html","body"].includes(z(t));){if(ht(t))return t;t=t.parentNode}return null}function Le(e){const t=M(e);let o=Ve(e);for(;o&&ao(o)&&getComputedStyle(o).position==="static";)o=Ve(o);return o&&(z(o)==="html"||z(o)==="body"&&getComputedStyle(o).position==="static"&&!ht(o))?t:o||ho(e)||t}function Ge(e){return{width:e.offsetWidth,height:e.offsetHeight}}function co(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=H(o),r=B(o);if(o===r)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((n||!n&&i!=="fixed")&&((z(o)!=="body"||_e(r))&&(a=be(o)),H(o))){const l=Y(o,!0);s.x=l.x+o.clientLeft,s.y=l.y+o.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}}function uo(e){const t=M(e),o=B(e),i=t.visualViewport;let n=o.clientWidth,r=o.clientHeight,a=0,s=0;return i&&(n=i.width,r=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(a=i.offsetLeft,s=i.offsetTop)),{width:n,height:r,x:a,y:s}}function fo(e){var t;const o=B(e),i=be(e),n=(t=e.ownerDocument)==null?void 0:t.body,r=ee(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=ee(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let s=-i.scrollLeft+ct(e);const l=-i.scrollTop;return $e(n||o).direction==="rtl"&&(s+=ee(o.clientWidth,n?n.clientWidth:0)-r),{width:r,height:a,x:s,y:l}}function ut(e){return["html","body","#document"].includes(z(e))?e.ownerDocument.body:H(e)&&_e(e)?e:ut(Pe(e))}function we(e,t){var o;t===void 0&&(t=[]);const i=ut(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),r=M(i),a=n?[r].concat(r.visualViewport||[],_e(i)?i:[]):i,s=t.concat(a);return n?s:s.concat(we(Pe(a)))}function mo(e,t){const o=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(o&&dt(o)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function go(e){const t=Y(e),o=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:o,left:i,x:i,y:o,right:i+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function qe(e,t){return t==="viewport"?He(uo(e)):me(t)?go(t):He(fo(B(e)))}function wo(e){const t=we(Pe(e)),i=["absolute","fixed"].includes($e(e).position)&&H(e)?Le(e):e;return me(i)?t.filter(n=>me(n)&&mo(n,i)&&z(n)!=="body"):[]}function yo(e){let{element:t,boundary:o,rootBoundary:i}=e;const r=[...o==="clippingParents"?wo(t):[].concat(o),i],a=r[0],s=r.reduce((l,p)=>{const h=qe(t,p);return l.top=ee(h.top,l.top),l.right=je(h.right,l.right),l.bottom=je(h.bottom,l.bottom),l.left=ee(h.left,l.left),l},qe(t,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}const vo={getElementRects:e=>{let{reference:t,floating:o,strategy:i}=e;return{reference:po(t,Le(o),i),floating:{...Ge(o),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>co(e),getOffsetParent:e=>{let{element:t}=e;return Le(t)},isElement:e=>me(e),getDocumentElement:e=>{let{element:t}=e;return B(t)},getClippingClientRect:e=>yo(e),getDimensions:e=>{let{element:t}=e;return Ge(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},$o=(e,t,o)=>jt(e,t,{platform:vo,...o});var _o=Object.defineProperty,bo=Object.defineProperties,Po=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,Xe=(e,t,o)=>t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,N=(e,t)=>{for(var o in t||(t={}))To.call(t,o)&&Xe(e,o,t[o]);if(Ye)for(var o of Ye(t))So.call(t,o)&&Xe(e,o,t[o]);return e},de=(e,t)=>bo(e,Po(t));const j={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function X(e,t){let o=j.themes[e]||{},i;do i=o[t],typeof i>"u"?o.$extend?o=j.themes[o.$extend]||{}:(o=null,i=j[t]):o=null;while(o);return i}function Co(e){const t=[e];let o=j.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=j.themes[o.$extend]||{}):o=null;while(o);return t.map(i=>`v-popper--theme-${i}`)}function Ue(e){const t=[e];let o=j.themes[e]||{};do o.$extend?(t.push(o.$extend),o=j.themes[o.$extend]||{}):o=null;while(o);return t}let U=!1;if(typeof window<"u"){U=!1;try{const e=Object.defineProperty({},"passive",{get(){U=!0}});window.addEventListener("test",null,e)}catch{}}let ft=!1;typeof window<"u"&&typeof navigator<"u"&&(ft=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const mt=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Ke={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Je={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Qe(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function Oe(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const S=[];let F=null;const Ze={};function et(e){let t=Ze[e];return t||(t=Ze[e]=[]),t}let De=function(){};typeof window<"u"&&(De=window.Element);function u(e){return function(t){return X(t.theme,e)}}const Ae="__floating-vue__popper";var gt=()=>E({name:"VPopper",provide(){return{[Ae]:{parentPopper:this}}},inject:{[Ae]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:u("disabled")},positioningDisabled:{type:Boolean,default:u("positioningDisabled")},placement:{type:String,default:u("placement"),validator:e=>mt.includes(e)},delay:{type:[String,Number,Object],default:u("delay")},distance:{type:[Number,String],default:u("distance")},skidding:{type:[Number,String],default:u("skidding")},triggers:{type:Array,default:u("triggers")},showTriggers:{type:[Array,Function],default:u("showTriggers")},hideTriggers:{type:[Array,Function],default:u("hideTriggers")},popperTriggers:{type:Array,default:u("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:u("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:u("popperHideTriggers")},container:{type:[String,Object,De,Boolean],default:u("container")},boundary:{type:[String,De],default:u("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:u("strategy")},autoHide:{type:[Boolean,Function],default:u("autoHide")},handleResize:{type:Boolean,default:u("handleResize")},instantMove:{type:Boolean,default:u("instantMove")},eagerMount:{type:Boolean,default:u("eagerMount")},popperClass:{type:[String,Array,Object],default:u("popperClass")},computeTransformOrigin:{type:Boolean,default:u("computeTransformOrigin")},autoMinSize:{type:Boolean,default:u("autoMinSize")},autoSize:{type:[Boolean,String],default:u("autoSize")},autoMaxSize:{type:Boolean,default:u("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:u("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:u("preventOverflow")},overflowPadding:{type:[Number,String],default:u("overflowPadding")},arrowPadding:{type:[Number,String],default:u("arrowPadding")},arrowOverflow:{type:Boolean,default:u("arrowOverflow")},flip:{type:Boolean,default:u("flip")},shift:{type:Boolean,default:u("shift")},shiftCrossAxis:{type:Boolean,default:u("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:u("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:de(N({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ae])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:N(N({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var i,n;((i=this.parentPopper)==null?void 0:i.lockedChild)&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(o||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(o=>o.nodeType===o.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(oo({mainAxis:this.distance,crossAxis:this.skidding}));const o=this.placement.startsWith("auto");if(o?t.middleware.push(Qt({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(no({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!o&&this.flip&&t.middleware.push(eo({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(qt({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:r,middlewareData:a})=>{let s;const{centerOffset:l}=a.arrow;return n.startsWith("top")||n.startsWith("bottom")?s=Math.abs(l)>r.reference.width/2:s=Math.abs(l)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:a,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let p,h;return a.startsWith("top")||a.startsWith("bottom")?p=r.reference.width:h=r.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=p!=null?`${p}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=h!=null?`${h}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(so({boundary:this.boundary,padding:this.overflowPadding,apply:({width:n,height:r})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const i=await $o(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:N(N({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),F&&this.instantMove&&F.instantMove&&F!==this.parentPopper){F.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(F=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Oe(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...we(this.$_referenceNode),...we(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),i=o.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+o.offsetLeft),r=t.y+t.height/2-(i.top+o.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<S.length;o++)t=S[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}S.push(this),document.body.classList.add("v-popper--some-open");for(const t of Ue(this.theme))et(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Oe(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Qe(S,this),S.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of Ue(this.theme)){const i=et(o);Qe(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}F===this&&(F=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=X(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Oe(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,Ke,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Ke,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,Je,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Je,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(i=>i.addEventListener(t,o,U?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let r=o;i!=null&&(r=typeof i=="function"?i(r):i),r.forEach(a=>{const s=t[a];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:r}=o;!e||e===n?i.forEach(a=>a.removeEventListener(n,r)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];i==null?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(te>=e.left&&te<=e.right&&oe>=e.top&&oe<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=te-D,i=oe-R,r=t.left+t.width/2-D+(t.top+t.height/2)-R+t.width+t.height,a=D+o*r,s=R+i*r;return he(D,R,a,s,t.left,t.top,t.left,t.bottom)||he(D,R,a,s,t.left,t.top,t.right,t.top)||he(D,R,a,s,t.right,t.top,t.right,t.bottom)||he(D,R,a,s,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(ft?(document.addEventListener("touchstart",tt,U?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Oo,U?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",tt,!0),window.addEventListener("click",xo,!0)),window.addEventListener("resize",zo));function tt(e){for(let t=0;t<S.length;t++){const o=S[t];try{const i=o.popperNode();o.$_mouseDownContains=i.contains(e.target)}catch{}}}function xo(e){wt(e)}function Oo(e){wt(e,!0)}function wt(e,t=!1){const o={};for(let i=S.length-1;i>=0;i--){const n=S[i];try{const r=n.$_containsGlobalTarget=Ao(n,e);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!o[n.randomId]&&ot(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)o[s.randomId]=!0,s=s.parentPopper;return}let a=n.parentPopper;for(;a&&ot(a,a.$_containsGlobalTarget,e);){a.$_handleGlobalClose(e,t);a=a.parentPopper}}})}catch{}}}function Ao(e,t){const o=e.popperNode();return e.$_mouseDownContains||o.contains(t.target)}function ot(e,t,o){return o.closeAllPopover||o.closePopover&&t||No(e,o)&&!t}function No(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function zo(e){for(let t=0;t<S.length;t++)S[t].$_computePosition(e)}let D=0,R=0,te=0,oe=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{D=te,R=oe,te=e.clientX,oe=e.clientY},U?{passive:!0}:void 0);function he(e,t,o,i,n,r,a,s){const l=((a-n)*(t-r)-(s-r)*(e-n))/((s-r)*(o-e)-(a-n)*(i-t)),p=((o-e)*(t-r)-(i-t)*(e-n))/((s-r)*(o-e)-(a-n)*(i-t));return l>=0&&l<=1&&p>=0&&p<=1}var Te=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};const Ho={extends:gt()};function Eo(e,t,o,i,n,r){return O(),ie("div",{ref:"reference",class:ye(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ne(e.$slots,"default",Ht(Et(e.slotData)))],2)}var ko=Te(Ho,[["render",Eo]]);function Lo(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let ue;function Re(){Re.init||(Re.init=!0,ue=Lo()!==-1)}var Se={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Re(),zt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",ue&&this.$el.appendChild(e),e.data="about:blank",ue||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ue&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Do=kt();At("data-v-b329ee4c");const Ro={class:"resize-observer",tabindex:"-1"};Nt();const Mo=Do((e,t,o,i,n,r)=>(O(),le("div",Ro)));Se.render=Mo;Se.__scopeId="data-v-b329ee4c";Se.__file="src/components/ResizeObserver.vue";var yt=(e="theme")=>({computed:{themeClass(){return Co(this[e])}}});const Bo=E({name:"VPopperContent",components:{ResizeObserver:Se},mixins:[yt()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Fo=["id","aria-hidden","tabindex","data-popper-placement"],Io={ref:"inner",class:"v-popper__inner"},Wo=W("div",{class:"v-popper__arrow-outer"},null,-1),jo=W("div",{class:"v-popper__arrow-inner"},null,-1),Vo=[Wo,jo];function Go(e,t,o,i,n,r){const a=se("ResizeObserver");return O(),ie("div",{id:e.popperId,ref:"popover",class:ye(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:xe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Tt(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[W("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),W("div",{class:"v-popper__wrapper",style:xe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[W("div",Io,[e.mounted?(O(),ie(Lt,{key:0},[W("div",null,[ne(e.$slots,"default")]),e.handleResize?(O(),le(a,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):Ie("",!0)],64)):Ie("",!0)],512),W("div",{ref:"arrow",class:"v-popper__arrow-container",style:xe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Vo,4)],4)],46,Fo)}var vt=Te(Bo,[["render",Go]]),$t={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const qo=E({name:"VPopperWrapper",components:{Popper:ko,PopperContent:vt},mixins:[$t,yt("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Yo(e,t,o,i,n,r){const a=se("PopperContent"),s=se("Popper");return O(),le(s,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:ye([e.themeClass])},{default:re(({popperId:l,isShown:p,shouldMountContent:h,skipTransition:f,autoHide:c,show:m,hide:y,handleResize:$,onResize:w,classes:g,result:v})=>[ne(e.$slots,"default",{shown:p,show:m,hide:y}),rt(a,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:p,mounted:h,"skip-transition":f,"auto-hide":c,"handle-resize":$,classes:g,result:v,onHide:y,onResize:w},{default:re(()=>[ne(e.$slots,"popper",{shown:p,hide:y})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var Fe=Te(qo,[["render",Yo]]);E(de(N({},Fe),{name:"VDropdown",vPopperTheme:"dropdown"}));E(de(N({},Fe),{name:"VMenu",vPopperTheme:"menu"}));E(de(N({},Fe),{name:"VTooltip",vPopperTheme:"tooltip"}));const Xo=E({name:"VTooltipDirective",components:{Popper:gt(),PopperContent:vt},mixins:[$t],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>X(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>X(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(i=>this.onResult(t,i)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Uo=["innerHTML"],Ko=["textContent"];function Jo(e,t,o,i,n,r){const a=se("PopperContent"),s=se("Popper");return O(),le(s,Rt({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:re(({popperId:l,isShown:p,shouldMountContent:h,skipTransition:f,autoHide:c,hide:m,handleResize:y,onResize:$,classes:w,result:g})=>[rt(a,{ref:"popperContent",class:ye({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:p,mounted:h,"skip-transition":f,"auto-hide":c,"handle-resize":y,classes:w,result:g,onHide:m,onResize:$},{default:re(()=>[e.html?(O(),ie("div",{key:0,innerHTML:e.finalContent},null,8,Uo)):(O(),ie("div",{key:1,textContent:Dt(e.finalContent)},null,8,Ko))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var Qo=Te(Xo,[["render",Jo]]);const _t="v-popper--has-tooltip";function Zo(e,t){let o=e.placement;if(!o&&t)for(const i of mt)t[i]&&(o=i);return o||(o=X(e.theme||"tooltip","placement")),o}function bt(e,t,o){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=Zo(i,o),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let Ne,ae,ei=0;function ti(){if(Ne)return;ae=ze([]),Ne=st({name:"VTooltipDirectiveApp",setup(){return{directives:ae}},render(){return this.directives.map(t=>Z(Qo,de(N({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Ne.mount(e)}function oi(e,t,o){ti();const i=ze(bt(e,t,o)),n=ze(!1),r={id:ei++,options:i,shown:n};return ae.value.push(r),e.classList&&e.classList.add(_t),e.$_popper={options:i,item:r,show(){n.value=!0},hide(){n.value=!1}}}function Pt(e){if(e.$_popper){const t=ae.value.indexOf(e.$_popper.item);t!==-1&&ae.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(_t)}function it(e,{value:t,modifiers:o}){const i=bt(e,t,o);if(!i.content||X(i.theme||"tooltip","disabled"))Pt(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=i):n=oi(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}var ii={beforeMount:it,updated:it,beforeUnmount(e){Pt(e)}};const ni=ii,si=E({__name:"Fade",props:{speed:{default:"default"},slide:null,isLeaveTo:{type:Boolean,default:!0},isEnterFrom:{type:Boolean,default:!0}},setup(e){const t=e;Ct(d=>({de1ebbd6:x(w),fb017372:x(o),a7913688:x(r),"44556fdd":x(s),b31f6b54:x(c),"77b9da92":x(y),"764bb2e8":x(a),"816204a6":x(l),"5ef3e2f4":x(m),"7b2c0887":x($)}));const o=b(()=>t.speed==="default"?"var(--transition, .2s linear)":`var(--transition-${t.speed}, .4s linear)`),i=b(()=>{switch(t.slide){case"down":return"translate3d(0, -100%, 0)";case"left":return"translate3d(-100%, 0, 0)";case"right":return"translate3d(100%, 0, 0)";case"up":return"translate3d(0, 100%, 0)";default:return"none"}}),n=b(()=>i.value!=="none"?.1:0),r=b(()=>t.isEnterFrom?n.value:1),a=b(()=>t.isLeaveTo?n.value:1),s=b(()=>t.isEnterFrom?i.value:"none"),l=b(()=>t.isLeaveTo?i.value:"none"),p=b(()=>t.slide==="down"||t.slide==="up"),h=b(()=>p.value?0:"auto"),f=b(()=>t.slide&&!p.value?0:"auto"),c=b(()=>t.isEnterFrom?h.value:"auto"),m=b(()=>t.isLeaveTo?h.value:"auto"),y=b(()=>t.isEnterFrom?f.value:"auto"),$=b(()=>t.isLeaveTo?f.value:"auto"),w=b(()=>{let d="opacity";return i.value!=="none"&&(d+=", transform"),h.value!=="auto"&&(d+=", height"),f.value!=="auto"&&(d+=", width"),d}),g=d=>{if(t.slide){p.value?(d.style.width=getComputedStyle(d).width,d.style.height="auto"):(d.style.width="auto",d.style.height=getComputedStyle(d).height),d.style.position="absolute",d.style.visibility="hidden";const{width:P,height:L}=getComputedStyle(d);d.style.width=p.value?null:"0",d.style.height=p.value?"0":null,d.style.position=null,d.style.visibility=null,getComputedStyle(d)[p.value?"height":"width"],requestAnimationFrame(()=>{p.value?d.style.height=L:d.style.width=P})}},v=d=>{t.slide&&(d.style[p.value?"height":"width"]="auto")},_=d=>{if(t.slide){p.value?d.style.height=getComputedStyle(d).height:d.style.width=getComputedStyle(d).width;const P=p.value?"height":"width";getComputedStyle(d)[P],requestAnimationFrame(()=>{d.style[P]="0"})}};return(d,P)=>(O(),le(St,{name:"sf-fade",onEnter:g,onAfterEnter:v,onLeave:_},{default:re(()=>[ne(d.$slots,"default",{},void 0,!0)]),_:3}))}}),ri=xt(si,[["__scopeId","data-v-f3719df1"]]),ai=(e,t=1)=>Number.isInteger(e)?`${e}%`:`${e.toFixed(t)}%`,nt=e=>{e.use({install:(t,o)=>{t.config.globalProperties.$t=(i,n)=>Ft(i,n||o?.lang),t.config.globalProperties.$money=Wt,t.config.globalProperties.$percentage=ai}}),e.directive("tooltip",ni),e.component("Fade",ri)},li=E({props:{value:String,name:String},setup({name:e,value:t}){return t?()=>Z("astro-slot",{name:e,innerHTML:t}):()=>null}}),fi=e=>async(t,o,i,{client:n})=>{if(delete o.class,!e.hasAttribute("ssr"))return;const r=t.name?`${t.name} Host`:void 0,a={};for(const[s,l]of Object.entries(i))a[s]=()=>Z(li,{value:l,name:s==="default"?void 0:s});if(n==="only"){const s=st({name:r,render:()=>Z(t,o,a)});await nt(s),s.mount(e,!1)}else{const s=Ot({name:r,render:()=>Z(t,o,a)});await nt(s),s.mount(e,!0)}};export{fi as default};