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