UNPKG

nimble-ui

Version:
1 lines 20 kB
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="CBoO")}({"/GK1":function(t,e,n){"use strict";var i=n("shrL");e.a=i.a},"0Zk/":function(t,e,n){"use strict";e.a=function(t,e){return Object(i.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var i=n("lXuC")},"2tHm":function(t,e,n){"use strict";var i=n("zagf");e.a=function(t,e,n,o){var r=o/(n/e);!function n(s,a){setTimeout(function(){Object(i.a)(t,[a]),(o>0&&a<o||o<0&&a>o)&&s>0?n(s-e,a+r):Object(i.a)(t,[o])},e)}(n,0)}},"37ml":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e,n){e.mixin(Object(i.a)(t,[n]))});return t};var i=n("ekq3")},"4TYt":function(t,e,n){"use strict";var i=n("Krqh");e.a=i.a},"4qRk":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",i=e.component(n);i||e.component(n,t)});return t}},"56aJ":function(t,e){},"5fCB":function(t,e,n){"use strict";var i=n("E5mE"),o=n("eY/N");e.a=function t(){for(var e=!0,n=void 0,r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];if(s instanceof Array&&(n=s.slice(0,1)[0]),"boolean"==typeof n&&(e=n,s.splice(0,1),e||(n=s.splice(0,1)[0])),s&&s.length<1)return"boolean"==typeof n?s[1]:n;e&&(n=null);for(var c=0;c<s.length;c++){var l=s[c];if(l instanceof Object)if(e){for(var u in n&&n instanceof Object||(n=l instanceof Array?[]:{}),l)if(l.hasOwnProperty(u)){var f=l[u];if(p(f)){var h=p(n[u])&&n[u]||(f instanceof Array?[]:{});n[u]=t(h,f)}else void 0!==f?n[u]=f:void 0!==n[u]&&(n[u]=f)}}else n=n&&n instanceof Object?Object.assign(n,l):l}return n;function p(t){return t&&(Object(i.a)(t,"Array")||Object(o.a)(t))||!1}}},"B/FW":function(t,e){},CBoO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Z5sI"),o={extends:n("HDd3").a,props:{list:{type:Array},filterKey:{type:Function},scrollAanimation:{default:!1},time:{type:Number,default:10},duration:{type:Number,default:200}}},r=n("VU/8")(o,null,!1,null,null,null).exports,s=n("MWZt"),a=n("4TYt"),c=n("I3JS"),l=n("2tHm"),u=n("ekq3"),f=n("sL/4"),h={props:{itemKey:{type:[Number,String]},itemData:{},activeIndex:{}},watch:{activeIndex:function(t){this.itemKey===t&&this.$emit("selectChange",t)}}},p={render:function(){var t=this.$createElement,e=this._self._c||t;return this.itemData?e("li",{staticClass:"nus_stickyItem"},[this._t("default",null,{itemKey:this.itemKey,itemData:this.itemData})],2):this._e()},staticRenderFns:[]};var d={extends:r,components:{StickyItem:n("VU/8")(h,p,!1,function(t){n("56aJ")},null,null).exports},mixins:[Object(i.default)("activeIndex")],watch:{list:function(t){var e=this;t&&t.length&&setTimeout(function(){e._getScrollEl(!0),e._refresh()},50)}},created:function(){var t=this;t.indexList=Object(c.a)(),t.indexList.$on("itemmove",function(e){t.$emit("itemmove",e)}),t._refreshHandler=Object(s.a)(function(){var e=t._getScrollEl(),n=e&&e.scrollHeight||0;Math.abs((t._myScrollHeight||0)-n)>50&&(t._myScrollHeight=n,t._refresh())},200)||t._refresh;var e=void 0;t._onScroll=function(n){if(!t.lock){var i=t._getScrollEl(),o=i&&(i.scrollTop||i.scrollY);void 0!==e&&clearTimeout(e),e=setTimeout(function(){t._refreshHandler(n)},100),t._setActiveIndex(o)}},t._onResize=function(){t._refresh()}},mounted:function(){var t=this;t.$nextTick(function(){t._initCom(),setTimeout(function(){t._getScrollEl(!0),t._refresh()},50)})},beforeDestroy:function(){this.scrollEl&&this.scrollEl.removeEventListener("scroll",this._onScroll),window.removeEventListener("resize",this._onResize)},methods:{_filterKey:function(t,e){var n=e;return t&&void 0!==t.index&&(n=t.index),Object(u.a)(this.filterKey||n,[t,e])},_initCom:function(){this._getScrollEl(!0),window.addEventListener("resize",this._onResize,!1),this._refresh(),!this.activeIndex&&this._setActiveIndex(0)},_getScrollEl:function(t){t&&this.scrollEl&&(this.scrollEl.removeEventListener("scroll",this._onScroll),this.scrollEl.removeEventListener("load",this._refreshHandler));var e=!t&&this.scrollEl||Object(f.a)(this.$el);return this.scrollEl&&!t||!e||(this._scrollElTop=Object(a.a)(e)||0,this._myScrollHeight=e.scrollHeight||0,e.addEventListener("scroll",this._onScroll,!1),e.addEventListener("load",this._refreshHandler,!0)),this.scrollEl=e,e},_refresh:function(){this.indexList.refresh(this.$refs.hook_items),this._onScroll()},_onSelectChange:function(t,e){if(this.myIndex!==t){this.myIndex=t;var n=this.indexList.getItem(t);if("number"==typeof n.top){var i=n.top-(this._scrollElTop||0);this._setScrollTop(i)}}this.$emit("checked",e)},_setScrollTop:function(t){var e=this,n=e.scrollEl,i=n===window?n.scrollY:n.scrollTop;function o(o){var r=void 0,s=i+o;n===window?(n.scrollTo({top:s,behavior:"instant"}),r=n.scrollY):(n.scrollTop=s,r=n.scrollTop),Math.abs(t-s)<1&&(e._timeout=setTimeout(function(){e.lock=!1,"number"==typeof r&&t!==r&&e._onScroll(r)},20))}n&&(void 0!==e._timeout&&clearTimeout(e._timeout),e.lock=!0,e.scrollAanimation?Object(l.a)(o,e.time,e.duration,t-i):o(t-i))},_toActiveIndex:function(t){var e=this._filterKey(this.list&&this.list[t],t);if(this.myIndex!==t||e!==this.activeIndex)return this.myIndex=t,e},_setActiveIndex:function(t){var e=this.indexList.getIndex(t+this._scrollElTop),n=this._toActiveIndex(e);void 0!==n&&(this.myActiveIndex=n)}}},v={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"nus_sticky-list"},[t.list?[t._l(t.list,function(e,i){return[n("sticky-item",{key:i,ref:"hook_items",refInFor:!0,attrs:{itemKey:t._filterKey(e,i),itemData:e,activeIndex:t.myActiveIndex},on:{selectChange:function(n){t._onSelectChange(i,e)}},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.itemKey,o=e.itemData;return[t._t("default",null,{itemKey:n,itemIndex:i,itemData:o})]}}])})]})]:t._e()],2)},staticRenderFns:[]};var m=n("VU/8")(d,v,!1,function(t){n("qxno")},null,null).exports,_=n("/GK1"),y={extends:r,name:"NuSticky",props:{labelFixed:{type:[Boolean,Function],default:function(){return function(t,e,n){var i=!1;return(e<=0&&n<0||e>0)&&(i=!0),i}}},filterItemTitle:{type:Function}},components:{StickyList:m},mixins:[Object(i.default)("activeIndex")],computed:{_filterItemTitle:function(){var t=this.myActiveIndex||"",e=this.activeItemData||{};return Object(u.a)(this.filterItemTitle||e.text||t,[e,t,this.itemIndex])}},data:function(){return{isLabelFixed:!1,activeItemData:null}},mounted:function(){var t=this;t.$nextTick(function(){setTimeout(function(){t._getLabelHeight()},0)})},methods:{_onChecked:function(t){this.activeItemData=t,this.$emit("itemmove",t)},_getLabelHeight:function(t){var e=(this.$refs||{}).hook_label,n=this._labelHeight||0;return!e||!t&&n||(n=e.offsetHeight),this._labelHeight=n,n},_setIsLabelFixed:function(t,e){return this.isLabelFixed=Object(u.a)(this.labelFixed,[this.myActiveIndex,t,e]),this.isLabelFixed},_itemMove:function(t){var e=this.$refs.hook_label;if(this._setIsLabelFixed(t.index||0,t.top),e){var n=this._labelBottom||0,i=this._getLabelHeight();if(i&&(n<=i||n>i&&t.bottom<=i)){var o=t.bottom<=i?t.bottom-i:0;e.style[Object(_.a)("transform")]="translate3d(0px, "+o+"px, 0px)",this._labelBottom=o}}this.$emit("checked",t)}}},b={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nus_sticky"},[n("sticky-list",{attrs:{list:t.list,filterKey:t.filterKey,scrollAanimation:t.scrollAanimation,time:t.time,duration:t.duration,activeIndex:t.myActiveIndex},on:{"update:activeIndex":function(e){t.myActiveIndex=e},itemmove:t._itemMove,checked:t._onChecked},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.itemKey,i=e.itemIndex,o=e.itemData;return[t._t("default",null,{itemKey:n,itemIndex:i,itemData:o})]}}])}),t._v(" "),t.isLabelFixed?n("div",{ref:"hook_label",staticClass:"nu_sticky-label"},[t._t("hook_label",[n("div",{staticClass:"nu_sticky-label-text"},[t._v("\n "+t._s(t._filterItemTitle)+"\n ")])],{itemData:t.activeItemData,activeIndex:t.myActiveIndex})],2):t._e()],1)},staticRenderFns:[]};var g=n("VU/8")(y,b,!1,function(t){n("cRZj")},null,null).exports,x=n("4qRk");e.default=Object(x.a)(g)},E5mE:function(t,e,n){"use strict";e.a=function(t,e){var n=!1;try{n=Object.prototype.toString.call(t)==="[object "+e+"]"}catch(t){}return n}},FNmr:function(t,e,n){"use strict";e.a=function(t,e){var n="";if(t&&e)if(e.name){var o="$s"+(n=Object(i.a)(e.name));t.prototype&&!t.prototype[o]&&function(t,e,n){if(t&&e&&n){t[n]=e;try{Object.defineProperty(t,n,{get:function(){var t=this;return e._getParent=function(){return t},e},enumerable:!1,configurable:!1})}catch(t){}}}(t.prototype,e,o)}else console.error("Mount is not defined for the image name");return n};var i=n("0Zk/")},HDd3:function(t,e,n){"use strict";var i={extends:n("Lv3q").a},o=n("VU/8")(i,null,!1,null,null,null);e.a=o.exports},Hxsb:function(t,e,n){"use strict";e.a=function(t,e){var n;e=e||{};var r={};r[t=(t||"")+""]=e.value||{};var s="my"+Object(o.a)(t);return{props:r,data:function(){var n={};return n[s]=Object(i.a)(e.myValueInit||this[t],[this[t]],this),n},watch:(n={},n[t]=function(t,n){var o=Object(i.a)(e.mValueChange,[t,n],this);!1!==o&&(this[s]=t)},n[s]=function(n,o){var r=Object(i.a)(e.myValueChange,[n,o],this);!1!==r&&this.$emit("update:"+t,n)},n)}};var i=n("ekq3"),o=n("WGR+")},I3JS:function(t,e,n){"use strict";var i,o=n("qd2b"),r=n("Krqh"),s=n("fk+x"),a=n("MEnT");!function(t){t.ITEM_MOVE="itemmove"}(i||(i={}));var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,n));return i.name="NavIndex",i._maxHeight=0,i._minHeight=0,i._offsetList=null,i.refresh(),i}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.refresh=function(t){this._maxHeight=0,this._minHeight=0,this._offsetList=t&&this._initListOffset(t,!0)||null},e.prototype.getItem=function(t,e){return(this._initListOffset(e)||[])[t]||{}},e.prototype.getScrollTop=function(t){var e=this._initListOffset(t),n=e&&e[0],i=0,o=void 0;if(n){var r=n.el,c=this._isFixed;for(void 0===c&&(c=r&&r.offsetParent&&"fixed"===Object(s.a)(r.offsetParent,"position")||!1),this._isFixed=c,c&&(r=document.body);r;)i+=(r=Object(a.a)(r))&&(r.scrollTop||r.scrollY||0)||0,o=r,r=r.parentNode;i=(c?0-i:i)||0}return{scrollTop:i,el:o,isFixed:!!this._isFixed}},e.prototype.getIndex=function(t,e){t=t||0;var n=this._initListOffset(e)||[],o=n[0]||{},r=o&&o.top||0,s=n.length||0,a=this._getRegion(t-r,this._minHeight,this._maxHeight),c=Math.min(Math.max(s,1),a.endIndex),l=Math.max(0,Math.min(a.startIndex,c-1)),u=this._calcIndex(l,c-1,t,n);null===u&&(n[0]&&(n[0].bottom||0)>=t?u=0:n[s-1]&&(n[s-1].bottom||0)<=t&&(u=s-1));var f=n&&n[u||0];if(f){var h=(f.bottom||0)-t,p=(f.top||0)-t;this.$emit(i.ITEM_MOVE,{index:u,top:Math.min(p,0),bottom:Math.max(h,0)})}return u||0},e.prototype._initListOffset=function(t,e){var n=this._offsetList;return!e&&n&&n.length?n:(n=t&&this._getListOffset(t)||null,this._offsetList=n,n)},e.prototype._getListOffset=function(t){var e=this,n=t||[],i=[];return n&&n.length&&n.forEach(function(t,n){var o=t.$el||t,s={};if(o){var a=o.offsetHeight,c=0;s={top:c=0===n?Object(r.a)(o):i[n-1].bottom||0,height:a,bottom:c+a,el:o}}s.height&&((e._maxHeight||0)<s.height&&(e._maxHeight=s.height),(!e._minHeight||e._minHeight>s.height)&&(e._minHeight=s.height)),i.push(s)}),i},e.prototype._getRegion=function(t,e,n){e=e||1,n=n||1,t=t||0;var i=Math.floor(t/n-.5),o=Math.ceil(t/e+.5);return{startIndex:Math.max(Math.min(i,o-1),0),endIndex:Math.max(o,1)}},e.prototype._calcIndex=function(t,e,n,i){var o=null,r=Math.ceil((e-t)/2);if(e>=t&&e>=0&&t>=0&&i&&i.length)if(r>1){var s=t+r,a=i[s];a.top<=n&&a.bottom>n?o=s:a.top>n&&i[t].top<=n?o=i[t].bottom>n?t:this._calcIndex(t,s-1,n,i):a.bottom<=n&&i[e].bottom>n&&(o=i[e].top<=n?e:this._calcIndex(s+1,e-1,n,i))}else if(r>=0)for(var c=t;c<=e;c++){var l=i[c];if(l.top<=n&&l.bottom>n){o=c;break}}return o},e}(o.a);e.a=function(t){return c.instance(t)}},Krqh:function(t,e,n){"use strict";e.a=function(t){var e=t.offsetTop;t=t.offsetParent;for(;null!=t;)e+=t.offsetTop,t=t.offsetParent;return e}},Lv3q:function(t,e,n){"use strict";n("B/FW");var i=n("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=i.exports},MEnT:function(t,e,n){"use strict";e.a=function(t){if("undefined"==typeof HTMLElement||!(t instanceof HTMLElement))return window;var e=t;for(;e&&e!==document.body&&e!==document.documentElement;){if(e!==t){if(e._isScroll)return e;if(!e.parentNode)break;if(!1!==e._isScroll){if(/(scroll|auto)/.test(o(e)))return e._isScroll=!0,e;e._isScroll=!1}}e=e.parentNode}return window};var i=n("fk+x");function o(t){return Object(i.a)(t,"overflow")+Object(i.a)(t,"overflow-y")+Object(i.a)(t,"overflow-x")}},MWZt:function(t,e,n){"use strict";var i=n("yY2C");e.a=i.a},"VU/8":function(t,e){t.exports=function(t,e,n,i,o,r){var s,a=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(s=t,a=t.default);var l,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),r?(l=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=l):i&&(l=i),l){var f=u.functional,h=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,l):[l]}return{esModule:s,exports:a,options:u}}},"WGR+":function(t,e,n){"use strict";var i=n("0Zk/");e.a=i.a},XAAj:function(t,e,n){"use strict";e.a=function(t){var e=document.createEvent("undefined"!=typeof MouseEvent?"MouseEvents":"Event");return e.initEvent(t,!0,!1),e}},Z05q:function(t,e,n){"use strict";e.a=function(t,e,n){if(t&&(t.tagName||t===window||t===document)&&e&&"string"==typeof e){var r=Object(i.a)(e);r._constructed=!0,r=Object(o.a)(!1,r,n),t.dispatchEvent(r)}};var i=n("XAAj"),o=n("5fCB")},Z5sI:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Hxsb"),o=n("37ml");e.default=Object(o.a)(i.a)},cRZj:function(t,e){},"eY/N":function(t,e,n){"use strict";e.a=function(t){if(!Object(i.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=o.call(e,"constructor")&&e.constructor;return"function"==typeof n&&o.toString.call(n)===o.toString.call(Object)};var i=n("E5mE"),o=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var i=n("zagf");e.a=i.a},"fk+x":function(t,e,n){"use strict";e.a=function(t,e){return("undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e])||""}},lXuC:function(t,e,n){"use strict";e.a=function(t,e){var n="("+(e||"_|-")+")";return t=(t=(t=(t+"").replace(new RegExp(n+"?(?:(?:[A-Z]{2,}[A-Z]"+n+"*$)|(?:[A-Z]{2,}(?=[A-Z])))","g"),function(t){return(((e||"")+"").split("|")[0]||"-")+(t=t.replace(new RegExp(n),"")).toLowerCase()})).replace(new RegExp("(?:^"+n+"?([a-z]))|(?:"+n+"$)","gi"),function(t,e,n){return(n||"").toLowerCase()})).replace(new RegExp(n+"([a-z])","gi"),function(t,e,n){return(n||"").toUpperCase()})}},qd2b:function(t,e,n){"use strict";var i=n("5fCB"),o=n("Z05q"),r=n("zagf");var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={}}return t.prototype.$dispatchEvent=function(t,e,n){return Object(o.a)(t,e,n)},t.prototype.$on=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push([e,n])},t.prototype.$once=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this,o=!1,r=function r(){i.$off(t,r),o||(o=!0,e.apply(n,arguments))};r.fn=e,i.$on(t,r)},t.prototype.$off=function(t,e){var n=this._events&&this._events[t];if(n)for(var i=n.length;i--;)(n[i][0]===e||n[i][0]&&n[i][0].fn===e)&&(n[i][0]=void 0)},t.prototype.$emit=function(t){var e=this._events&&this._events[t];if(e){for(var n=e.length,i=[].concat(e),o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];for(var c=0;c<n;c++){var l=i[c],u=l[0],f=l[1];Object(r.a)(u,s,f)}}},t}(),a=n("FNmr");n.d(e,"a",function(){return c});var c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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));return i.name="",i.defaultOption={},i.setDefaultOptions(!0,n),i}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.singleton=function(t){var e=this._singleton||this.instance(t);return this._singleton=e,e},e.instance=function(t){return new this(t)},e.install=function(t,e){var n=this.instance(e);return t&&t.use instanceof Function&&t.use(n,e),n},e.prototype.getParent=function(){return Object(r.a)(this._getParent||this._vue&&this._vue.prototype||null,[],this)},e.prototype.install=function(t,e){this._vue=this._vue||t;var n=Object(a.a)(t,this);return this.setDefaultOptions(e&&n&&e[n]||e),this},e.prototype.setDefaultOptions=function(t){var e=void 0,n=!0;"boolean"==typeof t?(n=t,e=arguments[1]||{}):e=t,e&&(this.defaultOption=Object(i.a)(n,this.defaultOption||{},e))},e.prototype.getOptions=function(){for(var t=[{},this.defaultOption||{}],e=!0,n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];return"boolean"==typeof o[0]&&(e=o[0],o.splice(0,1)),o&&o.length>0&&(t=t.concat(o)),i.a.apply(void 0,[e].concat(t))},e.prototype.preload=function(){var t=this;return new Promise(function(e,n){e(t)})},e}(s)},qxno:function(t,e){},"sL/4":function(t,e,n){"use strict";var i=n("MEnT");e.a=function t(e){var n=e;n&&n.scrollHeight-n.offsetHeight<50&&(n=n!==window?t(Object(i.a)(n)):null),n===window&&(document.body.scrollHeight||document.documentElement.scrollHeight)-window.innerHeight<30&&(n=null);return n}},shrL:function(t,e,n){"use strict";e.a=function(t,e){if(t=Object(i.a)(((t||"")+"").replace(/\s+/g,"")),!e&&a[t])return a[t];if(!e&&t in r)return t;for(var n=Object(o.a)(t),c=0;c<s.length;c++){var l=s[c],u=l+n;if(u in r)return s=[l],a[t]=u,e?l:u}return e?"":t};var i=n("lXuC"),o=n("0Zk/"),r=document.createElement("div").style,s=["Moz","webkit","O","ms"],a={}},yY2C:function(t,e,n){"use strict";e.a=function(t,e,n,i){var o=null,r=0;return function(){for(var s=arguments.length,a=Array(s),c=0;c<s;c++)a[c]=arguments[c];if(o){if(i)return;clearTimeout(o),o=null}var l=Date.now()-r;function u(){r=Date.now(),o=!1,t.apply(n,a)}i&&l>=e?u():o=setTimeout(u,e)}}},zagf:function(t,e,n){"use strict";e.a=function(t,e,n){var i=t;t instanceof Function&&(i=t.apply(n,e));return i}}});