@ozdao/prometheus-framework 0.2.88 → 0.2.90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/main-BV1Yv9Hy.js +92 -0
  2. package/dist/main-DmNP-t33.mjs +13625 -0
  3. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  4. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +748 -750
  5. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -1
  6. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +40 -39
  7. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  8. package/dist/node_modules/web3/lib/esm/index.js +42 -41
  9. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  10. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  11. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -1
  12. package/dist/node_modules/web3-eth/lib/esm/schemas.js +113 -88
  13. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +3 -1
  14. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +242 -217
  15. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  16. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +43 -37
  17. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -1
  18. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +3 -1
  19. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  20. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +34 -13
  21. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  22. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +48 -36
  23. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  24. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +2 -2
  25. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  26. package/dist/node_modules/web3-utils/lib/esm/converters.js +52 -50
  27. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  28. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +13 -13
  29. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  30. package/dist/node_modules/web3-validator/lib/esm/utils.js +76 -87
  31. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -1
  32. package/dist/node_modules/web3-validator/lib/esm/validator.js +49 -47
  33. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  34. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +168 -158
  35. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +73 -1
  37. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  38. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -73
  39. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
  41. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  42. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
  43. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
  45. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  46. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
  47. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  55. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  57. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  59. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  77. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  79. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  101. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  107. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -25
  117. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  129. package/dist/prometheus-framework.cjs.js +1 -1
  130. package/dist/prometheus-framework.es.js +1 -1
  131. package/dist/style.css +1 -1
  132. package/dist/web-Bk_OtXgv.js +1 -0
  133. package/dist/web-VFuzUsNl.mjs +54 -0
  134. package/package.json +19 -19
  135. package/src/modules/events/components/pages/Events.vue +0 -1
  136. package/src/modules/landing/components/pages/Governance.vue +0 -11
  137. package/src/modules/landing/components/pages/Hotel.vue +0 -9
  138. package/src/modules/landing/components/pages/Page.vue +0 -7
  139. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -8
  140. package/src/modules/products/components/pages/Product.vue +1 -13
  141. package/src/modules/spots/components/layouts/Spots.vue +0 -9
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function xt(t){return typeof t=="number"}function bt(t){return typeof t=="string"}function Et(t){return typeof t=="boolean"}function Ot(t){return Object.prototype.toString.call(t)==="[object Object]"}function P(t){return Math.abs(t)}function Lt(t){return Math.sign(t)}function ct(t,n){return P(t-n)}function $t(t,n){if(t===0||n===0||P(t)<=P(n))return 0;const r=ct(P(t),P(n));return P(r/t)}function ut(t){return ft(t).map(Number)}function B(t){return t[lt(t)]}function lt(t){return Math.max(0,t.length-1)}function vt(t,n){return n===lt(t)}function wt(t,n=0){return Array.from(Array(t),(r,i)=>n+i)}function ft(t){return Object.keys(t)}function Ct(t,n){return[t,n].reduce((r,i)=>(ft(i).forEach(c=>{const o=r[c],e=i[c],u=Ot(o)&&Ot(e);r[c]=u?Ct(o,e):e}),r),{})}function Nt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function Qt(t,n){const r={start:i,center:c,end:o};function i(){return 0}function c(s){return o(s)/2}function o(s){return n-s}function e(s,a){return bt(t)?r[t](s):t(n,s,a)}return{measure:e}}function at(){let t=[];function n(c,o,e,u={passive:!0}){let s;if("addEventListener"in c)c.addEventListener(o,e,u),s=()=>c.removeEventListener(o,e,u);else{const a=c;a.addListener(e),s=()=>a.removeListener(e)}return t.push(s),i}function r(){t=t.filter(c=>c())}const i={add:n,clear:r};return i}function _t(t,n,r,i){const c=at(),o=1e3/60;let e=null,u=0,s=0;function a(){c.add(t,"visibilitychange",()=>{t.hidden&&m()})}function S(){x(),c.clear()}function l(h){if(!s)return;e||(e=h);const f=h-e;for(e=h,u+=f;u>=o;)r(),u-=o;const g=P(u/o);i(g),s&&n.requestAnimationFrame(l)}function p(){s||(s=n.requestAnimationFrame(l))}function x(){n.cancelAnimationFrame(s),e=null,u=0,s=0}function m(){e=null,u=0}return{init:a,destroy:S,start:p,stop:x,update:r,render:i}}function Kt(t,n){const r=t==="y"?"y":"x",i=t==="y"?"x":"y",c=u(),o=s();function e(S){const{width:l,height:p}=S;return r==="x"?l:p}function u(){return r==="y"?"top":n==="rtl"?"right":"left"}function s(){return r==="y"?"bottom":n==="rtl"?"left":"right"}return{scroll:r,cross:i,startEdge:c,endEdge:o,measureSize:e}}function tt(t=0,n=0){const r=P(t-n);function i(a){return a<t}function c(a){return a>n}function o(a){return i(a)||c(a)}function e(a){return o(a)?i(a)?t:n:a}function u(a){return r?a-r*Math.ceil((a-n)/r):a}return{length:r,max:n,min:t,constrain:e,reachedAny:o,reachedMax:c,reachedMin:i,removeOffset:u}}function zt(t,n,r){const{constrain:i}=tt(0,t),c=t+1;let o=e(n);function e(p){return r?P((c+p)%c):i(p)}function u(){return o}function s(p){return o=e(p),l}function a(p){return S().set(u()+p)}function S(){return zt(t,u(),r)}const l={get:u,set:s,add:a,clone:S};return l}function Xt(t){const n=t==="rtl"?-1:1;function r(c){return c*n}return{apply:r}}function Yt(t,n,r,i,c,o,e,u,s,a,S,l,p,x,m,d,h,f,g,b){const{cross:L}=t,v=["INPUT","SELECT","TEXTAREA"],M={passive:!1},O=at(),E=at(),I=tt(50,225).constrain(m.measure(20)),T={mouse:300,touch:400},A={mouse:500,touch:600},C=d?43:25;let H=!1,G=0,q=0,j=!1,X=!1,Y=!1,U=!1;function ot(y){if(!b)return;function D(N){(Et(b)||b(y,N))&&st(N)}const w=r;O.add(w,"dragstart",N=>N.preventDefault(),M).add(w,"touchmove",()=>{},M).add(w,"touchend",()=>{}).add(w,"touchstart",D).add(w,"mousedown",D).add(w,"touchcancel",z).add(w,"contextmenu",z).add(w,"click",Q,!0)}function R(){O.clear(),E.clear()}function nt(){const y=U?i:r;E.add(y,"touchmove",V,M).add(y,"touchend",z).add(y,"mousemove",V,M).add(y,"mouseup",z)}function et(y){const D=y.nodeName||"";return v.includes(D)}function $(){return(d?A:T)[U?"mouse":"touch"]}function rt(y,D){const w=p.add(Lt(y)*-1),N=l.byDistance(y,!d).distance;return d||P(y)<I?N:f&&D?N*.5:l.byIndex(w.get(),0).distance}function st(y){const D=Nt(y,c);U=D,!(D&&y.button!==0)&&(et(y.target)||(Y=d&&D&&!y.buttons&&H,H=ct(o.get(),u.get())>=2,j=!0,e.pointerDown(y),S.useFriction(0).useDuration(0),o.set(u),nt(),G=e.readPoint(y),q=e.readPoint(y,L),x.emit("pointerDown")))}function V(y){const D=e.readPoint(y),w=e.readPoint(y,L),N=ct(D,G),J=ct(w,q);if(!X&&!U&&(!y.cancelable||(X=N>J,!X)))return z(y);const _=e.pointerMove(y);N>h&&(Y=!0),S.useFriction(.3).useDuration(1),s.start(),o.add(n.apply(_)),y.preventDefault()}function z(y){const w=l.byDistance(0,!1).index!==p.get(),N=e.pointerUp(y)*$(),J=rt(n.apply(N),w),_=$t(N,J),Z=C-10*_,K=g+_/50;X=!1,j=!1,E.clear(),S.useDuration(Z).useFriction(K),a.distance(J,!d),U=!1,x.emit("pointerUp")}function Q(y){Y&&(y.stopPropagation(),y.preventDefault())}function k(){return j}return{init:ot,pointerDown:k,destroy:R}}function Jt(t,n){let i,c;function o(l){return l.timeStamp}function e(l,p){const m=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Nt(l,n)?l:l.touches[0])[m]}function u(l){return i=l,c=l,e(l)}function s(l){const p=e(l)-e(c),x=o(l)-o(i)>170;return c=l,x&&(i=l),p}function a(l){if(!i||!c)return 0;const p=e(c)-e(i),x=o(l)-o(i),m=o(l)-o(c)>170,d=p/x;return x&&!m&&P(d)>.1?d:0}return{pointerDown:u,pointerMove:s,pointerUp:a,readPoint:e}}function Zt(){function t(r){const{offsetTop:i,offsetLeft:c,offsetWidth:o,offsetHeight:e}=r;return{top:i,right:c+o,bottom:i+e,left:c,width:o,height:e}}return{measure:t}}function Wt(t){function n(i){return t*(i/100)}return{measure:n}}function tn(t,n,r,i,c,o,e){let u,s,a=[],S=!1;function l(d){return c.measureSize(e.measure(d))}function p(d){if(!o)return;s=l(t),a=i.map(l);function h(g){for(const b of g){const L=b.target===t,v=i.indexOf(b.target),M=L?s:a[v],O=l(L?t:i[v]);if(P(O-M)>=.5){r.requestAnimationFrame(()=>{d.reInit(),n.emit("resize")});break}}}u=new ResizeObserver(g=>{S||(Et(o)||o(d,g))&&h(g)}),[t].concat(i).forEach(g=>u.observe(g))}function x(){u&&u.disconnect(),S=!0}return{init:p,destroy:x}}function nn(t,n,r,i,c){let o=0,e=0,u=i,s=c,a=t.get(),S=0;function l(){const v=r.get()-t.get(),M=!u;let O=0;return M?(o=0,t.set(r),O=v):(o+=v/u,o*=s,a+=o,t.add(o),O=a-S),e=Lt(O),S=a,L}function p(){const v=r.get()-n.get();return P(v)<.001}function x(){return u}function m(){return e}function d(){return o}function h(){return g(i)}function f(){return b(c)}function g(v){return u=v,L}function b(v){return s=v,L}const L={direction:m,duration:x,velocity:d,seek:l,settled:p,useBaseFriction:f,useBaseDuration:h,useFriction:b,useDuration:g};return L}function en(t,n,r,i,c){const o=c.measure(10),e=c.measure(50),u=tt(.1,.99);let s=!1;function a(){return!(s||!t.reachedAny(r.get())||!t.reachedAny(n.get()))}function S(x){if(!a())return;const m=t.reachedMin(n.get())?"min":"max",d=P(t[m]-n.get()),h=r.get()-n.get(),f=u.constrain(d/e);r.subtract(h*f),!x&&P(h)<o&&(r.set(t.constrain(r.get())),i.useDuration(25).useBaseFriction())}function l(x){s=!x}return{constrain:S,toggleActive:l}}function on(t,n,r,i,c){const o=tt(-n+t,0),e=l(),u=S(),s=p();function a(m,d){return ct(m,d)<1}function S(){const m=e[0],d=B(e),h=e.lastIndexOf(m),f=e.indexOf(d)+1;return tt(h,f)}function l(){return r.map((m,d)=>{const{min:h,max:f}=o,g=o.constrain(m),b=!d,L=vt(r,d);return b?f:L||a(h,g)?h:a(f,g)?f:g}).map(m=>parseFloat(m.toFixed(3)))}function p(){if(n<=t+c)return[o.max];if(i==="keepSnaps")return e;const{min:m,max:d}=u;return e.slice(m,d)}return{snapsContained:s,scrollContainLimit:u}}function rn(t,n,r){const i=n[0],c=r?i-t:B(n);return{limit:tt(c,i)}}function sn(t,n,r,i){const o=n.min+.1,e=n.max+.1,{reachedMin:u,reachedMax:s}=tt(o,e);function a(p){return p===1?s(r.get()):p===-1?u(r.get()):!1}function S(p){if(!a(p))return;const x=t*(p*-1);i.forEach(m=>m.add(x))}return{loop:S}}function cn(t){const{max:n,length:r}=t;function i(o){const e=o-n;return r?e/-r:0}return{get:i}}function un(t,n,r,i,c){const{startEdge:o,endEdge:e}=t,{groupSlides:u}=c,s=l().map(n.measure),a=p(),S=x();function l(){return u(i).map(d=>B(d)[e]-d[0][o]).map(P)}function p(){return i.map(d=>r[o]-d[o]).map(d=>-P(d))}function x(){return u(a).map(d=>d[0]).map((d,h)=>d+s[h])}return{snaps:a,snapsAligned:S}}function fn(t,n,r,i,c,o){const{groupSlides:e}=c,{min:u,max:s}=i,a=S();function S(){const p=e(o),x=!t||n==="keepSnaps";return r.length===1?[o]:x?p:p.slice(u,s).map((m,d,h)=>{const f=!d,g=vt(h,d);if(f){const b=B(h[0])+1;return wt(b)}if(g){const b=lt(o)-B(h)[0]+1;return wt(b,B(h)[0])}return m})}return{slideRegistry:a}}function an(t,n,r,i,c){const{reachedAny:o,removeOffset:e,constrain:u}=i;function s(m){return m.concat().sort((d,h)=>P(d)-P(h))[0]}function a(m){const d=t?e(m):u(m),h=n.map(g=>g-d).map(g=>S(g,0)).map((g,b)=>({diff:g,index:b})).sort((g,b)=>P(g.diff)-P(b.diff)),{index:f}=h[0];return{index:f,distance:d}}function S(m,d){const h=[m,m+r,m-r];if(!t)return h[0];if(!d)return s(h);const f=h.filter(g=>Lt(g)===d);return f.length?s(f):B(h)-r}function l(m,d){const h=n[m]-c.get(),f=S(h,d);return{index:m,distance:f}}function p(m,d){const h=c.get()+m,{index:f,distance:g}=a(h),b=!t&&o(h);if(!d||b)return{index:f,distance:m};const L=n[f]-g,v=m+S(L,0);return{index:f,distance:v}}return{byDistance:p,byIndex:l,shortcut:S}}function ln(t,n,r,i,c,o,e){function u(l){const p=l.distance,x=l.index!==n.get();o.add(p),p&&(i.duration()?t.start():(t.update(),t.render(1),t.update())),x&&(r.set(n.get()),n.set(l.index),e.emit("select"))}function s(l,p){const x=c.byDistance(l,p);u(x)}function a(l,p){const x=n.clone().set(l),m=c.byIndex(x.get(),p);u(m)}return{distance:s,index:a}}function dn(t,n,r,i,c,o){let e=0;function u(){o.add(document,"keydown",s,!1),n.forEach(a)}function s(l){l.code==="Tab"&&(e=new Date().getTime())}function a(l){const p=()=>{if(new Date().getTime()-e>10)return;t.scrollLeft=0;const d=n.indexOf(l),h=r.findIndex(f=>f.includes(d));xt(h)&&(c.useDuration(0),i.index(h,0))};o.add(l,"focus",p,{passive:!0,capture:!0})}return{init:u}}function pt(t){let n=t;function r(){return n}function i(s){n=e(s)}function c(s){n+=e(s)}function o(s){n-=e(s)}function e(s){return xt(s)?s:s.get()}return{get:r,set:i,add:c,subtract:o}}function Vt(t,n,r){const i=t.scroll==="x"?e:u,c=r.style;let o=!1;function e(p){return`translate3d(${p}px,0px,0px)`}function u(p){return`translate3d(0px,${p}px,0px)`}function s(p){o||(c.transform=i(n.apply(p)))}function a(p){o=!p}function S(){o||(c.transform="",r.getAttribute("style")||r.removeAttribute("style"))}return{clear:S,to:s,toggleActive:a}}function pn(t,n,r,i,c,o,e,u,s,a){const l=ut(o),p=ut(o).reverse(),x=g().concat(b());function m(E,I){return E.reduce((T,A)=>T-o[A],I)}function d(E,I){return E.reduce((T,A)=>m(T,I)>0?T.concat([A]):T,[])}function h(E){return e.map((I,T)=>({start:I-c[T]+.5+E,end:I+r-.5+E}))}function f(E,I,T){const A=h(I);return E.map(C=>{const H=T?0:-i,G=T?i:0,q=T?"end":"start",j=A[C][q];return{index:C,loopPoint:j,slideLocation:pt(-1),translate:Vt(t,n,a[C]),target:()=>s.get()>j?H:G}})}function g(){const E=u[0],I=d(p,E);return f(I,i,!1)}function b(){const E=r-u[0]-1,I=d(l,E);return f(I,-i,!0)}function L(){return x.every(({index:E})=>{const I=l.filter(T=>T!==E);return m(I,r)<=.1})}function v(){x.forEach(E=>{const{target:I,translate:T,slideLocation:A}=E,C=I();C!==A.get()&&(T.to(C),A.set(C))})}function M(){x.forEach(E=>E.translate.clear())}return{canLoop:L,clear:M,loop:v,loopPoints:x}}function mn(t,n,r){let i,c=!1;function o(s){if(!r)return;function a(S){for(const l of S)if(l.type==="childList"){s.reInit(),n.emit("slidesChanged");break}}i=new MutationObserver(S=>{c||(Et(r)||r(s,S))&&a(S)}),i.observe(t,{childList:!0})}function e(){i&&i.disconnect(),c=!0}return{init:o,destroy:e}}function gn(t,n,r,i){const c={};let o=null,e=null,u,s=!1;function a(){u=new IntersectionObserver(m=>{s||(m.forEach(d=>{const h=n.indexOf(d.target);c[h]=d}),o=null,e=null,r.emit("slidesInView"))},{root:t.parentElement,threshold:i}),n.forEach(m=>u.observe(m))}function S(){u&&u.disconnect(),s=!0}function l(m){return ft(c).reduce((d,h)=>{const f=parseInt(h),{isIntersecting:g}=c[f];return(m&&g||!m&&!g)&&d.push(f),d},[])}function p(m=!0){if(m&&o)return o;if(!m&&e)return e;const d=l(m);return m&&(o=d),m||(e=d),d}return{init:a,destroy:S,get:p}}function hn(t,n,r,i,c,o){const{measureSize:e,startEdge:u,endEdge:s}=t,a=r[0]&&c,S=m(),l=d(),p=r.map(e),x=h();function m(){if(!a)return 0;const g=r[0];return P(n[u]-g[u])}function d(){if(!a)return 0;const g=o.getComputedStyle(B(i));return parseFloat(g.getPropertyValue(`margin-${s}`))}function h(){return r.map((g,b,L)=>{const v=!b,M=vt(L,b);return v?p[b]+S:M?p[b]+l:L[b+1][u]-g[u]}).map(P)}return{slideSizes:p,slideSizesWithGaps:x,startGap:S,endGap:l}}function Sn(t,n,r,i,c,o,e,u,s,a){const{startEdge:S,endEdge:l}=t,p=xt(i);function x(f,g){return ut(f).filter(b=>b%g===0).map(b=>f.slice(b,b+g))}function m(f){return f.length?ut(f).reduce((g,b)=>{const L=B(g)||0,v=L===0,M=b===lt(f),O=o[S]-e[L][S],E=o[S]-e[b][l],I=!c&&v?n.apply(u):0,T=!c&&M?n.apply(s):0;return P(E-T-(O+I))>r+a&&g.push(b),M&&g.push(f.length),g},[]).map((g,b,L)=>{const v=Math.max(L[b-1]||0);return f.slice(v,g)}):[]}function d(f){return p?x(f,i):m(f)}return{groupSlides:d}}function yn(t,n,r,i,c,o,e){const{align:u,axis:s,direction:a,startIndex:S,loop:l,duration:p,dragFree:x,dragThreshold:m,inViewThreshold:d,slidesToScroll:h,skipSnaps:f,containScroll:g,watchResize:b,watchSlides:L,watchDrag:v}=o,M=2,O=Zt(),E=O.measure(n),I=r.map(O.measure),T=Xt(a),A=Kt(s,a),C=A.measureSize(E),H=Wt(C),G=Qt(u,C),q=!l&&!!g,j=l||!!g,{slideSizes:X,slideSizesWithGaps:Y,startGap:U,endGap:ot}=hn(A,E,I,r,j,c),R=Sn(A,T,C,h,l,E,I,U,ot,M),{snaps:nt,snapsAligned:et}=un(A,G,E,I,R),$=-B(nt)+B(Y),{snapsContained:rt,scrollContainLimit:st}=on(C,$,et,g,M),V=q?rt:et,{limit:z}=rn($,V,l),Q=zt(lt(V),S,l),k=Q.clone(),F=ut(r),y=({dragHandler:W,scrollBody:St,scrollBounds:yt,options:{loop:dt}})=>{dt||yt.constrain(W.pointerDown()),St.seek()},D=({scrollBody:W,translate:St,location:yt,offsetLocation:dt,scrollLooper:Ht,slideLooper:Gt,dragHandler:jt,animation:Rt,eventHandler:At,options:{loop:qt}},Ut)=>{const Pt=W.velocity(),Ft=W.settled();Ft&&!jt.pointerDown()&&(Rt.stop(),At.emit("settle")),Ft||At.emit("scroll"),dt.set(yt.get()-Pt+Pt*Ut),qt&&(Ht.loop(W.direction()),Gt.loop()),St.to(dt.get())},w=_t(i,c,()=>y(ht),W=>D(ht,W)),N=.68,J=V[Q.get()],_=pt(J),Z=pt(J),K=pt(J),it=nn(_,Z,K,p,N),mt=an(l,V,$,z,K),gt=ln(w,Q,k,it,mt,K,e),Tt=cn(z),Dt=at(),kt=gn(n,r,e,d),{slideRegistry:Mt}=fn(q,g,V,st,R,F),Bt=dn(t,r,Mt,gt,it,Dt),ht={ownerDocument:i,ownerWindow:c,eventHandler:e,containerRect:E,slideRects:I,animation:w,axis:A,direction:T,dragHandler:Yt(A,T,t,i,c,K,Jt(A,c),_,w,gt,it,mt,Q,e,H,x,m,f,N,v),eventStore:Dt,percentOfView:H,index:Q,indexPrevious:k,limit:z,location:_,offsetLocation:Z,options:o,resizeHandler:tn(n,e,c,r,A,b,O),scrollBody:it,scrollBounds:en(z,Z,K,it,H),scrollLooper:sn($,z,Z,[_,Z,K]),scrollProgress:Tt,scrollSnapList:V.map(Tt.get),scrollSnaps:V,scrollTarget:mt,scrollTo:gt,slideLooper:pn(A,T,C,$,X,Y,nt,V,Z,r),slideFocus:Bt,slidesHandler:mn(n,e,L),slidesInView:kt,slideIndexes:F,slideRegistry:Mt,slidesToScroll:R,target:K,translate:Vt(A,T,n)};return ht}function bn(){const t={};let n;function r(s){n=s}function i(s){return t[s]||[]}function c(s){return i(s).forEach(a=>a(n,s)),u}function o(s,a){return t[s]=i(s).concat([a]),u}function e(s,a){return t[s]=i(s).filter(S=>S!==a),u}const u={init:r,emit:c,off:e,on:o};return u}const xn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function En(t){function n(o,e){return Ct(o,e||{})}function r(o){const e=o.breakpoints||{},u=ft(e).filter(s=>t.matchMedia(s).matches).map(s=>e[s]).reduce((s,a)=>n(s,a),{});return n(o,u)}function i(o){return o.map(e=>ft(e.breakpoints||{})).reduce((e,u)=>e.concat(u),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:i}}function Ln(t){let n=[];function r(o,e){return n=e.filter(({options:u})=>t.optionsAtMedia(u).active!==!1),n.forEach(u=>u.init(o,t)),e.reduce((u,s)=>Object.assign(u,{[s.name]:s}),{})}function i(){n=n.filter(o=>o.destroy())}return{init:r,destroy:i}}function It(t,n,r){const i=t.ownerDocument,c=i.defaultView,o=En(c),e=Ln(o),u=at(),s=bn(),{mergeOptions:a,optionsAtMedia:S,optionsMediaQueries:l}=o,{on:p,off:x,emit:m}=s,d=A;let h=!1,f,g=a(xn,It.globalOptions),b=a(g),L=[],v,M,O;function E(){const{container:F,slides:y}=b;M=(bt(F)?t.querySelector(F):F)||t.children[0];const w=bt(y)?M.querySelectorAll(y):y;O=[].slice.call(w||M.children)}function I(F){const y=yn(t,M,O,i,c,F,s);if(F.loop&&!y.slideLooper.canLoop()){const D=Object.assign({},F,{loop:!1});return I(D)}return y}function T(F,y){h||(g=a(g,F),b=S(g),L=y||L,E(),f=I(b),l([g,...L.map(({options:D})=>D)]).forEach(D=>u.add(D,"change",A)),b.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(),f.eventHandler.init(k),f.resizeHandler.init(k),f.slidesHandler.init(k),f.options.loop&&f.slideLooper.loop(),M.offsetParent&&O.length&&f.dragHandler.init(k),v=e.init(k,L)))}function A(F,y){const D=R();C(),T(a({startIndex:D},F),y),s.emit("reInit")}function C(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),e.destroy(),u.clear()}function H(){h||(h=!0,u.clear(),C(),s.emit("destroy"))}function G(F,y,D){!b.active||h||(f.scrollBody.useBaseFriction().useDuration(y===!0?0:b.duration),f.scrollTo.index(F,D||0))}function q(F){const y=f.index.add(1).get();G(y,F,-1)}function j(F){const y=f.index.add(-1).get();G(y,F,1)}function X(){return f.index.add(1).get()!==R()}function Y(){return f.index.add(-1).get()!==R()}function U(){return f.scrollSnapList}function ot(){return f.scrollProgress.get(f.location.get())}function R(){return f.index.get()}function nt(){return f.indexPrevious.get()}function et(){return f.slidesInView.get()}function $(){return f.slidesInView.get(!1)}function rt(){return v}function st(){return f}function V(){return t}function z(){return M}function Q(){return O}const k={canScrollNext:X,canScrollPrev:Y,containerNode:z,internalEngine:st,destroy:H,off:x,on:p,emit:m,plugins:rt,previousScrollSnap:nt,reInit:d,rootNode:V,scrollNext:q,scrollPrev:j,scrollProgress:ot,scrollSnapList:U,scrollTo:G,selectedScrollSnap:R,slideNodes:Q,slidesInView:et,slidesNotInView:$};return T(n,r),setTimeout(()=>s.emit("init"),0),k}It.globalOptions=void 0;exports.default=It;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function xt(t){return typeof t=="number"}function yt(t){return typeof t=="string"}function Et(t){return typeof t=="boolean"}function Ot(t){return Object.prototype.toString.call(t)==="[object Object]"}function A(t){return Math.abs(t)}function Lt(t){return Math.sign(t)}function it(t,n){return A(t-n)}function Ut(t,n){if(t===0||n===0||A(t)<=A(n))return 0;const r=it(A(t),A(n));return A(r/t)}function ct(t){return ut(t).map(Number)}function j(t){return t[at(t)]}function at(t){return Math.max(0,t.length-1)}function vt(t,n){return n===at(t)}function Ct(t,n=0){return Array.from(Array(t),(r,s)=>n+s)}function ut(t){return Object.keys(t)}function wt(t,n){return[t,n].reduce((r,s)=>(ut(s).forEach(c=>{const e=r[c],o=s[c],u=Ot(e)&&Ot(o);r[c]=u?wt(e,o):o}),r),{})}function bt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function $t(t,n){const r={start:s,center:c,end:e};function s(){return 0}function c(i){return e(i)/2}function e(i){return n-i}function o(i,a){return yt(t)?r[t](i):t(n,i,a)}return{measure:o}}function ft(){let t=[];function n(c,e,o,u={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(e,o,u),i=()=>c.removeEventListener(e,o,u);else{const a=c;a.addListener(o),i=()=>a.removeListener(o)}return t.push(i),s}function r(){t=t.filter(c=>c())}const s={add:n,clear:r};return s}function Qt(t,n,r,s){const c=ft(),e=1e3/60;let o=null,u=0,i=0;function a(){c.add(t,"visibilitychange",()=>{t.hidden&&d()})}function S(){x(),c.clear()}function f(g){if(!i)return;o||(o=g);const l=g-o;for(o=g,u+=l;u>=e;)r(),u-=e;const h=A(u/e);s(h),i&&n.requestAnimationFrame(f)}function m(){i||(i=n.requestAnimationFrame(f))}function x(){n.cancelAnimationFrame(i),o=null,u=0,i=0}function d(){o=null,u=0}return{init:a,destroy:S,start:m,stop:x,update:r,render:s}}function _t(t,n){const r=n==="rtl",s=t==="y",c=s?"y":"x",e=s?"x":"y",o=!s&&r?-1:1,u=S(),i=f();function a(d){const{height:p,width:g}=d;return s?p:g}function S(){return s?"top":r?"right":"left"}function f(){return s?"bottom":r?"left":"right"}function m(d){return d*o}return{scroll:c,cross:e,startEdge:u,endEdge:i,measureSize:a,direction:m}}function nt(t=0,n=0){const r=A(t-n);function s(a){return a<t}function c(a){return a>n}function e(a){return s(a)||c(a)}function o(a){return e(a)?s(a)?t:n:a}function u(a){return r?a-r*Math.ceil((a-n)/r):a}return{length:r,max:n,min:t,constrain:o,reachedAny:e,reachedMax:c,reachedMin:s,removeOffset:u}}function Nt(t,n,r){const{constrain:s}=nt(0,t),c=t+1;let e=o(n);function o(m){return r?A((c+m)%c):s(m)}function u(){return e}function i(m){return e=o(m),f}function a(m){return S().set(u()+m)}function S(){return Nt(t,u(),r)}const f={get:u,set:i,add:a,clone:S};return f}function Kt(t,n,r,s,c,e,o,u,i,a,S,f,m,x,d,p,g,l,h){const{cross:b,direction:L}=t,I=["INPUT","SELECT","TEXTAREA"],P={passive:!1},E=ft(),v=ft(),D=nt(50,225).constrain(x.measure(20)),M={mouse:300,touch:400},O={mouse:500,touch:600},V=d?43:25;let X=!1,B=0,U=0,J=!1,$=!1,Y=!1,Q=!1;function Z(y){if(!h)return;function T(w){(Et(h)||h(y,w))&&z(w)}const C=n;E.add(C,"dragstart",w=>w.preventDefault(),P).add(C,"touchmove",()=>{},P).add(C,"touchend",()=>{}).add(C,"touchstart",T).add(C,"mousedown",T).add(C,"touchcancel",N).add(C,"contextmenu",N).add(C,"click",ot,!0)}function _(){E.clear(),v.clear()}function et(){const y=Q?r:n;v.add(y,"touchmove",R,P).add(y,"touchend",N).add(y,"mousemove",R,P).add(y,"mouseup",N)}function K(y){const T=y.nodeName||"";return I.includes(T)}function rt(){return(d?O:M)[Q?"mouse":"touch"]}function st(y,T){const C=f.add(Lt(y)*-1),w=S.byDistance(y,!d).distance;return d||A(y)<D?w:g&&T?w*.5:S.byIndex(C.get(),0).distance}function z(y){const T=bt(y,s);Q=T,Y=d&&T&&!y.buttons&&X,X=it(c.get(),o.get())>=2,!(T&&y.button!==0)&&(K(y.target)||(J=!0,e.pointerDown(y),a.useFriction(0).useDuration(0),c.set(o),et(),B=e.readPoint(y),U=e.readPoint(y,b),m.emit("pointerDown")))}function R(y){if(!bt(y,s)&&y.touches.length>=2)return N(y);const C=e.readPoint(y),w=e.readPoint(y,b),q=it(C,B),H=it(w,U);if(!$&&!Q&&(!y.cancelable||($=q>H,!$)))return N(y);const G=e.pointerMove(y);q>p&&(Y=!0),a.useFriction(.3).useDuration(1),u.start(),c.add(L(G)),y.preventDefault()}function N(y){const C=S.byDistance(0,!1).index!==f.get(),w=e.pointerUp(y)*rt(),q=st(L(w),C),H=Ut(w,q),G=V-10*H,W=l+H/50;$=!1,J=!1,v.clear(),a.useDuration(G).useFriction(W),i.distance(q,!d),Q=!1,m.emit("pointerUp")}function ot(y){Y&&(y.stopPropagation(),y.preventDefault(),Y=!1)}function k(){return J}return{init:Z,pointerDown:k,destroy:_}}function Xt(t,n){let s,c;function e(f){return f.timeStamp}function o(f,m){const d=`client${(m||t.scroll)==="x"?"X":"Y"}`;return(bt(f,n)?f:f.touches[0])[d]}function u(f){return s=f,c=f,o(f)}function i(f){const m=o(f)-o(c),x=e(f)-e(s)>170;return c=f,x&&(s=f),m}function a(f){if(!s||!c)return 0;const m=o(c)-o(s),x=e(f)-e(s),d=e(f)-e(c)>170,p=m/x;return x&&!d&&A(p)>.1?p:0}return{pointerDown:u,pointerMove:i,pointerUp:a,readPoint:o}}function Yt(){function t(r){const{offsetTop:s,offsetLeft:c,offsetWidth:e,offsetHeight:o}=r;return{top:s,right:c+e,bottom:s+o,left:c,width:e,height:o}}return{measure:t}}function Jt(t){function n(s){return t*(s/100)}return{measure:n}}function Zt(t,n,r,s,c,e,o){let u,i,a=[],S=!1;function f(p){return c.measureSize(o.measure(p))}function m(p){if(!e)return;i=f(t),a=s.map(f);function g(h){for(const b of h){const L=b.target===t,I=s.indexOf(b.target),P=L?i:a[I],E=f(L?t:s[I]);if(A(E-P)>=.5){r.requestAnimationFrame(()=>{p.reInit(),n.emit("resize")});break}}}u=new ResizeObserver(h=>{S||(Et(e)||e(p,h))&&g(h)}),[t].concat(s).forEach(h=>u.observe(h))}function x(){u&&u.disconnect(),S=!0}return{init:m,destroy:x}}function Wt(t,n,r,s,c){let e=0,o=0,u=s,i=c,a=t.get(),S=0;function f(){const I=r.get()-t.get(),P=!u;let E=0;return P?(e=0,t.set(r),E=I):(e+=I/u,e*=i,a+=e,t.add(e),E=a-S),o=Lt(E),S=a,L}function m(){const I=r.get()-n.get();return A(I)<.001}function x(){return u}function d(){return o}function p(){return e}function g(){return h(s)}function l(){return b(c)}function h(I){return u=I,L}function b(I){return i=I,L}const L={direction:d,duration:x,velocity:p,seek:f,settled:m,useBaseFriction:l,useBaseDuration:g,useFriction:b,useDuration:h};return L}function tn(t,n,r,s,c){const e=c.measure(10),o=c.measure(50),u=nt(.1,.99);let i=!1;function a(){return!(i||!t.reachedAny(r.get())||!t.reachedAny(n.get()))}function S(x){if(!a())return;const d=t.reachedMin(n.get())?"min":"max",p=A(t[d]-n.get()),g=r.get()-n.get(),l=u.constrain(p/o);r.subtract(g*l),!x&&A(g)<e&&(r.set(t.constrain(r.get())),s.useDuration(25).useBaseFriction())}function f(x){i=!x}return{constrain:S,toggleActive:f}}function nn(t,n,r,s,c){const e=nt(-n+t,0),o=f(),u=S(),i=m();function a(d,p){return it(d,p)<1}function S(){const d=o[0],p=j(o),g=o.lastIndexOf(d),l=o.indexOf(p)+1;return nt(g,l)}function f(){return r.map((d,p)=>{const{min:g,max:l}=e,h=e.constrain(d),b=!p,L=vt(r,p);return b?l:L||a(g,h)?g:a(l,h)?l:h}).map(d=>parseFloat(d.toFixed(3)))}function m(){if(n<=t+c)return[e.max];if(s==="keepSnaps")return o;const{min:d,max:p}=u;return o.slice(d,p)}return{snapsContained:i,scrollContainLimit:u}}function en(t,n,r){const s=n[0],c=r?s-t:j(n);return{limit:nt(c,s)}}function on(t,n,r,s){const e=n.min+.1,o=n.max+.1,{reachedMin:u,reachedMax:i}=nt(e,o);function a(m){return m===1?i(r.get()):m===-1?u(r.get()):!1}function S(m){if(!a(m))return;const x=t*(m*-1);s.forEach(d=>d.add(x))}return{loop:S}}function rn(t){const{max:n,length:r}=t;function s(e){const o=e-n;return r?o/-r:0}return{get:s}}function sn(t,n,r,s,c){const{startEdge:e,endEdge:o}=t,{groupSlides:u}=c,i=f().map(n.measure),a=m(),S=x();function f(){return u(s).map(p=>j(p)[o]-p[0][e]).map(A)}function m(){return s.map(p=>r[e]-p[e]).map(p=>-A(p))}function x(){return u(a).map(p=>p[0]).map((p,g)=>p+i[g])}return{snaps:a,snapsAligned:S}}function cn(t,n,r,s,c,e){const{groupSlides:o}=c,{min:u,max:i}=s,a=S();function S(){const m=o(e),x=!t||n==="keepSnaps";return r.length===1?[e]:x?m:m.slice(u,i).map((d,p,g)=>{const l=!p,h=vt(g,p);if(l){const b=j(g[0])+1;return Ct(b)}if(h){const b=at(e)-j(g)[0]+1;return Ct(b,j(g)[0])}return d})}return{slideRegistry:a}}function un(t,n,r,s,c){const{reachedAny:e,removeOffset:o,constrain:u}=s;function i(d){return d.concat().sort((p,g)=>A(p)-A(g))[0]}function a(d){const p=t?o(d):u(d),g=n.map((h,b)=>({diff:S(h-p,0),index:b})).sort((h,b)=>A(h.diff)-A(b.diff)),{index:l}=g[0];return{index:l,distance:p}}function S(d,p){const g=[d,d+r,d-r];if(!t)return g[0];if(!p)return i(g);const l=g.filter(h=>Lt(h)===p);return l.length?i(l):j(g)-r}function f(d,p){const g=n[d]-c.get(),l=S(g,p);return{index:d,distance:l}}function m(d,p){const g=c.get()+d,{index:l,distance:h}=a(g),b=!t&&e(g);if(!p||b)return{index:l,distance:d};const L=n[l]-h,I=d+S(L,0);return{index:l,distance:I}}return{byDistance:m,byIndex:f,shortcut:S}}function fn(t,n,r,s,c,e,o){function u(f){const m=f.distance,x=f.index!==n.get();e.add(m),m&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),x&&(r.set(n.get()),n.set(f.index),o.emit("select"))}function i(f,m){const x=c.byDistance(f,m);u(x)}function a(f,m){const x=n.clone().set(f),d=c.byIndex(x.get(),m);u(d)}return{distance:i,index:a}}function an(t,n,r,s,c,e){let o=0;function u(){e.add(document,"keydown",i,!1),n.forEach(a)}function i(f){f.code==="Tab"&&(o=new Date().getTime())}function a(f){const m=()=>{if(new Date().getTime()-o>10)return;t.scrollLeft=0;const p=n.indexOf(f),g=r.findIndex(l=>l.includes(p));xt(g)&&(c.useDuration(0),s.index(g,0))};e.add(f,"focus",m,{passive:!0,capture:!0})}return{init:u}}function dt(t){let n=t;function r(){return n}function s(i){n=o(i)}function c(i){n+=o(i)}function e(i){n-=o(i)}function o(i){return xt(i)?i:i.get()}return{get:r,set:s,add:c,subtract:e}}function Vt(t,n){const r=t.scroll==="x"?e:o,s=n.style;let c=!1;function e(f){return`translate3d(${f}px,0px,0px)`}function o(f){return`translate3d(0px,${f}px,0px)`}function u(f){c||(s.transform=r(t.direction(f)))}function i(f){c=!f}function a(){c||(s.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:a,to:u,toggleActive:i}}function ln(t,n,r,s,c,e,o,u,i){const S=ct(c),f=ct(c).reverse(),m=l().concat(h());function x(E,v){return E.reduce((D,M)=>D-c[M],v)}function d(E,v){return E.reduce((D,M)=>x(D,v)>0?D.concat([M]):D,[])}function p(E){return e.map((v,D)=>({start:v-s[D]+.5+E,end:v+n-.5+E}))}function g(E,v,D){const M=p(v);return E.map(O=>{const V=D?0:-r,X=D?r:0,B=D?"end":"start",U=M[O][B];return{index:O,loopPoint:U,slideLocation:dt(-1),translate:Vt(t,i[O]),target:()=>u.get()>U?V:X}})}function l(){const E=o[0],v=d(f,E);return g(v,r,!1)}function h(){const E=n-o[0]-1,v=d(S,E);return g(v,-r,!0)}function b(){return m.every(({index:E})=>{const v=S.filter(D=>D!==E);return x(v,n)<=.1})}function L(){m.forEach(E=>{const{target:v,translate:D,slideLocation:M}=E,O=v();O!==M.get()&&(D.to(O),M.set(O))})}function I(){m.forEach(E=>E.translate.clear())}return{canLoop:b,clear:I,loop:L,loopPoints:m}}function dn(t,n,r){let s,c=!1;function e(i){if(!r)return;function a(S){for(const f of S)if(f.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}s=new MutationObserver(S=>{c||(Et(r)||r(i,S))&&a(S)}),s.observe(t,{childList:!0})}function o(){s&&s.disconnect(),c=!0}return{init:e,destroy:o}}function pn(t,n,r,s){const c={};let e=null,o=null,u,i=!1;function a(){u=new IntersectionObserver(d=>{i||(d.forEach(p=>{const g=n.indexOf(p.target);c[g]=p}),e=null,o=null,r.emit("slidesInView"))},{root:t.parentElement,threshold:s}),n.forEach(d=>u.observe(d))}function S(){u&&u.disconnect(),i=!0}function f(d){return ut(c).reduce((p,g)=>{const l=parseInt(g),{isIntersecting:h}=c[l];return(d&&h||!d&&!h)&&p.push(l),p},[])}function m(d=!0){if(d&&e)return e;if(!d&&o)return o;const p=f(d);return d&&(e=p),d||(o=p),p}return{init:a,destroy:S,get:m}}function mn(t,n,r,s,c,e){const{measureSize:o,startEdge:u,endEdge:i}=t,a=r[0]&&c,S=d(),f=p(),m=r.map(o),x=g();function d(){if(!a)return 0;const h=r[0];return A(n[u]-h[u])}function p(){if(!a)return 0;const h=e.getComputedStyle(j(s));return parseFloat(h.getPropertyValue(`margin-${i}`))}function g(){return r.map((h,b,L)=>{const I=!b,P=vt(L,b);return I?m[b]+S:P?m[b]+f:L[b+1][u]-h[u]}).map(A)}return{slideSizes:m,slideSizesWithGaps:x,startGap:S,endGap:f}}function gn(t,n,r,s,c,e,o,u,i){const{startEdge:a,endEdge:S,direction:f}=t,m=xt(r);function x(l,h){return ct(l).filter(b=>b%h===0).map(b=>l.slice(b,b+h))}function d(l){return l.length?ct(l).reduce((h,b,L)=>{const I=j(h)||0,P=I===0,E=b===at(l),v=c[a]-e[I][a],D=c[a]-e[b][S],M=!s&&P?f(o):0,O=!s&&E?f(u):0,V=A(D-O-(v+M));return L&&V>n+i&&h.push(b),E&&h.push(l.length),h},[]).map((h,b,L)=>{const I=Math.max(L[b-1]||0);return l.slice(I,h)}):[]}function p(l){return m?x(l,r):d(l)}return{groupSlides:p}}function hn(t,n,r,s,c,e,o){const{align:u,axis:i,direction:a,startIndex:S,loop:f,duration:m,dragFree:x,dragThreshold:d,inViewThreshold:p,slidesToScroll:g,skipSnaps:l,containScroll:h,watchResize:b,watchSlides:L,watchDrag:I}=e,P=2,E=Yt(),v=E.measure(n),D=r.map(E.measure),M=_t(i,a),O=M.measureSize(v),V=Jt(O),X=$t(u,O),B=!f&&!!h,U=f||!!h,{slideSizes:J,slideSizesWithGaps:$,startGap:Y,endGap:Q}=mn(M,v,D,r,U,c),Z=gn(M,O,g,f,v,D,Y,Q,P),{snaps:_,snapsAligned:et}=sn(M,X,v,D,Z),K=-j(_)+j($),{snapsContained:rt,scrollContainLimit:st}=nn(O,K,et,h,P),z=B?rt:et,{limit:R}=en(K,z,f),N=Nt(at(z),S,f),ot=N.clone(),k=ct(r),F=({dragHandler:tt,scrollBody:ht,scrollBounds:St,options:{loop:lt}})=>{lt||St.constrain(tt.pointerDown()),ht.seek()},y=({scrollBody:tt,translate:ht,location:St,offsetLocation:lt,scrollLooper:kt,slideLooper:Ht,dragHandler:Gt,animation:jt,eventHandler:At,options:{loop:Rt}},qt)=>{const Pt=tt.velocity(),Ft=tt.settled();Ft&&!Gt.pointerDown()&&(jt.stop(),At.emit("settle")),Ft||At.emit("scroll"),lt.set(St.get()-Pt+Pt*qt),Rt&&(kt.loop(tt.direction()),Ht.loop()),ht.to(lt.get())},T=Qt(s,c,()=>F(gt),tt=>y(gt,tt)),C=.68,w=z[N.get()],q=dt(w),H=dt(w),G=dt(w),W=Wt(q,H,G,m,C),pt=un(f,z,K,R,G),mt=fn(T,N,ot,W,pt,G,o),Tt=rn(R),Dt=ft(),zt=pn(n,r,o,p),{slideRegistry:Mt}=cn(B,h,z,st,Z,k),Bt=an(t,r,Mt,mt,W,Dt),gt={ownerDocument:s,ownerWindow:c,eventHandler:o,containerRect:v,slideRects:D,animation:T,axis:M,dragHandler:Kt(M,t,s,c,G,Xt(M,c),q,T,mt,W,pt,N,o,V,x,d,l,C,I),eventStore:Dt,percentOfView:V,index:N,indexPrevious:ot,limit:R,location:q,offsetLocation:H,options:e,resizeHandler:Zt(n,o,c,r,M,b,E),scrollBody:W,scrollBounds:tn(R,H,G,W,V),scrollLooper:on(K,R,H,[q,H,G]),scrollProgress:Tt,scrollSnapList:z.map(Tt.get),scrollSnaps:z,scrollTarget:pt,scrollTo:mt,slideLooper:ln(M,O,K,J,$,_,z,H,r),slideFocus:Bt,slidesHandler:dn(n,o,L),slidesInView:zt,slideIndexes:k,slideRegistry:Mt,slidesToScroll:Z,target:G,translate:Vt(M,n)};return gt}function Sn(){const t={};let n;function r(i){n=i}function s(i){return t[i]||[]}function c(i){return s(i).forEach(a=>a(n,i)),u}function e(i,a){return t[i]=s(i).concat([a]),u}function o(i,a){return t[i]=s(i).filter(S=>S!==a),u}const u={init:r,emit:c,off:o,on:e};return u}const yn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function bn(t){function n(e,o){return wt(e,o||{})}function r(e){const o=e.breakpoints||{},u=ut(o).filter(i=>t.matchMedia(i).matches).map(i=>o[i]).reduce((i,a)=>n(i,a),{});return n(e,u)}function s(e){return e.map(o=>ut(o.breakpoints||{})).reduce((o,u)=>o.concat(u),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:s}}function xn(t){let n=[];function r(e,o){return n=o.filter(({options:u})=>t.optionsAtMedia(u).active!==!1),n.forEach(u=>u.init(e,t)),o.reduce((u,i)=>Object.assign(u,{[i.name]:i}),{})}function s(){n=n.filter(e=>e.destroy())}return{init:r,destroy:s}}function It(t,n,r){const s=t.ownerDocument,c=s.defaultView,e=bn(c),o=xn(e),u=ft(),i=Sn(),{mergeOptions:a,optionsAtMedia:S,optionsMediaQueries:f}=e,{on:m,off:x,emit:d}=i,p=O;let g=!1,l,h=a(yn,It.globalOptions),b=a(h),L=[],I,P,E;function v(){const{container:F,slides:y}=b;P=(yt(F)?t.querySelector(F):F)||t.children[0];const C=yt(y)?P.querySelectorAll(y):y;E=[].slice.call(C||P.children)}function D(F){const y=hn(t,P,E,s,c,F,i);if(F.loop&&!y.slideLooper.canLoop()){const T=Object.assign({},F,{loop:!1});return D(T)}return y}function M(F,y){g||(h=a(h,F),b=S(h),L=y||L,v(),l=D(b),f([h,...L.map(({options:T})=>T)]).forEach(T=>u.add(T,"change",O)),b.active&&(l.translate.to(l.location.get()),l.animation.init(),l.slidesInView.init(),l.slideFocus.init(),l.eventHandler.init(k),l.resizeHandler.init(k),l.slidesHandler.init(k),l.options.loop&&l.slideLooper.loop(),P.offsetParent&&E.length&&l.dragHandler.init(k),I=o.init(k,L)))}function O(F,y){const T=_();V(),M(a({startIndex:T},F),y),i.emit("reInit")}function V(){l.dragHandler.destroy(),l.eventStore.clear(),l.translate.clear(),l.slideLooper.clear(),l.resizeHandler.destroy(),l.slidesHandler.destroy(),l.slidesInView.destroy(),l.animation.destroy(),o.destroy(),u.clear()}function X(){g||(g=!0,u.clear(),V(),i.emit("destroy"))}function B(F,y,T){!b.active||g||(l.scrollBody.useBaseFriction().useDuration(y===!0?0:b.duration),l.scrollTo.index(F,T||0))}function U(F){const y=l.index.add(1).get();B(y,F,-1)}function J(F){const y=l.index.add(-1).get();B(y,F,1)}function $(){return l.index.add(1).get()!==_()}function Y(){return l.index.add(-1).get()!==_()}function Q(){return l.scrollSnapList}function Z(){return l.scrollProgress.get(l.location.get())}function _(){return l.index.get()}function et(){return l.indexPrevious.get()}function K(){return l.slidesInView.get()}function rt(){return l.slidesInView.get(!1)}function st(){return I}function z(){return l}function R(){return t}function N(){return P}function ot(){return E}const k={canScrollNext:$,canScrollPrev:Y,containerNode:N,internalEngine:z,destroy:X,off:x,on:m,emit:d,plugins:st,previousScrollSnap:et,reInit:p,rootNode:R,scrollNext:U,scrollPrev:J,scrollProgress:Z,scrollSnapList:Q,scrollTo:B,selectedScrollSnap:_,slideNodes:ot,slidesInView:K,slidesNotInView:rt};return M(n,r),setTimeout(()=>i.emit("init"),0),k}It.globalOptions=void 0;exports.default=It;