Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hc-sticky

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hc-sticky - npm Package Compare versions

Comparing version 2.1.6 to 2.1.7

2

bower.json
{
"name": "hc-sticky",
"version": "2.1.6",
"version": "2.1.7",
"description": "Cross-browser plugin that makes any element on your page visible while you scroll",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/somewebmedia/hc-sticky",

@@ -1,1 +0,1 @@

!function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){var f="function"==typeof require&&require;if(!a&&f)return f(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=n[s]={exports:{}};e[s][0].call(u.exports,function(t){var n=e[s][1][t];return o(n||t)},u,u.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){(function(e,n,r,o,i,s,a,f,u){"use strict";new(t("../../dist/hc-sticky.js"))("aside",{stickTo:"main",queries:{980:{disable:!0}}})}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_e195a76d.js","/")},{"../../dist/hc-sticky.js":2,buffer:4,rH1JPG:6}],2:[function(t,e,n){(function(t,n,r,o,i,s,a,f,u){!function(t,n){"use strict";if("object"==typeof e&&"object"==typeof e.exports){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");e.exports=n(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],n(t)):n(t)}("undefined"!=typeof window?window:this,function(t){"use strict";var e={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,queries:null,queryFlow:"down",onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1},n=t.document,r=function(o,i){if("string"==typeof o&&(o=n.querySelector(o)),!o)return!1;var s={},a=r.Helpers,f=o.parentNode;"static"===a.getStyle(f,"position")&&(f.style.position="relative");var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.isEmptyObject(t)&&!a.isEmptyObject(s)||(s=Object.assign({},e,s,t))},l=function(){return s.disable},c=function(){if(s.queries){var n=t.innerWidth,r=s.queryFlow,o=s.queries;if(function(t){s=Object.assign({},e,t||{})}(i),"up"===r)for(var f in o)n>=f&&!a.isEmptyObject(o[f])&&u(o[f]);else{var l=[];for(var c in s.queries){var d={};d[c]=o[c],l.push(d)}for(var h=l.length-1;h>=0;h--){var p=l[h],g=Object.keys(p)[0];n<=g&&!a.isEmptyObject(p[g])&&u(p[g])}}}},d={css:{},position:null,stick:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.hasClass(o,s.stickyClass)||(!1===h.isAttached&&h.attach(),d.position="fixed",o.style.position="fixed",o.style.left=h.offsetLeft+"px",o.style.width=h.width,void 0===t.bottom?o.style.bottom="auto":o.style.bottom=t.bottom+"px",void 0===t.top?o.style.top="auto":o.style.top=t.top+"px",o.classList?o.classList.add(s.stickyClass):o.className+=" "+s.stickyClass,s.onStart&&s.onStart.call(o,s))},release:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.stop=t.stop||!1,!0===t.stop||"fixed"===d.position||null===d.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(a.getStyle(o,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(a.getStyle(o,"bottom"))||0)===t.bottom)){!0===t.stop?!0===h.isAttached&&h.detach():!1===h.isAttached&&h.attach();var e=t.position||d.css.position;d.position=e,o.style.position=e,o.style.left=!0===t.stop?d.css.left:h.positionLeft+"px",o.style.width="absolute"!==e?d.css.width:h.width,void 0===t.bottom?o.style.bottom=!0===t.stop?"":"auto":o.style.bottom=t.bottom+"px",void 0===t.top?o.style.top=!0===t.stop?"":"auto":o.style.top=t.top+"px",o.classList?o.classList.remove(s.stickyClass):o.className=o.className.replace(new RegExp("(^|\\b)"+s.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),s.onStop&&s.onStop.call(o,s)}}},h={el:n.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in d.css)h.el.style[t]=d.css[t];var e=a.getStyle(o);h.offsetLeft=a.offset(o).left-(parseInt(e.marginLeft)||0),h.positionLeft=a.position(o).left,h.width=a.getStyle(o,"width")},attach:function(){f.insertBefore(h.el,o.nextSibling),h.isAttached=!0},detach:function(){h.el=f.removeChild(h.el),h.isAttached=!1}},p=void 0,g=void 0,y=void 0,v=void 0,b=void 0,m=void 0,w=void 0,E=void 0,I=void 0,L=void 0,S=void 0,B=void 0,A=void 0,k=void 0,T=void 0,x=void 0,C=void 0,U=void 0,N=t.pageYOffset||n.documentElement.scrollTop,j=0,_=void 0,M=function(){T=U(),v=C(),A=b+v-E-S,k=T>w;var e=t.pageYOffset||n.documentElement.scrollTop,r=Math.round(a.offset(o).top),i=r-e,u=void 0;_=e<N?"up":"down",j=e-N,N=e,e>B?A+E+(k?I:0)-(s.followScroll&&k?0:E)<=e+T-L-(T-L>w-(B-L)&&s.followScroll&&(u=T-w-L)>0?u:0)?d.release({position:"absolute",bottom:m+f.offsetHeight-A-E}):k&&s.followScroll?"down"===_?i+T+I<=w?d.stick({bottom:I}):"fixed"===d.position&&d.release({position:"absolute",top:r-E-B-j+L}):i+L<0&&"fixed"===d.position?d.release({position:"absolute",top:r-E-B+L-j}):r>=e+E-L&&d.stick({top:E-L}):d.stick({top:E-L}):d.release({stop:!0})},O=!1,H=!1,F=function(){O&&(a.event.unbind(t,"scroll",M),O=!1)},z=function(){d.css=function(t){var e=a.getCascadedStyle(t),n=a.getStyle(t),r={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:n.position,display:n.display,verticalAlign:n.verticalAlign,boxSizing:n.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight};return e.float&&(r.float=e.float||"none"),e.cssFloat&&(r.cssFloat=e.cssFloat||"none"),n.MozBoxSizing&&(r.MozBoxSizing=n.MozBoxSizing),r.width="auto"!==e.width?e.width:"border-box"===r.boxSizing||"border-box"===r.MozBoxSizing?t.offsetWidth+"px":n.width,r}(o),h.init(),p=!(!s.stickTo||!("document"===s.stickTo||s.stickTo.nodeType&&9===s.stickTo.nodeType||"object"==typeof s.stickTo&&s.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),g=s.stickTo?p?n:"string"==typeof s.stickTo?n.querySelector(s.stickTo):s.stickTo:f,T=(U=function(){var t=o.offsetHeight+(parseInt(d.css.marginTop)||0)+(parseInt(d.css.marginBottom)||0),e=(T||0)-t;return e>=-1&&e<=1?T:t})(),v=(C=function(){return p?Math.max(n.documentElement.clientHeight,n.body.scrollHeight,n.documentElement.scrollHeight,n.body.offsetHeight,n.documentElement.offsetHeight):g.offsetHeight})(),b=p?0:a.offset(g).top,m=s.stickTo?p?0:a.offset(f).top:b,w=t.innerHeight,x=o.offsetTop-(parseInt(d.css.marginTop)||0),y=s.innerSticker?"string"==typeof s.innerSticker?n.querySelector(s.innerSticker):s.innerSticker:null,E=isNaN(s.top)&&s.top.indexOf("%")>-1?parseFloat(s.top)/100*w:s.top,I=isNaN(s.bottom)&&s.bottom.indexOf("%")>-1?parseFloat(s.bottom)/100*w:s.bottom,L=y?y.offsetTop:s.innerTop?s.innerTop:0,S=isNaN(s.bottomEnd)&&s.bottomEnd.indexOf("%")>-1?parseFloat(s.bottomEnd)/100*w:s.bottomEnd,B=b-E+L+x,T>=v?F():(M(),O||(a.event.bind(t,"scroll",M),O=!0))},P=function(){o.style.position="",o.style.left="",o.style.top="",o.style.bottom="",o.style.width="",o.classList?o.classList.remove(s.stickyClass):o.className=o.className.replace(new RegExp("(^|\\b)"+s.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),d.css={},d.position=null,!0===h.isAttached&&h.detach()},D=function(){P(),c(),l()?F():z()},R=function(){s.onBeforeResize&&s.onBeforeResize.call(o,s),D(),s.onResize&&s.onResize.call(o,s)},q=s.resizeDebounce?a.debounce(R,s.resizeDebounce):R,J=function(){H&&(a.event.unbind(t,"resize",q),H=!1),F()},G=function(){H||(a.event.bind(t,"resize",q),H=!0),c(),l()?F():z()};this.options=function(t){return t?s.option||null:Object.assign({},s)},this.reinit=D,this.update=function(t){u(t),i=Object.assign({},i,t||{}),D()},this.attach=G,this.detach=J,this.destroy=function(){J(),P()},u(i),G(),a.event.bind(t,"load",D)};if(void 0!==t.jQuery){var o=t.jQuery;o.fn.extend({hcSticky:function(t){return this.length?this.each(function(){var e=o.data(this,"hcSticky");e?e.update(t):(e=new r(this,t),o.data(this,"hcSticky",e))}):this}})}return t.hcSticky=t.hcSticky||r,r}),function(t){"use strict";var e=t.hcSticky,n=t.document;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),o=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(e=arguments[1]),n=0;n<o;){var i;n in r&&(i=r[n],t.call(e,i,n,r)),n++}});var r=function(){function e(e){var n=t.event;return n.target=n.target||n.srcElement||e,n}var r=n.documentElement,o=function(){};r.addEventListener?o=function(t,e,n){t.addEventListener(e,n,!1)}:r.attachEvent&&(o=function(t,n,r){t[n+r]=r.handleEvent?function(){var n=e(t);r.handleEvent.call(r,n)}:function(){var n=e(t);r.call(t,n)},t.attachEvent("on"+n,t[n+r])});var i=function(){};return r.removeEventListener?i=function(t,e,n){t.removeEventListener(e,n,!1)}:r.detachEvent&&(i=function(t,e,n){t.detachEvent("on"+e,t[e+n]);try{delete t[e+n]}catch(r){t[e+n]=void 0}}),{bind:o,unbind:i}}(),o=function(e,r){return t.getComputedStyle?r?n.defaultView.getComputedStyle(e,null).getPropertyValue(r):n.defaultView.getComputedStyle(e,null):e.currentStyle?r?e.currentStyle[r.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:e.currentStyle:void 0},i=function(e){var r=e.getBoundingClientRect(),o=t.pageYOffset||n.documentElement.scrollTop,i=t.pageXOffset||n.documentElement.scrollLeft;return{top:r.top+o,left:r.left+i}};e.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(t,e,n){var r=void 0;return function(){var o=this,i=arguments,s=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(o,i)},e),s&&t.apply(o,i)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:i,position:function(t){var e=t.offsetParent,n=i(e),r=i(t),s=o(e),a=o(t);return n.top+=parseInt(s.borderTopWidth)||0,n.left+=parseInt(s.borderLeftWidth)||0,{top:r.top-n.top-(parseInt(a.marginTop)||0),left:r.left-n.left-(parseInt(a.marginLeft)||0)}},getStyle:o,getCascadedStyle:function(e){var r=e.cloneNode(!0);r.style.display="none",Array.prototype.slice.call(r.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),e.parentNode.insertBefore(r,e.nextSibling);var o=void 0;r.currentStyle?o=r.currentStyle:t.getComputedStyle&&(o=n.defaultView.getComputedStyle(r,null));var i={};for(var s in o)!isNaN(s)||"string"!=typeof o[s]&&"number"!=typeof o[s]||(i[s]=o[s]);if(Object.keys(i).length<3){i={};for(var a in o)isNaN(a)||(i[o[a].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=o.getPropertyValue(o[a]))}if(i.margin||"auto"!==i.marginLeft?i.margin||i.marginLeft!==i.marginRight||i.marginLeft!==i.marginTop||i.marginLeft!==i.marginBottom||(i.margin=i.marginLeft):i.margin="auto",!i.margin&&"0px"===i.marginLeft&&"0px"===i.marginRight){var f=e.offsetLeft-e.parentNode.offsetLeft,u=f-(parseInt(i.left)||0)-(parseInt(i.right)||0),l=e.parentNode.offsetWidth-e.offsetWidth-f-(parseInt(i.right)||0)+(parseInt(i.left)||0)-u;0!==l&&1!==l||(i.margin="auto")}return r.parentNode.removeChild(r),r=null,i},event:r}}(window)}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../dist/hc-sticky.js","/../../dist")},{buffer:4,rH1JPG:6}],3:[function(t,e,n){(function(t,e,r,o,i,s,a,f,u){var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===r||e===f?62:e===o||e===u?63:e<i?-1:e<i+10?e-i+26+26:e<a+26?e-a:e<s+26?e-s+26:void 0}var n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="+".charCodeAt(0),o="/".charCodeAt(0),i="0".charCodeAt(0),s="a".charCodeAt(0),a="A".charCodeAt(0),f="-".charCodeAt(0),u="_".charCodeAt(0);t.toByteArray=function(t){function r(t){u[c++]=t}var o,i,s,a,f,u;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=t.length;f="="===t.charAt(l-2)?2:"="===t.charAt(l-1)?1:0,u=new n(3*t.length/4-f),s=f>0?t.length-4:t.length;var c=0;for(o=0,i=0;o<s;o+=4,i+=3)r((16711680&(a=e(t.charAt(o))<<18|e(t.charAt(o+1))<<12|e(t.charAt(o+2))<<6|e(t.charAt(o+3))))>>16),r((65280&a)>>8),r(255&a);return 2===f?r(255&(a=e(t.charAt(o))<<2|e(t.charAt(o+1))>>4)):1===f&&(r((a=e(t.charAt(o))<<10|e(t.charAt(o+1))<<4|e(t.charAt(o+2))>>2)>>8&255),r(255&a)),u},t.fromByteArray=function(t){function e(t){return l.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var r,o,i,s=t.length%3,a="";for(r=0,i=t.length-s;r<i;r+=3)a+=n(o=(t[r]<<16)+(t[r+1]<<8)+t[r+2]);switch(s){case 1:a+=e((o=t[t.length-1])>>2),a+=e(o<<4&63),a+="==";break;case 2:a+=e((o=(t[t.length-2]<<8)+t[t.length-1])>>10),a+=e(o>>4&63),a+=e(o<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/base64-js/lib/b64.js","/../../node_modules/base64-js/lib")},{buffer:4,rH1JPG:6}],4:[function(t,e,n){(function(e,r,o,i,s,a,f,u,l){function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);var r=typeof t;if("base64"===e&&"string"===r)for(t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t);t.length%4!=0;)t+="=";var i;if("number"===r)i=A(t);else if("string"===r)i=o.byteLength(t,e);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=A(t.length)}var s;o._useTypedArrays?s=o._augment(new Uint8Array(i)):((s=this).length=i,s._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof t.byteLength)s._set(t);else if(function(t){return k(t)||o.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}(t))for(a=0;a<i;a++)o.isBuffer(t)?s[a]=t.readUInt8(a):s[a]=t[a];else if("string"===r)s.write(t,0,e);else if("number"===r&&!o._useTypedArrays&&!n)for(a=0;a<i;a++)s[a]=0;return s}function c(t,e,n,r){return o._charsWritten=U(function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function d(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;o++)r+=String.fromCharCode(t[o]);return r}function h(t,e,n,r){r||(O("boolean"==typeof n,"missing or invalid endian"),O(void 0!==e&&null!==e,"missing offset"),O(e+1<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(i=t[e],e+1<o&&(i|=t[e+1]<<8)):(i=t[e]<<8,e+1<o&&(i|=t[e+1])),i}}function p(t,e,n,r){r||(O("boolean"==typeof n,"missing or invalid endian"),O(void 0!==e&&null!==e,"missing offset"),O(e+3<t.length,"Trying to read beyond buffer length"));var o=t.length;if(!(e>=o)){var i;return n?(e+2<o&&(i=t[e+2]<<16),e+1<o&&(i|=t[e+1]<<8),i|=t[e],e+3<o&&(i+=t[e+3]<<24>>>0)):(e+1<o&&(i=t[e+1]<<16),e+2<o&&(i|=t[e+2]<<8),e+3<o&&(i|=t[e+3]),i+=t[e]<<24>>>0),i}}function g(t,e,n,r){r||(O("boolean"==typeof n,"missing or invalid endian"),O(void 0!==e&&null!==e,"missing offset"),O(e+1<t.length,"Trying to read beyond buffer length"));if(!(e>=t.length)){var o=h(t,e,n,!0);return 32768&o?-1*(65535-o+1):o}}function y(t,e,n,r){r||(O("boolean"==typeof n,"missing or invalid endian"),O(void 0!==e&&null!==e,"missing offset"),O(e+3<t.length,"Trying to read beyond buffer length"));if(!(e>=t.length)){var o=p(t,e,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function v(t,e,n,r){return r||(O("boolean"==typeof n,"missing or invalid endian"),O(e+3<t.length,"Trying to read beyond buffer length")),F.read(t,e,n,23,4)}function b(t,e,n,r){return r||(O("boolean"==typeof n,"missing or invalid endian"),O(e+7<t.length,"Trying to read beyond buffer length")),F.read(t,e,n,52,8)}function m(t,e,n,r,o){o||(O(void 0!==e&&null!==e,"missing value"),O("boolean"==typeof r,"missing or invalid endian"),O(void 0!==n&&null!==n,"missing offset"),O(n+1<t.length,"trying to write beyond buffer length"),j(e,65535));var i=t.length;if(!(n>=i))for(var s=0,a=Math.min(i-n,2);s<a;s++)t[n+s]=(e&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function w(t,e,n,r,o){o||(O(void 0!==e&&null!==e,"missing value"),O("boolean"==typeof r,"missing or invalid endian"),O(void 0!==n&&null!==n,"missing offset"),O(n+3<t.length,"trying to write beyond buffer length"),j(e,4294967295));var i=t.length;if(!(n>=i))for(var s=0,a=Math.min(i-n,4);s<a;s++)t[n+s]=e>>>8*(r?s:3-s)&255}function E(t,e,n,r,o){o||(O(void 0!==e&&null!==e,"missing value"),O("boolean"==typeof r,"missing or invalid endian"),O(void 0!==n&&null!==n,"missing offset"),O(n+1<t.length,"Trying to write beyond buffer length"),_(e,32767,-32768));n>=t.length||(e>=0?m(t,e,n,r,o):m(t,65535+e+1,n,r,o))}function I(t,e,n,r,o){o||(O(void 0!==e&&null!==e,"missing value"),O("boolean"==typeof r,"missing or invalid endian"),O(void 0!==n&&null!==n,"missing offset"),O(n+3<t.length,"Trying to write beyond buffer length"),_(e,2147483647,-2147483648));n>=t.length||(e>=0?w(t,e,n,r,o):w(t,4294967295+e+1,n,r,o))}function L(t,e,n,r,o){o||(O(void 0!==e&&null!==e,"missing value"),O("boolean"==typeof r,"missing or invalid endian"),O(void 0!==n&&null!==n,"missing offset"),O(n+3<t.length,"Trying to write beyond buffer length"),M(e,3.4028234663852886e38,-3.4028234663852886e38));n>=t.length||F.write(t,e,n,r,23,4)}function S(t,e,n,r,o){o||(O(void 0!==e&&null!==e,"missing value"),O("boolean"==typeof r,"missing or invalid endian"),O(void 0!==n&&null!==n,"missing offset"),O(n+7<t.length,"Trying to write beyond buffer length"),M(e,1.7976931348623157e308,-1.7976931348623157e308));n>=t.length||F.write(t,e,n,r,52,8)}function B(t,e,n){return"number"!=typeof t?n:(t=~~t)>=e?e:t>=0?t:(t+=e)>=0?t:0}function A(t){return(t=~~Math.ceil(+t))<0?0:t}function k(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function T(t){return t<16?"0"+t.toString(16):t.toString(16)}function x(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(t.charCodeAt(n));else{var o=n;r>=55296&&r<=57343&&n++;for(var i=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),s=0;s<i.length;s++)e.push(parseInt(i[s],16))}}return e}function C(t){return H.toByteArray(t)}function U(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function N(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function j(t,e){O("number"==typeof t,"cannot write a non-number as a number"),O(t>=0,"specified a negative value for writing an unsigned value"),O(t<=e,"value is larger than maximum value for type"),O(Math.floor(t)===t,"value has a fractional component")}function _(t,e,n){O("number"==typeof t,"cannot write a non-number as a number"),O(t<=e,"value larger than maximum allowed value"),O(t>=n,"value smaller than minimum allowed value"),O(Math.floor(t)===t,"value has a fractional component")}function M(t,e,n){O("number"==typeof t,"cannot write a non-number as a number"),O(t<=e,"value larger than maximum allowed value"),O(t>=n,"value smaller than minimum allowed value")}function O(t,e){if(!t)throw new Error(e||"Failed assertion")}var H=t("base64-js"),F=t("ieee754");n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(t){return!(null===t||void 0===t||!t._isBuffer)},o.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=x(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=C(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(t,e){if(O(k(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new o(0);if(1===t.length)return t[0];var n;if("number"!=typeof e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var r=new o(e),i=0;for(n=0;n<t.length;n++){var s=t[n];s.copy(r,i),i+=s.length}return r},o.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var i=r;r=e,e=n,n=i}e=Number(e)||0;var s=this.length-e;n?(n=Number(n))>s&&(n=s):n=s;var a;switch(r=String(r||"utf8").toLowerCase()){case"hex":a=function(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var s=e.length;O(s%2==0,"Invalid hex string"),r>s/2&&(r=s/2);for(var a=0;a<r;a++){var f=parseInt(e.substr(2*a,2),16);O(!isNaN(f),"Invalid hex string"),t[n+a]=f}return o._charsWritten=2*a,a}(this,t,e,n);break;case"utf8":case"utf-8":a=function(t,e,n,r){return o._charsWritten=U(x(e),t,n,r)}(this,t,e,n);break;case"ascii":a=c(this,t,e,n);break;case"binary":a=function(t,e,n,r){return c(t,e,n,r)}(this,t,e,n);break;case"base64":a=function(t,e,n,r){return o._charsWritten=U(C(e),t,n,r)}(this,t,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=function(t,e,n,r){return o._charsWritten=U(function(t){for(var e,n,r,o=[],i=0;i<t.length;i++)e=t.charCodeAt(i),n=e>>8,r=e%256,o.push(r),o.push(n);return o}(e),t,n,r)}(this,t,e,n);break;default:throw new Error("Unknown encoding")}return a},o.prototype.toString=function(t,e,n){if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):n=this.length)===e)return"";var r;switch(t){case"hex":r=function(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;i++)o+=T(t[i]);return o}(this,e,n);break;case"utf8":case"utf-8":r=function(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var i=e;i<n;i++)t[i]<=127?(r+=N(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return r+N(o)}(this,e,n);break;case"ascii":r=d(this,e,n);break;case"binary":r=function(t,e,n){return d(t,e,n)}(this,e,n);break;case"base64":r=function(t,e,n){return 0===e&&n===t.length?H.fromByteArray(t):H.fromByteArray(t.slice(e,n))}(this,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(this,e,n);break;default:throw new Error("Unknown encoding")}return r},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e||(e=0),r!==n&&0!==t.length&&0!==this.length){O(r>=n,"sourceEnd < sourceStart"),O(e>=0&&e<t.length,"targetStart out of bounds"),O(n>=0&&n<this.length,"sourceStart out of bounds"),O(r>=0&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i=r-n;if(i<100||!o._useTypedArrays)for(var s=0;s<i;s++)t[s+e]=this[s+n];else t._set(this.subarray(n,n+i),e)}},o.prototype.slice=function(t,e){var n=this.length;if(t=B(t,n,0),e=B(e,n,n),o._useTypedArrays)return o._augment(this.subarray(t,e));for(var r=e-t,i=new o(r,void 0,!0),s=0;s<r;s++)i[s]=this[s+t];return i},o.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},o.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},o.prototype.readUInt8=function(t,e){if(e||(O(void 0!==t&&null!==t,"missing offset"),O(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return this[t]},o.prototype.readUInt16LE=function(t,e){return h(this,t,!0,e)},o.prototype.readUInt16BE=function(t,e){return h(this,t,!1,e)},o.prototype.readUInt32LE=function(t,e){return p(this,t,!0,e)},o.prototype.readUInt32BE=function(t,e){return p(this,t,!1,e)},o.prototype.readInt8=function(t,e){if(e||(O(void 0!==t&&null!==t,"missing offset"),O(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length)){return 128&this[t]?-1*(255-this[t]+1):this[t]}},o.prototype.readInt16LE=function(t,e){return g(this,t,!0,e)},o.prototype.readInt16BE=function(t,e){return g(this,t,!1,e)},o.prototype.readInt32LE=function(t,e){return y(this,t,!0,e)},o.prototype.readInt32BE=function(t,e){return y(this,t,!1,e)},o.prototype.readFloatLE=function(t,e){return v(this,t,!0,e)},o.prototype.readFloatBE=function(t,e){return v(this,t,!1,e)},o.prototype.readDoubleLE=function(t,e){return b(this,t,!0,e)},o.prototype.readDoubleBE=function(t,e){return b(this,t,!1,e)},o.prototype.writeUInt8=function(t,e,n){n||(O(void 0!==t&&null!==t,"missing value"),O(void 0!==e&&null!==e,"missing offset"),O(e<this.length,"trying to write beyond buffer length"),j(t,255)),e>=this.length||(this[e]=t)},o.prototype.writeUInt16LE=function(t,e,n){m(this,t,e,!0,n)},o.prototype.writeUInt16BE=function(t,e,n){m(this,t,e,!1,n)},o.prototype.writeUInt32LE=function(t,e,n){w(this,t,e,!0,n)},o.prototype.writeUInt32BE=function(t,e,n){w(this,t,e,!1,n)},o.prototype.writeInt8=function(t,e,n){n||(O(void 0!==t&&null!==t,"missing value"),O(void 0!==e&&null!==e,"missing offset"),O(e<this.length,"Trying to write beyond buffer length"),_(t,127,-128)),e>=this.length||(t>=0?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},o.prototype.writeInt16LE=function(t,e,n){E(this,t,e,!0,n)},o.prototype.writeInt16BE=function(t,e,n){E(this,t,e,!1,n)},o.prototype.writeInt32LE=function(t,e,n){I(this,t,e,!0,n)},o.prototype.writeInt32BE=function(t,e,n){I(this,t,e,!1,n)},o.prototype.writeFloatLE=function(t,e,n){L(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){L(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){S(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){S(this,t,e,!1,n)},o.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),O("number"==typeof t&&!isNaN(t),"value is not a number"),O(n>=e,"end < start"),n!==e&&0!==this.length){O(e>=0&&e<this.length,"start out of bounds"),O(n>=0&&n<=this.length,"end out of bounds");for(var r=e;r<n;r++)this[r]=t}},o.prototype.inspect=function(){for(var t=[],e=this.length,r=0;r<e;r++)if(t[r]=T(this[r]),r===n.INSPECT_MAX_BYTES){t[r+1]="...";break}return"<Buffer "+t.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e<n;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var z=o.prototype;o._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=z.get,t.set=z.set,t.write=z.write,t.toString=z.toString,t.toLocaleString=z.toString,t.toJSON=z.toJSON,t.copy=z.copy,t.slice=z.slice,t.readUInt8=z.readUInt8,t.readUInt16LE=z.readUInt16LE,t.readUInt16BE=z.readUInt16BE,t.readUInt32LE=z.readUInt32LE,t.readUInt32BE=z.readUInt32BE,t.readInt8=z.readInt8,t.readInt16LE=z.readInt16LE,t.readInt16BE=z.readInt16BE,t.readInt32LE=z.readInt32LE,t.readInt32BE=z.readInt32BE,t.readFloatLE=z.readFloatLE,t.readFloatBE=z.readFloatBE,t.readDoubleLE=z.readDoubleLE,t.readDoubleBE=z.readDoubleBE,t.writeUInt8=z.writeUInt8,t.writeUInt16LE=z.writeUInt16LE,t.writeUInt16BE=z.writeUInt16BE,t.writeUInt32LE=z.writeUInt32LE,t.writeUInt32BE=z.writeUInt32BE,t.writeInt8=z.writeInt8,t.writeInt16LE=z.writeInt16LE,t.writeInt16BE=z.writeInt16BE,t.writeInt32LE=z.writeInt32LE,t.writeInt32BE=z.writeInt32BE,t.writeFloatLE=z.writeFloatLE,t.writeFloatBE=z.writeFloatBE,t.writeDoubleLE=z.writeDoubleLE,t.writeDoubleBE=z.writeDoubleBE,t.fill=z.fill,t.inspect=z.inspect,t.toArrayBuffer=z.toArrayBuffer,t}}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/buffer/index.js","/../../node_modules/buffer")},{"base64-js":3,buffer:4,ieee754:5,rH1JPG:6}],5:[function(t,e,n){(function(t,e,r,o,i,s,a,f,u){n.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,f=(1<<a)-1,u=f>>1,l=-7,c=n?o-1:0,d=n?-1:1,h=t[e+c];for(c+=d,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+t[e+c],c+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+t[e+c],c+=d,l-=8);if(0===i)i=1-u;else{if(i===f)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=u}return(h?-1:1)*s*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var s,a,f,u=8*i-o-1,l=(1<<u)-1,c=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),(e+=s+c>=1?d/f:d*Math.pow(2,1-c))*f>=2&&(s++,f/=2),s+c>=l?(a=0,s=l):s+c>=1?(a=(e*f-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[n+h]=255&a,h+=p,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[n+h]=255&s,h+=p,s/=256,u-=8);t[n+h-p]|=128*g}}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/ieee754/index.js","/../../node_modules/ieee754")},{buffer:4,rH1JPG:6}],6:[function(t,e,n){(function(t,n,r,o,i,s,a,f,u){function l(){}(t=e.exports={}).nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){n.shift()()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=l,t.addListener=l,t.once=l,t.off=l,t.removeListener=l,t.removeAllListeners=l,t.emit=l,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/process/browser.js","/../../node_modules/process")},{buffer:4,rH1JPG:6}]},{},[1]);
!function o(i,s,a){function f(n,t){if(!s[n]){if(!i[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(u)return u(n,!0);throw new Error("Cannot find module '"+n+"'")}var r=s[n]={exports:{}};i[n][0].call(r.exports,function(t){var e=i[n][1][t];return f(e||t)},r,r.exports,o,i,s,a)}return s[n].exports}for(var u="function"==typeof require&&require,t=0;t<a.length;t++)f(a[t]);return f}({1:[function(u,t,e){(function(t,e,n,r,o,i,s,a,f){"use strict";new(u("../../dist/hc-sticky.js"))("aside",{stickTo:"main",queries:{980:{disable:!0}}})}).call(this,u("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_54b52e06.js","/")},{"../../dist/hc-sticky.js":2,buffer:4,rH1JPG:6}],2:[function(t,u,e){(function(t,e,n,r,o,i,s,a,f){!function(t,e){"use strict";if("object"==typeof u&&"object"==typeof u.exports){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");u.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,function(R){"use strict";var q={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,queries:null,queryFlow:"down",onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1},J=R.document,G=function(o,c){if("string"==typeof o&&(o=J.querySelector(o)),!o)return!1;var d={},h=G.Helpers,i=o.parentNode;"static"===h.getStyle(i,"position")&&(i.style.position="relative");var p=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};h.isEmptyObject(t)&&!h.isEmptyObject(d)||(d=Object.assign({},q,d,t))},t=function(){return d.disable},e=function(){if(d.queries){var t=R.innerWidth,e=d.queryFlow,n=d.queries;if(l=c,d=Object.assign({},q,l||{}),"up"===e)for(var r in n)r<=t&&!h.isEmptyObject(n[r])&&p(n[r]);else{var o=[];for(var i in d.queries){var s={};s[i]=n[i],o.push(s)}for(var a=o.length-1;0<=a;a--){var f=o[a],u=Object.keys(f)[0];t<=u&&!h.isEmptyObject(f[u])&&p(f[u])}}}var l},s={css:{},position:null,stick:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};h.hasClass(o,d.stickyClass)||(!1===a.isAttached&&a.attach(),s.position="fixed",o.style.position="fixed",o.style.left=a.offsetLeft+"px",o.style.width=a.width,void 0===t.bottom?o.style.bottom="auto":o.style.bottom=t.bottom+"px",void 0===t.top?o.style.top="auto":o.style.top=t.top+"px",o.classList?o.classList.add(d.stickyClass):o.className+=" "+d.stickyClass,d.onStart&&d.onStart.call(o,d))},release:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(t.stop=t.stop||!1,!0===t.stop||"fixed"===s.position||null===s.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(h.getStyle(o,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(h.getStyle(o,"bottom"))||0)===t.bottom)){!0===t.stop?!0===a.isAttached&&a.detach():!1===a.isAttached&&a.attach();var e=t.position||s.css.position;s.position=e,o.style.position=e,o.style.left=!0===t.stop?s.css.left:a.positionLeft+"px",o.style.width="absolute"!==e?s.css.width:a.width,void 0===t.bottom?o.style.bottom=!0===t.stop?"":"auto":o.style.bottom=t.bottom+"px",void 0===t.top?o.style.top=!0===t.stop?"":"auto":o.style.top=t.top+"px",o.classList?o.classList.remove(d.stickyClass):o.className=o.className.replace(new RegExp("(^|\\b)"+d.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),d.onStop&&d.onStop.call(o,d)}}},a={el:J.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in s.css)a.el.style[t]=s.css[t];a.el.style["z-index"]="-1";var e=h.getStyle(o);a.offsetLeft=h.offset(o).left-(parseInt(e.marginLeft)||0),a.positionLeft=h.position(o).left,a.width=h.getStyle(o,"width")},attach:function(){i.insertBefore(a.el,o),a.isAttached=!0},detach:function(){a.el=i.removeChild(a.el),a.isAttached=!1}},f=void 0,u=void 0,l=void 0,g=void 0,y=void 0,b=void 0,m=void 0,v=void 0,w=void 0,E=void 0,I=void 0,L=void 0,S=void 0,B=void 0,A=void 0,k=void 0,T=void 0,x=void 0,C=R.pageYOffset||J.documentElement.scrollTop,U=0,N=void 0,j=function(){A=x(),g=T(),S=y+g-v-I,B=m<A;var t=R.pageYOffset||J.documentElement.scrollTop,e=Math.round(h.offset(o).top),n=e-t,r=void 0;N=t<C?"up":"down",U=t-C,L<(C=t)?S+v+(B?w:0)-(d.followScroll&&B?0:v)<=t+A-E-(m-(L-E)<A-E&&d.followScroll&&0<(r=A-m-E)?r:0)?s.release({position:"absolute",bottom:b+i.offsetHeight-S-v}):B&&d.followScroll?"down"===N?Math.floor(n+A+w)<=m?s.stick({bottom:w}):"fixed"===s.position&&s.release({position:"absolute",top:e-v-L-U+E}):Math.ceil(n+E)<0&&"fixed"===s.position?s.release({position:"absolute",top:e-v-L+E-U}):t+v-E<=e&&s.stick({top:v-E}):s.stick({top:v-E}):s.release({stop:!0})},_=!1,n=!1,M=function(){_&&(h.event.unbind(R,"scroll",j),_=!1)},r=function(){var t,e,n,r;null!==o.offsetParent&&"none"!==h.getStyle(o,"display")?(s.css=(t=o,e=h.getCascadedStyle(t),n=h.getStyle(t),r={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:n.position,display:n.display,verticalAlign:n.verticalAlign,boxSizing:n.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight},e.float&&(r.float=e.float||"none"),e.cssFloat&&(r.cssFloat=e.cssFloat||"none"),n.MozBoxSizing&&(r.MozBoxSizing=n.MozBoxSizing),r.width="auto"!==e.width?e.width:"border-box"===r.boxSizing||"border-box"===r.MozBoxSizing?t.offsetWidth+"px":n.width,r),a.init(),f=!(!d.stickTo||!("document"===d.stickTo||d.stickTo.nodeType&&9===d.stickTo.nodeType||"object"==typeof d.stickTo&&d.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),u=d.stickTo?f?J:"string"==typeof d.stickTo?J.querySelector(d.stickTo):d.stickTo:i,A=(x=function(){var t=o.offsetHeight+(parseInt(s.css.marginTop)||0)+(parseInt(s.css.marginBottom)||0),e=(A||0)-t;return-1<=e&&e<=1?A:t})(),g=(T=function(){return f?Math.max(J.documentElement.clientHeight,J.body.scrollHeight,J.documentElement.scrollHeight,J.body.offsetHeight,J.documentElement.offsetHeight):u.offsetHeight})(),y=f?0:h.offset(u).top,b=d.stickTo?f?0:h.offset(i).top:y,m=R.innerHeight,k=o.offsetTop-(parseInt(s.css.marginTop)||0),l=d.innerSticker?"string"==typeof d.innerSticker?J.querySelector(d.innerSticker):d.innerSticker:null,v=isNaN(d.top)&&-1<d.top.indexOf("%")?parseFloat(d.top)/100*m:d.top,w=isNaN(d.bottom)&&-1<d.bottom.indexOf("%")?parseFloat(d.bottom)/100*m:d.bottom,E=l?l.offsetTop:d.innerTop?d.innerTop:0,I=isNaN(d.bottomEnd)&&-1<d.bottomEnd.indexOf("%")?parseFloat(d.bottomEnd)/100*m:d.bottomEnd,L=y-v+E+k,g<=A?M():(j(),_||(h.event.bind(R,"scroll",j),_=!0))):M()},O=function(){o.style.position="",o.style.left="",o.style.top="",o.style.bottom="",o.style.width="",o.classList?o.classList.remove(d.stickyClass):o.className=o.className.replace(new RegExp("(^|\\b)"+d.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),s.css={},!(s.position=null)===a.isAttached&&a.detach()},H=function(){O(),e(),t()?M():r()},z=function(){d.onBeforeResize&&d.onBeforeResize.call(o,d),H(),d.onResize&&d.onResize.call(o,d)},F=d.resizeDebounce?h.debounce(z,d.resizeDebounce):z,P=function(){n&&(h.event.unbind(R,"resize",F),n=!1),M()},D=function(){n||(h.event.bind(R,"resize",F),n=!0),e(),t()?M():r()};this.options=function(t){return t?d.option||null:Object.assign({},d)},this.reinit=H,this.update=function(t){p(t),c=Object.assign({},c,t||{}),H()},this.attach=D,this.detach=P,this.destroy=function(){P(),O()},p(c),D(),h.event.bind(R,"load",H)};if(void 0!==R.jQuery){var r=R.jQuery;r.fn.extend({hcSticky:function(n){return this.length?this.each(function(){var t="hcSticky",e=r.data(this,t);e?e.update(n):(e=new G(this,n),r.data(this,t,e))}):this}})}return R.hcSticky=R.hcSticky||G,G}),function(u){"use strict";var t=u.hcSticky,l=u.document;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),o=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(e=arguments[1]),n=0;n<o;){var i;n in r&&(i=r[n],t.call(e,i,n,r)),n++}});var e=function(){var t=l.documentElement,e=function(){};function r(t){var e=u.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,n){t.addEventListener(e,n,!1)}:t.attachEvent&&(e=function(e,t,n){e[t+n]=n.handleEvent?function(){var t=r(e);n.handleEvent.call(n,t)}:function(){var t=r(e);n.call(e,t)},e.attachEvent("on"+t,e[t+n])});var n=function(){};return t.removeEventListener?n=function(t,e,n){t.removeEventListener(e,n,!1)}:t.detachEvent&&(n=function(e,n,r){e.detachEvent("on"+n,e[n+r]);try{delete e[n+r]}catch(t){e[n+r]=void 0}}),{bind:e,unbind:n}}(),s=function(t,e){return u.getComputedStyle?e?l.defaultView.getComputedStyle(t,null).getPropertyValue(e):l.defaultView.getComputedStyle(t,null):t.currentStyle?e?t.currentStyle[e.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:t.currentStyle:void 0},a=function(t){var e=t.getBoundingClientRect(),n=u.pageYOffset||l.documentElement.scrollTop,r=u.pageXOffset||l.documentElement.scrollLeft;return{top:e.top+n,left:e.left+r}};t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(r,o,i){var s=void 0;return function(){var t=this,e=arguments,n=i&&!s;clearTimeout(s),s=setTimeout(function(){s=null,i||r.apply(t,e)},o),n&&r.apply(t,e)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:a,position:function(t){var e=t.offsetParent,n=a(e),r=a(t),o=s(e),i=s(t);return n.top+=parseInt(o.borderTopWidth)||0,n.left+=parseInt(o.borderLeftWidth)||0,{top:r.top-n.top-(parseInt(i.marginTop)||0),left:r.left-n.left-(parseInt(i.marginLeft)||0)}},getStyle:s,getCascadedStyle:function(t){var e=t.cloneNode(!0);e.style.display="none",Array.prototype.slice.call(e.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(e,t.nextSibling);var n=void 0;e.currentStyle?n=e.currentStyle:u.getComputedStyle&&(n=l.defaultView.getComputedStyle(e,null));var r={};for(var o in n)!isNaN(o)||"string"!=typeof n[o]&&"number"!=typeof n[o]||(r[o]=n[o]);if(Object.keys(r).length<3)for(var i in r={},n)isNaN(i)||(r[n[i].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=n.getPropertyValue(n[i]));if(r.margin||"auto"!==r.marginLeft?r.margin||r.marginLeft!==r.marginRight||r.marginLeft!==r.marginTop||r.marginLeft!==r.marginBottom||(r.margin=r.marginLeft):r.margin="auto",!r.margin&&"0px"===r.marginLeft&&"0px"===r.marginRight){var s=t.offsetLeft-t.parentNode.offsetLeft,a=s-(parseInt(r.left)||0)-(parseInt(r.right)||0),f=t.parentNode.offsetWidth-t.offsetWidth-s-(parseInt(r.right)||0)+(parseInt(r.left)||0)-a;0!==f&&1!==f||(r.margin="auto")}return e.parentNode.removeChild(e),e=null,r},event:e}}(window)}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../dist/hc-sticky.js","/../../dist")},{buffer:4,rH1JPG:6}],3:[function(t,e,u){(function(t,e,n,r,o,i,s,a,f){!function(t){"use strict";var l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),s="A".charCodeAt(0),a="-".charCodeAt(0),f="_".charCodeAt(0);function c(t){var e=t.charCodeAt(0);return e===n||e===a?62:e===r||e===f?63:e<o?-1:e<o+10?e-o+26+26:e<s+26?e-s:e<i+26?e-i+26:void 0}t.toByteArray=function(t){var e,n,r,o,i,s;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var a=t.length;i="="===t.charAt(a-2)?2:"="===t.charAt(a-1)?1:0,s=new l(3*t.length/4-i),r=0<i?t.length-4:t.length;var f=0;function u(t){s[f++]=t}for(n=e=0;e<r;e+=4,n+=3)u((16711680&(o=c(t.charAt(e))<<18|c(t.charAt(e+1))<<12|c(t.charAt(e+2))<<6|c(t.charAt(e+3))))>>16),u((65280&o)>>8),u(255&o);return 2===i?u(255&(o=c(t.charAt(e))<<2|c(t.charAt(e+1))>>4)):1===i&&(u((o=c(t.charAt(e))<<10|c(t.charAt(e+1))<<4|c(t.charAt(e+2))>>2)>>8&255),u(255&o)),s},t.fromByteArray=function(t){var e,n,r,o,i=t.length%3,s="";function a(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-i;e<r;e+=3)n=(t[e]<<16)+(t[e+1]<<8)+t[e+2],s+=a((o=n)>>18&63)+a(o>>12&63)+a(o>>6&63)+a(63&o);switch(i){case 1:s+=a((n=t[t.length-1])>>2),s+=a(n<<4&63),s+="==";break;case 2:s+=a((n=(t[t.length-2]<<8)+t[t.length-1])>>10),s+=a(n>>4&63),s+=a(n<<2&63),s+="="}return s}}(void 0===u?this.base64js={}:u)}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/base64-js/lib/b64.js","/../../node_modules/base64-js/lib")},{buffer:4,rH1JPG:6}],4:[function(z,t,F){(function(t,e,y,n,r,o,i,s,a){var f=z("base64-js"),u=z("ieee754");function y(t,e,n){if(!(this instanceof y))return new y(t,e,n);var r,o,i,s,a,f=typeof t;if("base64"===e&&"string"===f)for(t=(r=t).trim?r.trim():r.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"===f)o=k(t);else if("string"===f)o=y.byteLength(t,e);else{if("object"!==f)throw new Error("First argument needs to be a number, array or string.");o=k(t.length)}if(y._useTypedArrays?i=y._augment(new Uint8Array(o)):((i=this).length=o,i._isBuffer=!0),y._useTypedArrays&&"number"==typeof t.byteLength)i._set(t);else if(T(a=t)||y.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(s=0;s<o;s++)y.isBuffer(t)?i[s]=t.readUInt8(s):i[s]=t[s];else if("string"===f)i.write(t,0,e);else if("number"===f&&!y._useTypedArrays&&!n)for(s=0;s<o;s++)i[s]=0;return i}function b(t,e,n,r){return y._charsWritten=N(function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function l(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;o++)r+=String.fromCharCode(t[o]);return r}function c(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(null!=e,"missing offset"),H(e+1<t.length,"Trying to read beyond buffer length"));var o,i=t.length;if(!(i<=e))return n?(o=t[e],e+1<i&&(o|=t[e+1]<<8)):(o=t[e]<<8,e+1<i&&(o|=t[e+1])),o}function d(t,e,n,r){r||(H("boolean"==typeof n,"missing or invalid endian"),H(null!=e,"missing offset"),H(e+3<t.length,"Trying to read beyond buffer length"));var o,i=t.length;if(!(i<=e))return n?(e+2<i&&(o=t[e+2]<<16),e+1<i&&(o|=t[e+1]<<8),o|=t[e],e+3<i&&(o+=t[e+3]<<24>>>0)):(e+1<i&&(o=t[e+1]<<16),e+2<i&&(o|=t[e+2]<<8),e+3<i&&(o|=t[e+3]),o+=t[e]<<24>>>0),o}function h(t,e,n,r){if(r||(H("boolean"==typeof n,"missing or invalid endian"),H(null!=e,"missing offset"),H(e+1<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var o=c(t,e,n,!0);return 32768&o?-1*(65535-o+1):o}}function p(t,e,n,r){if(r||(H("boolean"==typeof n,"missing or invalid endian"),H(null!=e,"missing offset"),H(e+3<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){var o=d(t,e,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function g(t,e,n,r){return r||(H("boolean"==typeof n,"missing or invalid endian"),H(e+3<t.length,"Trying to read beyond buffer length")),u.read(t,e,n,23,4)}function m(t,e,n,r){return r||(H("boolean"==typeof n,"missing or invalid endian"),H(e+7<t.length,"Trying to read beyond buffer length")),u.read(t,e,n,52,8)}function v(t,e,n,r,o){o||(H(null!=e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+1<t.length,"trying to write beyond buffer length"),_(e,65535));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,2);s<a;s++)t[n+s]=(e&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function w(t,e,n,r,o){o||(H(null!=e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+3<t.length,"trying to write beyond buffer length"),_(e,4294967295));var i=t.length;if(!(i<=n))for(var s=0,a=Math.min(i-n,4);s<a;s++)t[n+s]=e>>>8*(r?s:3-s)&255}function E(t,e,n,r,o){o||(H(null!=e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+1<t.length,"Trying to write beyond buffer length"),M(e,32767,-32768)),t.length<=n||v(t,0<=e?e:65535+e+1,n,r,o)}function I(t,e,n,r,o){o||(H(null!=e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+3<t.length,"Trying to write beyond buffer length"),M(e,2147483647,-2147483648)),t.length<=n||w(t,0<=e?e:4294967295+e+1,n,r,o)}function L(t,e,n,r,o){o||(H(null!=e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+3<t.length,"Trying to write beyond buffer length"),O(e,34028234663852886e22,-34028234663852886e22)),t.length<=n||u.write(t,e,n,r,23,4)}function S(t,e,n,r,o){o||(H(null!=e,"missing value"),H("boolean"==typeof r,"missing or invalid endian"),H(null!=n,"missing offset"),H(n+7<t.length,"Trying to write beyond buffer length"),O(e,17976931348623157e292,-17976931348623157e292)),t.length<=n||u.write(t,e,n,r,52,8)}F.Buffer=y,F.SlowBuffer=y,F.INSPECT_MAX_BYTES=50,y.poolSize=8192,y._useTypedArrays=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),y.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.isBuffer=function(t){return!(null==t||!t._isBuffer)},y.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=C(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=U(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},y.concat=function(t,e){if(H(T(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new y(0);if(1===t.length)return t[0];var n;if("number"!=typeof e)for(n=e=0;n<t.length;n++)e+=t[n].length;var r=new y(e),o=0;for(n=0;n<t.length;n++){var i=t[n];i.copy(r,o),o+=i.length}return r},y.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var o=r;r=e,e=n,n=o}e=Number(e)||0;var i,s,a,f,u,l,c,d,h,p,g=this.length-e;switch(n?g<(n=Number(n))&&(n=g):n=g,r=String(r||"utf8").toLowerCase()){case"hex":i=function(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?o<(r=Number(r))&&(r=o):r=o;var i=e.length;H(i%2==0,"Invalid hex string"),i/2<r&&(r=i/2);for(var s=0;s<r;s++){var a=parseInt(e.substr(2*s,2),16);H(!isNaN(a),"Invalid hex string"),t[n+s]=a}return y._charsWritten=2*s,s}(this,t,e,n);break;case"utf8":case"utf-8":d=this,h=e,p=n,i=y._charsWritten=N(C(t),d,h,p);break;case"ascii":i=b(this,t,e,n);break;case"binary":i=b(this,t,e,n);break;case"base64":u=this,l=e,c=n,i=y._charsWritten=N(U(t),u,l,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":s=this,a=e,f=n,i=y._charsWritten=N(function(t){for(var e,n,r,o=[],i=0;i<t.length;i++)e=t.charCodeAt(i),n=e>>8,r=e%256,o.push(r),o.push(n);return o}(t),s,a,f);break;default:throw new Error("Unknown encoding")}return i},y.prototype.toString=function(t,e,n){var r,o,i,s,a=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):n=a.length)===e)return"";switch(t){case"hex":r=function(t,e,n){var r=t.length;(!e||e<0)&&(e=0);(!n||n<0||r<n)&&(n=r);for(var o="",i=e;i<n;i++)o+=x(t[i]);return o}(a,e,n);break;case"utf8":case"utf-8":r=function(t,e,n){var r="",o="";n=Math.min(t.length,n);for(var i=e;i<n;i++)t[i]<=127?(r+=j(o)+String.fromCharCode(t[i]),o=""):o+="%"+t[i].toString(16);return r+j(o)}(a,e,n);break;case"ascii":r=l(a,e,n);break;case"binary":r=l(a,e,n);break;case"base64":o=a,s=n,r=0===(i=e)&&s===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(i,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(a,e,n);break;default:throw new Error("Unknown encoding")}return r},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},y.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e||(e=0),r!==n&&0!==t.length&&0!==this.length){H(n<=r,"sourceEnd < sourceStart"),H(0<=e&&e<t.length,"targetStart out of bounds"),H(0<=n&&n<this.length,"sourceStart out of bounds"),H(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o=r-n;if(o<100||!y._useTypedArrays)for(var i=0;i<o;i++)t[i+e]=this[i+n];else t._set(this.subarray(n,n+o),e)}},y.prototype.slice=function(t,e){var n=this.length;if(t=A(t,n,0),e=A(e,n,n),y._useTypedArrays)return y._augment(this.subarray(t,e));for(var r=e-t,o=new y(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+t];return o},y.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},y.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},y.prototype.readUInt8=function(t,e){if(e||(H(null!=t,"missing offset"),H(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return this[t]},y.prototype.readUInt16LE=function(t,e){return c(this,t,!0,e)},y.prototype.readUInt16BE=function(t,e){return c(this,t,!1,e)},y.prototype.readUInt32LE=function(t,e){return d(this,t,!0,e)},y.prototype.readUInt32BE=function(t,e){return d(this,t,!1,e)},y.prototype.readInt8=function(t,e){if(e||(H(null!=t,"missing offset"),H(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},y.prototype.readInt16LE=function(t,e){return h(this,t,!0,e)},y.prototype.readInt16BE=function(t,e){return h(this,t,!1,e)},y.prototype.readInt32LE=function(t,e){return p(this,t,!0,e)},y.prototype.readInt32BE=function(t,e){return p(this,t,!1,e)},y.prototype.readFloatLE=function(t,e){return g(this,t,!0,e)},y.prototype.readFloatBE=function(t,e){return g(this,t,!1,e)},y.prototype.readDoubleLE=function(t,e){return m(this,t,!0,e)},y.prototype.readDoubleBE=function(t,e){return m(this,t,!1,e)},y.prototype.writeUInt8=function(t,e,n){n||(H(null!=t,"missing value"),H(null!=e,"missing offset"),H(e<this.length,"trying to write beyond buffer length"),_(t,255)),e>=this.length||(this[e]=t)},y.prototype.writeUInt16LE=function(t,e,n){v(this,t,e,!0,n)},y.prototype.writeUInt16BE=function(t,e,n){v(this,t,e,!1,n)},y.prototype.writeUInt32LE=function(t,e,n){w(this,t,e,!0,n)},y.prototype.writeUInt32BE=function(t,e,n){w(this,t,e,!1,n)},y.prototype.writeInt8=function(t,e,n){n||(H(null!=t,"missing value"),H(null!=e,"missing offset"),H(e<this.length,"Trying to write beyond buffer length"),M(t,127,-128)),e>=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},y.prototype.writeInt16LE=function(t,e,n){E(this,t,e,!0,n)},y.prototype.writeInt16BE=function(t,e,n){E(this,t,e,!1,n)},y.prototype.writeInt32LE=function(t,e,n){I(this,t,e,!0,n)},y.prototype.writeInt32BE=function(t,e,n){I(this,t,e,!1,n)},y.prototype.writeFloatLE=function(t,e,n){L(this,t,e,!0,n)},y.prototype.writeFloatBE=function(t,e,n){L(this,t,e,!1,n)},y.prototype.writeDoubleLE=function(t,e,n){S(this,t,e,!0,n)},y.prototype.writeDoubleBE=function(t,e,n){S(this,t,e,!1,n)},y.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),H("number"==typeof t&&!isNaN(t),"value is not a number"),H(e<=n,"end < start"),n!==e&&0!==this.length){H(0<=e&&e<this.length,"start out of bounds"),H(0<=n&&n<=this.length,"end out of bounds");for(var r=e;r<n;r++)this[r]=t}},y.prototype.inspect=function(){for(var t=[],e=this.length,n=0;n<e;n++)if(t[n]=x(this[n]),n===F.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},y.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(y._useTypedArrays)return new y(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e<n;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var B=y.prototype;function A(t,e,n){return"number"!=typeof t?n:e<=(t=~~t)?e:0<=t?t:0<=(t+=e)?t:0}function k(t){return(t=~~Math.ceil(+t))<0?0:t}function T(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function x(t){return t<16?"0"+t.toString(16):t.toString(16)}function C(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(t.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(t.slice(o,n+1)).substr(1).split("%"),s=0;s<i.length;s++)e.push(parseInt(i[s],16))}}return e}function U(t){return f.toByteArray(t)}function N(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}function j(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function _(t,e){H("number"==typeof t,"cannot write a non-number as a number"),H(0<=t,"specified a negative value for writing an unsigned value"),H(t<=e,"value is larger than maximum value for type"),H(Math.floor(t)===t,"value has a fractional component")}function M(t,e,n){H("number"==typeof t,"cannot write a non-number as a number"),H(t<=e,"value larger than maximum allowed value"),H(n<=t,"value smaller than minimum allowed value"),H(Math.floor(t)===t,"value has a fractional component")}function O(t,e,n){H("number"==typeof t,"cannot write a non-number as a number"),H(t<=e,"value larger than maximum allowed value"),H(n<=t,"value smaller than minimum allowed value")}function H(t,e){if(!t)throw new Error(e||"Failed assertion")}y._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=B.get,t.set=B.set,t.write=B.write,t.toString=B.toString,t.toLocaleString=B.toString,t.toJSON=B.toJSON,t.copy=B.copy,t.slice=B.slice,t.readUInt8=B.readUInt8,t.readUInt16LE=B.readUInt16LE,t.readUInt16BE=B.readUInt16BE,t.readUInt32LE=B.readUInt32LE,t.readUInt32BE=B.readUInt32BE,t.readInt8=B.readInt8,t.readInt16LE=B.readInt16LE,t.readInt16BE=B.readInt16BE,t.readInt32LE=B.readInt32LE,t.readInt32BE=B.readInt32BE,t.readFloatLE=B.readFloatLE,t.readFloatBE=B.readFloatBE,t.readDoubleLE=B.readDoubleLE,t.readDoubleBE=B.readDoubleBE,t.writeUInt8=B.writeUInt8,t.writeUInt16LE=B.writeUInt16LE,t.writeUInt16BE=B.writeUInt16BE,t.writeUInt32LE=B.writeUInt32LE,t.writeUInt32BE=B.writeUInt32BE,t.writeInt8=B.writeInt8,t.writeInt16LE=B.writeInt16LE,t.writeInt16BE=B.writeInt16BE,t.writeInt32LE=B.writeInt32LE,t.writeInt32BE=B.writeInt32BE,t.writeFloatLE=B.writeFloatLE,t.writeFloatBE=B.writeFloatBE,t.writeDoubleLE=B.writeDoubleLE,t.writeDoubleBE=B.writeDoubleBE,t.fill=B.fill,t.inspect=B.inspect,t.toArrayBuffer=B.toArrayBuffer,t}}).call(this,z("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},z("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/buffer/index.js","/../../node_modules/buffer")},{"base64-js":3,buffer:4,ieee754:5,rH1JPG:6}],5:[function(t,e,u){(function(t,e,n,r,o,i,s,a,f){u.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,f=(1<<a)-1,u=f>>1,l=-7,c=n?o-1:0,d=n?-1:1,h=t[e+c];for(c+=d,i=h&(1<<-l)-1,h>>=-l,l+=a;0<l;i=256*i+t[e+c],c+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;0<l;s=256*s+t[e+c],c+=d,l-=8);if(0===i)i=1-u;else{if(i===f)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=u}return(h?-1:1)*s*Math.pow(2,i-r)},u.write=function(t,e,n,r,o,i){var s,a,f,u=8*i-o-1,l=(1<<u)-1,c=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),2<=(e+=1<=s+c?d/f:d*Math.pow(2,1-c))*f&&(s++,f/=2),l<=s+c?(a=0,s=l):1<=s+c?(a=(e*f-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));8<=o;t[n+h]=255&a,h+=p,a/=256,o-=8);for(s=s<<o|a,u+=o;0<u;t[n+h]=255&s,h+=p,s/=256,u-=8);t[n+h-p]|=128*g}}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/ieee754/index.js","/../../node_modules/ieee754")},{buffer:4,rH1JPG:6}],6:[function(t,l,e){(function(t,e,n,r,o,i,s,a,f){function u(){}(t=l.exports={}).nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),0<n.length&&n.shift()())},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=u,t.addListener=u,t.once=u,t.off=u,t.removeListener=u,t.removeAllListeners=u,t.emit=u,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}).call(this,t("rH1JPG"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/process/browser.js","/../../node_modules/process")},{buffer:4,rH1JPG:6}]},{},[1]);
/*!
* HC-Sticky
* =========
* Version: 2.1.6
* Version: 2.1.7
* Author: Some Web Media

@@ -11,2 +11,2 @@ * Author URL: http://somewebmedia.com

*/
!function(t,e){"use strict";if("object"==typeof module&&"object"==typeof module.exports){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");module.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,function(t){"use strict";var e={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,queries:null,queryFlow:"down",onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1},o=t.document,n=function(i,s){if("string"==typeof i&&(i=o.querySelector(i)),!i)return!1;var r={},a=n.Helpers,l=i.parentNode;"static"===a.getStyle(l,"position")&&(l.style.position="relative");var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.isEmptyObject(t)&&!a.isEmptyObject(r)||(r=Object.assign({},e,r,t))},f=function(){return r.disable},p=function(){if(r.queries){var o=t.innerWidth,n=r.queryFlow,i=r.queries;if(function(t){r=Object.assign({},e,t||{})}(s),"up"===n)for(var l in i)o>=l&&!a.isEmptyObject(i[l])&&c(i[l]);else{var f=[];for(var p in r.queries){var u={};u[p]=i[p],f.push(u)}for(var d=f.length-1;d>=0;d--){var g=f[d],m=Object.keys(g)[0];o<=m&&!a.isEmptyObject(g[m])&&c(g[m])}}}},u={css:{},position:null,stick:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.hasClass(i,r.stickyClass)||(!1===d.isAttached&&d.attach(),u.position="fixed",i.style.position="fixed",i.style.left=d.offsetLeft+"px",i.style.width=d.width,void 0===t.bottom?i.style.bottom="auto":i.style.bottom=t.bottom+"px",void 0===t.top?i.style.top="auto":i.style.top=t.top+"px",i.classList?i.classList.add(r.stickyClass):i.className+=" "+r.stickyClass,r.onStart&&r.onStart.call(i,r))},release:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.stop=t.stop||!1,!0===t.stop||"fixed"===u.position||null===u.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(a.getStyle(i,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(a.getStyle(i,"bottom"))||0)===t.bottom)){!0===t.stop?!0===d.isAttached&&d.detach():!1===d.isAttached&&d.attach();var e=t.position||u.css.position;u.position=e,i.style.position=e,i.style.left=!0===t.stop?u.css.left:d.positionLeft+"px",i.style.width="absolute"!==e?u.css.width:d.width,void 0===t.bottom?i.style.bottom=!0===t.stop?"":"auto":i.style.bottom=t.bottom+"px",void 0===t.top?i.style.top=!0===t.stop?"":"auto":i.style.top=t.top+"px",i.classList?i.classList.remove(r.stickyClass):i.className=i.className.replace(new RegExp("(^|\\b)"+r.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),r.onStop&&r.onStop.call(i,r)}}},d={el:o.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in u.css)d.el.style[t]=u.css[t];var e=a.getStyle(i);d.offsetLeft=a.offset(i).left-(parseInt(e.marginLeft)||0),d.positionLeft=a.position(i).left,d.width=a.getStyle(i,"width")},attach:function(){l.insertBefore(d.el,i.nextSibling),d.isAttached=!0},detach:function(){d.el=l.removeChild(d.el),d.isAttached=!1}},g=void 0,m=void 0,h=void 0,y=void 0,v=void 0,b=void 0,S=void 0,w=void 0,k=void 0,E=void 0,x=void 0,L=void 0,T=void 0,j=void 0,O=void 0,C=void 0,z=void 0,N=void 0,R=function(){u.css=function(t){var e=a.getCascadedStyle(t),o=a.getStyle(t),n={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:o.position,display:o.display,verticalAlign:o.verticalAlign,boxSizing:o.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight};return e.float&&(n.float=e.float||"none"),e.cssFloat&&(n.cssFloat=e.cssFloat||"none"),o.MozBoxSizing&&(n.MozBoxSizing=o.MozBoxSizing),n.width="auto"!==e.width?e.width:"border-box"===n.boxSizing||"border-box"===n.MozBoxSizing?t.offsetWidth+"px":o.width,n}(i),d.init(),g=!(!r.stickTo||!("document"===r.stickTo||r.stickTo.nodeType&&9===r.stickTo.nodeType||"object"==typeof r.stickTo&&r.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),m=r.stickTo?g?o:"string"==typeof r.stickTo?o.querySelector(r.stickTo):r.stickTo:l,O=(N=function(){var t=i.offsetHeight+(parseInt(u.css.marginTop)||0)+(parseInt(u.css.marginBottom)||0),e=(O||0)-t;return e>=-1&&e<=1?O:t})(),y=(z=function(){return g?Math.max(o.documentElement.clientHeight,o.body.scrollHeight,o.documentElement.scrollHeight,o.body.offsetHeight,o.documentElement.offsetHeight):m.offsetHeight})(),v=g?0:a.offset(m).top,b=r.stickTo?g?0:a.offset(l).top:v,S=t.innerHeight,C=i.offsetTop-(parseInt(u.css.marginTop)||0),h=r.innerSticker?"string"==typeof r.innerSticker?o.querySelector(r.innerSticker):r.innerSticker:null,w=isNaN(r.top)&&r.top.indexOf("%")>-1?parseFloat(r.top)/100*S:r.top,k=isNaN(r.bottom)&&r.bottom.indexOf("%")>-1?parseFloat(r.bottom)/100*S:r.bottom,E=h?h.offsetTop:r.innerTop?r.innerTop:0,x=isNaN(r.bottomEnd)&&r.bottomEnd.indexOf("%")>-1?parseFloat(r.bottomEnd)/100*S:r.bottomEnd,L=v-w+E+C},H=t.pageYOffset||o.documentElement.scrollTop,A=0,B=void 0,I=function(){O=N(),y=z(),T=v+y-w-x,j=O>S;var e=t.pageYOffset||o.documentElement.scrollTop,n=Math.round(a.offset(i).top),s=n-e,c=void 0;B=e<H?"up":"down",A=e-H,H=e,e>L?T+w+(j?k:0)-(r.followScroll&&j?0:w)<=e+O-E-(O-E>S-(L-E)&&r.followScroll&&(c=O-S-E)>0?c:0)?u.release({position:"absolute",bottom:b+l.offsetHeight-T-w}):j&&r.followScroll?"down"===B?s+O+k<=S?u.stick({bottom:k}):"fixed"===u.position&&u.release({position:"absolute",top:n-w-L-A+E}):s+E<0&&"fixed"===u.position?u.release({position:"absolute",top:n-w-L+E-A}):n>=e+w-E&&u.stick({top:w-E}):u.stick({top:w-E}):u.release({stop:!0})},q=!1,F=!1,M=function(){q&&(a.event.unbind(t,"scroll",I),q=!1)},D=function(){R(),O>=y?M():(I(),q||(a.event.bind(t,"scroll",I),q=!0))},W=function(){i.style.position="",i.style.left="",i.style.top="",i.style.bottom="",i.style.width="",i.classList?i.classList.remove(r.stickyClass):i.className=i.className.replace(new RegExp("(^|\\b)"+r.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),u.css={},u.position=null,!0===d.isAttached&&d.detach()},P=function(){W(),p(),f()?M():D()},V=function(){r.onBeforeResize&&r.onBeforeResize.call(i,r),P(),r.onResize&&r.onResize.call(i,r)},Y=r.resizeDebounce?a.debounce(V,r.resizeDebounce):V,$=function(){F&&(a.event.unbind(t,"resize",Y),F=!1),M()},Q=function(){F||(a.event.bind(t,"resize",Y),F=!0),p(),f()?M():D()};this.options=function(t){return t?r.option||null:Object.assign({},r)},this.reinit=P,this.update=function(t){c(t),s=Object.assign({},s,t||{}),P()},this.attach=Q,this.detach=$,this.destroy=function(){$(),W()},c(s),Q(),a.event.bind(t,"load",P)};if(void 0!==t.jQuery){var i=t.jQuery;i.fn.extend({hcSticky:function(t){return this.length?this.each(function(){var e=i.data(this,"hcSticky");e?e.update(t):(e=new n(this,t),i.data(this,"hcSticky",e))}):this}})}return t.hcSticky=t.hcSticky||n,n}),function(t){"use strict";var e=t.hcSticky,o=t.document;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(o[s]=i[s])}return o},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,o;if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),i=n.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(e=arguments[1]),o=0;o<i;){var s;o in n&&(s=n[o],t.call(e,s,o,n)),o++}});var n=function(){function e(e){var o=t.event;return o.target=o.target||o.srcElement||e,o}var n=o.documentElement,i=function(){};n.addEventListener?i=function(t,e,o){t.addEventListener(e,o,!1)}:n.attachEvent&&(i=function(t,o,n){t[o+n]=n.handleEvent?function(){var o=e(t);n.handleEvent.call(n,o)}:function(){var o=e(t);n.call(t,o)},t.attachEvent("on"+o,t[o+n])});var s=function(){};return n.removeEventListener?s=function(t,e,o){t.removeEventListener(e,o,!1)}:n.detachEvent&&(s=function(t,e,o){t.detachEvent("on"+e,t[e+o]);try{delete t[e+o]}catch(n){t[e+o]=void 0}}),{bind:i,unbind:s}}(),i=function(e,n){return t.getComputedStyle?n?o.defaultView.getComputedStyle(e,null).getPropertyValue(n):o.defaultView.getComputedStyle(e,null):e.currentStyle?n?e.currentStyle[n.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:e.currentStyle:void 0},s=function(e){var n=e.getBoundingClientRect(),i=t.pageYOffset||o.documentElement.scrollTop,s=t.pageXOffset||o.documentElement.scrollLeft;return{top:n.top+i,left:n.left+s}};e.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(t,e,o){var n=void 0;return function(){var i=this,s=arguments,r=o&&!n;clearTimeout(n),n=setTimeout(function(){n=null,o||t.apply(i,s)},e),r&&t.apply(i,s)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:s,position:function(t){var e=t.offsetParent,o=s(e),n=s(t),r=i(e),a=i(t);return o.top+=parseInt(r.borderTopWidth)||0,o.left+=parseInt(r.borderLeftWidth)||0,{top:n.top-o.top-(parseInt(a.marginTop)||0),left:n.left-o.left-(parseInt(a.marginLeft)||0)}},getStyle:i,getCascadedStyle:function(e){var n=e.cloneNode(!0);n.style.display="none",Array.prototype.slice.call(n.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),e.parentNode.insertBefore(n,e.nextSibling);var i=void 0;n.currentStyle?i=n.currentStyle:t.getComputedStyle&&(i=o.defaultView.getComputedStyle(n,null));var s={};for(var r in i)!isNaN(r)||"string"!=typeof i[r]&&"number"!=typeof i[r]||(s[r]=i[r]);if(Object.keys(s).length<3){s={};for(var a in i)isNaN(a)||(s[i[a].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=i.getPropertyValue(i[a]))}if(s.margin||"auto"!==s.marginLeft?s.margin||s.marginLeft!==s.marginRight||s.marginLeft!==s.marginTop||s.marginLeft!==s.marginBottom||(s.margin=s.marginLeft):s.margin="auto",!s.margin&&"0px"===s.marginLeft&&"0px"===s.marginRight){var l=e.offsetLeft-e.parentNode.offsetLeft,c=l-(parseInt(s.left)||0)-(parseInt(s.right)||0),f=e.parentNode.offsetWidth-e.offsetWidth-l-(parseInt(s.right)||0)+(parseInt(s.left)||0)-c;0!==f&&1!==f||(s.margin="auto")}return n.parentNode.removeChild(n),n=null,s},event:n}}(window);
!function(t,e){"use strict";if("object"==typeof module&&"object"==typeof module.exports){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");module.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,function(V){"use strict";var Y={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,queries:null,queryFlow:"down",onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1},$=V.document,Q=function(i,p){if("string"==typeof i&&(i=$.querySelector(i)),!i)return!1;var u={},d=Q.Helpers,s=i.parentNode;"static"===d.getStyle(s,"position")&&(s.style.position="relative");var g=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};d.isEmptyObject(t)&&!d.isEmptyObject(u)||(u=Object.assign({},Y,u,t))},t=function(){return u.disable},e=function(){if(u.queries){var t=V.innerWidth,e=u.queryFlow,o=u.queries;if(f=p,u=Object.assign({},Y,f||{}),"up"===e)for(var n in o)n<=t&&!d.isEmptyObject(o[n])&&g(o[n]);else{var i=[];for(var s in u.queries){var r={};r[s]=o[s],i.push(r)}for(var l=i.length-1;0<=l;l--){var a=i[l],c=Object.keys(a)[0];t<=c&&!d.isEmptyObject(a[c])&&g(a[c])}}}var f},r={css:{},position:null,stick:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};d.hasClass(i,u.stickyClass)||(!1===l.isAttached&&l.attach(),r.position="fixed",i.style.position="fixed",i.style.left=l.offsetLeft+"px",i.style.width=l.width,void 0===t.bottom?i.style.bottom="auto":i.style.bottom=t.bottom+"px",void 0===t.top?i.style.top="auto":i.style.top=t.top+"px",i.classList?i.classList.add(u.stickyClass):i.className+=" "+u.stickyClass,u.onStart&&u.onStart.call(i,u))},release:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(t.stop=t.stop||!1,!0===t.stop||"fixed"===r.position||null===r.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(d.getStyle(i,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(d.getStyle(i,"bottom"))||0)===t.bottom)){!0===t.stop?!0===l.isAttached&&l.detach():!1===l.isAttached&&l.attach();var e=t.position||r.css.position;r.position=e,i.style.position=e,i.style.left=!0===t.stop?r.css.left:l.positionLeft+"px",i.style.width="absolute"!==e?r.css.width:l.width,void 0===t.bottom?i.style.bottom=!0===t.stop?"":"auto":i.style.bottom=t.bottom+"px",void 0===t.top?i.style.top=!0===t.stop?"":"auto":i.style.top=t.top+"px",i.classList?i.classList.remove(u.stickyClass):i.className=i.className.replace(new RegExp("(^|\\b)"+u.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),u.onStop&&u.onStop.call(i,u)}}},l={el:$.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in r.css)l.el.style[t]=r.css[t];l.el.style["z-index"]="-1";var e=d.getStyle(i);l.offsetLeft=d.offset(i).left-(parseInt(e.marginLeft)||0),l.positionLeft=d.position(i).left,l.width=d.getStyle(i,"width")},attach:function(){s.insertBefore(l.el,i),l.isAttached=!0},detach:function(){l.el=s.removeChild(l.el),l.isAttached=!1}},a=void 0,c=void 0,f=void 0,m=void 0,y=void 0,h=void 0,v=void 0,b=void 0,S=void 0,w=void 0,E=void 0,k=void 0,x=void 0,L=void 0,T=void 0,j=void 0,O=void 0,C=void 0,o=function(){var t,e,o,n;r.css=(t=i,e=d.getCascadedStyle(t),o=d.getStyle(t),n={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:o.position,display:o.display,verticalAlign:o.verticalAlign,boxSizing:o.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight},e.float&&(n.float=e.float||"none"),e.cssFloat&&(n.cssFloat=e.cssFloat||"none"),o.MozBoxSizing&&(n.MozBoxSizing=o.MozBoxSizing),n.width="auto"!==e.width?e.width:"border-box"===n.boxSizing||"border-box"===n.MozBoxSizing?t.offsetWidth+"px":o.width,n),l.init(),a=!(!u.stickTo||!("document"===u.stickTo||u.stickTo.nodeType&&9===u.stickTo.nodeType||"object"==typeof u.stickTo&&u.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),c=u.stickTo?a?$:"string"==typeof u.stickTo?$.querySelector(u.stickTo):u.stickTo:s,T=(C=function(){var t=i.offsetHeight+(parseInt(r.css.marginTop)||0)+(parseInt(r.css.marginBottom)||0),e=(T||0)-t;return-1<=e&&e<=1?T:t})(),m=(O=function(){return a?Math.max($.documentElement.clientHeight,$.body.scrollHeight,$.documentElement.scrollHeight,$.body.offsetHeight,$.documentElement.offsetHeight):c.offsetHeight})(),y=a?0:d.offset(c).top,h=u.stickTo?a?0:d.offset(s).top:y,v=V.innerHeight,j=i.offsetTop-(parseInt(r.css.marginTop)||0),f=u.innerSticker?"string"==typeof u.innerSticker?$.querySelector(u.innerSticker):u.innerSticker:null,b=isNaN(u.top)&&-1<u.top.indexOf("%")?parseFloat(u.top)/100*v:u.top,S=isNaN(u.bottom)&&-1<u.bottom.indexOf("%")?parseFloat(u.bottom)/100*v:u.bottom,w=f?f.offsetTop:u.innerTop?u.innerTop:0,E=isNaN(u.bottomEnd)&&-1<u.bottomEnd.indexOf("%")?parseFloat(u.bottomEnd)/100*v:u.bottomEnd,k=y-b+w+j},z=V.pageYOffset||$.documentElement.scrollTop,N=0,R=void 0,n=function(){T=C(),m=O(),x=y+m-b-E,L=v<T;var t=V.pageYOffset||$.documentElement.scrollTop,e=Math.round(d.offset(i).top),o=e-t,n=void 0;R=t<z?"up":"down",N=t-z,k<(z=t)?x+b+(L?S:0)-(u.followScroll&&L?0:b)<=t+T-w-(v-(k-w)<T-w&&u.followScroll&&0<(n=T-v-w)?n:0)?r.release({position:"absolute",bottom:h+s.offsetHeight-x-b}):L&&u.followScroll?"down"===R?Math.floor(o+T+S)<=v?r.stick({bottom:S}):"fixed"===r.position&&r.release({position:"absolute",top:e-b-k-N+w}):Math.ceil(o+w)<0&&"fixed"===r.position?r.release({position:"absolute",top:e-b-k+w-N}):t+b-w<=e&&r.stick({top:b-w}):r.stick({top:b-w}):r.release({stop:!0})},H=!1,A=!1,B=function(){H&&(d.event.unbind(V,"scroll",n),H=!1)},I=function(){null!==i.offsetParent&&"none"!==d.getStyle(i,"display")?(o(),m<=T?B():(n(),H||(d.event.bind(V,"scroll",n),H=!0))):B()},q=function(){i.style.position="",i.style.left="",i.style.top="",i.style.bottom="",i.style.width="",i.classList?i.classList.remove(u.stickyClass):i.className=i.className.replace(new RegExp("(^|\\b)"+u.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),r.css={},!(r.position=null)===l.isAttached&&l.detach()},M=function(){q(),e(),t()?B():I()},F=function(){u.onBeforeResize&&u.onBeforeResize.call(i,u),M(),u.onResize&&u.onResize.call(i,u)},D=u.resizeDebounce?d.debounce(F,u.resizeDebounce):F,P=function(){A&&(d.event.unbind(V,"resize",D),A=!1),B()},W=function(){A||(d.event.bind(V,"resize",D),A=!0),e(),t()?B():I()};this.options=function(t){return t?u.option||null:Object.assign({},u)},this.reinit=M,this.update=function(t){g(t),p=Object.assign({},p,t||{}),M()},this.attach=W,this.detach=P,this.destroy=function(){P(),q()},g(p),W(),d.event.bind(V,"load",M)};if(void 0!==V.jQuery){var n=V.jQuery;n.fn.extend({hcSticky:function(o){return this.length?this.each(function(){var t="hcSticky",e=n.data(this,t);e?e.update(o):(e=new Q(this,o),n.data(this,t,e))}):this}})}return V.hcSticky=V.hcSticky||Q,Q}),function(c){"use strict";var t=c.hcSticky,f=c.document;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(o[s]=i[s])}return o},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,o;if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),i=n.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(e=arguments[1]),o=0;o<i;){var s;o in n&&(s=n[o],t.call(e,s,o,n)),o++}});var e=function(){var t=f.documentElement,e=function(){};function n(t){var e=c.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,o){t.addEventListener(e,o,!1)}:t.attachEvent&&(e=function(e,t,o){e[t+o]=o.handleEvent?function(){var t=n(e);o.handleEvent.call(o,t)}:function(){var t=n(e);o.call(e,t)},e.attachEvent("on"+t,e[t+o])});var o=function(){};return t.removeEventListener?o=function(t,e,o){t.removeEventListener(e,o,!1)}:t.detachEvent&&(o=function(e,o,n){e.detachEvent("on"+o,e[o+n]);try{delete e[o+n]}catch(t){e[o+n]=void 0}}),{bind:e,unbind:o}}(),r=function(t,e){return c.getComputedStyle?e?f.defaultView.getComputedStyle(t,null).getPropertyValue(e):f.defaultView.getComputedStyle(t,null):t.currentStyle?e?t.currentStyle[e.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:t.currentStyle:void 0},l=function(t){var e=t.getBoundingClientRect(),o=c.pageYOffset||f.documentElement.scrollTop,n=c.pageXOffset||f.documentElement.scrollLeft;return{top:e.top+o,left:e.left+n}};t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(n,i,s){var r=void 0;return function(){var t=this,e=arguments,o=s&&!r;clearTimeout(r),r=setTimeout(function(){r=null,s||n.apply(t,e)},i),o&&n.apply(t,e)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:l,position:function(t){var e=t.offsetParent,o=l(e),n=l(t),i=r(e),s=r(t);return o.top+=parseInt(i.borderTopWidth)||0,o.left+=parseInt(i.borderLeftWidth)||0,{top:n.top-o.top-(parseInt(s.marginTop)||0),left:n.left-o.left-(parseInt(s.marginLeft)||0)}},getStyle:r,getCascadedStyle:function(t){var e=t.cloneNode(!0);e.style.display="none",Array.prototype.slice.call(e.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(e,t.nextSibling);var o=void 0;e.currentStyle?o=e.currentStyle:c.getComputedStyle&&(o=f.defaultView.getComputedStyle(e,null));var n={};for(var i in o)!isNaN(i)||"string"!=typeof o[i]&&"number"!=typeof o[i]||(n[i]=o[i]);if(Object.keys(n).length<3)for(var s in n={},o)isNaN(s)||(n[o[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=o.getPropertyValue(o[s]));if(n.margin||"auto"!==n.marginLeft?n.margin||n.marginLeft!==n.marginRight||n.marginLeft!==n.marginTop||n.marginLeft!==n.marginBottom||(n.margin=n.marginLeft):n.margin="auto",!n.margin&&"0px"===n.marginLeft&&"0px"===n.marginRight){var r=t.offsetLeft-t.parentNode.offsetLeft,l=r-(parseInt(n.left)||0)-(parseInt(n.right)||0),a=t.parentNode.offsetWidth-t.offsetWidth-r-(parseInt(n.right)||0)+(parseInt(n.left)||0)-l;0!==a&&1!==a||(n.margin="auto")}return e.parentNode.removeChild(e),e=null,n},event:e}}(window);
{
"name": "hc-sticky",
"version": "2.1.6",
"version": "2.1.7",
"description": "Cross-browser plugin that makes any element on your page visible while you scroll",

@@ -14,3 +14,3 @@ "main": "dist/hc-sticky.js",

"devDependencies": {
"babel-core": "^6.25.0",
"babel-core": "^6.26.3",
"babel-plugin-check-es2015-constants": "^6.22.0",

@@ -25,3 +25,3 @@ "babel-plugin-transform-es2015-arrow-functions": "^6.22.0",

"gulp": "^3.9.1",
"gulp-autoprefixer": "^4.0.0",
"gulp-autoprefixer": "^5.0.0",
"gulp-babel": "^7.0.0",

@@ -31,6 +31,7 @@ "gulp-browserify": "^0.5.1",

"gulp-open": "^2.0.0",
"gulp-sass": "^3.1.0",
"gulp-sass": "^4.0.1",
"gulp-template": "^4.0.0",
"gulp-uglify": "^3.0.0",
"uglify-save-license": "^0.4.1"
"uglify-save-license": "^0.4.1",
"yargs": "^11.0.0"
},

@@ -37,0 +38,0 @@ "keywords": [

/*!
* HC-Sticky
* =========
* Version: 2.1.6
* Version: 2.1.7
* Author: Some Web Media

@@ -179,4 +179,4 @@ * Author URL: http://somewebmedia.com

stick: (args = {}) => {
// check if element is already sticky
if (Helpers.hasClass(elem, STICKY_OPTIONS.stickyClass)) {
// check if element is already sticky
return;

@@ -294,3 +294,3 @@ }

init: () => {
// copy styles from element
// copy styles from sticky element
for (const prop in Sticky.css) {

@@ -300,2 +300,5 @@ Spacer.el.style[prop] = Sticky.css[prop];

// just to be sure the spacer is behind everything
Spacer.el.style['z-index'] = '-1';
const elemStyle = Helpers.getStyle(elem);

@@ -312,3 +315,3 @@

// insert spacer to DOM
elemParent.insertBefore(Spacer.el, elem.nextSibling);
elemParent.insertBefore(Spacer.el, elem);
Spacer.isAttached = true;

@@ -472,3 +475,3 @@ },

if (scroll_dir === 'down') { // scroll down
if (sticky_window_top + sticky_height + options_bottom <= window_height) { // stick on bottom
if (Math.floor(sticky_window_top + sticky_height + options_bottom) <= window_height) { // stick on bottom
Sticky.stick({

@@ -487,3 +490,3 @@ //top: window_height - sticky_height - options_bottom

else { // scroll up
if (sticky_window_top + stick_top < 0 && Sticky.position === 'fixed') { // top reached window top
if (Math.ceil(sticky_window_top + stick_top) < 0 && Sticky.position === 'fixed') { // top reached window top
Sticky.release({

@@ -528,2 +531,8 @@ position: 'absolute',

const initSticky = () => {
// check if element or it's parents are visible
if (elem.offsetParent === null || Helpers.getStyle(elem, 'display') === 'none') {
disableSticky();
return;
}
// calculate stuff

@@ -535,3 +544,2 @@ calcSticky();

disableSticky();
return;

@@ -538,0 +546,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc