text: !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).basicPaginate=e()}}((function(){return function e(n,t,r){function o(u,c){if(!t[u]){if(!n[u]){var a="function"==typeof require&&require;if(!c&&a)return a(u,!0);if(i)return i(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var l=t[u]={exports:{}};n[u][0].call(l.exports,(function(e){return o(n[u][1][e]||e)}),l,l.exports,e,n,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,n,t){"use strict";n.exports=function(e,n,t){const r=n-e+1;let o=t-e;return function(n){return o=(o+(n=n||0))%r,o>=0&&(o=0+o),o<0&&(o=r+o),e+o}}},{}],2:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0;var r,o=(r=e("count-between"))&&r.__esModule?r:{default:r};var i=function(e,n){var t;null!=e&&(!1!=(null!=(t=e)&&t.nodeType===Node.ELEMENT_NODE)?(e.querySelectorAll("[data-basicpaginate-first]").forEach((function(e){e.addEventListener("click",n.first)})),e.querySelectorAll("[data-basicpaginate-last]").forEach((function(e){e.addEventListener("click",n.last)})),e.querySelectorAll("[data-basicpaginate-prev]").forEach((function(e){e.addEventListener("click",n.prev)})),e.querySelectorAll("[data-basicpaginate-next]").forEach((function(e){e.addEventListener("click",n.next)})),e.querySelectorAll("[data-basicpaginate-goto]").forEach((function(e){var t=parseInt(e.getAttribute("data-basicpaginate-goto"));e.addEventListener("click",(function(){return n.goto(t)}))}))):console.warn("Could not bind events to pagination as the renderer returned a non-element node"))};t.create=function(e,n){var t,r,u=null,c=Math.ceil(e.length/n),a=(0,o.default)(0,c-1,0),f=(t=Array.from(e),r=n,Array.from({length:Math.ceil(t.length/r)},(function(e,n){return t.slice(n*r,n*r+r)}))),l=function(){return f.length},d=function(e){a=(0,o.default)(0,l()-1,e),function(e,n){e.filter((function(e,t){return n===t})).forEach((function(e){return e.forEach((function(e){return e.removeAttribute("hidden")}))})),e.filter((function(e,t){return n!==t})).forEach((function(e){return e.forEach((function(e){return e.setAttribute("hidden",!0)}))}))}(f,a()),p()},s=function(){d(0)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;null!=(u=e)&&i(u(g),g)},g={pages:function(){return f},length:l,current:function(){return a()},goto:d,first:s,last:function(){d(l()-1)},prev:function(){d(a(-1))},next:function(){d(a(1))},render:p};return s(),g}},{"count-between":1}]},{},[2])(2)}));