text: /**
  *** pagebreak - 1.0.0
  *** https://github.com/nkchinh/pagebreak#readme
  *** Copyright (c) 2017 Chinh Nguyen
  *** License: MIT
  **/
  
  !function(t,e){var i=function(t){t=t||document.body,this.$ele=t,this.$opt={pageHeight:500}};i.prototype={pageHeight:function(t){return 0==arguments.length?this.$opt.pageHeight:(t!=this.$opt.pageHeight&&(this.$_cache=null,this.$opt.pageHeight=t),this)},containers:function(t){return 0==arguments.length?this.$opt.conts:(t!=this.$opt.conts&&(this.$_cache=null,this.$opt.conts=t),this)},addContainer:function(t){this.$opt.conts||(this.$opt.conts=[]),this.$opt.conts.push(t)},each:function(t){this.$_cache||n.call(this);for(var e=0,i=this.$_cache.marks.length;e<i;e++)t.call(this,e,this.$_cache.marks[e]);return this},insert:function(){this.$_cache||n.call(this);var t;if("function"==typeof arguments[0])for(var e=0,i=this.$_cache.marks.length;e<i;e++){r=this.$_cache.marks[e];t=arguments[0].call(this,e),r.sibling?r.container.insertBefore(t,r.sibling):r.container.appendChild(t)}else if("string"==typeof arguments[0])for(var e=0,i=this.$_cache.marks.length;e<i;e++){r=this.$_cache.marks[e];for((h=document.createElement("div")).innerHTML=arguments[0],t=h.firstChild;t;){var s=t.nextSibling;h.removeChild(t),r.sibling?r.container.insertBefore(t,r.sibling):r.container.appendChild(t),t=s}}else for(var e=0,i=this.$_cache.marks.length;e<i;e++){var r=this.$_cache.marks[e],h=document.createElement("div");h.innerHTML=arguments[0].outerHTML,t=h.firstChild,r.sibling?r.container.insertBefore(t,r.sibling):r.container.appendChild(t)}return this},insertPageBreak:function(){return this.insert('<div style="page-break-after: always"></div>'),this},count:function(){return this.$_cache||n.call(this),this.$_cache.marks.length+1}};var n=function(){this.$_cache={marks:[]};for(var t=this.$ele,e=this.$opt.conts||[],i=this.$opt.pageHeight||500,n=[],r=t.firstChild,h=s(t),a=parseFloat(h.paddingTop),o=t.getBoundingClientRect(),c=o.top+a||0;r;){if("#text"==r.nodeName)r=r.nextSibling;else if(r.firstChild&&-1!=e.indexOf(r))n.push(r),r=r.firstChild;else{if((o=r.getBoundingClientRect()).top+r.offsetHeight-c>i){this.$_cache.marks.push({container:r.parentNode,sibling:r}),h=s(r);var l=parseFloat(h.marginTop);c=o.top-l}r=r.nextSibling}for(;!r&&n.length;)(r=n.pop())&&(r=r.nextSibling)}},s=function(t){return t.currentStyle||window.getComputedStyle(t)};t.pageBreak=function(t){return new i(t)}}(window,window.jQuery);
  //# sourceMappingURL=pagebreak.min.js.map