text: // jQuery.documentSize, v1.2.5
  // Copyright (c) 2015-2018 Michael Heim, Zeilenwechsel.de
  // Distributed under MIT license
  // http://github.com/hashchange/jquery.documentsize
  
  
  !function(e,t){"use strict";"object"==typeof exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd&&define(["jquery"],t)}(0,function(e){"use strict";return function(e){var t,o,r,u,n,i,a=!!window.getComputedStyle;function d(e,t){var o,n,i,r,d,l=t.window,u=0!==w(),c=t.useLayoutViewport&&"Width"===e,a=u||!p()||c,m=a?l.document.documentElement["client"+e]:h(e,l);return t.useLayoutViewport&&!a&&(n=m,i=f(l,{asRange:!0}),m=Math.round(n*i.calculated),b()||(o=l.document.documentElement.clientHeight,r=(n-1)*i.min,d=(n+1)*i.max,(m<=o+3&&o-3<=m||r<=o&&o<=d&&d<o+30)&&(m=o))),m}function f(e,t){var o,n,i=t&&t.asRange,r={calculated:1,min:1,max:1};return 0!==w()||!p()||(e||(e=window),o=e.document.documentElement.clientWidth,n=y(e),r.calculated=o/n,i&&(b()?r.min=r.max=r.calculated:(r.min=o/(n+1),r.max=o/(n-1)))),i?r:r.calculated}function l(e){var t,o,n,i=window,r=!0;return e&&e.length&&((t=x((e=Array.prototype.slice.call(e))[0]))||(e[0]=m(e[0])),(o=!t&&e[0])||(e[1]=m(e[1])),n=!o&&e[1],t?(i=e[0],n&&e[1].viewport&&(r=c(e[1].viewport))):o?(e[0].viewport&&(r=c(e[0].viewport)),x(e[1])&&(i=e[1])):!e[0]&&e[1]&&(n&&e[1].viewport?r=c(e[1].viewport):x(e[1])&&(i=e[1]))),{window:i,useVisualViewport:r,useLayoutViewport:!r}}function c(e){var t=g(e)&&e.toLowerCase();if(e&&!t)throw new Error("Invalid viewport option: "+e);if(t&&"visual"!==t&&"layout"!==t)throw new Error("Invalid viewport name: "+e);return"visual"===t}function m(e){return g(e)&&""!==e?{viewport:e}:e}function p(){return void 0===o&&(o=10<y()),o}function w(){var e;return void 0===t&&((e=document.createElement("div")).style.cssText="width: 100px; height: 100px; overflow: scroll; position: absolute; top: -500px; left: -500px; margin: 0px; padding: 0px; border: none;",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t}function s(){var e,t,o,n,i=function(){var e=document.createElement("iframe"),t=document.body;if(e.style.cssText="position: absolute; top: -600px; left: -600px; width: 500px; height: 500px; margin: 0px; padding: 0px; border: none; display: block;",e.frameborder="0",t.appendChild(e),e.src="about:blank",!e.contentDocument)return;return e.contentDocument.write('<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title><style type="text/css">html, body { overflow: hidden; }</style></head><body></body></html>'),e}(),r=i&&i.contentDocument||document,d=r.body,l=r!==document;(t=r.createElement("div")).style.cssText="width: 1px; height: 1px; position: relative; top: 0px; left: 32000px;",l||(e=function(){var e,t,o=document.documentElement,n=document.body,i=a?window.getComputedStyle(o,null):o.currentStyle,r=a?window.getComputedStyle(n,null):n.currentStyle,d=(i.overflowX||i.overflow||"visible").toLowerCase(),l="hidden"!==(r.overflowX||r.overflow||"visible").toLowerCase(),u="visible"===d,c={documentElement:{modified:u},body:{modified:l}};u&&(e=o.style,c.documentElement.styleOverflowX=e.overflowX,e.overflowX="auto");l&&(t=n.style,c.body.styleOverflowX=t.overflowX,t.overflowX="hidden");return c}()),o=d.scrollWidth,d.appendChild(t),n=o!==d.scrollWidth,d.removeChild(t),l||function(e){e.documentElement.modified&&(document.documentElement.style.overflowX=e.documentElement.styleOverflowX);e.body.modified&&(document.body.style.overflowX=e.body.styleOverflowX)}(e),u=n?"documentElement":"body",i&&document.body.removeChild(i)}function v(e,t){var o=t.documentElement;return Math.max(o.body["scroll"+e],t["scroll"+e],o.body["offset"+e],t["offset"+e],t["client"+e])}function y(e){return h("Width",e)}function h(e,t){var o,n,i=(t||window).visualViewport?(t||window).visualViewport[e.toLowerCase()]:(t||window)["inner"+e];return i&&(o=i,r||((n=o)!==+n||n===(0|n))||(r=!0)),i}function b(){return!!r}function x(e){return null!=e&&e.window==e}function g(e){return"string"==typeof e||e&&"object"==typeof e&&"[object String]"===Object.prototype.toString.call(e)||!1}function E(){var e;return void 0===n&&(n=!1,e=navigator&&navigator.userAgent,navigator&&"Microsoft Internet Explorer"===navigator.appName&&e&&null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(n=parseFloat(RegExp.$1))),n}if(e.documentWidth=function(t){var o;t||(t=document);try{void 0===u&&s(),o=t[u].scrollWidth}catch(e){o=v("Width",t)}return o},e.documentHeight=function(t){var o;t||(t=document);try{void 0===u&&s(),o=t[u].scrollHeight}catch(e){o=v("Height",t)}return o},e.windowWidth=function(e,t){return d("Width",l(arguments))},e.windowHeight=function(e,t){return d("Height",l(arguments))},e.pinchZoomFactor=function(e){return f(e)},e.scrollbarWidth=w,"function"==typeof e&&!((i=E())&&i<8)&&9!==E())try{e(function(){void 0===u&&s(),w()})}catch(e){}}("undefined"!=typeof jQuery?jQuery:"undefined"!=typeof Zepto?Zepto:e),e});
  //# sourceMappingURL=jquery.documentsize.min.js.map