!function(){function t(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function n(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}(t,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 e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0;e--)if(!A(x.options[e]))return e}(t)||0)*n.itemHeight,i=function(){t!==x.index&&(x.index=t,e&&y("change",t))};r&&o!==x.offset?u=i:i(),x.offset=o},k=function(t){JSON.stringify(t)!==JSON.stringify(x.options)&&(x.options=z(t),I(n.defaultIndex))},N=function(t){return v(t)&&n.textKey in t?t[n.textKey]:t},P=function(t){return h(Math.round(-t/n.itemHeight),0,S()-1)},T=function(){r=!1,x.duration=0,u&&(u(),u=null)},H=function(t){if(!n.readonly){if(w.start(t),r){var e=function(t){var n=window.getComputedStyle(t),e=n.transform||n.webkitTransform,r=e.slice(7,e.length-1).split(", ")[5];return Number(r)}(_.value);x.offset=Math.min(0,e-C()),o=x.offset}else o=x.offset;x.duration=0,i=Date.now(),a=o,u=null}},O=function(t){if(!n.readonly){w.move(t),w.isVertical()&&(r=!0,b(t,!0)),x.offset=h(o+w.deltaY.value,-S()*n.itemHeight,n.itemHeight);var e=Date.now();e-i>300&&(i=e,a=x.offset)}},V=function(){if(!n.readonly){var t=x.offset-a,e=Date.now()-i;if(e<300&&Math.abs(t)>15)!function(t,e){var r=Math.abs(t/e);t=x.offset+r/.003*(t<0?-1:1);var o=P(t);x.duration=+n.swipeDuration,I(o,!0)}(t,e);else{var o=P(x.offset);x.duration=200,I(o,!0),setTimeout((function(){r=!1}),0)}}},j=function(){var e={height:n.itemHeight+"px"};return x.options.map((function(o,i){var a=N(o),l=A(o),c={role:"button",style:e,tabindex:l?-1:0,class:B("item",{disabled:l,selected:i===x.index}),onClick:function(){return function(t){r||n.readonly||(u=null,x.duration=200,I(t,!0))}(i)}},s=t({class:"van-ellipsis"},n.allowHtml?"innerHTML":"textContent",a);return p("li",c,[g.option?g.option(o):p("div",s,null)])}))};return I(x.index),f(X),d({state:x,setIndex:I,getValue:function(){return x.options[x.index]},setValue:function(t){for(var n=x.options,e=0;e