define(["jquery","jquery.vclick"],(function(e){!function(){var e=document.createElement("style");e.type="text/css";var n='.a-ripple {\n    cursor: pointer;\n    overflow: hidden;\n    position: relative;\n    -webkit-user-select: none;\n       -moz-user-select: none;\n        -ms-user-select: none;\n            user-select: none;\n    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.a-ripple>.ripple {\n    content: "";\n    display: block;\n    border-radius: 50%;\n    position: absolute;\n    pointer-events: none;\n    transform-origin: center;\n    top: calc(var(--y) * 1px);\n    left: calc(var(--x) * 1px);\n    width: calc(var(--d) * 1px);\n    height: calc(var(--d) * 1px);\n    background: currentColor;\n    transform: translate(-50%, -50%) scale(var(--s, 1));\n    opacity: calc(var(--o, 1) * var(--ripple-opacity, 0.5));\n    transition: calc(var(--t, 0) * var(--ripple-duration, 600ms)) var(--ripple-easing, linear);\n}';e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n)),document.head.insertBefore(e,document.head.firstChild)}();var n=!1;function t(e){var t=e.currentTarget,o=t.querySelector(".ripple");if(o&&o.remove(),!n){var r=document.createElement("span");r.classList.add("ripple"),t.appendChild(r);var a=e.touches?e.touches[0]:e,i=t.getBoundingClientRect(),c=2*Math.sqrt(Math.pow(i.width,2)+Math.pow(i.height,2));r.style.cssText="--s: 0; --o: 1;",r.offsetTop,r.style.cssText="--t: 1; --o: 0; --d: "+c+"; --x:"+(a.clientX-i.left)+"; --y:"+(a.clientY-i.top)+";"}}return e(window).on("scrollstart",(function(){n=!0})),e(window).on("scrollstop",(function(){n=!1})),e(window).on("scrollend",(function(){n=!1})),{add:function(n){e(n).on("vmousedown",t),e(n).addClass("a-ripple")},remove:function(n){e(n).off("vmousedown",t),e(n).removeClass("a-ripple")}}}));