UNPKG

nimble-ui

Version:
1 lines 177 kB
module.exports=function(t){var e={};function i(s){if(e[s])return e[s].exports;var a=e[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:s})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s="GTfn")}({"0Zk/":function(t,e,i){"use strict";e.a=function(t,e){return Object(s.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var s=i("lXuC")},"37ml":function(t,e,i){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e,i){e.mixin(Object(s.a)(t,[i]))});return t};var s=i("ekq3")},"3AwK":function(t,e,i){"use strict";function s(t,e){var i=e.value,s=i,a=function(t){var e={};t&&(t.poster?e.srcAttr="poster":(t.background||t.backgroundImage||t.bg)&&(e.srcAttr="background"));return e}(e.modifiers),n=(a&&a.srcAttr||"src")+"",r=/background/i.test(n);i instanceof Object&&(s=i.src),r?t.style.backgroundImage="url("+s+")":t[n]=s}Object.defineProperty(e,"__esModule",{value:!0});var a=i("p84V");e.default=Object(a.a)(function(){return{bind:s,inserted:s,update:s}},"lazy")},"4qRk":function(t,e,i){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var i=t.name||"",s=e.component(i);s||e.component(i,t)});return t}},"5fCB":function(t,e,i){"use strict";var s=i("E5mE"),a=i("eY/N");e.a=function t(){for(var e=!0,i=void 0,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(r instanceof Array&&(i=r.slice(0,1)[0]),"boolean"==typeof i&&(e=i,r.splice(0,1),e||(i=r.splice(0,1)[0])),r&&r.length<1)return"boolean"==typeof i?r[1]:i;e&&(i=null);for(var l=0;l<r.length;l++){var d=r[l];if(d instanceof Object)if(e){for(var h in i&&i instanceof Object||(i=d instanceof Array?[]:{}),d)if(d.hasOwnProperty(h)){var c=d[h];if(p(c)){var u=p(i[h])&&i[h]||(c instanceof Array?[]:{});i[h]=t(u,c)}else void 0!==c?i[h]=c:void 0!==i[h]&&(i[h]=c)}}else i=i&&i instanceof Object?Object.assign(i,d):d}return i;function p(t){return t&&(Object(s.a)(t,"Array")||Object(a.a)(t))||!1}}},"6D8K":function(t,e){},"76is":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var s={SHOW:"showChange",HIDE:"hideChange",CONFIRM:"confirmChange",CANCEL:"cancelChange",CLOSE_POPUP:"closePopup",CLOSE:"close",OPEN_PAGE:"openPage",GO_BACK_PAGE:"goBackPage"}},"9B2K":function(t,e,i){"use strict";e.a=function(t,e,i){t=((t||"")+"").replace(/\s+/g,"");var o=i||window,l=e?"on":"";if(l+t in o)return t;var d=l?t:Object(s.a)(t);d=d.replace(/(start$|end$|animation|frame$)/gi,function(t,e){return Object(s.a)(e)});for(var h=0;h<n.length;h++){var c=n[h],u=c+d,p=c+t;if(l+u in o)return n=[c],r[t]=u,u;if(l+p in o)return n=[c],r[t]=p,p}var f=Object(a.a)("transition-property",!0);f&&l+f+d in o&&(t=f+d);return e?t:""};var s=i("0Zk/"),a=i("shrL"),n=["Moz","moz","Webkit","webkit","O","o","MS","ms"],r={}},"B/FW":function(t,e){},DEB9:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("ekq3"),a=i("rRBi"),n=i("a6ow"),r=i("ESZu"),o=i("Wxd7"),l=i("Lbtb"),d=i("Hxsb"),h={extends:n.a,name:"NuPhoto",components:{NuSwiper:r.default,NuIcon:o.default,NuImgc:l.default},props:{list:{type:Array},options:{},prevIcon:{type:String,default:""},nextIcon:{type:String,default:""},lazyOptions:{},isLazy:{},aspect:{},navigation:{},pagination:{},zoom:{type:[Object,Boolean],default:!1},filterItem:{}},mixins:[Object(d.a)("activeIndex",{value:{type:Number,default:0}})],computed:{desc:function(){var t=this.myActiveIndex||0,e=(this.list||[])[t],i=Object(s.a)(this.filterItem||e,[e],this);return"string"==typeof i&&(i={desc:e}),e&&e.desc||""},myOptions:function(){return this._getOptions()}},methods:{_getOptions:function(){return Object.assign({},{autoplay:!1,loop:!1,speed:400},this.options,{navigation:t(this.navigation,{nextEl:".nu_swiper-next",prevEl:".nu_swiper-prev",disabledClass:"nu_button-disabled"},{}),pagination:t(this.pagination,{type:"fraction"},{}),zoom:t(this.zoom,{containerClass:"nu_zoom-container"},!1)});function t(t,e,i){var s=t;return t&&(s=t instanceof Object?Object(a.a)(e||{},t):e),s||i}}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.list&&t.list.length>0?i("div",{staticClass:"nus_photo"},[i("div",{staticClass:"nu_photo-cont"},[i("nu-swiper",{staticClass:"nu_swiper",attrs:{options:t.myOptions,filterItem:t.filterItem,"active-index":t.myActiveIndex,list:t.list},on:{"update:activeIndex":function(e){t.myActiveIndex=e}},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.itemData,a=e.index;return[t._t("default",[i("nu-imgc",{staticClass:"nu_photo-img",class:[t.myOptions&&t.myOptions.zoom&&t.myOptions.zoom.containerClass],attrs:{aspect:t.aspect,isLazy:t.isLazy,lazyOptions:t.lazyOptions,className:"nu_zoom-container",imgUrl:s&&s.text}})],{itemData:s,index:a})]}}])}),t._v(" "),t.navigation?t._t("hook_nav",[i("div",{staticClass:"nu_prevNext"},[i("nu-icon",{staticClass:"nu_swiper-prev",attrs:{icon:t.prevIcon}}),t._v(" "),i("nu-icon",{staticClass:"nu_swiper-next",attrs:{icon:t.nextIcon}})],1)]):t._e(),t._v(" "),t.desc?i("div",{staticClass:"nu_desc"},[t._v(t._s(t.desc))]):t._e()],2)]):t._e()},staticRenderFns:[]};var u=i("VU/8")(h,c,!1,function(t){i("vSQl")},null,null).exports,p=i("4qRk");e.default=Object(p.a)(u)},E5mE:function(t,e,i){"use strict";e.a=function(t,e){var i=!1;try{i=Object.prototype.toString.call(t)==="[object "+e+"]"}catch(t){}return i}},ESZu:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("uGS0"),a=i("zagf");var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._watchNames=[]}return t.prototype._handlerWatch=function(t,e){var i=this._watchNames;t&&e&&i&&!(i.length<=0)&&(i&&i.forEach(function(i){var a=t[i]&&t[i]._args||[];t[i]=function(){for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];e[i]&&Object(s.a)(e[i].bind(e),a)},a&&a.length>0&&a.forEach(function(t){e[i]&&Object(s.a)(e[i].bind(e),t)})}),this._watchNames=[])},t.prototype._eachProxyNames=function(t,e){if(t&&"string"==typeof t&&(t=[t]),t instanceof Array||!(t.length<1)){if(t)return t instanceof Array&&t.forEach(function(t){Object(a.a)(e,[t])}),t}else console.error(new Error("function name err"))},t.prototype.proxyHook=function(t,e,i,a){var n=this;a&&n.proxyWatch(t,a),n._eachProxyNames(i,function(i){t[i]=function(){for(var a=arguments.length,r=Array(a),o=0;o<a;o++)r[o]=arguments[o];return new Promise(function(a,o){Object(s.a)(e).then(function(e){e?(n._handlerWatch(t,e),e[i]?Object(s.a)(e[i].bind(e),r).then(a,o):a(void 0)):o(new Error("load err"))},o)})}})},t.prototype.proxyWatch=function(t,e){var i=this._eachProxyNames(e,function(e){t[e]=function(){for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];t[e]._args=t[e]._args||[],t[e]._args.push(s)}});this._watchNames=this._watchNames.concat(i||[])},t.prototype.initProxy=function(t,e){return e=(e||"")+"",function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return new Promise(function(i,r){Object(s.a)(t).then(function(t){var s=t&&t.default||t,o=void 0;s?(o=Object(a.a)(e&&s[e]||o,n,s))instanceof Promise?o.then(i,r):i(o||s):r(new Error("load err"))})})}},t}(),r=i("gsqX"),o=i.n(r),l=function(t,e){return i=function(){return new Promise(function(i,s){i(function(t,e){return new o.a(t,e)}(t,e))})},s=new n,a={preload:function(){var t=s.initProxy(function(){return i()},"preload")();return this.preload=function(){return t},t}},s.proxyHook(a,function(){return a.preload()},["slideNext","slidePrev","slideTo","slideToLoop","destroy","getTranslate","setTranslate","updateSize","updateSlides","updateProgress","updateSlidesClasses","update","detachEvents","attachEvents","appendSlide","prependSlide","addSlide","removeSlide","removeAllSlides","setGrabCursor","unsetGrabCursor","updateAutoHeight","slideToClosest"],["on","once","off"]),a;var i,s,a},d=i("rRBi"),h=i("MWZt"),c=i("HDd3"),u=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"],p=i("ekq3"),f={props:{item:{},filterItem:{type:Function}},computed:{myItem:function(){var t=Object(p.a)(this.filterItem||this.item,[this.item],this);return"string"==typeof t&&(t={text:t}),t}}},v={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"nus_filterslide"},[this._t("default",null,{itemData:this.myItem,data:this.item})],2)},staticRenderFns:[]};var m=i("VU/8")(f,v,!1,function(t){i("gVXU")},null,null).exports,g=i("Hxsb"),b={name:"NuSwiper",extend:c.a,components:{FilterSlide:m},props:{list:{type:Array},options:{type:Object},filterItem:{type:Function}},mixins:[Object(g.a)("activeIndex",{mValueChange:function(t){var e=this.myOptions||{};if(this.myActiveIndex===t)return this.lock=!0,!1;this.swiper&&this.swiper.slideTo(t,e.speed||0)}})],watch:{options:function(){this._updateOptions(),this.refresh()},isUpdate:function(){this.isUpdate=!1}},data:function(){return{isUpdate:!1,defLen:0,myOptions:{initialSlide:this.activeIndex||0,wrapperClass:"hook_wrap",slideClass:"nu_slide",loop:!0,autoplay:!0,paginationClickable:!0,disableOnInteraction:!1,touchMoveStopPropagation:!1,preventClicksPropagation:!1,freeMode:!1,observer:!0,observeParents:!0,longSwipesRatio:.3,touchRatio:1,centeredSlides:!1,grabCursor:!0}}},computed:{slideStyle:function(){var t=null,e=this.myOptions.slidesPerView;return e>1&&(t={width:(100/e).toFixed(3)+"%"}),t}},mounted:function(){this._updateOptions(),this._updateSlide(),this._initCom()},updated:function(){this._updateSlide(),this.lock=!1},methods:{refresh:function(){var t=this._swiper,e=this.myOptions;t&&e&&e.loop&&(this.throttle=this.throttle||Object(h.a)(function(){t.loopDestroy(),t.loopCreate()},100),this.throttle())},_updateOptions:function(){var t=this._initPagination();return this.myOptions=Object(d.a)(this.myOptions,this.options,t),this.myOptions},_initCom:function(){var t=this,e=t.$el;if(!t.swiper){var i=t.myOptions,s=l(e,i),a=i.slidesPerView;setTimeout(function(){s.preload().then(function(s){if(t._swiper||(t._swiper=s,t.$emit("init",{context:s})),i.loop&&e)for(var a=s.imagesToLoad,n=function(e){var i=a[e];if(i){var n=function(){t.refresh()};s.on("beforeDestroy",function(){i.removeEventListener("load",n)}),i.addEventListener("load",n)}},r=0;r<a.length;r++)n(r);u.forEach(function(e){s.on(e,function(i){t.$emit(e,{Event:i,context:s})})}),s.on("slideChange",function(){t.myActiveIndex=s.realIndex}),s.on("touchStart",t._onStart),s.on("touchMove",t._onMove)})},a&&1!==a?200:0),t.swiper=s}},_initPagination:function(){var t={},e=this.$el,i=this.options&&this.options.pagination||{},s=this.$slots.hook_indicator,a=s=(s=s&&s[0])&&s.tag&&s.elm,n=i.type;if(!a){var r=e.querySelector(i.el||".nu_indicator"),o=r&&r.childNodes[0];!r||o||n||r.parentNode.removeChild(r),a=n&&"bullets"!==n?r:o}if(a){var l={bulletClass:"nu_indicator-item",bulletActiveClass:"nu_indicator-active"};switch(n){case"fraction":l={currentClass:"nu_indicator-current",totalClass:"nu_indicator-total"}}t={pagination:Object(d.a)({type:"bullets",modifierClass:"nu_indicator-"},l,i,{el:a})}}return t},_updateSlide:function(){var t=this,e=t.myOptions;if(!t.list&&e.slideClass){var i=t.$slots.default||[];(t.isUpdate||t.lock)&&t.defLen===i.length||(t.defLen=i.length,i.forEach(function(i){i.tag&&(i.elm.classList.contains(e.slideClass)||(t.isUpdate=!0,i.elm.classList.add(e.slideClass)))}))}},_onStart:function(t){var e=t.touches?t.touches[0]:t;this._pointX=e.pageX,this._pointY=e.pageY},_onMove:function(t){var e=t.touches?t.touches[0]:t,i=e.pageX-this._pointX,s=e.pageY-this._pointY;Math.atan(Math.abs(s)/Math.abs(i))*(180/Math.PI)<50&&t.cancelable&&t.preventDefault()}}},y={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nus_swiper"},[i("div",{staticClass:"nu_slides hook_wrap swiper-wrapper"},[t.list?t._l(t.list,function(e,s){return i("div",{key:s,staticClass:"nu_slide swiper-slide",style:t.slideStyle},[i("filter-slide",{attrs:{item:e,filterItem:t.filterItem},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.itemData,a=e.data;return[t._t("default",null,{itemData:i,data:a,index:s})]}}])})],1)}):[t._t("default")]],2),t._v(" "),t._t("hook_indicator",[i("div",{staticClass:"nu_indicator"},[t._t("hook_indicator-cont")],2)])],2)},staticRenderFns:[]};var w=i("VU/8")(b,y,!1,function(t){i("z4ph")},null,null).exports,x=i("4qRk");e.default=Object(x.a)(w)},FNmr:function(t,e,i){"use strict";e.a=function(t,e){var i="";if(t&&e)if(e.name){var a="$s"+(i=Object(s.a)(e.name));t.prototype&&!t.prototype[a]&&function(t,e,i){if(t&&e&&i){t[i]=e;try{Object.defineProperty(t,i,{get:function(){var t=this;return e._getParent=function(){return t},e},enumerable:!1,configurable:!1})}catch(t){}}}(t.prototype,e,a)}else console.error("Mount is not defined for the image name");return i};var s=i("0Zk/")},FlVT:function(t,e,i){"use strict";var s=i("Z05q");e.a=s.a},GTfn:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("rRBi"),a=i("liRf"),n=i("gTYF"),r=i("DEB9"),o=function(t,e){return Object(a.default)(t,Object(s.a)({popupComponent:n.default,getComponent:function(){return new Promise(function(t,e){t(r.default)})}},e))};o.install=function(t,e){t.use(r.default),t.use(o(t,e))},e.default=o},HDd3:function(t,e,i){"use strict";var s={extends:i("Lv3q").a},a=i("VU/8")(s,null,!1,null,null,null);e.a=a.exports},Hxsb:function(t,e,i){"use strict";e.a=function(t,e){var i;e=e||{};var n={};n[t=(t||"")+""]=e.value||{};var r="my"+Object(a.a)(t);return{props:n,data:function(){var i={};return i[r]=Object(s.a)(e.myValueInit||this[t],[this[t]],this),i},watch:(i={},i[t]=function(t,i){var a=Object(s.a)(e.mValueChange,[t,i],this);!1!==a&&(this[r]=t)},i[r]=function(i,a){var n=Object(s.a)(e.myValueChange,[i,a],this);!1!==n&&this.$emit("update:"+t,i)},i)}};var s=i("ekq3"),a=i("WGR+")},Lbtb:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("N1Ww"),a=i("d0AA"),n={extends:s.a,name:"NuImgc",components:{NuAspect:a.default},props:{aspect:{type:[Boolean,String,Number]},className:{type:String}}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nus_imgc"},[t.imgUrl?i("nu-aspect",{staticClass:"nu_img-wrap",attrs:{aspect:t.aspect,className:t.className},on:{click:t._onClick,tap:t._onTap}},[t.isLazy?i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.myLazyOptions,expression:"myLazyOptions"}],staticClass:"nu_imgc-img",attrs:{alt:""}}):i("img",{staticClass:"nu_imgc-img",attrs:{src:t.imgUrl,alt:""}}),t._v(" "),t._t("default")],2):t._e()],1)},staticRenderFns:[]};var o=i("VU/8")(n,r,!1,function(t){i("hvU/")},null,null).exports,l=i("4qRk");e.default=Object(l.a)(o)},Lv3q:function(t,e,i){"use strict";i("B/FW");var s=i("VU/8")({methods:{_onClick:function(t){this.$emit("click",t)},_onTap:function(t){this.$emit("tap",t)},_onClickItem:function(t){this.$emit("clickItem",t)}}},null,!1,null,null,null);e.a=s.exports},LySh:function(t,e){},MWZt:function(t,e,i){"use strict";var s=i("yY2C");e.a=s.a},N1Ww:function(t,e,i){"use strict";var s=i("rRBi"),a=i("ho/f"),n=i("caJ4"),r=i("3AwK"),o={extends:a.a,props:{imgUrl:{type:String},lazyOptions:{type:Object},isLazy:{type:Boolean,default:!0},aspect:{type:[String,Number]}},computed:{myLazyOptions:function(){var t=this,e=Object(s.a)(!1,{isWrap:!t.aspect},t.lazyOptions,{src:t.imgUrl});if(e&&e.loading){var i=e.loading;e.loading=function(s){try{i.call(e,s)}catch(t){}t.$emit("imgLoading",s)}}else e.loading=function(e){t.$emit("imgLoading",e)};return e}},beforeCreate:function(){Object(n.a)(this.constructor,r.default)}};var l=i("VU/8")(o,null,!1,function(t){i("zaQa")},null,null);e.a=l.exports},Nt7u:function(t,e,i){"use strict";var s=i("XAAj");e.a=s.a},Q4rh:function(t,e){},"VU/8":function(t,e){t.exports=function(t,e,i,s,a,n){var r,o=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(r=t,o=t.default);var d,h="function"==typeof o?o.options:o;if(e&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns,h._compiled=!0),i&&(h.functional=!0),a&&(h._scopeId=a),n?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},h._ssrRegister=d):s&&(d=s),d){var c=h.functional,u=c?h.render:h.beforeCreate;c?(h._injectStyles=d,h.render=function(t,e){return d.call(e),u(t,e)}):h.beforeCreate=u?[].concat(u,d):[d]}return{esModule:r,exports:o,options:h}}},"WGR+":function(t,e,i){"use strict";var s=i("0Zk/");e.a=s.a},Wxd7:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={extends:i("ho/f").a,name:"NuIcon",props:{iconClass:{default:"nu_icon"},icon:{type:String}}},a={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"nus_icon",class:t.iconClass,on:{click:function(e){t._onClick(e)},tap:function(e){t._onTap(e)}}},[t._t("default",[t._v("\n "+t._s(t.icon)+"\n ")]),t._v(" "),t._t("hook_ext")],2)},staticRenderFns:[]};var n=i("VU/8")(s,a,!1,function(t){i("6D8K")},null,null).exports,r=i("4qRk");e.default=Object(r.a)(n)},XAAj:function(t,e,i){"use strict";e.a=function(t){var e=document.createEvent("undefined"!=typeof MouseEvent?"MouseEvents":"Event");return e.initEvent(t,!0,!1),e}},XUgh:function(t,e,i){"use strict";var s=i("9B2K");e.a=s.a},Z05q:function(t,e,i){"use strict";e.a=function(t,e,i){if(t&&(t.tagName||t===window||t===document)&&e&&"string"==typeof e){var n=Object(s.a)(e);n._constructed=!0,n=Object(a.a)(!1,n,i),t.dispatchEvent(n)}};var s=i("XAAj"),a=i("5fCB")},Z9R9:function(t,e,i){"use strict";var s=i("qd2b");e.a=s.a},ZMJv:function(t,e,i){"use strict";var s=i("uGS0");e.a=s.a},a6ow:function(t,e,i){"use strict";var s={extends:i("Lv3q").a},a=i("VU/8")(s,null,!1,null,null,null);e.a=a.exports},caJ4:function(t,e,i){"use strict";e.a=function(t,e,i){t.use(e,i)}},d0AA:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("ho/f"),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n={name:"NuAspect",extends:s.a,props:{aspect:{type:[Boolean,String,Number]},className:{type:String}},data:function(){return{isClass:!1}},computed:{myAspect:function(){var t=this.aspect;if(this.isClass=!1,!0===t||t+""=="1")t="nu_aspect",this.isClass=!0;else{t=((t||"")+"").replace("%","");var e=parseFloat(t,10);if(isNaN(e))this.isClass=!0;else switch(void 0===e?"undefined":a(e)){case"number":(t=Math.abs(t))>5?t+="%":t>0&&(t=100*t+"%")}}return t}}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nus_aspect",class:[t.myAspect&&"nu_aspect-base",t.isClass&&t.myAspect,!t.myAspect&&t.className],style:t.myAspect&&!t.isClass&&{paddingTop:t.myAspect},on:{click:t._onClick,tap:t._onTap}},[t.myAspect?i("div",{staticClass:"nu_aspect-wrap",class:t.className},[i("div",{staticClass:"nu_aspect-cont"},[t._t("default")],2)]):[t._t("default")]],2)},staticRenderFns:[]};var o=i("VU/8")(n,r,!1,function(t){i("LySh")},null,null).exports,l=i("4qRk");e.default=Object(l.a)(o)},"eY/N":function(t,e,i){"use strict";e.a=function(t){if(!Object(s.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var i=a.call(e,"constructor")&&e.constructor;return"function"==typeof i&&a.toString.call(i)===a.toString.call(Object)};var s=i("E5mE"),a=Object.prototype.hasOwnProperty},ekq3:function(t,e,i){"use strict";var s=i("zagf");e.a=s.a},gTYF:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("Nt7u"),a=i("FlVT"),n=i("XUgh"),r=i("ekq3"),o=i("Hxsb"),l=i("76is"),d={extends:i("HDd3").a,props:{scrollEl:{},isDisableScroll:{type:Boolean,default:!1},disableCla:{default:"nus_popup-overflowHide"}},data:function(){return{myScrollEl:this.scrollEl}},methods:{_stopEvent:function(){var t=this;(t.isDiableScroll||t.scrollEl)&&t.$nextTick(function(){var e=t.$refs||{};[e.hook_bg,e.hook_wrap].forEach(function(t){t&&t.addEventListener("touchmove",function(i){t!==e.hook_wrap&&i.preventDefault(),i.stopPropagation()},{passive:!1})})})},_initDisable:function(){var t=this.$tPopup;if(this.isDisableScroll||this.scrollEl){if(!this.myScrollEl){var e=t&&t.getOptions(),i=e&&e.scrollEl;this.myScrollEl=i}this._setElScroll=this._initElScroll(this.myScrollEl)}},_setScroll:function(t){if(this.isDisableScroll||this.scrollEl){if(t){if(this._isInitElScroll)return;this._isInitElScroll=!0}else this._isInitElScroll=!1;this._setBodyScroll(t),this._setElScroll&&this._setElScroll(t)}},_setBodyScroll:function(t){var e=document.body,i=e._popupCount||0;if(e)if(t){if(e._popupCount=i+1,i<2){var s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;s&&(e.__scrollTop=s,e.style.top=-s+"px"),e.classList&&e.classList.add(this.disableCla)}}else(i-=1)>0?e._popupCount=i:(e._popupCount=0,e.style.top=0,e.classList&&e.classList.remove(this.disableCla),window.scrollTo(e.__scrollLeft||0,e.__scrollTop||0))},_initElScroll:function(t){var e=this;t&&"string"==typeof t&&(t=(t=document.querySelectorAll(t))&&Array.from(t)),t&&t.length<=0&&(t=[t]);var i=document.body;return t=t&&t.filter(function(t){return t!==i}),function(e){if(t&&!(t.length<=0))for(var i=0;i<t.length;i++){s(e,t[i])}};function s(t,i){var s=i._popupCount||0;i&&(t?(i._popupCount=s+1,s<2&&i.classList&&i.classList.add(e.disableCla)):(s-=1)>0?i._popupCount=s:(i._popupCount=0,i.classList&&i.classList.remove(e.disableCla)))}}}};var h=i("VU/8")(d,null,!1,function(t){i("qWP1")},null,null).exports,c=i("qd2b"),u=i("uGS0");var p=window.location||{},f=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,i));return s.defaultOption={pageName:""},s.setDefaultOptions(i),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toPage=function(t,e){var i=(t=this.getOptions(t)||{}).queryKey||"";if(t.notRouter)return t&&t.pageName||null;if(i&&t.pageName){var s=new RegExp("_"+i+"=[a-z]+","ig"),a=new RegExp("\\?_"+i+"=[a-z]+(&)?|&_"+i+"=[a-z]+","ig"),n=(e=e||p.href||"")||"",r=s.test(n);r?(s.lastIndex=0,n=n.replace(s,"_"+i+"="+t.pageName)):n=/[?&]/.test(n)?n+"&_"+i+"="+t.pageName:n+"?_"+i+"="+t.pageName;var o=n.split("?");0;var l=window.history.state,d=Object.assign({},t.state,{_type:i});return r&&l&&l._type===i?window.history.replaceState(d||null,t.title||"",o.join("?")):(!r||l&&l._type===i||window.history.replaceState(l||null,"",n.replace(a,function(t,e){var i="";return"&"===e&&(i="?"),i})),window.history.pushState(d||null,t.title||"",o.join("?"))),t.pageName}},e.prototype.goBackPage=function(t){return t=this.getOptions(t)||{},new Promise(function(e,i){if(t.notRouter)e(t&&t.pageName||null);else{var s=t.queryKey||"";if(!t[s]){var a=new RegExp("_"+s+"=[a-z]+","i"),n=decodeURIComponent(p.href||"").match(a);if(n&&n[0]){var r=((n[0]||"")+"").split("=")[1],o=r&&r[1];o&&(t[s]=o)}}Object(u.a)(t.getUrlParams||t,t).then(function(t){(t=t||{})[s]?(history.go(t.goBack||-1),e(t[s])):t.goBack&&(history.go(t.goBack),e(t[s]))},i)}})},e}(c.a),v={extends:h,props:{routerOption:{type:Object}},data:function(){return{pageList:[]}},created:function(){var t=this,e=t.routerOption||{};t._routerLive||e.notRouter||!e.queryKey||(t._routerLive=new f(e),t.onPopstate=function(e){t._onPopstate(e)},window.addEventListener("popstate",t.onPopstate))},beforeDestroy:function(){this.onPopstate&&(this._goBackPage(),window.removeEventListener("popstate",this.onPopstate))},methods:{_toPage:function(t,e){var i=this._routerLive;if(i){var s=t&&t.pageName,a=this.pageList;return s&&this._outPage!==s&&a[a.length-1]!==s?a.push(s):this._outPage=null,this._pageList=this._pageList||[],i&&i.toPage(t,e)}},_goBackPage:function(t){var e=this._routerLive;return e&&e.goBackPage(t)},_onPopstate:function(t){var e=this.$refs.hook_is,i=e&&e.$options;if(this._routerLive){var s=this.pageList,a=void 0,n=void 0;s&&s.length>0&&(a=s.pop(),n=s[s.length-1],this._outPage=n);var o=s.length>=2&&s[s.length-2];i&&Object(r.a)(i.popupPopstate,[{Event:t,oldPage:a,nowPage:n,upPage:o}],e)}}}},m=i("VU/8")(v,null,!1,null,null,null).exports,g=i("xaRY"),b={extends:m,name:"NuPopup",props:{maskFlag:{type:[Number,String],default:1},props:{type:Object},content:{},isHeight:{type:Boolean,default:!1},maskCloseFlag:{type:Number,default:1},isCloseBtn:{type:Boolean,default:!1},alignCla:{type:String,default:"bottom"},wrapCla:{type:String,default:""},transition:{type:Boolean,default:!0},transitionCls:{type:String,default:"toUp"}},data:function(){return{cHeight:0,showFlag:null,myProps:this.props}},mixins:[Object(o.a)("isOpen",{value:{type:Boolean,default:!0},mValueChange:function(t){return t?(this.myIsOpen=t,this._initCom(),this.show(!0)):(this._clearInit(),this.hide()),!1}}),Object(o.a)("isShow",{value:{type:Boolean,default:!0},myValueInit:function(){return!1},mValueChange:function(t){return t?(this.myIsOpen=!0,this.show()):this.hide(),!1}}),Object(g.default)()],watch:{showOpen:function(t){this._setScroll(t)},props:function(t){this.myProps=t}},created:function(){var t=this;t._resize=function(){t.cHeight=null,void 0!==t.timer&&clearTimeout(t.timer),t.timer=setTimeout(function(){t._getWrapHeight()},20)},t._initCom()},beforeDestroy:function(){if(this.myIsOpen){var t=Object(s.a)("destroy");this.close(t)}this._setScroll(!1)},mounted:function(){this.show(!0),this._setScroll(this.showOpen)},computed:{showOpen:function(){return this.isOpen&&this.myIsOpen&&this.isShow&&this.myIsShow},wrapHeight:function(){var t="";if(this.isHeight){var e=this.cHeight;e&&(t=e+"px")}return t}},methods:{_clearInit:function(){this._isInit=!1},_afterEnter:function(){Object(a.a)(this.$el,Object(n.a)("transitionend",!0))},_initCom:function(){this.hide(!0),this.isOpen&&(this._initDisable(),this._stopEvent(),this._initEvent||(this._initEvent=!0,this.isHeight&&(window.addEventListener("resize",this._resize),window.addEventListener("orientationchange",this._resize))))},_getContent:function(){var t=this;return new Promise(function(e,i){t.$nextTick(function(){var i=t.$slots.default;if(!t.content||i&&i.length)e(null);else{var s=t.$refs.hook_is;e(s)}})})},_getWrapHeight:function(){var t=this;t.cHeight=0,t.$nextTick(function(){var e=t.$refs.hook_wrap;e&&(t.cHeight=e.clientHeight)})},_clickCont:function(t){t&&t.target===this.$refs.hookCont&&this._clickBg(t)},_clickBg:function(t){switch(this.$emit("clickBg",t),this.maskCloseFlag+""){case"1":this.closePopup(t);break;case"2":this.hide()}},show:function(t){(this.myIsShow=this.isShow,this.showFlag=!t&&"show","show"===this.showFlag)&&(this._getContent().then(function(t){var e=t&&t.$options;e&&Object(r.a)(e.popupShow,[],t)}),this.$emit(l.a.SHOW,{}));this.myIsShow&&this._getWrapHeight()},hide:function(t){this.myIsShow=!1,this.showFlag=!t&&"hide"},closePopup:function(t){this.transition?this.hide():this.close(t),this.showFlag=null},close:function(t){(this._initEvent=!1,this.isHeight&&(window.removeEventListener("resize",this._resize),window.removeEventListener("orientationchange",this._resize)),"hide"!==this.showFlag||t&&"destroy"===t.type)?(this.myIsOpen=!1,this.$emit(l.a.CLOSE,t)):this._getContent().then(function(t){var e=t&&t.$options;e&&Object(r.a)(e.popupHide,[],t)});this.myIsShow=!1,this.$emit(l.a.HIDE,t),this.showFlag=null}}},y={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"n_popup"},on:{"after-enter":t._afterEnter,"after-leave":t.close}},[t.myIsOpen?i("div",{directives:[{name:"show",rawName:"v-show",value:t.myIsShow,expression:"myIsShow"}],staticClass:"nus_popup",class:[t.wrapCla,t.alignCla&&"nu_align-"+t.alignCla||"",-1===t.maskFlag&&"nu_hide-mask"]},[t.isCloseBtn?i("i",{staticClass:"nu_close nu_icon",on:{touchstart:function(e){t.closePopup(e)},click:function(e){t.closePopup(e)},tap:function(e){t.closePopup(e)}}},[t._v("\n \n ")]):t._e(),t._v(" "),-1!==t.maskFlag?i("div",{ref:"hook_bg",staticClass:"nu_popup-bg",class:[t.maskFlag+""=="1"&&"nu_mask"],on:{click:function(e){t._clickBg(e)},tap:function(e){t._clickBg(e)}}}):t._e(),t._v(" "),i("div",{ref:"hook_wrap",staticClass:"nu_content-wrap",style:t.wrapHeight&&{height:t.wrapHeight}},[i("div",{ref:"hookCont",staticClass:"nu_content",class:[t.transitionCls&&"n_"+t.transitionCls],on:{click:function(e){t._clickCont(e)},tap:function(e){t._clickCont(e)}}},[t._t("default",[t.content?i(t.content,t._b({ref:"hook_is",tag:"div",on:{showChange:function(e){t.show()},hideChange:function(e){t.hide()},closePopup:t.closePopup,close:t.close,openPage:t._toPage,goBackPage:t._goBackPage,confirmChange:t._confirm,cancelChange:t._cancel}},"div",t.myProps,!1)):t._e()])],2)])]):t._e()])},staticRenderFns:[]};var w=i("VU/8")(b,y,!1,function(t){i("Q4rh")},null,null).exports,x=i("4qRk");e.default=Object(x.a)(w)},gVXU:function(t,e){},gsqX:function(t,e,i){var s,a,n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){"use strict";var t="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(t){for(var e=0;e<t.length;e+=1)this[e]=t[e];return this.length=t.length,this};function s(s,a){var n=[],r=0;if(s&&!a&&s instanceof i)return s;if(s)if("string"==typeof s){var o,l,d=s.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){var h="div";for(0===d.indexOf("<li")&&(h="ul"),0===d.indexOf("<tr")&&(h="tbody"),0!==d.indexOf("<td")&&0!==d.indexOf("<th")||(h="tr"),0===d.indexOf("<tbody")&&(h="table"),0===d.indexOf("<option")&&(h="select"),(l=t.createElement(h)).innerHTML=d,r=0;r<l.childNodes.length;r+=1)n.push(l.childNodes[r])}else for(o=a||"#"!==s[0]||s.match(/[ .<>:~]/)?(a||t).querySelectorAll(s.trim()):[t.getElementById(s.trim().split("#")[1])],r=0;r<o.length;r+=1)o[r]&&n.push(o[r])}else if(s.nodeType||s===e||s===t)n.push(s);else if(s.length>0&&s[0].nodeType)for(r=0;r<s.length;r+=1)n.push(s[r]);return new i(n)}function a(t){for(var e=[],i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}s.fn=i.prototype,s.Class=i,s.Dom7=i;var n={addClass:function(t){if(void 0===t)return this;for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.add(e[i]);return this},removeClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.toggle(e[i]);return this},attr:function(t,e){var i=arguments;if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var s=0;s<this.length;s+=1)if(2===i.length)this[s].setAttribute(t,e);else for(var a in t)this[s][a]=t[a],this[s].setAttribute(a,t[a]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){var i;if(void 0!==e){for(var s=0;s<this.length;s+=1)(i=this[s]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[t];var a=i.getAttribute("data-"+t);return a||void 0}},transform:function(t){for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransform=t,i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},on:function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];var a=e[0],n=e[1],r=e[2],o=e[3];function l(t){var e=t.target;if(e){var i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),s(e).is(n))r.apply(e,i);else for(var a=s(e).parents(),o=0;o<a.length;o+=1)s(a[o]).is(n)&&r.apply(a[o],i)}}function d(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),r.apply(this,e)}"function"==typeof e[1]&&(a=(t=e)[0],r=t[1],o=t[2],n=void 0),o||(o=!1);for(var h,c=a.split(" "),u=0;u<this.length;u+=1){var p=this[u];if(n)for(h=0;h<c.length;h+=1){var f=c[h];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:r,proxyListener:l}),p.addEventListener(f,l,o)}else for(h=0;h<c.length;h+=1){var v=c[h];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[v]||(p.dom7Listeners[v]=[]),p.dom7Listeners[v].push({listener:r,proxyListener:d}),p.addEventListener(v,d,o)}}return this},off:function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];var s=e[0],a=e[1],n=e[2],r=e[3];"function"==typeof e[1]&&(s=(t=e)[0],n=t[1],r=t[2],a=void 0),r||(r=!1);for(var o=s.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],h=0;h<this.length;h+=1){var c=this[h],u=void 0;if(!a&&c.dom7Listeners?u=c.dom7Listeners[d]:a&&c.dom7LiveListeners&&(u=c.dom7LiveListeners[d]),u&&u.length)for(var p=u.length-1;p>=0;p-=1){var f=u[p];n&&f.listener===n?(c.removeEventListener(d,f.proxyListener,r),u.splice(p,1)):n&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===n?(c.removeEventListener(d,f.proxyListener,r),u.splice(p,1)):n||(c.removeEventListener(d,f.proxyListener,r),u.splice(p,1))}}return this},trigger:function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];for(var a=i[0].split(" "),n=i[1],r=0;r<a.length;r+=1)for(var o=a[r],l=0;l<this.length;l+=1){var d=this[l],h=void 0;try{h=new e.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(e){(h=t.createEvent("Event")).initEvent(o,!0,!0),h.detail=n}d.dom7EventData=i.filter(function(t,e){return e>0}),d.dispatchEvent(h),d.dom7EventData=[],delete d.dom7EventData}return this},transitionEnd:function(t){var e,i=["webkitTransitionEnd","transitionend"],s=this;function a(n){if(n.target===this)for(t.call(this,n),e=0;e<i.length;e+=1)s.off(i[e],a)}if(t)for(e=0;e<i.length;e+=1)s.on(i[e],a);return this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var i=this[0],s=i.getBoundingClientRect(),a=t.body,n=i.clientTop||a.clientTop||0,r=i.clientLeft||a.clientLeft||0,o=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:s.top+o-n,left:s.left+l-r}}return null},css:function(t,i){var s;if(1===arguments.length){if("string"!=typeof t){for(s=0;s<this.length;s+=1)for(var a in t)this[s].style[a]=t[a];return this}if(this[0])return e.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(s=0;s<this.length;s+=1)this[s].style[t]=i;return this}return this},each:function(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(a){var n,r,o=this[0];if(!o||void 0===a)return!1;if("string"==typeof a){if(o.matches)return o.matches(a);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(a);if(o.msMatchesSelector)return o.msMatchesSelector(a);for(n=s(a),r=0;r<n.length;r+=1)if(n[r]===o)return!0;return!1}if(a===t)return o===t;if(a===e)return o===e;if(a.nodeType||a instanceof i){for(n=a.nodeType?[a]:a,r=0;r<n.length;r+=1)if(n[r]===o)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e,s=this.length;return new i(t>s-1?[]:t<0?(e=s+t)<0?[]:[this[e]]:[this[t]])},append:function(){for(var e,s=[],a=arguments.length;a--;)s[a]=arguments[a];for(var n=0;n<s.length;n+=1){e=s[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof i)for(var l=0;l<e.length;l+=1)this[r].appendChild(e[l]);else this[r].appendChild(e)}return this},prepend:function(e){var s,a;for(s=0;s<this.length;s+=1)if("string"==typeof e){var n=t.createElement("div");for(n.innerHTML=e,a=n.childNodes.length-1;a>=0;a-=1)this[s].insertBefore(n.childNodes[a],this[s].childNodes[0])}else if(e instanceof i)for(a=0;a<e.length;a+=1)this[s].insertBefore(e[a],this[s].childNodes[0]);else this[s].insertBefore(e,this[s].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(t)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])},nextAll:function(t){var e=[],a=this[0];if(!a)return new i([]);for(;a.nextElementSibling;){var n=a.nextElementSibling;t?s(n).is(t)&&e.push(n):e.push(n),a=n}return new i(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&s(e.previousElementSibling).is(t)?new i([e.previousElementSibling]):new i([]):e.previousElementSibling?new i([e.previousElementSibling]):new i([])}return new i([])},prevAll:function(t){var e=[],a=this[0];if(!a)return new i([]);for(;a.previousElementSibling;){var n=a.previousElementSibling;t?s(n).is(t)&&e.push(n):e.push(n),a=n}return new i(e)},parent:function(t){for(var e=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?s(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return s(a(e))},parents:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)t?s(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return s(a(e))},closest:function(t){var e=this;return void 0===t?new i([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],s=0;s<this.length;s+=1)for(var a=this[s].querySelectorAll(t),n=0;n<a.length;n+=1)e.push(a[n]);return new i(e)},children:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].childNodes,o=0;o<r.length;o+=1)t?1===r[o].nodeType&&s(r[o]).is(t)&&e.push(r[o]):1===r[o].nodeType&&e.push(r[o]);return new i(a(e))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,a;for(i=0;i<t.length;i+=1){var n=s(t[i]);for(a=0;a<n.length;a+=1)this[this.length]=n[a],this.length+=1}return this},styles:function(){return this[0]?e.getComputedStyle(this[0],null):{}}};Object.keys(n).forEach(function(t){s.fn[t]=s.fn[t]||n[t]});var o,l,d={deleteProps:function(t){var e=t;Object.keys(e).forEach(function(t){try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:function(t,e){return void 0===e&&(e=0),setTimeout(t,e)},now:function(){return Date.now()},getTranslate:function(t,i){var s,a,n;void 0===i&&(i="x");var r=e.getComputedStyle(t,null);return e.WebKitCSSMatrix?((a=r.transform||r.webkitTransform).split(",").length>6&&(a=a.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),n=new e.WebKitCSSMatrix("none"===a?"":a)):s=(n=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(a=e.WebKitCSSMatrix?n.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===i&&(a=e.WebKitCSSMatrix?n.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),a||0},parseUrlQuery:function(t){var i,s,a,n,r={},o=t||e.location.href;if("string"==typeof o&&o.length)for(n=(s=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter(function(t){return""!==t})).length,i=0;i<n;i+=1)a=s[i].replace(/#\S+/g,"").split("="),r[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return r},isObject:function(t){return"object"===(void 0===t?"undefined":r(t))&&null!==t&&t.constructor&&t.constructor===Object},extend:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=Object(t[0]),s=1;s<t.length;s+=1){var a=t[s];if(void 0!==a&&null!==a)for(var n=Object.keys(Object(a)),r=0,o=n.length;r<o;r+=1){var l=n[r],h=Object.getOwnPropertyDescriptor(a,l);void 0!==h&&h.enumerable&&(d.isObject(i[l])&&d.isObject(a[l])?d.extend(i[l],a[l]):!d.isObject(i[l])&&d.isObject(a[l])?(i[l]={},d.extend(i[l],a[l])):i[l]=a[l])}}return i}},h=(l=t.createElement("div"),{touch:e.Modernizr&&!0===e.Modernizr.touch||!!(e.navigator.maxTouchPoints>0||"ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!(e.navigator.pointerEnabled||e.PointerEvent||"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>0),prefixedPointerEvents:!!e.navigator.msPointerEnabled,transition:(o=l.style,"transition"in o||"webkitTransition"in o||"MozTransition"in o),transforms3d:e.Modernizr&&!0===e.Modernizr.csstransforms3d||function(){var t=l.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=l.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i+=1)if(e[i]in t)return!0;return!1}(),observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(t){}return t}(),gestures:"ongesturestart"in e}),c=function(){return{isIE:!!e.navigator.userAgent.match(/Trident/g)||!!e.navigator.userAgent.match(/MSIE/g),isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:(t=e.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)};var t}(),u=function(t){void 0===t&&(t={});var e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(function(t){e.on(t,e.params.on[t])})},p={components:{configurable:!0}};u.prototype.on=function(t,e,i){var s=this;if("function"!=typeof e)return s;var a=i?"unshift":"push";return t.split(" ").forEach(function(t){s.eventsListeners[t]||(s.eventsListeners[t]=[]),s.eventsListeners[t][a](e)}),s},u.prototype.once=function(t,e,i){var s=this;if("function"!=typeof e)return s;function a(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];e.apply(s,i),s.off(t,a),a.f7proxy&&delete a.f7proxy}return a.f7proxy=e,s.on(t,a,i)},u.prototype.off=function(t,e){var i=this;return i.eventsListeners?(t.split(" ").forEach(function(t){void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].length&&i.eventsListeners[t].forEach(function(s,a){(s===e||s.f7proxy&&s.f7proxy===e)&&i.eventsListeners[t].splice(a,1)})}),i):i},u.prototype.emit=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,s,a,n=this;return n.eventsListeners?("string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],s=t.slice(1,t.length),a=n):(i=t[0].events,s=t[0].data,a=t[0].context||n),(Array.isArray(i)?i:i.split(" ")).forEach(function(t){if(n.eventsListeners&&n.eventsListeners[t]){var e=[];n.eventsListeners[t].forEach(function(t){e.push(t)}),e.forEach(function(t){t.apply(a,s)})}}),n):n},u.prototype.useModulesParams=function(t){var e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var s=e.modules[i];s.params&&d.extend(t,s.params)})},u.prototype.useModules=function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var s=e.modules[i],a=t[i]||{};s.instance&&Object.keys(s.instance).forEach(function(t){var i=s.instance[t];e[t]="function"==typeof i?i.bind(e):i}),s.on&&e.on&&Object.keys(s.on).forEach(function(t){e.on(t,s.on[t])}),s.create&&s.create.bind(e)(a)})},p.components.set=function(t){this.use&&this.use(t)},u.installModule=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var s=this;s.prototype.modules||(s.prototype.modules={});var a=t.name||Object.keys(s.prototype.modules).length+"_"+d.now();return s.prototype.modules[a]=t,t.proto&&Object.keys(t.proto).forEach(function(e){s.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(function(e){s[e]=t.static[e]}),t.install&&t.install.apply(s,e),s},u.use=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var s=this;return Array.isArray(t)?(t.forEach(function(t){return s.installModule(t)}),s):s.installModule.apply(s,[t].concat(e))},Object.defineProperties(u,p);var f={updateSize:function(){var t,e,i=this.$el;t=void 0!==this.params.width?this.params.width:i[0].clientWidth,e=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),e=e-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),d.extend(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){var t=this.params,i=this.$wrapperEl,s=this.size,a=this.rtlTranslate,n=this.wrongRTL,r=this.virtual&&t.virtual.enabled,o=r?this.virtual.slides.length:this.slides.length,l=i.children("."+this.params.slideClass),u=r?this.virtual.slides.length:l.length,p=[],f=[],v=[],m=t.slidesOffsetBefore;"function"==typeof m&&(m=t.slidesOffsetBefore.call(this));var g=t.slidesOffsetAfter;"function"==typeof g&&(g=t.slidesOffsetAfter.call(this));var b=this.snapGrid.length,y=this.snapGrid.length,w=t.spaceBetween,x=-m,C=0,E=0;if(void 0!==s){var S,T;"string"==typeof w&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*s),this.virtualSize=-w,a?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(S=Math.floor(u/t.slidesPerColumn)===u/this.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(S=Math.max(S,t.slidesPerView*t.slidesPerColumn)));for(var P,_=t.slidesPerColumn,M=S/_,O=Math.floor(u/t.slidesPerColumn),k=0;k<u;k+=1){T=0;var z=l.eq(k);if(t.slidesPerColumn>1){var $=void 0,L=void 0,I=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)I=k-(L=Math.floor(k/_))*_,(L>O||L===O&&I===_-1)&&(I+=1)>=_&&(I=0,L+=1);else{var D=Math.floor(k/t.slidesPerGroup);L=k-(I=Math.floor(k/t.slidesPerView)-D*t.slidesPerColumn)*t.slidesPerView-D*t.slidesPerView}$=L+I*S/_,z.css({"-webkit-box-ordinal-group":$,"-moz-box-ordinal-group":$,"-ms-flex-order":$,"-webkit-order":$,order:$})}else L=k-(I=Math.floor(k/M))*M;z.css("margin-"+(this.isHorizontal()?"top":"left"),0!==I&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",L).attr("data-swiper-row",I)}if("none"!==z.css("display")){if("auto"===t.slidesPerView){var A=e.getComputedStyle(z[0],null),j=z[0].style.transform,N=z[0].style.webkitTransform;if(j&&(z[0].style.transform="none"),N&&(z[0].style.webkitTransform="none"),t.roundLengths)T=this.isHorizontal()?z.outerWidth(!0):z.outerHeight(!0);else if(this.isHorizontal()){var B=parseFloat(A.getPropertyValue("width")),H=parseFloat(A.getPropertyValue("padding-left")),V=parseFloat(A.getPropertyValue("padding-right")),F=parseFloat(A.getPropertyValue("margin-left")),G=parseFloat(A.getPropertyValue("margin-right")),R=A.getPropertyValue("box-sizing");T=R&&"border-box"===R&&!c.isIE?B+F+G:B+H+V+F+G}else{var X=parseFloat(A.getPropertyValue("height")),Y=parseFloat(A.getPropertyValue("padding-top")),q=parseFloat(A.getPropertyValue("padding-bottom")),W=parseFloat(A.getPropertyValue("margin-top")),U=parseFloat(A.getPropertyValue("margin-bottom")),K=A.getPropertyValue("box-sizing");