!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(r){function s(t){return parseFloat(t)||0}function l(t){var t=r(t),n=null,a=[];return t.each(function(){var t=r(this),e=t.offset().top-s(t.css("margin-top")),o=0n&&(n=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}e.each(function(){var t=r(this),e=0;a.target&&t.is(a.target)||("border-box"!==t.css("box-sizing")&&(e+=s(t.css("border-top-width"))+s(t.css("border-bottom-width")),e+=s(t.css("padding-top"))+s(t.css("padding-bottom"))),t.css(a.property,n-e+"px"))})}),t.each(function(){var t=r(this);t.attr("style",t.data("style-cache")||null)}),h._maintainScroll&&r(window).scrollTop(i/e*r("html").outerHeight(!0)),this},h._applyDataApi=function(){var o={};r("[data-match-height], [data-mh]").each(function(){var t=r(this),e=t.attr("data-mh")||t.attr("data-match-height");e in o?o[e]=o[e].add(t):o[e]=t}),r.each(o,function(){this.matchHeight(!0)})};function i(t){h._beforeUpdate&&h._beforeUpdate(t,h._groups),r.each(h._groups,function(){h._apply(this.elements,this.options)}),h._afterUpdate&&h._afterUpdate(t,h._groups)}h._update=function(t,e){if(e&&"resize"===e.type){var o=r(window).width();if(o===n)return;n=o}t?-1===a&&(a=setTimeout(function(){i(e),a=-1},h._throttle)):i(e)},r(h._applyDataApi);var t=r.fn.on?"on":"bind";r(window)[t]("load",function(t){h._update(!1,t)}),r(window)[t]("resize orientationchange",function(t){h._update(!0,t)})});