!function(){function e(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var t,a,o=[],u=!0,i=!1;try{for(r=r.call(e);!(u=(t=r.next()).done)&&(o.push(t.value),!n||o.length!==n);u=!0);}catch(l){i=!0,a=l}finally{try{u||null==r.return||r.return()}finally{if(i)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r=+n.max})),O=s((function(){return{width:p(n.inputWidth),height:p(n.buttonSize)}})),E=s((function(){return d(n.buttonSize)})),L=function(e){n.beforeChange?S(n.beforeChange,{args:[e],done:function(){B.value=e}}):B.value=e},F=function(){if("plus"===t&&A.value||"minus"===t&&j.value)M("overlimit",t);else{var e="minus"===t?-n.step:+n.step,r=V(z(+B.value,e));L(r),M(t)}},N=function(e){var r=e.target,t=r.value,a=n.decimalLength,o=_(String(t),!n.integer);if(y(a)&&o.includes(".")){var u=o.split(".");o="".concat(u[0],".").concat(u[1].slice(0,+a))}n.beforeChange?r.value=String(B.value):P(t,o)||(r.value=o);var i=o===String(+o);L(i?+o:o)},U=function(e){var r;n.disableInput?null==(r=T.value)||r.blur():M("focus",e)},W=function(e){var n=e.target,r=V(n.value);n.value=String(r),B.value=r,w((function(){M("blur",e),x()}))},H=function e(){I=setTimeout((function(){F(),e()}),200)},$=function(){n.longPress&&(i=!1,clearTimeout(I),I=setTimeout((function(){i=!0,F(),H()}),600))},q=function(e){n.longPress&&(clearTimeout(I),i&&k(e))},G=function(e){n.disableInput&&k(e)},R=function(e){return{onClick:function(n){k(n),t=e,F()},onTouchstart:function(){t=e,$()},onTouchend:q,onTouchcancel:q}};return v((function(){return[n.max,n.min,n.integer,n.decimalLength]}),(function(){var e=V(B.value);P(e,B.value)||(B.value=e)})),v((function(){return n.modelValue}),(function(e){P(e,B.value)||(B.value=V(e))})),v(B,(function(e){M("update:modelValue",e),M("change",e,{name:n.name})})),c((function(){return n.modelValue})),function(){return b("div",{role:"group",class:C([n.theme])},[m(b("button",g({type:"button",style:E.value,class:[C("minus",{disabled:j.value}),e({},h,!j.value)],"aria-disabled":j.value||void 0},R("minus")),null),[[f,n.showMinus]]),m(b("input",{ref:T,type:n.integer?"tel":"text",role:"spinbutton",class:C("input"),value:B.value,style:O.value,disabled:n.disabled,readonly:n.disableInput,inputmode:n.integer?"numeric":"decimal",placeholder:n.placeholder,"aria-valuemax":n.max,"aria-valuemin":n.min,"aria-valuenow":B.value,onBlur:W,onInput:N,onFocus:U,onMousedown:G},null),[[f,n.showInput]]),m(b("button",g({type:"button",style:E.value,class:[C("plus",{disabled:A.value}),e({},h,!A.value)],"aria-disabled":A.value||void 0},R("plus")),null),[[f,n.showPlus]])])}}});r("S",I(B))}}}))}();