diff --git a/build/admin/index.asset.php b/build/admin/index.asset.php index 5324ee3..c9304e8 100644 --- a/build/admin/index.asset.php +++ b/build/admin/index.asset.php @@ -1 +1 @@ - array(), 'version' => '4035d8d8e95a3a6b9159'); + array(), 'version' => '4a17c84cea6c69413608'); diff --git a/build/admin/index.css b/build/admin/index.css index 4c0489a..544c2b0 100644 --- a/build/admin/index.css +++ b/build/admin/index.css @@ -1,5172 +1 @@ -/*!************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss ***! - \************************************************************************************************************************************************/ -@import url(//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css); -/*!****************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/admin/scss/admin.scss (1) ***! - \****************************************************************************************************************************************************/ -@charset "UTF-8"; -/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */ -.tooltipster-default { - border-radius: 3px; - border: 2px solid #222; - border: none; - background: #0073aa; - background: rgba(33, 149, 204, 0.95); - color: #e7f3f8; -} - -/* Use this next selector to style things like font-size and line-height: */ -.tooltipster-default .tooltipster-content { - font-size: 12px; - line-height: 20px; - padding: 12px 16px; - overflow: hidden; - text-align: center; -} - -/* If you're using the icon option, use this next selector to style them */ -.tooltipster-icon { - cursor: help; - margin-left: 4px; -} - -/* This is the base styling required to make all Tooltipsters work */ -.tooltipster-base { - padding: 0; - font-size: 0; - line-height: 0; - position: absolute; - left: 0; - top: 0; - z-index: 9999999; - pointer-events: none; - width: auto; - overflow: visible; -} - -.tooltipster-base .tooltipster-content { - overflow: hidden; -} - -/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */ -.tooltipster-arrow { - display: block; - text-align: center; - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - z-index: -1; -} - -.tooltipster-arrow span, .tooltipster-arrow-border { - display: block; - width: 0; - height: 0; - position: absolute; -} - -.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span { - border-left: 8px solid transparent !important; - border-right: 8px solid transparent !important; - border-top: 8px solid; - bottom: -7px; -} - -.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border { - border-left: 9px solid transparent !important; - border-right: 9px solid transparent !important; - border-top: 9px solid; - bottom: -7px; -} - -.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span { - border-left: 8px solid transparent !important; - border-right: 8px solid transparent !important; - border-bottom: 8px solid; - top: -7px; -} - -.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { - border-left: 9px solid transparent !important; - border-right: 9px solid transparent !important; - border-bottom: 9px solid; - top: -7px; -} - -.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border { - left: 0; - right: 0; - margin: 0 auto; -} - -.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span { - left: 6px; -} - -.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border { - left: 5px; -} - -.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span { - right: 6px; -} - -.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border { - right: 5px; -} - -.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border { - border-top: 8px solid transparent !important; - border-bottom: 8px solid transparent !important; - border-left: 8px solid; - top: 50%; - margin-top: -7px; - right: -7px; -} - -.tooltipster-arrow-left .tooltipster-arrow-border { - border-top: 9px solid transparent !important; - border-bottom: 9px solid transparent !important; - border-left: 9px solid; - margin-top: -8px; -} - -.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border { - border-top: 8px solid transparent !important; - border-bottom: 8px solid transparent !important; - border-right: 8px solid; - top: 50%; - margin-top: -7px; - left: -7px; -} - -.tooltipster-arrow-right .tooltipster-arrow-border { - border-top: 9px solid transparent !important; - border-bottom: 9px solid transparent !important; - border-right: 9px solid; - margin-top: -8px; -} - -/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */ -.tooltipster-fade { - opacity: 0; - -webkit-transition-property: opacity; - -moz-transition-property: opacity; - -o-transition-property: opacity; - -ms-transition-property: opacity; - transition-property: opacity; -} - -.tooltipster-fade-show { - opacity: 1; -} - -.tooltipster-grow { - transform: scale(0, 0); - transition-property: transform; - backface-visibility: hidden; -} - -.tooltipster-grow-show { - transform: scale(1, 1); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); -} - -.tooltipster-swing { - opacity: 0; - transform: rotateZ(4deg); - transition-property: transform; -} - -.tooltipster-swing-show { - opacity: 1; - transform: rotateZ(0deg); - transition-timing-function: cubic-bezier(0.23, 0.635, 0.495, 2.4); -} - -.tooltipster-fall { - top: 0; - -webkit-transition-property: top; - -moz-transition-property: top; - -o-transition-property: top; - -ms-transition-property: top; - transition-property: top; - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); -} - -.tooltipster-fall.tooltipster-dying { - -webkit-transition-property: all; - -moz-transition-property: all; - -o-transition-property: all; - -ms-transition-property: all; - transition-property: all; - top: 0px !important; - opacity: 0; -} - -.tooltipster-slide { - left: -40px; - -webkit-transition-property: left; - -moz-transition-property: left; - -o-transition-property: left; - -ms-transition-property: left; - transition-property: left; - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); - -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - -o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); - transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); -} - -.tooltipster-slide.tooltipster-dying { - -webkit-transition-property: all; - -moz-transition-property: all; - -o-transition-property: all; - -ms-transition-property: all; - transition-property: all; - left: 0px !important; - opacity: 0; -} - -/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */ -.tooltipster-content-changing { - opacity: 0.5; - -webkit-transform: scale(1.1, 1.1); - -moz-transform: scale(1.1, 1.1); - -o-transform: scale(1.1, 1.1); - -ms-transform: scale(1.1, 1.1); - transform: scale(1.1, 1.1); -} - -/* -* Select2 - form replacement - http://ivaynberg.github.io/select2/ -* -* @since 1.0 -*/ -.select2-container { - position: relative; - display: inline-block; - zoom: 1; - *display: inline; - vertical-align: middle; - min-width: 60%; -} - -.inner.half .select2-container { - min-width: 90%; - width: 90%; -} - -#alm-builder .select2-container li { - padding-right: 0; -} - -.select2-container a.select2-choice { - display: block; - height: 38px; - line-height: 37px; - padding: 0 0 0 10px; - overflow: hidden; - position: relative; - border: 1px solid #e7e7e7; - white-space: nowrap; - color: #393d41; - text-decoration: none; - background: #fff; - border-radius: 3px; - -webkit-background-clip: padding-box; - -moz-background-clip: padding; - background-clip: padding-box; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - font-size: 13px; -} - -.select2-dropdown-open.select2-container-active .select2-choice { - -webkit-border-radius: 4px 4px 0 0; - -moz-border-radius: 4px 4px 0 0; - border-radius: 4px 4px 0 0; -} - -.select2-container.select2-drop-above .select2-choice { - background: #fff; - -webkit-border-radius: 0 0 4px 4px; - -moz-border-radius: 0px 0px 4px 4px; - border-radius: 0 0 4px 4px; -} - -.select2-container .select2-choice span { - padding-right: 40px; - margin: 0; - width: 100%; - display: block; - overflow: hidden; - white-space: nowrap; - color: #666; - text-overflow: ellipsis; -} - -.select2-container .select2-choice abbr:hover { - background-position: right -11px; - cursor: pointer; -} - -.select2-drop-mask { - position: absolute; - left: 0; - top: 0; - z-index: 8; - background-color: #fff; - opacity: 0; -} - -.select2-drop { - overflow: hidden; - width: 100%; - position: absolute; - z-index: 9; - top: 100%; - background: #fff; - color: #393d41; - border: 1px solid #e7e7e7; - border-radius: 3px; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); - font-size: 13px; - overflow: hidden; - margin-top: 2px; - margin-left: -1px; -} -.select2-drop.select2-drop-above { - margin-top: -2px; -} - -.select2-container .select2-choice div { - display: block; - width: 30px; - height: 100%; - position: absolute; - right: 0; - top: 0; -} - -.select2-container .select2-choice div b { - display: block; - width: 100%; - height: 100%; - background: #fff url(../admin/img/ui/bkg-select.png) no-repeat center center; -} - -.select2-dropdown-open.select2-container-active div b { - display: block; - width: 100%; - height: 100%; - background-color: #fff; -} - -/* Search */ -.select2-search { - padding: 5px; - display: block; - background-color: #fff; - border-bottom: 1px solid #f7f7f7; -} -.select2-search .select2-input { - width: 99%; - height: 35px !important; - line-height: 35px !important; - box-shadow: none !important; - background: #fff url(../admin/img/ui/icon-search.png) no-repeat right 7px center; - background-size: 16px 16px; -} - -/* Multi select box */ -#alm-builder .select2-choices li { - margin: 0 0 2px; -} - -#alm-builder .select2-container-multi { - width: 60%; -} - -#alm-builder .select2-results li { - width: 100%; -} - -#alm-builder .select2-container-multi .select2-input { - cursor: pointer; - margin: 0 !important; -} - -#alm-builder ul.select2-choices { - width: 100%; - overflow: hidden; -} - -#alm-builder ul.select2-choices li.select2-search-field, -#alm-builder ul.select2-choices li.select2-search-field input { - width: 100% !important; - display: block; -} - -/* Selected Choice */ -#alm-builder ul.select2-choices li.select2-search-choice { - display: inline-block; - font-size: 12px; - line-height: 13px; - margin: 0 5px 5px 0; - padding: 5px 10px 5px 27px; - border-radius: 3px; - background: #fff; - border: 1px solid #e7e7e7; - width: auto; - position: relative; -} - -#alm-builder ul.select2-choices .select2-input { - background: #fff url(../admin/img/ui/bkg-select.png) no-repeat right center; -} -#alm-builder ul.select2-choices .select2-input.select2-focused { - background: #fff url(../admin/img/ui/icon-search.png) no-repeat right 7px center; - background-size: 16px 16px; -} - -#alm-builder ul.select2-choices li.select2-search-choice a { - position: absolute; - left: 3px; - top: 3px; - width: 17px; - height: 17px; - background: #393d41 url(../admin/img/ui/ico-close.png) no-repeat center center; - display: block; - border-radius: 3px; -} -#alm-builder ul.select2-choices li.select2-search-choice a:hover, #alm-builder ul.select2-choices li.select2-search-choice a:focus { - background-color: #bf3538; -} - -/* results UL */ -.select2-results { - max-height: 311px; - padding: 0 0 0 0; - margin: 0 0 0 0; - position: relative; - overflow-x: hidden; - overflow-y: auto; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -.select2-result-sub { - margin: 0; - padding: 0; -} - -.select2-results li { - list-style: none; - display: block; - background-image: none; - padding: 0; - margin: 0 !important; - border-top: 1px solid #f7f7f7; - color: #393d41; - width: auto; - font-size: 13px; -} -.select2-results li:first-of-type { - border: none; -} - -.select2-results li.select2-result-with-children > .select2-result-label { - font-weight: 700; - font-size: 13px; - cursor: default; - border-bottom: 1px solid #f7f7f7; -} - -.select2-results .select2-result-label { - margin: 0; - cursor: pointer; - min-height: 1em; - padding: 10px; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.select2-results .select2-highlighted .select2-result-label { - /* Hover */ - background: #f7f7f7; - color: #3d8ed0; -} - -.select2-results .select2-highlighted:active { - background: #fff; -} - -.select2-results li em { - background: #feffde; - font-style: normal; -} - -.select2-results .select2-highlighted em { - background: transparent; -} - -.select2-results .select2-highlighted ul { - background: white; - color: #000; -} - -.select2-results .select2-no-results, -.select2-results .select2-searching, -.select2-results .select2-selection-limit { - background: #f4f4f4; - display: list-item; -} - -.select2-results .select2-no-results { - min-height: 1em; - padding: 10px 7px; - font-size: 13px; -} - -/* -disabled look for disabled choices in the results dropdown -*/ -.select2-results .select2-disabled.select2-highlighted { - color: #666; - background: #f4f4f4; - display: list-item; - cursor: default; -} - -.select2-results .select2-disabled { - background: #f4f4f4; - display: list-item; - cursor: default; -} - -.select2-results .select2-selected { - display: none; -} - -.select2-more-results { - background: #f4f4f4; - display: list-item; -} - -/* disabled styles */ -.select2-container.select2-container-disabled .select2-choice { - background-color: #f4f4f4; - background-image: none; - border: 1px solid #ddd; - cursor: default; -} - -.select2-container.select2-container-disabled .select2-choice div { - background-color: #f4f4f4; - background-image: none; - border-left: 0; -} - -.select2-container.select2-container-disabled .select2-choice abbr { - display: none; -} - -.select2-offscreen { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; - left: 0; -} - -.alm-settings-feedback { - position: fixed; - top: 50px; - right: 10px; - width: auto; - height: auto; - background: #fff; - border-left: 5px solid #5cc583; - color: #444; - padding: 25px 30px 25px 25px; - line-height: 1; - z-index: 99999; - border-radius: 2px; - opacity: 0; - visibility: hidden; - transition: all 0.25s ease-in-out; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); - font-size: 13px; -} -.alm-settings-feedback.--saving { - border-color: #e0bd5e; - opacity: 1; - visibility: visible; - top: 50px; - right: 25px; -} -.alm-settings-feedback.--saved { - opacity: 1; - visibility: visible; - top: 50px; - right: 25px; -} -.alm-settings-feedback.--saved i { - opacity: 1; - color: #5cc583; -} -.alm-settings-feedback.--error { - border-color: #e03e3e; - opacity: 1; - visibility: visible; - top: 25px; - right: 25px; -} -.alm-settings-feedback i { - opacity: 0.6; - margin: 0 3px 0 0; -} - -#alm_OptionsForm { - position: relative; -} -#alm_OptionsForm .save-in-progress { - width: 100%; - height: 100%; - position: absolute; - left: 0; - top: 0; - z-index: 10; - background: rgba(255, 255, 255, 0.65); - transition: all 0.2s ease; - opacity: 0; - visibility: hidden; -} -#alm_OptionsForm.--saving .save-in-progress { - opacity: 1; - visibility: visible; - cursor: wait !important; -} - -.ajax-load-more .alm-tabbed-wrapper { - width: 100%; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper { - display: flex; - flex-wrap: nowrap; - } -} -.ajax-load-more .alm-tabbed-wrapper h2 { - padding: 20px 0 0; - margin: 0 0 15px; - display: block; - color: #393d41; - font-weight: 600; -} -.ajax-load-more .alm-tabbed-wrapper--nav { - border: 1px solid #efefef; - margin-bottom: 20px; - padding: 10px; - background: #fff; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav { - width: 165px; - background-color: #f7f7f7; - padding: 0; - border: 1px solid #efefef; - border-right: none; - border-radius: 6px 6px 0 6px; - position: relative; - z-index: 1; - margin: 0; - } -} -.ajax-load-more .alm-tabbed-wrapper--nav ul { - margin: 0; - padding: 0 0 35px; -} -@media screen and (max-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul { - padding: 0; - border: 1px solid #efefef; - } -} -.ajax-load-more .alm-tabbed-wrapper--nav ul li { - width: 100% !important; - margin: 0; - padding: 0; - list-style: none; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type { - position: relative; - top: -1px; - } - .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type button { - border-top: 1px solid #efefef; - border-radius: 6px 0 0 0; - } -} -@media screen and (max-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul li:last-of-type button { - border: none; - } -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav ul.attached { - position: fixed; - width: auto; - top: 70px; - } - .ajax-load-more .alm-tabbed-wrapper--nav ul.attached li:first-of-type button { - border-radius: 0; - } -} -.ajax-load-more .alm-tabbed-wrapper--nav button { - display: block; - width: 100%; - border: none; - background: none; - line-height: 1.4; - padding: 12px 10px; - text-align: left; - font-weight: 400; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - background: #f7f7f7; - border-bottom: 1px solid #e7e7e7; - cursor: pointer; - color: #393d41; -} -.ajax-load-more .alm-tabbed-wrapper--nav button:hover, .ajax-load-more .alm-tabbed-wrapper--nav button:focus { - background-color: #efefef; -} -.ajax-load-more .alm-tabbed-wrapper--nav button i { - opacity: 0.65; - width: 18px; -} -.ajax-load-more .alm-tabbed-wrapper--nav button i.fa-handshake-o { - position: relative; - left: -2px; -} -.ajax-load-more .alm-tabbed-wrapper--nav button.active { - font-weight: 600; - background-color: #fff; - color: #bf3538; - cursor: default; -} -.ajax-load-more .alm-tabbed-wrapper--nav button.active i { - color: #393d41; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--nav button.active { - width: calc(100% + 1px); - } -} -.ajax-load-more .alm-tabbed-wrapper--sections { - flex: 1; - padding: 0 20px 20px; - display: block; - background: #fff; - border: 1px solid #efefef; -} -@media screen and (min-width: 640px) { - .ajax-load-more .alm-tabbed-wrapper--sections { - border-radius: 0 6px 6px 0; - } -} -.ajax-load-more .alm-tabbed-wrapper--section { - display: none; -} -.ajax-load-more .alm-tabbed-wrapper--section.active { - display: block; -} - -.ajax-load-more .builder-option-toggle { - display: flex; - flex-wrap: nowrap; -} -.ajax-load-more .builder-option-toggle input { - border-radius: 3px 0 0 3px; - margin: 0; - width: auto; - flex: 1; -} -.ajax-load-more .builder-option-toggle--buttons { - border-radius: 0 3px 3px 0; - padding: 3px; - width: auto; - border: 1px solid #e7e7e7; - background-color: #fcfcfc; - border-left: none; - display: flex; -} -.ajax-load-more .builder-option-toggle--buttons button { - height: 100%; - border: 1px solid #e7e7e7; - border-left-width: 0; - margin: 0; - font-weight: 600; - font-size: 11px; - text-transform: uppercase; - cursor: pointer; - padding: 0; - margin: 0; - border-radius: 0; - width: 34px; - text-align: center; - display: inline-block; - color: #393d41; - background-color: transparent; -} -.ajax-load-more .builder-option-toggle--buttons button:hover, .ajax-load-more .builder-option-toggle--buttons button:focus { - color: #222; - border-color: #ccc; -} -.ajax-load-more .builder-option-toggle--buttons button:first-child { - border-radius: 3px 0 0 3px; - border-left-width: 1px; -} -.ajax-load-more .builder-option-toggle--buttons button:last-child { - border-radius: 0 3px 3px 0; -} -.ajax-load-more .builder-option-toggle--buttons button.active { - border-color: #838d99; - background-color: #838d99; - color: #fff; - cursor: default; -} - -.alm-cache .cnkt-main { - /* Live Search */ - /* Directory Listing */ -} -.alm-cache .cnkt-main .group .row { - overflow: visible; -} -.alm-cache .cnkt-main .row:first-of-type { - margin-top: 0 !important; -} -.alm-cache .cnkt-main h3.heading { - padding-right: 90px !important; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.alm-cache .cnkt-main .alm-cache-search-wrap { - position: relative; - display: block; - margin: 0 0 15px; -} -.alm-cache .cnkt-main .alm-cache-search-wrap input { - width: 100% !important; - margin: 0 !important; - padding: 13px 20px; - display: block; - font-size: 15px; - border-radius: 3px; - background-color: #f7f7f7; -} -.alm-cache .cnkt-main .alm-cache-search-wrap i { - position: absolute; - right: 15px; - top: 50%; - transform: translateY(-50%); - color: #ccc; - font-size: 16px; - z-index: 1; -} -.alm-cache .cnkt-main .alm-cache-listing { - position: relative; -} -.alm-cache .cnkt-main .alm-cache-listing .toggle-all { - right: 0; - top: -45px; -} -.alm-cache .cnkt-main hr { - margin: 32px 0 25px; - border-top-color: #efefef; - border-bottom: none; -} -.alm-cache .cnkt-main .alm-dir-listing { - border: 1px solid #e7e7e7; - border-radius: 3px; - overflow: hidden; - padding: 0; - margin: 10px 0 0; -} -.alm-cache .cnkt-main .alm-dir-listing--nested { - padding: 0 15px 15px; -} -.alm-cache .cnkt-main .alm-dir-listing--nested .alm-dir-listing { - margin: 0; -} -.alm-cache .cnkt-main .alm-dir-listing.deleting { - opacity: 0.5; - background: #fff url(../admin/img/ui/loader-unlimited.gif) no-repeat center center; -} -.alm-cache .cnkt-main .alm-dir-listing .dir-title { - margin: 0 0 5px; - position: relative; -} -.alm-cache .cnkt-main .alm-dir-listing h3.heading { - padding-left: 40px !important; -} -.alm-cache .cnkt-main .alm-dir-listing h3.heading::after { - content: "\f07c"; -} -.alm-cache .cnkt-main .alm-dir-listing h3.heading.open:after { - content: "\f07b"; -} -.alm-cache .cnkt-main .alm-dir-listing .dir-title .delete { - position: absolute; - right: 10px; - top: 10px; - font-weight: 400; - font-size: 13px; - text-decoration: none; - padding: 5px 12px; - border: 1px solid #e7e7e7; - color: #ccc; - border-radius: 3px; -} -.alm-cache .cnkt-main .alm-dir-listing:hover .dir-title .delete { - border-color: #e7e7e7; - background-color: #fff; - color: #666; -} -.alm-cache .cnkt-main .alm-dir-listing:hover .dir-title .delete:hover, .alm-cache .cnkt-main .alm-dir-listing:hover .dir-title .delete:focus { - background-color: #c94141; - border-color: #c94141; - color: #fff; -} -.alm-cache .cnkt-main .cache-page-title { - font-size: 12px; - display: block; - width: 100%; - padding: 0 7px 10px; - font-weight: 700; - text-transform: uppercase; -} -.alm-cache .cnkt-main .cache-page-wrap { - padding: 5px 12px 20px; -} -ß .alm-cache .cnkt-main .cache-page-wrap ul { - max-height: 300px; - overflow-y: auto; - scroll-behavior: smooth; -} -.alm-cache .cnkt-main .cache-full-path { - display: none; -} -.alm-cache .cnkt-main .cache-full-path-button { - border: 1px solid #efefef; - border-radius: 3px; - background: #fff; - cursor: pointer; - margin: 0 2px 0 0; - text-align: left; - color: #878787; - font-size: 13px; - padding: 2px 4px; -} -.alm-cache .cnkt-main .cache-full-path-button:hover, .alm-cache .cnkt-main .cache-full-path-button:focus { - border-color: #e7e7e7; -} -.alm-cache .cnkt-main .alm-dir-listing ul.cache-details { - display: block; - padding: 20px 15px 0; - margin: 0; - border: none; -} -.alm-cache .cnkt-main .alm-dir-listing ul.cache-details li { - position: relative; - display: block; - width: 100%; - background: none !important; - padding: 0 10px 0 28px; - margin: 0 0 10px; -} -.alm-cache .cnkt-main .alm-dir-listing ul.cache-details li i { - color: #999; - font-size: 16px; - position: absolute; - top: 1px; - left: 5px; -} -.alm-cache .cnkt-main .alm-dir-listing ul.cache-details li a { - word-break: break-word; -} -.alm-cache .cnkt-main p.cache-stats { - min-height: 38px; - line-height: 37px; - display: block; - padding: 0; - margin: 0; -} -.alm-cache .cnkt-main p.cache-stats span { - display: inline-block; - width: 38px; - height: 38px; - line-height: 36px; - text-align: center; - margin: 0 9px 0 0; - font-weight: 700; - font-size: 15px; - border-radius: 2px; - background: #a4a5e2; - background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a4a5e2", endColorstr="#a4a5e2", GradientType=0); - border: 1px solid #8586be; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); - color: #fff; - text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); -} - -.ajax-load-more .CodeMirror { - height: auto; - border-radius: 3px; - padding: 0; - background: #f7f7f7; - border: 1px solid #e7e7e7; - color: #999; - line-height: 1.5; - font-size: 13px; -} -.ajax-load-more .CodeMirror.CodeMirror-focused { - border-color: #3d8ed0; - box-shadow: 0 0 4px 1px rgba(61, 142, 208, 0.15); -} -.ajax-load-more .CodeMirror pre { - padding: 0 10px; -} -.ajax-load-more .CodeMirror .CodeMirror-scroll { - padding-bottom: 50px !important; -} - -.ajax-load-more .cm-readonly .CodeMirror { - opacity: 0.75; -} -.ajax-load-more .cm-readonly .CodeMirror pre { - cursor: default !important; -} - -.CodeMirror-lines { - padding: 10px !important; -} - -.CodeMirror-linenumber { - padding: 0 10px !important; - line-height: 1.25 !important; - color: #ccc !important; -} - -.CodeMirror-linenumber.CodeMirror-gutter-elt { - padding: 0 20px 0 0 !important; -} - -.ajax-load-more .sm-margin .CodeMirror { - margin: 0 0 10px; -} - -.ajax-load-more .cm-readonly p.warning-callout { - margin: -10px 0 10px; -} - -.ajax-load-more .CodeMirror.loading { - background: #f7f7f7 url(../admin/img/ui/loader-unlimited.gif) no-repeat center center; - opacity: 0.6; -} - -.ajax-load-more .cm-s-pastel-on-dark.CodeMirror { - /* Bkg color */ - background: #333; -} - -.ajax-load-more .CodeMirror-gutters { - /* Line Number color */ - background: #fff; - border-right: 1px solid #e7e7e7; - border-radius: 2px; -} - -.ajax-load-more .CodeMirror-scroll { - overflow-y: hidden; - overflow-x: auto; -} - -.ajax-load-more .cm-tag { - /*
<\\/p>)+/g, '');\n\n // Is this a paging instance.\n var paging = element === null || element === void 0 ? void 0 : element.querySelector('.alm-paging-content');\n if (paging) {\n paging.innerHTML = html;\n } else {\n element.innerHTML = html;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/noResults.js?"); - -/***/ }), +var implementation = __webpack_require__(648); -/***/ "./src/frontend/js/functions/parsers.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/functions/parsers.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +module.exports = Function.prototype.bind || implementation; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ domParser: function() { return /* binding */ domParser; },\n/* harmony export */ tableParser: function() { return /* binding */ tableParser; }\n/* harmony export */ });\n/* harmony import */ var _functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/stripEmptyNodes */ \"./src/frontend/js/functions/stripEmptyNodes.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n/**\n * Convert a plain text string into an array of HTML nodes.\n *\n * @param {string} html The HTML string\n * @param {string} type The element type.\n * @return {Array} The HTML nodes as an array.\n * @since 5.0\n */\nfunction domParser() {\n var _data$body;\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text/html';\n if (!html) {\n return [];\n }\n var parser = new DOMParser();\n var data = parser.parseFromString(html, type);\n var nodes = data === null || data === void 0 || (_data$body = data.body) === null || _data$body === void 0 ? void 0 : _data$body.childNodes;\n return nodes ? (0,_functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_toConsumableArray(nodes)) : [];\n}\n\n/**\n * Convert retun table data into an array of HTML elements.\n *\n * @param {string} html Plain text HTML.\n * @return {Array} Array of HTML elements.\n * @since 5.0\n */\nfunction tableParser() {\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n if (!html) {\n return [];\n }\n // Create table element and add results to table body.\n var tbody = document.createElement('tbody');\n tbody.innerHTML = html;\n return [tbody];\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/parsers.js?"); /***/ }), -/***/ "./src/frontend/js/functions/queryParams.js": -/*!**************************************************!*\ - !*** ./src/frontend/js/functions/queryParams.js ***! - \**************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 210: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getAjaxParams: function() { return /* binding */ getAjaxParams; },\n/* harmony export */ getRestAPIParams: function() { return /* binding */ getRestAPIParams; },\n/* harmony export */ getTypeParams: function() { return /* binding */ getTypeParams; }\n/* harmony export */ });\n/* harmony import */ var _addons_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addons/cache */ \"./src/frontend/js/addons/cache.js\");\n\n\n/**\n * Build the data object to send with the Ajax request.\n *\n * @param {Object} alm The ALM object.\n * @param {string} queryType The query type.\n * @return {Object} The data object.\n * @since 3.6\n */\nfunction getAjaxParams(alm, queryType) {\n var addons = alm.addons,\n extensions = alm.extensions;\n\n // Defaults\n var data = {\n action: 'alm_get_posts',\n query_type: queryType,\n id: alm.id,\n post_id: parseInt(alm.post_id),\n slug: alm.slug,\n canonical_url: encodeURIComponent(alm.canonical_url),\n posts_per_page: parseInt(alm.posts_per_page),\n page: parseInt(alm.page),\n offset: parseInt(alm.offset),\n post_type: alm.post_type,\n repeater: alm.repeater,\n seo_start_page: alm.start_page\n };\n\n // Addons & Extensions\n\n if (extensions.acf) {\n data.acf = getTypeParams(alm, 'acf');\n if (extensions.acf_field_type !== 'relationship') {\n data.action = 'alm_acf';\n }\n }\n if (addons.comments) {\n data.comments = getTypeParams(alm, 'comments');\n data.posts_per_page = addons.comments_per_page;\n data.action = 'alm_comments';\n }\n if (addons.cta) {\n data.cta = getTypeParams(alm, 'cta');\n }\n if (addons.filters) {\n data.filters = addons.filters;\n data.filters_startpage = addons.filters_startpage;\n data.filters_target = addons.filters_target;\n data.facets = alm.facets;\n }\n if (addons.nextpage) {\n data.nextpage = getTypeParams(alm, 'nextpage');\n data.action = 'alm_nextpage';\n }\n if (addons.paging) {\n data.paging = addons.paging;\n }\n if (addons.preloaded) {\n data.preloaded = addons.preloaded;\n data.preloaded_amount = parseInt(addons.preloaded_amount);\n }\n if (addons.single_post) {\n data.single_post = getTypeParams(alm, 'single_post');\n }\n if (extensions.term_query) {\n data.term_query = getTypeParams(alm, 'term_query');\n data.action = 'alm_get_terms';\n }\n if (alm.extensions.users) {\n data.users = getTypeParams(alm, 'users');\n data.action = 'alm_users';\n }\n if (alm.theme_repeater) {\n data.theme_repeater = alm.theme_repeater;\n }\n\n // Query data params from ALM HTML element.\n if (alm.listing.dataset.lang) {\n data.lang = alm.listing.dataset.lang;\n }\n if (alm.listing.dataset.stickyPosts) {\n data.sticky_posts = alm.listing.dataset.stickyPosts;\n }\n if (alm.listing.dataset.postFormat) {\n data.post_format = alm.listing.dataset.postFormat;\n }\n if (alm.listing.dataset.category) {\n data.category = alm.listing.dataset.category;\n }\n if (alm.listing.dataset.categoryAnd) {\n data.category__and = alm.listing.dataset.categoryAnd;\n }\n if (alm.listing.dataset.categoryNotIn) {\n data.category__not_in = alm.listing.dataset.categoryNotIn;\n }\n if (alm.listing.dataset.tag) {\n data.tag = alm.listing.dataset.tag;\n }\n if (alm.listing.dataset.tagAnd) {\n data.tag__and = alm.listing.dataset.tagAnd;\n }\n if (alm.listing.dataset.tagNotIn) {\n data.tag__not_in = alm.listing.dataset.tagNotIn;\n }\n if (alm.listing.dataset.taxonomy) {\n data.taxonomy = alm.listing.dataset.taxonomy;\n }\n if (alm.listing.dataset.taxonomyTerms) {\n data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;\n }\n if (alm.listing.dataset.taxonomyOperator) {\n data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;\n }\n if (alm.listing.dataset.taxonomyIncludeChildren) {\n data.taxonomy_include_children = alm.listing.dataset.taxonomyIncludeChildren;\n }\n if (alm.listing.dataset.taxonomyRelation) {\n data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;\n }\n if (alm.listing.dataset.sortKey) {\n data.sort_key = alm.listing.dataset.sortKey;\n }\n if (alm.listing.dataset.metaKey) {\n data.meta_key = alm.listing.dataset.metaKey;\n }\n if (alm.listing.dataset.metaValue) {\n data.meta_value = alm.listing.dataset.metaValue;\n }\n if (alm.listing.dataset.metaCompare) {\n data.meta_compare = alm.listing.dataset.metaCompare;\n }\n if (alm.listing.dataset.metaRelation) {\n data.meta_relation = alm.listing.dataset.metaRelation;\n }\n if (alm.listing.dataset.metaType) {\n data.meta_type = alm.listing.dataset.metaType;\n }\n if (alm.listing.dataset.author) {\n data.author = alm.listing.dataset.author;\n }\n if (alm.listing.dataset.year) {\n data.year = alm.listing.dataset.year;\n }\n if (alm.listing.dataset.month) {\n data.month = alm.listing.dataset.month;\n }\n if (alm.listing.dataset.day) {\n data.day = alm.listing.dataset.day;\n }\n if (alm.listing.dataset.order) {\n data.order = alm.listing.dataset.order;\n }\n if (alm.listing.dataset.orderby) {\n data.orderby = alm.listing.dataset.orderby;\n }\n if (alm.listing.dataset.postStatus) {\n data.post_status = alm.listing.dataset.postStatus;\n }\n if (alm.listing.dataset.postIn) {\n data.post__in = alm.listing.dataset.postIn;\n }\n if (alm.listing.dataset.postNotIn) {\n data.post__not_in = alm.listing.dataset.postNotIn;\n }\n if (alm.listing.dataset.exclude) {\n data.exclude = alm.listing.dataset.exclude;\n }\n if (alm.listing.dataset.search) {\n data.search = alm.listing.dataset.search;\n }\n if (alm.listing.dataset.s) {\n data.search = alm.listing.dataset.s;\n }\n if (alm.listing.dataset.customArgs) {\n data.custom_args = alm.listing.dataset.customArgs;\n }\n if (alm.listing.dataset.vars) {\n data.vars = alm.listing.dataset.vars;\n }\n\n // Cache Params\n\n if (addons.cache) {\n data.cache_id = addons.cache_id;\n data.cache_logged_in = addons.cache_logged_in;\n data.cache_slug = (0,_addons_cache__WEBPACK_IMPORTED_MODULE_0__.getCacheSlug)(alm, data);\n }\n return data;\n}\n\n/**\n * Build the query params for content types.\n *\n * @param {Object} alm The ALM object.\n * @param {string} type The query type.\n * @return {Object} The query params.\n */\nfunction getTypeParams(alm, type) {\n var addons = alm.addons,\n extensions = alm.extensions;\n switch (type) {\n case 'acf':\n return {\n acf: 'true',\n post_id: extensions.acf_post_id,\n field_type: extensions.acf_field_type,\n field_name: extensions.acf_field_name,\n parent_field_name: extensions.acf_parent_field_name,\n row_index: extensions.acf_row_index\n };\n case 'comments':\n return {\n comments: 'true',\n post_id: addons.comments_post_id,\n per_page: addons.comments_per_page,\n type: addons.comments_type,\n style: addons.comments_style,\n template: addons.comments_template,\n callback: addons.comments_callback\n };\n case 'cta':\n return {\n cta: 'true',\n cta_position: addons.cta_position,\n cta_repeater: addons.cta_repeater,\n cta_theme_repeater: addons.cta_theme_repeater\n };\n case 'nextpage':\n return {\n nextpage: 'true',\n urls: addons.nextpage_urls,\n scroll: addons.nextpage_scroll,\n post_id: addons.nextpage_post_id,\n startpage: addons.nextpage_startpage,\n nested: alm.nested\n };\n case 'single_post':\n return {\n single_post: 'true',\n id: addons.single_post_id,\n slug: addons.single_post_slug\n };\n case 'term_query':\n return {\n term_query: 'true',\n taxonomy: extensions.term_query_taxonomy,\n hide_empty: extensions.term_query_hide_empty,\n number: extensions.term_query_number\n };\n case 'users':\n return {\n users: 'true',\n role: alm.listing.dataset.usersRole,\n include: alm.listing.dataset.usersInclude,\n exclude: alm.listing.dataset.usersExclude,\n per_page: alm.posts_per_page,\n order: alm.listing.dataset.usersOrder,\n orderby: alm.listing.dataset.usersOrderby\n };\n }\n}\n\n/**\n * Build the REST API data object to send with REST API request.\n *\n * @param {Object} alm The ALM object.\n * @return {Object} The data object.\n * @since 3.6\n */\nfunction getRestAPIParams(alm) {\n var data = {\n id: alm.id,\n post_id: parseInt(alm.post_id),\n posts_per_page: alm.posts_per_page,\n page: alm.page,\n offset: alm.offset,\n slug: alm.slug,\n canonical_url: encodeURIComponent(alm.canonical_url),\n post_type: alm.post_type,\n post_format: alm.listing.dataset.postFormat,\n category: alm.listing.dataset.category,\n category__not_in: alm.listing.dataset.categoryNotIn,\n tag: alm.listing.dataset.tag,\n tag__not_in: alm.listing.dataset.tagNotIn,\n taxonomy: alm.listing.dataset.taxonomy,\n taxonomy_terms: alm.listing.dataset.taxonomyTerms,\n taxonomy_operator: alm.listing.dataset.taxonomyOperator,\n taxonomy_relation: alm.listing.dataset.taxonomyRelation,\n meta_key: alm.listing.dataset.metaKey,\n meta_value: alm.listing.dataset.metaValue,\n meta_compare: alm.listing.dataset.metaCompare,\n meta_relation: alm.listing.dataset.metaRelation,\n meta_type: alm.listing.dataset.metaType,\n author: alm.listing.dataset.author,\n year: alm.listing.dataset.year,\n month: alm.listing.dataset.month,\n day: alm.listing.dataset.day,\n post_status: alm.listing.dataset.postStatus,\n order: alm.listing.dataset.order,\n orderby: alm.listing.dataset.orderby,\n post__in: alm.listing.dataset.postIn,\n post__not_in: alm.listing.dataset.postNotIn,\n search: alm.listing.dataset.search,\n s: alm.listing.dataset.s,\n custom_args: alm.listing.dataset.customArgs,\n vars: alm.listing.dataset.vars,\n lang: alm.lang,\n preloaded: alm.addons.preloaded,\n preloaded_amount: alm.addons.preloaded_amount,\n seo_start_page: alm.start_page\n };\n return data;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/queryParams.js?"); -/***/ }), -/***/ "./src/frontend/js/functions/setContentParams.js": -/*!*******************************************************!*\ - !*** ./src/frontend/js/functions/setContentParams.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +var undefined; + +var $SyntaxError = SyntaxError; +var $Function = Function; +var $TypeError = TypeError; + +// eslint-disable-next-line consistent-return +var getEvalledConstructor = function (expressionSyntax) { + try { + return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); + } catch (e) {} +}; + +var $gOPD = Object.getOwnPropertyDescriptor; +if ($gOPD) { + try { + $gOPD({}, ''); + } catch (e) { + $gOPD = null; // this is IE 8, which has a broken gOPD + } +} + +var throwTypeError = function () { + throw new $TypeError(); +}; +var ThrowTypeError = $gOPD + ? (function () { + try { + // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties + arguments.callee; // IE 8 does not throw here + return throwTypeError; + } catch (calleeThrows) { + try { + // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') + return $gOPD(arguments, 'callee').get; + } catch (gOPDthrows) { + return throwTypeError; + } + } + }()) + : throwTypeError; + +var hasSymbols = __webpack_require__(405)(); +var hasProto = __webpack_require__(185)(); + +var getProto = Object.getPrototypeOf || ( + hasProto + ? function (x) { return x.__proto__; } // eslint-disable-line no-proto + : null +); + +var needsEval = {}; + +var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); + +var INTRINSICS = { + '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, + '%Array%': Array, + '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, + '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, + '%AsyncFromSyncIteratorPrototype%': undefined, + '%AsyncFunction%': needsEval, + '%AsyncGenerator%': needsEval, + '%AsyncGeneratorFunction%': needsEval, + '%AsyncIteratorPrototype%': needsEval, + '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, + '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, + '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, + '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, + '%Boolean%': Boolean, + '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, + '%Date%': Date, + '%decodeURI%': decodeURI, + '%decodeURIComponent%': decodeURIComponent, + '%encodeURI%': encodeURI, + '%encodeURIComponent%': encodeURIComponent, + '%Error%': Error, + '%eval%': eval, // eslint-disable-line no-eval + '%EvalError%': EvalError, + '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, + '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, + '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, + '%Function%': $Function, + '%GeneratorFunction%': needsEval, + '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, + '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, + '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, + '%isFinite%': isFinite, + '%isNaN%': isNaN, + '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%JSON%': typeof JSON === 'object' ? JSON : undefined, + '%Map%': typeof Map === 'undefined' ? undefined : Map, + '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), + '%Math%': Math, + '%Number%': Number, + '%Object%': Object, + '%parseFloat%': parseFloat, + '%parseInt%': parseInt, + '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, + '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, + '%RangeError%': RangeError, + '%ReferenceError%': ReferenceError, + '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, + '%RegExp%': RegExp, + '%Set%': typeof Set === 'undefined' ? undefined : Set, + '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), + '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, + '%String%': String, + '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, + '%Symbol%': hasSymbols ? Symbol : undefined, + '%SyntaxError%': $SyntaxError, + '%ThrowTypeError%': ThrowTypeError, + '%TypedArray%': TypedArray, + '%TypeError%': $TypeError, + '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, + '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, + '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, + '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, + '%URIError%': URIError, + '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, + '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, + '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet +}; + +if (getProto) { + try { + null.error; // eslint-disable-line no-unused-expressions + } catch (e) { + // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 + var errorProto = getProto(getProto(e)); + INTRINSICS['%Error.prototype%'] = errorProto; + } +} + +var doEval = function doEval(name) { + var value; + if (name === '%AsyncFunction%') { + value = getEvalledConstructor('async function () {}'); + } else if (name === '%GeneratorFunction%') { + value = getEvalledConstructor('function* () {}'); + } else if (name === '%AsyncGeneratorFunction%') { + value = getEvalledConstructor('async function* () {}'); + } else if (name === '%AsyncGenerator%') { + var fn = doEval('%AsyncGeneratorFunction%'); + if (fn) { + value = fn.prototype; + } + } else if (name === '%AsyncIteratorPrototype%') { + var gen = doEval('%AsyncGenerator%'); + if (gen && getProto) { + value = getProto(gen.prototype); + } + } + + INTRINSICS[name] = value; + + return value; +}; + +var LEGACY_ALIASES = { + '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], + '%ArrayPrototype%': ['Array', 'prototype'], + '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], + '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], + '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], + '%ArrayProto_values%': ['Array', 'prototype', 'values'], + '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], + '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], + '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], + '%BooleanPrototype%': ['Boolean', 'prototype'], + '%DataViewPrototype%': ['DataView', 'prototype'], + '%DatePrototype%': ['Date', 'prototype'], + '%ErrorPrototype%': ['Error', 'prototype'], + '%EvalErrorPrototype%': ['EvalError', 'prototype'], + '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], + '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], + '%FunctionPrototype%': ['Function', 'prototype'], + '%Generator%': ['GeneratorFunction', 'prototype'], + '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], + '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], + '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], + '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], + '%JSONParse%': ['JSON', 'parse'], + '%JSONStringify%': ['JSON', 'stringify'], + '%MapPrototype%': ['Map', 'prototype'], + '%NumberPrototype%': ['Number', 'prototype'], + '%ObjectPrototype%': ['Object', 'prototype'], + '%ObjProto_toString%': ['Object', 'prototype', 'toString'], + '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], + '%PromisePrototype%': ['Promise', 'prototype'], + '%PromiseProto_then%': ['Promise', 'prototype', 'then'], + '%Promise_all%': ['Promise', 'all'], + '%Promise_reject%': ['Promise', 'reject'], + '%Promise_resolve%': ['Promise', 'resolve'], + '%RangeErrorPrototype%': ['RangeError', 'prototype'], + '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], + '%RegExpPrototype%': ['RegExp', 'prototype'], + '%SetPrototype%': ['Set', 'prototype'], + '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], + '%StringPrototype%': ['String', 'prototype'], + '%SymbolPrototype%': ['Symbol', 'prototype'], + '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], + '%TypedArrayPrototype%': ['TypedArray', 'prototype'], + '%TypeErrorPrototype%': ['TypeError', 'prototype'], + '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], + '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], + '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], + '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], + '%URIErrorPrototype%': ['URIError', 'prototype'], + '%WeakMapPrototype%': ['WeakMap', 'prototype'], + '%WeakSetPrototype%': ['WeakSet', 'prototype'] +}; + +var bind = __webpack_require__(612); +var hasOwn = __webpack_require__(642); +var $concat = bind.call(Function.call, Array.prototype.concat); +var $spliceApply = bind.call(Function.apply, Array.prototype.splice); +var $replace = bind.call(Function.call, String.prototype.replace); +var $strSlice = bind.call(Function.call, String.prototype.slice); +var $exec = bind.call(Function.call, RegExp.prototype.exec); + +/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ +var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; +var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ +var stringToPath = function stringToPath(string) { + var first = $strSlice(string, 0, 1); + var last = $strSlice(string, -1); + if (first === '%' && last !== '%') { + throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); + } else if (last === '%' && first !== '%') { + throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); + } + var result = []; + $replace(string, rePropName, function (match, number, quote, subString) { + result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; + }); + return result; +}; +/* end adaptation */ + +var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { + var intrinsicName = name; + var alias; + if (hasOwn(LEGACY_ALIASES, intrinsicName)) { + alias = LEGACY_ALIASES[intrinsicName]; + intrinsicName = '%' + alias[0] + '%'; + } + + if (hasOwn(INTRINSICS, intrinsicName)) { + var value = INTRINSICS[intrinsicName]; + if (value === needsEval) { + value = doEval(intrinsicName); + } + if (typeof value === 'undefined' && !allowMissing) { + throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); + } + + return { + alias: alias, + name: intrinsicName, + value: value + }; + } + + throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); +}; + +module.exports = function GetIntrinsic(name, allowMissing) { + if (typeof name !== 'string' || name.length === 0) { + throw new $TypeError('intrinsic name must be a non-empty string'); + } + if (arguments.length > 1 && typeof allowMissing !== 'boolean') { + throw new $TypeError('"allowMissing" argument must be a boolean'); + } + + if ($exec(/^%?[^%]*%?$/, name) === null) { + throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); + } + var parts = stringToPath(name); + var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; + + var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); + var intrinsicRealName = intrinsic.name; + var value = intrinsic.value; + var skipFurtherCaching = false; + + var alias = intrinsic.alias; + if (alias) { + intrinsicBaseName = alias[0]; + $spliceApply(parts, $concat([0, 1], alias)); + } + + for (var i = 1, isOwn = true; i < parts.length; i += 1) { + var part = parts[i]; + var first = $strSlice(part, 0, 1); + var last = $strSlice(part, -1); + if ( + ( + (first === '"' || first === "'" || first === '`') + || (last === '"' || last === "'" || last === '`') + ) + && first !== last + ) { + throw new $SyntaxError('property names with quotes must have matching quotes'); + } + if (part === 'constructor' || !isOwn) { + skipFurtherCaching = true; + } + + intrinsicBaseName += '.' + part; + intrinsicRealName = '%' + intrinsicBaseName + '%'; + + if (hasOwn(INTRINSICS, intrinsicRealName)) { + value = INTRINSICS[intrinsicRealName]; + } else if (value != null) { + if (!(part in value)) { + if (!allowMissing) { + throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); + } + return void undefined; + } + if ($gOPD && (i + 1) >= parts.length) { + var desc = $gOPD(value, part); + isOwn = !!desc; + + // By convention, when a data property is converted to an accessor + // property to emulate a data property that does not suffer from + // the override mistake, that accessor's getter is marked with + // an `originalValue` property. Here, when we detect this, we + // uphold the illusion by pretending to see that original data + // property, i.e., returning the value rather than the getter + // itself. + if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { + value = desc.get; + } else { + value = value[part]; + } + } else { + isOwn = hasOwn(value, part); + value = value[part]; + } + + if (isOwn && !skipFurtherCaching) { + INTRINSICS[intrinsicRealName] = value; + } + } + } + return value; +}; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setContentContainersParams: function() { return /* binding */ setContentContainersParams; }\n/* harmony export */ });\n/**\n * Set accessibility attributes on the containers.\n *\n * @param {Element} container The container element.\n * @param {Element} almListing The Ajax Load More container.\n */\nfunction setContentContainersParams(container, almListing) {\n container.setAttribute('aria-live', 'polite');\n container.setAttribute('aria-atomic', 'true');\n almListing.removeAttribute('aria-live');\n almListing.removeAttribute('aria-atomic');\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/setContentParams.js?"); /***/ }), -/***/ "./src/frontend/js/functions/setFocus.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/functions/setFocus.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 185: +/***/ (function(module) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ setFocus; }\n/* harmony export */ });\n/**\n * Set user focus to improve accessibility after load events.\n *\n * @param {Object} alm ALM object.\n * @param {Element} element The element to focus on.\n * @param {number} total The total number of posts returned.\n * @param {boolean} filtering Is this a filtering event.\n * @since 5.1\n */\nfunction setFocus(alm) {\n var _alm_localize;\n var element = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var total = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!((_alm_localize = alm_localize) !== null && _alm_localize !== void 0 && _alm_localize.a11y_focus) || !element) {\n return;\n }\n\n // WooCommerce||ELementor Add-ons.\n if (alm.addons.woocommerce || alm.addons.elementor) {\n moveFocus(false, false, element, false);\n return;\n }\n if (total < 1) {\n return; // Exit if no posts returned.\n }\n\n if (alm.addons.paging) {\n // Paging.\n moveFocus(alm.init, alm.addons.preloaded, alm.listing, filtering);\n } else if (alm.addons.single_post || alm.addons.nextpage) {\n // Single Posts || Next Page - Set `init` to false to trigger focus.\n moveFocus(false, alm.addons.preloaded, element, filtering);\n } else {\n // Standard.\n moveFocus(alm.init, alm.addons.preloaded, element, filtering);\n }\n}\n\n/**\n * Move user focus to latest elements that have been loaded.\n *\n * @param {boolean} init Initial run true or false.\n * @param {string} preloaded Preloaded true or false.\n * @param {Element} element The container HTML element.\n * @param {boolean} filtering Filtering true or false.\n * @since 5.1\n */\n\nfunction moveFocus() {\n var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var preloaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'false';\n var element = arguments.length > 2 ? arguments[2] : undefined;\n var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!filtering) {\n if ((init || !element) && preloaded !== 'true') {\n return; // Exit if first run\n }\n }\n\n element.setAttribute('tabIndex', '-1'); // Set tabIndex.\n element.style.outline = 'none'; // Set element outline.\n\n // Add slight delay for elements to settle into DOM.\n setTimeout(function () {\n element.focus({\n preventScroll: true\n });\n }, 25);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/setFocus.js?"); -/***/ }), - -/***/ "./src/frontend/js/functions/srcsetPolyfill.js": -/*!*****************************************************!*\ - !*** ./src/frontend/js/functions/srcsetPolyfill.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ srcsetPolyfill; }\n/* harmony export */ });\n/**\n * A srcset polyfill to get Masonry and ImagesLoaded working with Safari and Firefox.\n *\n * @param {HTMLElement} container Container HTML element.\n * @param {string} ua The user-agent string.\n * @since 5.0.2\n */\nfunction srcsetPolyfill() {\n var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n if (!container) {\n return false; // Exit if no container.\n }\n\n // Exit if useragent is Chrome, Safari or Windows.\n if (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') !== -1 || ua.indexOf('Firefox') > -1 || ua.indexOf('Windows') > -1) {\n return false;\n }\n\n // Get all images.\n var imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)');\n\n // Loop images.\n for (var i = 0; i < imgs.length; i++) {\n var img = imgs[i];\n img.classList.add('alm-loaded');\n img.outerHTML = img.outerHTML;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/srcsetPolyfill.js?"); +var test = { + foo: {} +}; -/***/ }), +var $Object = Object; -/***/ "./src/frontend/js/functions/stripEmptyNodes.js": -/*!******************************************************!*\ - !*** ./src/frontend/js/functions/stripEmptyNodes.js ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +module.exports = function hasProto() { + return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); +}; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./src/frontend/js/functions/constants.js\");\n\n\n/**\n * Remove empty HTML nodes from array of nodes.\n * Filter out nodes by nodeName.\n *\n * @param {Array} nodes Array of HTML nodes\n * @return {Array} The filtered array of HTML nodes\n * @since 5.1.3\n */\nvar stripEmptyNodes = function stripEmptyNodes() {\n var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return (nodes === null || nodes === void 0 ? void 0 : nodes.length) && nodes.filter(function (node) {\n return _constants__WEBPACK_IMPORTED_MODULE_0__.EXCLUDED_NODES.indexOf(node.nodeName.toLowerCase()) === -1;\n });\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (stripEmptyNodes);\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/stripEmptyNodes.js?"); /***/ }), -/***/ "./src/frontend/js/functions/windowResize.js": -/*!***************************************************!*\ - !*** ./src/frontend/js/functions/windowResize.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 405: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ triggerWindowResize; }\n/* harmony export */ });\n/**\n * Trigger a window resize browser function.\n *\n * @since 5.3.1\n */\nfunction triggerWindowResize() {\n if (typeof Event === 'function') {\n // Modern browsers.\n window.dispatchEvent(new Event('resize'));\n } else {\n // Executed on old browsers and especially IE.\n var resizeEvent = window.document.createEvent('UIEvents');\n resizeEvent.initUIEvent('resize', true, false, window, 0);\n window.dispatchEvent(resizeEvent);\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/windowResize.js?"); - -/***/ }), -/***/ "./src/frontend/js/modules/almDebug.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/modules/almDebug.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ almDebug; }\n/* harmony export */ });\n/**\n * Display Ajax Load More debug results.\n *\n * @see https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug\n * @param {Object} alm ALM object.\n * @since 5.1.6\n */\nfunction almDebug(alm) {\n if (alm && alm.debug) {\n var obj = {\n query: alm.debug,\n localize: alm.localize\n };\n console.log('ALM Debug:', obj); // eslint-disable-line no-console\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/almDebug.js?"); +var origSymbol = typeof Symbol !== 'undefined' && Symbol; +var hasSymbolSham = __webpack_require__(419); -/***/ }), +module.exports = function hasNativeSymbols() { + if (typeof origSymbol !== 'function') { return false; } + if (typeof Symbol !== 'function') { return false; } + if (typeof origSymbol('foo') !== 'symbol') { return false; } + if (typeof Symbol('bar') !== 'symbol') { return false; } -/***/ "./src/frontend/js/modules/fade.js": -/*!*****************************************!*\ - !*** ./src/frontend/js/modules/fade.js ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + return hasSymbolSham(); +}; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almFadeIn: function() { return /* binding */ almFadeIn; },\n/* harmony export */ almFadeOut: function() { return /* binding */ almFadeOut; }\n/* harmony export */ });\n/**\n * Fade element in.\n *\n * @param {HTMLElement} element The HTML element to fade in.\n * @param {number} speed The transition speed.\n * @return {Promise} The Promise object.\n */\nvar almFadeIn = function almFadeIn(element, speed) {\n return new Promise(function (resolve) {\n if (speed === 0) {\n element.style.opacity = 1;\n element.style.height = 'auto';\n resolve(true);\n } else {\n speed = speed / 10;\n var op = 0; // initial opacity\n var timer = setInterval(function () {\n if (op > 0.9) {\n element.style.opacity = 1;\n resolve(true);\n clearInterval(timer);\n }\n element.style.opacity = op;\n op += 0.1;\n }, speed);\n element.style.height = 'auto';\n }\n });\n};\n\n/**\n * Fade element out.\n *\n * @param {HTMLElement} element The HTML element to fade out.\n * @param {number} speed The transition speed.\n * @return {Promise} The Promise object.\n */\nvar almFadeOut = function almFadeOut(element, speed) {\n return new Promise(function (resolve) {\n speed = speed / 10;\n element.style.opacity = 0.5;\n var fadeEffect = setInterval(function () {\n if (element.style.opacity < 0.1) {\n element.style.opacity = 0;\n clearInterval(fadeEffect);\n resolve(true);\n } else {\n element.style.opacity -= 0.1;\n }\n }, speed);\n });\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/fade.js?"); /***/ }), -/***/ "./src/frontend/js/modules/filtering.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/filtering.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 419: +/***/ (function(module) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ almFilter; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\n/* harmony import */ var _tableofcontents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tableofcontents */ \"./src/frontend/js/modules/tableofcontents.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n/**\n * Filter an Ajax Load More instance.\n *\n * @param {string} transition Transition type.\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @since 2.6.1\n */\nfunction almFilter(transition) {\n var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 150;\n var data = arguments.length > 2 ? arguments[2] : undefined;\n var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'filter';\n if (data.target) {\n // Target has been specified.\n var alm = document.querySelectorAll('.ajax-load-more-wrap[data-id=\"' + data.target.toLowerCase() + '\"]');\n if (alm) {\n alm.forEach(function (element) {\n almFilterTransition(transition, speed, data, type, element);\n });\n }\n } else {\n // Target not specified.\n var _alm = document.querySelectorAll('.ajax-load-more-wrap');\n if (_alm) {\n _alm.forEach(function (element) {\n almFilterTransition(transition, speed, data, type, element);\n });\n }\n }\n (0,_tableofcontents__WEBPACK_IMPORTED_MODULE_1__.clearTOC)(); // Clear table of contents if required\n}\n\n/**\n * Transition Ajax Load More\n *\n * @param {string} transition Transition type.\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 2.13.1\n */\nfunction almFilterTransition(transition, speed, data, type, element) {\n if (transition === 'fade' || transition === 'masonry') {\n // Fade, Masonry transition\n\n switch (type) {\n case 'filter':\n element.classList.add('alm-is-filtering');\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeOut)(element, speed);\n break;\n }\n\n // Move to next function\n setTimeout(function () {\n almCompleteFilterTransition(speed, data, type, element);\n }, speed);\n } else {\n // No transition\n element.classList.add('alm-is-filtering');\n almCompleteFilterTransition(speed, data, type, element);\n }\n}\n\n/**\n * Complete the filter transition.\n *\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 3.3\n */\nfunction almCompleteFilterTransition(speed, data, type, element) {\n var btnWrap = element.querySelector('.alm-btn-wrap'); // Get `.alm-btn-wrap` element\n var listing = element.querySelectorAll('.alm-listing'); // Get `.alm-listing` element\n\n if (!listing || !btnWrap) {\n // Exit if elements doesn't exist.\n return false;\n }\n\n // Loop over all .alm-listing divs and clear HTML.\n _toConsumableArray(listing).forEach(function (element) {\n // Is this a paging instance.\n var paging = element.querySelector('.alm-paging-content');\n if (paging) {\n paging.innerHTML = '';\n } else {\n element.innerHTML = '';\n }\n });\n\n // Get Load More button\n var button = btnWrap.querySelector('.alm-load-more-btn');\n if (button) {\n button.classList.remove('done'); // Reset Button\n }\n\n // Clear paging navigation\n var paging = btnWrap.querySelector('.alm-paging');\n if (paging) {\n paging.style.opacity = 0;\n }\n\n // Reset Preloaded Amount\n data.preloadedAmount = 0;\n\n // Dispatch Filters\n almSetFilters(speed, data, type, element);\n}\n\n/**\n * Set filter parameters on .alm-listing element.\n *\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 2.6.1\n */\nfunction almSetFilters(speed, data, type, element) {\n // Get `alm-listing` container.\n var listing = element.querySelector('.alm-listing') || element.querySelector('.alm-comments');\n if (!listing) {\n return false;\n }\n switch (type) {\n case 'filter':\n // Update data attributes\n for (var _i = 0, _Object$entries = Object.entries(data); _i < _Object$entries.length; _i++) {\n var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),\n key = _Object$entries$_i[0],\n value = _Object$entries$_i[1];\n // Convert camelCase data atts back to dashes (-).\n key = key.replace(/\\W+/g, '-').replace(/([a-z\\d])([A-Z])/g, '$1-$2').toLowerCase();\n listing.setAttribute('data-' + key, value);\n }\n // Fade ALM back (Filters only)\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(element, speed);\n break;\n }\n\n // Re-initiate Ajax Load More.\n var target = '';\n if (data.target) {\n // Target has been specified\n target = document.querySelector('.ajax-load-more-wrap[data-id=\"' + data.target + '\"]');\n if (target) {\n window.almInit(target);\n }\n } else {\n // Target not specified\n target = document.querySelector('.ajax-load-more-wrap');\n if (target) {\n window.almInit(target);\n }\n }\n switch (type) {\n case 'filter':\n // Filters Complete (not the add-on)\n if (typeof almFilterComplete === 'function') {\n // Standard Filtering\n almFilterComplete();\n }\n break;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/filtering.js?"); -/***/ }), - -/***/ "./src/frontend/js/modules/insertScript.js": -/*!*************************************************!*\ - !*** ./src/frontend/js/modules/insertScript.js ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Search nodes for tags and run scripts.\n * Scripts cannot run with appendChild or innerHTML so this is necessary to function.\n *\n * @since 5.0\n */\nvar insertScript = {\n /**\n * Initiate the script insertion.\n *\n * @param {Array} nodes The HTML nodes.\n */\n init: function init(nodes) {\n var _this = this;\n if (!(nodes !== null && nodes !== void 0 && nodes.length)) {\n return false;\n }\n nodes.forEach(function (node) {\n _this.check(node);\n });\n },\n /**\n * Parse HTML node from script.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The modified HTML node.\n */\n check: function check(node) {\n if (this.isScript(node) === true) {\n node.parentNode.replaceChild(this.clone(node), node);\n } else {\n var i = 0;\n var children = node.childNodes;\n if (children === undefined) {\n var parser = new DOMParser();\n var data = parser.parseFromString(node, 'text/html');\n if (data) {\n children = data.body.childNodes;\n }\n }\n while (i < children.length) {\n this.replace(children[i++]);\n }\n }\n return node;\n },\n /**\n * Replace the script tag with a clone.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The modified node.\n */\n replace: function replace(node) {\n if (this.isScript(node) === true) {\n node.parentNode.replaceChild(this.clone(node), node);\n } else {\n var i = 0;\n var children = node.childNodes;\n while (i < children.length) {\n this.replace(children[i++]);\n }\n }\n return node;\n },\n /**\n * Clone the tag.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The cloned node.\n */\n clone: function clone(node) {\n var script = document.createElement('script');\n script.text = node.innerHTML;\n for (var i = node.attributes.length - 1; i >= 0; i--) {\n script.setAttribute(node.attributes[i].name, node.attributes[i].value);\n }\n return script;\n },\n /**\n * Is the node a script tag.\n *\n * @param {HTMLElement} node The html node.\n */\n isScript: function isScript(node) {\n return node.tagName === 'SCRIPT';\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (insertScript);\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/insertScript.js?"); -/***/ }), +/* eslint complexity: [2, 18], max-statements: [2, 33] */ +module.exports = function hasSymbols() { + if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } + if (typeof Symbol.iterator === 'symbol') { return true; } -/***/ "./src/frontend/js/modules/lazyImages.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/modules/lazyImages.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + var obj = {}; + var sym = Symbol('test'); + var symObj = Object(sym); + if (typeof sym === 'string') { return false; } -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ lazyImages: function() { return /* binding */ lazyImages; },\n/* harmony export */ lazyImagesReplace: function() { return /* binding */ lazyImagesReplace; }\n/* harmony export */ });\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n/**\n * Lazy load images helper.\n * When a plugin or 3rd party script has hooked into WP Post Thumbnails to provide a lazy load solution, images will not load via Ajax.\n * This helper provides a fix by grabbing the dataset value and making it the src.\n *\n * @param {Object} alm The Ajax Load More object.\n */\nfunction lazyImages(alm) {\n var lazy_images = alm.lazy_images,\n last_loaded = alm.last_loaded;\n if (lazy_images && last_loaded !== null && last_loaded !== void 0 && last_loaded.length) {\n last_loaded.forEach(function (item) {\n lazyImagesReplace(item);\n });\n }\n}\n\n/**\n * Loop all images in container and replace the src.\n *\n * @param {HTMLElement} container The element HTML.\n */\nfunction lazyImagesReplace(container) {\n var images = container.querySelectorAll('img');\n if (images) {\n // Loop all images.\n _toConsumableArray(images).forEach(function (image) {\n if (image) {\n replaceSrc(image);\n }\n });\n }\n}\n\n/**\n * Replace the image src with the value from data-src attributes.\n *\n * @param {HTMLElement} img The HTML image element.\n */\nfunction replaceSrc(img) {\n var _img$dataset, _img$dataset2, _img$dataset3, _img$dataset4;\n if (!img) {\n return;\n }\n if (img !== null && img !== void 0 && (_img$dataset = img.dataset) !== null && _img$dataset !== void 0 && _img$dataset.src) {\n img.src = img.dataset.src;\n }\n if (img !== null && img !== void 0 && (_img$dataset2 = img.dataset) !== null && _img$dataset2 !== void 0 && _img$dataset2.srcset) {\n img.srcset = img.dataset.srcset;\n }\n // Blocksy Pro.\n // @see https://creativethemes.com/blocksy\n if (img !== null && img !== void 0 && (_img$dataset3 = img.dataset) !== null && _img$dataset3 !== void 0 && _img$dataset3.ctLazy) {\n img.src = img.dataset.ctLazy;\n }\n if (img !== null && img !== void 0 && (_img$dataset4 = img.dataset) !== null && _img$dataset4 !== void 0 && _img$dataset4.ctLazySet) {\n img.srcset = img.dataset.ctLazySet;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/lazyImages.js?"); + if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } + if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } -/***/ }), + // temp disabled per https://github.com/ljharb/object.assign/issues/17 + // if (sym instanceof Symbol) { return false; } + // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 + // if (!(symObj instanceof Symbol)) { return false; } -/***/ "./src/frontend/js/modules/loadImage.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/loadImage.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + // if (typeof Symbol.prototype.toString !== 'function') { return false; } + // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ loadImage; }\n/* harmony export */ });\n/* harmony import */ var _functions_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/srcsetPolyfill */ \"./src/frontend/js/functions/srcsetPolyfill.js\");\n/* harmony import */ var _lazyImages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n\n\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n/**\n * Load the image with imagesLoaded\n *\n * @param {Element} container The HTML container.\n * @param {Element} item The element to load.\n * @param {string} ua Browser user-agent.\n * @param {string} rel The loading direction, next or prev.\n * @param {boolean} waitForImages Wait for images to load before loading next item.\n */\nfunction loadImage(container, item, ua) {\n var rel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'next';\n var waitForImages = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n /**\n * Append item to container.\n */\n function appendImage() {\n if (rel === 'prev') {\n container.insertBefore(item, container.childNodes[0]);\n } else {\n container.appendChild(item);\n }\n (0,_lazyImages__WEBPACK_IMPORTED_MODULE_1__.lazyImagesReplace)(item); // Lazy load image fix.\n (0,_functions_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(item, ua); // Safari/Firefox polyfills.\n }\n\n return new Promise(function (resolve) {\n item.style.transition = 'all 0.25s ease'; // Add CSS transition to each item.\n\n if (waitForImages) {\n imagesLoaded(item, function () {\n appendImage();\n resolve(true); // Send Promise callback\n });\n } else {\n appendImage();\n resolve(true); // Send Promise callback\n }\n });\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadImage.js?"); + var symVal = 42; + obj[sym] = symVal; + for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop + if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } -/***/ }), + if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } -/***/ "./src/frontend/js/modules/loadItems.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/loadItems.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + var syms = Object.getOwnPropertySymbols(obj); + if (syms.length !== 1 || syms[0] !== sym) { return false; } -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ loadItems; }\n/* harmony export */ });\n/* harmony import */ var _loadImage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./loadImage */ \"./src/frontend/js/modules/loadImage.js\");\n/* harmony import */ var _functions_setFocus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/setFocus */ \"./src/frontend/js/functions/setFocus.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n/**\n * Load all items after Ajax request.\n *\n * Note: The function is used with WooCommerce and Elementor add-ons.\n *\n * @param {HTMLElement} container The HTML container.\n * @param {Array} items Array of items.\n * @param {Object} alm The ALM object.\n * @param {boolean} waitForImages Wait for images to load before loading next item.\n */\nfunction loadItems(container, items, alm) {\n var waitForImages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n return new Promise(function (resolve) {\n var _alm$rel = alm.rel,\n rel = _alm$rel === void 0 ? 'next' : _alm$rel;\n var total = items.length;\n var index = 0;\n var count = 1;\n\n // Reverse items array if rel is 'prev'.\n items = rel === 'prev' ? items.reverse() : items;\n function loadItem() {\n if (count <= total) {\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n items[index].style.opacity = 0;\n _context.next = 3;\n return (0,_loadImage__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(container, items[index], alm.ua, rel, waitForImages);\n case 3:\n count++;\n index++;\n loadItem();\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function () {\n console.warn('There was an error loading the items.');\n });\n } else {\n // Delay for effect only\n setTimeout(function () {\n items.map(function (item) {\n item.style.opacity = 1;\n return item;\n });\n if (items[0]) {\n var focusItem = rel === 'prev' ? items[items.length - 1] : items[0]; // Get the item to focus.\n (0,_functions_setFocus__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(alm, focusItem, null, false); // Set the focus.\n }\n }, 25);\n resolve(true);\n }\n }\n loadItem();\n });\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadItems.js?"); + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } -/***/ }), + if (typeof Object.getOwnPropertyDescriptor === 'function') { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } + } -/***/ "./src/frontend/js/modules/loadPrevious.js": -/*!*************************************************!*\ - !*** ./src/frontend/js/modules/loadPrevious.js ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + return true; +}; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createLoadPreviousButton: function() { return /* binding */ createLoadPreviousButton; }\n/* harmony export */ });\n/**\n * Create a Load Previous button.\n *\n * @param {Object} alm The Ajax Load More object.\n * @param {Object} container The container element.\n * @param {number} page The previous page number.\n * @param {string} url The previous page url.\n * @param {string} label The label for the button.\n * @since 5.5.0\n */\nfunction createLoadPreviousButton(alm, container) {\n var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var url = arguments.length > 3 ? arguments[3] : undefined;\n var label = arguments.length > 4 ? arguments[4] : undefined;\n if (!label) {\n return;\n }\n\n // Create wrapper.\n var btnWrap = document.createElement('div');\n btnWrap.classList.add('alm-btn-wrap--prev');\n\n // Create button.\n var button = document.createElement('a');\n button.href = url;\n button.innerHTML = label;\n button.setAttribute('rel', 'prev');\n button.dataset.page = page;\n button.dataset.url = url;\n button.setAttribute('class', \"alm-load-more-btn alm-load-more-btn--prev \".concat(alm.loading_style));\n\n // Click event.\n button.addEventListener('click', function (e) {\n alm.AjaxLoadMore.prevClick(e);\n });\n\n // Set alm previous button to this button.\n alm.AjaxLoadMore.setPreviousButton(button);\n\n // Append button to wrap.\n btnWrap.appendChild(button);\n\n // Get parent element.\n var parent = container.parentNode;\n\n // Append button before container.\n parent.insertBefore(btnWrap, container);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadPrevious.js?"); /***/ }), -/***/ "./src/frontend/js/modules/masonry.js": -/*!********************************************!*\ - !*** ./src/frontend/js/modules/masonry.js ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 642: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almMasonry: function() { return /* binding */ almMasonry; },\n/* harmony export */ almMasonryConfig: function() { return /* binding */ almMasonryConfig; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n/**\n * Function to trigger built-in Ajax Load More Masonry.\n *\n * @param {Object} alm ALM object.\n * @param {boolean} init Initial run true or false.\n * @param {boolean} filtering Is this a filtering event.\n * @since 3.1\n */\nfunction almMasonry(alm, init, filtering) {\n if (!alm.masonry) {\n console.warn('Ajax Load More: Unable to locate Masonry settings.');\n }\n var container = alm.listing,\n last_loaded = alm.last_loaded,\n speed = alm.speed;\n return new Promise(function (resolve) {\n var _alm$masonry;\n var selector = alm.masonry.selector;\n var animation = alm.masonry.animation;\n var horizontalOrder = (alm === null || alm === void 0 || (_alm$masonry = alm.masonry) === null || _alm$masonry === void 0 ? void 0 : _alm$masonry.horizontalorder) === 'true' ? true : false;\n var masonry_init = alm.masonry.init;\n var columnWidth = alm.masonry.columnwidth;\n var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay\n var hidden = 'scale(0.5)';\n var visible = 'scale(1)';\n if (animation === 'zoom-out') {\n hidden = 'translateY(-20px) scale(1.25)';\n visible = 'translateY(0) scale(1)';\n }\n if (animation === 'slide-up') {\n hidden = 'translateY(50px)';\n visible = 'translateY(0)';\n }\n if (animation === 'slide-down') {\n hidden = 'translateY(-50px)';\n visible = 'translateY(0)';\n }\n if (animation === 'none') {\n hidden = 'translateY(0)';\n visible = 'translateY(0)';\n }\n\n // columnWidth\n if (columnWidth) {\n if (!isNaN(columnWidth)) {\n columnWidth = parseInt(columnWidth); // Check if number.\n }\n } else {\n columnWidth = selector; // No columnWidth, use the selector\n }\n\n if (!filtering) {\n // First Run.\n if (masonry_init && init) {\n imagesLoaded(container, function () {\n var _window;\n var defaults = {\n itemSelector: selector,\n transitionDuration: duration,\n columnWidth: columnWidth,\n // eslint-disable-line\n horizontalOrder: horizontalOrder,\n // eslint-disable-line\n hiddenStyle: {\n transform: hidden,\n opacity: 0\n },\n visibleStyle: {\n transform: visible,\n opacity: 1\n }\n };\n\n // Get custom Masonry options (https://masonry.desandro.com/options.html).\n var alm_masonry_vars = (_window = window) === null || _window === void 0 ? void 0 : _window.alm_masonry_vars;\n if (alm_masonry_vars) {\n Object.keys(alm_masonry_vars).forEach(function (key) {\n // Loop object\tto create key:prop\n defaults[key] = alm_masonry_vars[key];\n });\n }\n\n // Init Masonry, delay to allow time for items to be added to the page.\n setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n alm.msnry = new Masonry(container, defaults);\n _context.next = 3;\n return (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(container.parentNode, 175);\n case 3:\n resolve(true);\n case 4:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n })), 25);\n });\n } else {\n // Standard / Append content.\n // eslint-disable-next-line no-lonely-if\n if (last_loaded) {\n // ImagesLoaded & appended.\n imagesLoaded(container, function () {\n setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n alm.msnry.appended(last_loaded);\n resolve(true);\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n })), 25);\n });\n }\n }\n } else {\n // Reset instance.\n container.parentNode.style.opacity = 0;\n almMasonry(alm, true, false);\n resolve(true);\n }\n });\n}\n\n/**\n * Set up initial Masonry Configuration.\n *\n * @param {Object} alm ALM Object.\n * @return {Object} Configuration object.\n */\nfunction almMasonryConfig(alm) {\n alm.masonry = {};\n alm.masonry.init = true;\n if (alm.msnry) {\n // destroy masonry if it currently exists.\n alm.msnry.destroy();\n } else {\n alm.msnry = '';\n }\n var masonry_config = JSON.parse(alm.listing.dataset.masonryConfig);\n if (masonry_config) {\n alm.masonry.selector = masonry_config.selector;\n alm.masonry.columnwidth = masonry_config.columnwidth;\n alm.masonry.animation = masonry_config.animation === '' ? 'standard' : masonry_config.animation;\n alm.masonry.horizontalorder = masonry_config.horizontalorder === '' ? 'true' : masonry_config.horizontalorder;\n alm.images_loaded = true;\n alm.transition_delay = 0;\n } else {\n console.warn('Ajax Load More: Unable to locate Masonry configuration settings.');\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/masonry.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/placeholder.js": -/*!************************************************!*\ - !*** ./src/frontend/js/modules/placeholder.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ placeholder; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n/**\n * Show placeholder div.\n *\n * @param {string} type The direction.\n * @param {Object} alm The ALM object.\n */\nfunction placeholder() {\n return _placeholder.apply(this, arguments);\n}\nfunction _placeholder() {\n _placeholder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n var type,\n alm,\n placeholder,\n addons,\n rel,\n _args = arguments;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'show';\n alm = _args.length > 1 ? _args[1] : undefined;\n placeholder = alm.placeholder, addons = alm.addons, rel = alm.rel;\n if (!(!placeholder || addons.paging || rel === 'prev')) {\n _context.next = 5;\n break;\n }\n return _context.abrupt(\"return\", false);\n case 5:\n _context.t0 = type;\n _context.next = _context.t0 === 'hide' ? 8 : 12;\n break;\n case 8:\n _context.next = 10;\n return (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeOut)(placeholder, 175);\n case 10:\n setTimeout(function () {\n placeholder.style.display = 'none';\n }, 75);\n return _context.abrupt(\"break\", 15);\n case 12:\n placeholder.style.display = 'block';\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(placeholder, 175);\n return _context.abrupt(\"break\", 15);\n case 15:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _placeholder.apply(this, arguments);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/placeholder.js?"); -/***/ }), +var bind = __webpack_require__(612); -/***/ "./src/frontend/js/modules/resultsText.js": -/*!************************************************!*\ - !*** ./src/frontend/js/modules/resultsText.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almGetResultsText: function() { return /* binding */ almGetResultsText; },\n/* harmony export */ almInitResultsText: function() { return /* binding */ almInitResultsText; },\n/* harmony export */ almResultsText: function() { return /* binding */ almResultsText; }\n/* harmony export */ });\n/* harmony import */ var _functions_getTotals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/getTotals */ \"./src/frontend/js/functions/getTotals.js\");\n\n\n/**\n * Set the results text if required.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 5.1\n */\nfunction almResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || alm.nested === 'true') {\n return false;\n }\n var resultsType = type === 'nextpage' || type === 'woocommerce' ? type : 'standard';\n almGetResultsText(alm, resultsType);\n}\n\n/**\n * Get values for showing results text.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 4.1\n */\nfunction almGetResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || !alm.localize || alm.nested === 'true') {\n return false;\n }\n var page = 0;\n var pages = 0;\n var post_count = 0;\n var total_posts = 0;\n var posts_per_page = alm.orginal_posts_per_page;\n switch (type) {\n // Nextpage\n case 'nextpage':\n page = parseInt(alm.localize.page);\n post_count = page;\n pages = parseInt(alm.localize.total_posts);\n total_posts = parseInt(pages);\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page);\n break;\n\n // WooCommerce\n case 'woocommerce':\n // Don't do anything\n break;\n default:\n page = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('page', alm.id);\n pages = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('pages', alm.id);\n post_count = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('post_count', alm.id);\n total_posts = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('total_posts', alm.id);\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page);\n }\n}\n\n/**\n * Display `Showing {x} of {y} pages` text.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 4.1\n */\nfunction almInitResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || !alm.localize || alm.nested === 'true') {\n return false;\n }\n var page = 0;\n var pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page);\n var post_count = parseInt(alm.localize.post_count);\n var total_posts = parseInt(alm.localize.total_posts);\n switch (type) {\n case 'nextpage':\n // Nextpage\n page = alm.addons.nextpage_startpage;\n post_count = page;\n pages = total_posts;\n almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts, alm.posts_per_page);\n break;\n case 'preloaded':\n // Preloaded\n page = alm.addons.paging && alm.addons.seo ? alm.start_page + 1 : parseInt(alm.page) + 1;\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, alm.posts_per_page);\n break;\n case 'woocommerce':\n // WooCommerce\n // Don't do anything\n break;\n }\n}\n\n/**\n * Render `Showing {x} of {y} results` text.\n *\n * @param {Element} el The results text HTML element.\n * @param {string} page The current page number.\n * @param {string} pages The total pages.\n * @param {string} post_count Total posts displayed.\n * @param {string} total_posts Total amount of posts in query.\n * @param {string} per_page Total amount of posts per page.\n * @since 4.1\n */\nvar almRenderResultsText = function almRenderResultsText(el, page, pages, post_count, total_posts, per_page) {\n el.forEach(function (result) {\n pages = parseInt(pages);\n var text = pages > 0 ? alm_localize.results_text : alm_localize.no_results_text;\n\n // Paging add-on.\n // Start and End values for posts in view.\n var start = page * per_page - per_page + 1;\n var end_val = page * per_page;\n var end = end_val <= total_posts ? end_val : total_posts;\n if (pages > 0) {\n text = text.replace('{num}', \"\".concat(page, \"\")); // Deprecated\n text = text.replace('{page}', \"\".concat(page, \"\"));\n text = text.replace('{start}', \"\".concat(start, \"\"));\n text = text.replace('{end}', \"\".concat(end, \"\"));\n text = text.replace('{total}', \"\".concat(pages, \"\")); // Deprecated\n text = text.replace('{pages}', \"\".concat(pages, \"\"));\n text = text.replace('{post_count}', \"\".concat(post_count, \"\"));\n text = text.replace('{total_posts}', \"\".concat(total_posts, \"\"));\n result.innerHTML = text;\n } else {\n result.innerHTML = text;\n }\n });\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/resultsText.js?"); /***/ }), -/***/ "./src/frontend/js/modules/setLocalizedVars.js": -/*!*****************************************************!*\ - !*** ./src/frontend/js/modules/setLocalizedVars.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ setLocalizedVars; }\n/* harmony export */ });\n/* harmony import */ var _resultsText__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./resultsText */ \"./src/frontend/js/modules/resultsText.js\");\n\n\n/**\n * Set localized variables\n *\n * @param {Object} alm ALM object\n * @since 4.1\n */\nfunction setLocalizedVars(alm) {\n var addons = alm.addons;\n return new Promise(function (resolve) {\n var type = 'standard';\n if (addons.nextpage) {\n // Nextpage\n type = 'nextpage';\n if (addons.paging) {\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);\n } else {\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(addons.nextpage_startpage) + 1);\n }\n } else if (addons.woocommerce) {\n // WooCommerce\n type = 'woocommerce';\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);\n } else {\n // Standard ALM.\n var page = parseInt(alm.page) + 1 + (addons.preloaded && !addons.paging ? 1 : 0); // Add 1 page for preloaded.\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(page));\n var pages = Math.ceil(alm.totalposts / alm.orginal_posts_per_page);\n alm.AjaxLoadMore.setLocalizedVar('pages', parseInt(pages));\n }\n\n // Total Posts `total_posts`.\n // Only update if !preloaded && !nextpage && !woocommerce\n if (addons.preloaded !== 'true' && !addons.nextpage && !addons.woocommerce) {\n alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts);\n }\n\n // Viewing count.\n alm.AjaxLoadMore.setLocalizedVar('post_count', getPostCount(alm));\n\n // Set Results Text (if required).\n _resultsText__WEBPACK_IMPORTED_MODULE_0__.almResultsText(alm, type);\n resolve(true);\n });\n}\n\n/**\n * Get total post_count.\n *\n * @param {Object} alm ALM object.\n * @return {number} Total post count.\n */\nfunction getPostCount(alm) {\n var postcount = alm.postcount,\n addons = alm.addons,\n start_page = alm.start_page;\n var preloaded_amount = addons.preloaded_amount;\n\n // Construct post count.\n var count = parseInt(postcount) + parseInt(preloaded_amount);\n count = start_page > 1 ? count - parseInt(preloaded_amount) : count; // SEO\n count = addons.filters_startpage > 1 ? count - parseInt(preloaded_amount) : count; // Filters\n count = addons.single_post ? count + 1 : count; // Single Posts\n count = addons.nextpage ? count + 1 : count; // Next Page\n\n return count;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/setLocalizedVars.js?"); +/***/ 564: +/***/ (function(module, exports, __webpack_require__) { -/***/ }), +var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + * imagesLoaded v4.1.4 + * JavaScript is all like "You images are done yet or what?" + * MIT License + */ -/***/ "./src/frontend/js/modules/tableofcontents.js": -/*!****************************************************!*\ - !*** ./src/frontend/js/modules/tableofcontents.js ***! - \****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +( function( window, factory ) { 'use strict'; + // universal module definition -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ clearTOC: function() { return /* binding */ clearTOC; },\n/* harmony export */ tableOfContents: function() { return /* binding */ tableOfContents; }\n/* harmony export */ });\n/* harmony import */ var _ajax_load_more__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ajax-load-more */ \"./src/frontend/js/ajax-load-more.js\");\n/* harmony import */ var _functions_setFocus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/setFocus */ \"./src/frontend/js/functions/setFocus.js\");\n\n\n\n/**\n * Create a numbered table of contents navigation.\n *\n * @param {Object} alm The alm object.\n * @param {boolean} init Init boolean.\n * @param {boolean} from_preloaded Preloaded boolean.\n * @since 5.2\n */\nfunction tableOfContents(alm) {\n var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var from_preloaded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var totalPosts = alm.localize && alm.localize.post_count ? parseInt(alm.localize.post_count) : 0;\n\n // eslint-disable-next-line eqeqeq\n if (totalPosts == 0 && !alm.addons.single_post) {\n // Exit if zero posts and not single posts\n return false;\n }\n if (alm && alm.tableofcontents && alm.transition !== 'masonry') {\n var offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30;\n var startPage = alm.start_page ? parseInt(alm.start_page) : 0;\n var filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0;\n var nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0;\n var page = parseInt(alm.page);\n var preloaded = alm.addons.preloaded ? true : false;\n\n // Exit if Paging or Next Page\n if (alm.addons.paging || alm.addons.nextpage) {\n return false;\n }\n\n // Init.\n if (init) {\n setTimeout(function () {\n // Paged results\n if (alm.addons.seo && startPage > 1 || alm.addons.filters && filterStartPage > 1 || alm.addons.nextpage && nextpageStartPage > 1) {\n // SEO\n if (alm.addons.seo && startPage > 1) {\n for (var i = 0; i < startPage; i++) {\n createTOCButton(alm, i, offset);\n }\n }\n // Filters\n if (alm.addons.filters && filterStartPage > 1) {\n for (var _i = 0; _i < filterStartPage; _i++) {\n createTOCButton(alm, _i, offset);\n }\n }\n // Nextpage\n if (alm.addons.nextpage && nextpageStartPage > 1) {\n for (var _i2 = 0; _i2 < nextpageStartPage; _i2++) {\n createTOCButton(alm, _i2, offset);\n }\n }\n } else {\n if (!from_preloaded && preloaded) {\n page = page + 1;\n }\n createTOCButton(alm, page, offset);\n }\n }, 100);\n } else {\n // Preloaded\n if (preloaded) {\n if (alm.addons.seo && startPage > 0) {\n page = page;\n } else if (alm.addons.filters && filterStartPage > 0) {\n page = page;\n } else {\n page = page + 1;\n }\n }\n createTOCButton(alm, page, offset);\n }\n }\n}\n\n/**\n * Clear table of contents.\n */\nfunction clearTOC() {\n var toc = document.querySelector('.alm-toc');\n if (toc) {\n toc.innerHTML = '';\n }\n}\n\n/**\n * Create Standard Page Button.\n *\n * @param {Object} alm The alm object.\n * @param {string} page Current page.\n * @param {number} offset The page offset.\n */\nfunction createTOCButton(alm, page, offset) {\n if (!alm.tableofcontents) {\n return false;\n }\n page = parseInt(page);\n var posts_per_page = parseInt(alm.posts_per_page);\n\n // Create button.\n var button = document.createElement('button');\n button.type = 'button';\n button.innerHTML = getTOCLabel(alm, page + 1);\n button.dataset.page = alm.addons.single_post_target && alm.init ? page - 1 : page + 1;\n button.dataset.target = (page + 1) * posts_per_page - posts_per_page + 1;\n\n // Add button to TOC.\n alm.tableofcontents.appendChild(button);\n\n // Click event listener.\n button.addEventListener('click', function () {\n var current = this.dataset.page;\n var target = this.dataset.target;\n\n // Get all listing children.\n var children = alm.listing.children;\n\n // Find element.\n var element = children[target - 1];\n\n // Next Page.\n if (alm.addons.nextpage) {\n element = document.querySelector(\".alm-nextpage[data-page=\\\"\".concat(current, \"\\\"]\"));\n }\n // Single Posts.\n if (alm.addons.single_post_target) {\n element = document.querySelector(\".alm-single-post[data-page=\\\"\".concat(current, \"\\\"]\"));\n }\n if (!element) {\n return; // Exit if no target.\n }\n\n var top = typeof _ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.getOffset === 'function' ? (0,_ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.getOffset)(element).top : element.offsetTop;\n (0,_ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.almScroll)(top - offset);\n setTimeout(function () {\n (0,_functions_setFocus__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(alm, element, target, false);\n }, 500);\n });\n}\n\n/**\n * Get Button Label.\n *\n * @param {Object} alm The alm object.\n * @param {string} page The current page.\n * @return {string} The Label.\n */\nfunction getTOCLabel(alm, page) {\n var label = page;\n\n // Single Posts\n if (alm.addons.single_post) {\n var thePage = page - 1;\n var element;\n if (alm.addons.single_post_target) {\n // Special functionality for Single Post with a loading target type\n if (alm.init) {\n thePage = thePage;\n } else {\n thePage = thePage + 1;\n }\n var posts = document.querySelectorAll(\".alm-single-post\");\n if (posts) {\n element = posts[thePage];\n }\n } else {\n element = document.querySelector(\".alm-single-post[data-page=\".concat(page - 1, \"]\"));\n }\n label = element ? element.dataset.title : label;\n }\n\n // Dynamic function name.\n var funcName = \"almTOCLabel_\".concat(alm.id);\n if (typeof window[funcName] === 'function') {\n label = window[funcName](page, label);\n }\n return label;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/tableofcontents.js?"); + /*global define: false, module: false, require: false */ -/***/ }), + if ( true ) { + // AMD + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ + __webpack_require__(158) + ], __WEBPACK_AMD_DEFINE_RESULT__ = (function( EvEmitter ) { + return factory( window, EvEmitter ); + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} -/***/ "./node_modules/call-bind/callBound.js": -/*!*********************************************!*\ - !*** ./node_modules/call-bind/callBound.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +})( typeof window !== 'undefined' ? window : this, -"use strict"; -eval("\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\n\nvar callBind = __webpack_require__(/*! ./ */ \"./node_modules/call-bind/index.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/call-bind/callBound.js?"); +// -------------------------- factory -------------------------- // -/***/ }), +function factory( window, EvEmitter ) { -/***/ "./node_modules/call-bind/index.js": -/*!*****************************************!*\ - !*** ./node_modules/call-bind/index.js ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +'use strict'; -"use strict"; -eval("\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/call-bind/index.js?"); +var $ = window.jQuery; +var console = window.console; -/***/ }), +// -------------------------- helpers -------------------------- // -/***/ "./node_modules/crypto-js/core.js": -/*!****************************************!*\ - !*** ./node_modules/crypto-js/core.js ***! - \****************************************/ -/***/ (function(module, exports, __webpack_require__) { +// extend objects +function extend( a, b ) { + for ( var prop in b ) { + a[ prop ] = b[ prop ]; + } + return a; +} -eval(";(function (root, factory) {\n\tif (true) {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse {}\n}(this, function () {\n\n\t/*globals window, global, require*/\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\n\t var crypto;\n\n\t // Native crypto from window (Browser)\n\t if (typeof window !== 'undefined' && window.crypto) {\n\t crypto = window.crypto;\n\t }\n\n\t // Native crypto in web worker (Browser)\n\t if (typeof self !== 'undefined' && self.crypto) {\n\t crypto = self.crypto;\n\t }\n\n\t // Native crypto from worker\n\t if (typeof globalThis !== 'undefined' && globalThis.crypto) {\n\t crypto = globalThis.crypto;\n\t }\n\n\t // Native (experimental IE 11) crypto from window (Browser)\n\t if (!crypto && typeof window !== 'undefined' && window.msCrypto) {\n\t crypto = window.msCrypto;\n\t }\n\n\t // Native crypto from global (NodeJS)\n\t if (!crypto && typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.crypto) {\n\t crypto = __webpack_require__.g.crypto;\n\t }\n\n\t // Native crypto import via require (NodeJS)\n\t if (!crypto && \"function\" === 'function') {\n\t try {\n\t crypto = __webpack_require__(/*! crypto */ \"?9157\");\n\t } catch (err) {}\n\t }\n\n\t /*\n\t * Cryptographically secure pseudorandom number generator\n\t *\n\t * As Math.random() is cryptographically not safe to use\n\t */\n\t var cryptoSecureRandomInt = function () {\n\t if (crypto) {\n\t // Use getRandomValues method (Browser)\n\t if (typeof crypto.getRandomValues === 'function') {\n\t try {\n\t return crypto.getRandomValues(new Uint32Array(1))[0];\n\t } catch (err) {}\n\t }\n\n\t // Use randomBytes method (NodeJS)\n\t if (typeof crypto.randomBytes === 'function') {\n\t try {\n\t return crypto.randomBytes(4).readInt32LE();\n\t } catch (err) {}\n\t }\n\t }\n\n\t throw new Error('Native crypto module could not be used to get secure random number.');\n\t };\n\n\t /*\n\t * Local polyfill of Object.create\n\n\t */\n\t var create = Object.create || (function () {\n\t function F() {}\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }());\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var j = 0; j < thatSigBytes; j += 4) {\n\t thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t for (var i = 0; i < nBytes; i += 4) {\n\t words.push(cryptoSecureRandomInt());\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t var processedWords;\n\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/crypto-js/core.js?"); +var arraySlice = Array.prototype.slice; -/***/ }), +// turn element or nodeList into an array +function makeArray( obj ) { + if ( Array.isArray( obj ) ) { + // use object if already an array + return obj; + } -/***/ "./node_modules/crypto-js/md5.js": -/*!***************************************!*\ - !*** ./node_modules/crypto-js/md5.js ***! - \***************************************/ -/***/ (function(module, exports, __webpack_require__) { + var isArrayLike = typeof obj == 'object' && typeof obj.length == 'number'; + if ( isArrayLike ) { + // convert nodeList to array + return arraySlice.call( obj ); + } -eval(";(function (root, factory) {\n\tif (true) {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(__webpack_require__(/*! ./core */ \"./node_modules/crypto-js/core.js\"));\n\t}\n\telse {}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Constants table\n\t var T = [];\n\n\t // Compute constants\n\t (function () {\n\t for (var i = 0; i < 64; i++) {\n\t T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n\t }\n\t }());\n\n\t /**\n\t * MD5 hash algorithm.\n\t */\n\t var MD5 = C_algo.MD5 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0x67452301, 0xefcdab89,\n\t 0x98badcfe, 0x10325476\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Swap endian\n\t for (var i = 0; i < 16; i++) {\n\t // Shortcuts\n\t var offset_i = offset + i;\n\t var M_offset_i = M[offset_i];\n\n\t M[offset_i] = (\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n\t );\n\t }\n\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var M_offset_0 = M[offset + 0];\n\t var M_offset_1 = M[offset + 1];\n\t var M_offset_2 = M[offset + 2];\n\t var M_offset_3 = M[offset + 3];\n\t var M_offset_4 = M[offset + 4];\n\t var M_offset_5 = M[offset + 5];\n\t var M_offset_6 = M[offset + 6];\n\t var M_offset_7 = M[offset + 7];\n\t var M_offset_8 = M[offset + 8];\n\t var M_offset_9 = M[offset + 9];\n\t var M_offset_10 = M[offset + 10];\n\t var M_offset_11 = M[offset + 11];\n\t var M_offset_12 = M[offset + 12];\n\t var M_offset_13 = M[offset + 13];\n\t var M_offset_14 = M[offset + 14];\n\t var M_offset_15 = M[offset + 15];\n\n\t // Working varialbes\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\n\t // Computation\n\t a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n\t d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n\t c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n\t b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n\t a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n\t d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n\t c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n\t b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n\t a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n\t d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n\t c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n\t b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n\t a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n\t d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n\t c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n\t b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n\t a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n\t d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n\t c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n\t b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n\t a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n\t d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n\t c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n\t b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n\t a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n\t d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n\t c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n\t b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n\t a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n\t d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n\t c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n\t b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n\t a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n\t d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n\t c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n\t b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n\t a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n\t d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n\t c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n\t b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n\t a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n\t d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n\t c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n\t b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n\t a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n\t d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n\t c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n\t b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n\t a = II(a, b, c, d, M_offset_0, 6, T[48]);\n\t d = II(d, a, b, c, M_offset_7, 10, T[49]);\n\t c = II(c, d, a, b, M_offset_14, 15, T[50]);\n\t b = II(b, c, d, a, M_offset_5, 21, T[51]);\n\t a = II(a, b, c, d, M_offset_12, 6, T[52]);\n\t d = II(d, a, b, c, M_offset_3, 10, T[53]);\n\t c = II(c, d, a, b, M_offset_10, 15, T[54]);\n\t b = II(b, c, d, a, M_offset_1, 21, T[55]);\n\t a = II(a, b, c, d, M_offset_8, 6, T[56]);\n\t d = II(d, a, b, c, M_offset_15, 10, T[57]);\n\t c = II(c, d, a, b, M_offset_6, 15, T[58]);\n\t b = II(b, c, d, a, M_offset_13, 21, T[59]);\n\t a = II(a, b, c, d, M_offset_4, 6, T[60]);\n\t d = II(d, a, b, c, M_offset_11, 10, T[61]);\n\t c = II(c, d, a, b, M_offset_2, 15, T[62]);\n\t b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n\t var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n\t var nBitsTotalL = nBitsTotal;\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n\t (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n\t );\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n\t (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n\t );\n\n\t data.sigBytes = (dataWords.length + 1) * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var hash = this._hash;\n\t var H = hash.words;\n\n\t // Swap endian\n\t for (var i = 0; i < 4; i++) {\n\t // Shortcut\n\t var H_i = H[i];\n\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t function FF(a, b, c, d, x, s, t) {\n\t var n = a + ((b & c) | (~b & d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function GG(a, b, c, d, x, s, t) {\n\t var n = a + ((b & d) | (c & ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function HH(a, b, c, d, x, s, t) {\n\t var n = a + (b ^ c ^ d) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function II(a, b, c, d, x, s, t) {\n\t var n = a + (c ^ (b | ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.MD5('message');\n\t * var hash = CryptoJS.MD5(wordArray);\n\t */\n\t C.MD5 = Hasher._createHelper(MD5);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacMD5(message, key);\n\t */\n\t C.HmacMD5 = Hasher._createHmacHelper(MD5);\n\t}(Math));\n\n\n\treturn CryptoJS.MD5;\n\n}));\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/crypto-js/md5.js?"); + // array of single index + return [ obj ]; +} -/***/ }), +// -------------------------- imagesLoaded -------------------------- // -/***/ "./node_modules/ev-emitter/ev-emitter.js": -/*!***********************************************!*\ - !*** ./node_modules/ev-emitter/ev-emitter.js ***! - \***********************************************/ -/***/ (function(module, exports, __webpack_require__) { +/** + * @param {Array, Element, NodeList, String} elem + * @param {Object or Function} options - if function, use as callback + * @param {Function} onAlways - callback function + */ +function ImagesLoaded( elem, options, onAlways ) { + // coerce ImagesLoaded() without new, to be new ImagesLoaded() + if ( !( this instanceof ImagesLoaded ) ) { + return new ImagesLoaded( elem, options, onAlways ); + } + // use elem as selector string + var queryElem = elem; + if ( typeof elem == 'string' ) { + queryElem = document.querySelectorAll( elem ); + } + // bail if bad element + if ( !queryElem ) { + console.error( 'Bad element for imagesLoaded ' + ( queryElem || elem ) ); + return; + } + + this.elements = makeArray( queryElem ); + this.options = extend( {}, this.options ); + // shift arguments if no options set + if ( typeof options == 'function' ) { + onAlways = options; + } else { + extend( this.options, options ); + } + + if ( onAlways ) { + this.on( 'always', onAlways ); + } + + this.getImages(); + + if ( $ ) { + // add jQuery Deferred object + this.jqDeferred = new $.Deferred(); + } + + // HACK check async to allow time to bind listeners + setTimeout( this.check.bind( this ) ); +} + +ImagesLoaded.prototype = Object.create( EvEmitter.prototype ); + +ImagesLoaded.prototype.options = {}; + +ImagesLoaded.prototype.getImages = function() { + this.images = []; + + // filter & find items if we have an item selector + this.elements.forEach( this.addElementImages, this ); +}; + +/** + * @param {Node} element + */ +ImagesLoaded.prototype.addElementImages = function( elem ) { + // filter siblings + if ( elem.nodeName == 'IMG' ) { + this.addImage( elem ); + } + // get background image on element + if ( this.options.background === true ) { + this.addElementBackgroundImages( elem ); + } + + // find children + // no non-element nodes, #143 + var nodeType = elem.nodeType; + if ( !nodeType || !elementNodeTypes[ nodeType ] ) { + return; + } + var childImgs = elem.querySelectorAll('img'); + // concat childElems to filterFound array + for ( var i=0; i < childImgs.length; i++ ) { + var img = childImgs[i]; + this.addImage( img ); + } + + // get child background images + if ( typeof this.options.background == 'string' ) { + var children = elem.querySelectorAll( this.options.background ); + for ( i=0; i < children.length; i++ ) { + var child = children[i]; + this.addElementBackgroundImages( child ); + } + } +}; + +var elementNodeTypes = { + 1: true, + 9: true, + 11: true +}; + +ImagesLoaded.prototype.addElementBackgroundImages = function( elem ) { + var style = getComputedStyle( elem ); + if ( !style ) { + // Firefox returns null if in a hidden iframe https://bugzil.la/548397 + return; + } + // get url inside url("...") + var reURL = /url\((['"])?(.*?)\1\)/gi; + var matches = reURL.exec( style.backgroundImage ); + while ( matches !== null ) { + var url = matches && matches[2]; + if ( url ) { + this.addBackground( url, elem ); + } + matches = reURL.exec( style.backgroundImage ); + } +}; + +/** + * @param {Image} img + */ +ImagesLoaded.prototype.addImage = function( img ) { + var loadingImage = new LoadingImage( img ); + this.images.push( loadingImage ); +}; + +ImagesLoaded.prototype.addBackground = function( url, elem ) { + var background = new Background( url, elem ); + this.images.push( background ); +}; + +ImagesLoaded.prototype.check = function() { + var _this = this; + this.progressedCount = 0; + this.hasAnyBroken = false; + // complete if no images + if ( !this.images.length ) { + this.complete(); + return; + } + + function onProgress( image, elem, message ) { + // HACK - Chrome triggers event before object properties have changed. #83 + setTimeout( function() { + _this.progress( image, elem, message ); + }); + } + + this.images.forEach( function( loadingImage ) { + loadingImage.once( 'progress', onProgress ); + loadingImage.check(); + }); +}; + +ImagesLoaded.prototype.progress = function( image, elem, message ) { + this.progressedCount++; + this.hasAnyBroken = this.hasAnyBroken || !image.isLoaded; + // progress event + this.emitEvent( 'progress', [ this, image, elem ] ); + if ( this.jqDeferred && this.jqDeferred.notify ) { + this.jqDeferred.notify( this, image ); + } + // check if completed + if ( this.progressedCount == this.images.length ) { + this.complete(); + } + + if ( this.options.debug && console ) { + console.log( 'progress: ' + message, image, elem ); + } +}; + +ImagesLoaded.prototype.complete = function() { + var eventName = this.hasAnyBroken ? 'fail' : 'done'; + this.isComplete = true; + this.emitEvent( eventName, [ this ] ); + this.emitEvent( 'always', [ this ] ); + if ( this.jqDeferred ) { + var jqMethod = this.hasAnyBroken ? 'reject' : 'resolve'; + this.jqDeferred[ jqMethod ]( this ); + } +}; + +// -------------------------- -------------------------- // + +function LoadingImage( img ) { + this.img = img; +} + +LoadingImage.prototype = Object.create( EvEmitter.prototype ); + +LoadingImage.prototype.check = function() { + // If complete is true and browser supports natural sizes, + // try to check for image status manually. + var isComplete = this.getIsImageComplete(); + if ( isComplete ) { + // report based on naturalWidth + this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' ); + return; + } + + // If none of the checks above matched, simulate loading on detached element. + this.proxyImage = new Image(); + this.proxyImage.addEventListener( 'load', this ); + this.proxyImage.addEventListener( 'error', this ); + // bind to image as well for Firefox. #191 + this.img.addEventListener( 'load', this ); + this.img.addEventListener( 'error', this ); + this.proxyImage.src = this.img.src; +}; + +LoadingImage.prototype.getIsImageComplete = function() { + // check for non-zero, non-undefined naturalWidth + // fixes Safari+InfiniteScroll+Masonry bug infinite-scroll#671 + return this.img.complete && this.img.naturalWidth; +}; + +LoadingImage.prototype.confirm = function( isLoaded, message ) { + this.isLoaded = isLoaded; + this.emitEvent( 'progress', [ this, this.img, message ] ); +}; + +// ----- events ----- // + +// trigger specified handler for event type +LoadingImage.prototype.handleEvent = function( event ) { + var method = 'on' + event.type; + if ( this[ method ] ) { + this[ method ]( event ); + } +}; + +LoadingImage.prototype.onload = function() { + this.confirm( true, 'onload' ); + this.unbindEvents(); +}; + +LoadingImage.prototype.onerror = function() { + this.confirm( false, 'onerror' ); + this.unbindEvents(); +}; + +LoadingImage.prototype.unbindEvents = function() { + this.proxyImage.removeEventListener( 'load', this ); + this.proxyImage.removeEventListener( 'error', this ); + this.img.removeEventListener( 'load', this ); + this.img.removeEventListener( 'error', this ); +}; + +// -------------------------- Background -------------------------- // + +function Background( url, element ) { + this.url = url; + this.element = element; + this.img = new Image(); +} + +// inherit LoadingImage prototype +Background.prototype = Object.create( LoadingImage.prototype ); + +Background.prototype.check = function() { + this.img.addEventListener( 'load', this ); + this.img.addEventListener( 'error', this ); + this.img.src = this.url; + // check if image is already complete + var isComplete = this.getIsImageComplete(); + if ( isComplete ) { + this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' ); + this.unbindEvents(); + } +}; + +Background.prototype.unbindEvents = function() { + this.img.removeEventListener( 'load', this ); + this.img.removeEventListener( 'error', this ); +}; + +Background.prototype.confirm = function( isLoaded, message ) { + this.isLoaded = isLoaded; + this.emitEvent( 'progress', [ this, this.element, message ] ); +}; + +// -------------------------- jQuery -------------------------- // + +ImagesLoaded.makeJQueryPlugin = function( jQuery ) { + jQuery = jQuery || window.jQuery; + if ( !jQuery ) { + return; + } + // set local variable + $ = jQuery; + // $().imagesLoaded() + $.fn.imagesLoaded = function( options, callback ) { + var instance = new ImagesLoaded( this, options, callback ); + return instance.jqDeferred.promise( $(this) ); + }; +}; +// try making plugin +ImagesLoaded.makeJQueryPlugin(); + +// -------------------------- -------------------------- // + +return ImagesLoaded; + +}); -eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * EvEmitter v1.1.0\n * Lil' event emitter\n * MIT License\n */\n\n/* jshint unused: true, undef: true, strict: true */\n\n( function( global, factory ) {\n // universal module definition\n /* jshint strict: false */ /* globals define, module, window */\n if ( true ) {\n // AMD - RequireJS\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n\n}( typeof window != 'undefined' ? window : this, function() {\n\n\"use strict\";\n\nfunction EvEmitter() {}\n\nvar proto = EvEmitter.prototype;\n\nproto.on = function( eventName, listener ) {\n if ( !eventName || !listener ) {\n return;\n }\n // set events hash\n var events = this._events = this._events || {};\n // set listeners array\n var listeners = events[ eventName ] = events[ eventName ] || [];\n // only add once\n if ( listeners.indexOf( listener ) == -1 ) {\n listeners.push( listener );\n }\n\n return this;\n};\n\nproto.once = function( eventName, listener ) {\n if ( !eventName || !listener ) {\n return;\n }\n // add event\n this.on( eventName, listener );\n // set once flag\n // set onceEvents hash\n var onceEvents = this._onceEvents = this._onceEvents || {};\n // set onceListeners object\n var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {};\n // set flag\n onceListeners[ listener ] = true;\n\n return this;\n};\n\nproto.off = function( eventName, listener ) {\n var listeners = this._events && this._events[ eventName ];\n if ( !listeners || !listeners.length ) {\n return;\n }\n var index = listeners.indexOf( listener );\n if ( index != -1 ) {\n listeners.splice( index, 1 );\n }\n\n return this;\n};\n\nproto.emitEvent = function( eventName, args ) {\n var listeners = this._events && this._events[ eventName ];\n if ( !listeners || !listeners.length ) {\n return;\n }\n // copy over to avoid interference if .off() in listener\n listeners = listeners.slice(0);\n args = args || [];\n // once stuff\n var onceListeners = this._onceEvents && this._onceEvents[ eventName ];\n\n for ( var i=0; i < listeners.length; i++ ) {\n var listener = listeners[i]\n var isOnce = onceListeners && onceListeners[ listener ];\n if ( isOnce ) {\n // remove listener\n // remove before trigger to prevent recursion\n this.off( eventName, listener );\n // unset once flag\n delete onceListeners[ listener ];\n }\n // trigger listener\n listener.apply( this, args );\n }\n\n return this;\n};\n\nproto.allOff = function() {\n delete this._events;\n delete this._onceEvents;\n};\n\nreturn EvEmitter;\n\n}));\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/ev-emitter/ev-emitter.js?"); /***/ }), -/***/ "./node_modules/focus-options-polyfill/index.js": -/*!******************************************************!*\ - !*** ./node_modules/focus-options-polyfill/index.js ***! - \******************************************************/ +/***/ 792: /***/ (function() { -eval("// focus - focusOptions - preventScroll polyfill\n(function() {\n if (\n typeof window === \"undefined\" ||\n typeof document === \"undefined\" ||\n typeof HTMLElement === \"undefined\"\n ) {\n return;\n }\n\n var supportsPreventScrollOption = false;\n try {\n var focusElem = document.createElement(\"div\");\n focusElem.addEventListener(\n \"focus\",\n function(event) {\n event.preventDefault();\n event.stopPropagation();\n },\n true\n );\n focusElem.focus(\n Object.defineProperty({}, \"preventScroll\", {\n get: function() {\n // Edge v18 gives a false positive for supporting inputs\n if (\n navigator &&\n typeof navigator.userAgent !== 'undefined' &&\n navigator.userAgent &&\n navigator.userAgent.match(/Edge\\/1[7-8]/)) {\n return supportsPreventScrollOption = false\n }\n\n supportsPreventScrollOption = true;\n }\n })\n );\n } catch (e) {}\n\n if (\n HTMLElement.prototype.nativeFocus === undefined &&\n !supportsPreventScrollOption\n ) {\n HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus;\n\n var calcScrollableElements = function(element) {\n var parent = element.parentNode;\n var scrollableElements = [];\n var rootScrollingElement =\n document.scrollingElement || document.documentElement;\n\n while (parent && parent !== rootScrollingElement) {\n if (\n parent.offsetHeight < parent.scrollHeight ||\n parent.offsetWidth < parent.scrollWidth\n ) {\n scrollableElements.push([\n parent,\n parent.scrollTop,\n parent.scrollLeft\n ]);\n }\n parent = parent.parentNode;\n }\n parent = rootScrollingElement;\n scrollableElements.push([parent, parent.scrollTop, parent.scrollLeft]);\n\n return scrollableElements;\n };\n\n var restoreScrollPosition = function(scrollableElements) {\n for (var i = 0; i < scrollableElements.length; i++) {\n scrollableElements[i][0].scrollTop = scrollableElements[i][1];\n scrollableElements[i][0].scrollLeft = scrollableElements[i][2];\n }\n scrollableElements = [];\n };\n\n var patchedFocus = function(args) {\n if (args && args.preventScroll) {\n var evScrollableElements = calcScrollableElements(this);\n if (typeof setTimeout === 'function') {\n var thisElem = this;\n setTimeout(function () {\n thisElem.nativeFocus();\n restoreScrollPosition(evScrollableElements);\n }, 0);\n } else {\n this.nativeFocus();\n restoreScrollPosition(evScrollableElements);\n }\n }\n else {\n this.nativeFocus();\n }\n };\n\n HTMLElement.prototype.focus = patchedFocus;\n }\n})();\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/focus-options-polyfill/index.js?"); - -/***/ }), - -/***/ "./node_modules/function-bind/implementation.js": -/*!******************************************************!*\ - !*** ./node_modules/function-bind/implementation.js ***! - \******************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slice.call(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n } else {\n return target.apply(\n that,\n args.concat(slice.call(arguments))\n );\n }\n };\n\n var boundLength = Math.max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs.push('$' + i);\n }\n\n bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/function-bind/implementation.js?"); +// extracted by mini-css-extract-plugin /***/ }), -/***/ "./node_modules/function-bind/index.js": -/*!*********************************************!*\ - !*** ./node_modules/function-bind/index.js ***! - \*********************************************/ +/***/ 631: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -"use strict"; -eval("\n\nvar implementation = __webpack_require__(/*! ./implementation */ \"./node_modules/function-bind/implementation.js\");\n\nmodule.exports = Function.prototype.bind || implementation;\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/function-bind/index.js?"); - -/***/ }), - -/***/ "./node_modules/get-intrinsic/index.js": -/*!*********************************************!*\ - !*** ./node_modules/get-intrinsic/index.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +var hasMap = typeof Map === 'function' && Map.prototype; +var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; +var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; +var mapForEach = hasMap && Map.prototype.forEach; +var hasSet = typeof Set === 'function' && Set.prototype; +var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; +var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; +var setForEach = hasSet && Set.prototype.forEach; +var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; +var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; +var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; +var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; +var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; +var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; +var booleanValueOf = Boolean.prototype.valueOf; +var objectToString = Object.prototype.toString; +var functionToString = Function.prototype.toString; +var $match = String.prototype.match; +var $slice = String.prototype.slice; +var $replace = String.prototype.replace; +var $toUpperCase = String.prototype.toUpperCase; +var $toLowerCase = String.prototype.toLowerCase; +var $test = RegExp.prototype.test; +var $concat = Array.prototype.concat; +var $join = Array.prototype.join; +var $arrSlice = Array.prototype.slice; +var $floor = Math.floor; +var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; +var gOPS = Object.getOwnPropertySymbols; +var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; +var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; +// ie, `has-tostringtag/shams +var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') + ? Symbol.toStringTag + : null; +var isEnumerable = Object.prototype.propertyIsEnumerable; + +var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( + [].__proto__ === Array.prototype // eslint-disable-line no-proto + ? function (O) { + return O.__proto__; // eslint-disable-line no-proto + } + : null +); + +function addNumericSeparator(num, str) { + if ( + num === Infinity + || num === -Infinity + || num !== num + || (num && num > -1000 && num < 1000) + || $test.call(/e/, str) + ) { + return str; + } + var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; + if (typeof num === 'number') { + var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) + if (int !== num) { + var intStr = String(int); + var dec = $slice.call(str, intStr.length + 1); + return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); + } + } + return $replace.call(str, sepRegex, '$&_'); +} + +var utilInspect = __webpack_require__(654); +var inspectCustom = utilInspect.custom; +var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; + +module.exports = function inspect_(obj, options, depth, seen) { + var opts = options || {}; + + if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { + throw new TypeError('option "quoteStyle" must be "single" or "double"'); + } + if ( + has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' + ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity + : opts.maxStringLength !== null + ) + ) { + throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); + } + var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; + if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { + throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); + } + + if ( + has(opts, 'indent') + && opts.indent !== null + && opts.indent !== '\t' + && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) + ) { + throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); + } + if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { + throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); + } + var numericSeparator = opts.numericSeparator; + + if (typeof obj === 'undefined') { + return 'undefined'; + } + if (obj === null) { + return 'null'; + } + if (typeof obj === 'boolean') { + return obj ? 'true' : 'false'; + } + + if (typeof obj === 'string') { + return inspectString(obj, opts); + } + if (typeof obj === 'number') { + if (obj === 0) { + return Infinity / obj > 0 ? '0' : '-0'; + } + var str = String(obj); + return numericSeparator ? addNumericSeparator(obj, str) : str; + } + if (typeof obj === 'bigint') { + var bigIntStr = String(obj) + 'n'; + return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; + } + + var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; + if (typeof depth === 'undefined') { depth = 0; } + if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { + return isArray(obj) ? '[Array]' : '[Object]'; + } + + var indent = getIndent(opts, depth); + + if (typeof seen === 'undefined') { + seen = []; + } else if (indexOf(seen, obj) >= 0) { + return '[Circular]'; + } + + function inspect(value, from, noIndent) { + if (from) { + seen = $arrSlice.call(seen); + seen.push(from); + } + if (noIndent) { + var newOpts = { + depth: opts.depth + }; + if (has(opts, 'quoteStyle')) { + newOpts.quoteStyle = opts.quoteStyle; + } + return inspect_(value, newOpts, depth + 1, seen); + } + return inspect_(value, opts, depth + 1, seen); + } + + if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable + var name = nameOf(obj); + var keys = arrObjKeys(obj, inspect); + return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); + } + if (isSymbol(obj)) { + var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); + return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; + } + if (isElement(obj)) { + var s = '<' + $toLowerCase.call(String(obj.nodeName)); + var attrs = obj.attributes || []; + for (var i = 0; i < attrs.length; i++) { + s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); + } + s += '>'; + if (obj.childNodes && obj.childNodes.length) { s += '...'; } + s += '' + $toLowerCase.call(String(obj.nodeName)) + '>'; + return s; + } + if (isArray(obj)) { + if (obj.length === 0) { return '[]'; } + var xs = arrObjKeys(obj, inspect); + if (indent && !singleLineValues(xs)) { + return '[' + indentedJoin(xs, indent) + ']'; + } + return '[ ' + $join.call(xs, ', ') + ' ]'; + } + if (isError(obj)) { + var parts = arrObjKeys(obj, inspect); + if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { + return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; + } + if (parts.length === 0) { return '[' + String(obj) + ']'; } + return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; + } + if (typeof obj === 'object' && customInspect) { + if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { + return utilInspect(obj, { depth: maxDepth - depth }); + } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { + return obj.inspect(); + } + } + if (isMap(obj)) { + var mapParts = []; + if (mapForEach) { + mapForEach.call(obj, function (value, key) { + mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); + }); + } + return collectionOf('Map', mapSize.call(obj), mapParts, indent); + } + if (isSet(obj)) { + var setParts = []; + if (setForEach) { + setForEach.call(obj, function (value) { + setParts.push(inspect(value, obj)); + }); + } + return collectionOf('Set', setSize.call(obj), setParts, indent); + } + if (isWeakMap(obj)) { + return weakCollectionOf('WeakMap'); + } + if (isWeakSet(obj)) { + return weakCollectionOf('WeakSet'); + } + if (isWeakRef(obj)) { + return weakCollectionOf('WeakRef'); + } + if (isNumber(obj)) { + return markBoxed(inspect(Number(obj))); + } + if (isBigInt(obj)) { + return markBoxed(inspect(bigIntValueOf.call(obj))); + } + if (isBoolean(obj)) { + return markBoxed(booleanValueOf.call(obj)); + } + if (isString(obj)) { + return markBoxed(inspect(String(obj))); + } + if (!isDate(obj) && !isRegExp(obj)) { + var ys = arrObjKeys(obj, inspect); + var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; + var protoTag = obj instanceof Object ? '' : 'null prototype'; + var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; + var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; + var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); + if (ys.length === 0) { return tag + '{}'; } + if (indent) { + return tag + '{' + indentedJoin(ys, indent) + '}'; + } + return tag + '{ ' + $join.call(ys, ', ') + ' }'; + } + return String(obj); +}; + +function wrapQuotes(s, defaultStyle, opts) { + var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; + return quoteChar + s + quoteChar; +} + +function quote(s) { + return $replace.call(String(s), /"/g, '"'); +} + +function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } + +// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives +function isSymbol(obj) { + if (hasShammedSymbols) { + return obj && typeof obj === 'object' && obj instanceof Symbol; + } + if (typeof obj === 'symbol') { + return true; + } + if (!obj || typeof obj !== 'object' || !symToString) { + return false; + } + try { + symToString.call(obj); + return true; + } catch (e) {} + return false; +} + +function isBigInt(obj) { + if (!obj || typeof obj !== 'object' || !bigIntValueOf) { + return false; + } + try { + bigIntValueOf.call(obj); + return true; + } catch (e) {} + return false; +} + +var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; +function has(obj, key) { + return hasOwn.call(obj, key); +} + +function toStr(obj) { + return objectToString.call(obj); +} + +function nameOf(f) { + if (f.name) { return f.name; } + var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); + if (m) { return m[1]; } + return null; +} + +function indexOf(xs, x) { + if (xs.indexOf) { return xs.indexOf(x); } + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) { return i; } + } + return -1; +} + +function isMap(x) { + if (!mapSize || !x || typeof x !== 'object') { + return false; + } + try { + mapSize.call(x); + try { + setSize.call(x); + } catch (s) { + return true; + } + return x instanceof Map; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isWeakMap(x) { + if (!weakMapHas || !x || typeof x !== 'object') { + return false; + } + try { + weakMapHas.call(x, weakMapHas); + try { + weakSetHas.call(x, weakSetHas); + } catch (s) { + return true; + } + return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isWeakRef(x) { + if (!weakRefDeref || !x || typeof x !== 'object') { + return false; + } + try { + weakRefDeref.call(x); + return true; + } catch (e) {} + return false; +} + +function isSet(x) { + if (!setSize || !x || typeof x !== 'object') { + return false; + } + try { + setSize.call(x); + try { + mapSize.call(x); + } catch (m) { + return true; + } + return x instanceof Set; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isWeakSet(x) { + if (!weakSetHas || !x || typeof x !== 'object') { + return false; + } + try { + weakSetHas.call(x, weakSetHas); + try { + weakMapHas.call(x, weakMapHas); + } catch (s) { + return true; + } + return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 + } catch (e) {} + return false; +} + +function isElement(x) { + if (!x || typeof x !== 'object') { return false; } + if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { + return true; + } + return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; +} + +function inspectString(str, opts) { + if (str.length > opts.maxStringLength) { + var remaining = str.length - opts.maxStringLength; + var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); + return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; + } + // eslint-disable-next-line no-control-regex + var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); + return wrapQuotes(s, 'single', opts); +} + +function lowbyte(c) { + var n = c.charCodeAt(0); + var x = { + 8: 'b', + 9: 't', + 10: 'n', + 12: 'f', + 13: 'r' + }[n]; + if (x) { return '\\' + x; } + return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); +} + +function markBoxed(str) { + return 'Object(' + str + ')'; +} + +function weakCollectionOf(type) { + return type + ' { ? }'; +} + +function collectionOf(type, size, entries, indent) { + var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); + return type + ' (' + size + ') {' + joinedEntries + '}'; +} + +function singleLineValues(xs) { + for (var i = 0; i < xs.length; i++) { + if (indexOf(xs[i], '\n') >= 0) { + return false; + } + } + return true; +} + +function getIndent(opts, depth) { + var baseIndent; + if (opts.indent === '\t') { + baseIndent = '\t'; + } else if (typeof opts.indent === 'number' && opts.indent > 0) { + baseIndent = $join.call(Array(opts.indent + 1), ' '); + } else { + return null; + } + return { + base: baseIndent, + prev: $join.call(Array(depth + 1), baseIndent) + }; +} + +function indentedJoin(xs, indent) { + if (xs.length === 0) { return ''; } + var lineJoiner = '\n' + indent.prev + indent.base; + return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; +} + +function arrObjKeys(obj, inspect) { + var isArr = isArray(obj); + var xs = []; + if (isArr) { + xs.length = obj.length; + for (var i = 0; i < obj.length; i++) { + xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; + } + } + var syms = typeof gOPS === 'function' ? gOPS(obj) : []; + var symMap; + if (hasShammedSymbols) { + symMap = {}; + for (var k = 0; k < syms.length; k++) { + symMap['$' + syms[k]] = syms[k]; + } + } + + for (var key in obj) { // eslint-disable-line no-restricted-syntax + if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue + if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue + if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { + // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section + continue; // eslint-disable-line no-restricted-syntax, no-continue + } else if ($test.call(/[^\w$]/, key)) { + xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); + } else { + xs.push(key + ': ' + inspect(obj[key], obj)); + } + } + if (typeof gOPS === 'function') { + for (var j = 0; j < syms.length; j++) { + if (isEnumerable.call(obj, syms[j])) { + xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); + } + } + } + return xs; +} -"use strict"; -eval("\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\nvar hasProto = __webpack_require__(/*! has-proto */ \"./node_modules/has-proto/index.js\")();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar hasOwn = __webpack_require__(/*! has */ \"./node_modules/has/src/index.js\");\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/get-intrinsic/index.js?"); /***/ }), -/***/ "./node_modules/has-proto/index.js": -/*!*****************************************!*\ - !*** ./node_modules/has-proto/index.js ***! - \*****************************************/ +/***/ 798: /***/ (function(module) { "use strict"; -eval("\n\nvar test = {\n\tfoo: {}\n};\n\nvar $Object = Object;\n\nmodule.exports = function hasProto() {\n\treturn { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-proto/index.js?"); -/***/ }), - -/***/ "./node_modules/has-symbols/index.js": -/*!*******************************************!*\ - !*** ./node_modules/has-symbols/index.js ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { -"use strict"; -eval("\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = __webpack_require__(/*! ./shams */ \"./node_modules/has-symbols/shams.js\");\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-symbols/index.js?"); +var replace = String.prototype.replace; +var percentTwenties = /%20/g; -/***/ }), +var Format = { + RFC1738: 'RFC1738', + RFC3986: 'RFC3986' +}; -/***/ "./node_modules/has-symbols/shams.js": -/*!*******************************************!*\ - !*** ./node_modules/has-symbols/shams.js ***! - \*******************************************/ -/***/ (function(module) { +module.exports = { + 'default': Format.RFC3986, + formatters: { + RFC1738: function (value) { + return replace.call(value, percentTwenties, '+'); + }, + RFC3986: function (value) { + return String(value); + } + }, + RFC1738: Format.RFC1738, + RFC3986: Format.RFC3986 +}; -"use strict"; -eval("\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-symbols/shams.js?"); /***/ }), -/***/ "./node_modules/has/src/index.js": -/*!***************************************!*\ - !*** ./node_modules/has/src/index.js ***! - \***************************************/ +/***/ 129: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has/src/index.js?"); - -/***/ }), - -/***/ "./node_modules/imagesloaded/imagesloaded.js": -/*!***************************************************!*\ - !*** ./node_modules/imagesloaded/imagesloaded.js ***! - \***************************************************/ -/***/ (function(module, exports, __webpack_require__) { -eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * imagesLoaded v4.1.4\n * JavaScript is all like \"You images are done yet or what?\"\n * MIT License\n */\n\n( function( window, factory ) { 'use strict';\n // universal module definition\n\n /*global define: false, module: false, require: false */\n\n if ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [\n __webpack_require__(/*! ev-emitter/ev-emitter */ \"./node_modules/ev-emitter/ev-emitter.js\")\n ], __WEBPACK_AMD_DEFINE_RESULT__ = (function( EvEmitter ) {\n return factory( window, EvEmitter );\n }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n\n})( typeof window !== 'undefined' ? window : this,\n\n// -------------------------- factory -------------------------- //\n\nfunction factory( window, EvEmitter ) {\n\n'use strict';\n\nvar $ = window.jQuery;\nvar console = window.console;\n\n// -------------------------- helpers -------------------------- //\n\n// extend objects\nfunction extend( a, b ) {\n for ( var prop in b ) {\n a[ prop ] = b[ prop ];\n }\n return a;\n}\n\nvar arraySlice = Array.prototype.slice;\n\n// turn element or nodeList into an array\nfunction makeArray( obj ) {\n if ( Array.isArray( obj ) ) {\n // use object if already an array\n return obj;\n }\n\n var isArrayLike = typeof obj == 'object' && typeof obj.length == 'number';\n if ( isArrayLike ) {\n // convert nodeList to array\n return arraySlice.call( obj );\n }\n\n // array of single index\n return [ obj ];\n}\n\n// -------------------------- imagesLoaded -------------------------- //\n\n/**\n * @param {Array, Element, NodeList, String} elem\n * @param {Object or Function} options - if function, use as callback\n * @param {Function} onAlways - callback function\n */\nfunction ImagesLoaded( elem, options, onAlways ) {\n // coerce ImagesLoaded() without new, to be new ImagesLoaded()\n if ( !( this instanceof ImagesLoaded ) ) {\n return new ImagesLoaded( elem, options, onAlways );\n }\n // use elem as selector string\n var queryElem = elem;\n if ( typeof elem == 'string' ) {\n queryElem = document.querySelectorAll( elem );\n }\n // bail if bad element\n if ( !queryElem ) {\n console.error( 'Bad element for imagesLoaded ' + ( queryElem || elem ) );\n return;\n }\n\n this.elements = makeArray( queryElem );\n this.options = extend( {}, this.options );\n // shift arguments if no options set\n if ( typeof options == 'function' ) {\n onAlways = options;\n } else {\n extend( this.options, options );\n }\n\n if ( onAlways ) {\n this.on( 'always', onAlways );\n }\n\n this.getImages();\n\n if ( $ ) {\n // add jQuery Deferred object\n this.jqDeferred = new $.Deferred();\n }\n\n // HACK check async to allow time to bind listeners\n setTimeout( this.check.bind( this ) );\n}\n\nImagesLoaded.prototype = Object.create( EvEmitter.prototype );\n\nImagesLoaded.prototype.options = {};\n\nImagesLoaded.prototype.getImages = function() {\n this.images = [];\n\n // filter & find items if we have an item selector\n this.elements.forEach( this.addElementImages, this );\n};\n\n/**\n * @param {Node} element\n */\nImagesLoaded.prototype.addElementImages = function( elem ) {\n // filter siblings\n if ( elem.nodeName == 'IMG' ) {\n this.addImage( elem );\n }\n // get background image on element\n if ( this.options.background === true ) {\n this.addElementBackgroundImages( elem );\n }\n\n // find children\n // no non-element nodes, #143\n var nodeType = elem.nodeType;\n if ( !nodeType || !elementNodeTypes[ nodeType ] ) {\n return;\n }\n var childImgs = elem.querySelectorAll('img');\n // concat childElems to filterFound array\n for ( var i=0; i < childImgs.length; i++ ) {\n var img = childImgs[i];\n this.addImage( img );\n }\n\n // get child background images\n if ( typeof this.options.background == 'string' ) {\n var children = elem.querySelectorAll( this.options.background );\n for ( i=0; i < children.length; i++ ) {\n var child = children[i];\n this.addElementBackgroundImages( child );\n }\n }\n};\n\nvar elementNodeTypes = {\n 1: true,\n 9: true,\n 11: true\n};\n\nImagesLoaded.prototype.addElementBackgroundImages = function( elem ) {\n var style = getComputedStyle( elem );\n if ( !style ) {\n // Firefox returns null if in a hidden iframe https://bugzil.la/548397\n return;\n }\n // get url inside url(\"...\")\n var reURL = /url\\((['\"])?(.*?)\\1\\)/gi;\n var matches = reURL.exec( style.backgroundImage );\n while ( matches !== null ) {\n var url = matches && matches[2];\n if ( url ) {\n this.addBackground( url, elem );\n }\n matches = reURL.exec( style.backgroundImage );\n }\n};\n\n/**\n * @param {Image} img\n */\nImagesLoaded.prototype.addImage = function( img ) {\n var loadingImage = new LoadingImage( img );\n this.images.push( loadingImage );\n};\n\nImagesLoaded.prototype.addBackground = function( url, elem ) {\n var background = new Background( url, elem );\n this.images.push( background );\n};\n\nImagesLoaded.prototype.check = function() {\n var _this = this;\n this.progressedCount = 0;\n this.hasAnyBroken = false;\n // complete if no images\n if ( !this.images.length ) {\n this.complete();\n return;\n }\n\n function onProgress( image, elem, message ) {\n // HACK - Chrome triggers event before object properties have changed. #83\n setTimeout( function() {\n _this.progress( image, elem, message );\n });\n }\n\n this.images.forEach( function( loadingImage ) {\n loadingImage.once( 'progress', onProgress );\n loadingImage.check();\n });\n};\n\nImagesLoaded.prototype.progress = function( image, elem, message ) {\n this.progressedCount++;\n this.hasAnyBroken = this.hasAnyBroken || !image.isLoaded;\n // progress event\n this.emitEvent( 'progress', [ this, image, elem ] );\n if ( this.jqDeferred && this.jqDeferred.notify ) {\n this.jqDeferred.notify( this, image );\n }\n // check if completed\n if ( this.progressedCount == this.images.length ) {\n this.complete();\n }\n\n if ( this.options.debug && console ) {\n console.log( 'progress: ' + message, image, elem );\n }\n};\n\nImagesLoaded.prototype.complete = function() {\n var eventName = this.hasAnyBroken ? 'fail' : 'done';\n this.isComplete = true;\n this.emitEvent( eventName, [ this ] );\n this.emitEvent( 'always', [ this ] );\n if ( this.jqDeferred ) {\n var jqMethod = this.hasAnyBroken ? 'reject' : 'resolve';\n this.jqDeferred[ jqMethod ]( this );\n }\n};\n\n// -------------------------- -------------------------- //\n\nfunction LoadingImage( img ) {\n this.img = img;\n}\n\nLoadingImage.prototype = Object.create( EvEmitter.prototype );\n\nLoadingImage.prototype.check = function() {\n // If complete is true and browser supports natural sizes,\n // try to check for image status manually.\n var isComplete = this.getIsImageComplete();\n if ( isComplete ) {\n // report based on naturalWidth\n this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );\n return;\n }\n\n // If none of the checks above matched, simulate loading on detached element.\n this.proxyImage = new Image();\n this.proxyImage.addEventListener( 'load', this );\n this.proxyImage.addEventListener( 'error', this );\n // bind to image as well for Firefox. #191\n this.img.addEventListener( 'load', this );\n this.img.addEventListener( 'error', this );\n this.proxyImage.src = this.img.src;\n};\n\nLoadingImage.prototype.getIsImageComplete = function() {\n // check for non-zero, non-undefined naturalWidth\n // fixes Safari+InfiniteScroll+Masonry bug infinite-scroll#671\n return this.img.complete && this.img.naturalWidth;\n};\n\nLoadingImage.prototype.confirm = function( isLoaded, message ) {\n this.isLoaded = isLoaded;\n this.emitEvent( 'progress', [ this, this.img, message ] );\n};\n\n// ----- events ----- //\n\n// trigger specified handler for event type\nLoadingImage.prototype.handleEvent = function( event ) {\n var method = 'on' + event.type;\n if ( this[ method ] ) {\n this[ method ]( event );\n }\n};\n\nLoadingImage.prototype.onload = function() {\n this.confirm( true, 'onload' );\n this.unbindEvents();\n};\n\nLoadingImage.prototype.onerror = function() {\n this.confirm( false, 'onerror' );\n this.unbindEvents();\n};\n\nLoadingImage.prototype.unbindEvents = function() {\n this.proxyImage.removeEventListener( 'load', this );\n this.proxyImage.removeEventListener( 'error', this );\n this.img.removeEventListener( 'load', this );\n this.img.removeEventListener( 'error', this );\n};\n\n// -------------------------- Background -------------------------- //\n\nfunction Background( url, element ) {\n this.url = url;\n this.element = element;\n this.img = new Image();\n}\n\n// inherit LoadingImage prototype\nBackground.prototype = Object.create( LoadingImage.prototype );\n\nBackground.prototype.check = function() {\n this.img.addEventListener( 'load', this );\n this.img.addEventListener( 'error', this );\n this.img.src = this.url;\n // check if image is already complete\n var isComplete = this.getIsImageComplete();\n if ( isComplete ) {\n this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );\n this.unbindEvents();\n }\n};\n\nBackground.prototype.unbindEvents = function() {\n this.img.removeEventListener( 'load', this );\n this.img.removeEventListener( 'error', this );\n};\n\nBackground.prototype.confirm = function( isLoaded, message ) {\n this.isLoaded = isLoaded;\n this.emitEvent( 'progress', [ this, this.element, message ] );\n};\n\n// -------------------------- jQuery -------------------------- //\n\nImagesLoaded.makeJQueryPlugin = function( jQuery ) {\n jQuery = jQuery || window.jQuery;\n if ( !jQuery ) {\n return;\n }\n // set local variable\n $ = jQuery;\n // $().imagesLoaded()\n $.fn.imagesLoaded = function( options, callback ) {\n var instance = new ImagesLoaded( this, options, callback );\n return instance.jqDeferred.promise( $(this) );\n };\n};\n// try making plugin\nImagesLoaded.makeJQueryPlugin();\n\n// -------------------------- -------------------------- //\n\nreturn ImagesLoaded;\n\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/imagesloaded/imagesloaded.js?"); -/***/ }), +var stringify = __webpack_require__(261); +var parse = __webpack_require__(235); +var formats = __webpack_require__(798); -/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss": -/*!******************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss ***! - \******************************************************************************************************************************************************************************************************************************************/ -/***/ (function() { +module.exports = { + formats: formats, + parse: parse, + stringify: stringify +}; -eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/scss/ajax-load-more.scss?./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B1%5D!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B3%5D"); /***/ }), -/***/ "./node_modules/object-inspect/index.js": -/*!**********************************************!*\ - !*** ./node_modules/object-inspect/index.js ***! - \**********************************************/ +/***/ 235: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { -eval("var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = __webpack_require__(/*! ./util.inspect */ \"?4f7e\");\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '' + $toLowerCase.call(String(obj.nodeName)) + '>';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/object-inspect/index.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/formats.js": -/*!****************************************!*\ - !*** ./node_modules/qs/lib/formats.js ***! - \****************************************/ -/***/ (function(module) { - "use strict"; -eval("\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/formats.js?"); -/***/ }), -/***/ "./node_modules/qs/lib/index.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/index.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +var utils = __webpack_require__(769); + +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; + +var defaults = { + allowDots: false, + allowPrototypes: false, + allowSparse: false, + arrayLimit: 20, + charset: 'utf-8', + charsetSentinel: false, + comma: false, + decoder: utils.decode, + delimiter: '&', + depth: 5, + ignoreQueryPrefix: false, + interpretNumericEntities: false, + parameterLimit: 1000, + parseArrays: true, + plainObjects: false, + strictNullHandling: false +}; + +var interpretNumericEntities = function (str) { + return str.replace(/(\d+);/g, function ($0, numberStr) { + return String.fromCharCode(parseInt(numberStr, 10)); + }); +}; + +var parseArrayValue = function (val, options) { + if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { + return val.split(','); + } + + return val; +}; + +// This is what browsers will submit when the ✓ character occurs in an +// application/x-www-form-urlencoded body and the encoding of the page containing +// the form is iso-8859-1, or when the submitted form has an accept-charset +// attribute of iso-8859-1. Presumably also with other charsets that do not contain +// the ✓ character, such as us-ascii. +var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') + +// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. +var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') + +var parseValues = function parseQueryStringValues(str, options) { + var obj = { __proto__: null }; + + var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; + var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; + var parts = cleanStr.split(options.delimiter, limit); + var skipIndex = -1; // Keep track of where the utf8 sentinel was found + var i; + + var charset = options.charset; + if (options.charsetSentinel) { + for (i = 0; i < parts.length; ++i) { + if (parts[i].indexOf('utf8=') === 0) { + if (parts[i] === charsetSentinel) { + charset = 'utf-8'; + } else if (parts[i] === isoSentinel) { + charset = 'iso-8859-1'; + } + skipIndex = i; + i = parts.length; // The eslint settings do not allow break; + } + } + } + + for (i = 0; i < parts.length; ++i) { + if (i === skipIndex) { + continue; + } + var part = parts[i]; + + var bracketEqualsPos = part.indexOf(']='); + var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; + + var key, val; + if (pos === -1) { + key = options.decoder(part, defaults.decoder, charset, 'key'); + val = options.strictNullHandling ? null : ''; + } else { + key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); + val = utils.maybeMap( + parseArrayValue(part.slice(pos + 1), options), + function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + } + ); + } + + if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { + val = interpretNumericEntities(val); + } + + if (part.indexOf('[]=') > -1) { + val = isArray(val) ? [val] : val; + } + + if (has.call(obj, key)) { + obj[key] = utils.combine(obj[key], val); + } else { + obj[key] = val; + } + } + + return obj; +}; + +var parseObject = function (chain, val, options, valuesParsed) { + var leaf = valuesParsed ? val : parseArrayValue(val, options); + + for (var i = chain.length - 1; i >= 0; --i) { + var obj; + var root = chain[i]; + + if (root === '[]' && options.parseArrays) { + obj = [].concat(leaf); + } else { + obj = options.plainObjects ? Object.create(null) : {}; + var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; + var index = parseInt(cleanRoot, 10); + if (!options.parseArrays && cleanRoot === '') { + obj = { 0: leaf }; + } else if ( + !isNaN(index) + && root !== cleanRoot + && String(index) === cleanRoot + && index >= 0 + && (options.parseArrays && index <= options.arrayLimit) + ) { + obj = []; + obj[index] = leaf; + } else if (cleanRoot !== '__proto__') { + obj[cleanRoot] = leaf; + } + } + + leaf = obj; + } + + return leaf; +}; + +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { + if (!givenKey) { + return; + } + + // Transform dot notation to bracket notation + var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; + + // The regex chunks + + var brackets = /(\[[^[\]]*])/; + var child = /(\[[^[\]]*])/g; + + // Get the parent + + var segment = options.depth > 0 && brackets.exec(key); + var parent = segment ? key.slice(0, segment.index) : key; + + // Stash the parent if it exists + + var keys = []; + if (parent) { + // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties + if (!options.plainObjects && has.call(Object.prototype, parent)) { + if (!options.allowPrototypes) { + return; + } + } + + keys.push(parent); + } + + // Loop through children appending to the array until we hit depth + + var i = 0; + while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { + i += 1; + if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { + if (!options.allowPrototypes) { + return; + } + } + keys.push(segment[1]); + } + + // If there's a remainder, just add whatever is left + + if (segment) { + keys.push('[' + key.slice(segment.index) + ']'); + } + + return parseObject(keys, val, options, valuesParsed); +}; + +var normalizeParseOptions = function normalizeParseOptions(opts) { + if (!opts) { + return defaults; + } + + if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { + throw new TypeError('Decoder has to be a function.'); + } + + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; + + return { + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, + allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, + arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, + decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, + delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + // eslint-disable-next-line no-implicit-coercion, no-extra-parens + depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, + ignoreQueryPrefix: opts.ignoreQueryPrefix === true, + interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, + parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: opts.parseArrays !== false, + plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (str, opts) { + var options = normalizeParseOptions(opts); + + if (str === '' || str === null || typeof str === 'undefined') { + return options.plainObjects ? Object.create(null) : {}; + } + + var tempObj = typeof str === 'string' ? parseValues(str, options) : str; + var obj = options.plainObjects ? Object.create(null) : {}; + + // Iterate over the keys and setup the new object + + var keys = Object.keys(tempObj); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); + obj = utils.merge(obj, newObj, options); + } + + if (options.allowSparse === true) { + return obj; + } + + return utils.compact(obj); +}; -"use strict"; -eval("\n\nvar stringify = __webpack_require__(/*! ./stringify */ \"./node_modules/qs/lib/stringify.js\");\nvar parse = __webpack_require__(/*! ./parse */ \"./node_modules/qs/lib/parse.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/index.js?"); /***/ }), -/***/ "./node_modules/qs/lib/parse.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/parse.js ***! - \**************************************/ +/***/ 261: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!options.parseArrays && cleanRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== cleanRoot\n && String(index) === cleanRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/parse.js?"); -/***/ }), -/***/ "./node_modules/qs/lib/stringify.js": -/*!******************************************!*\ - !*** ./node_modules/qs/lib/stringify.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +var getSideChannel = __webpack_require__(478); +var utils = __webpack_require__(769); +var formats = __webpack_require__(798); +var has = Object.prototype.hasOwnProperty; + +var arrayPrefixGenerators = { + brackets: function brackets(prefix) { + return prefix + '[]'; + }, + comma: 'comma', + indices: function indices(prefix, key) { + return prefix + '[' + key + ']'; + }, + repeat: function repeat(prefix) { + return prefix; + } +}; + +var isArray = Array.isArray; +var push = Array.prototype.push; +var pushToArray = function (arr, valueOrArray) { + push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); +}; + +var toISO = Date.prototype.toISOString; + +var defaultFormat = formats['default']; +var defaults = { + addQueryPrefix: false, + allowDots: false, + charset: 'utf-8', + charsetSentinel: false, + delimiter: '&', + encode: true, + encoder: utils.encode, + encodeValuesOnly: false, + format: defaultFormat, + formatter: formats.formatters[defaultFormat], + // deprecated + indices: false, + serializeDate: function serializeDate(date) { + return toISO.call(date); + }, + skipNulls: false, + strictNullHandling: false +}; + +var isNonNullishPrimitive = function isNonNullishPrimitive(v) { + return typeof v === 'string' + || typeof v === 'number' + || typeof v === 'boolean' + || typeof v === 'symbol' + || typeof v === 'bigint'; +}; + +var sentinel = {}; + +var stringify = function stringify( + object, + prefix, + generateArrayPrefix, + commaRoundTrip, + strictNullHandling, + skipNulls, + encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + sideChannel +) { + var obj = object; + + var tmpSc = sideChannel; + var step = 0; + var findFlag = false; + while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { + // Where object last appeared in the ref tree + var pos = tmpSc.get(object); + step += 1; + if (typeof pos !== 'undefined') { + if (pos === step) { + throw new RangeError('Cyclic object value'); + } else { + findFlag = true; // Break while + } + } + if (typeof tmpSc.get(sentinel) === 'undefined') { + step = 0; + } + } + + if (typeof filter === 'function') { + obj = filter(prefix, obj); + } else if (obj instanceof Date) { + obj = serializeDate(obj); + } else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = utils.maybeMap(obj, function (value) { + if (value instanceof Date) { + return serializeDate(value); + } + return value; + }); + } + + if (obj === null) { + if (strictNullHandling) { + return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; + } + + obj = ''; + } + + if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { + if (encoder) { + var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); + return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; + } + return [formatter(prefix) + '=' + formatter(String(obj))]; + } + + var values = []; + + if (typeof obj === 'undefined') { + return values; + } + + var objKeys; + if (generateArrayPrefix === 'comma' && isArray(obj)) { + // we need to join elements in + if (encodeValuesOnly && encoder) { + obj = utils.maybeMap(obj, encoder); + } + objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; + } else if (isArray(filter)) { + objKeys = filter; + } else { + var keys = Object.keys(obj); + objKeys = sort ? keys.sort(sort) : keys; + } + + var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix; + + for (var j = 0; j < objKeys.length; ++j) { + var key = objKeys[j]; + var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; + + if (skipNulls && value === null) { + continue; + } + + var keyPrefix = isArray(obj) + ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix + : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']'); + + sideChannel.set(object, step); + var valueSideChannel = getSideChannel(); + valueSideChannel.set(sentinel, sideChannel); + pushToArray(values, stringify( + value, + keyPrefix, + generateArrayPrefix, + commaRoundTrip, + strictNullHandling, + skipNulls, + generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + valueSideChannel + )); + } + + return values; +}; + +var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { + if (!opts) { + return defaults; + } + + if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { + throw new TypeError('Encoder has to be a function.'); + } + + var charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + + var format = formats['default']; + if (typeof opts.format !== 'undefined') { + if (!has.call(formats.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + var formatter = formats.formatters[format]; + + var filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } + + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + format: format, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (object, opts) { + var obj = object; + var options = normalizeStringifyOptions(opts); + + var objKeys; + var filter; + + if (typeof options.filter === 'function') { + filter = options.filter; + obj = filter('', obj); + } else if (isArray(options.filter)) { + filter = options.filter; + objKeys = filter; + } + + var keys = []; + + if (typeof obj !== 'object' || obj === null) { + return ''; + } + + var arrayFormat; + if (opts && opts.arrayFormat in arrayPrefixGenerators) { + arrayFormat = opts.arrayFormat; + } else if (opts && 'indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; + } else { + arrayFormat = 'indices'; + } + + var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; + if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { + throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); + } + var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip; + + if (!objKeys) { + objKeys = Object.keys(obj); + } + + if (options.sort) { + objKeys.sort(options.sort); + } + + var sideChannel = getSideChannel(); + for (var i = 0; i < objKeys.length; ++i) { + var key = objKeys[i]; + + if (options.skipNulls && obj[key] === null) { + continue; + } + pushToArray(keys, stringify( + obj[key], + key, + generateArrayPrefix, + commaRoundTrip, + options.strictNullHandling, + options.skipNulls, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.format, + options.formatter, + options.encodeValuesOnly, + options.charset, + sideChannel + )); + } + + var joined = keys.join(options.delimiter); + var prefix = options.addQueryPrefix === true ? '?' : ''; + + if (options.charsetSentinel) { + if (options.charset === 'iso-8859-1') { + // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark + prefix += 'utf8=%26%2310003%3B&'; + } else { + // encodeURIComponent('✓') + prefix += 'utf8=%E2%9C%93&'; + } + } + + return joined.length > 0 ? prefix + joined : ''; +}; -"use strict"; -eval("\n\nvar getSideChannel = __webpack_require__(/*! side-channel */ \"./node_modules/side-channel/index.js\");\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.strictNullHandling,\n options.skipNulls,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/stringify.js?"); /***/ }), -/***/ "./node_modules/qs/lib/utils.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/utils.js ***! - \**************************************/ +/***/ 769: /***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("\n\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/utils.js?"); -/***/ }), -/***/ "./node_modules/side-channel/index.js": -/*!********************************************!*\ - !*** ./node_modules/side-channel/index.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { +var formats = __webpack_require__(798); + +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; + +var hexTable = (function () { + var array = []; + for (var i = 0; i < 256; ++i) { + array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); + } + + return array; +}()); + +var compactQueue = function compactQueue(queue) { + while (queue.length > 1) { + var item = queue.pop(); + var obj = item.obj[item.prop]; + + if (isArray(obj)) { + var compacted = []; + + for (var j = 0; j < obj.length; ++j) { + if (typeof obj[j] !== 'undefined') { + compacted.push(obj[j]); + } + } + + item.obj[item.prop] = compacted; + } + } +}; + +var arrayToObject = function arrayToObject(source, options) { + var obj = options && options.plainObjects ? Object.create(null) : {}; + for (var i = 0; i < source.length; ++i) { + if (typeof source[i] !== 'undefined') { + obj[i] = source[i]; + } + } + + return obj; +}; + +var merge = function merge(target, source, options) { + /* eslint no-param-reassign: 0 */ + if (!source) { + return target; + } + + if (typeof source !== 'object') { + if (isArray(target)) { + target.push(source); + } else if (target && typeof target === 'object') { + if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { + target[source] = true; + } + } else { + return [target, source]; + } + + return target; + } + + if (!target || typeof target !== 'object') { + return [target].concat(source); + } + + var mergeTarget = target; + if (isArray(target) && !isArray(source)) { + mergeTarget = arrayToObject(target, options); + } + + if (isArray(target) && isArray(source)) { + source.forEach(function (item, i) { + if (has.call(target, i)) { + var targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); + } else { + target.push(item); + } + } else { + target[i] = item; + } + }); + return target; + } + + return Object.keys(source).reduce(function (acc, key) { + var value = source[key]; + + if (has.call(acc, key)) { + acc[key] = merge(acc[key], value, options); + } else { + acc[key] = value; + } + return acc; + }, mergeTarget); +}; + +var assign = function assignSingleSource(target, source) { + return Object.keys(source).reduce(function (acc, key) { + acc[key] = source[key]; + return acc; + }, target); +}; + +var decode = function (str, decoder, charset) { + var strWithoutPlus = str.replace(/\+/g, ' '); + if (charset === 'iso-8859-1') { + // unescape never throws, no try...catch needed: + return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + } + // utf-8 + try { + return decodeURIComponent(strWithoutPlus); + } catch (e) { + return strWithoutPlus; + } +}; + +var encode = function encode(str, defaultEncoder, charset, kind, format) { + // This code was originally written by Brian White (mscdex) for the io.js core querystring library. + // It has been adapted here for stricter adherence to RFC 3986 + if (str.length === 0) { + return str; + } + + var string = str; + if (typeof str === 'symbol') { + string = Symbol.prototype.toString.call(str); + } else if (typeof str !== 'string') { + string = String(str); + } + + if (charset === 'iso-8859-1') { + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + } + + var out = ''; + for (var i = 0; i < string.length; ++i) { + var c = string.charCodeAt(i); + + if ( + c === 0x2D // - + || c === 0x2E // . + || c === 0x5F // _ + || c === 0x7E // ~ + || (c >= 0x30 && c <= 0x39) // 0-9 + || (c >= 0x41 && c <= 0x5A) // a-z + || (c >= 0x61 && c <= 0x7A) // A-Z + || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) + ) { + out += string.charAt(i); + continue; + } + + if (c < 0x80) { + out = out + hexTable[c]; + continue; + } + + if (c < 0x800) { + out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); + continue; + } + + if (c < 0xD800 || c >= 0xE000) { + out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); + continue; + } + + i += 1; + c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); + /* eslint operator-linebreak: [2, "before"] */ + out += hexTable[0xF0 | (c >> 18)] + + hexTable[0x80 | ((c >> 12) & 0x3F)] + + hexTable[0x80 | ((c >> 6) & 0x3F)] + + hexTable[0x80 | (c & 0x3F)]; + } + + return out; +}; + +var compact = function compact(value) { + var queue = [{ obj: { o: value }, prop: 'o' }]; + var refs = []; + + for (var i = 0; i < queue.length; ++i) { + var item = queue[i]; + var obj = item.obj[item.prop]; + + var keys = Object.keys(obj); + for (var j = 0; j < keys.length; ++j) { + var key = keys[j]; + var val = obj[key]; + if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { + queue.push({ obj: obj, prop: key }); + refs.push(val); + } + } + } + + compactQueue(queue); + + return value; +}; + +var isRegExp = function isRegExp(obj) { + return Object.prototype.toString.call(obj) === '[object RegExp]'; +}; + +var isBuffer = function isBuffer(obj) { + if (!obj || typeof obj !== 'object') { + return false; + } + + return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); +}; + +var combine = function combine(a, b) { + return [].concat(a, b); +}; + +var maybeMap = function maybeMap(val, fn) { + if (isArray(val)) { + var mapped = []; + for (var i = 0; i < val.length; i += 1) { + mapped.push(fn(val[i])); + } + return mapped; + } + return fn(val); +}; + +module.exports = { + arrayToObject: arrayToObject, + assign: assign, + combine: combine, + compact: compact, + decode: decode, + encode: encode, + isBuffer: isBuffer, + isRegExp: isRegExp, + maybeMap: maybeMap, + merge: merge +}; -"use strict"; -eval("\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\nvar callBound = __webpack_require__(/*! call-bind/callBound */ \"./node_modules/call-bind/callBound.js\");\nvar inspect = __webpack_require__(/*! object-inspect */ \"./node_modules/object-inspect/index.js\");\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n * This function traverses the list returning the node corresponding to the\n * given key.\n *\n * That node is also moved to the head of the list, so that if it's accessed\n * again we don't need to traverse the whole list. By doing so, all the recently\n * used nodes can be accessed relatively quickly.\n */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\tfor (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tcurr.next = list.next;\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = { // eslint-disable-line no-param-reassign\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t};\n\t}\n};\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Initialize the linked list as an empty node, so that we don't have\n\t\t\t\t\t * to special-case handling of the first node: we can always refer to\n\t\t\t\t\t * it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t */\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/side-channel/index.js?"); /***/ }), -/***/ "./src/frontend/scss/ajax-load-more.scss": -/*!***********************************************!*\ - !*** ./src/frontend/scss/ajax-load-more.scss ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +/***/ 478: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./ajax-load-more.scss */ \"./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss\");\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== \"default\") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)\n/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default()), options);\n\n\n\n\n /* harmony default export */ __webpack_exports__[\"default\"] = ((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);\n\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/scss/ajax-load-more.scss?"); -/***/ }), -/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": -/*!****************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! - \****************************************************************************/ -/***/ (function(module) { +var GetIntrinsic = __webpack_require__(210); +var callBound = __webpack_require__(924); +var inspect = __webpack_require__(631); -"use strict"; -eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?"); +var $TypeError = GetIntrinsic('%TypeError%'); +var $WeakMap = GetIntrinsic('%WeakMap%', true); +var $Map = GetIntrinsic('%Map%', true); -/***/ }), +var $weakMapGet = callBound('WeakMap.prototype.get', true); +var $weakMapSet = callBound('WeakMap.prototype.set', true); +var $weakMapHas = callBound('WeakMap.prototype.has', true); +var $mapGet = callBound('Map.prototype.get', true); +var $mapSet = callBound('Map.prototype.set', true); +var $mapHas = callBound('Map.prototype.has', true); -/***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js": -/*!********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***! - \********************************************************************/ -/***/ (function(module) { +/* + * This function traverses the list returning the node corresponding to the + * given key. + * + * That node is also moved to the head of the list, so that if it's accessed + * again we don't need to traverse the whole list. By doing so, all the recently + * used nodes can be accessed relatively quickly. + */ +var listGetNode = function (list, key) { // eslint-disable-line consistent-return + for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { + if (curr.key === key) { + prev.next = curr.next; + curr.next = list.next; + list.next = curr; // eslint-disable-line no-param-reassign + return curr; + } + } +}; + +var listGet = function (objects, key) { + var node = listGetNode(objects, key); + return node && node.value; +}; +var listSet = function (objects, key, value) { + var node = listGetNode(objects, key); + if (node) { + node.value = value; + } else { + // Prepend the new node to the beginning of the list + objects.next = { // eslint-disable-line no-param-reassign + key: key, + next: objects.next, + value: value + }; + } +}; +var listHas = function (objects, key) { + return !!listGetNode(objects, key); +}; + +module.exports = function getSideChannel() { + var $wm; + var $m; + var $o; + var channel = { + assert: function (key) { + if (!channel.has(key)) { + throw new $TypeError('Side channel does not contain ' + inspect(key)); + } + }, + get: function (key) { // eslint-disable-line consistent-return + if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { + if ($wm) { + return $weakMapGet($wm, key); + } + } else if ($Map) { + if ($m) { + return $mapGet($m, key); + } + } else { + if ($o) { // eslint-disable-line no-lonely-if + return listGet($o, key); + } + } + }, + has: function (key) { + if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { + if ($wm) { + return $weakMapHas($wm, key); + } + } else if ($Map) { + if ($m) { + return $mapHas($m, key); + } + } else { + if ($o) { // eslint-disable-line no-lonely-if + return listHas($o, key); + } + } + return false; + }, + set: function (key, value) { + if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) { + if (!$wm) { + $wm = new $WeakMap(); + } + $weakMapSet($wm, key, value); + } else if ($Map) { + if (!$m) { + $m = new $Map(); + } + $mapSet($m, key, value); + } else { + if (!$o) { + /* + * Initialize the linked list as an empty node, so that we don't have + * to special-case handling of the first node: we can always refer to + * it as (previous node).next, instead of something like (list).head + */ + $o = { key: {}, next: null }; + } + listSet($o, key, value); + } + } + }; + return channel; +}; -"use strict"; -eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertBySelector.js?"); /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js": -/*!**********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***! - \**********************************************************************/ +/***/ 379: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertStyleElement.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! - \**********************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?"); - -/***/ }), -/***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js": -/*!***************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***! - \***************************************************************/ -/***/ (function(module) { -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleDomAPI.js?"); +var stylesInDOM = []; +function getIndexByIdentifier(identifier) { + var result = -1; + for (var i = 0; i < stylesInDOM.length; i++) { + if (stylesInDOM[i].identifier === identifier) { + result = i; + break; + } + } + return result; +} +function modulesToDom(list, options) { + var idCountMap = {}; + var identifiers = []; + for (var i = 0; i < list.length; i++) { + var item = list[i]; + var id = options.base ? item[0] + options.base : item[0]; + var count = idCountMap[id] || 0; + var identifier = "".concat(id, " ").concat(count); + idCountMap[id] = count + 1; + var indexByIdentifier = getIndexByIdentifier(identifier); + var obj = { + css: item[1], + media: item[2], + sourceMap: item[3], + supports: item[4], + layer: item[5] + }; + if (indexByIdentifier !== -1) { + stylesInDOM[indexByIdentifier].references++; + stylesInDOM[indexByIdentifier].updater(obj); + } else { + var updater = addElementStyle(obj, options); + options.byIndex = i; + stylesInDOM.splice(i, 0, { + identifier: identifier, + updater: updater, + references: 1 + }); + } + identifiers.push(identifier); + } + return identifiers; +} +function addElementStyle(obj, options) { + var api = options.domAPI(options); + api.update(obj); + var updater = function updater(newObj) { + if (newObj) { + if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) { + return; + } + api.update(obj = newObj); + } else { + api.remove(); + } + }; + return updater; +} +module.exports = function (list, options) { + options = options || {}; + list = list || []; + var lastIdentifiers = modulesToDom(list, options); + return function update(newList) { + newList = newList || []; + for (var i = 0; i < lastIdentifiers.length; i++) { + var identifier = lastIdentifiers[i]; + var index = getIndexByIdentifier(identifier); + stylesInDOM[index].references--; + } + var newLastIdentifiers = modulesToDom(newList, options); + for (var _i = 0; _i < lastIdentifiers.length; _i++) { + var _identifier = lastIdentifiers[_i]; + var _index = getIndexByIdentifier(_identifier); + if (stylesInDOM[_index].references === 0) { + stylesInDOM[_index].updater(); + stylesInDOM.splice(_index, 1); + } + } + lastIdentifiers = newLastIdentifiers; + }; +}; /***/ }), -/***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js": -/*!*********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***! - \*********************************************************************/ +/***/ 569: /***/ (function(module) { "use strict"; -eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleTagTransform.js?"); - -/***/ }), - -/***/ "?9157": -/*!************************!*\ - !*** crypto (ignored) ***! - \************************/ -/***/ (function() { - -eval("/* (ignored) */\n\n//# sourceURL=webpack://ajaxloadmore/crypto_(ignored)?"); - -/***/ }), - -/***/ "?4f7e": -/*!********************************!*\ - !*** ./util.inspect (ignored) ***! - \********************************/ -/***/ (function() { - -eval("/* (ignored) */\n\n//# sourceURL=webpack://ajaxloadmore/./util.inspect_(ignored)?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/adapters.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/adapters/adapters.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ \"./node_modules/axios/lib/helpers/null.js\");\n/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ \"./node_modules/axios/lib/adapters/xhr.js\");\n/* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fetch.js */ \"./node_modules/axios/lib/adapters/fetch.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\n\nconst knownAdapters = {\n http: _http_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n fetch: _fetch_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isFunction(adapter) || adapter === null || adapter === false;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n getAdapter: (adapters) => {\n adapters = _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"](`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/adapters.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/fetch.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/adapters/fetch.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/composeSignals.js */ \"./node_modules/axios/lib/helpers/composeSignals.js\");\n/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/trackStream.js */ \"./node_modules/axios/lib/helpers/trackStream.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ \"./node_modules/axios/lib/helpers/progressEventReducer.js\");\n/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ \"./node_modules/axios/lib/helpers/resolveConfig.js\");\n/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/settle.js */ \"./node_modules/axios/lib/core/settle.js\");\n\n\n\n\n\n\n\n\n\n\nconst fetchProgressDecorator = (total, fn) => {\n const lengthComputable = total != null;\n return (loaded) => setTimeout(() => fn({\n lengthComputable,\n total,\n loaded\n }));\n}\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst supportsRequestStream = isReadableStreamSupported && (() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n})();\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported && !!(()=> {\n try {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isReadableStream(new Response('').body);\n } catch(err) {\n // return undefined\n }\n})();\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"](`Response type '${type}' is not supported`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isBlob(body)) {\n return body.size;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isSpecCompliantForm(body)) {\n return (await new Request(body).arrayBuffer()).byteLength;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArrayBufferView(body)) {\n return body.byteLength;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let [composedSignal, stopTimeout] = (signal || cancelToken || timeout) ?\n (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])([signal, cancelToken], timeout) : [];\n\n let finished, request;\n\n const onFinish = () => {\n !finished && setTimeout(() => {\n composedSignal && composedSignal.unsubscribe();\n });\n\n finished = true;\n }\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(\n requestContentLength,\n (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(onUploadProgress)\n ), null, encodeText);\n }\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(withCredentials)) {\n withCredentials = withCredentials ? 'cors' : 'omit';\n }\n\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n withCredentials\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].toFiniteNumber(response.headers.get('content-length'));\n\n response = new Response(\n (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(\n responseContentLength,\n (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(onDownloadProgress, true)\n ), isStreamResponse && onFinish, encodeText),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && onFinish();\n\n stopTimeout && stopTimeout();\n\n return await new Promise((resolve, reject) => {\n (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(resolve, reject, {\n data: responseData,\n headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"].from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n onFinish();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].from(err, err && err.code, config, request);\n }\n}));\n\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/fetch.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../core/settle.js */ \"./node_modules/axios/lib/core/settle.js\");\n/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ \"./node_modules/axios/lib/helpers/parseProtocol.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ \"./node_modules/axios/lib/helpers/progressEventReducer.js\");\n/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ \"./node_modules/axios/lib/helpers/resolveConfig.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(config);\n let requestData = _config.data;\n const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(_config.headers).normalize();\n let {responseType} = _config;\n let onCanceled;\n function done() {\n if (_config.cancelToken) {\n _config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (_config.signal) {\n _config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ECONNABORTED, _config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ERR_NETWORK, _config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"];\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ECONNABORTED,\n _config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n _utils_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (typeof _config.onDownloadProgress === 'function') {\n request.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof _config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_config.onUploadProgress));\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"](null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(_config.url);\n\n if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"].protocols.indexOf(protocol) === -1) {\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/xhr.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ \"./node_modules/axios/lib/core/Axios.js\");\n/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ \"./node_modules/axios/lib/cancel/CancelToken.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ \"./node_modules/axios/lib/helpers/spread.js\");\n/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ \"./node_modules/axios/lib/helpers/isAxiosError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ \"./node_modules/axios/lib/adapters/adapters.js\");\n/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ \"./node_modules/axios/lib/helpers/HttpStatusCode.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](defaultConfig);\n const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.request, context);\n\n // Copy axios.prototype to instance\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n\n// Expose Cancel & CancelToken\naxios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"];\naxios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\naxios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\naxios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION;\naxios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\n\n// Expose AxiosError class\naxios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"];\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"];\n\n// Expose isAxiosError\naxios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"];\n\n// Expose mergeConfig\naxios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n\naxios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__[\"default\"];\n\naxios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].getAdapter;\n\naxios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__[\"default\"];\n\naxios.default = axios;\n\n// this module should only have a default export\n/* harmony default export */ __webpack_exports__[\"default\"] = (axios);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/axios.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n\n\n\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CancelToken);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/CancelToken.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CanceledError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CanceledError.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n __CANCEL__: true\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CanceledError);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/CanceledError.js?"); - -/***/ }), -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isCancel; }\n/* harmony export */ });\n\n\nfunction isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/isCancel.js?"); +var memo = {}; + +/* istanbul ignore next */ +function getTarget(target) { + if (typeof memo[target] === "undefined") { + var styleTarget = document.querySelector(target); + + // Special case to return head of iframe instead of iframe itself + if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { + try { + // This will throw an exception if access to iframe is blocked + // due to cross-origin restrictions + styleTarget = styleTarget.contentDocument.head; + } catch (e) { + // istanbul ignore next + styleTarget = null; + } + } + memo[target] = styleTarget; + } + return memo[target]; +} + +/* istanbul ignore next */ +function insertBySelector(insert, style) { + var target = getTarget(insert); + if (!target) { + throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); + } + target.appendChild(style); +} +module.exports = insertBySelector; /***/ }), -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/***/ 216: +/***/ (function(module) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ \"./node_modules/axios/lib/core/InterceptorManager.js\");\n/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ \"./node_modules/axios/lib/core/dispatchRequest.js\");\n/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ \"./node_modules/axios/lib/helpers/validator.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].merge(\n headers.common,\n headers[config.method]\n );\n\n headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this.defaults, config);\n const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(config.baseURL, config.url);\n return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Axios);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/Axios.js?"); - -/***/ }), -/***/ "./node_modules/axios/lib/core/AxiosError.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosError.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosError);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/AxiosError.js?"); +/* istanbul ignore next */ +function insertStyleElement(options) { + var element = document.createElement("style"); + options.setAttributes(element, options.attributes); + options.insert(element, options.options); + return element; +} +module.exports = insertStyleElement; /***/ }), -/***/ "./node_modules/axios/lib/core/AxiosHeaders.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosHeaders.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/***/ 565: +/***/ (function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ \"./node_modules/axios/lib/helpers/parseHeaders.js\");\n\n\n\n\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(value)) return;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(header), valueOrRewrite);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].freezeMethods(AxiosHeaders);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosHeaders);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/AxiosHeaders.js?"); - -/***/ }), -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (InterceptorManager);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/InterceptorManager.js?"); +/* istanbul ignore next */ +function setAttributesWithoutAttributes(styleElement) { + var nonce = true ? __webpack_require__.nc : 0; + if (nonce) { + styleElement.setAttribute("nonce", nonce); + } +} +module.exports = setAttributesWithoutAttributes; /***/ }), -/***/ "./node_modules/axios/lib/core/buildFullPath.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/buildFullPath.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/***/ 795: +/***/ (function(module) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ buildFullPath; }\n/* harmony export */ });\n/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ \"./node_modules/axios/lib/helpers/isAbsoluteURL.js\");\n/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ \"./node_modules/axios/lib/helpers/combineURLs.js\");\n\n\n\n\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nfunction buildFullPath(baseURL, requestedURL) {\n if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(requestedURL)) {\n return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(baseURL, requestedURL);\n }\n return requestedURL;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/buildFullPath.js?"); - -/***/ }), -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ dispatchRequest; }\n/* harmony export */ });\n/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ \"./node_modules/axios/lib/core/transformData.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ \"./node_modules/axios/lib/adapters/adapters.js\");\n\n\n\n\n\n\n\n\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nfunction dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(config.headers);\n\n // Transform request data\n config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/dispatchRequest.js?"); +/* istanbul ignore next */ +function apply(styleElement, options, obj) { + var css = ""; + if (obj.supports) { + css += "@supports (".concat(obj.supports, ") {"); + } + if (obj.media) { + css += "@media ".concat(obj.media, " {"); + } + var needLayer = typeof obj.layer !== "undefined"; + if (needLayer) { + css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {"); + } + css += obj.css; + if (needLayer) { + css += "}"; + } + if (obj.media) { + css += "}"; + } + if (obj.supports) { + css += "}"; + } + var sourceMap = obj.sourceMap; + if (sourceMap && typeof btoa !== "undefined") { + css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */"); + } + + // For old IE + /* istanbul ignore if */ + options.styleTagTransform(css, styleElement, options.options); +} +function removeStyleElement(styleElement) { + // istanbul ignore if + if (styleElement.parentNode === null) { + return false; + } + styleElement.parentNode.removeChild(styleElement); +} + +/* istanbul ignore next */ +function domAPI(options) { + if (typeof document === "undefined") { + return { + update: function update() {}, + remove: function remove() {} + }; + } + var styleElement = options.insertStyleElement(options); + return { + update: function update(obj) { + apply(styleElement, options, obj); + }, + remove: function remove() { + removeStyleElement(styleElement); + } + }; +} +module.exports = domAPI; /***/ }), -/***/ "./node_modules/axios/lib/core/mergeConfig.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/mergeConfig.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/***/ 589: +/***/ (function(module) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ mergeConfig; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\nconst headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nfunction mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(source)) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].merge.call({caseless}, target, source);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(source)) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].merge({}, source);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/mergeConfig.js?"); - -/***/ }), -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ settle; }\n/* harmony export */ });\n/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nfunction settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](\n 'Request failed with status code ' + response.status,\n [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/settle.js?"); +/* istanbul ignore next */ +function styleTagTransform(css, styleElement) { + if (styleElement.styleSheet) { + styleElement.styleSheet.cssText = css; + } else { + while (styleElement.firstChild) { + styleElement.removeChild(styleElement.firstChild); + } + styleElement.appendChild(document.createTextNode(css)); + } +} +module.exports = styleTagTransform; /***/ }), -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/***/ 480: +/***/ (function() { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ transformData; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nfunction transformData(fns, response) {\n const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n const context = response || config;\n const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(context.headers);\n let data = context.data;\n\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/transformData.js?"); +/* (ignored) */ /***/ }), -/***/ "./node_modules/axios/lib/defaults/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/defaults/index.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ \"./node_modules/axios/lib/helpers/toURLEncodedForm.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n\n\n\n\n\n\n\n\n\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(data);\n\n if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(data)) : data;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBuffer(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isStream(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFile(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isReadableStream(data)\n ) {\n return data;\n }\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBufferView(data)) {\n return data.buffer;\n }\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(data, this.formSerializer).toString();\n }\n\n if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isResponse(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isReadableStream(data)) {\n return data;\n }\n\n if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].classes.FormData,\n Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (defaults);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/defaults/index.js?"); +/***/ 654: +/***/ (function() { -/***/ }), +/* (ignored) */ -/***/ "./node_modules/axios/lib/defaults/transitional.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/defaults/transitional.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/***/ }) +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ !function() { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function() { return module['default']; } : +/******/ function() { return module; }; +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ !function() { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = function(exports, definition) { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/global */ +/******/ !function() { +/******/ __webpack_require__.g = (function() { +/******/ if (typeof globalThis === 'object') return globalThis; +/******/ try { +/******/ return this || new Function('return this')(); +/******/ } catch (e) { +/******/ if (typeof window === 'object') return window; +/******/ } +/******/ })(); +/******/ }(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ !function() { +/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } +/******/ }(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ !function() { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/nonce */ +/******/ !function() { +/******/ __webpack_require__.nc = undefined; +/******/ }(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +!function() { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/defaults/transitional.js?"); +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + almScroll: function() { return /* binding */ almScroll; }, + analytics: function() { return /* binding */ analytics; }, + click: function() { return /* binding */ click; }, + filter: function() { return /* binding */ filter; }, + getOffset: function() { return /* binding */ getOffset; }, + getPostCount: function() { return /* binding */ ajax_load_more_getPostCount; }, + getTotalPosts: function() { return /* binding */ getTotalPosts; }, + getTotalRemaining: function() { return /* binding */ getTotalRemaining; }, + reset: function() { return /* binding */ ajax_load_more_reset; }, + start: function() { return /* binding */ start; }, + wpblock: function() { return /* binding */ wpblock; } +}); + +// NAMESPACE OBJECT: ./node_modules/axios/lib/platform/common/utils.js +var common_utils_namespaceObject = {}; +__webpack_require__.r(common_utils_namespaceObject); +__webpack_require__.d(common_utils_namespaceObject, { + hasBrowserEnv: function() { return hasBrowserEnv; }, + hasStandardBrowserEnv: function() { return hasStandardBrowserEnv; }, + hasStandardBrowserWebWorkerEnv: function() { return hasStandardBrowserWebWorkerEnv; }, + origin: function() { return origin; } +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js + + +function bind(fn, thisArg) { + return function wrap() { + return fn.apply(thisArg, arguments); + }; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/utils.js + + + + +// utils is a library of generic helper functions non-specific to axios + +const {toString: utils_toString} = Object.prototype; +const {getPrototypeOf} = Object; + +const kindOf = (cache => thing => { + const str = utils_toString.call(thing); + return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); +})(Object.create(null)); + +const kindOfTest = (type) => { + type = type.toLowerCase(); + return (thing) => kindOf(thing) === type +} + +const typeOfTest = type => thing => typeof thing === type; + +/** + * Determine if a value is an Array + * + * @param {Object} val The value to test + * + * @returns {boolean} True if value is an Array, otherwise false + */ +const {isArray} = Array; + +/** + * Determine if a value is undefined + * + * @param {*} val The value to test + * + * @returns {boolean} True if the value is undefined, otherwise false + */ +const isUndefined = typeOfTest('undefined'); + +/** + * Determine if a value is a Buffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Buffer, otherwise false + */ +function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) + && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val); +} + +/** + * Determine if a value is an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +const isArrayBuffer = kindOfTest('ArrayBuffer'); -/***/ }), -/***/ "./node_modules/axios/lib/env/data.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/env/data.js ***! - \********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + let result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); + } + return result; +} + +/** + * Determine if a value is a String + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a String, otherwise false + */ +const isString = typeOfTest('string'); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ VERSION: function() { return /* binding */ VERSION; }\n/* harmony export */ });\nconst VERSION = \"1.7.2\";\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/env/data.js?"); +/** + * Determine if a value is a Function + * + * @param {*} val The value to test + * @returns {boolean} True if value is a Function, otherwise false + */ +const isFunction = typeOfTest('function'); + +/** + * Determine if a value is a Number + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Number, otherwise false + */ +const isNumber = typeOfTest('number'); + +/** + * Determine if a value is an Object + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an Object, otherwise false + */ +const isObject = (thing) => thing !== null && typeof thing === 'object'; -/***/ }), +/** + * Determine if a value is a Boolean + * + * @param {*} thing The value to test + * @returns {boolean} True if value is a Boolean, otherwise false + */ +const isBoolean = thing => thing === true || thing === false; + +/** + * Determine if a value is a plain Object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a plain Object, otherwise false + */ +const isPlainObject = (val) => { + if (kindOf(val) !== 'object') { + return false; + } + + const prototype = getPrototypeOf(val); + return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val); +} + +/** + * Determine if a value is a Date + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Date, otherwise false + */ +const isDate = kindOfTest('Date'); + +/** + * Determine if a value is a File + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFile = kindOfTest('File'); + +/** + * Determine if a value is a Blob + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Blob, otherwise false + */ +const isBlob = kindOfTest('Blob'); + +/** + * Determine if a value is a FileList + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a File, otherwise false + */ +const isFileList = kindOfTest('FileList'); + +/** + * Determine if a value is a Stream + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a Stream, otherwise false + */ +const isStream = (val) => isObject(val) && isFunction(val.pipe); + +/** + * Determine if a value is a FormData + * + * @param {*} thing The value to test + * + * @returns {boolean} True if value is an FormData, otherwise false + */ +const isFormData = (thing) => { + let kind; + return thing && ( + (typeof FormData === 'function' && thing instanceof FormData) || ( + isFunction(thing.append) && ( + (kind = kindOf(thing)) === 'formdata' || + // detect form-data instance + (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]') + ) + ) + ) +} + +/** + * Determine if a value is a URLSearchParams object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a URLSearchParams object, otherwise false + */ +const isURLSearchParams = kindOfTest('URLSearchParams'); -/***/ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js": -/*!****************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n\n\n\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosURLSearchParams);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js?"); +/** + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * + * @returns {String} The String freed of excess whitespace + */ +const trim = (str) => str.trim ? + str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); + +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + * + * @param {Boolean} [allOwnKeys = false] + * @returns {any} + */ +function forEach(obj, fn, {allOwnKeys = false} = {}) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; + } + + let i; + let l; + + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + + if (isArray(obj)) { + // Iterate over array values + for (i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj); + const len = keys.length; + let key; + + for (i = 0; i < len; i++) { + key = keys[i]; + fn.call(null, obj[key], key, obj); + } + } +} + +function findKey(obj, key) { + key = key.toLowerCase(); + const keys = Object.keys(obj); + let i = keys.length; + let _key; + while (i-- > 0) { + _key = keys[i]; + if (key === _key.toLowerCase()) { + return _key; + } + } + return null; +} + +const _global = (() => { + /*eslint no-undef:0*/ + if (typeof globalThis !== "undefined") return globalThis; + return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global) +})(); + +const isContextDefined = (context) => !isUndefined(context) && context !== _global; + +/** + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. + * + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * + * @returns {Object} Result of all merge properties + */ +function merge(/* obj1, obj2, obj3, ... */) { + const {caseless} = isContextDefined(this) && this || {}; + const result = {}; + const assignValue = (val, key) => { + const targetKey = caseless && findKey(result, key) || key; + if (isPlainObject(result[targetKey]) && isPlainObject(val)) { + result[targetKey] = merge(result[targetKey], val); + } else if (isPlainObject(val)) { + result[targetKey] = merge({}, val); + } else if (isArray(val)) { + result[targetKey] = val.slice(); + } else { + result[targetKey] = val; + } + } + + for (let i = 0, l = arguments.length; i < l; i++) { + arguments[i] && forEach(arguments[i], assignValue); + } + return result; +} + +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * + * @param {Boolean} [allOwnKeys] + * @returns {Object} The resulting value of object a + */ +const extend = (a, b, thisArg, {allOwnKeys}= {}) => { + forEach(b, (val, key) => { + if (thisArg && isFunction(val)) { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }, {allOwnKeys}); + return a; +} + +/** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * + * @returns {string} content value without BOM + */ +const stripBOM = (content) => { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; +} + +/** + * Inherit the prototype methods from one constructor into another + * @param {function} constructor + * @param {function} superConstructor + * @param {object} [props] + * @param {object} [descriptors] + * + * @returns {void} + */ +const inherits = (constructor, superConstructor, props, descriptors) => { + constructor.prototype = Object.create(superConstructor.prototype, descriptors); + constructor.prototype.constructor = constructor; + Object.defineProperty(constructor, 'super', { + value: superConstructor.prototype + }); + props && Object.assign(constructor.prototype, props); +} + +/** + * Resolve object with deep prototype chain to a flat object + * @param {Object} sourceObj source object + * @param {Object} [destObj] + * @param {Function|Boolean} [filter] + * @param {Function} [propFilter] + * + * @returns {Object} + */ +const toFlatObject = (sourceObj, destObj, filter, propFilter) => { + let props; + let i; + let prop; + const merged = {}; + + destObj = destObj || {}; + // eslint-disable-next-line no-eq-null,eqeqeq + if (sourceObj == null) return destObj; + + do { + props = Object.getOwnPropertyNames(sourceObj); + i = props.length; + while (i-- > 0) { + prop = props[i]; + if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) { + destObj[prop] = sourceObj[prop]; + merged[prop] = true; + } + } + sourceObj = filter !== false && getPrototypeOf(sourceObj); + } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); + + return destObj; +} + +/** + * Determines whether a string ends with the characters of a specified string + * + * @param {String} str + * @param {String} searchString + * @param {Number} [position= 0] + * + * @returns {boolean} + */ +const endsWith = (str, searchString, position) => { + str = String(str); + if (position === undefined || position > str.length) { + position = str.length; + } + position -= searchString.length; + const lastIndex = str.indexOf(searchString, position); + return lastIndex !== -1 && lastIndex === position; +} + + +/** + * Returns new array from array like object or null if failed + * + * @param {*} [thing] + * + * @returns {?Array} + */ +const toArray = (thing) => { + if (!thing) return null; + if (isArray(thing)) return thing; + let i = thing.length; + if (!isNumber(i)) return null; + const arr = new Array(i); + while (i-- > 0) { + arr[i] = thing[i]; + } + return arr; +} + +/** + * Checking if the Uint8Array exists and if it does, it returns a function that checks if the + * thing passed in is an instance of Uint8Array + * + * @param {TypedArray} + * + * @returns {Array} + */ +// eslint-disable-next-line func-names +const isTypedArray = (TypedArray => { + // eslint-disable-next-line func-names + return thing => { + return TypedArray && thing instanceof TypedArray; + }; +})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array)); + +/** + * For each entry in the object, call the function with the key and value. + * + * @param {Object} obj - The object to iterate over. + * @param {Function} fn - The function to call for each entry. + * + * @returns {void} + */ +const forEachEntry = (obj, fn) => { + const generator = obj && obj[Symbol.iterator]; + + const iterator = generator.call(obj); + + let result; + + while ((result = iterator.next()) && !result.done) { + const pair = result.value; + fn.call(obj, pair[0], pair[1]); + } +} + +/** + * It takes a regular expression and a string, and returns an array of all the matches + * + * @param {string} regExp - The regular expression to match against. + * @param {string} str - The string to search. + * + * @returns {Array} + */ +const matchAll = (regExp, str) => { + let matches; + const arr = []; + + while ((matches = regExp.exec(str)) !== null) { + arr.push(matches); + } + + return arr; +} + +/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ +const isHTMLForm = kindOfTest('HTMLFormElement'); + +const toCamelCase = str => { + return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, + function replacer(m, p1, p2) { + return p1.toUpperCase() + p2; + } + ); +}; + +/* Creating a function that will check if an object has a property. */ +const utils_hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype); + +/** + * Determine if a value is a RegExp object + * + * @param {*} val The value to test + * + * @returns {boolean} True if value is a RegExp object, otherwise false + */ +const isRegExp = kindOfTest('RegExp'); -/***/ }), +const reduceDescriptors = (obj, reducer) => { + const descriptors = Object.getOwnPropertyDescriptors(obj); + const reducedDescriptors = {}; -/***/ "./node_modules/axios/lib/helpers/HttpStatusCode.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/HttpStatusCode.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + forEach(descriptors, (descriptor, name) => { + let ret; + if ((ret = reducer(descriptor, name, obj)) !== false) { + reducedDescriptors[name] = ret || descriptor; + } + }); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\nconst HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (HttpStatusCode);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/HttpStatusCode.js?"); + Object.defineProperties(obj, reducedDescriptors); +} -/***/ }), +/** + * Makes all methods read-only + * @param {Object} obj + */ -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +const freezeMethods = (obj) => { + reduceDescriptors(obj, (descriptor, name) => { + // skip restricted props in strict mode + if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) { + return false; + } -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ bind; }\n/* harmony export */ });\n\n\nfunction bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/bind.js?"); + const value = obj[name]; -/***/ }), + if (!isFunction(value)) return; -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + descriptor.enumerable = false; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ buildURL; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nfunction buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(params) ?\n params.toString() :\n new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/buildURL.js?"); + if ('writable' in descriptor) { + descriptor.writable = false; + return; + } -/***/ }), + if (!descriptor.set) { + descriptor.set = () => { + throw Error('Can not rewrite read-only method \'' + name + '\''); + }; + } + }); +} -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +const toObjectSet = (arrayOrString, delimiter) => { + const obj = {}; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ combineURLs; }\n/* harmony export */ });\n\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nfunction combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/combineURLs.js?"); + const define = (arr) => { + arr.forEach(value => { + obj[value] = true; + }); + } -/***/ }), + isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter)); -/***/ "./node_modules/axios/lib/helpers/composeSignals.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/composeSignals.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + return obj; +} -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\nconst composeSignals = (signals, timeout) => {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (cancel) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = cancel instanceof Error ? cancel : this.reason;\n controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](`timeout ${timeout} of ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal &&\n (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort));\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal && signal.addEventListener && signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = unsubscribe;\n\n return [signal, () => {\n timer && clearTimeout(timer);\n timer = null;\n }];\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (composeSignals);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/composeSignals.js?"); +const noop = () => {} -/***/ }), +const toFiniteNumber = (value, defaultValue) => { + return value != null && Number.isFinite(value = +value) ? value : defaultValue; +} -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +const ALPHA = 'abcdefghijklmnopqrstuvwxyz' -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(path) && cookie.push('path=' + path);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n });\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/cookies.js?"); +const DIGIT = '0123456789'; -/***/ }), +const ALPHABET = { + DIGIT, + ALPHA, + ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT +} -/***/ "./node_modules/axios/lib/helpers/formDataToJSON.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/formDataToJSON.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => { + let str = ''; + const {length} = alphabet; + while (size--) { + str += alphabet[Math.random() * length|0] + } -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target) ? target.length : name;\n\n if (isLast) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(formData.entries)) {\n const obj = {};\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (formDataToJSON);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/formDataToJSON.js?"); + return str; +} -/***/ }), +/** + * If the thing is a FormData object, return true, otherwise return false. + * + * @param {unknown} thing - The thing to check. + * + * @returns {boolean} + */ +function isSpecCompliantForm(thing) { + return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]); +} + +const toJSONObject = (obj) => { + const stack = new Array(10); + + const visit = (source, i) => { + + if (isObject(source)) { + if (stack.indexOf(source) >= 0) { + return; + } + + if(!('toJSON' in source)) { + stack[i] = source; + const target = isArray(source) ? [] : {}; + + forEach(source, (value, key) => { + const reducedValue = visit(value, i + 1); + !isUndefined(reducedValue) && (target[key] = reducedValue); + }); + + stack[i] = undefined; + + return target; + } + } + + return source; + } + + return visit(obj, 0); +} + +const isAsyncFn = kindOfTest('AsyncFunction'); + +const isThenable = (thing) => + thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch); + +/* harmony default export */ var utils = ({ + isArray, + isArrayBuffer, + isBuffer, + isFormData, + isArrayBufferView, + isString, + isNumber, + isBoolean, + isObject, + isPlainObject, + isReadableStream, + isRequest, + isResponse, + isHeaders, + isUndefined, + isDate, + isFile, + isBlob, + isRegExp, + isFunction, + isStream, + isURLSearchParams, + isTypedArray, + isFileList, + forEach, + merge, + extend, + trim, + stripBOM, + inherits, + toFlatObject, + kindOf, + kindOfTest, + endsWith, + toArray, + forEachEntry, + matchAll, + isHTMLForm, + hasOwnProperty: utils_hasOwnProperty, + hasOwnProp: utils_hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection + reduceDescriptors, + freezeMethods, + toObjectSet, + toCamelCase, + noop, + toFiniteNumber, + findKey, + global: _global, + isContextDefined, + ALPHABET, + generateString, + isSpecCompliantForm, + toJSONObject, + isAsyncFn, + isThenable +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/AxiosError.js + + + + +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [config] The config. + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * + * @returns {Error} The created error. + */ +function AxiosError(message, code, config, request, response) { + Error.call(this); + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } else { + this.stack = (new Error()).stack; + } + + this.message = message; + this.name = 'AxiosError'; + code && (this.code = code); + config && (this.config = config); + request && (this.request = request); + response && (this.response = response); +} + +utils.inherits(AxiosError, Error, { + toJSON: function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: utils.toJSONObject(this.config), + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + } +}); + +const AxiosError_prototype = AxiosError.prototype; +const descriptors = {}; + +[ + 'ERR_BAD_OPTION_VALUE', + 'ERR_BAD_OPTION', + 'ECONNABORTED', + 'ETIMEDOUT', + 'ERR_NETWORK', + 'ERR_FR_TOO_MANY_REDIRECTS', + 'ERR_DEPRECATED', + 'ERR_BAD_RESPONSE', + 'ERR_BAD_REQUEST', + 'ERR_CANCELED', + 'ERR_NOT_SUPPORT', + 'ERR_INVALID_URL' +// eslint-disable-next-line func-names +].forEach(code => { + descriptors[code] = {value: code}; +}); + +Object.defineProperties(AxiosError, descriptors); +Object.defineProperty(AxiosError_prototype, 'isAxiosError', {value: true}); + +// eslint-disable-next-line func-names +AxiosError.from = (error, code, config, request, response, customProps) => { + const axiosError = Object.create(AxiosError_prototype); + + utils.toFlatObject(error, axiosError, function filter(obj) { + return obj !== Error.prototype; + }, prop => { + return prop !== 'isAxiosError'; + }); + + AxiosError.call(axiosError, error.message, code, config, request, response); + + axiosError.cause = error; + + axiosError.name = error.name; + + customProps && Object.assign(axiosError, customProps); + + return axiosError; +}; + +/* harmony default export */ var core_AxiosError = (AxiosError); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/null.js +// eslint-disable-next-line strict +/* harmony default export */ var helpers_null = (null); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/toFormData.js + + + + +// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored + + +/** + * Determines if the given thing is a array or js object. + * + * @param {string} thing - The object or array to be visited. + * + * @returns {boolean} + */ +function isVisitable(thing) { + return utils.isPlainObject(thing) || utils.isArray(thing); +} + +/** + * It removes the brackets from the end of a string + * + * @param {string} key - The key of the parameter. + * + * @returns {string} the key without the brackets. + */ +function removeBrackets(key) { + return utils.endsWith(key, '[]') ? key.slice(0, -2) : key; +} + +/** + * It takes a path, a key, and a boolean, and returns a string + * + * @param {string} path - The path to the current key. + * @param {string} key - The key of the current object being iterated over. + * @param {string} dots - If true, the key will be rendered with dots instead of brackets. + * + * @returns {string} The path to the current key. + */ +function renderKey(path, key, dots) { + if (!path) return key; + return path.concat(key).map(function each(token, i) { + // eslint-disable-next-line no-param-reassign + token = removeBrackets(token); + return !dots && i ? '[' + token + ']' : token; + }).join(dots ? '.' : ''); +} + +/** + * If the array is an array and none of its elements are visitable, then it's a flat array. + * + * @param {Array} arr - The array to check + * + * @returns {boolean} + */ +function isFlatArray(arr) { + return utils.isArray(arr) && !arr.some(isVisitable); +} + +const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) { + return /^is[A-Z]/.test(prop); +}); + +/** + * Convert a data object to FormData + * + * @param {Object} obj + * @param {?Object} [formData] + * @param {?Object} [options] + * @param {Function} [options.visitor] + * @param {Boolean} [options.metaTokens = true] + * @param {Boolean} [options.dots = false] + * @param {?Boolean} [options.indexes = false] + * + * @returns {Object} + **/ + +/** + * It converts an object into a FormData object + * + * @param {Object} obj - The object to convert to form data. + * @param {string} formData - The FormData object to append to. + * @param {Object} options + * + * @returns + */ +function toFormData(obj, formData, options) { + if (!utils.isObject(obj)) { + throw new TypeError('target must be an object'); + } + + // eslint-disable-next-line no-param-reassign + formData = formData || new (helpers_null || FormData)(); + + // eslint-disable-next-line no-param-reassign + options = utils.toFlatObject(options, { + metaTokens: true, + dots: false, + indexes: false + }, false, function defined(option, source) { + // eslint-disable-next-line no-eq-null,eqeqeq + return !utils.isUndefined(source[option]); + }); + + const metaTokens = options.metaTokens; + // eslint-disable-next-line no-use-before-define + const visitor = options.visitor || defaultVisitor; + const dots = options.dots; + const indexes = options.indexes; + const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob; + const useBlob = _Blob && utils.isSpecCompliantForm(formData); + + if (!utils.isFunction(visitor)) { + throw new TypeError('visitor must be a function'); + } + + function convertValue(value) { + if (value === null) return ''; + + if (utils.isDate(value)) { + return value.toISOString(); + } + + if (!useBlob && utils.isBlob(value)) { + throw new core_AxiosError('Blob is not supported. Use a Buffer instead.'); + } + + if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) { + return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); + } + + return value; + } + + /** + * Default visitor. + * + * @param {*} value + * @param {String|Number} key + * @param {Array} path + * @this {FormData} + * + * @returns {boolean} return true to visit the each prop of the value recursively + */ + function defaultVisitor(value, key, path) { + let arr = value; + + if (value && !path && typeof value === 'object') { + if (utils.endsWith(key, '{}')) { + // eslint-disable-next-line no-param-reassign + key = metaTokens ? key : key.slice(0, -2); + // eslint-disable-next-line no-param-reassign + value = JSON.stringify(value); + } else if ( + (utils.isArray(value) && isFlatArray(value)) || + ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value)) + )) { + // eslint-disable-next-line no-param-reassign + key = removeBrackets(key); + + arr.forEach(function each(el, index) { + !(utils.isUndefined(el) || el === null) && formData.append( + // eslint-disable-next-line no-nested-ternary + indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'), + convertValue(el) + ); + }); + return false; + } + } + + if (isVisitable(value)) { + return true; + } + + formData.append(renderKey(path, key, dots), convertValue(value)); + + return false; + } + + const stack = []; + + const exposedHelpers = Object.assign(predicates, { + defaultVisitor, + convertValue, + isVisitable + }); + + function build(value, path) { + if (utils.isUndefined(value)) return; + + if (stack.indexOf(value) !== -1) { + throw Error('Circular reference detected in ' + path.join('.')); + } + + stack.push(value); + + utils.forEach(value, function each(el, key) { + const result = !(utils.isUndefined(el) || el === null) && visitor.call( + formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers + ); + + if (result === true) { + build(el, path ? path.concat(key) : [key]); + } + }); + + stack.pop(); + } + + if (!utils.isObject(obj)) { + throw new TypeError('data must be an object'); + } + + build(obj); + + return formData; +} + +/* harmony default export */ var helpers_toFormData = (toFormData); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js + + + + +/** + * It encodes a string by replacing all characters that are not in the unreserved set with + * their percent-encoded equivalents + * + * @param {string} str - The string to encode. + * + * @returns {string} The encoded string. + */ +function encode(str) { + const charMap = { + '!': '%21', + "'": '%27', + '(': '%28', + ')': '%29', + '~': '%7E', + '%20': '+', + '%00': '\x00' + }; + return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) { + return charMap[match]; + }); +} + +/** + * It takes a params object and converts it to a FormData object + * + * @param {Object} params - The parameters to be converted to a FormData object. + * @param {Object} options - The options object passed to the Axios constructor. + * + * @returns {void} + */ +function AxiosURLSearchParams(params, options) { + this._pairs = []; -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + params && helpers_toFormData(params, this, options); +} -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isAbsoluteURL; }\n/* harmony export */ });\n\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nfunction isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isAbsoluteURL.js?"); +const AxiosURLSearchParams_prototype = AxiosURLSearchParams.prototype; -/***/ }), +AxiosURLSearchParams_prototype.append = function append(name, value) { + this._pairs.push([name, value]); +}; -/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +AxiosURLSearchParams_prototype.toString = function toString(encoder) { + const _encode = encoder ? function(value) { + return encoder.call(this, value, encode); + } : encode; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isAxiosError; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nfunction isAxiosError(payload) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(payload) && (payload.isAxiosError === true);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isAxiosError.js?"); + return this._pairs.map(function each(pair) { + return _encode(pair[0]) + '=' + _encode(pair[1]); + }, '').join('&'); +}; -/***/ }), +/* harmony default export */ var helpers_AxiosURLSearchParams = (AxiosURLSearchParams); -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/buildURL.js -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })());\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isURLSameOrigin.js?"); -/***/ }), -/***/ "./node_modules/axios/lib/helpers/null.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/null.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n// eslint-disable-next-line strict\n/* harmony default export */ __webpack_exports__[\"default\"] = (null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/null.js?"); -/***/ }), +/** + * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their + * URI encoded counterparts + * + * @param {string} val The value to be encoded. + * + * @returns {string} The encoded value. + */ +function buildURL_encode(val) { + return encodeURIComponent(val). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); +} + +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @param {?object} options + * + * @returns {string} The formatted url + */ +function buildURL(url, params, options) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } + + const _encode = options && options.encode || buildURL_encode; + + const serializeFn = options && options.serialize; + + let serializedParams; + + if (serializeFn) { + serializedParams = serializeFn(params, options); + } else { + serializedParams = utils.isURLSearchParams(params) ? + params.toString() : + new helpers_AxiosURLSearchParams(params, options).toString(_encode); + } + + if (serializedParams) { + const hashmarkIndex = url.indexOf("#"); + + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } + + return url; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/InterceptorManager.js -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\n/* harmony default export */ __webpack_exports__[\"default\"] = (rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/parseHeaders.js?"); -/***/ }), -/***/ "./node_modules/axios/lib/helpers/parseProtocol.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseProtocol.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +class InterceptorManager { + constructor() { + this.handlers = []; + } + + /** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ + use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled, + rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; + } + + /** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + * + * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise + */ + eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; + } + } + + /** + * Clear all interceptors from the stack + * + * @returns {void} + */ + clear() { + if (this.handlers) { + this.handlers = []; + } + } + + /** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + * + * @returns {void} + */ + forEach(fn) { + utils.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); + } +} + +/* harmony default export */ var core_InterceptorManager = (InterceptorManager); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/defaults/transitional.js + + +/* harmony default export */ var defaults_transitional = ({ + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js + + + +/* harmony default export */ var classes_URLSearchParams = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : helpers_AxiosURLSearchParams); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/FormData.js + + +/* harmony default export */ var classes_FormData = (typeof FormData !== 'undefined' ? FormData : null); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/Blob.js + + +/* harmony default export */ var classes_Blob = (typeof Blob !== 'undefined' ? Blob : null); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/index.js + + + + +/* harmony default export */ var browser = ({ + isBrowser: true, + classes: { + URLSearchParams: classes_URLSearchParams, + FormData: classes_FormData, + Blob: classes_Blob + }, + protocols: ['http', 'https', 'file', 'blob', 'url', 'data'] +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/common/utils.js +const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined'; + +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + * + * @returns {boolean} + */ +const hasStandardBrowserEnv = ( + (product) => { + return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0 + })(typeof navigator !== 'undefined' && navigator.product); + +/** + * Determine if we're running in a standard browser webWorker environment + * + * Although the `isStandardBrowserEnv` method indicates that + * `allows axios to run in a web worker`, the WebWorker will still be + * filtered out due to its judgment standard + * `typeof window !== 'undefined' && typeof document !== 'undefined'`. + * This leads to a problem when axios post `FormData` in webWorker + */ +const hasStandardBrowserWebWorkerEnv = (() => { + return ( + typeof WorkerGlobalScope !== 'undefined' && + // eslint-disable-next-line no-undef + self instanceof WorkerGlobalScope && + typeof self.importScripts === 'function' + ); +})(); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ parseProtocol; }\n/* harmony export */ });\n\n\nfunction parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/parseProtocol.js?"); +const origin = hasBrowserEnv && window.location.href || 'http://localhost'; -/***/ }), -/***/ "./node_modules/axios/lib/helpers/progressEventReducer.js": -/*!****************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/progressEventReducer.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./speedometer.js */ \"./node_modules/axios/lib/helpers/speedometer.js\");\n/* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./throttle.js */ \"./node_modules/axios/lib/helpers/throttle.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(50, 250);\n\n return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n }, freq);\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/progressEventReducer.js?"); +;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/index.js -/***/ }), -/***/ "./node_modules/axios/lib/helpers/resolveConfig.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/resolveConfig.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isURLSameOrigin.js */ \"./node_modules/axios/lib/helpers/isURLSameOrigin.js\");\n/* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cookies.js */ \"./node_modules/axios/lib/helpers/cookies.js\");\n/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((config) => {\n const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(headers);\n\n newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isFormData(data)) {\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserEnv) {\n withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n});\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/resolveConfig.js?"); +/* harmony default export */ var platform = ({ + ...common_utils_namespaceObject, + ...browser +}); -/***/ }), +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/toURLEncodedForm.js -/***/ "./node_modules/axios/lib/helpers/speedometer.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/speedometer.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (speedometer);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/speedometer.js?"); -/***/ }), -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ spread; }\n/* harmony export */ });\n\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nfunction spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/spread.js?"); -/***/ }), +function toURLEncodedForm(data, options) { + return helpers_toFormData(data, new platform.classes.URLSearchParams(), Object.assign({ + visitor: function(value, key, path, helpers) { + if (platform.isNode && utils.isBuffer(value)) { + this.append(key, value.toString('base64')); + return false; + } -/***/ "./node_modules/axios/lib/helpers/throttle.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/throttle.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + return helpers.defaultVisitor.apply(this, arguments); + } + }, options)); +} -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n const threshold = 1000 / freq;\n let timer = null;\n return function throttled() {\n const force = this === true;\n\n const now = Date.now();\n if (force || now - timestamp > threshold) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timestamp = now;\n return fn.apply(null, arguments);\n }\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n timestamp = Date.now();\n return fn.apply(null, arguments);\n }, threshold - (now - timestamp));\n }\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (throttle);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/throttle.js?"); +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/formDataToJSON.js -/***/ }), -/***/ "./node_modules/axios/lib/helpers/toFormData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toFormData.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ \"./node_modules/axios/lib/helpers/null.js\");\n\n\n\n\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\n\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"] || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isSpecCompliantForm(formData);\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(value)) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]('Blob is not supported. Use a Buffer instead.');\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) && isFlatArray(value)) ||\n ((_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(value, function each(el, key) {\n const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && visitor.call(\n formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (toFormData);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/toFormData.js?"); -/***/ }), +/** + * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z'] + * + * @param {string} name - The name of the property to get. + * + * @returns An array of strings. + */ +function parsePropPath(name) { + // foo[x][y][z] + // foo.x.y.z + // foo-x-y-z + // foo x y z + return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => { + return match[0] === '[]' ? '' : match[1] || match[0]; + }); +} + +/** + * Convert an array to an object. + * + * @param {Array} arr - The array to convert to an object. + * + * @returns An object with the same keys and values as the array. + */ +function arrayToObject(arr) { + const obj = {}; + const keys = Object.keys(arr); + let i; + const len = keys.length; + let key; + for (i = 0; i < len; i++) { + key = keys[i]; + obj[key] = arr[key]; + } + return obj; +} + +/** + * It takes a FormData object and returns a JavaScript object + * + * @param {string} formData The FormData object to convert to JSON. + * + * @returns {Object | null} The converted object. + */ +function formDataToJSON(formData) { + function buildPath(path, value, target, index) { + let name = path[index++]; -/***/ "./node_modules/axios/lib/helpers/toURLEncodedForm.js": -/*!************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toURLEncodedForm.js ***! - \************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + if (name === '__proto__') return true; -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ toURLEncodedForm; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n\nfunction toURLEncodedForm(data, options) {\n return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/toURLEncodedForm.js?"); + const isNumericKey = Number.isFinite(+name); + const isLast = index >= path.length; + name = !name && utils.isArray(target) ? target.length : name; -/***/ }), + if (isLast) { + if (utils.hasOwnProp(target, name)) { + target[name] = [target[name], value]; + } else { + target[name] = value; + } -/***/ "./node_modules/axios/lib/helpers/trackStream.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/trackStream.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + return !isNumericKey; + } -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ readBytes: function() { return /* binding */ readBytes; },\n/* harmony export */ streamChunk: function() { return /* binding */ streamChunk; },\n/* harmony export */ trackStream: function() { return /* binding */ trackStream; }\n/* harmony export */ });\n\n\nconst streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nconst readBytes = async function* (iterable, chunkSize, encode) {\n for await (const chunk of iterable) {\n yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : (await encode(String(chunk))), chunkSize);\n }\n}\n\nconst trackStream = (stream, chunkSize, onProgress, onFinish, encode) => {\n const iterator = readBytes(stream, chunkSize, encode);\n\n let bytes = 0;\n\n return new ReadableStream({\n type: 'bytes',\n\n async pull(controller) {\n const {done, value} = await iterator.next();\n\n if (done) {\n controller.close();\n onFinish();\n return;\n }\n\n let len = value.byteLength;\n onProgress && onProgress(bytes += len);\n controller.enqueue(new Uint8Array(value));\n },\n cancel(reason) {\n onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/trackStream.js?"); + if (!target[name] || !utils.isObject(target[name])) { + target[name] = []; + } -/***/ }), + const result = buildPath(path, value, target[name], index); -/***/ "./node_modules/axios/lib/helpers/validator.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/validator.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + if (result && utils.isArray(target[name])) { + target[name] = arrayToObject(target[name]); + } -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION);\n }\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n assertOptions,\n validators\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/validator.js?"); + return !isNumericKey; + } -/***/ }), + if (utils.isFormData(formData) && utils.isFunction(formData.entries)) { + const obj = {}; -/***/ "./node_modules/axios/lib/platform/browser/classes/Blob.js": -/*!*****************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/Blob.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + utils.forEachEntry(formData, (name, value) => { + buildPath(parsePropPath(name), value, obj, 0); + }); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof Blob !== 'undefined' ? Blob : null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/Blob.js?"); + return obj; + } -/***/ }), + return null; +} -/***/ "./node_modules/axios/lib/platform/browser/classes/FormData.js": -/*!*********************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/FormData.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { +/* harmony default export */ var helpers_formDataToJSON = (formDataToJSON); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof FormData !== 'undefined' ? FormData : null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/FormData.js?"); +;// CONCATENATED MODULE: ./node_modules/axios/lib/defaults/index.js -/***/ }), -/***/ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js": -/*!****************************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***! - \****************************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js?"); -/***/ }), -/***/ "./node_modules/axios/lib/platform/browser/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/index.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ \"./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js\");\n/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ \"./node_modules/axios/lib/platform/browser/classes/FormData.js\");\n/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ \"./node_modules/axios/lib/platform/browser/classes/Blob.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isBrowser: true,\n classes: {\n URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/index.js?"); -/***/ }), -/***/ "./node_modules/axios/lib/platform/common/utils.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/platform/common/utils.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ hasBrowserEnv: function() { return /* binding */ hasBrowserEnv; },\n/* harmony export */ hasStandardBrowserEnv: function() { return /* binding */ hasStandardBrowserEnv; },\n/* harmony export */ hasStandardBrowserWebWorkerEnv: function() { return /* binding */ hasStandardBrowserWebWorkerEnv; },\n/* harmony export */ origin: function() { return /* binding */ origin; }\n/* harmony export */ });\nconst hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/common/utils.js?"); -/***/ }), +/** + * It takes a string, tries to parse it, and if it fails, it returns the stringified version + * of the input + * + * @param {any} rawValue - The value to be stringified. + * @param {Function} parser - A function that parses a string into a JavaScript object. + * @param {Function} encoder - A function that takes a value and returns a string. + * + * @returns {string} A stringified version of the rawValue. + */ +function stringifySafely(rawValue, parser, encoder) { + if (utils.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return utils.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } + } + + return (encoder || JSON.stringify)(rawValue); +} + +const defaults = { + + transitional: defaults_transitional, + + adapter: ['xhr', 'http', 'fetch'], + + transformRequest: [function transformRequest(data, headers) { + const contentType = headers.getContentType() || ''; + const hasJSONContentType = contentType.indexOf('application/json') > -1; + const isObjectPayload = utils.isObject(data); + + if (isObjectPayload && utils.isHTMLForm(data)) { + data = new FormData(data); + } + + const isFormData = utils.isFormData(data); + + if (isFormData) { + return hasJSONContentType ? JSON.stringify(helpers_formDataToJSON(data)) : data; + } + + if (utils.isArrayBuffer(data) || + utils.isBuffer(data) || + utils.isStream(data) || + utils.isFile(data) || + utils.isBlob(data) || + utils.isReadableStream(data) + ) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isURLSearchParams(data)) { + headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false); + return data.toString(); + } + + let isFileList; + + if (isObjectPayload) { + if (contentType.indexOf('application/x-www-form-urlencoded') > -1) { + return toURLEncodedForm(data, this.formSerializer).toString(); + } + + if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) { + const _FormData = this.env && this.env.FormData; + + return helpers_toFormData( + isFileList ? {'files[]': data} : data, + _FormData && new _FormData(), + this.formSerializer + ); + } + } + + if (isObjectPayload || hasJSONContentType ) { + headers.setContentType('application/json', false); + return stringifySafely(data); + } + + return data; + }], + + transformResponse: [function transformResponse(data) { + const transitional = this.transitional || defaults.transitional; + const forcedJSONParsing = transitional && transitional.forcedJSONParsing; + const JSONRequested = this.responseType === 'json'; + + if (utils.isResponse(data) || utils.isReadableStream(data)) { + return data; + } + + if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) { + const silentJSONParsing = transitional && transitional.silentJSONParsing; + const strictJSONParsing = !silentJSONParsing && JSONRequested; + + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response); + } + throw e; + } + } + } + + return data; + }], + + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', + + maxContentLength: -1, + maxBodyLength: -1, + + env: { + FormData: platform.classes.FormData, + Blob: platform.classes.Blob + }, + + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, + + headers: { + common: { + 'Accept': 'application/json, text/plain, */*', + 'Content-Type': undefined + } + } +}; + +utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => { + defaults.headers[method] = {}; +}); + +/* harmony default export */ var lib_defaults = (defaults); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/parseHeaders.js + + + + +// RawAxiosHeaders whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +const ignoreDuplicateOf = utils.toObjectSet([ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]); + +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} rawHeaders Headers needing to be parsed + * + * @returns {Object} Headers parsed into an object + */ +/* harmony default export */ var parseHeaders = (rawHeaders => { + const parsed = {}; + let key; + let val; + let i; -/***/ "./node_modules/axios/lib/platform/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/platform/index.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + rawHeaders && rawHeaders.split('\n').forEach(function parser(line) { + i = line.indexOf(':'); + key = line.substring(0, i).trim().toLowerCase(); + val = line.substring(i + 1).trim(); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node/index.js */ \"./node_modules/axios/lib/platform/browser/index.js\");\n/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/utils.js */ \"./node_modules/axios/lib/platform/common/utils.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n ..._common_utils_js__WEBPACK_IMPORTED_MODULE_0__,\n ..._node_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/index.js?"); + if (!key || (parsed[key] && ignoreDuplicateOf[key])) { + return; + } -/***/ }), + if (key === 'set-cookie') { + if (parsed[key]) { + parsed[key].push(val); + } else { + parsed[key] = [val]; + } + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; + } + }); -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + return parsed; +}); -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n\n\n\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/utils.js?"); +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/AxiosHeaders.js -/***/ }) -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ !function() { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function() { return module['default']; } : -/******/ function() { return module; }; -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/global */ -/******/ !function() { -/******/ __webpack_require__.g = (function() { -/******/ if (typeof globalThis === 'object') return globalThis; -/******/ try { -/******/ return this || new Function('return this')(); -/******/ } catch (e) { -/******/ if (typeof window === 'object') return window; -/******/ } -/******/ })(); -/******/ }(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/nonce */ -/******/ !function() { -/******/ __webpack_require__.nc = undefined; -/******/ }(); -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __webpack_require__("./src/frontend/js/ajax-load-more.js"); -/******/ ajaxloadmore = __webpack_exports__; -/******/ + + + +const $internals = Symbol('internals'); + +function normalizeHeader(header) { + return header && String(header).trim().toLowerCase(); +} + +function normalizeValue(value) { + if (value === false || value == null) { + return value; + } + + return utils.isArray(value) ? value.map(normalizeValue) : String(value); +} + +function parseTokens(str) { + const tokens = Object.create(null); + const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let match; + + while ((match = tokensRE.exec(str))) { + tokens[match[1]] = match[2]; + } + + return tokens; +} + +const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()); + +function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) { + if (utils.isFunction(filter)) { + return filter.call(this, value, header); + } + + if (isHeaderNameFilter) { + value = header; + } + + if (!utils.isString(value)) return; + + if (utils.isString(filter)) { + return value.indexOf(filter) !== -1; + } + + if (utils.isRegExp(filter)) { + return filter.test(value); + } +} + +function formatHeader(header) { + return header.trim() + .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => { + return char.toUpperCase() + str; + }); +} + +function buildAccessors(obj, header) { + const accessorName = utils.toCamelCase(' ' + header); + + ['get', 'set', 'has'].forEach(methodName => { + Object.defineProperty(obj, methodName + accessorName, { + value: function(arg1, arg2, arg3) { + return this[methodName].call(this, header, arg1, arg2, arg3); + }, + configurable: true + }); + }); +} + +class AxiosHeaders { + constructor(headers) { + headers && this.set(headers); + } + + set(header, valueOrRewrite, rewrite) { + const self = this; + + function setHeader(_value, _header, _rewrite) { + const lHeader = normalizeHeader(_header); + + if (!lHeader) { + throw new Error('header name must be a non-empty string'); + } + + const key = utils.findKey(self, lHeader); + + if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) { + self[key || _header] = normalizeValue(_value); + } + } + + const setHeaders = (headers, _rewrite) => + utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)); + + if (utils.isPlainObject(header) || header instanceof this.constructor) { + setHeaders(header, valueOrRewrite) + } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) { + setHeaders(parseHeaders(header), valueOrRewrite); + } else if (utils.isHeaders(header)) { + for (const [key, value] of header.entries()) { + setHeader(value, key, rewrite); + } + } else { + header != null && setHeader(valueOrRewrite, header, rewrite); + } + + return this; + } + + get(header, parser) { + header = normalizeHeader(header); + + if (header) { + const key = utils.findKey(this, header); + + if (key) { + const value = this[key]; + + if (!parser) { + return value; + } + + if (parser === true) { + return parseTokens(value); + } + + if (utils.isFunction(parser)) { + return parser.call(this, value, key); + } + + if (utils.isRegExp(parser)) { + return parser.exec(value); + } + + throw new TypeError('parser must be boolean|regexp|function'); + } + } + } + + has(header, matcher) { + header = normalizeHeader(header); + + if (header) { + const key = utils.findKey(this, header); + + return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher))); + } + + return false; + } + + delete(header, matcher) { + const self = this; + let deleted = false; + + function deleteHeader(_header) { + _header = normalizeHeader(_header); + + if (_header) { + const key = utils.findKey(self, _header); + + if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) { + delete self[key]; + + deleted = true; + } + } + } + + if (utils.isArray(header)) { + header.forEach(deleteHeader); + } else { + deleteHeader(header); + } + + return deleted; + } + + clear(matcher) { + const keys = Object.keys(this); + let i = keys.length; + let deleted = false; + + while (i--) { + const key = keys[i]; + if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) { + delete this[key]; + deleted = true; + } + } + + return deleted; + } + + normalize(format) { + const self = this; + const headers = {}; + + utils.forEach(this, (value, header) => { + const key = utils.findKey(headers, header); + + if (key) { + self[key] = normalizeValue(value); + delete self[header]; + return; + } + + const normalized = format ? formatHeader(header) : String(header).trim(); + + if (normalized !== header) { + delete self[header]; + } + + self[normalized] = normalizeValue(value); + + headers[normalized] = true; + }); + + return this; + } + + concat(...targets) { + return this.constructor.concat(this, ...targets); + } + + toJSON(asStrings) { + const obj = Object.create(null); + + utils.forEach(this, (value, header) => { + value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value); + }); + + return obj; + } + + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + + toString() { + return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n'); + } + + get [Symbol.toStringTag]() { + return 'AxiosHeaders'; + } + + static from(thing) { + return thing instanceof this ? thing : new this(thing); + } + + static concat(first, ...targets) { + const computed = new this(first); + + targets.forEach((target) => computed.set(target)); + + return computed; + } + + static accessor(header) { + const internals = this[$internals] = (this[$internals] = { + accessors: {} + }); + + const accessors = internals.accessors; + const prototype = this.prototype; + + function defineAccessor(_header) { + const lHeader = normalizeHeader(_header); + + if (!accessors[lHeader]) { + buildAccessors(prototype, _header); + accessors[lHeader] = true; + } + } + + utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header); + + return this; + } +} + +AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); + +// reserved names hotfix +utils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => { + let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set` + return { + get: () => value, + set(headerValue) { + this[mapped] = headerValue; + } + } +}); + +utils.freezeMethods(AxiosHeaders); + +/* harmony default export */ var core_AxiosHeaders = (AxiosHeaders); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/transformData.js + + + + + + +/** + * Transform the data for a request or a response + * + * @param {Array|Function} fns A single function or Array of functions + * @param {?Object} response The response object + * + * @returns {*} The resulting transformed data + */ +function transformData(fns, response) { + const config = this || lib_defaults; + const context = response || config; + const headers = core_AxiosHeaders.from(context.headers); + let data = context.data; + + utils.forEach(fns, function transform(fn) { + data = fn.call(config, data, headers.normalize(), response ? response.status : undefined); + }); + + headers.normalize(); + + return data; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/isCancel.js + + +function isCancel(value) { + return !!(value && value.__CANCEL__); +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/CanceledError.js + + + + + +/** + * A `CanceledError` is an object that is thrown when an operation is canceled. + * + * @param {string=} message The message. + * @param {Object=} config The config. + * @param {Object=} request The request. + * + * @returns {CanceledError} The created error. + */ +function CanceledError(message, config, request) { + // eslint-disable-next-line no-eq-null,eqeqeq + core_AxiosError.call(this, message == null ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request); + this.name = 'CanceledError'; +} + +utils.inherits(CanceledError, core_AxiosError, { + __CANCEL__: true +}); + +/* harmony default export */ var cancel_CanceledError = (CanceledError); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/settle.js + + + + +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + * + * @returns {object} The response. + */ +function settle(resolve, reject, response) { + const validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(new core_AxiosError( + 'Request failed with status code ' + response.status, + [core_AxiosError.ERR_BAD_REQUEST, core_AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], + response.config, + response.request, + response + )); + } +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/parseProtocol.js + + +function parseProtocol(url) { + const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); + return match && match[1] || ''; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/speedometer.js + + +/** + * Calculate data maxRate + * @param {Number} [samplesCount= 10] + * @param {Number} [min= 1000] + * @returns {Function} + */ +function speedometer(samplesCount, min) { + samplesCount = samplesCount || 10; + const bytes = new Array(samplesCount); + const timestamps = new Array(samplesCount); + let head = 0; + let tail = 0; + let firstSampleTS; + + min = min !== undefined ? min : 1000; + + return function push(chunkLength) { + const now = Date.now(); + + const startedAt = timestamps[tail]; + + if (!firstSampleTS) { + firstSampleTS = now; + } + + bytes[head] = chunkLength; + timestamps[head] = now; + + let i = tail; + let bytesCount = 0; + + while (i !== head) { + bytesCount += bytes[i++]; + i = i % samplesCount; + } + + head = (head + 1) % samplesCount; + + if (head === tail) { + tail = (tail + 1) % samplesCount; + } + + if (now - firstSampleTS < min) { + return; + } + + const passed = startedAt && now - startedAt; + + return passed ? Math.round(bytesCount * 1000 / passed) : undefined; + }; +} + +/* harmony default export */ var helpers_speedometer = (speedometer); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/throttle.js + + +/** + * Throttle decorator + * @param {Function} fn + * @param {Number} freq + * @return {Function} + */ +function throttle(fn, freq) { + let timestamp = 0; + const threshold = 1000 / freq; + let timer = null; + return function throttled() { + const force = this === true; + + const now = Date.now(); + if (force || now - timestamp > threshold) { + if (timer) { + clearTimeout(timer); + timer = null; + } + timestamp = now; + return fn.apply(null, arguments); + } + if (!timer) { + timer = setTimeout(() => { + timer = null; + timestamp = Date.now(); + return fn.apply(null, arguments); + }, threshold - (now - timestamp)); + } + }; +} + +/* harmony default export */ var helpers_throttle = (throttle); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/progressEventReducer.js + + + +/* harmony default export */ var progressEventReducer = ((listener, isDownloadStream, freq = 3) => { + let bytesNotified = 0; + const _speedometer = helpers_speedometer(50, 250); + + return helpers_throttle(e => { + const loaded = e.loaded; + const total = e.lengthComputable ? e.total : undefined; + const progressBytes = loaded - bytesNotified; + const rate = _speedometer(progressBytes); + const inRange = loaded <= total; + + bytesNotified = loaded; + + const data = { + loaded, + total, + progress: total ? (loaded / total) : undefined, + bytes: progressBytes, + rate: rate ? rate : undefined, + estimated: rate && total && inRange ? (total - loaded) / rate : undefined, + event: e, + lengthComputable: total != null + }; + + data[isDownloadStream ? 'download' : 'upload'] = true; + + listener(data); + }, freq); +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isURLSameOrigin.js + + + + + +/* harmony default export */ var isURLSameOrigin = (platform.hasStandardBrowserEnv ? + +// Standard browser envs have full support of the APIs needed to test +// whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + const msie = /(msie|trident)/i.test(navigator.userAgent); + const urlParsingNode = document.createElement('a'); + let originURL; + + /** + * Parse a URL to discover its components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + let href = url; + + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; + } + + urlParsingNode.setAttribute('href', href); + + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; + } + + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); + }; + })() : + + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })()); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/cookies.js + + + +/* harmony default export */ var cookies = (platform.hasStandardBrowserEnv ? + + // Standard browser envs support document.cookie + { + write(name, value, expires, path, domain, secure) { + const cookie = [name + '=' + encodeURIComponent(value)]; + + utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); + + utils.isString(path) && cookie.push('path=' + path); + + utils.isString(domain) && cookie.push('domain=' + domain); + + secure === true && cookie.push('secure'); + + document.cookie = cookie.join('; '); + }, + + read(name) { + const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, + + remove(name) { + this.write(name, '', Date.now() - 86400000); + } + } + + : + + // Non-standard browser env (web workers, react-native) lack needed support. + { + write() {}, + read() { + return null; + }, + remove() {} + }); + + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isAbsoluteURL.js + + +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/combineURLs.js + + +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * + * @returns {string} The combined URL + */ +function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/buildFullPath.js + + + + + +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * + * @returns {string} The combined full path + */ +function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/mergeConfig.js + + + + + +const headersToObject = (thing) => thing instanceof core_AxiosHeaders ? { ...thing } : thing; + +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * + * @returns {Object} New object resulting from merging config2 to config1 + */ +function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + const config = {}; + + function getMergedValue(target, source, caseless) { + if (utils.isPlainObject(target) && utils.isPlainObject(source)) { + return utils.merge.call({caseless}, target, source); + } else if (utils.isPlainObject(source)) { + return utils.merge({}, source); + } else if (utils.isArray(source)) { + return source.slice(); + } + return source; + } + + // eslint-disable-next-line consistent-return + function mergeDeepProperties(a, b, caseless) { + if (!utils.isUndefined(b)) { + return getMergedValue(a, b, caseless); + } else if (!utils.isUndefined(a)) { + return getMergedValue(undefined, a, caseless); + } + } + + // eslint-disable-next-line consistent-return + function valueFromConfig2(a, b) { + if (!utils.isUndefined(b)) { + return getMergedValue(undefined, b); + } + } + + // eslint-disable-next-line consistent-return + function defaultToConfig2(a, b) { + if (!utils.isUndefined(b)) { + return getMergedValue(undefined, b); + } else if (!utils.isUndefined(a)) { + return getMergedValue(undefined, a); + } + } + + // eslint-disable-next-line consistent-return + function mergeDirectKeys(a, b, prop) { + if (prop in config2) { + return getMergedValue(a, b); + } else if (prop in config1) { + return getMergedValue(undefined, a); + } + } + + const mergeMap = { + url: valueFromConfig2, + method: valueFromConfig2, + data: valueFromConfig2, + baseURL: defaultToConfig2, + transformRequest: defaultToConfig2, + transformResponse: defaultToConfig2, + paramsSerializer: defaultToConfig2, + timeout: defaultToConfig2, + timeoutMessage: defaultToConfig2, + withCredentials: defaultToConfig2, + withXSRFToken: defaultToConfig2, + adapter: defaultToConfig2, + responseType: defaultToConfig2, + xsrfCookieName: defaultToConfig2, + xsrfHeaderName: defaultToConfig2, + onUploadProgress: defaultToConfig2, + onDownloadProgress: defaultToConfig2, + decompress: defaultToConfig2, + maxContentLength: defaultToConfig2, + maxBodyLength: defaultToConfig2, + beforeRedirect: defaultToConfig2, + transport: defaultToConfig2, + httpAgent: defaultToConfig2, + httpsAgent: defaultToConfig2, + cancelToken: defaultToConfig2, + socketPath: defaultToConfig2, + responseEncoding: defaultToConfig2, + validateStatus: mergeDirectKeys, + headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true) + }; + + utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) { + const merge = mergeMap[prop] || mergeDeepProperties; + const configValue = merge(config1[prop], config2[prop], prop); + (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); + }); + + return config; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/resolveConfig.js + + + + + + + + + +/* harmony default export */ var resolveConfig = ((config) => { + const newConfig = mergeConfig({}, config); + + let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig; + + newConfig.headers = headers = core_AxiosHeaders.from(headers); + + newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer); + + // HTTP basic authentication + if (auth) { + headers.set('Authorization', 'Basic ' + + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')) + ); + } + + let contentType; + + if (utils.isFormData(data)) { + if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { + headers.setContentType(undefined); // Let the browser set it + } else if ((contentType = headers.getContentType()) !== false) { + // fix semicolon duplication issue for ReactNative FormData implementation + const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : []; + headers.setContentType([type || 'multipart/form-data', ...tokens].join('; ')); + } + } + + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + + if (platform.hasStandardBrowserEnv) { + withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig)); + + if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) { + // Add xsrf header + const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName); + + if (xsrfValue) { + headers.set(xsrfHeaderName, xsrfValue); + } + } + } + + return newConfig; +}); + + +;// CONCATENATED MODULE: ./node_modules/axios/lib/adapters/xhr.js + + + + + + + + + + + +const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined'; + +/* harmony default export */ var xhr = (isXHRAdapterSupported && function (config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + const _config = resolveConfig(config); + let requestData = _config.data; + const requestHeaders = core_AxiosHeaders.from(_config.headers).normalize(); + let {responseType} = _config; + let onCanceled; + function done() { + if (_config.cancelToken) { + _config.cancelToken.unsubscribe(onCanceled); + } + + if (_config.signal) { + _config.signal.removeEventListener('abort', onCanceled); + } + } + + let request = new XMLHttpRequest(); + + request.open(_config.method.toUpperCase(), _config.url, true); + + // Set the request timeout in MS + request.timeout = _config.timeout; + + function onloadend() { + if (!request) { + return; + } + // Prepare the response + const responseHeaders = core_AxiosHeaders.from( + 'getAllResponseHeaders' in request && request.getAllResponseHeaders() + ); + const responseData = !responseType || responseType === 'text' || responseType === 'json' ? + request.responseText : request.response; + const response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config, + request + }; + + settle(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); + + // Clean up request + request = null; + } + + if ('onloadend' in request) { + // Use onloadend if available + request.onloadend = onloadend; + } else { + // Listen for ready state to emulate onloadend + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } + + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + // readystate handler is calling before onerror or ontimeout handlers, + // so we should call onloadend on the next 'tick' + setTimeout(onloadend); + }; + } + + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } + + reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, _config, request)); + + // Clean up request + request = null; + }; + + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, _config, request)); + + // Clean up request + request = null; + }; + + // Handle timeout + request.ontimeout = function handleTimeout() { + let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded'; + const transitional = _config.transitional || defaults_transitional; + if (_config.timeoutErrorMessage) { + timeoutErrorMessage = _config.timeoutErrorMessage; + } + reject(new core_AxiosError( + timeoutErrorMessage, + transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED, + _config, + request)); + + // Clean up request + request = null; + }; + + // Remove Content-Type if data is undefined + requestData === undefined && requestHeaders.setContentType(null); + + // Add headers to the request + if ('setRequestHeader' in request) { + utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) { + request.setRequestHeader(key, val); + }); + } + + // Add withCredentials to request if needed + if (!utils.isUndefined(_config.withCredentials)) { + request.withCredentials = !!_config.withCredentials; + } + + // Add responseType to request if needed + if (responseType && responseType !== 'json') { + request.responseType = _config.responseType; + } + + // Handle progress if needed + if (typeof _config.onDownloadProgress === 'function') { + request.addEventListener('progress', progressEventReducer(_config.onDownloadProgress, true)); + } + + // Not all browsers support upload events + if (typeof _config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', progressEventReducer(_config.onUploadProgress)); + } + + if (_config.cancelToken || _config.signal) { + // Handle cancellation + // eslint-disable-next-line func-names + onCanceled = cancel => { + if (!request) { + return; + } + reject(!cancel || cancel.type ? new cancel_CanceledError(null, config, request) : cancel); + request.abort(); + request = null; + }; + + _config.cancelToken && _config.cancelToken.subscribe(onCanceled); + if (_config.signal) { + _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled); + } + } + + const protocol = parseProtocol(_config.url); + + if (protocol && platform.protocols.indexOf(protocol) === -1) { + reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config)); + return; + } + + + // Send the request + request.send(requestData || null); + }); +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/composeSignals.js + + + +const composeSignals = (signals, timeout) => { + let controller = new AbortController(); + + let aborted; + + const onabort = function (cancel) { + if (!aborted) { + aborted = true; + unsubscribe(); + const err = cancel instanceof Error ? cancel : this.reason; + controller.abort(err instanceof core_AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err)); + } + } + + let timer = timeout && setTimeout(() => { + onabort(new core_AxiosError(`timeout ${timeout} of ms exceeded`, core_AxiosError.ETIMEDOUT)) + }, timeout) + + const unsubscribe = () => { + if (signals) { + timer && clearTimeout(timer); + timer = null; + signals.forEach(signal => { + signal && + (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort)); + }); + signals = null; + } + } + + signals.forEach((signal) => signal && signal.addEventListener && signal.addEventListener('abort', onabort)); + + const {signal} = controller; + + signal.unsubscribe = unsubscribe; + + return [signal, () => { + timer && clearTimeout(timer); + timer = null; + }]; +} + +/* harmony default export */ var helpers_composeSignals = (composeSignals); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/trackStream.js + + +const streamChunk = function* (chunk, chunkSize) { + let len = chunk.byteLength; + + if (!chunkSize || len < chunkSize) { + yield chunk; + return; + } + + let pos = 0; + let end; + + while (pos < len) { + end = pos + chunkSize; + yield chunk.slice(pos, end); + pos = end; + } +} + +const readBytes = async function* (iterable, chunkSize, encode) { + for await (const chunk of iterable) { + yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : (await encode(String(chunk))), chunkSize); + } +} + +const trackStream = (stream, chunkSize, onProgress, onFinish, encode) => { + const iterator = readBytes(stream, chunkSize, encode); + + let bytes = 0; + + return new ReadableStream({ + type: 'bytes', + + async pull(controller) { + const {done, value} = await iterator.next(); + + if (done) { + controller.close(); + onFinish(); + return; + } + + let len = value.byteLength; + onProgress && onProgress(bytes += len); + controller.enqueue(new Uint8Array(value)); + }, + cancel(reason) { + onFinish(reason); + return iterator.return(); + } + }, { + highWaterMark: 2 + }) +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/adapters/fetch.js + + + + + + + + + + +const fetchProgressDecorator = (total, fn) => { + const lengthComputable = total != null; + return (loaded) => setTimeout(() => fn({ + lengthComputable, + total, + loaded + })); +} + +const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function'; +const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function'; + +// used only inside the fetch adapter +const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? + ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : + async (str) => new Uint8Array(await new Response(str).arrayBuffer()) +); + +const supportsRequestStream = isReadableStreamSupported && (() => { + let duplexAccessed = false; + + const hasContentType = new Request(platform.origin, { + body: new ReadableStream(), + method: 'POST', + get duplex() { + duplexAccessed = true; + return 'half'; + }, + }).headers.has('Content-Type'); + + return duplexAccessed && !hasContentType; +})(); + +const DEFAULT_CHUNK_SIZE = 64 * 1024; + +const supportsResponseStream = isReadableStreamSupported && !!(()=> { + try { + return utils.isReadableStream(new Response('').body); + } catch(err) { + // return undefined + } +})(); + +const resolvers = { + stream: supportsResponseStream && ((res) => res.body) +}; + +isFetchSupported && (((res) => { + ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => { + !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() : + (_, config) => { + throw new core_AxiosError(`Response type '${type}' is not supported`, core_AxiosError.ERR_NOT_SUPPORT, config); + }) + }); +})(new Response)); + +const getBodyLength = async (body) => { + if (body == null) { + return 0; + } + + if(utils.isBlob(body)) { + return body.size; + } + + if(utils.isSpecCompliantForm(body)) { + return (await new Request(body).arrayBuffer()).byteLength; + } + + if(utils.isArrayBufferView(body)) { + return body.byteLength; + } + + if(utils.isURLSearchParams(body)) { + body = body + ''; + } + + if(utils.isString(body)) { + return (await encodeText(body)).byteLength; + } +} + +const resolveBodyLength = async (headers, body) => { + const length = utils.toFiniteNumber(headers.getContentLength()); + + return length == null ? getBodyLength(body) : length; +} + +/* harmony default export */ var adapters_fetch = (isFetchSupported && (async (config) => { + let { + url, + method, + data, + signal, + cancelToken, + timeout, + onDownloadProgress, + onUploadProgress, + responseType, + headers, + withCredentials = 'same-origin', + fetchOptions + } = resolveConfig(config); + + responseType = responseType ? (responseType + '').toLowerCase() : 'text'; + + let [composedSignal, stopTimeout] = (signal || cancelToken || timeout) ? + helpers_composeSignals([signal, cancelToken], timeout) : []; + + let finished, request; + + const onFinish = () => { + !finished && setTimeout(() => { + composedSignal && composedSignal.unsubscribe(); + }); + + finished = true; + } + + let requestContentLength; + + try { + if ( + onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' && + (requestContentLength = await resolveBodyLength(headers, data)) !== 0 + ) { + let _request = new Request(url, { + method: 'POST', + body: data, + duplex: "half" + }); + + let contentTypeHeader; + + if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) { + headers.setContentType(contentTypeHeader) + } + + if (_request.body) { + data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator( + requestContentLength, + progressEventReducer(onUploadProgress) + ), null, encodeText); + } + } + + if (!utils.isString(withCredentials)) { + withCredentials = withCredentials ? 'cors' : 'omit'; + } + + request = new Request(url, { + ...fetchOptions, + signal: composedSignal, + method: method.toUpperCase(), + headers: headers.normalize().toJSON(), + body: data, + duplex: "half", + withCredentials + }); + + let response = await fetch(request); + + const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response'); + + if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) { + const options = {}; + + ['status', 'statusText', 'headers'].forEach(prop => { + options[prop] = response[prop]; + }); + + const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length')); + + response = new Response( + trackStream(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator( + responseContentLength, + progressEventReducer(onDownloadProgress, true) + ), isStreamResponse && onFinish, encodeText), + options + ); + } + + responseType = responseType || 'text'; + + let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config); + + !isStreamResponse && onFinish(); + + stopTimeout && stopTimeout(); + + return await new Promise((resolve, reject) => { + settle(resolve, reject, { + data: responseData, + headers: core_AxiosHeaders.from(response.headers), + status: response.status, + statusText: response.statusText, + config, + request + }) + }) + } catch (err) { + onFinish(); + + if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) { + throw Object.assign( + new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request), + { + cause: err.cause || err + } + ) + } + + throw core_AxiosError.from(err, err && err.code, config, request); + } +})); + + + +;// CONCATENATED MODULE: ./node_modules/axios/lib/adapters/adapters.js + + + + + + +const knownAdapters = { + http: helpers_null, + xhr: xhr, + fetch: adapters_fetch +} + +utils.forEach(knownAdapters, (fn, value) => { + if (fn) { + try { + Object.defineProperty(fn, 'name', {value}); + } catch (e) { + // eslint-disable-next-line no-empty + } + Object.defineProperty(fn, 'adapterName', {value}); + } +}); + +const renderReason = (reason) => `- ${reason}`; + +const isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false; + +/* harmony default export */ var adapters = ({ + getAdapter: (adapters) => { + adapters = utils.isArray(adapters) ? adapters : [adapters]; + + const {length} = adapters; + let nameOrAdapter; + let adapter; + + const rejectedReasons = {}; + + for (let i = 0; i < length; i++) { + nameOrAdapter = adapters[i]; + let id; + + adapter = nameOrAdapter; + + if (!isResolvedHandle(nameOrAdapter)) { + adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; + + if (adapter === undefined) { + throw new core_AxiosError(`Unknown adapter '${id}'`); + } + } + + if (adapter) { + break; + } + + rejectedReasons[id || '#' + i] = adapter; + } + + if (!adapter) { + + const reasons = Object.entries(rejectedReasons) + .map(([id, state]) => `adapter ${id} ` + + (state === false ? 'is not supported by the environment' : 'is not available in the build') + ); + + let s = length ? + (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : + 'as no adapter specified'; + + throw new core_AxiosError( + `There is no suitable adapter to dispatch the request ` + s, + 'ERR_NOT_SUPPORT' + ); + } + + return adapter; + }, + adapters: knownAdapters +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/dispatchRequest.js + + + + + + + + + +/** + * Throws a `CanceledError` if cancellation has been requested. + * + * @param {Object} config The config that is to be used for the request + * + * @returns {void} + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); + } + + if (config.signal && config.signal.aborted) { + throw new cancel_CanceledError(null, config); + } +} + +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * + * @returns {Promise} The Promise to be fulfilled + */ +function dispatchRequest(config) { + throwIfCancellationRequested(config); + + config.headers = core_AxiosHeaders.from(config.headers); + + // Transform request data + config.data = transformData.call( + config, + config.transformRequest + ); + + if (['post', 'put', 'patch'].indexOf(config.method) !== -1) { + config.headers.setContentType('application/x-www-form-urlencoded', false); + } + + const adapter = adapters.getAdapter(config.adapter || lib_defaults.adapter); + + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); + + // Transform response data + response.data = transformData.call( + config, + config.transformResponse, + response + ); + + response.headers = core_AxiosHeaders.from(response.headers); + + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData.call( + config, + config.transformResponse, + reason.response + ); + reason.response.headers = core_AxiosHeaders.from(reason.response.headers); + } + } + + return Promise.reject(reason); + }); +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/env/data.js +const VERSION = "1.7.2"; +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/validator.js + + + + + +const validators = {}; + +// eslint-disable-next-line func-names +['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => { + validators[type] = function validator(thing) { + return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; + }; +}); + +const deprecatedWarnings = {}; + +/** + * Transitional option validator + * + * @param {function|boolean?} validator - set to false if the transitional option has been removed + * @param {string?} version - deprecated version / removed since version + * @param {string?} message - some message with additional info + * + * @returns {function} + */ +validators.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); + } + + // eslint-disable-next-line func-names + return (value, opt, opts) => { + if (validator === false) { + throw new core_AxiosError( + formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), + core_AxiosError.ERR_DEPRECATED + ); + } + + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + // eslint-disable-next-line no-console + console.warn( + formatMessage( + opt, + ' has been deprecated since v' + version + ' and will be removed in the near future' + ) + ); + } + + return validator ? validator(value, opt, opts) : true; + }; +}; + +/** + * Assert object's properties type + * + * @param {object} options + * @param {object} schema + * @param {boolean?} allowUnknown + * + * @returns {object} + */ + +function assertOptions(options, schema, allowUnknown) { + if (typeof options !== 'object') { + throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE); + } + const keys = Object.keys(options); + let i = keys.length; + while (i-- > 0) { + const opt = keys[i]; + const validator = schema[opt]; + if (validator) { + const value = options[opt]; + const result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE); + } + continue; + } + if (allowUnknown !== true) { + throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION); + } + } +} + +/* harmony default export */ var validator = ({ + assertOptions, + validators +}); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/core/Axios.js + + + + + + + + + + + +const Axios_validators = validator.validators; + +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + * + * @return {Axios} A new instance of Axios + */ +class Axios { + constructor(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new core_InterceptorManager(), + response: new core_InterceptorManager() + }; + } + + /** + * Dispatch a request + * + * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) + * @param {?Object} config + * + * @returns {Promise} The Promise to be fulfilled + */ + async request(configOrUrl, config) { + try { + return await this._request(configOrUrl, config); + } catch (err) { + if (err instanceof Error) { + let dummy; + + Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error()); + + // slice off the Error: ... line + const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : ''; + try { + if (!err.stack) { + err.stack = stack; + // match without the 2 top stack lines + } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) { + err.stack += '\n' + stack + } + } catch (e) { + // ignore the case where "stack" is an un-writable property + } + } + + throw err; + } + } + + _request(configOrUrl, config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; + } + + config = mergeConfig(this.defaults, config); + + const {transitional, paramsSerializer, headers} = config; + + if (transitional !== undefined) { + validator.assertOptions(transitional, { + silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean), + forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean), + clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean) + }, false); + } + + if (paramsSerializer != null) { + if (utils.isFunction(paramsSerializer)) { + config.paramsSerializer = { + serialize: paramsSerializer + } + } else { + validator.assertOptions(paramsSerializer, { + encode: Axios_validators.function, + serialize: Axios_validators.function + }, true); + } + } + + // Set config.method + config.method = (config.method || this.defaults.method || 'get').toLowerCase(); + + // Flatten headers + let contextHeaders = headers && utils.merge( + headers.common, + headers[config.method] + ); + + headers && utils.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + (method) => { + delete headers[method]; + } + ); + + config.headers = core_AxiosHeaders.concat(contextHeaders, headers); + + // filter out skipped interceptors + const requestInterceptorChain = []; + let synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } + + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; + + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); + + const responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + + let promise; + let i = 0; + let len; + + if (!synchronousRequestInterceptors) { + const chain = [dispatchRequest.bind(this), undefined]; + chain.unshift.apply(chain, requestInterceptorChain); + chain.push.apply(chain, responseInterceptorChain); + len = chain.length; + + promise = Promise.resolve(config); + + while (i < len) { + promise = promise.then(chain[i++], chain[i++]); + } + + return promise; + } + + len = requestInterceptorChain.length; + + let newConfig = config; + + i = 0; + + while (i < len) { + const onFulfilled = requestInterceptorChain[i++]; + const onRejected = requestInterceptorChain[i++]; + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected.call(this, error); + break; + } + } + + try { + promise = dispatchRequest.call(this, newConfig); + } catch (error) { + return Promise.reject(error); + } + + i = 0; + len = responseInterceptorChain.length; + + while (i < len) { + promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]); + } + + return promise; + } + + getUri(config) { + config = mergeConfig(this.defaults, config); + const fullPath = buildFullPath(config.baseURL, config.url); + return buildURL(fullPath, config.params, config.paramsSerializer); + } +} + +// Provide aliases for supported request methods +utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, config) { + return this.request(mergeConfig(config || {}, { + method, + url, + data: (config || {}).data + })); + }; +}); + +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + + function generateHTTPMethod(isForm) { + return function httpMethod(url, data, config) { + return this.request(mergeConfig(config || {}, { + method, + headers: isForm ? { + 'Content-Type': 'multipart/form-data' + } : {}, + url, + data + })); + }; + } + + Axios.prototype[method] = generateHTTPMethod(); + + Axios.prototype[method + 'Form'] = generateHTTPMethod(true); +}); + +/* harmony default export */ var core_Axios = (Axios); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/CancelToken.js + + + + +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @param {Function} executor The executor function. + * + * @returns {CancelToken} + */ +class CancelToken { + constructor(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); + } + + let resolvePromise; + + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); + + const token = this; + + // eslint-disable-next-line func-names + this.promise.then(cancel => { + if (!token._listeners) return; + + let i = token._listeners.length; + + while (i-- > 0) { + token._listeners[i](cancel); + } + token._listeners = null; + }); + + // eslint-disable-next-line func-names + this.promise.then = onfulfilled => { + let _resolve; + // eslint-disable-next-line func-names + const promise = new Promise(resolve => { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); + + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; + + return promise; + }; + + executor(function cancel(message, config, request) { + if (token.reason) { + // Cancellation has already been requested + return; + } + + token.reason = new cancel_CanceledError(message, config, request); + resolvePromise(token.reason); + }); + } + + /** + * Throws a `CanceledError` if cancellation has been requested. + */ + throwIfRequested() { + if (this.reason) { + throw this.reason; + } + } + + /** + * Subscribe to the cancel signal + */ + + subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + + if (this._listeners) { + this._listeners.push(listener); + } else { + this._listeners = [listener]; + } + } + + /** + * Unsubscribe from the cancel signal + */ + + unsubscribe(listener) { + if (!this._listeners) { + return; + } + const index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } + } + + /** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ + static source() { + let cancel; + const token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token, + cancel + }; + } +} + +/* harmony default export */ var cancel_CancelToken = (CancelToken); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/spread.js + + +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * + * @returns {Function} + */ +function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); + }; +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isAxiosError.js + + + + +/** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ +function isAxiosError(payload) { + return utils.isObject(payload) && (payload.isAxiosError === true); +} + +;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/HttpStatusCode.js +const HttpStatusCode = { + Continue: 100, + SwitchingProtocols: 101, + Processing: 102, + EarlyHints: 103, + Ok: 200, + Created: 201, + Accepted: 202, + NonAuthoritativeInformation: 203, + NoContent: 204, + ResetContent: 205, + PartialContent: 206, + MultiStatus: 207, + AlreadyReported: 208, + ImUsed: 226, + MultipleChoices: 300, + MovedPermanently: 301, + Found: 302, + SeeOther: 303, + NotModified: 304, + UseProxy: 305, + Unused: 306, + TemporaryRedirect: 307, + PermanentRedirect: 308, + BadRequest: 400, + Unauthorized: 401, + PaymentRequired: 402, + Forbidden: 403, + NotFound: 404, + MethodNotAllowed: 405, + NotAcceptable: 406, + ProxyAuthenticationRequired: 407, + RequestTimeout: 408, + Conflict: 409, + Gone: 410, + LengthRequired: 411, + PreconditionFailed: 412, + PayloadTooLarge: 413, + UriTooLong: 414, + UnsupportedMediaType: 415, + RangeNotSatisfiable: 416, + ExpectationFailed: 417, + ImATeapot: 418, + MisdirectedRequest: 421, + UnprocessableEntity: 422, + Locked: 423, + FailedDependency: 424, + TooEarly: 425, + UpgradeRequired: 426, + PreconditionRequired: 428, + TooManyRequests: 429, + RequestHeaderFieldsTooLarge: 431, + UnavailableForLegalReasons: 451, + InternalServerError: 500, + NotImplemented: 501, + BadGateway: 502, + ServiceUnavailable: 503, + GatewayTimeout: 504, + HttpVersionNotSupported: 505, + VariantAlsoNegotiates: 506, + InsufficientStorage: 507, + LoopDetected: 508, + NotExtended: 510, + NetworkAuthenticationRequired: 511, +}; + +Object.entries(HttpStatusCode).forEach(([key, value]) => { + HttpStatusCode[value] = key; +}); + +/* harmony default export */ var helpers_HttpStatusCode = (HttpStatusCode); + +;// CONCATENATED MODULE: ./node_modules/axios/lib/axios.js + + + + + + + + + + + + + + + + + + + + +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * + * @returns {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + const context = new core_Axios(defaultConfig); + const instance = bind(core_Axios.prototype.request, context); + + // Copy axios.prototype to instance + utils.extend(instance, core_Axios.prototype, context, {allOwnKeys: true}); + + // Copy context to instance + utils.extend(instance, context, null, {allOwnKeys: true}); + + // Factory for creating new instances + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig(defaultConfig, instanceConfig)); + }; + + return instance; +} + +// Create the default instance to be exported +const axios = createInstance(lib_defaults); + +// Expose Axios class to allow class inheritance +axios.Axios = core_Axios; + +// Expose Cancel & CancelToken +axios.CanceledError = cancel_CanceledError; +axios.CancelToken = cancel_CancelToken; +axios.isCancel = isCancel; +axios.VERSION = VERSION; +axios.toFormData = helpers_toFormData; + +// Expose AxiosError class +axios.AxiosError = core_AxiosError; + +// alias for CanceledError for backward compatibility +axios.Cancel = axios.CanceledError; + +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); +}; + +axios.spread = spread; + +// Expose isAxiosError +axios.isAxiosError = isAxiosError; + +// Expose mergeConfig +axios.mergeConfig = mergeConfig; + +axios.AxiosHeaders = core_AxiosHeaders; + +axios.formToJSON = thing => helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing); + +axios.getAdapter = adapters.getAdapter; + +axios.HttpStatusCode = helpers_HttpStatusCode; + +axios.default = axios; + +// this module should only have a default export +/* harmony default export */ var lib_axios = (axios); + +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js +var injectStylesIntoStyleTag = __webpack_require__(379); +var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleDomAPI.js +var styleDomAPI = __webpack_require__(795); +var styleDomAPI_default = /*#__PURE__*/__webpack_require__.n(styleDomAPI); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertBySelector.js +var insertBySelector = __webpack_require__(569); +var insertBySelector_default = /*#__PURE__*/__webpack_require__.n(insertBySelector); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js +var setAttributesWithoutAttributes = __webpack_require__(565); +var setAttributesWithoutAttributes_default = /*#__PURE__*/__webpack_require__.n(setAttributesWithoutAttributes); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/insertStyleElement.js +var insertStyleElement = __webpack_require__(216); +var insertStyleElement_default = /*#__PURE__*/__webpack_require__.n(insertStyleElement); +// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/styleTagTransform.js +var styleTagTransform = __webpack_require__(589); +var styleTagTransform_default = /*#__PURE__*/__webpack_require__.n(styleTagTransform); +// EXTERNAL MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss +var ajax_load_more = __webpack_require__(792); +var ajax_load_more_default = /*#__PURE__*/__webpack_require__.n(ajax_load_more); +;// CONCATENATED MODULE: ./src/frontend/scss/ajax-load-more.scss + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (styleTagTransform_default()); +options.setAttributes = (setAttributesWithoutAttributes_default()); + + options.insert = insertBySelector_default().bind(null, "head"); + +options.domAPI = (styleDomAPI_default()); +options.insertStyleElement = (insertStyleElement_default()); + +var update = injectStylesIntoStyleTag_default()((ajax_load_more_default()), options); + + + + + /* harmony default export */ var scss_ajax_load_more = ((ajax_load_more_default()) && (ajax_load_more_default()).locals ? (ajax_load_more_default()).locals : undefined); + +// EXTERNAL MODULE: ./node_modules/crypto-js/md5.js +var md5 = __webpack_require__(214); +var md5_default = /*#__PURE__*/__webpack_require__.n(md5); +;// CONCATENATED MODULE: ./src/frontend/js/functions/api.js + +var _alm_localize = alm_localize, + rest_api = _alm_localize.rest_api, + rest_nonce = _alm_localize.rest_nonce; + +/* + * Create a Api object with Axios and configure it for the WordPRess Rest API. + * + * @see https://axios-http.com/docs/instance + */ +var api = lib_axios.create({ + baseURL: rest_api, + headers: { + 'content-type': 'application/json', + 'X-WP-Nonce': rest_nonce + } +}); +;// CONCATENATED MODULE: ./src/frontend/js/functions/getButtonURL.js +/** + * Get the URL for Load More button. + * + * @param {Object} alm The Ajax Load More object. + * @param {string} rel The type of load more, `next` or `previous`. + * @since 5.4.0 + */ +function getButtonURL(alm) { + var _button; + var rel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'next'; + if (!alm || !alm.trigger) { + return false; + } + var button = alm.trigger.querySelector('.alm-load-more-btn'); + if (rel === 'prev') { + button = document.querySelector('.alm-load-more-btn--prev'); + } + return ((_button = button) === null || _button === void 0 || (_button = _button.dataset) === null || _button === void 0 ? void 0 : _button.url) || ''; +} + +/** + * Set button dataset attributes. + * + * @param {Element} button The HTML element. + * @param {number} page The current page number. + * @param {string} url The URL for updating. + */ +function setButtonAtts(button, page, url) { + if (!button || page === 0) { + return; + } + if ((button === null || button === void 0 ? void 0 : button.rel) === 'prev') { + button.href = url; + } + + // Set page & URL attributes. + button.dataset.page = page; + button.dataset.url = url ? url : ''; +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/cache.js +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + + + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function cacheCreateParams(alm) { + var _listing$dataset; + var listing = alm.listing; + alm.addons.cache = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cache) === 'true'; + if (alm.addons.cache) { + alm.addons.cache_id = listing.dataset.cacheId; + alm.addons.cache_path = listing.dataset.cachePath; + alm.addons.cache_logged_in = listing.dataset.cacheLoggedIn ? listing.dataset.cacheLoggedIn : false; + } + return alm; +} + +/** + * Create unique cache slug from query params. + * + * @param {Object} alm The ALM object. + * @param {Object} data The data object. + * @return {string} The cache file slug. + */ +function getCacheSlug(alm, data) { + var addons = alm.addons, + pagePrev = alm.pagePrev, + page = alm.page, + _alm$rel = alm.rel, + rel = _alm$rel === void 0 ? 'next' : _alm$rel; + if (addons.nextpage) { + // Nextpage. + return "page-".concat(page + addons.nextpage_startpage); + } else if (addons.single_post) { + // Single Post. + return addons.single_post_id; + } else if (addons.queryloop) { + // Query Loop, use the button URL. + return md5_default()(JSON.stringify(getButtonURL(alm, alm.rel))).toString(); + } else if (addons.woocommerce || addons.elementor) { + // WooCommerce || Elementor. + return rel === 'prev' ? "page-".concat(pagePrev) : "page-".concat(page + 1); + } + return md5_default()(JSON.stringify(data)).toString(); // Standard. +} + +/** + * Create a cache file. + * + * @param {Object} alm The ALM object. + * @param {string} data Content to cache. + * @param {string} name The cache slug + * @since 5.3.1 + */ +function createCache(_x, _x2, _x3) { + return _createCache.apply(this, arguments); +} + +/** + * Get cache data file. + * + * @param {Object} alm The ALM object. + * @param {Object} params Query params. + * @return {Promise} Cache data or false. + */ +function _createCache() { + _createCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(alm, data, name) { + var _data$html, html, _data$meta, meta, params, res; + return _regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _data$html = data.html, html = _data$html === void 0 ? '' : _data$html, _data$meta = data.meta, meta = _data$meta === void 0 ? {} : _data$meta; + if (!(!html || !alm.addons.cache)) { + _context.next = 3; + break; + } + return _context.abrupt("return"); + case 3: + params = { + cache_id: alm.addons.cache_id, + cache_logged_in: alm.addons.cache_logged_in, + canonical_url: alm.canonical_url, + name: name, + html: html.trim(), + postcount: meta.postcount, + totalposts: meta.totalposts + }; // Create the cache file via REST API. + _context.next = 6; + return api.post('ajax-load-more/cache/create', params); + case 6: + res = _context.sent; + if (res.status === 200 && res.data && res.data.success) { + console.log(res.data.msg); // eslint-disable-line no-console + } + case 8: + case "end": + return _context.stop(); + } + }, _callee); + })); + return _createCache.apply(this, arguments); +} +function getCache(_x4, _x5) { + return _getCache.apply(this, arguments); +} +function _getCache() { + _getCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(alm, params) { + var restParams, res; + return _regeneratorRuntime().wrap(function _callee2$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + if (!(!alm.addons.cache || alm.addons.cache && alm.addons.cache_logged_in)) { + _context2.next = 2; + break; + } + return _context2.abrupt("return", false); + case 2: + restParams = { + id: alm.addons.cache_id, + name: params.cache_slug + }; + _context2.next = 5; + return api.get('ajax-load-more/cache/get', { + params: restParams + }); + case 5: + res = _context2.sent; + if (!(res.status === 200 && res.data)) { + _context2.next = 8; + break; + } + return _context2.abrupt("return", res.data); + case 8: + return _context2.abrupt("return", false); + case 9: + case "end": + return _context2.stop(); + } + }, _callee2); + })); + return _getCache.apply(this, arguments); +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/call-to-actions.js +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function ctaCreateParams(alm) { + var _listing$dataset; + var listing = alm.listing; + alm.addons.cta = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cta) === 'true'; + if (alm.addons.cta) { + alm.addons.cta_position = listing.dataset.ctaPosition; + alm.addons.cta_repeater = listing.dataset.ctaRepeater; + alm.addons.cta_theme_repeater = listing.dataset.ctaThemeRepeater; + } + return alm; +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/comments.js +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function commentsCreateParams(alm) { + var _listing$dataset; + var listing = alm.listing; + alm.addons.comments = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.comments) === 'true'; + if (alm.addons.comments) { + alm.addons.comments_post_id = listing.dataset.comments_post_id; + alm.addons.comments_per_page = listing.dataset.comments_per_page; + alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page; + alm.addons.comments_type = listing.dataset.comments_type; + alm.addons.comments_style = listing.dataset.comments_style; + alm.addons.comments_template = listing.dataset.comments_template; + alm.addons.comments_callback = listing.dataset.comments_callback; + } + return alm; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/constants.js +var EXCLUDED_NODES = ['#text', '#comment']; +var API_DATA_SHAPE = { + html: '', + meta: { + postcount: 0, + totalposts: 0 + } +}; +;// CONCATENATED MODULE: ./src/frontend/js/functions/dispatchScrollEvent.js +/** + * Dispatch a window scroll event. + * + * @param {boolean} delay Should this be delayed. + * @since 5.5 + */ +function dispatchScrollEvent() { + var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + if (typeof Event === 'function') { + setTimeout(function () { + window.dispatchEvent(new CustomEvent('scroll')); + }, delay ? 150 : 1); + } +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/setContentParams.js +/** + * Set accessibility attributes on the containers. + * + * @param {Element} container The container element. + * @param {Element} almListing The Ajax Load More container. + */ +function setContentContainersParams(container, almListing) { + container.setAttribute('aria-live', 'polite'); + container.setAttribute('aria-atomic', 'true'); + almListing.removeAttribute('aria-live'); + almListing.removeAttribute('aria-atomic'); +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/lazyImages.js +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +/** + * Lazy load images helper. + * When a plugin or 3rd party script has hooked into WP Post Thumbnails to provide a lazy load solution, images will not load via Ajax. + * This helper provides a fix by grabbing the dataset value and making it the src. + * + * @param {Object} alm The Ajax Load More object. + */ +function lazyImages(alm) { + var lazy_images = alm.lazy_images, + last_loaded = alm.last_loaded; + if (lazy_images && last_loaded !== null && last_loaded !== void 0 && last_loaded.length) { + last_loaded.forEach(function (item) { + lazyImagesReplace(item); + }); + } +} + +/** + * Loop all images in container and replace the src. + * + * @param {HTMLElement} container The element HTML. + */ +function lazyImagesReplace(container) { + var images = container.querySelectorAll('img'); + if (images) { + // Loop all images. + _toConsumableArray(images).forEach(function (image) { + if (image) { + replaceSrc(image); + } + }); + } +} + +/** + * Replace the image src with the value from data-src attributes. + * + * @param {HTMLElement} img The HTML image element. + */ +function replaceSrc(img) { + var _img$dataset, _img$dataset2, _img$dataset3, _img$dataset4; + if (!img) { + return; + } + if (img !== null && img !== void 0 && (_img$dataset = img.dataset) !== null && _img$dataset !== void 0 && _img$dataset.src) { + img.src = img.dataset.src; + } + if (img !== null && img !== void 0 && (_img$dataset2 = img.dataset) !== null && _img$dataset2 !== void 0 && _img$dataset2.srcset) { + img.srcset = img.dataset.srcset; + } + // Blocksy Pro. + // @see https://creativethemes.com/blocksy + if (img !== null && img !== void 0 && (_img$dataset3 = img.dataset) !== null && _img$dataset3 !== void 0 && _img$dataset3.ctLazy) { + img.src = img.dataset.ctLazy; + } + if (img !== null && img !== void 0 && (_img$dataset4 = img.dataset) !== null && _img$dataset4 !== void 0 && _img$dataset4.ctLazySet) { + img.srcset = img.dataset.ctLazySet; + } +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/srcsetPolyfill.js +/** + * A srcset polyfill to get Masonry and ImagesLoaded working with Safari and Firefox. + * + * @param {HTMLElement} container Container HTML element. + * @param {string} ua The user-agent string. + * @since 5.0.2 + */ +function srcsetPolyfill() { + var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + if (!container) { + return false; // Exit if no container. + } + + // Exit if useragent is Chrome, Safari or Windows. + if (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') !== -1 || ua.indexOf('Firefox') > -1 || ua.indexOf('Windows') > -1) { + return false; + } + + // Get all images. + var imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)'); + + // Loop images. + for (var i = 0; i < imgs.length; i++) { + var img = imgs[i]; + img.classList.add('alm-loaded'); + img.outerHTML = img.outerHTML; + } +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/loadImage.js + + +var imagesLoaded = __webpack_require__(564); + +/** + * Load the image with imagesLoaded + * + * @param {Element} container The HTML container. + * @param {Element} item The element to load. + * @param {string} ua Browser user-agent. + * @param {string} rel The loading direction, next or prev. + * @param {boolean} waitForImages Wait for images to load before loading next item. + */ +function loadImage(container, item, ua) { + var rel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'next'; + var waitForImages = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; + /** + * Append item to container. + */ + function appendImage() { + if (rel === 'prev') { + container.insertBefore(item, container.childNodes[0]); + } else { + container.appendChild(item); + } + lazyImagesReplace(item); // Lazy load image fix. + srcsetPolyfill(item, ua); // Safari/Firefox polyfills. + } + + return new Promise(function (resolve) { + item.style.transition = 'all 0.25s ease'; // Add CSS transition to each item. + + if (waitForImages) { + imagesLoaded(item, function () { + appendImage(); + resolve(true); // Send Promise callback + }); + } else { + appendImage(); + resolve(true); // Send Promise callback + } + }); +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/setFocus.js +/** + * Set user focus to improve accessibility after load events. + * + * @param {Object} alm ALM object. + * @param {Element} element The element to focus on. + * @param {number} total The total number of posts returned. + * @param {boolean} filtering Is this a filtering event. + * @since 5.1 + */ +function setFocus(alm) { + var _alm_localize; + var element = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var total = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + if (!((_alm_localize = alm_localize) !== null && _alm_localize !== void 0 && _alm_localize.a11y_focus) || !element) { + return; + } + + // WooCommerce||ELementor Add-ons. + if (alm.addons.woocommerce || alm.addons.elementor) { + moveFocus(false, false, element, false); + return; + } + if (total < 1) { + return; // Exit if no posts returned. + } + + if (alm.addons.paging) { + // Paging. + moveFocus(alm.init, alm.addons.preloaded, alm.listing, filtering); + } else if (alm.addons.single_post || alm.addons.nextpage) { + // Single Posts || Next Page - Set `init` to false to trigger focus. + moveFocus(false, alm.addons.preloaded, element, filtering); + } else { + // Standard. + moveFocus(alm.init, alm.addons.preloaded, element, filtering); + } +} + +/** + * Move user focus to latest elements that have been loaded. + * + * @param {boolean} init Initial run true or false. + * @param {string} preloaded Preloaded true or false. + * @param {Element} element The container HTML element. + * @param {boolean} filtering Filtering true or false. + * @since 5.1 + */ + +function moveFocus() { + var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; + var preloaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'false'; + var element = arguments.length > 2 ? arguments[2] : undefined; + var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + if (!filtering) { + if ((init || !element) && preloaded !== 'true') { + return; // Exit if first run + } + } + + element.setAttribute('tabIndex', '-1'); // Set tabIndex. + element.style.outline = 'none'; // Set element outline. + + // Add slight delay for elements to settle into DOM. + setTimeout(function () { + element.focus({ + preventScroll: true + }); + }, 25); +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/loadItems.js +function loadItems_typeof(o) { "@babel/helpers - typeof"; return loadItems_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, loadItems_typeof(o); } +function loadItems_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ loadItems_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == loadItems_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(loadItems_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function loadItems_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function loadItems_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { loadItems_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { loadItems_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + + + +/** + * Load all items after Ajax request. + * + * Note: The function is used with WooCommerce and Elementor add-ons. + * + * @param {HTMLElement} container The HTML container. + * @param {Array} items Array of items. + * @param {Object} alm The ALM object. + * @param {boolean} waitForImages Wait for images to load before loading next item. + */ +function loadItems(container, items, alm) { + var waitForImages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + return new Promise(function (resolve) { + var _alm$rel = alm.rel, + rel = _alm$rel === void 0 ? 'next' : _alm$rel; + var total = items.length; + var index = 0; + var count = 1; + + // Reverse items array if rel is 'prev'. + items = rel === 'prev' ? items.reverse() : items; + function loadItem() { + if (count <= total) { + loadItems_asyncToGenerator( /*#__PURE__*/loadItems_regeneratorRuntime().mark(function _callee() { + return loadItems_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + items[index].style.opacity = 0; + _context.next = 3; + return loadImage(container, items[index], alm.ua, rel, waitForImages); + case 3: + count++; + index++; + loadItem(); + case 6: + case "end": + return _context.stop(); + } + }, _callee); + }))()["catch"](function () { + console.warn('There was an error loading the items.'); + }); + } else { + // Delay for effect only + setTimeout(function () { + items.map(function (item) { + item.style.opacity = 1; + return item; + }); + if (items[0]) { + var focusItem = rel === 'prev' ? items[items.length - 1] : items[0]; // Get the item to focus. + setFocus(alm, focusItem, null, false); // Set the focus. + } + }, 25); + resolve(true); + } + } + loadItem(); + }); +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/loadPrevious.js +/** + * Create a Load Previous button. + * + * @param {Object} alm The Ajax Load More object. + * @param {Object} container The container element. + * @param {number} page The previous page number. + * @param {string} url The previous page url. + * @param {string} label The label for the button. + * @since 5.5.0 + */ +function createLoadPreviousButton(alm, container) { + var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; + var url = arguments.length > 3 ? arguments[3] : undefined; + var label = arguments.length > 4 ? arguments[4] : undefined; + if (!label) { + return; + } + + // Create wrapper. + var btnWrap = document.createElement('div'); + btnWrap.classList.add('alm-btn-wrap--prev'); + + // Create button. + var button = document.createElement('a'); + button.href = url; + button.innerHTML = label; + button.setAttribute('rel', 'prev'); + button.dataset.page = page; + button.dataset.url = url; + button.setAttribute('class', "alm-load-more-btn alm-load-more-btn--prev ".concat(alm.loading_style)); + + // Click event. + button.addEventListener('click', function (e) { + alm.AjaxLoadMore.prevClick(e); + }); + + // Set alm previous button to this button. + alm.AjaxLoadMore.setPreviousButton(button); + + // Append button to wrap. + btnWrap.appendChild(button); + + // Get parent element. + var parent = container.parentNode; + + // Append button before container. + parent.insertBefore(btnWrap, container); +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/elementor.js +function elementor_typeof(o) { "@babel/helpers - typeof"; return elementor_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, elementor_typeof(o); } +function elementor_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ elementor_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == elementor_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(elementor_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function elementor_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function elementor_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { elementor_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { elementor_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + + + + + + + + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function elementorCreateParams(alm) { + var _alm = alm, + listing = _alm.listing; + alm.addons.elementor = listing.dataset.elementor === 'posts' && listing.dataset.elementorSettings; + if (alm.addons.elementor) { + alm.addons.elementor_type = 'posts'; + alm.addons.elementor_settings = JSON.parse(alm.listing.dataset.elementorSettings); + + // Parse Container Settings + alm.addons.elementor_target = alm.addons.elementor_settings.target; + alm.addons.elementor_element = alm.addons.elementor_settings.target ? document.querySelector(".elementor-element ".concat(alm.addons.elementor_settings.target)) : ''; + alm.addons.elementor_widget = elementorGetWidgetType(alm.addons.elementor_element); + + // Masonry + alm = setElementorClasses(alm, alm.addons.elementor_widget); + + // Pagination Element + alm.addons.elementor_controls = alm.addons.elementor_settings.controls; + alm.addons.elementor_controls = alm.addons.elementor_controls === 'true' ? true : false; + alm.addons.elementor_scrolltop = parseInt(alm.addons.elementor_settings.scrolltop); + alm.addons.elementor_prev_label = alm.addons.elementor_settings.prev_label || ''; + + // Get next page URL. + alm.addons.elementor_next_page = elementorGetPagedURL(alm, alm.addons.elementor_element); + alm.addons.elementor_prev_page = elementorGetPagedURL(alm, alm.addons.elementor_element, 'prev'); + + // Get the max pages. + alm.addons.elementor_max_pages = alm.addons.elementor_element.querySelector('.e-load-more-anchor'); + alm.addons.elementor_max_pages = alm.addons.elementor_max_pages ? parseInt(alm.addons.elementor_max_pages.dataset.maxPage) : 999; + alm.addons.elementor_paged = alm.addons.elementor_settings.paged ? parseInt(alm.addons.elementor_settings.paged) : 1; + alm.page = parseInt(alm.page) + alm.addons.elementor_paged; + + // Masonry + alm = parseMasonryConfig(alm); + if (!alm.addons.elementor_element) { + console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?"); + } + if (!alm.addons.elementor_next_page) { + console.warn('Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?'); + } + } + return alm; +} + +/** + * Set up the instance on Elementor + * + * @param {Object} alm + */ +function elementorInit(alm) { + var addons = alm.addons; + if (!addons.elementor || !addons.elementor_type || !addons.elementor_type === 'posts') { + return false; + } + var container = addons.elementor_element; + if (!container) { + return false; + } + alm.button.dataset.page = addons.elementor_paged; // Set button data attributes + + // Set button URL + var nextPage = addons.elementor_next_page; + alm.button.dataset.url = nextPage ? nextPage : ''; + + // Set attributes on containers. + setContentContainersParams(container, alm.listing); + + // Set data attributes on first item. + var item = container.querySelector(".".concat(addons.elementor_item_class)); // Get first item + if (item) { + item.classList.add('alm-elementor'); + item.dataset.url = window.location; + item.dataset.page = addons.elementor_paged; + item.dataset.pageTitle = document.title; + } + + // Paged URL: Create previous button. + if (addons.elementor_paged > 1 && addons.elementor_prev_page && addons.elementor_prev_label) { + createLoadPreviousButton(alm, container, addons.elementor_paged, addons.elementor_prev_page, addons.elementor_prev_label); + } + + // Masonry Window Resize. Delay for masonry to be added via Elementor. + if (addons.elementor_masonry) { + var resizeTimeout; + setTimeout(function () { + window.addEventListener('resize', function () { + clearTimeout(resizeTimeout); + resizeTimeout = setTimeout(function () { + positionMasonryItems(alm, ".".concat(addons.elementor_container_class), ".".concat(addons.elementor_item_class)); + }, 100); + }); + }, 250); + } +} + +/** + * Get the content, title and results text from the Ajax response. + * + * @param {Object} alm The alm object. + * @param {string} url The request URL. + * @param {Object} response Query response. + * @param {string} cache_slug The cache slug. + * @return {Object} Results data. + */ +function elementorGetContent(alm, url, response, cache_slug) { + var data = API_DATA_SHAPE; // Default data object. + + // Successful response. + if (response.status === 200 && response.data) { + var addons = alm.addons, + page = alm.page, + button = alm.button, + buttonPrev = alm.buttonPrev, + rel = alm.rel; + var elementor_target = addons.elementor_target, + elementor_container_class = addons.elementor_container_class, + elementor_item_class = addons.elementor_item_class; + + // Create temp div to hold response data. + var content = document.createElement('div'); + content.innerHTML = response.data; + + // Set button state & URL. + if (rel === 'prev' && buttonPrev) { + var prevURL = elementorGetPagedURL(alm, content, 'prev'); + if (prevURL) { + setButtonAtts(buttonPrev, page - 1, prevURL); + } else { + alm.AjaxLoadMore.triggerDonePrev(); + } + } else { + var nextURL = elementorGetPagedURL(alm, content); + if (nextURL) { + setButtonAtts(button, page + 1, nextURL); + } else { + alm.AjaxLoadMore.triggerDone(); + } + } + + // Get Page Title + var title = content.querySelector('title').innerHTML; + data.pageTitle = title; + + // Get Elementor container. + var container = content.querySelector("".concat(elementor_target, " .").concat(elementor_container_class)); + if (!container) { + console.warn("Ajax Load More Elementor: Unable to find Elementor container element."); + return data; + } + + // Get the first item and append data attributes. + var item = container ? container.querySelector(".".concat(elementor_item_class)) : null; + if (item) { + item.classList.add('alm-elementor'); + item.dataset.url = url; + item.dataset.page = rel === 'next' ? page + 1 : page - 1; + item.dataset.pageTitle = title; + } + + // Count the number of returned items. + var items = container.querySelectorAll(".".concat(elementor_item_class)); + if (items) { + // Set the html to the elementor container data. + data.html = container ? container.innerHTML : ''; + data.meta.postcount = items.length; + data.meta.totalposts = items.length; + + // Create cache file. + createCache(alm, data, cache_slug); + } + } + return data; +} + +/** + * Core ALM Elementor loader. + * + * @param {HTMLElement} content The HTML data. + * @param {Object} alm The alm object. + */ +function elementor(content, alm) { + if (!content || !alm) { + alm.AjaxLoadMore.triggerDone(); + return false; + } + return new Promise(function (resolve) { + var addons = alm.addons; + var container = alm.addons.elementor_element.querySelector(".".concat(addons.elementor_container_class)); // Get post container + var items = content.querySelectorAll(".".concat(addons.elementor_item_class)); // Get all items in container + + if (container && items) { + var ElementorItems = Array.prototype.slice.call(items); // Convert NodeList to Array + + // Trigger almElementorLoaded callback. + if (typeof almElementorLoaded === 'function') { + window.almElementorLoaded(ElementorItems); + } + + // Load the items. + elementor_asyncToGenerator( /*#__PURE__*/elementor_regeneratorRuntime().mark(function _callee() { + return elementor_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return loadItems(container, ElementorItems, alm); + case 2: + if (addons.elementor_masonry) { + setTimeout(function () { + positionMasonryItems(alm, ".".concat(addons.elementor_container_class), ".".concat(addons.elementor_item_class)); + }, 125); + } + resolve(true); + case 4: + case "end": + return _context.stop(); + } + }, _callee); + }))()["catch"](function (e) { + console.warn(e, 'There was an error with Elementor'); // eslint-disable-line no-console + }); + } else { + resolve(false); + } + }); +} + +/** + * Elementor loaded and dispatch actions. + * + * @param {Object} alm The alm object. + */ +function elementorLoaded(alm) { + var page = alm.page, + AjaxLoadMore = alm.AjaxLoadMore, + addons = alm.addons; + var nextPage = page + 1; + var elementor_max_pages = addons.elementor_max_pages; + lazyImages(alm); // Lazy load images if necessary. + + if (typeof almComplete === 'function' && alm.transition !== 'masonry') { + window.almComplete(alm); // Trigger almComplete. + } + + AjaxLoadMore.transitionEnd(); // End transitions. + + if (nextPage >= elementor_max_pages) { + AjaxLoadMore.triggerDone(); // ALM Done. + } + + dispatchScrollEvent(); +} + +/** + * Set the required classnames for parsing data and injecting content into the Elementor listing + * + * @param {Object} alm The alm object. + * @param {string} type The Elementor type. + * @return {Object} The modified object. + */ +function setElementorClasses(alm) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'posts'; + // Get the items based on the Elementor type. + alm.addons.elementor_container_class = alm.addons.elementor_settings.container_class; // Container class + + switch (type) { + case 'woocommerce': + alm.addons.elementor_item_class = alm.addons.elementor_settings.woo_item_class; // item class. + alm.addons.elementor_pagination_class = ".".concat(alm.addons.elementor_settings.woo_pagination_class); // Pagination class. + break; + case 'loop-grid': + alm.addons.elementor_item_class = alm.addons.elementor_settings.loop_grid_item_class; // item class. + alm.addons.elementor_pagination_class = ".".concat(alm.addons.elementor_settings.loop_grid_pagination_class); // Pagination class. + break; + default: + alm.addons.elementor_item_class = alm.addons.elementor_settings.posts_item_class; // item class. + alm.addons.elementor_pagination_class = ".".concat(alm.addons.elementor_settings.posts_pagination_class); // Pagination class. + break; + } + return alm; +} + +/** + * Parse Masonry Settings from Elementor Data atts + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function parseMasonryConfig(alm) { + var _target$dataset; + var addons = alm.addons; + if (!addons.elementor_element) { + return alm; // Exit if not found. + } + + var target = addons.elementor_element; + var settings = target !== null && target !== void 0 && (_target$dataset = target.dataset) !== null && _target$dataset !== void 0 && _target$dataset.settings ? JSON.parse(target.dataset.settings) : ''; + if (!settings) { + return alm; // Exit if not found. + } + + addons.elementor_masonry = settings.hasOwnProperty('cards_masonry') || settings.hasOwnProperty('classic_masonry') || settings.hasOwnProperty('masonry'); + if (addons.elementor_masonry) { + var _settings$cards_row_g, _settings$row_gap; + addons.elementor_masonry_columns = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns); + addons.elementor_masonry_columns_mobile = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_mobile); + addons.elementor_masonry_columns_tablet = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_tablet); + addons.elementor_masonry_gap = parseInt(settings === null || settings === void 0 || (_settings$cards_row_g = settings.cards_row_gap) === null || _settings$cards_row_g === void 0 ? void 0 : _settings$cards_row_g.size) || parseInt(settings === null || settings === void 0 || (_settings$row_gap = settings.row_gap) === null || _settings$row_gap === void 0 ? void 0 : _settings$row_gap.size); + } + return alm; +} + +/** + * Position Elementor Masonry Items + * + * @param {Object} alm The alm object. + * @param {string} container_class The container classname. + * @param {string} item_class The item classname. + */ +function positionMasonryItems(alm, container_class, item_class) { + var heights = []; + + // Get Elementor Settings + var columnsCount = alm.addons.elementor_masonry_columns; + var columnsCountTablet = alm.addons.elementor_masonry_columns_tablet; + var columnsCountMobile = alm.addons.elementor_masonry_columns_mobile; + var verticalSpaceBetween = alm.addons.elementor_masonry_gap; + var columns = columnsCount; + + // Get Elementor Breakpoints + var breakpoints = window.elementorFrontendConfig && window.elementorFrontendConfig.breakpoints ? window.elementorFrontendConfig.breakpoints : 0; + var windowW = window.innerWidth; + + // Set Columns + if (windowW > breakpoints.lg) { + columns = columnsCount; + } else if (windowW > breakpoints.md) { + columns = columnsCountTablet; + } else { + columns = columnsCountMobile; + } + + // Get Containers + var container = document.querySelector(container_class); + if (!container) { + return false; + } + var items = container.querySelectorAll(item_class); + if (!items) { + return false; + } + + // Loop items + items.forEach(function (item, index) { + var row = Math.floor(index / columns); + var itemHeight = item.getBoundingClientRect().height + verticalSpaceBetween; + if (row) { + var itemPosition = jQuery(item).position(); + var indexAtRow = index % columns; + var pullHeight = Math.round(itemPosition.top) - heights[indexAtRow]; + pullHeight *= -1; + item.style.marginTop = "".concat(Math.round(pullHeight), "px"); + heights[indexAtRow] += itemHeight; + } else { + heights.push(itemHeight); + } + }); +} + +/** + * Determine the type of elementor widget (woocommerce || posts) + * + * @param {HTMLElement} target The target element. + * @return {string} The Elementor type. + */ +function elementorGetWidgetType(target) { + if (!target) { + return false; + } + + // Get Elementor type based on container class. + if (target.classList.contains('elementor-wc-products')) { + return 'woocommerce'; + } else if (target.classList.contains('elementor-widget-loop-grid')) { + return 'loop-grid'; + } + return 'posts'; +} + +/** + * Get the pagination container for the Elementor pagination. + * + * @param {Object} alm The alm object. + * @param {Element} content The HTML content to search. + * @param {string} dir the direction, next of prev. + * @return {HTMLElement} The pagination element. + */ +function elementorGetPagedURL(alm, content) { + var _addons$elementor_set, _element$querySelecto; + var dir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'next'; + var _alm$addons = alm.addons, + addons = _alm$addons === void 0 ? {} : _alm$addons; + + // Locate the pagination container. + var element = (content === null || content === void 0 ? void 0 : content.querySelector(addons === null || addons === void 0 ? void 0 : addons.elementor_pagination_class)) || (content === null || content === void 0 ? void 0 : content.querySelector(".".concat(addons === null || addons === void 0 || (_addons$elementor_set = addons.elementor_settings) === null || _addons$elementor_set === void 0 ? void 0 : _addons$elementor_set.pagination_class))); + + // Get URL from the pagination element. + var page = element === null || element === void 0 || (_element$querySelecto = element.querySelector("a.".concat(dir))) === null || _element$querySelecto === void 0 ? void 0 : _element$querySelecto.href; + + // Return the paged URL element. + return page ? page : false; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/getParameterByName.js +/** + * Return a query param by name. + * + * @param {string} name The query param name. + * @param {string} url The URL. + * @return {string} The query param value. + */ +function getParameterByName(name, url) { + if (!url) url = window.location.href; + name = name.replace(/[\[\]]/g, '\\$&'); + var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)'); + var results = regex.exec(url); + if (!results) { + return null; + } + if (!results[2]) { + return ''; + } + return decodeURIComponent(results[2].replace(/\+/g, ' ')); +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/getQueryVariable.js +/** + * Get a query variable from location querystring + * + * @param {string} variable + * @since 5.3.4 + */ +function getQueryVariable(variable) { + var query = window.location.search.substring(1); + var vars = query.split('&'); + for (var i = 0; i < vars.length; i++) { + var pair = vars[i].split('='); + if (decodeURIComponent(pair[0]) === variable) { + return decodeURIComponent(pair[1]); + } + } + return false; +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/filters.js + + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function filtersCreateParams(alm) { + var _alm$listing; + var listing = alm.listing; + alm.addons.filters = (alm === null || alm === void 0 || (_alm$listing = alm.listing) === null || _alm$listing === void 0 || (_alm$listing = _alm$listing.dataset) === null || _alm$listing === void 0 ? void 0 : _alm$listing.filters) === 'true'; + if (alm.addons.filters) { + alm.addons.filters_url = listing.dataset.filtersUrl === 'true'; + alm.addons.filters_target = listing.dataset.filtersTarget ? listing.dataset.filtersTarget : false; + alm.addons.filters_paging = listing.dataset.filtersPaging === 'true'; + alm.addons.filters_scroll = listing.dataset.filtersScroll === 'true'; + alm.addons.filters_scrolltop = listing.dataset.filtersScrolltop ? listing.dataset.filtersScrolltop : '30'; + alm.addons.filters_debug = listing.dataset.filtersDebug; + alm.facets = listing.dataset.facets === 'true'; + + // Display warning when `filters_target` parameter is missing. + if (!alm.addons.filters_target) { + console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters="true" target="filters"]'); + } + + // Parse querystring value for pg. + var page = getParameterByName('pg'); + alm.addons.filters_startpage = page !== null ? parseInt(page) : 0; + + // Handle a paged URL with filters. + if (alm.addons.filters_startpage > 0) { + if (alm.addons.paging) { + // Paging add-on: Set current page value. + alm.page = alm.addons.filters_startpage - 1; + } else { + // Set posts_per_page value to load all required posts. + alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage; + alm.paged = true; + } + } + } + return alm; +} + +/** + * Create data attributes for a Filters item. + * + * @param {Object} alm The ALM object. + * @param {HTMLElement} element The element HTML node. + * @param {number} pagenum The current page number. + * @return {HTMLElement} Modified HTML element. + */ +function addFiltersAttributes(alm, element, pagenum) { + var canonical_url = alm.canonical_url; + var querystring = window.location.search; + element.classList.add('alm-filters'); + element.dataset.page = pagenum; + if (pagenum > 1) { + element.dataset.url = canonical_url + buildFilterURL(alm, querystring, pagenum); + } else { + element.dataset.url = canonical_url + buildFilterURL(alm, querystring, 0); + } + return element; +} + +/** + * Parse a filter querystring for returning caches directories. + * + * @param {string} path The URL path. + * @since 5.3.1 + */ +function parseQuerystring(path) { + // Get querystring + var query = window.location.search.substring(1); + var obj = ''; + var cache_dir = ''; + + // Parse querystring into object + if (query) { + obj = JSON.parse('{"' + query.replace(/&/g, '","').replace(/=/g, '":"') + '"}', function (key, value) { + // Replace + with - in URL + return key === '' ? value : decodeURIComponent(value.replace(/\+/g, '-')); + }); + + // Remove the following properties from the object as they should not be included in the cache ID + + if (obj.pg) { + // `pg` object prop + delete obj.pg; + } + if (obj.auto) { + // `auto` object prop + delete obj.auto; + } + } + if (obj) { + cache_dir += '/'; + Object.keys(obj).forEach(function (key, index) { + cache_dir += index > 0 ? '--' : ''; + cache_dir += "".concat(key, "--").concat(obj[key]); + }); + } + return path + cache_dir; +} + +/** + * Build new paging URL for filters. + * + * @param {Object} alm The ALM object. + * @param {string} querystring The current querystring. + * @param {number} page The page number. + * @return {string} The querystring. + * @since 5.3.5 + */ +function buildFilterURL(alm) { + var querystring = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var qs = querystring; + if (alm.addons.filters_paging) { + if (page > 1) { + // Paged + if (qs) { + // If already has `pg` in querystring + if (getQueryVariable('pg')) { + qs = querystring.replace(/(pg=)[^\&]+/, '$1' + page); + } else { + qs = querystring + '&pg=' + page; + } + } else { + qs = '?pg=' + page; + } + } else { + // Not Paged + qs = querystring.replace(/(pg=)[^\&]+/, ''); + qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring + qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols + } + } + + return qs; +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/next-page.js +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function nextpageCreateParams(alm) { + var _listing$dataset; + var listing = alm.listing; + alm.addons.nextpage = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.nextpage) === 'true'; + if (alm.addons.nextpage) { + alm.addons.nextpage_urls = listing.dataset.nextpageUrls === undefined ? 'true' : listing.dataset.nextpageUrls; + alm.addons.nextpage_scroll = listing.dataset.nextpageScroll === undefined ? 'false:30' : listing.dataset.nextpageScroll; + alm.addons.nextpage_post_id = listing.dataset.nextpagePostId ? listing.dataset.nextpagePostId : false; + alm.addons.nextpage_startpage = listing.dataset.nextpageStartpage ? parseInt(listing.dataset.nextpageStartpage) : 1; + alm.addons.nextpage_title_template = listing.dataset.nextpageTitleTemplate; + alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle; + + // Set default fallbacks. + alm.posts_per_page = 1; + alm.orginal_posts_per_page = 1; + if (!alm.addons.nextpage_post_id) { + alm.addons.nextpage = false; + } + if (alm.addons.nextpage_startpage > 1) { + alm.paged = true; + } + } + return alm; +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/insertScript.js +/** + * Search nodes for tags and run scripts. + * Scripts cannot run with appendChild or innerHTML so this is necessary to function. + * + * @since 5.0 + */ +var insertScript = { + /** + * Initiate the script insertion. + * + * @param {Array} nodes The HTML nodes. + */ + init: function init(nodes) { + var _this = this; + if (!(nodes !== null && nodes !== void 0 && nodes.length)) { + return false; + } + nodes.forEach(function (node) { + _this.check(node); + }); + }, + /** + * Parse HTML node from script. + * + * @param {HTMLElement} node The HTML node/element. + * @return {HTMLElement} The modified HTML node. + */ + check: function check(node) { + if (this.isScript(node) === true) { + node.parentNode.replaceChild(this.clone(node), node); + } else { + var i = 0; + var children = node.childNodes; + if (children === undefined) { + var parser = new DOMParser(); + var data = parser.parseFromString(node, 'text/html'); + if (data) { + children = data.body.childNodes; + } + } + while (i < children.length) { + this.replace(children[i++]); + } + } + return node; + }, + /** + * Replace the script tag with a clone. + * + * @param {HTMLElement} node The HTML node/element. + * @return {HTMLElement} The modified node. + */ + replace: function replace(node) { + if (this.isScript(node) === true) { + node.parentNode.replaceChild(this.clone(node), node); + } else { + var i = 0; + var children = node.childNodes; + while (i < children.length) { + this.replace(children[i++]); + } + } + return node; + }, + /** + * Clone the tag. + * + * @param {HTMLElement} node The HTML node/element. + * @return {HTMLElement} The cloned node. + */ + clone: function clone(node) { + var script = document.createElement('script'); + script.text = node.innerHTML; + for (var i = node.attributes.length - 1; i >= 0; i--) { + script.setAttribute(node.attributes[i].name, node.attributes[i].value); + } + return script; + }, + /** + * Is the node a script tag. + * + * @param {HTMLElement} node The html node. + */ + isScript: function isScript(node) { + return node.tagName === 'SCRIPT'; + } +}; +/* harmony default export */ var modules_insertScript = (insertScript); +;// CONCATENATED MODULE: ./src/frontend/js/addons/paging.js + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function pagingCreateParams(alm) { + var listing = alm.listing; + alm.addons.paging = listing.dataset.paging === 'true'; + if (alm.addons.paging) { + alm.addons.paging_init = true; + alm.addons.paging_controls = listing.dataset.pagingControls === 'true'; + alm.addons.paging_show_at_most = listing.dataset.pagingShowAtMost ? parseInt(listing.dataset.pagingShowAtMost) : 6; + alm.addons.paging_classes = listing.dataset.pagingClasses; + alm.addons.paging_first_label = listing.dataset.pagingFirstLabel; + alm.addons.paging_previous_label = listing.dataset.pagingPreviousLabel; + alm.addons.paging_next_label = listing.dataset.pagingNextLabel; + alm.addons.paging_last_label = listing.dataset.pagingLastLabel; + alm.addons.paging_scroll = listing.dataset.pagingScroll ? listing.dataset.pagingScroll : false; + alm.addons.paging_scrolltop = listing.dataset.pagingScrolltop ? parseInt(listing.dataset.pagingScrolltop) : 100; + alm.addons.paging_container = listing.querySelector('.alm-paging-content'); + alm.pause = alm.addons.preloaded ? true : alm.pause; // If preloaded, pause ALM. + } + + return alm; +} + +/** + * Function dispatched after paging content has been loaded. + * + * @param {Object} alm The alm object. + * @param {boolean} alm_is_filtering Is ALM filtering. + * @param {boolean} init Is first run. + */ +function pagingComplete(alm) { + var alm_is_filtering = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var main = alm.main, + AjaxLoadMore = alm.AjaxLoadMore, + last_loaded = alm.last_loaded; + main.classList.remove('alm-loading'); + AjaxLoadMore.triggerAddons(alm); + if (init) { + if (typeof almPagingComplete === 'function') { + window.almPagingComplete(); + } + } else { + // Dispatch almOnPagingComplete callback when not alm.init. + if (typeof almOnPagingComplete === 'function') { + window.almOnPagingComplete(alm); // Callback: Paging Add-on Complete. + } + } + + if (alm_is_filtering && alm.addons.filters && typeof almFiltersAddonComplete === 'function') { + window.almFiltersAddonComplete(main); // Callback: Filters Add-on Complete + } + + if (typeof almComplete === 'function') { + window.almComplete(alm); // Callback: ALM Complete + } + + // Trigger tags in templates. + modules_insertScript.init(last_loaded); +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/stripEmptyNodes.js + + +/** + * Remove empty HTML nodes from array of nodes. + * Filter out nodes by nodeName. + * + * @param {Array} nodes Array of HTML nodes + * @return {Array} The filtered array of HTML nodes + * @since 5.1.3 + */ +var stripEmptyNodes = function stripEmptyNodes() { + var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + return (nodes === null || nodes === void 0 ? void 0 : nodes.length) && nodes.filter(function (node) { + return EXCLUDED_NODES.indexOf(node.nodeName.toLowerCase()) === -1; + }); +}; +/* harmony default export */ var functions_stripEmptyNodes = (stripEmptyNodes); +;// CONCATENATED MODULE: ./src/frontend/js/addons/seo.js +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function seoCreateParams(alm) { + var _alm$listing; + var listing = alm.listing; + alm.addons.seo = listing.dataset.seo === 'true'; + if (alm.addons.seo) { + alm.addons.seo_offset = listing.dataset.seoOffset || false; + alm.addons.seo_permalink = listing.dataset.seoPermalink; + alm.addons.seo_trailing_slash = listing.dataset.seoTrailingSlash === 'false' ? '' : '/'; + alm.addons.seo_leading_slash = listing.dataset.seoLeadingSlash === 'true' ? '/' : ''; + if (alm.addons.seo_offset === 'true') { + alm.offset = alm.posts_per_page; + } + } + alm.start_page = (alm === null || alm === void 0 || (_alm$listing = alm.listing) === null || _alm$listing === void 0 || (_alm$listing = _alm$listing.dataset) === null || _alm$listing === void 0 ? void 0 : _alm$listing.seoStartPage) || ''; + if (alm.start_page) { + alm.start_page = parseInt(alm.start_page); + alm.addons.seo_scroll = listing.dataset.seoScroll; + alm.addons.seo_scrolltop = listing.dataset.seoScrolltop; + alm.addons.seo_controls = listing.dataset.seoControls; + alm.paged = false; + if (alm.start_page > 1) { + alm.paged = true; + if (alm.addons.paging) { + // Paging add-on: Set current page value. + alm.page = alm.start_page - 1; + } else { + // Set posts_per_page value to load all required posts. + alm.posts_per_page = alm.start_page * alm.posts_per_page; + } + } + } else { + alm.start_page = 1; + } + return alm; +} + +/** + * Create data attributes for an SEO item. + * + * @param {Object} alm The ALM object. + * @param {HTMLElement} element The element HTML node. + * @param {number} pagenum The current page number. + * @param {boolean} skipOffset Skip the SEO offset check. + * @return {HTMLElement} Modified HTML element. + */ +function addSEOAttributes(alm, element, pagenum) { + var skipOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + var addons = alm.addons, + canonical_url = alm.canonical_url; + var _alm_localize = alm_localize, + _alm_localize$retain_ = _alm_localize.retain_querystring, + retain_querystring = _alm_localize$retain_ === void 0 ? true : _alm_localize$retain_; + var querystring = retain_querystring ? window.location.search : ''; + pagenum = !skipOffset ? getSEOPageNum(addons === null || addons === void 0 ? void 0 : addons.seo_offset, pagenum) : pagenum; + element.classList.add('alm-seo'); + element.dataset.page = pagenum; + if (addons.seo_permalink === 'default') { + // Default Permalinks + if (pagenum > 1) { + element.dataset.url = "".concat(canonical_url).concat(querystring, "&paged=").concat(pagenum); + } else { + element.dataset.url = "".concat(canonical_url).concat(querystring); + } + } else { + // Pretty Permalinks + if (pagenum > 1) { + element.dataset.url = "".concat(canonical_url).concat(addons.seo_leading_slash, "page/").concat(pagenum).concat(addons.seo_trailing_slash).concat(querystring); + } else { + element.dataset.url = "".concat(canonical_url).concat(querystring); + } + } + return element; +} + +/** + * Get the current page number. + * + * @param {string} seo_offset Is this an SEO offset. + * @param {number} page The page number, + * @return {number} The page number. + */ +function getSEOPageNum(seo_offset, page) { + return seo_offset === 'true' ? parseInt(page) + 1 : parseInt(page); +} + +/** + * Create div to hold offset values for SEO. + * + * @param {Object} alm The ALM object. + */ +function createSEOOffset(alm) { + var offsetDiv = document.createElement('div'); + // Add data attributes. + offsetDiv = addSEOAttributes(alm, offsetDiv, 1, true); + + // Insert into ALM container. + alm.main.insertBefore(offsetDiv, alm.listing); +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/preloaded.js +function preloaded_toConsumableArray(arr) { return preloaded_arrayWithoutHoles(arr) || preloaded_iterableToArray(arr) || preloaded_unsupportedIterableToArray(arr) || preloaded_nonIterableSpread(); } +function preloaded_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function preloaded_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return preloaded_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return preloaded_arrayLikeToArray(o, minLen); } +function preloaded_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function preloaded_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return preloaded_arrayLikeToArray(arr); } +function preloaded_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function preloadedCreateParams(alm) { + var _listing$dataset; + var listing = alm.listing, + addons = alm.addons; + alm.addons.preloaded = listing.dataset.preloaded === 'true'; + alm.addons.preloaded_amount = listing !== null && listing !== void 0 && (_listing$dataset = listing.dataset) !== null && _listing$dataset !== void 0 && _listing$dataset.preloadedAmount ? parseInt(listing.dataset.preloadedAmount) : alm.posts_per_page; + if (!alm.addons.preloaded) { + alm.addons.preloaded_amount = 0; + } + if (addons.preloaded) { + if (alm !== null && alm !== void 0 && alm.localize) { + // Disable ALM if total_posts is equal to or less than preloaded_amount. + var _alm$localize$total_p = alm.localize.total_posts, + total_posts = _alm$localize$total_p === void 0 ? 0 : _alm$localize$total_p; + if (parseInt(total_posts) <= addons.preloaded_amount) { + alm.addons.preloaded_total_posts = parseInt(total_posts); + alm.disable_ajax = true; + } + } + } + return alm; +} + +/** + * Set parameters on HTML elements for preloaded results. + * + * @param {Object} alm The ALM object. + * @since 7.0.0 + */ +function setPreloadedParams(alm) { + var addons = alm.addons, + listing = alm.listing; + if (addons.paging) { + return; // Exit if paging. + } + + // Parse preloaded data into array of HTML elements. + var data = functions_stripEmptyNodes(preloaded_toConsumableArray(listing === null || listing === void 0 ? void 0 : listing.childNodes)); + + // Get first element in the data array. + var firstElement = data !== null && data !== void 0 && data.length && data[0] ? data[0] : false; + if (firstElement) { + if (addons !== null && addons !== void 0 && addons.seo) { + addSEOAttributes(alm, firstElement, 1); + } + if (addons !== null && addons !== void 0 && addons.filters) { + addFiltersAttributes(alm, firstElement, 1); + } + } +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/queryLoop.js +function queryLoop_typeof(o) { "@babel/helpers - typeof"; return queryLoop_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, queryLoop_typeof(o); } +function queryLoop_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ queryLoop_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == queryLoop_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(queryLoop_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function queryLoop_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function queryLoop_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { queryLoop_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { queryLoop_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + + + + + + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object|null} The modified object. + */ +function queryLoopCreateParams(alm) { + var main = alm.main; + var blockClassname = 'wp-block-query'; + + // Get the parent container. + var container = main.closest(".".concat(blockClassname)); + + // If parent is not a .wp-block-query, return alm. + if (!container) { + return alm; + } + + // If parent is a wp-block-query, set queryloop settings. + alm.addons.queryloop = true; + alm.addons.queryloop_settings = { + container: container, + classes: { + container: ".".concat(container.className.replace(/ /g, '.')), + listing: '.wp-block-post-template', + element: '.wp-block-post', + pagination: '.wp-block-query-pagination', + pagination_prev: 'a.wp-block-query-pagination-previous', + pagination_next: 'a.wp-block-query-pagination-next' + }, + pagination: container.querySelector('.wp-block-query-pagination'), + pagination_prev: container.querySelector('a.wp-block-query-pagination-previous'), + pagination_next: container.querySelector('a.wp-block-query-pagination-next') + }; + return alm; +} + +/** + * Set up the instance of Query Loop. + * + * @param {Object} alm + */ +function queryLoopInit(alm) { + var rel = alm.rel, + addons = alm.addons, + button = alm.button, + buttonPrev = alm.buttonPrev, + page = alm.page; + var _addons$queryloop_set = addons.queryloop_settings, + settings = _addons$queryloop_set === void 0 ? {} : _addons$queryloop_set; + + // Set button state & URL. + if (rel === 'prev' && buttonPrev) { + var _settings$pagination_; + var prevURL = (settings === null || settings === void 0 || (_settings$pagination_ = settings.pagination_prev) === null || _settings$pagination_ === void 0 ? void 0 : _settings$pagination_.href) || false; + if (prevURL) { + setButtonAtts(buttonPrev, page - 1, prevURL); + } else { + alm.AjaxLoadMore.triggerDonePrev(); + } + } else { + var _settings$pagination_2; + var nextURL = (settings === null || settings === void 0 || (_settings$pagination_2 = settings.pagination_next) === null || _settings$pagination_2 === void 0 ? void 0 : _settings$pagination_2.href) || false; + if (nextURL) { + setButtonAtts(button, page + 1, nextURL); + } else { + alm.AjaxLoadMore.triggerDone(); + } + } +} + +/** + * Get the content, title and results text from the Ajax response. + * + * @param {Object} alm The alm object. + * @param {string} url The request URL. + * @param {Object} response Query response. + * @param {string} cache_slug The cache slug. + * @return {Object} Results data. + */ +function queryLoopGetContent(alm, url, response, cache_slug) { + var data = API_DATA_SHAPE; // Default data object. + + // Successful response. + if (response.status === 200 && response.data) { + var _queryloop_settings$c, _queryloop_settings$c2, _queryloop_settings$c3, _queryloop_settings$c4; + var addons = alm.addons, + page = alm.page, + button = alm.button, + buttonPrev = alm.buttonPrev, + rel = alm.rel; + var _addons$queryloop_set2 = addons.queryloop_settings, + queryloop_settings = _addons$queryloop_set2 === void 0 ? {} : _addons$queryloop_set2; + + // Create temp div to hold response data. + var content = document.createElement('div'); + content.innerHTML = response.data; + + // Set button state & URL. + if (rel === 'prev' && buttonPrev) { + var prevURL = getPagedURL(queryloop_settings, content, 'prev'); + if (prevURL) { + setButtonAtts(buttonPrev, page - 1, prevURL); + } else { + alm.AjaxLoadMore.triggerDonePrev(); + } + } else { + var nextURL = getPagedURL(queryloop_settings, content); + if (nextURL) { + setButtonAtts(button, page + 1, nextURL); + } else { + alm.AjaxLoadMore.triggerDone(); + } + } + + // Get Page Title + var title = content.querySelector('title').innerHTML; + data.pageTitle = title; + + // Get container. + var container = content === null || content === void 0 ? void 0 : content.querySelector("".concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c = queryloop_settings.classes) === null || _queryloop_settings$c === void 0 ? void 0 : _queryloop_settings$c.container, " ").concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c2 = queryloop_settings.classes) === null || _queryloop_settings$c2 === void 0 ? void 0 : _queryloop_settings$c2.listing)); + if (!container) { + console.warn('Ajax Load More: Unable to locate Query Loop container.'); + return data; + } + + // Get the first item and append data attributes. + var item = container ? container.querySelector(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c3 = queryloop_settings.classes) === null || _queryloop_settings$c3 === void 0 ? void 0 : _queryloop_settings$c3.element) : null; + if (item) { + item.classList.add('alm-queryloop'); + item.dataset.url = url; + item.dataset.page = rel === 'next' ? page + 1 : page - 1; + item.dataset.pageTitle = title; + } + + // Count the number of returned items. + var items = container.querySelectorAll(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c4 = queryloop_settings.classes) === null || _queryloop_settings$c4 === void 0 ? void 0 : _queryloop_settings$c4.element); + if (items) { + // Set the html to the elementor container data. + data.html = container ? container.innerHTML : ''; + data.meta.postcount = items.length; + data.meta.totalposts = items.length; + + // Create cache file. + createCache(alm, data, cache_slug); + } + } + return data; +} + +/** + * Core ALM Query Loop loader. + * + * @param {HTMLElement} content The HTML data. + * @param {Object} alm The alm object. + */ +function queryloop(content, alm) { + if (!content || !alm) { + alm.AjaxLoadMore.triggerDone(); + return false; + } + return new Promise(function (resolve) { + var _queryloop_settings$c5, _queryloop_settings$c6; + var addons = alm.addons; + var _addons$queryloop_set3 = addons.queryloop_settings, + queryloop_settings = _addons$queryloop_set3 === void 0 ? {} : _addons$queryloop_set3; + + // Get post listing container. + var container = queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c5 = queryloop_settings.container) === null || _queryloop_settings$c5 === void 0 ? void 0 : _queryloop_settings$c5.querySelector("".concat(queryloop_settings.classes.listing)); + + // Get all individual items in Ajax response. + var items = content.querySelectorAll("".concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c6 = queryloop_settings.classes) === null || _queryloop_settings$c6 === void 0 ? void 0 : _queryloop_settings$c6.element)); + if (container && items) { + var queryloopItems = Array.prototype.slice.call(items); // Convert NodeList to Array + + // Trigger almQueryLoopLoaded callback. + if (typeof almQueryLoopLoaded === 'function') { + window.almQueryLoopLoaded(queryloopItems); + } + + // Load the items. + queryLoop_asyncToGenerator( /*#__PURE__*/queryLoop_regeneratorRuntime().mark(function _callee() { + return queryLoop_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return loadItems(container, queryloopItems, alm); + case 2: + resolve(true); + case 3: + case "end": + return _context.stop(); + } + }, _callee); + }))()["catch"](function (e) { + console.warn(e, 'There was an error with Query Loop'); // eslint-disable-line no-console + }); + } else { + resolve(false); + } + }); +} + +/** + * Query Loop loaded and dispatch actions. + * + * @param {Object} alm The alm object. + */ +function queryloopLoaded(alm) { + var page = alm.page, + AjaxLoadMore = alm.AjaxLoadMore, + addons = alm.addons; + var nextPage = page + 1; + var max_pages = addons.elementor_max_pages; + + // Lazy load images if necessary. + lazyImages(alm); + + // Trigger almComplete. + if (typeof almComplete === 'function' && alm.transition !== 'masonry') { + window.almComplete(alm); + } + + // End transitions. + AjaxLoadMore.transitionEnd(); + + // ALM Done. + if (nextPage >= max_pages) { + AjaxLoadMore.triggerDone(); + } + dispatchScrollEvent(); +} + +/** + * Get the pagination container for the Elementor pagination. + * + * @param {Object} settings The query loop settings object. + * @param {Element} content The HTML content to search. + * @param {string} dir the direction, next of prev. + * @return {HTMLElement} The pagination element. + */ +function getPagedURL(settings, content) { + var _settings$classes, _settings$classes2, _pagination$querySele; + var dir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'next'; + // Locate the pagination container. + var pagination = content === null || content === void 0 ? void 0 : content.querySelector("".concat(settings.classes.container, " ").concat(settings.classes.pagination)); + + // Get the pagination target class. + var target = dir === 'next' ? (_settings$classes = settings.classes) === null || _settings$classes === void 0 ? void 0 : _settings$classes.pagination_next : (_settings$classes2 = settings.classes) === null || _settings$classes2 === void 0 ? void 0 : _settings$classes2.pagination_prev; + + // Get the next URL from the pagination element. + var page = pagination === null || pagination === void 0 || (_pagination$querySele = pagination.querySelector(target)) === null || _pagination$querySele === void 0 ? void 0 : _pagination$querySele.href; + + // Return the next page URL. + return page ? page : false; +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/singleposts.js + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function singlepostsCreateParams(alm) { + var _listing$dataset; + var listing = alm.listing; + alm.addons.single_post = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.singlePost) === 'true'; + if (alm.addons.single_post) { + alm.addons.single_post_id = listing.dataset.singlePostId; + alm.addons.single_post_query = listing.dataset.singlePostQuery; + alm.addons.single_post_order = listing.dataset.singlePostOrder === undefined ? 'previous' : listing.dataset.singlePostOrder; + alm.addons.single_post_init_id = listing.dataset.singlePostId; + alm.addons.single_post_taxonomy = listing.dataset.singlePostTaxonomy === undefined ? '' : listing.dataset.singlePostTaxonomy; + alm.addons.single_post_excluded_terms = listing.dataset.singlePostExcludedTerms === undefined ? '' : listing.dataset.singlePostExcludedTerms; + alm.addons.single_post_progress_bar = listing.dataset.singlePostProgressBar === undefined ? '' : listing.dataset.singlePostProgressBar; + alm.addons.single_post_target = listing.dataset.singlePostTarget === undefined ? '' : listing.dataset.singlePostTarget; + alm.addons.single_post_preview = listing.dataset.singlePostPreview === undefined ? false : true; + + // Post Preview. Does this even work? + if (alm.addons.single_post_preview) { + var singlePostPreviewData = listing.dataset.singlePostPreview.split(':'); + alm.addons.single_post_preview_data = { + button_label: singlePostPreviewData[0] ? singlePostPreviewData[0] : 'Continue Reading', + height: singlePostPreviewData[1] ? singlePostPreviewData[1] : 500, + element: singlePostPreviewData[2] ? singlePostPreviewData[2] : 'default', + className: 'alm-single-post--preview' + }; + } + if (alm.addons.single_post_id === undefined) { + alm.addons.single_post_id = ''; + alm.addons.single_post_init_id = ''; + } + + // Set default fallbacks. + alm.addons.single_post_permalink = ''; + alm.addons.single_post_title = ''; + alm.addons.single_post_slug = ''; + alm.addons.single_post_cache = false; + alm.addons.single_post_title_template = listing.dataset.singlePostTitleTemplate; + alm.addons.single_post_siteTitle = listing.dataset.singlePostSiteTitle; + alm.addons.single_post_siteTagline = listing.dataset.singlePostSiteTagline; + alm.addons.single_post_scroll = listing.dataset.singlePostScroll; + alm.addons.single_post_scroll_speed = listing.dataset.singlePostScrollSpeed; + alm.addons.single_post_scroll_top = listing.dataset.singlePostScrolltop; + alm.addons.single_post_controls = listing.dataset.singlePostControls; + } + return alm; +} + +/** + * Create the HTML for loading Single Posts. + * + * @param {Object} alm The alm object. + * @param {Object} response Query response. + * @param {string} cache_slug The cache slug. + * @return {Object} Results data. + * @since 5.1.8.1 + */ +function singlepostsHTML(alm, response, cache_slug) { + var data = { + html: '', + meta: { + postcount: 0, + totalposts: 0 + } + }; + + // Get target element. + var _alm$addons = alm.addons, + single_post_target = _alm$addons.single_post_target, + single_post_id = _alm$addons.single_post_id; + if (response.status === 200 && response.data && single_post_target) { + var _window; + // Create temp div to hold response data. + var div = document.createElement('div'); + div.innerHTML = response.data; + + // Get target element. + var html = div.querySelector(single_post_target); + if (!html) { + console.warn("Ajax Load More: Unable to find ".concat(single_post_target, " element.")); + return data; + } + + // Get any custom target elements. + if ((_window = window) !== null && _window !== void 0 && _window.almSinglePostsCustomElements) { + var _window2; + var customElements = singlepostsGetCustomElements(div, (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.almSinglePostsCustomElements, single_post_id); + if (customElements) { + // Get first element in HTML. + var target = html.querySelector('article, section, div'); + if (target) { + target.appendChild(customElements); + } + } + } + data.html = html.innerHTML; + data.meta = { + postcount: 1, + totalposts: 1 + }; + + // Create cache file. + createCache(alm, data, cache_slug); + } + return data; +} + +/** + * Find nested Next Page instance and prepend first element to the returned HTML. + * + * @param {Element} html The wrapper element. + * @return {Element} The modified element. + */ +function getNestedNextPageElement(html) { + var nextpageElement = html.querySelector('.ajax-load-more-wrap .alm-nextpage'); + if (!nextpageElement) { + return html; + } + + // Clone the nextpage element and clear the contents. + var clone = nextpageElement.cloneNode(true); + clone.innerHTML = ''; + + // Insert the clone before the first child. + html.insertBefore(clone, html.querySelector(':first-child')); + return html; +} + +/** + * Collect custom target elements and append them to the returned HTML. + * This function is useful to get elements from outside the ALM target and bring them into the returned HTML. + * Useful for when CSS or JS may be loaded in the and we need it brought into the HTML for Single Posts. + * + * e.g. window.almSinglePostsCustomElements = ['#woocommerce-inline-inline-css', '#wc-block-style-css']; + * + * @param {HTMLElement} content The HTML element. + * @param {Array} customElements The elements to search for in content. + * @param {string|number} id The Post ID. + * @return {HTMLElement} The HTML elements. + */ +function singlepostsGetCustomElements() { + var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var customElements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; + var id = arguments.length > 2 ? arguments[2] : undefined; + if (!content || !customElements) { + return container; // Exit if empty. + } + + // Create container element if if doesn't exist. + var container = document.createElement('div'); + container.classList.add('alm-custom-elements'); + container.dataset.id = id; + + // Convert customElements to an Array. + customElements = !Array.isArray(customElements) ? [customElements] : customElements; + + // Loop Array to extract elements and append to container. + for (var i = 0; i < customElements.length; i++) { + var element = content.querySelector(customElements[i]); + if (element) { + element.classList.add('alm-custom-element'); + container.appendChild(element); + } + } + return container; +} + +/** + * Create data attributes for a Single Post item. + * + * @param {Object} alm The ALM object. + * @param {Element} element The elements HTML element to add data params. + * @return {Array} Modified HTML element. + */ +function addSinglePostsAttributes(alm, element) { + if (!element) { + return []; + } + var page = alm.page, + addons = alm.addons; + element.setAttribute('class', "alm-single-post post-".concat(addons.single_post_id)); + element.dataset.id = addons.single_post_id; + element.dataset.url = addons.single_post_permalink; + element.dataset.page = addons.single_post_target ? parseInt(page) + 1 : page; + element.dataset.title = addons.single_post_title; + return element; +} +;// CONCATENATED MODULE: ./src/frontend/js/addons/woocommerce.js +function woocommerce_typeof(o) { "@babel/helpers - typeof"; return woocommerce_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, woocommerce_typeof(o); } +function woocommerce_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ woocommerce_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == woocommerce_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(woocommerce_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function woocommerce_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function woocommerce_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { woocommerce_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { woocommerce_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + + + + + + + + + + +/** + * Create add-on params for ALM. + * + * @param {Object} alm The alm object. + * @return {Object} The modified object. + */ +function wooCreateParams(alm) { + var _listing$dataset; + var listing = alm.listing, + addons = alm.addons; + alm.addons.woocommerce = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.woo) === 'true'; + if (alm.addons.woocommerce && listing.dataset.wooSettings) { + var _addons$woocommerce_s; + alm.addons.woocommerce_settings = JSON.parse(listing.dataset.wooSettings); + alm.addons.woocommerce_settings.results_text = document.querySelectorAll(addons === null || addons === void 0 || (_addons$woocommerce_s = addons.woocommerce_settings) === null || _addons$woocommerce_s === void 0 ? void 0 : _addons$woocommerce_s.results); // Add Results Text + alm.page = parseInt(alm.page) + parseInt(addons.woocommerce_settings.paged); + } + return alm; +} + +/** + * Set up instance of ALM WooCommerce + * + * @param {Object} alm ALM object. + * @since 5.3.0 + */ +function wooInit(alm) { + if (!alm || !alm.addons.woocommerce) { + return false; + } + var container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products` + if (!container) { + console.warn('ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container'); + return; + } + alm.button.dataset.page = alm.addons.woocommerce_settings.paged + 1; // Page + + // Get upcoming URL. + var nextPage = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged]; + if (nextPage) { + alm.button.dataset.url = nextPage; + } else { + alm.button.dataset.url = ''; + } + var count = countContainers(alm.addons.woocommerce_settings.container); + var page = alm.addons.woocommerce_settings.paged; + if (count > 1) { + // Display warning if multiple containers were found. + console.warn('ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/'); + } + + // Set attributes on containers. + setContentContainersParams(container, alm.listing); + + // Set data attributes on first item. + var item = container.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item + if (item) { + item.classList.add('alm-woocommerce'); + item.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1]; + item.dataset.page = alm.page; + item.dataset.pageTitle = document.title; + } else { + console.warn('ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products'); + } + + // Paged URL: Create previous button. + if (page > 1 && alm.addons.woocommerce_settings.settings.previous_products) { + var prevURL = alm.addons.woocommerce_settings.paged_urls[page - 2]; + var label = alm.addons.woocommerce_settings.settings.previous_products; + createLoadPreviousButton(alm, container, page - 1, prevURL, label); + } +} + +/** + * Core ALM WooCommerce product loader + * + * @param {Element} content WooCommerce content container. + * @param {Object} alm ALM object. + * @since 5.3.0 + */ +function woocommerce(content, alm) { + if (!content || !alm) { + return false; + } + return new Promise(function (resolve) { + var _alm$addons$woocommer = alm.addons.woocommerce_settings, + woocommerce_settings = _alm$addons$woocommer === void 0 ? {} : _alm$addons$woocommer; + var _woocommerce_settings = woocommerce_settings.settings, + settings = _woocommerce_settings === void 0 ? {} : _woocommerce_settings; + var container = document.querySelector(woocommerce_settings.container); // Get `ul.products` + var products = content.querySelectorAll(woocommerce_settings.products); // Get all `.products` + var waitForImages = settings && settings.images_loaded === 'true' ? true : false; + if (container && products) { + var wooProducts = Array.prototype.slice.call(products); // Convert NodeList to Array. + + // Load the items. + woocommerce_asyncToGenerator( /*#__PURE__*/woocommerce_regeneratorRuntime().mark(function _callee() { + return woocommerce_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return loadItems(container, wooProducts, alm, waitForImages); + case 2: + resolve(true); + case 3: + case "end": + return _context.stop(); + } + }, _callee); + }))()["catch"](function (e) { + console.warn(e, 'There was an error with WooCommerce'); // eslint-disable-line no-console + }); + + // Trigger almWooCommerceLoaded callback. + if (typeof almWooCommerceLoaded === 'function') { + window.almWooCommerceLoaded(products); + } + } + }); +} + +/** + * Get the content, title and results from the Ajax request. + * + * @param {Object} alm The alm object. + * @param {string} url The request URL. + * @param {Object} response Query response. + * @param {string} cache_slug The cache slug. + * @return {Object} Results data. + * @since 5.3.0 + */ +function wooGetContent(alm, url, response, cache_slug) { + var data = API_DATA_SHAPE; // Default data object. + + // Successful response. + if (response.status === 200 && response.data) { + var addons = alm.addons, + pagePrev = alm.pagePrev, + _alm$rel = alm.rel, + rel = _alm$rel === void 0 ? 'next' : _alm$rel, + page = alm.page, + localize = alm.localize; + var total_posts = localize.total_posts; + var _addons$woocommerce_s2 = addons.woocommerce_settings, + woocommerce_settings = _addons$woocommerce_s2 === void 0 ? {} : _addons$woocommerce_s2; + + // Get the page number. + var currentPage = rel === 'prev' ? pagePrev : page + 1; + + // Create temp div to hold response data. + var content = document.createElement('div'); + content.innerHTML = response.data; + + // Get Page Title + var title = content.querySelector('title').innerHTML; + data.pageTitle = title; + + // Get WooCommerce products container. + var container = content.querySelector(woocommerce_settings.container); + if (!container) { + console.warn("Ajax Load More WooCommerce: Unable to find WooCommerce ".concat(woocommerce_settings.container, " element.")); + return data; + } + + // Get the first item and append data attributes. + var item = container ? container.querySelector(woocommerce_settings.products) : null; + if (item) { + item.classList.add('alm-woocommerce'); + item.dataset.url = url; + item.dataset.page = currentPage; + item.dataset.pageTitle = title; + } + + // Count the number of returned items. + var items = container.querySelectorAll(woocommerce_settings.products); + if (items) { + // Set the html to the elementor container data. + data.html = container ? container.innerHTML : ''; + data.meta.postcount = items.length; + data.meta.totalposts = total_posts; + + // Create cache file. + createCache(alm, data, cache_slug); + } + + // Results Text + almWooCommerceResultsText(content, alm); + } + return data; +} + +/** + * Handle WooCommerce loaded functionality and dispatch actions. + * + * @param {Object} alm ALM object. + * @since 5.5.0 + */ +function woocommerceLoaded(alm) { + var addons = alm.addons; + var nextPageNum = alm.page + 2; + var nextPage = addons.woocommerce_settings.paged_urls[nextPageNum - 1]; // Get URL. + + // Set button state & URL. + if (alm.rel === 'prev' && alm.buttonPrev) { + var prevPage = addons.woocommerce_settings.paged_urls[alm.pagePrev - 2]; + setButtonAtts(alm.buttonPrev, parseInt(alm.pagePrev) - 1, prevPage); + } else { + setButtonAtts(alm.button, nextPageNum, nextPage); + } + + // Lazy load images if necessary. + lazyImages(alm); + + // Trigger almComplete. + if (typeof almComplete === 'function' && alm.transition !== 'masonry') { + window.almComplete(alm); + } + + // End transitions. + alm.AjaxLoadMore.transitionEnd(); + + // ALM Done. + if (alm.rel === 'prev' && alm.pagePrev <= 1) { + alm.AjaxLoadMore.triggerDonePrev(); + } + if (alm.rel === 'next' && nextPageNum > parseInt(alm.addons.woocommerce_settings.pages)) { + alm.AjaxLoadMore.triggerDone(); + } + dispatchScrollEvent(); +} + +/** + * Reset a WooCommerce Instance by hitting the updated site URL. + * + * @since 5.3.8 + */ +function wooReset() { + return new Promise(function (resolve) { + var url = window.location; + lib_axios.get(url).then(function (response) { + if (response.status === 200 && response.data) { + var div = document.createElement('div'); + div.innerHTML = response.data; // Add data to div + + var alm = div.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'); // Get ALM instance + var settings = alm ? alm.dataset.wooSettings : ''; // Get settings data + resolve(settings); + } else { + resolve(false); + } + })["catch"](function () { + resolve(false); + }); + }); +} + +/** + * Set results text for WooCommerce Add-on. + * + * @param {Element} target The target HTML element. + * @param {Object} alm ALM object. + * @since 5.3 + */ +function almWooCommerceResultsText() { + var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var alm = arguments.length > 1 ? arguments[1] : undefined; + if (target && alm && alm.addons.woocommerce_settings.results_text) { + var currentResults = target.querySelector(alm.addons.woocommerce_settings.results); + if (alm.addons.woocommerce_settings.results_text) { + //let link = alm.addons.woocommerce_settings.settings.previous_page_link; + //let label = alm.addons.woocommerce_settings.settings.previous_page_label; + //let sep = alm.addons.woocommerce_settings.settings.previous_page_sep; + alm.addons.woocommerce_settings.results_text.forEach(function (element) { + element.innerHTML = currentResults.innerHTML; + // if (link && label) { + // element.innerHTML = returnButton(currentResults, link, label, sep); + // } else { + // element.innerHTML = currentResults.innerHTML; + // } + }); + } + } +} + +/** + * Initiate Results text. + * + * @param {Object} alm ALM object. + * @since 5.3 + * @deprecated 5.5 + */ +function almWooCommerceResultsTextInit(alm) { + if (alm && alm.addons.woocommerce_settings.results_text) { + var results = document.querySelectorAll(alm.addons.woocommerce_settings.results); + if (results.length < 1) { + return false; + } + var link = alm.addons.woocommerce_settings.settings.previous_page_link; + var label = alm.addons.woocommerce_settings.settings.previous_page_label; + var sep = alm.addons.woocommerce_settings.settings.previous_page_sep; + // Loop all result text elements + results.forEach(function (element) { + if (link && label) { + element.innerHTML = returnButton(element, link, label, sep); + } + }); + } +} + +/** + * Create button text for returning to the first page + * + * @param {Element} text The button text. + * @param {string} link Link URL. + * @param {string} label Button label. + * @param {string} seperator HTML separator. + */ +function returnButton(text, link, label, seperator) { + var button = " ".concat(seperator, " ").concat(label, ""); + return text.innerHTML + button; +} + +/** + * Get total count of WooCommerce containers. + * + * @param {string} container The container class. + * @return {number} The total number of containers. + */ +function countContainers(container) { + if (!container) { + return 0; + } + var containers = document.querySelectorAll(container); // Get all containers. + if (!containers) { + return 0; + } + return containers.length; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/displayResults.js + + + +var displayResults_imagesLoaded = __webpack_require__(564); + +/** + * Append and display Ajax results to the ALM container. + * + * @param {Object} alm The ALM object. + * @param {Array} nodes The HTML nodes to append. + * @return {Promise} The Promise object. + */ +function displayResults(alm, nodes) { + var container = alm.listing, + transition = alm.transition, + speed = alm.speed, + images_loaded = alm.images_loaded; + return new Promise(function (resolve) { + if (!container || !nodes) { + resolve(true); + return; + } + var useTransition = transition === 'fade' ? true : false; + + // Add each node to the alm listing container. + nodes.forEach(function (node) { + var nodeName = node.nodeName.toLowerCase(); + if (useTransition || images_loaded) { + node.style.opacity = 0; + if (useTransition) { + node.style.transition = "all ".concat(speed, "ms ease"); + } + } + + /** + * Do not append elements that are not actual element nodes (i.e. #text node). + * Add item if not in exclude array. + */ + if (EXCLUDED_NODES.indexOf(nodeName) === -1) { + container.appendChild(node); + } + }); + + // Run srcSet polyfill. + srcsetPolyfill(container, alm.ua); + + // Lazy load images. + lazyImages(alm); + + // Display the results. + if (images_loaded) { + displayResults_imagesLoaded(container, function () { + display(alm, nodes, useTransition); + }); + } else { + display(alm, nodes, useTransition); + } + resolve(true); + }); +} + +/** + * Append and display Ajax results to the Paging container. + * + * @param {Object} alm The ALM object. + * @param {Array} nodes The HTML nodes to append. + * @return {Promise} The Promise object. + */ +function displayPagingResults(alm, nodes) { + var addons = alm.addons; + var container = addons.paging_container; + return new Promise(function (resolve) { + if (!container || !nodes) { + resolve(true); + return; + } + + // Clear contents of Paging container. + container.style.opacity = 0; + container.innerHTML = ''; + + // Add each node to the paging container. + nodes.forEach(function (node) { + var nodeName = node.nodeName.toLowerCase(); + /** + * Do not append elements that are not actual element nodes (i.e. #text node). + * Add item if not in exclude array. + */ + if (EXCLUDED_NODES.indexOf(nodeName) === -1) { + container.appendChild(node); + } + }); + + // Run srcSet polyfill. + srcsetPolyfill(container, alm.ua); + + // Lazy load images. + lazyImages(alm); + resolve(true); + }); +} + +/** + * Display the loaded results via CSS transition. + * + * @param {Object} alm The ALM object. + * @param {Array} nodes The HTML nodes to append. + * @param {boolean} useTransition Use CSS transition. + */ +function display(alm, nodes) { + var useTransition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var delay = alm.transition_delay, + images_loaded = alm.images_loaded; + var offset = useTransition ? parseInt(delay) : 0; // Delay offset timing. + + if (nodes) { + setTimeout(function () { + if (useTransition || images_loaded) { + nodes.forEach(function (node, index) { + setTimeout(function () { + node.style.opacity = 1; + }, index * offset); + }); + } + alm.AjaxLoadMore.transitionEnd(); + }, 50); + } +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/formatHTML.js +function formatHTML_toConsumableArray(arr) { return formatHTML_arrayWithoutHoles(arr) || formatHTML_iterableToArray(arr) || formatHTML_unsupportedIterableToArray(arr) || formatHTML_nonIterableSpread(); } +function formatHTML_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function formatHTML_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return formatHTML_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return formatHTML_arrayLikeToArray(o, minLen); } +function formatHTML_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function formatHTML_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return formatHTML_arrayLikeToArray(arr); } +function formatHTML_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + + + + +/** + * Create data attributes for Single Posts, SEO and Filter paged results. + * + * @param {Object} alm The ALM object. + * @param {Array} elements The element HTML nodes. + * @return {Array} The modified elements. + * @since 7.0.0 + */ +function formatHTML(alm, elements) { + var _elements; + if (!((_elements = elements) !== null && _elements !== void 0 && _elements.length)) { + return []; + } + var addons = alm.addons, + page = alm.page, + posts_per_page = alm.posts_per_page, + init = alm.init, + start_page = alm.start_page, + container_type = alm.container_type; + + // Single Posts. + if (addons !== null && addons !== void 0 && addons.single_post) { + var singleWrap = document.createElement('div'); + singleWrap.innerHTML = alm.html; + singleWrap = addSinglePostsAttributes(alm, singleWrap); + singleWrap = getNestedNextPageElement(singleWrap); + + // Single Post Preview. + if (addons !== null && addons !== void 0 && addons.single_post_preview && addons !== null && addons !== void 0 && addons.single_post_preview_data && typeof almSinglePostCreatePreview === 'function') { + var singlePreview = almSinglePostCreatePreview(singleWrap, addons.single_post_id, addons.single_post_preview_data); + if (singlePreview) { + singleWrap.replaceChildren(singlePreview); + } + } + alm.last_loaded = [singleWrap]; + return [singleWrap]; + } + + // Exit if not SEO or Filters. + if (!(addons !== null && addons !== void 0 && addons.seo) && !(addons !== null && addons !== void 0 && addons.filters)) { + return elements; + } + var current = parseInt(page) + 1; + current = addons !== null && addons !== void 0 && addons.preloaded ? current + 1 : current; + + // If init and SEO or Filter start_page, set pagenum to 1. + if (init && (parseInt(start_page) > 1 || (addons === null || addons === void 0 ? void 0 : addons.filters_startpage) > 1)) { + current = 1; + } + + // Call to Action add-on: Add 1 if CTA is true. + var per_page = addons !== null && addons !== void 0 && addons.cta ? parseInt(posts_per_page) + 1 : parseInt(posts_per_page); + + // If table, format the return data. + if (container_type === 'table') { + elements = formatTable(elements); + } + + /** + * Split elements array into individual pages. + */ + var pages = []; + for (var i = 0; i < ((_elements2 = elements) === null || _elements2 === void 0 ? void 0 : _elements2.length); i += per_page) { + var _elements2; + pages.push(elements.slice(i, per_page + i)); + } + + /** + * Loop pages and modify first element in return data. + */ + if (pages) { + for (var _i = 0; _i < pages.length; _i++) { + var index = _i > 0 ? _i * per_page : 0; + if (elements[index]) { + if (addons !== null && addons !== void 0 && addons.seo) { + elements[index] = addSEOAttributes(alm, elements[index], _i + current); + } + if (addons !== null && addons !== void 0 && addons.filters) { + elements[index] = addFiltersAttributes(alm, elements[index], _i + current); + } + } + } + } + return elements; +} + +/** + * Format return table data. + * + * @param {Array} elements The element HTML nodes. + * @return {Array} The modified elements. + */ +function formatTable() { + var _elements3; + var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + if (!elements) { + return []; + } + var tableChildren = (_elements3 = elements) !== null && _elements3 !== void 0 && _elements3.length ? elements[0].childNodes : []; + if (tableChildren) { + elements = functions_stripEmptyNodes(formatHTML_toConsumableArray(tableChildren)); + } + return elements; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/getScrollPercentage.js +/** + * Get the scroll distance in pixels from a percentage. + * + * @param {Object} alm The Ajax Load More object. + * @return {number} The new distance. + * @since 5.2 + */ +function getScrollPercentage(alm) { + if (!alm) { + return false; + } + var is_negative = alm.scroll_distance_orig.toString().indexOf('-') === -1 ? false : true; // Is this a negative number + var raw_distance = alm.scroll_distance_orig.toString().replace('-', '').replace('%', ''); // Remove - and perc + var wh = alm.window.innerHeight; // window height + var height = Math.floor(wh / 100 * parseInt(raw_distance)); // Do math to get distance + var newdistance = is_negative ? "-".concat(height) : height; // Set the distance + + return parseInt(newdistance); +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/getTotals.js +/** + * Get the total posts remaining in the current query by ALM instance ID. + * Note: Uses localized ALM variables. + * + * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php + * @param {string} type The type of total to retrieve. + * @param {string} id An optional Ajax Load More ID. + * @return {number} A total post count. + */ +function getTotals(type) { + var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + // Get the ALM localized variable name. + var localize_var = id ? "ajax_load_more_".concat(id.replace(/-/g, '_'), "_vars") : 'ajax_load_more_vars'; + + // Get the localized value from the window object. + var localized = window[localize_var]; + if (!localized) { + return null; + } + + // Deconstruct the object. + var total_posts = localized.total_posts, + post_count = localized.post_count, + page = localized.page, + pages = localized.pages; + switch (type) { + case 'total_posts': + return total_posts ? parseInt(total_posts) : ''; + case 'post_count': + return post_count ? parseInt(post_count) : ''; + case 'page': + return page ? parseInt(page) : ''; + case 'pages': + return pages ? parseInt(pages) : ''; + case 'remaining': + if (!total_posts || !post_count) { + return ''; + } + return parseInt(total_posts) - parseInt(post_count); + } +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/noResults.js +/** + * Set the results text if required. + * + * @param {Element} element Target HTML element + * @param {string} html Text as HTML to display. + * @since 5.1 + */ +function noResults(element) { + var html = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + if (!html || !element) { + return; // Exit if empty. + } + + // Remove empty tags. + html = html.replace(/(<\/p>)+/g, ''); + + // Is this a paging instance. + var paging = element === null || element === void 0 ? void 0 : element.querySelector('.alm-paging-content'); + if (paging) { + paging.innerHTML = html; + } else { + element.innerHTML = html; + } +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/parsers.js +function parsers_toConsumableArray(arr) { return parsers_arrayWithoutHoles(arr) || parsers_iterableToArray(arr) || parsers_unsupportedIterableToArray(arr) || parsers_nonIterableSpread(); } +function parsers_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function parsers_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return parsers_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return parsers_arrayLikeToArray(o, minLen); } +function parsers_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function parsers_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return parsers_arrayLikeToArray(arr); } +function parsers_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + +/** + * Convert a plain text string into an array of HTML nodes. + * + * @param {string} html The HTML string + * @param {string} type The element type. + * @return {Array} The HTML nodes as an array. + * @since 5.0 + */ +function domParser() { + var _data$body; + var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text/html'; + if (!html) { + return []; + } + var parser = new DOMParser(); + var data = parser.parseFromString(html, type); + var nodes = data === null || data === void 0 || (_data$body = data.body) === null || _data$body === void 0 ? void 0 : _data$body.childNodes; + return nodes ? functions_stripEmptyNodes(parsers_toConsumableArray(nodes)) : []; +} + +/** + * Convert retun table data into an array of HTML elements. + * + * @param {string} html Plain text HTML. + * @return {Array} Array of HTML elements. + * @since 5.0 + */ +function tableParser() { + var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + if (!html) { + return []; + } + // Create table element and add results to table body. + var tbody = document.createElement('tbody'); + tbody.innerHTML = html; + return [tbody]; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/queryParams.js + + +/** + * Build the data object to send with the Ajax request. + * + * @param {Object} alm The ALM object. + * @param {string} queryType The query type. + * @return {Object} The data object. + * @since 3.6 + */ +function getAjaxParams(alm, queryType) { + var addons = alm.addons, + extensions = alm.extensions; + + // Defaults + var data = { + action: 'alm_get_posts', + query_type: queryType, + id: alm.id, + post_id: parseInt(alm.post_id), + slug: alm.slug, + canonical_url: encodeURIComponent(alm.canonical_url), + posts_per_page: parseInt(alm.posts_per_page), + page: parseInt(alm.page), + offset: parseInt(alm.offset), + post_type: alm.post_type, + repeater: alm.repeater, + seo_start_page: alm.start_page + }; + + // Addons & Extensions + + if (extensions.acf) { + data.acf = getTypeParams(alm, 'acf'); + if (extensions.acf_field_type !== 'relationship') { + data.action = 'alm_acf'; + } + } + if (addons.comments) { + data.comments = getTypeParams(alm, 'comments'); + data.posts_per_page = addons.comments_per_page; + data.action = 'alm_comments'; + } + if (addons.cta) { + data.cta = getTypeParams(alm, 'cta'); + } + if (addons.filters) { + data.filters = addons.filters; + data.filters_startpage = addons.filters_startpage; + data.filters_target = addons.filters_target; + data.facets = alm.facets; + } + if (addons.nextpage) { + data.nextpage = getTypeParams(alm, 'nextpage'); + data.action = 'alm_nextpage'; + } + if (addons.paging) { + data.paging = addons.paging; + } + if (addons.preloaded) { + data.preloaded = addons.preloaded; + data.preloaded_amount = parseInt(addons.preloaded_amount); + } + if (addons.single_post) { + data.single_post = getTypeParams(alm, 'single_post'); + } + if (extensions.term_query) { + data.term_query = getTypeParams(alm, 'term_query'); + data.action = 'alm_get_terms'; + } + if (alm.extensions.users) { + data.users = getTypeParams(alm, 'users'); + data.action = 'alm_users'; + } + if (alm.theme_repeater) { + data.theme_repeater = alm.theme_repeater; + } + + // Query data params from ALM HTML element. + if (alm.listing.dataset.lang) { + data.lang = alm.listing.dataset.lang; + } + if (alm.listing.dataset.stickyPosts) { + data.sticky_posts = alm.listing.dataset.stickyPosts; + } + if (alm.listing.dataset.postFormat) { + data.post_format = alm.listing.dataset.postFormat; + } + if (alm.listing.dataset.category) { + data.category = alm.listing.dataset.category; + } + if (alm.listing.dataset.categoryAnd) { + data.category__and = alm.listing.dataset.categoryAnd; + } + if (alm.listing.dataset.categoryNotIn) { + data.category__not_in = alm.listing.dataset.categoryNotIn; + } + if (alm.listing.dataset.tag) { + data.tag = alm.listing.dataset.tag; + } + if (alm.listing.dataset.tagAnd) { + data.tag__and = alm.listing.dataset.tagAnd; + } + if (alm.listing.dataset.tagNotIn) { + data.tag__not_in = alm.listing.dataset.tagNotIn; + } + if (alm.listing.dataset.taxonomy) { + data.taxonomy = alm.listing.dataset.taxonomy; + } + if (alm.listing.dataset.taxonomyTerms) { + data.taxonomy_terms = alm.listing.dataset.taxonomyTerms; + } + if (alm.listing.dataset.taxonomyOperator) { + data.taxonomy_operator = alm.listing.dataset.taxonomyOperator; + } + if (alm.listing.dataset.taxonomyIncludeChildren) { + data.taxonomy_include_children = alm.listing.dataset.taxonomyIncludeChildren; + } + if (alm.listing.dataset.taxonomyRelation) { + data.taxonomy_relation = alm.listing.dataset.taxonomyRelation; + } + if (alm.listing.dataset.sortKey) { + data.sort_key = alm.listing.dataset.sortKey; + } + if (alm.listing.dataset.metaKey) { + data.meta_key = alm.listing.dataset.metaKey; + } + if (alm.listing.dataset.metaValue) { + data.meta_value = alm.listing.dataset.metaValue; + } + if (alm.listing.dataset.metaCompare) { + data.meta_compare = alm.listing.dataset.metaCompare; + } + if (alm.listing.dataset.metaRelation) { + data.meta_relation = alm.listing.dataset.metaRelation; + } + if (alm.listing.dataset.metaType) { + data.meta_type = alm.listing.dataset.metaType; + } + if (alm.listing.dataset.author) { + data.author = alm.listing.dataset.author; + } + if (alm.listing.dataset.year) { + data.year = alm.listing.dataset.year; + } + if (alm.listing.dataset.month) { + data.month = alm.listing.dataset.month; + } + if (alm.listing.dataset.day) { + data.day = alm.listing.dataset.day; + } + if (alm.listing.dataset.order) { + data.order = alm.listing.dataset.order; + } + if (alm.listing.dataset.orderby) { + data.orderby = alm.listing.dataset.orderby; + } + if (alm.listing.dataset.postStatus) { + data.post_status = alm.listing.dataset.postStatus; + } + if (alm.listing.dataset.postIn) { + data.post__in = alm.listing.dataset.postIn; + } + if (alm.listing.dataset.postNotIn) { + data.post__not_in = alm.listing.dataset.postNotIn; + } + if (alm.listing.dataset.exclude) { + data.exclude = alm.listing.dataset.exclude; + } + if (alm.listing.dataset.search) { + data.search = alm.listing.dataset.search; + } + if (alm.listing.dataset.s) { + data.search = alm.listing.dataset.s; + } + if (alm.listing.dataset.customArgs) { + data.custom_args = alm.listing.dataset.customArgs; + } + if (alm.listing.dataset.vars) { + data.vars = alm.listing.dataset.vars; + } + + // Cache Params + + if (addons.cache) { + data.cache_id = addons.cache_id; + data.cache_logged_in = addons.cache_logged_in; + data.cache_slug = getCacheSlug(alm, data); + } + return data; +} + +/** + * Build the query params for content types. + * + * @param {Object} alm The ALM object. + * @param {string} type The query type. + * @return {Object} The query params. + */ +function getTypeParams(alm, type) { + var addons = alm.addons, + extensions = alm.extensions; + switch (type) { + case 'acf': + return { + acf: 'true', + post_id: extensions.acf_post_id, + field_type: extensions.acf_field_type, + field_name: extensions.acf_field_name, + parent_field_name: extensions.acf_parent_field_name, + row_index: extensions.acf_row_index + }; + case 'comments': + return { + comments: 'true', + post_id: addons.comments_post_id, + per_page: addons.comments_per_page, + type: addons.comments_type, + style: addons.comments_style, + template: addons.comments_template, + callback: addons.comments_callback + }; + case 'cta': + return { + cta: 'true', + cta_position: addons.cta_position, + cta_repeater: addons.cta_repeater, + cta_theme_repeater: addons.cta_theme_repeater + }; + case 'nextpage': + return { + nextpage: 'true', + urls: addons.nextpage_urls, + scroll: addons.nextpage_scroll, + post_id: addons.nextpage_post_id, + startpage: addons.nextpage_startpage, + nested: alm.nested + }; + case 'single_post': + return { + single_post: 'true', + id: addons.single_post_id, + slug: addons.single_post_slug + }; + case 'term_query': + return { + term_query: 'true', + taxonomy: extensions.term_query_taxonomy, + hide_empty: extensions.term_query_hide_empty, + number: extensions.term_query_number + }; + case 'users': + return { + users: 'true', + role: alm.listing.dataset.usersRole, + include: alm.listing.dataset.usersInclude, + exclude: alm.listing.dataset.usersExclude, + per_page: alm.posts_per_page, + order: alm.listing.dataset.usersOrder, + orderby: alm.listing.dataset.usersOrderby + }; + } +} + +/** + * Build the REST API data object to send with REST API request. + * + * @param {Object} alm The ALM object. + * @return {Object} The data object. + * @since 3.6 + */ +function getRestAPIParams(alm) { + var data = { + id: alm.id, + post_id: parseInt(alm.post_id), + posts_per_page: alm.posts_per_page, + page: alm.page, + offset: alm.offset, + slug: alm.slug, + canonical_url: encodeURIComponent(alm.canonical_url), + post_type: alm.post_type, + post_format: alm.listing.dataset.postFormat, + category: alm.listing.dataset.category, + category__not_in: alm.listing.dataset.categoryNotIn, + tag: alm.listing.dataset.tag, + tag__not_in: alm.listing.dataset.tagNotIn, + taxonomy: alm.listing.dataset.taxonomy, + taxonomy_terms: alm.listing.dataset.taxonomyTerms, + taxonomy_operator: alm.listing.dataset.taxonomyOperator, + taxonomy_relation: alm.listing.dataset.taxonomyRelation, + meta_key: alm.listing.dataset.metaKey, + meta_value: alm.listing.dataset.metaValue, + meta_compare: alm.listing.dataset.metaCompare, + meta_relation: alm.listing.dataset.metaRelation, + meta_type: alm.listing.dataset.metaType, + author: alm.listing.dataset.author, + year: alm.listing.dataset.year, + month: alm.listing.dataset.month, + day: alm.listing.dataset.day, + post_status: alm.listing.dataset.postStatus, + order: alm.listing.dataset.order, + orderby: alm.listing.dataset.orderby, + post__in: alm.listing.dataset.postIn, + post__not_in: alm.listing.dataset.postNotIn, + search: alm.listing.dataset.search, + s: alm.listing.dataset.s, + custom_args: alm.listing.dataset.customArgs, + vars: alm.listing.dataset.vars, + lang: alm.lang, + preloaded: alm.addons.preloaded, + preloaded_amount: alm.addons.preloaded_amount, + seo_start_page: alm.start_page + }; + return data; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/windowResize.js +/** + * Trigger a window resize browser function. + * + * @since 5.3.1 + */ +function triggerWindowResize() { + if (typeof Event === 'function') { + // Modern browsers. + window.dispatchEvent(new Event('resize')); + } else { + // Executed on old browsers and especially IE. + var resizeEvent = window.document.createEvent('UIEvents'); + resizeEvent.initUIEvent('resize', true, false, window, 0); + window.dispatchEvent(resizeEvent); + } +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/almDebug.js +/** + * Display Ajax Load More debug results. + * + * @see https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug + * @param {Object} alm ALM object. + * @since 5.1.6 + */ +function almDebug(alm) { + if (alm && alm.debug) { + var obj = { + query: alm.debug, + localize: alm.localize + }; + console.log('ALM Debug:', obj); // eslint-disable-line no-console + } +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/fade.js +/** + * Fade element in. + * + * @param {HTMLElement} element The HTML element to fade in. + * @param {number} speed The transition speed. + * @return {Promise} The Promise object. + */ +var almFadeIn = function almFadeIn(element, speed) { + return new Promise(function (resolve) { + if (speed === 0) { + element.style.opacity = 1; + element.style.height = 'auto'; + resolve(true); + } else { + speed = speed / 10; + var op = 0; // initial opacity + var timer = setInterval(function () { + if (op > 0.9) { + element.style.opacity = 1; + resolve(true); + clearInterval(timer); + } + element.style.opacity = op; + op += 0.1; + }, speed); + element.style.height = 'auto'; + } + }); +}; + +/** + * Fade element out. + * + * @param {HTMLElement} element The HTML element to fade out. + * @param {number} speed The transition speed. + * @return {Promise} The Promise object. + */ +var almFadeOut = function almFadeOut(element, speed) { + return new Promise(function (resolve) { + speed = speed / 10; + element.style.opacity = 0.5; + var fadeEffect = setInterval(function () { + if (element.style.opacity < 0.1) { + element.style.opacity = 0; + clearInterval(fadeEffect); + resolve(true); + } else { + element.style.opacity -= 0.1; + } + }, speed); + }); +}; +;// CONCATENATED MODULE: ./src/frontend/js/modules/tableofcontents.js + + + +/** + * Create a numbered table of contents navigation. + * + * @param {Object} alm The alm object. + * @param {boolean} init Init boolean. + * @param {boolean} from_preloaded Preloaded boolean. + * @since 5.2 + */ +function tableOfContents(alm) { + var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var from_preloaded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var totalPosts = alm.localize && alm.localize.post_count ? parseInt(alm.localize.post_count) : 0; + + // eslint-disable-next-line eqeqeq + if (totalPosts == 0 && !alm.addons.single_post) { + // Exit if zero posts and not single posts + return false; + } + if (alm && alm.tableofcontents && alm.transition !== 'masonry') { + var offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30; + var startPage = alm.start_page ? parseInt(alm.start_page) : 0; + var filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0; + var nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0; + var page = parseInt(alm.page); + var preloaded = alm.addons.preloaded ? true : false; + + // Exit if Paging or Next Page + if (alm.addons.paging || alm.addons.nextpage) { + return false; + } + + // Init. + if (init) { + setTimeout(function () { + // Paged results + if (alm.addons.seo && startPage > 1 || alm.addons.filters && filterStartPage > 1 || alm.addons.nextpage && nextpageStartPage > 1) { + // SEO + if (alm.addons.seo && startPage > 1) { + for (var i = 0; i < startPage; i++) { + createTOCButton(alm, i, offset); + } + } + // Filters + if (alm.addons.filters && filterStartPage > 1) { + for (var _i = 0; _i < filterStartPage; _i++) { + createTOCButton(alm, _i, offset); + } + } + // Nextpage + if (alm.addons.nextpage && nextpageStartPage > 1) { + for (var _i2 = 0; _i2 < nextpageStartPage; _i2++) { + createTOCButton(alm, _i2, offset); + } + } + } else { + if (!from_preloaded && preloaded) { + page = page + 1; + } + createTOCButton(alm, page, offset); + } + }, 100); + } else { + // Preloaded + if (preloaded) { + if (alm.addons.seo && startPage > 0) { + page = page; + } else if (alm.addons.filters && filterStartPage > 0) { + page = page; + } else { + page = page + 1; + } + } + createTOCButton(alm, page, offset); + } + } +} + +/** + * Clear table of contents. + */ +function clearTOC() { + var toc = document.querySelector('.alm-toc'); + if (toc) { + toc.innerHTML = ''; + } +} + +/** + * Create Standard Page Button. + * + * @param {Object} alm The alm object. + * @param {string} page Current page. + * @param {number} offset The page offset. + */ +function createTOCButton(alm, page, offset) { + if (!alm.tableofcontents) { + return false; + } + page = parseInt(page); + var posts_per_page = parseInt(alm.posts_per_page); + + // Create button. + var button = document.createElement('button'); + button.type = 'button'; + button.innerHTML = getTOCLabel(alm, page + 1); + button.dataset.page = alm.addons.single_post_target && alm.init ? page - 1 : page + 1; + button.dataset.target = (page + 1) * posts_per_page - posts_per_page + 1; + + // Add button to TOC. + alm.tableofcontents.appendChild(button); + + // Click event listener. + button.addEventListener('click', function () { + var current = this.dataset.page; + var target = this.dataset.target; + + // Get all listing children. + var children = alm.listing.children; + + // Find element. + var element = children[target - 1]; + + // Next Page. + if (alm.addons.nextpage) { + element = document.querySelector(".alm-nextpage[data-page=\"".concat(current, "\"]")); + } + // Single Posts. + if (alm.addons.single_post_target) { + element = document.querySelector(".alm-single-post[data-page=\"".concat(current, "\"]")); + } + if (!element) { + return; // Exit if no target. + } + + var top = typeof getOffset === 'function' ? getOffset(element).top : element.offsetTop; + almScroll(top - offset); + setTimeout(function () { + setFocus(alm, element, target, false); + }, 500); + }); +} + +/** + * Get Button Label. + * + * @param {Object} alm The alm object. + * @param {string} page The current page. + * @return {string} The Label. + */ +function getTOCLabel(alm, page) { + var label = page; + + // Single Posts + if (alm.addons.single_post) { + var thePage = page - 1; + var element; + if (alm.addons.single_post_target) { + // Special functionality for Single Post with a loading target type + if (alm.init) { + thePage = thePage; + } else { + thePage = thePage + 1; + } + var posts = document.querySelectorAll(".alm-single-post"); + if (posts) { + element = posts[thePage]; + } + } else { + element = document.querySelector(".alm-single-post[data-page=".concat(page - 1, "]")); + } + label = element ? element.dataset.title : label; + } + + // Dynamic function name. + var funcName = "almTOCLabel_".concat(alm.id); + if (typeof window[funcName] === 'function') { + label = window[funcName](page, label); + } + return label; +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/filtering.js +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || filtering_unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function filtering_toConsumableArray(arr) { return filtering_arrayWithoutHoles(arr) || filtering_iterableToArray(arr) || filtering_unsupportedIterableToArray(arr) || filtering_nonIterableSpread(); } +function filtering_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function filtering_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return filtering_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return filtering_arrayLikeToArray(o, minLen); } +function filtering_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function filtering_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return filtering_arrayLikeToArray(arr); } +function filtering_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + + +/** + * Filter an Ajax Load More instance. + * + * @param {string} transition Transition type. + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @since 2.6.1 + */ +function almFilter(transition) { + var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 150; + var data = arguments.length > 2 ? arguments[2] : undefined; + var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'filter'; + if (data.target) { + // Target has been specified. + var alm = document.querySelectorAll('.ajax-load-more-wrap[data-id="' + data.target.toLowerCase() + '"]'); + if (alm) { + alm.forEach(function (element) { + almFilterTransition(transition, speed, data, type, element); + }); + } + } else { + // Target not specified. + var _alm = document.querySelectorAll('.ajax-load-more-wrap'); + if (_alm) { + _alm.forEach(function (element) { + almFilterTransition(transition, speed, data, type, element); + }); + } + } + clearTOC(); // Clear table of contents if required +} + +/** + * Transition Ajax Load More + * + * @param {string} transition Transition type. + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @param {Element} element Target element. + * @since 2.13.1 + */ +function almFilterTransition(transition, speed, data, type, element) { + if (transition === 'fade' || transition === 'masonry') { + // Fade, Masonry transition + + switch (type) { + case 'filter': + element.classList.add('alm-is-filtering'); + almFadeOut(element, speed); + break; + } + + // Move to next function + setTimeout(function () { + almCompleteFilterTransition(speed, data, type, element); + }, speed); + } else { + // No transition + element.classList.add('alm-is-filtering'); + almCompleteFilterTransition(speed, data, type, element); + } +} + +/** + * Complete the filter transition. + * + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @param {Element} element Target element. + * @since 3.3 + */ +function almCompleteFilterTransition(speed, data, type, element) { + var btnWrap = element.querySelector('.alm-btn-wrap'); // Get `.alm-btn-wrap` element + var listing = element.querySelectorAll('.alm-listing'); // Get `.alm-listing` element + + if (!listing || !btnWrap) { + // Exit if elements doesn't exist. + return false; + } + + // Loop over all .alm-listing divs and clear HTML. + filtering_toConsumableArray(listing).forEach(function (element) { + // Is this a paging instance. + var paging = element.querySelector('.alm-paging-content'); + if (paging) { + paging.innerHTML = ''; + } else { + element.innerHTML = ''; + } + }); + + // Get Load More button + var button = btnWrap.querySelector('.alm-load-more-btn'); + if (button) { + button.classList.remove('done'); // Reset Button + } + + // Clear paging navigation + var paging = btnWrap.querySelector('.alm-paging'); + if (paging) { + paging.style.opacity = 0; + } + + // Reset Preloaded Amount + data.preloadedAmount = 0; + + // Dispatch Filters + almSetFilters(speed, data, type, element); +} + +/** + * Set filter parameters on .alm-listing element. + * + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @param {Element} element Target element. + * @since 2.6.1 + */ +function almSetFilters(speed, data, type, element) { + // Get `alm-listing` container. + var listing = element.querySelector('.alm-listing') || element.querySelector('.alm-comments'); + if (!listing) { + return false; + } + switch (type) { + case 'filter': + // Update data attributes + for (var _i = 0, _Object$entries = Object.entries(data); _i < _Object$entries.length; _i++) { + var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), + key = _Object$entries$_i[0], + value = _Object$entries$_i[1]; + // Convert camelCase data atts back to dashes (-). + key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2').toLowerCase(); + listing.setAttribute('data-' + key, value); + } + // Fade ALM back (Filters only) + almFadeIn(element, speed); + break; + } + + // Re-initiate Ajax Load More. + var target = ''; + if (data.target) { + // Target has been specified + target = document.querySelector('.ajax-load-more-wrap[data-id="' + data.target + '"]'); + if (target) { + window.almInit(target); + } + } else { + // Target not specified + target = document.querySelector('.ajax-load-more-wrap'); + if (target) { + window.almInit(target); + } + } + switch (type) { + case 'filter': + // Filters Complete (not the add-on) + if (typeof almFilterComplete === 'function') { + // Standard Filtering + almFilterComplete(); + } + break; + } +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/masonry.js +function masonry_typeof(o) { "@babel/helpers - typeof"; return masonry_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, masonry_typeof(o); } +function masonry_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ masonry_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == masonry_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(masonry_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function masonry_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function masonry_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { masonry_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { masonry_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +var masonry_imagesLoaded = __webpack_require__(564); + +/** + * Function to trigger built-in Ajax Load More Masonry. + * + * @param {Object} alm ALM object. + * @param {boolean} init Initial run true or false. + * @param {boolean} filtering Is this a filtering event. + * @since 3.1 + */ +function almMasonry(alm, init, filtering) { + if (!alm.masonry) { + console.warn('Ajax Load More: Unable to locate Masonry settings.'); + } + var container = alm.listing, + last_loaded = alm.last_loaded, + speed = alm.speed; + return new Promise(function (resolve) { + var _alm$masonry; + var selector = alm.masonry.selector; + var animation = alm.masonry.animation; + var horizontalOrder = (alm === null || alm === void 0 || (_alm$masonry = alm.masonry) === null || _alm$masonry === void 0 ? void 0 : _alm$masonry.horizontalorder) === 'true' ? true : false; + var masonry_init = alm.masonry.init; + var columnWidth = alm.masonry.columnwidth; + var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay + var hidden = 'scale(0.5)'; + var visible = 'scale(1)'; + if (animation === 'zoom-out') { + hidden = 'translateY(-20px) scale(1.25)'; + visible = 'translateY(0) scale(1)'; + } + if (animation === 'slide-up') { + hidden = 'translateY(50px)'; + visible = 'translateY(0)'; + } + if (animation === 'slide-down') { + hidden = 'translateY(-50px)'; + visible = 'translateY(0)'; + } + if (animation === 'none') { + hidden = 'translateY(0)'; + visible = 'translateY(0)'; + } + + // columnWidth + if (columnWidth) { + if (!isNaN(columnWidth)) { + columnWidth = parseInt(columnWidth); // Check if number. + } + } else { + columnWidth = selector; // No columnWidth, use the selector + } + + if (!filtering) { + // First Run. + if (masonry_init && init) { + masonry_imagesLoaded(container, function () { + var _window; + var defaults = { + itemSelector: selector, + transitionDuration: duration, + columnWidth: columnWidth, + // eslint-disable-line + horizontalOrder: horizontalOrder, + // eslint-disable-line + hiddenStyle: { + transform: hidden, + opacity: 0 + }, + visibleStyle: { + transform: visible, + opacity: 1 + } + }; + + // Get custom Masonry options (https://masonry.desandro.com/options.html). + var alm_masonry_vars = (_window = window) === null || _window === void 0 ? void 0 : _window.alm_masonry_vars; + if (alm_masonry_vars) { + Object.keys(alm_masonry_vars).forEach(function (key) { + // Loop object to create key:prop + defaults[key] = alm_masonry_vars[key]; + }); + } + + // Init Masonry, delay to allow time for items to be added to the page. + setTimeout( /*#__PURE__*/masonry_asyncToGenerator( /*#__PURE__*/masonry_regeneratorRuntime().mark(function _callee() { + return masonry_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + alm.msnry = new Masonry(container, defaults); + _context.next = 3; + return almFadeIn(container.parentNode, 175); + case 3: + resolve(true); + case 4: + case "end": + return _context.stop(); + } + }, _callee); + })), 25); + }); + } else { + // Standard / Append content. + // eslint-disable-next-line no-lonely-if + if (last_loaded) { + // ImagesLoaded & appended. + masonry_imagesLoaded(container, function () { + setTimeout( /*#__PURE__*/masonry_asyncToGenerator( /*#__PURE__*/masonry_regeneratorRuntime().mark(function _callee2() { + return masonry_regeneratorRuntime().wrap(function _callee2$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + alm.msnry.appended(last_loaded); + resolve(true); + case 2: + case "end": + return _context2.stop(); + } + }, _callee2); + })), 25); + }); + } + } + } else { + // Reset instance. + container.parentNode.style.opacity = 0; + almMasonry(alm, true, false); + resolve(true); + } + }); +} + +/** + * Set up initial Masonry Configuration. + * + * @param {Object} alm ALM Object. + * @return {Object} Configuration object. + */ +function almMasonryConfig(alm) { + alm.masonry = {}; + alm.masonry.init = true; + if (alm.msnry) { + // destroy masonry if it currently exists. + alm.msnry.destroy(); + } else { + alm.msnry = ''; + } + var masonry_config = JSON.parse(alm.listing.dataset.masonryConfig); + if (masonry_config) { + alm.masonry.selector = masonry_config.selector; + alm.masonry.columnwidth = masonry_config.columnwidth; + alm.masonry.animation = masonry_config.animation === '' ? 'standard' : masonry_config.animation; + alm.masonry.horizontalorder = masonry_config.horizontalorder === '' ? 'true' : masonry_config.horizontalorder; + alm.images_loaded = true; + alm.transition_delay = 0; + } else { + console.warn('Ajax Load More: Unable to locate Masonry configuration settings.'); + } + return alm; +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/placeholder.js +function placeholder_typeof(o) { "@babel/helpers - typeof"; return placeholder_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, placeholder_typeof(o); } +function placeholder_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ placeholder_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == placeholder_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(placeholder_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function placeholder_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function placeholder_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { placeholder_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { placeholder_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + + +/** + * Show placeholder div. + * + * @param {string} type The direction. + * @param {Object} alm The ALM object. + */ +function placeholder() { + return _placeholder.apply(this, arguments); +} +function _placeholder() { + _placeholder = placeholder_asyncToGenerator( /*#__PURE__*/placeholder_regeneratorRuntime().mark(function _callee() { + var type, + alm, + placeholder, + addons, + rel, + _args = arguments; + return placeholder_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'show'; + alm = _args.length > 1 ? _args[1] : undefined; + placeholder = alm.placeholder, addons = alm.addons, rel = alm.rel; + if (!(!placeholder || addons.paging || rel === 'prev')) { + _context.next = 5; + break; + } + return _context.abrupt("return", false); + case 5: + _context.t0 = type; + _context.next = _context.t0 === 'hide' ? 8 : 12; + break; + case 8: + _context.next = 10; + return almFadeOut(placeholder, 175); + case 10: + setTimeout(function () { + placeholder.style.display = 'none'; + }, 75); + return _context.abrupt("break", 15); + case 12: + placeholder.style.display = 'block'; + almFadeIn(placeholder, 175); + return _context.abrupt("break", 15); + case 15: + case "end": + return _context.stop(); + } + }, _callee); + })); + return _placeholder.apply(this, arguments); +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/resultsText.js + + +/** + * Set the results text if required. + * + * @param {Object} alm ALM object. + * @param {string} type Type of results. + * @since 5.1 + */ +function almResultsText(alm) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard'; + if (!alm.resultsText || alm.nested === 'true') { + return false; + } + var resultsType = type === 'nextpage' || type === 'woocommerce' ? type : 'standard'; + almGetResultsText(alm, resultsType); +} + +/** + * Get values for showing results text. + * + * @param {Object} alm ALM object. + * @param {string} type Type of results. + * @since 4.1 + */ +function almGetResultsText(alm) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard'; + if (!alm.resultsText || !alm.localize || alm.nested === 'true') { + return false; + } + var page = 0; + var pages = 0; + var post_count = 0; + var total_posts = 0; + var posts_per_page = alm.orginal_posts_per_page; + switch (type) { + // Nextpage + case 'nextpage': + page = parseInt(alm.localize.page); + post_count = page; + pages = parseInt(alm.localize.total_posts); + total_posts = parseInt(pages); + almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page); + break; + + // WooCommerce + case 'woocommerce': + // Don't do anything + break; + default: + page = getTotals('page', alm.id); + pages = getTotals('pages', alm.id); + post_count = getTotals('post_count', alm.id); + total_posts = getTotals('total_posts', alm.id); + almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page); + } +} + +/** + * Display `Showing {x} of {y} pages` text. + * + * @param {Object} alm ALM object. + * @param {string} type Type of results. + * @since 4.1 + */ +function almInitResultsText(alm) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard'; + if (!alm.resultsText || !alm.localize || alm.nested === 'true') { + return false; + } + var page = 0; + var pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page); + var post_count = parseInt(alm.localize.post_count); + var total_posts = parseInt(alm.localize.total_posts); + switch (type) { + case 'nextpage': + // Nextpage + page = alm.addons.nextpage_startpage; + post_count = page; + pages = total_posts; + almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts, alm.posts_per_page); + break; + case 'preloaded': + // Preloaded + page = alm.addons.paging && alm.addons.seo ? alm.start_page + 1 : parseInt(alm.page) + 1; + almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, alm.posts_per_page); + break; + case 'woocommerce': + // WooCommerce + // Don't do anything + break; + } +} + +/** + * Render `Showing {x} of {y} results` text. + * + * @param {Element} el The results text HTML element. + * @param {string} page The current page number. + * @param {string} pages The total pages. + * @param {string} post_count Total posts displayed. + * @param {string} total_posts Total amount of posts in query. + * @param {string} per_page Total amount of posts per page. + * @since 4.1 + */ +var almRenderResultsText = function almRenderResultsText(el, page, pages, post_count, total_posts, per_page) { + el.forEach(function (result) { + pages = parseInt(pages); + var text = pages > 0 ? alm_localize.results_text : alm_localize.no_results_text; + + // Paging add-on. + // Start and End values for posts in view. + var start = page * per_page - per_page + 1; + var end_val = page * per_page; + var end = end_val <= total_posts ? end_val : total_posts; + if (pages > 0) { + text = text.replace('{num}', "".concat(page, "")); // Deprecated + text = text.replace('{page}', "".concat(page, "")); + text = text.replace('{start}', "".concat(start, "")); + text = text.replace('{end}', "".concat(end, "")); + text = text.replace('{total}', "".concat(pages, "")); // Deprecated + text = text.replace('{pages}', "".concat(pages, "")); + text = text.replace('{post_count}', "".concat(post_count, "")); + text = text.replace('{total_posts}', "".concat(total_posts, "")); + result.innerHTML = text; + } else { + result.innerHTML = text; + } + }); +}; +;// CONCATENATED MODULE: ./src/frontend/js/modules/setLocalizedVars.js + + +/** + * Set localized variables + * + * @param {Object} alm ALM object + * @since 4.1 + */ +function setLocalizedVars(alm) { + var addons = alm.addons; + return new Promise(function (resolve) { + var type = 'standard'; + if (addons.nextpage) { + // Nextpage + type = 'nextpage'; + if (addons.paging) { + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1); + } else { + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(addons.nextpage_startpage) + 1); + } + } else if (addons.woocommerce) { + // WooCommerce + type = 'woocommerce'; + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1); + } else { + // Standard ALM. + var page = parseInt(alm.page) + 1 + (addons.preloaded && !addons.paging ? 1 : 0); // Add 1 page for preloaded. + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(page)); + var pages = Math.ceil(alm.totalposts / alm.orginal_posts_per_page); + alm.AjaxLoadMore.setLocalizedVar('pages', parseInt(pages)); + } + + // Total Posts `total_posts`. + // Only update if !preloaded && !nextpage && !woocommerce + if (addons.preloaded !== 'true' && !addons.nextpage && !addons.woocommerce) { + alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts); + } + + // Viewing count. + alm.AjaxLoadMore.setLocalizedVar('post_count', getPostCount(alm)); + + // Set Results Text (if required). + almResultsText(alm, type); + resolve(true); + }); +} + +/** + * Get total post_count. + * + * @param {Object} alm ALM object. + * @return {number} Total post count. + */ +function getPostCount(alm) { + var postcount = alm.postcount, + addons = alm.addons, + start_page = alm.start_page; + var preloaded_amount = addons.preloaded_amount; + + // Construct post count. + var count = parseInt(postcount) + parseInt(preloaded_amount); + count = start_page > 1 ? count - parseInt(preloaded_amount) : count; // SEO + count = addons.filters_startpage > 1 ? count - parseInt(preloaded_amount) : count; // Filters + count = addons.single_post ? count + 1 : count; // Single Posts + count = addons.nextpage ? count + 1 : count; // Next Page + + return count; +} +;// CONCATENATED MODULE: ./src/frontend/js/ajax-load-more.js +function ajax_load_more_typeof(o) { "@babel/helpers - typeof"; return ajax_load_more_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ajax_load_more_typeof(o); } +function ajax_load_more_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ ajax_load_more_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == ajax_load_more_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(ajax_load_more_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function ajax_load_more_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function ajax_load_more_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { ajax_load_more_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { ajax_load_more_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } +function ajax_load_more_toConsumableArray(arr) { return ajax_load_more_arrayWithoutHoles(arr) || ajax_load_more_iterableToArray(arr) || ajax_load_more_unsupportedIterableToArray(arr) || ajax_load_more_nonIterableSpread(); } +function ajax_load_more_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function ajax_load_more_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return ajax_load_more_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ajax_load_more_arrayLikeToArray(o, minLen); } +function ajax_load_more_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function ajax_load_more_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return ajax_load_more_arrayLikeToArray(arr); } +function ajax_load_more_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +// ALM Modules + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +// External packages. +var qs = __webpack_require__(129); +var ajax_load_more_imagesLoaded = __webpack_require__(564); + +// Axios Config. +lib_axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +// Axios Interceptor for nested data objects +lib_axios.interceptors.request.use(function (config) { + config.paramsSerializer = function (params) { + // Qs is already included in the Axios package + return qs.stringify(params, { + arrayFormat: 'brackets', + encode: false + }); + }; + return config; +}); + +// Focus Polyfill. +__webpack_require__(334); + +// Global filtering state. +var alm_is_filtering = false; + +// Start ALM +(function () { + 'use strict'; + + /** + * Initiate Ajax Load More. + * + * @param {Element} el The Ajax Load More DOM element/container. + * @param {number} index The current index number of the Ajax Load More instance. + */ + var ajaxloadmore = function ajaxloadmore(el, index) { + var _alm_localize, _el$dataset, _alm, _alm2, _alm3, _alm4, _alm5, _alm6, _alm_localize2, _alm7, _alm8, _alm9, _alm10, _alm11, _alm12, _alm13, _alm14, _alm15, _alm16, _alm_localize3, _alm17, _alm18, _alm19, _alm20, _alm21, _alm22; + // Move user to top of page to prevent loading of unnessasry posts + if (((_alm_localize = alm_localize) === null || _alm_localize === void 0 ? void 0 : _alm_localize.scrolltop) === 'true') { + window.scrollTo(0, 0); + } + + // Set ALM Variables + var alm = this; + alm.AjaxLoadMore = {}; + alm.addons = {}; + alm.extensions = {}; + alm.integration = {}; + alm.window = window; + alm.page = 0; + alm.postcount = 0; + alm.totalposts = 0; + alm.proceed = false; + alm.disable_ajax = false; + alm.init = true; + alm.loading = true; + alm.finished = false; + alm.timer = null; + alm.rel = 'next'; + alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent + alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor + + el.classList.add('alm-' + index); // Add unique classname. + el.setAttribute('data-alm-id', index); // Add unique data id. + + // The defined or generated ID for the ALM instance. + alm.master_id = el.dataset.id ? "ajax_load_more_".concat(el.dataset.id) : el.id; + alm.master_id = alm.master_id.replace(/-/g, '_'); + + // Localized variables. + alm.localized_var = "".concat(alm.master_id, "_vars"); + alm.localize = window[alm.localized_var]; + if (!alm.localize) { + window[alm.localized_var] = {}; // Create empty object if not defined. + alm.localize = window[alm.localized_var]; + } + + // Add ALM object to the global window scope. + window[alm.master_id] = alm; // e.g. window.ajax_load_more or window.ajax_load_more_{id} + + // ALM Element Containers + alm.main = el; // Top level DOM element + alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments'); + alm.content = alm.listing; + alm.ajax = el.querySelector('.alm-ajax'); + alm.container_type = alm.listing.dataset.containerType; + alm.loading_style = alm.listing.dataset.loadingStyle; + + // Instance Params + alm.canonical_url = el.dataset.canonicalUrl; + alm.nested = el.dataset.nested ? el.dataset.nested : false; + alm.is_search = (el === null || el === void 0 || (_el$dataset = el.dataset) === null || _el$dataset === void 0 ? void 0 : _el$dataset.search) === 'true' ? 'true' : false; + alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url. + alm.slug = el.dataset.slug; + alm.post_id = parseInt(el.dataset.postId); + alm.id = el.dataset.id ? el.dataset.id : ''; + + // Shortcode Params + + alm.repeater = ((_alm = alm) === null || _alm === void 0 || (_alm = _alm.listing) === null || _alm === void 0 || (_alm = _alm.dataset) === null || _alm === void 0 ? void 0 : _alm.repeater) || 'default'; + alm.theme_repeater = ((_alm2 = alm) === null || _alm2 === void 0 || (_alm2 = _alm2.listing) === null || _alm2 === void 0 || (_alm2 = _alm2.dataset) === null || _alm2 === void 0 ? void 0 : _alm2.themeRepeater) || false; + alm.post_type = ((_alm3 = alm) === null || _alm3 === void 0 || (_alm3 = _alm3.listing) === null || _alm3 === void 0 || (_alm3 = _alm3.dataset) === null || _alm3 === void 0 ? void 0 : _alm3.postType) || 'post'; + alm.sticky_posts = ((_alm4 = alm) === null || _alm4 === void 0 || (_alm4 = _alm4.listing) === null || _alm4 === void 0 || (_alm4 = _alm4.dataset) === null || _alm4 === void 0 ? void 0 : _alm4.stickyPosts) || false; + alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs + alm.btnWrap = ajax_load_more_toConsumableArray(alm.btnWrap); // Convert NodeList to array + alm.btnWrap[alm.btnWrap.length - 1].style.visibility = 'visible'; // Get last element (used for nesting) + alm.trigger = alm.btnWrap[alm.btnWrap.length - 1]; + alm.button = ((_alm5 = alm) === null || _alm5 === void 0 || (_alm5 = _alm5.trigger) === null || _alm5 === void 0 ? void 0 : _alm5.querySelector('button.alm-load-more-btn')) || null; + alm.button_labels = { + "default": ((_alm6 = alm) === null || _alm6 === void 0 || (_alm6 = _alm6.listing) === null || _alm6 === void 0 || (_alm6 = _alm6.dataset) === null || _alm6 === void 0 ? void 0 : _alm6.buttonLabel) || ((_alm_localize2 = alm_localize) === null || _alm_localize2 === void 0 ? void 0 : _alm_localize2.button_label), + loading: ((_alm7 = alm) === null || _alm7 === void 0 || (_alm7 = _alm7.listing) === null || _alm7 === void 0 || (_alm7 = _alm7.dataset) === null || _alm7 === void 0 ? void 0 : _alm7.buttonLoadingLabel) || null, + done: ((_alm8 = alm) === null || _alm8 === void 0 || (_alm8 = _alm8.listing) === null || _alm8 === void 0 || (_alm8 = _alm8.dataset) === null || _alm8 === void 0 ? void 0 : _alm8.buttonDoneLabel) || null + }; + alm.placeholder = alm.main.querySelector('.alm-placeholder') || false; + alm.scroll_distance = ((_alm9 = alm) === null || _alm9 === void 0 || (_alm9 = _alm9.listing) === null || _alm9 === void 0 ? void 0 : _alm9.dataset.scrollDistance) || 100; + alm.scroll_container = ((_alm10 = alm) === null || _alm10 === void 0 || (_alm10 = _alm10.listing) === null || _alm10 === void 0 ? void 0 : _alm10.dataset.scrollContainer) || null; + alm.scroll_direction = ((_alm11 = alm) === null || _alm11 === void 0 || (_alm11 = _alm11.listing) === null || _alm11 === void 0 || (_alm11 = _alm11.dataset) === null || _alm11 === void 0 ? void 0 : _alm11.scrollDirection) || 'vertical'; + alm.max_pages = (_alm12 = alm) !== null && _alm12 !== void 0 && (_alm12 = _alm12.listing) !== null && _alm12 !== void 0 && (_alm12 = _alm12.dataset) !== null && _alm12 !== void 0 && _alm12.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0; + alm.pause_override = ((_alm13 = alm) === null || _alm13 === void 0 || (_alm13 = _alm13.listing) === null || _alm13 === void 0 || (_alm13 = _alm13.dataset) === null || _alm13 === void 0 ? void 0 : _alm13.pauseOverride) || false; // true | false + alm.pause = ((_alm14 = alm) === null || _alm14 === void 0 || (_alm14 = _alm14.listing) === null || _alm14 === void 0 || (_alm14 = _alm14.dataset) === null || _alm14 === void 0 ? void 0 : _alm14.pause) || false; // true | false + alm.transition = ((_alm15 = alm) === null || _alm15 === void 0 || (_alm15 = _alm15.listing) === null || _alm15 === void 0 || (_alm15 = _alm15.dataset) === null || _alm15 === void 0 ? void 0 : _alm15.transition) || 'fade'; // Transition + alm.transition_delay = ((_alm16 = alm) === null || _alm16 === void 0 || (_alm16 = _alm16.listing) === null || _alm16 === void 0 || (_alm16 = _alm16.dataset) === null || _alm16 === void 0 ? void 0 : _alm16.transitionDelay) || 0; + alm.speed = (_alm_localize3 = alm_localize) !== null && _alm_localize3 !== void 0 && _alm_localize3.speed ? parseInt(alm_localize.speed) : 250; + alm.images_loaded = ((_alm17 = alm) === null || _alm17 === void 0 || (_alm17 = _alm17.listing) === null || _alm17 === void 0 || (_alm17 = _alm17.dataset) === null || _alm17 === void 0 ? void 0 : _alm17.imagesLoaded) === 'true'; + alm.destroy_after = (_alm18 = alm) !== null && _alm18 !== void 0 && (_alm18 = _alm18.listing) !== null && _alm18 !== void 0 && (_alm18 = _alm18.dataset) !== null && _alm18 !== void 0 && _alm18.destroyAfter ? parseInt(alm.listing.dataset.destroyAfter) : false; + alm.lazy_images = ((_alm19 = alm) === null || _alm19 === void 0 || (_alm19 = _alm19.listing.dataset) === null || _alm19 === void 0 ? void 0 : _alm19.lazyImages) === 'true' ? true : false; + alm.integration.woocommerce = ((_alm20 = alm) === null || _alm20 === void 0 || (_alm20 = _alm20.listing) === null || _alm20 === void 0 || (_alm20 = _alm20.dataset) === null || _alm20 === void 0 ? void 0 : _alm20.woocommerce) === 'true' ? true : false; + alm.scroll = ((_alm21 = alm) === null || _alm21 === void 0 || (_alm21 = _alm21.listing) === null || _alm21 === void 0 || (_alm21 = _alm21.dataset) === null || _alm21 === void 0 ? void 0 : _alm21.scroll) === 'false' ? false : true; + alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on + alm.posts_per_page = parseInt(alm.listing.dataset.postsPerPage); + alm.offset = (_alm22 = alm) !== null && _alm22 !== void 0 && (_alm22 = _alm22.listing) !== null && _alm22 !== void 0 && (_alm22 = _alm22.dataset) !== null && _alm22 !== void 0 && _alm22.offset ? parseInt(alm.listing.dataset.offset) : 0; + alm.paged = false; + + // Add-on Shortcode Params + + alm = queryLoopCreateParams(alm); // Query Loop add-on + alm = elementorCreateParams(alm); // Elementor add-on + alm = wooCreateParams(alm); // WooCommerce add-on + alm = cacheCreateParams(alm); // Cache add-on + alm = ctaCreateParams(alm); // CTA add-on + alm = nextpageCreateParams(alm); // Nextpage add-on + alm = singlepostsCreateParams(alm); // Single Posts add-on + alm = commentsCreateParams(alm); // Comments add-on + alm = preloadedCreateParams(alm); // Preloaded add-on. + alm = pagingCreateParams(alm); // Paging add-on. + alm = filtersCreateParams(alm); // Filters add-on. + alm = seoCreateParams(alm); // SEO add-on. + + // Extension Shortcode Params + + // Users + alm.extensions.users = alm.listing.dataset.users === 'true'; + if (alm.extensions.users) { + // Override paging params for users + alm.orginal_posts_per_page = parseInt(alm.listing.dataset.usersPerPage); + alm.posts_per_page = parseInt(alm.listing.dataset.usersPerPage); + } + + // REST API. + alm.extensions.restapi = alm.listing.dataset.restapi === 'true'; + if (alm.extensions.restapi) { + alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl; + alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace; + alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint; + alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId; + alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug; + if (alm.extensions.restapi_template_id === '') { + alm.extensions.restapi = false; + } + } + + // ACF. + alm.extensions.acf = alm.listing.dataset.acf === 'true' ? true : false; + if (alm.extensions.acf) { + alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType; + alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName; + alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName; + alm.extensions.acf_row_index = alm.listing.dataset.acfRowIndex; + alm.extensions.acf_post_id = alm.listing.dataset.acfPostId; + // if field type, name or post ID is empty. + if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) { + alm.extensions.acf = false; + } + } + + // Term Query. + alm.extensions.term_query = alm.listing.dataset.termQuery === 'true'; + if (alm.extensions.term_query) { + alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy; + alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty; + alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber; + } + + /* Pause */ + if (alm.pause === undefined || alm.addons.seo && alm.start_page > 1) { + // SEO only. + alm.pause = false; + } + if (alm.addons.preloaded && alm.addons.seo && alm.start_page > 0) { + // SEO + Preloaded. + alm.pause = false; + } + if (alm.addons.filters && alm.addons.filters_startpage > 0) { + // Filters. + alm.pause = false; + } + if (alm.addons.preloaded && alm.addons.paging) { + alm.pause = true; + } + + /* Max Pages */ + alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 9999 : alm.max_pages; + + /* Scroll Distance */ + alm.scroll_distance = alm.scroll_distance === undefined ? 100 : alm.scroll_distance; + alm.scroll_distance_perc = false; + if (alm.scroll_distance.toString().indexOf('%') === -1) { + // Standard scroll_distance + alm.scroll_distance = parseInt(alm.scroll_distance); + } else { + // Percentage scroll_distance + alm.scroll_distance_perc = true; + alm.scroll_distance_orig = parseInt(alm.scroll_distance); + alm.scroll_distance = getScrollPercentage(alm); + } + + /* Masonry */ + if (alm.transition === 'masonry') { + alm = almMasonryConfig(alm); + } + + /* Paging */ + if (alm.addons.paging) { + // Add loading class to main container. + alm.main.classList.add('alm-loading'); + } else { + var almChildren = el.childNodes; // Get child nodes of instance [nodeList] + if (almChildren) { + var almChildArray = ajax_load_more_toConsumableArray(almChildren); // Convert nodeList to array + + // Filter array to find the `.alm-btn-wrap` div + var btnWrap = almChildArray.filter(function (element) { + if (!element.classList) { + // If not element (#text node) + return false; + } + return element.classList.contains('alm-btn-wrap'); + }); + alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn'); + } else { + alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn'); + } + + // Reset button state + alm.button.disabled = false; + alm.button.style.display = ''; + } + + /** + * No Results. + * Set template for showing no results HTML. + */ + var alm_no_results = el.querySelector('.alm-no-results'); + alm.no_results = alm_no_results ? alm_no_results.innerHTML : ''; + + /** + * Results Text. + * Render "Showing x of y results" text. + */ + if (alm.integration.woocommerce) { + var _alm23; + // If woocommerce, get the default woocommerce results block + alm.resultsText = document.querySelectorAll('.woocommerce-result-count'); + if (((_alm23 = alm) === null || _alm23 === void 0 || (_alm23 = _alm23.resultsText) === null || _alm23 === void 0 ? void 0 : _alm23.length) < 1) { + alm.resultsText = document.querySelectorAll('.alm-results-text'); + } + } else { + alm.resultsText = document.querySelectorAll('.alm-results-text'); + } + if (alm.resultsText) { + alm.resultsText.forEach(function (results) { + results.setAttribute('aria-live', 'polite'); + results.setAttribute('aria-atomic', 'true'); + }); + } else { + alm.resultsText = false; + } + + // Table of Contents: Render 1, 2, 3 etc. when pages are loaded + alm.tableofcontents = document.querySelector('.alm-toc') || false; + if (alm.tableofcontents) { + alm.tableofcontents.setAttribute('aria-live', 'polite'); + alm.tableofcontents.setAttribute('aria-atomic', 'true'); + } + + /** + * The function to get posts via Ajax/HTTP request. + * + * @since 2.0.0 + */ + alm.AjaxLoadMore.loadPosts = function () { + if (alm.disable_ajax) { + return; + } + if (typeof almOnChange === 'function') { + window.almOnChange(alm); + } + + // Set loading attributes. + alm.loading = true; + alm.main.classList.add('alm-loading'); + placeholder('show', alm); + + // Add loading styles to buttons. + if (!alm.addons.paging) { + if (alm.rel === 'prev') { + alm.buttonPrev.classList.add('loading'); + } else { + alm.button.classList.add('loading'); + if (alm.button_labels.loading) { + alm.button.innerHTML = alm.button_labels.loading; + } + } + } + + // Dispatch Ajax request. + alm.AjaxLoadMore.ajax(); + }; + + /** + * The core Ajax Load More Ajax function. + * + * @param {string} type The type of Ajax request [standard|totalposts|totalpages]. + * @since 2.6.0 + */ + alm.AjaxLoadMore.ajax = /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee() { + var type, + _alm24, + params, + cache, + _args = arguments; + return ajax_load_more_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'standard'; + if (!alm.extensions.restapi) { + _context.next = 5; + break; + } + alm.AjaxLoadMore.restapi(alm); + _context.next = 14; + break; + case 5: + // Standard ALM. + params = getAjaxParams(alm, type); // Cache. + if (!((_alm24 = alm) !== null && _alm24 !== void 0 && (_alm24 = _alm24.addons) !== null && _alm24 !== void 0 && _alm24.cache && !['totalposts', 'totalpages'].includes(type))) { + _context.next = 13; + break; + } + _context.next = 9; + return getCache(alm, Object.assign({}, params)); + case 9: + cache = _context.sent; + if (cache) { + alm.AjaxLoadMore.render(cache); + } else { + alm.AjaxLoadMore.adminajax(params, type); + } + _context.next = 14; + break; + case 13: + alm.AjaxLoadMore.adminajax(params, type); + case 14: + case "end": + return _context.stop(); + } + }, _callee); + })); + + /** + * Send request to the admin-ajax.php + * + * @param {Object} params Query params. + * @param {string} type The type of Ajax request [standard|totalposts|totalpages]. + * @since 5.0.0 + */ + alm.AjaxLoadMore.adminajax = /*#__PURE__*/function () { + var _ref2 = ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee2(params, type) { + var _alm_localize4, ajaxurl, _params, _params$cache_slug, cache_slug, data; + return ajax_load_more_regeneratorRuntime().wrap(function _callee2$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + _alm_localize4 = alm_localize, ajaxurl = _alm_localize4.ajaxurl; // Get Ajax URL + _params = params, _params$cache_slug = _params.cache_slug, cache_slug = _params$cache_slug === void 0 ? '' : _params$cache_slug; // Deconstruct query params. + /** + * Single Posts. + * If `single_post_target`, adjust the Ajax URL to the post URL. + */ + if (alm.addons.single_post && alm.addons.single_post_target) { + ajaxurl = "".concat(alm.addons.single_post_permalink, "?id=").concat(alm.addons.single_post_id, "&alm_page=").concat(parseInt(alm.page) + 1); + params = ''; + } + + // Query Loop || WooCommerce || Elementor. + if (alm.addons.queryloop || alm.addons.woocommerce || alm.addons.elementor && alm.addons.elementor_type === 'posts') { + ajaxurl = getButtonURL(alm, alm.rel); + params = ''; + } + + // Send HTTP request via axios. + _context2.next = 6; + return lib_axios.get(ajaxurl, { + params: params + }).then(function (response) { + if (alm.addons.single_post && alm.addons.single_post_target) { + // Single Posts + return singlepostsHTML(alm, response, cache_slug); + } else if (alm.addons.woocommerce) { + // WooCommerce. + return wooGetContent(alm, ajaxurl, response, cache_slug); + } else if (alm.addons.elementor) { + // Elementor + return elementorGetContent(alm, ajaxurl, response, cache_slug); + } else if (alm.addons.queryloop) { + // Query Loop + return queryLoopGetContent(alm, ajaxurl, response, cache_slug); + } + + // Standard ALM - Get data from response. + return response.data; + })["catch"](function (error) { + // Error + alm.AjaxLoadMore.error(error, 'adminajax'); + }); + case 6: + data = _context2.sent; + _context2.t0 = type; + _context2.next = _context2.t0 === 'standard' ? 10 : _context2.t0 === 'totalposts' ? 12 : _context2.t0 === 'totalpages' ? 12 : 14; + break; + case 10: + alm.AjaxLoadMore.render(data); + return _context2.abrupt("break", 14); + case 12: + if (alm.addons.paging && alm.addons.nextpage && typeof almBuildPagination === 'function') { + window.almBuildPagination(data.totalpages, alm); + alm.totalpages = data.totalpages; + } else { + if (alm.addons.paging && typeof almBuildPagination === 'function') { + window.almBuildPagination(data.totalposts, alm); + } + } + return _context2.abrupt("break", 14); + case 14: + case "end": + return _context2.stop(); + } + }, _callee2); + })); + return function (_x, _x2) { + return _ref2.apply(this, arguments); + }; + }(); + + /** + * Send request to the WP REST API + * + * @param {Object} alm The Ajax Load More object. + * @since 5.0.0 + */ + alm.AjaxLoadMore.restapi = function (alm) { + var _alm_localize5 = alm_localize, + rest_api_url = _alm_localize5.rest_api_url; // Get Rest API URL + var _alm$extensions = alm.extensions, + restapi_base_url = _alm$extensions.restapi_base_url, + restapi_namespace = _alm$extensions.restapi_namespace, + restapi_endpoint = _alm$extensions.restapi_endpoint, + restapi_template_id = _alm$extensions.restapi_template_id; + var alm_rest_template = wp.template(restapi_template_id); + var alm_rest_url = "".concat(rest_api_url).concat(restapi_base_url, "/").concat(restapi_namespace, "/").concat(restapi_endpoint); + var params = getRestAPIParams(alm); + lib_axios.get(alm_rest_url, { + params: params + }).then(function (response) { + // Success + var results = response.data; // Get data from response + var _results$html = results.html, + items = _results$html === void 0 ? null : _results$html, + _results$meta = results.meta, + meta = _results$meta === void 0 ? null : _results$meta; + var postcount = meta && meta.postcount ? meta.postcount : 0; + var totalposts = meta && meta.totalposts ? meta.totalposts : 0; + + // loop results to get data from each. + var data = ''; + for (var i = 0; i < items.length; i++) { + var result = items[i]; + data += alm_rest_template(result); + } + + // Rest API debug. + if (alm.extensions.restapi_debug === 'true') { + console.log('ALM RestAPI Debug:', items); // eslint-disable-line no-console + } + + // Create results object. + var obj = { + html: data, + meta: { + postcount: postcount, + totalposts: totalposts + } + }; + alm.AjaxLoadMore.render(obj); + })["catch"](function (error) { + // Error + alm.AjaxLoadMore.error(error, 'restapi'); + }); + }; + + /** + * Display/render results function. + * + * @param {Object} data The results of the Ajax request. + * @since 2.6.0 + */ + alm.AjaxLoadMore.render = /*#__PURE__*/function () { + var _ref3 = ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee8(data) { + var _alm29; + var html, meta, total, totalposts, nodes, temp, paging_container, currentPage; + return ajax_load_more_regeneratorRuntime().wrap(function _callee8$(_context8) { + while (1) switch (_context8.prev = _context8.next) { + case 0: + if (alm.addons.single_post) { + alm.AjaxLoadMore.getSinglePost(); // Fetch single post data for next post. + } + + // Parse incoming data. + html = data.html, meta = data.meta; + total = meta ? parseInt(meta.postcount) : parseInt(alm.posts_per_page); // Get current post counts. + totalposts = typeof meta !== 'undefined' ? meta.totalposts : alm.posts_per_page * 5; + alm.totalposts = totalposts; + alm.postcount = alm.addons.paging ? total : alm.postcount + total; + + // Set alm.html as plain text return. + alm.html = alm.container_type === 'table' ? html : html; + if (!meta) { + // Display warning if `meta` is missing from response. + console.warn('Ajax Load More: Unable to access `meta` object in Ajax response. There may be an issue in your Repeater Template or another theme/plugin hook causing interference with the Ajax request.'); + } + + // ALM Init: First run only. + if (alm.init) { + if (meta) { + alm.main.dataset.totalPosts = meta.totalposts ? meta.totalposts : 0; + } + + // No Results / ALM Empty. + if (total === 0) { + if (alm.addons.paging && typeof almPagingEmpty === 'function') { + window.almPagingEmpty(alm); + } + if (typeof almEmpty === 'function') { + window.almEmpty(alm); + } + if (alm.no_results) { + noResults(alm.content, alm.no_results); + } + } + + // Paging Add-on. + if (alm.addons.paging) { + // Dispatch call to build pagination. + if (typeof almBuildPagination === 'function') { + window.almBuildPagination(totalposts, alm, false); + } + if (total > 0) { + // Reset container opacity. + alm.addons.paging_container.style.opacity = 0; + + // Start paging functionaity. + alm.AjaxLoadMore.pagingInit(); + } + } + + // SEO Offset. + if (alm.addons.seo && alm.addons.seo_offset && !alm.addons.paging) { + createSEOOffset(alm); + } + + /** + * SEO & Filters add-on. + * Handle isPaged results. + */ + if (alm.paged) { + // Reset the posts_per_page value. + if (alm.addons.seo || alm.addons.filters || alm.extensions.users) { + // Reset posts per page value. + alm.posts_per_page = alm.orginal_posts_per_page; + } + + // SEO add-on. + if (alm.addons.seo) { + alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page number. + } + + // Filters add-on. + if (alm.addons.filters && alm.addons.filters_startpage > 0) { + alm.page = alm.addons.filters_startpage - 1; // Set new page number. + } + } + // Filters onLoad + if (typeof almFiltersOnload === 'function') { + window.almFiltersOnload(alm); + } + } + // End ALM Init. + + /** + * Set Filter Facets. + */ + if (alm.addons.filters && alm.facets && data.facets && typeof almFiltersFacets === 'function') { + window.almFiltersFacets(data.facets); + } + + /** + * Display alm_debug results. + */ + almDebug(alm); + + /** + * Set localized variables and Results Text. + */ + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee3() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee3$(_context3) { + while (1) switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return setLocalizedVars(alm); + case 2: + case "end": + return _context3.stop(); + } + }, _callee3); + }))(); + + // Get all returned data as an array of DOM nodes. + nodes = alm.container_type === 'table' ? tableParser(alm.html) : domParser(alm.html); + alm.last_loaded = nodes; + + // Render results. + if (!(total > 0)) { + _context8.next = 52; + break; + } + if (!(alm.addons.woocommerce || alm.addons.elementor || alm.addons.queryloop)) { + _context8.next = 21; + break; + } + temp = document.createElement('div'); + temp.innerHTML = html; + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee4() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee4$(_context4) { + while (1) switch (_context4.prev = _context4.next) { + case 0: + if (!alm.addons.woocommerce) { + _context4.next = 4; + break; + } + _context4.next = 3; + return woocommerce(temp, alm); + case 3: + woocommerceLoaded(alm); + case 4: + if (!alm.addons.elementor) { + _context4.next = 8; + break; + } + _context4.next = 7; + return elementor(temp, alm); + case 7: + elementorLoaded(alm); + case 8: + if (!alm.addons.queryloop) { + _context4.next = 12; + break; + } + _context4.next = 11; + return queryloop(temp, alm); + case 11: + queryloopLoaded(alm); + case 12: + case "end": + return _context4.stop(); + } + }, _callee4); + }))()["catch"](function (e) { + if (alm.addons.woocommerce) { + console.warn('Ajax Load More: There was an error loading WooCommerce products.', e); + } + if (alm.addons.elementor) { + console.warn('Ajax Load More: There was an error loading Clementor items.', e); + } + if (alm.addons.queryloop) { + console.warn('Ajax Load More: There was an error loading Query Loop items.', e); + } + }); + alm.init = false; + return _context8.abrupt("return"); + case 21: + if (alm.addons.paging) { + _context8.next = 36; + break; + } + /** + * Infinite Scroll Results. + */ + nodes = formatHTML(alm, nodes); + _context8.t0 = alm.transition; + _context8.next = _context8.t0 === 'masonry' ? 26 : 30; + break; + case 26: + _context8.next = 28; + return displayResults(alm, nodes); + case 28: + // Wrap almMasonry in anonymous async/await function + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee5() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee5$(_context5) { + while (1) switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return almMasonry(alm, alm.init, alm_is_filtering); + case 2: + alm.masonry.init = false; + triggerWindowResize(); + + // Callback: ALM Complete + if (typeof almComplete === 'function') { + window.almComplete(alm); + } + case 5: + case "end": + return _context5.stop(); + } + }, _callee5); + }))()["catch"](function () { + console.error('There was an error with ALM Masonry'); //eslint-disable-line no-console + }); + return _context8.abrupt("break", 33); + case 30: + _context8.next = 32; + return displayResults(alm, nodes); + case 32: + return _context8.abrupt("break", 33); + case 33: + // Infinite Scroll -> Images Loaded: Run complete callbacks and checks. + ajax_load_more_imagesLoaded(alm.listing, function () { + alm.AjaxLoadMore.nested(); // Nested ALM. + + if (alm_is_filtering && alm.addons.filters) { + if (typeof almFiltersAddonComplete === 'function') { + window.almFiltersAddonComplete(el); // Callback: Filters Add-on Complete + } + } + + if (typeof almComplete === 'function' && alm.transition !== 'masonry') { + window.almComplete(alm); // Callback: ALM Complete + } + + // Trigger tags in templates. + modules_insertScript.init(alm.last_loaded); + + // ALM Done. + if (!alm.addons.single_post) { + if (alm.addons.nextpage) { + var _alm25, _alm26; + // Nextpage. + if (((_alm25 = alm) === null || _alm25 === void 0 || (_alm25 = _alm25.localize) === null || _alm25 === void 0 ? void 0 : _alm25.post_count) + (alm.addons.nextpage_startpage - 1) >= ((_alm26 = alm) === null || _alm26 === void 0 || (_alm26 = _alm26.localize) === null || _alm26 === void 0 ? void 0 : _alm26.total_posts)) { + alm.AjaxLoadMore.triggerDone(); + } + } else { + var _alm27, _alm28; + if (((_alm27 = alm) === null || _alm27 === void 0 || (_alm27 = _alm27.localize) === null || _alm27 === void 0 ? void 0 : _alm27.post_count) >= ((_alm28 = alm) === null || _alm28 === void 0 || (_alm28 = _alm28.localize) === null || _alm28 === void 0 ? void 0 : _alm28.total_posts)) { + alm.AjaxLoadMore.triggerDone(); + } + } + } + alm_is_filtering = false; + }); + /** + * End: Infinite Scroll Results. + */ + _context8.next = 50; + break; + case 36: + /** + * Paging. + */ + paging_container = alm.addons.paging_container; + if (!alm.init) { + _context8.next = 44; + break; + } + if (!paging_container) { + _context8.next = 42; + break; + } + _context8.next = 41; + return displayPagingResults(alm, nodes); + case 41: + // Inject content. + + // Paging -> Images Loaded: Run complete callbacks and checks. + ajax_load_more_imagesLoaded(paging_container, /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee6() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee6$(_context6) { + while (1) switch (_context6.prev = _context6.next) { + case 0: + pagingComplete(alm, alm_is_filtering, true); + alm_is_filtering = false; + case 2: + case "end": + return _context6.stop(); + } + }, _callee6); + }))); + case 42: + _context8.next = 50; + break; + case 44: + if (!paging_container) { + _context8.next = 50; + break; + } + _context8.next = 47; + return almFadeOut(paging_container, 250); + case 47: + _context8.next = 49; + return displayPagingResults(alm, nodes); + case 49: + // Inject content. + + // Paging -> Images Loaded: Run complete callbacks and checks. + ajax_load_more_imagesLoaded(paging_container, /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee7() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee7$(_context7) { + while (1) switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return almFadeIn(paging_container, 250); + case 2: + paging_container.style.opacity = ''; + pagingComplete(alm, alm_is_filtering); + alm_is_filtering = false; + case 5: + case "end": + return _context7.stop(); + } + }, _callee7); + }))); + case 50: + _context8.next = 54; + break; + case 52: + /** + * No results from Ajax. + */ + alm.AjaxLoadMore.noresults(); + alm.AjaxLoadMore.transitionEnd(); + case 54: + /** + * Destroy After + */ + if (alm.destroy_after) { + currentPage = alm.page + 1; // Add 1 because alm.page starts at 0 + currentPage = alm.addons.preloaded ? currentPage++ : currentPage; // Add 1 for preloaded + if (parseInt(currentPage) === parseInt(alm.destroy_after)) { + alm.AjaxLoadMore.destroyed(); // Disable ALM if page = alm.destroy_after value. + } + } + + /** + * Display Table of Contents + */ + tableOfContents(alm, alm.init); + + /** + * Set Focus for accessibility. + */ + if ((_alm29 = alm) !== null && _alm29 !== void 0 && (_alm29 = _alm29.last_loaded) !== null && _alm29 !== void 0 && _alm29.length) { + setFocus(alm, alm.last_loaded[0], total, alm_is_filtering); + } + alm.main.classList.remove('alm-is-filtering'); // Remove filtering class. + + if (alm.init) { + alm.main.classList.add('alm-is-loaded'); // Add loaded class to main container. + } + + alm.init = false; // Set init flag. + case 60: + case "end": + return _context8.stop(); + } + }, _callee8); + })); + return function (_x3) { + return _ref3.apply(this, arguments); + }; + }(); + + /** + * Function runs when no results are returned. + * + * @since 5.3.1 + */ + alm.AjaxLoadMore.noresults = function () { + if (!alm.addons.paging) { + var _alm30, _alm31; + // Add .done class, reset btn text + (_alm30 = alm) === null || _alm30 === void 0 || (_alm30 = _alm30.button) === null || _alm30 === void 0 || (_alm30 = _alm30.classList) === null || _alm30 === void 0 || _alm30.remove('loading'); + (_alm31 = alm) === null || _alm31 === void 0 || (_alm31 = _alm31.button) === null || _alm31 === void 0 || (_alm31 = _alm31.classList) === null || _alm31 === void 0 || _alm31.add('done'); + alm.AjaxLoadMore.resetBtnText(); + } + + // Callback: ALM Complete + if (typeof almComplete === 'function' && alm.transition !== 'masonry') { + window.almComplete(alm); + } + + // Filters Add-on Complete + if (alm_is_filtering && alm.addons.filters) { + if (typeof almFiltersAddonComplete === 'function') { + window.almFiltersAddonComplete(el); + } + alm_is_filtering = false; + } + + // Masonry, clear `alm-listing` height. + if (alm.transition === 'masonry') { + alm.content.style.height = 'auto'; + } + + // ALM Done + alm.AjaxLoadMore.triggerDone(); + }; + + /** + * Init Paging + Preloaded add-ons. + * + * @param {string} html Results of Ajax request. + * @since 2.11.3 + */ + alm.AjaxLoadMore.pagingPreloadedInit = function () { + var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + alm.AjaxLoadMore.pagingInit(); // Set up paging functionality. + + if (!html) { + if (typeof almPagingEmpty === 'function') { + window.almPagingEmpty(alm); + } + if (typeof almEmpty === 'function') { + window.almEmpty(alm); + } + if (alm.no_results) { + noResults(alm.content, alm.no_results); + } + } + }; + + /** + * Init Paging + Next Page add-ons. + * + * @since 2.14.0 + */ + alm.AjaxLoadMore.pagingNextpageInit = function () { + alm.AjaxLoadMore.pagingInit(); // Set up paging functionality. + + if (typeof almSetNextPageVars === 'function') { + window.almSetNextPageVars(alm); // Set up Nextpage Vars. + } + }; + + /** + * Paging add-on first to create required containers. + * + * @since 5.0 + */ + alm.AjaxLoadMore.pagingInit = function () { + var paging_container = alm.addons.paging_container; // Get content container. + + if (paging_container) { + almFadeIn(paging_container, 150); // Fade in paging container. + + // Delay reveal of paging content. + setTimeout(function () { + alm.main.classList.remove('alm-loading'); // Remove `alm-loading` class + }, 150); + + // Delay initial pagination display to avoid positioning issues. + setTimeout(function () { + paging_container.style.removeProperty('opacity'); // Remove initial opacity prop. + + if (typeof almFadePageControls === 'function') { + window.almFadePageControls(alm.btnWrap); // Fade in paging controls. + } + + if (typeof almPagingSetHeight === 'function') { + window.almPagingSetHeight(paging_container); // Fade in container height. + } + }, 275); + } + }; + + /** + * Automatically trigger nested ALM instances. + * + * @since 5.0 + */ + alm.AjaxLoadMore.nested = function () { + var nested = alm.listing.querySelectorAll('.ajax-load-more-wrap:not(.alm-is-loaded)'); // Get all new instances + if (nested) { + ajax_load_more_toConsumableArray(nested).forEach(function (element) { + window.almInit(element); + }); + } + }; + + /** + * Get the Single Posts post ID via ajax. + * + * @since 2.7.4 + */ + alm.AjaxLoadMore.getSinglePost = /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee9() { + var params, singlePostData; + return ajax_load_more_regeneratorRuntime().wrap(function _callee9$(_context9) { + while (1) switch (_context9.prev = _context9.next) { + case 0: + if (!alm.fetchingPreviousPost) { + _context9.next = 2; + break; + } + return _context9.abrupt("return"); + case 2: + alm.fetchingPreviousPost = true; // Set loading flag. + + // Create data params. + params = { + action: 'alm_get_single', + id: alm.addons.single_post_id, + initial_id: alm.addons.single_post_init_id, + order: alm.addons.single_post_order, + taxonomy: alm.addons.single_post_taxonomy, + excluded_terms: alm.addons.single_post_excluded_terms, + post_type: alm.post_type, + init: alm.addons.single_post_init + }; // Send HTTP request via Axios. + _context9.next = 6; + return lib_axios.get(alm_localize.ajaxurl, { + params: params + }).then(function (response) { + // Get data from response. + var data = response.data; + if (data.has_previous_post) { + alm.listing.dataset.singlePostId = data.prev_id; // Update single-post-id on instance + alm.addons.single_post_id = data.prev_id; + alm.addons.single_post_permalink = data.prev_permalink; + alm.addons.single_post_title = data.prev_title; + alm.addons.single_post_slug = data.prev_slug; + alm.addons.single_post_cache = data.cache; + } else { + alm.addons.single_post_cache = false; + if (!data.has_previous_post) { + alm.AjaxLoadMore.triggerDone(); + } + } + if (typeof window.almSetSinglePost === 'function') { + window.almSetSinglePost(alm, data.current_id, data.permalink, data.title); + } + alm.fetchingPreviousPost = false; + alm.addons.single_post_init = false; + return data; + })["catch"](function (error) { + // Error + alm.AjaxLoadMore.error(error, 'getSinglePost'); + alm.fetchingPreviousPost = false; + }); + case 6: + singlePostData = _context9.sent; + return _context9.abrupt("return", singlePostData); + case 8: + case "end": + return _context9.stop(); + } + }, _callee9); + })); + if (alm.addons.single_post_id) { + alm.fetchingPreviousPost = false; + alm.addons.single_post_init = true; + } + + /** + * Triggers various add-on functions after load complete. + * + * @param {Object} alm The ALM object. + * @since 2.14.0 + */ + alm.AjaxLoadMore.triggerAddons = function (alm) { + if (typeof almSetNextPage === 'function' && alm.addons.nextpage) { + window.almSetNextPage(alm); + } + if (typeof almSEO === 'function' && alm.addons.seo) { + window.almSEO(alm, false); + } + if (typeof almWooCommerce === 'function' && alm.addons.woocommerce) { + window.almWooCommerce(alm); + } + if (typeof almElementor === 'function' && alm.addons.elementor) { + window.almElementor(alm); + } + }; + + /** + * Fires a set of actions and functions when ALM has no other posts to load. + * + * @since 2.11.3 + */ + alm.AjaxLoadMore.triggerDone = function () { + alm.loading = false; + alm.finished = true; + placeholder('hide', alm); + if (!alm.addons.paging) { + if (alm.button_labels.done) { + setTimeout(function () { + alm.button.innerHTML = alm.button_labels.done; + }, 75); + } + alm.button.classList.add('done'); + alm.button.removeAttribute('rel'); + alm.button.disabled = true; + } + + // almDone + if (typeof almDone === 'function') { + // Delay done until animations complete + setTimeout(function () { + window.almDone(alm); + }, alm.speed + 10); + } + }; + + /** + * Fires a set of actions once ALm Previous hits the first page. + * + * @since 5.5.0 + */ + alm.AjaxLoadMore.triggerDonePrev = function () { + alm.loading = false; + placeholder('hide', alm); + if (!alm.addons.paging) { + alm.buttonPrev.classList.add('done'); + alm.buttonPrev.style.opacity = '0.5'; + alm.buttonPrev.disabled = true; + } + + // almDonePrev Callback. + if (typeof almDonePrev === 'function') { + // Delay done until animations complete + setTimeout(function () { + window.almDonePrev(alm); + }, alm.speed + 10); + } + }; + + /** + * Resets the loading button text after loading has completed. + * + * @since 2.8.4 + */ + alm.AjaxLoadMore.resetBtnText = function () { + if (alm.button && alm.button_labels.loading) { + alm.button.innerHTML = alm.button_labels["default"]; + } + }; + + /** + * Button click handler to load posts. + * + * @param {Object} e The target button element. + * @since 4.2.0 + */ + alm.AjaxLoadMore.click = function (e) { + var button = e.currentTarget || e.target; + alm.rel = 'next'; + if (alm.pause === 'true') { + alm.pause = false; + alm.pause_override = false; + alm.AjaxLoadMore.loadPosts(); + } + if (!alm.loading && !alm.finished && !button.classList.contains('done')) { + alm.loading = true; + alm.page++; + alm.AjaxLoadMore.loadPosts(); + } + button.blur(); // Remove button focus + }; + + /** + * Button click handler for previous load more. + * + * @param {Object} e The target button element. + * @since 5.5.0 + */ + alm.AjaxLoadMore.prevClick = function (e) { + var button = e.currentTarget || e.target; + e.preventDefault(); + if (!alm.loading && !button.classList.contains('done')) { + alm.loading = true; + alm.pagePrev--; + alm.rel = 'prev'; + alm.AjaxLoadMore.loadPosts(); + button.blur(); // Remove button focus + } + }; + + /** + * Set the Load Previous button to alm object. + * + * @param {Element} button The button element. + * @since 5.5.0 + */ + alm.AjaxLoadMore.setPreviousButton = function (button) { + alm.pagePrev = alm.page; + alm.buttonPrev = button; + }; + + /** + * Load More button click event handler. + * + * @since 1.0.0 + */ + if (!alm.addons.paging && !alm.fetchingPreviousPost) { + alm.button.onclick = alm.AjaxLoadMore.click; + } + + /** + * Window resize functions for Paging, Scroll Distance Percentage etc. + * + * @since 2.1.2 + */ + if (alm.addons.paging || alm.scroll_distance_perc || alm.scroll_direction === 'horizontal') { + var resize; + alm.window.onresize = function () { + clearTimeout(resize); + resize = setTimeout(function () { + if (alm.addons.paging) { + // Paging + if (typeof almOnWindowResize === 'function') { + window.almOnWindowResize(alm); + } + } + if (alm.scroll_distance_perc) { + alm.scroll_distance = getScrollPercentage(alm); + } + if (alm.scroll_direction === 'horizontal') { + alm.AjaxLoadMore.horizontal(); + } + }, alm.speed); + }; + } + + /** + * Check to see if element is visible before loading posts. + * + * @since 2.1.2 + */ + alm.AjaxLoadMore.isVisible = function () { + // Check for a width and height to determine visibility + alm.visible = alm.main.clientWidth > 0 && alm.main.clientHeight > 0 ? true : false; + return alm.visible; + }; + + /** + * Load posts as user scrolls the page. + * + * @since 1.0 + */ + alm.AjaxLoadMore.scroll = function () { + if (alm.timer) { + clearTimeout(alm.timer); + } + alm.timer = setTimeout(function () { + if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) { + var trigger = alm.trigger.getBoundingClientRect(); + var btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance; + var scrollTrigger = btnPos <= 0 ? true : false; + + // Scroll Container + if (alm.window !== window) { + var scrollHeight = alm.main.offsetHeight; // ALM height + var scrollWidth = alm.main.offsetWidth; // ALM Width + var scrollPosition = ''; + if (alm.scroll_direction === 'horizontal') { + // Left/Right + alm.AjaxLoadMore.horizontal(); + scrollPosition = Math.round(alm.window.scrollLeft + alm.window.offsetWidth - alm.scroll_distance); // How far user has scrolled + scrollTrigger = scrollWidth <= scrollPosition ? true : false; + } else { + // Up/Down + scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled + scrollTrigger = scrollHeight <= scrollPosition ? true : false; + } + } + + // If Pause && Pause Override + if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') { + alm.button.click(); + } + + // Standard Scroll + else { + if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') { + alm.button.click(); + } + } + } + }, 25); + }; + + /** + * Add scroll eventlisteners, only when needed. + * + * @since 5.2.0 + */ + alm.AjaxLoadMore.scrollSetup = function () { + if (alm.scroll && !alm.addons.paging) { + if (alm.scroll_container) { + // Scroll Container + alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window; + setTimeout(function () { + // Delay to allow for ALM container to resize on load. + alm.AjaxLoadMore.horizontal(); + }, 500); + } + alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll + alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices + alm.window.addEventListener('wheel', function (e) { + // Mousewheel + var direction = Math.sign(e.deltaY); + if (direction > 0) { + alm.AjaxLoadMore.scroll(); + } + }); + alm.window.addEventListener('keyup', function (e) { + var key = e.key; + switch (key) { + case 'End': + case 'PageDown': + alm.AjaxLoadMore.scroll(); + break; + } + }); + } + }; + + /** + * Configure horizontal scroll settings. + * + * @since 5.3.6 + */ + alm.AjaxLoadMore.horizontal = function () { + if (alm.scroll_direction === 'horizontal') { + alm.main.style.width = "".concat(alm.listing.offsetWidth, "px"); + } + }; + + /** + * Destroy Ajax Load More functionality. + * + * @since 3.4.2 + */ + alm.AjaxLoadMore.destroyed = function () { + alm.disable_ajax = true; + if (!alm.addons.paging) { + alm.button.style.display = 'none'; + alm.AjaxLoadMore.triggerDone(); + if (typeof almDestroyed === 'function') { + window.almDestroyed(alm); + } + } + }; + + /** + * Set variables after loading transition completes. + * + * @since 3.5 + */ + alm.AjaxLoadMore.transitionEnd = function () { + setTimeout(function () { + alm.AjaxLoadMore.resetBtnText(); + alm.main.classList.remove('alm-loading'); + + // Loading buttons. + if (alm.rel === 'prev') { + var _alm32; + (_alm32 = alm) === null || _alm32 === void 0 || (_alm32 = _alm32.buttonPrev) === null || _alm32 === void 0 || (_alm32 = _alm32.classList) === null || _alm32 === void 0 || _alm32.remove('loading'); + } else { + var _alm33; + (_alm33 = alm) === null || _alm33 === void 0 || (_alm33 = _alm33.button) === null || _alm33 === void 0 || (_alm33 = _alm33.classList) === null || _alm33 === void 0 || _alm33.remove('loading'); + } + alm.AjaxLoadMore.triggerAddons(alm); + if (!alm.addons.paging) { + setTimeout(function () { + alm.loading = false; // Delay to prevent loading to fast + }, alm.speed * 2); + } + }, 25); + + // Hide loading placeholder. + placeholder('hide', alm); + }; + + /** + * Set individual localized variable. + * + * @param {string} name + * @param {string} value + * @since 4.1 + */ + alm.AjaxLoadMore.setLocalizedVar = function () { + var _alm34; + var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + if ((_alm34 = alm) !== null && _alm34 !== void 0 && _alm34.localize && name !== '' && value !== '') { + alm.localize[name] = value; // Set ALM localize var. + window[alm.localized_var][name] = value; // Update vars. + } + }; + + /** + * Init Ajax load More functionality and add-ons. + * + * @since 2.0 + */ + alm.AjaxLoadMore.init = /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee12() { + var nextpage_pages, _alm35, nextpage_first, nextpage_total; + return ajax_load_more_regeneratorRuntime().wrap(function _callee12$(_context12) { + while (1) switch (_context12.prev = _context12.next) { + case 0: + // Preloaded and Destroy After is 1. + if (alm.addons.preloaded && alm.destroy_after === 1) { + alm.AjaxLoadMore.destroyed(); + } + + // Paging Add-on. + if (alm.addons.paging) { + if (alm.addons.preloaded) { + // Preloaded. + alm.AjaxLoadMore.ajax('totalposts'); + } else if (alm.addons.nextpage) { + // Next Page. + alm.AjaxLoadMore.ajax('totalpages'); + } else { + // Standard. + alm.AjaxLoadMore.loadPosts(); + } + } + + // Not Paging & not Single Post. + if (!alm.addons.paging && !alm.addons.single_post) { + if (alm.disable_ajax) { + alm.finished = true; + alm.button.classList.add('done'); + } else { + // Set button label. + alm.button.innerHTML = alm.button_labels["default"]; + + // Check pause. + if (alm.pause === 'true') { + alm.loading = false; + } else { + alm.AjaxLoadMore.loadPosts(); + } + } + } + + // Single Post Add-on. + if (alm.addons.single_post) { + // Add delay for setup and scripts to load. + setTimeout( /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee10() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee10$(_context10) { + while (1) switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return alm.AjaxLoadMore.getSinglePost(); + case 2: + // Set next post on load + + // Trigger done if custom query and no posts to render + if (alm.addons.single_post_query && alm.addons.single_post_order === '') { + alm.AjaxLoadMore.triggerDone(); + } + alm.loading = false; + tableOfContents(alm, true, true); + case 5: + case "end": + return _context10.stop(); + } + }, _callee10); + })), 250); + } + + // Query Loop Add-on. + if (alm.addons.queryloop && alm.addons.queryloop_settings) { + queryLoopInit(alm); + } + + // Preloaded + SEO && !Paging. + if (alm.addons.preloaded && alm.addons.seo && !alm.addons.paging) { + // Add delay for setup and scripts to load. + setTimeout(function () { + if (typeof almSEO === 'function' && alm.start_page < 1) { + window.almSEO(alm, true); + } + }, 200); + } + + // Preloaded && !Paging. + if (alm.addons.preloaded && !alm.addons.paging) { + // Add delay for setup and scripts to load. + setTimeout(function () { + if (alm.addons.preloaded_total_posts <= alm.addons.preloaded_amount) { + alm.AjaxLoadMore.triggerDone(); + } + // almEmpty callback. + if (alm.addons.preloaded_total_posts === 0) { + if (typeof almEmpty === 'function') { + window.almEmpty(alm); + } + if (alm.no_results) { + noResults(alm.content, alm.no_results); + } + } + }, alm.speed); + } + + // Preloaded Add-on ONLY. + if (alm.addons.preloaded) { + if (alm.resultsText) { + almInitResultsText(alm, 'preloaded'); + } + tableOfContents(alm, alm.init, true); + } + + // Next Page Add-on. + if (alm.addons.nextpage) { + // Check that posts remain on load + if (alm.listing.querySelector('.alm-nextpage') && !alm.addons.paging) { + nextpage_pages = alm.listing.querySelectorAll('.alm-nextpage'); // All Next Page Items. + if (nextpage_pages) { + nextpage_first = nextpage_pages[0]; + nextpage_total = nextpage_first.dataset.totalPosts ? parseInt(nextpage_first.dataset.totalPosts) : (_alm35 = alm) === null || _alm35 === void 0 || (_alm35 = _alm35.localize) === null || _alm35 === void 0 ? void 0 : _alm35.total_posts; // Disable if last page loaded + if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.page) === nextpage_total) { + alm.AjaxLoadMore.triggerDone(); + } + } + } + if (alm.resultsText) { + almInitResultsText(alm, 'nextpage'); + } + tableOfContents(alm, alm.init, true); + } + + // WooCommerce Add-on. + if (alm.addons.woocommerce) { + wooInit(alm); + if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) { + alm.AjaxLoadMore.triggerDone(); // Done if `paged is less than `pages`. + } + } + + // Elementor Add-on. + if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') { + elementorInit(alm); + if (!alm.addons.elementor_next_page) { + alm.AjaxLoadMore.triggerDone(); // Done if `elementor_next_page` is false. + } + } + + // Window Load. + alm.window.addEventListener('load', function () { + // Masonry & Preloaded. + if (alm.transition === 'masonry' && alm.addons.preloaded) { + // Wrap almMasonry in anonymous async/await function + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee11() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee11$(_context11) { + while (1) switch (_context11.prev = _context11.next) { + case 0: + _context11.next = 2; + return almMasonry(alm, true, false); + case 2: + alm.masonry.init = false; + case 3: + case "end": + return _context11.stop(); + } + }, _callee11); + }))()["catch"](function () { + console.error('There was an error with ALM Masonry'); + }); + } + + // Filters, Facets & Preloaded Facets + if (alm.addons.preloaded && alm.addons.filters && alm.facets) { + if (typeof almFiltersFacets === 'function') { + var _alm36; + var facets = (_alm36 = alm) === null || _alm36 === void 0 || (_alm36 = _alm36.localize) === null || _alm36 === void 0 ? void 0 : _alm36.facets; + if (facets) { + window.almFiltersFacets(facets); + } + } + } + + // Window Load Callback. + if (typeof almOnLoad === 'function') { + window.almOnLoad(alm); // eslint-disable-line + } + }); + + setPreloadedParams(alm); // Set preloaded params. + case 13: + case "end": + return _context12.stop(); + } + }, _callee12); + })); + + /** + * Handle error messages. + * + * @param {string} error The error message. + * @param {string} location The location the error occured. + * @since 2.6.0 + */ + alm.AjaxLoadMore.error = function (error) { + var location = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + alm.loading = false; + if (!alm.addons.paging) { + alm.button.classList.remove('loading'); + alm.AjaxLoadMore.resetBtnText(); + } + console.warn('Error: ', error); + if (error.response) { + // The request was made and the server responded with a status code that falls out of the range of 2xx. + console.error('Error Msg: ', error.message); + } else if (error.request) { + // The request was made but no response was received. + console.error(error.request); + } else { + // Something happened in setting up the request that triggered an Error. + console.error('Error Msg: ', error.message); + } + if (location) { + console.error('ALM Error started in ' + location); + } + if (error.config) { + console.error('ALM Error Debug: ', error.config); + } + }; + + /** + * Update Current Page. + * Note: Callback function triggered from Paging add-on. + * + * @param {number} current Current page number. + * @param {Object} obj Optional object (Deprecated). + * @param {Object} alm The ALM object. + * @since 2.7.0 + */ + window.almUpdateCurrentPage = function (current, obj, alm) { + // eslint-disable-line + alm.page = current; + alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on + + var target = alm.listing; + var data = target === null || target === void 0 ? void 0 : target.innerHTML; // Get content + + if (alm.addons.paging_init && alm.addons.preloaded) { + // Paging + Preloaded Firstrun. + alm.addons.preloaded_amount = 0; // Reset preloaded_amount param. + alm.AjaxLoadMore.pagingPreloadedInit(data); + alm.addons.paging_init = false; + alm.init = false; + } else if (alm.addons.paging_init && alm.addons.nextpage) { + // Paging + Next Page on firstrun. + alm.AjaxLoadMore.pagingNextpageInit(); + alm.addons.paging_init = false; + alm.init = false; + } else { + // Standard Paging + alm.AjaxLoadMore.loadPosts(); + } + }; + + /** + * Get the parent ALM container. + * + * @return {HTMLElement} The ALM listing container. + * @since 2.7.0 + */ + window.almGetParentContainer = function () { + var _alm37; + return (_alm37 = alm) === null || _alm37 === void 0 ? void 0 : _alm37.listing; + }; + + /** + * Returns the current ALM obj. + * + * @param {string} obj The ALM object to return. + * @return {Object} The ALM object. + * @since 2.7.0 + */ + window.almGetObj = function () { + var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + if (obj) { + return alm[obj]; // Return specific param. + } + + return alm; // Return the entire alm object + }; + + /** + * Trigger ajaxloadmore from any element on page. + * + * @since 2.12.0 + */ + window.almTriggerClick = function () { + alm.button.click(); + }; + + // Delay to prevent immediate loading of posts on initial page load via scroll. + setTimeout(function () { + alm.proceed = true; + alm.AjaxLoadMore.scrollSetup(); + }, 1000); + + // Init Ajax Load More + alm.AjaxLoadMore.init(); + }; + + // End ajaxloadmore + + /** + * Initiate instance of Ajax load More + * + * @param {HTMLElement} el The ALM element. + * @param {number} id The ALM instance ID. + * @since 5.0 + */ + window.almInit = function (el) { + var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + new ajaxloadmore(el, id); + }; + + /** + * Initiate Ajax load More if div is present on screen + * + * @since 2.1.2 + */ + var alm_instances = document.querySelectorAll('.ajax-load-more-wrap'); + if (alm_instances.length) { + ajax_load_more_toConsumableArray(alm_instances).forEach(function (alm, index) { + new ajaxloadmore(alm, index); + }); + } +})(); + +/** + * Filter an Ajax Load More instance. + * + * @param {string} transition The transition type. + * @param {string} speed The speed of the filter transition. + * @param {Object} data Query data as an object. + * @since 5.0 + */ +var filter = function filter() { + var transition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fade'; + var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '200'; + var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; + if (!transition || !speed || !data) { + return false; + } + alm_is_filtering = true; + almFilter(transition, speed, data, 'filter'); +}; + +/** + * Reset an Ajax Load More instance. + * + * @since 5.3.8 + * @param {Object} props The ALM props as an object. + */ +var ajax_load_more_reset = function reset() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var data = {}; + alm_is_filtering = true; + if (props && props.target) { + data = { + target: target + }; + } + if (props && props.type === 'woocommerce') { + // WooCommerce + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee13() { + var instance, settings; + return ajax_load_more_regeneratorRuntime().wrap(function _callee13$(_context13) { + while (1) switch (_context13.prev = _context13.next) { + case 0: + instance = document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'); // Get ALM instance + _context13.next = 3; + return wooReset(); + case 3: + settings = _context13.sent; + // Get WooCommerce `settings` via Ajax + if (settings) { + instance.dataset.wooSettings = settings; // Update data atts + almFilter('fade', '100', data, 'filter'); + } + case 5: + case "end": + return _context13.stop(); + } + }, _callee13); + }))()["catch"](function () { + console.warn('Ajax Load More: There was an issue resetting the Ajax Load More instance.'); + }); + } else { + // Standard ALM + almFilter('fade', '200', data, 'filter'); + } +}; + +/** + * Get the total post count in the current query by ALM instance ID. + * Note: Uses localized ALM variables. + * + * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php + * @param {string} id An optional Ajax Load More ID. + * @return {number} The results from the localized variable. + */ +var ajax_load_more_getPostCount = function getPostCount() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + return getTotals('post_count', id); +}; + +/** + * Get the total number of posts by ALM instance ID. + * Note: Uses localized ALM variables. + * + * @param {string} id An optional Ajax Load More ID. + * @return {number} The results from the localized variable. + */ +var getTotalPosts = function getTotalPosts() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + return getTotals('total_posts', id); +}; + +/** + * Get the total posts remaining in the current query by ALM instance ID. + * Note: Uses localized ALM variables. + * + * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php + * @param {string} id An optional Ajax Load More ID. + * @return {number} The total remaining posts. + */ +var getTotalRemaining = function getTotalRemaining() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + return getTotals('remaining', id); +}; + +/** + * Track Page Views and Analytics + * + * @since 5.0 + * @param {string} type The add-on type that is triggering the analytics. + */ +var analytics = function analytics() { + var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var _window$location = window.location, + _window$location$path = _window$location.pathname, + pathname = _window$location$path === void 0 ? '' : _window$location$path, + _window$location$sear = _window$location.search, + search = _window$location$sear === void 0 ? '' : _window$location$sear; + + /** + * ALM Callback Function (URL Change) + * + * @see https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/#url-update + */ + if (typeof almUrlUpdate === 'function') { + window.almUrlUpdate(pathname + search, type); + } + + /** + * ALM Callback Function + */ + if (typeof almAnalytics === 'function') { + window.almAnalytics(pathname + search, type); + } +}; + +/** + * Trigger Ajax Load More from other events. + * + * @since 5.0 + * @param {Element} instance The HTML element. + */ +var start = function start(instance) { + if (!instance) { + return false; + } + window.almInit(instance); +}; + +/** + * Scroll window to position (global function). + * + * @since 5.0 + * @param {string} position The position to scroll. + */ +var almScroll = function almScroll(position) { + if (!position) { + return false; + } + window.scrollTo({ + top: position, + behavior: 'smooth' + }); +}; + +/** + * Get the current top/left coordinates of an element relative to the document. + * + * @since 5.0 + * @param {HTMLElement} el The HTML element. + * @return {Object} The top/left coordinates. + */ +var getOffset = function getOffset() { + var el = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + if (!el) { + return false; + } + var rect = el.getBoundingClientRect(); + var scrollLeft = window.scrollX || document.documentElement.scrollLeft; + var scrollTop = window.scrollY || document.documentElement.scrollTop; + return { + top: rect.top + scrollTop, + left: rect.left + scrollLeft + }; +}; + +/** + * Trigger a click event to load Ajax Load More content. + * + * @param {string} id The Ajax Load More ID. + */ +var click = function click() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var alm = document.querySelector('.ajax-load-more-wrap'); + var button = ''; + if (!id && alm) { + // Default ALM element. + button = alm.querySelector('button.alm-load-more-btn'); + if (button) { + button.click(); + } + } else { + // Ajax Load More by ID. + alm = document.querySelector(".ajax-load-more-wrap[data-id=\"".concat(id, "\"]")); + if (alm) { + button = alm.querySelector('button.alm-load-more-btn'); + if (button) { + button.click(); + } + } + } +}; + +/** + * Load ALM inside the WP Block Editor. + * + * @since 7.1.0 + * @param {Element} instance The HTML element. + */ +var wpblock = function wpblock(instance) { + var listing = instance.querySelector('.alm-listing'); + if (!listing || instance.dataset.blockLoaded === 'true') { + return; // Exit if does not exist or block already loaded. + } + + instance.dataset.blockLoaded = 'true'; + listing.dataset.scroll = 'false'; // Remove scroll. + start(instance); +}; +}(); +ajaxloadmore = __webpack_exports__; /******/ })() ; \ No newline at end of file diff --git a/build/frontend/ajax-load-more.min.asset.php b/build/frontend/ajax-load-more.min.asset.php index 02114c3..6b7935b 100644 --- a/build/frontend/ajax-load-more.min.asset.php +++ b/build/frontend/ajax-load-more.min.asset.php @@ -1 +1 @@ - array(), 'version' => '86ad425329094fef5a9a'); + array(), 'version' => '3309b584d74c474ae5d2'); diff --git a/build/frontend/ajax-load-more.min.css b/build/frontend/ajax-load-more.min.css index d2e9af0..bbe8143 100644 --- a/build/frontend/ajax-load-more.min.css +++ b/build/frontend/ajax-load-more.min.css @@ -1,518 +1 @@ -/*!************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss ***! - \************************************************************************************************************************************************************/ -.alm-btn-wrap { - display: block; - text-align: center; - padding: 10px 0 0; - margin: 0 0 25px; - position: relative; -} -.alm-btn-wrap::after { - display: table; - clear: both; - height: 0; - content: ""; -} -.alm-btn-wrap .alm-load-more-btn { - font-size: 15px; - font-weight: 500; - width: auto; - height: 43px; - line-height: 1; - background: #ed7070; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); - color: #fff; - border: none; - border-radius: 4px; - margin: 0; - padding: 0 20px; - display: inline-block; - position: relative; - transition: all 0.3s ease; - text-align: center; - text-decoration: none; - appearance: none; - user-select: none; - cursor: pointer; - /* Loading */ - /* Loaded / Done */ - /* Loading Icon */ - /* Loading :before */ -} -.alm-btn-wrap .alm-load-more-btn:hover, .alm-btn-wrap .alm-load-more-btn.loading { - background-color: #e06161; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09); - color: #fff; - text-decoration: none; -} -.alm-btn-wrap .alm-load-more-btn:active { - box-shadow: none; - text-decoration: none; -} -.alm-btn-wrap .alm-load-more-btn.loading { - pointer-events: none; - cursor: wait; - outline: none; - padding-left: 44px; -} -.alm-btn-wrap .alm-load-more-btn.done, .alm-btn-wrap .alm-load-more-btn:disabled { - pointer-events: none; - opacity: 0.15; - background-color: #ed7070; - outline: none !important; - box-shadow: none !important; -} -.alm-btn-wrap .alm-load-more-btn::before, .alm-btn-wrap .alm-load-more-btn.done::before, .alm-btn-wrap .alm-load-more-btn:disabled::before { - background: none; - width: 0; -} -.alm-btn-wrap .alm-load-more-btn.loading::before { - background: #fff url(../frontend/img/ajax-loader.gif) no-repeat center center; - width: 30px; - height: 31px; - margin: 6px; - border-radius: 3px; - display: inline-block; - z-index: 0; - content: ""; - position: absolute; - left: 0; - top: 0; - overflow: hidden; - transition: width 0.5s ease-in-out; -} -.alm-btn-wrap .alm-elementor-link { - display: block; - font-size: 13px; - margin: 0 0 15px; -} -@media screen and (min-width: 768px) { - .alm-btn-wrap .alm-elementor-link { - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - margin: 0; - } -} - -/* white */ -.ajax-load-more-wrap.white .alm-load-more-btn { - background-color: #fff; - color: #787878; - border: 1px solid #e0e0e0; - overflow: hidden; - transition: none; - outline: none; -} -.ajax-load-more-wrap.white .alm-load-more-btn:focus, .ajax-load-more-wrap.white .alm-load-more-btn:hover, .ajax-load-more-wrap.white .alm-load-more-btn.loading { - background-color: #fff; - color: #333; - border-color: #aaaaaa; -} -.ajax-load-more-wrap.white .alm-load-more-btn.done { - background-color: #fff; - color: #444; - border-color: #ccc; -} -.ajax-load-more-wrap.white .alm-load-more-btn.loading { - color: rgba(255, 255, 255, 0) !important; - outline: none !important; - background-color: transparent; - border-color: transparent !important; - box-shadow: none !important; - padding-left: 20px; -} -.ajax-load-more-wrap.white .alm-load-more-btn.loading::before { - margin: 0; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: transparent; - background-image: url(../frontend/img/ajax-loader-lg.gif); - background-size: 25px 25px; - background-position: center center; -} - -/* light grey */ -.ajax-load-more-wrap.light-grey .alm-load-more-btn { - background-color: #efefef; - color: #787878; - border: 1px solid #e0e0e0; - overflow: hidden; - transition: all 0.075s ease; - outline: none; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus, .ajax-load-more-wrap.light-grey .alm-load-more-btn:hover, .ajax-load-more-wrap.light-grey .alm-load-more-btn.loading, .ajax-load-more-wrap.light-grey .alm-load-more-btn.done { - background-color: #f1f1f1; - color: #222; - border-color: #aaaaaa; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading { - color: rgba(255, 255, 255, 0) !important; - outline: none !important; - background-color: transparent; - border-color: transparent !important; - box-shadow: none !important; - padding-left: 20px; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading::before { - margin: 0; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: transparent; - background-image: url(../frontend/img/ajax-loader-lg.gif); - background-size: 25px 25px; - background-position: center center; -} - -/* Blue */ -.ajax-load-more-wrap.blue .alm-load-more-btn { - background-color: #1b91ca; -} -.ajax-load-more-wrap.blue .alm-load-more-btn:hover, .ajax-load-more-wrap.blue .alm-load-more-btn.loading, .ajax-load-more-wrap.blue .alm-load-more-btn.done { - background-color: #1b84b7; -} - -/* green */ -.ajax-load-more-wrap.green .alm-load-more-btn { - background-color: #80ca7a; -} -.ajax-load-more-wrap.green .alm-load-more-btn:hover, .ajax-load-more-wrap.green .alm-load-more-btn.loading, .ajax-load-more-wrap.green .alm-load-more-btn.done { - background-color: #81c17b; -} - -/* purple */ -.ajax-load-more-wrap.purple .alm-load-more-btn { - background-color: #b97eca; -} -.ajax-load-more-wrap.purple .alm-load-more-btn:hover, .ajax-load-more-wrap.purple .alm-load-more-btn.loading, .ajax-load-more-wrap.purple .alm-load-more-btn.done { - background-color: #a477b1; -} - -/* grey */ -.ajax-load-more-wrap.grey .alm-load-more-btn { - background-color: #a09e9e; -} -.ajax-load-more-wrap.grey .alm-load-more-btn:hover, .ajax-load-more-wrap.grey .alm-load-more-btn.loading, .ajax-load-more-wrap.grey .alm-load-more-btn.done { - background-color: #888; -} - -/* Infinite */ -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn { - width: 100%; - background-color: transparent !important; - background-position: center center; - background-repeat: no-repeat; - background-image: url(../frontend/img/spinner.gif); - border: none !important; - opacity: 0; - transition: opacity 0.2s ease; - box-shadow: none !important; - overflow: hidden; - text-indent: -9999px; - cursor: default !important; - outline: none !important; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn::before { - display: none !important; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:focus, .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:active { - outline: none; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.done { - opacity: 0; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.loading { - opacity: 1; -} -.ajax-load-more-wrap.infinite.skype > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-skype.gif); -} -.ajax-load-more-wrap.infinite.ring > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-ring.gif); -} -.ajax-load-more-wrap.infinite.fading-blocks > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/loader-fading-blocks.gif); -} -.ajax-load-more-wrap.infinite.fading-circles > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/loader-fading-circles.gif); -} -.ajax-load-more-wrap.infinite.chasing-arrows > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-chasing-arrows.gif); -} - -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap { - display: flex; - align-items: center; - padding: 0; - margin: 0; -} -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button { - margin: 0; -} -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done { - display: none; -} - -.alm-btn-wrap--prev { - display: flex; - width: 100%; - justify-content: center; - clear: both; - padding: 0; - margin: 0; -} -.alm-btn-wrap--prev::after { - display: table; - clear: both; - height: 0; - content: ""; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev { - line-height: 1; - font-size: 14px; - font-weight: 500; - padding: 5px; - display: inline-block; - position: relative; - margin: 0 0 15px; - text-decoration: none; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev:hover, .alm-btn-wrap--prev a.alm-load-more-btn--prev:focus { - text-decoration: underline; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading, .alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus { - cursor: wait; - text-decoration: none; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading::before, .alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus::before { - content: ""; - display: block; - position: absolute; - left: -18px; - top: 50%; - transform: translateY(-50%); - width: 16px; - height: 16px; - background: url(../frontend/img/ajax-loader-lg.gif) no-repeat left center; - background-size: 16px 16px; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.skype.loading::before { - background-image: url(../frontend/img/spinner-skype.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.ring.loading::before { - background-image: url(../frontend/img/spinner-ring.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.fading-blocks.loading::before { - background-image: url(../frontend/img/loader-fading-blocks.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.chasing-arrows.loading::before { - background-image: url(../frontend/img/spinner-chasing-arrows.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev:not(.disabled), -.alm-btn-wrap--prev a.alm-load-more-btn--prev button:not([disabled]) { - cursor: pointer; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.done { - display: none !important; -} - -.alm-listing, -.alm-paging-content { - outline: none; -} -.alm-listing::after, -.alm-paging-content::after { - display: table; - clear: both; - height: 0; - content: ""; -} - -.alm-listing { - margin: 0; - padding: 0; -} -.alm-listing .alm-paging-content > li, -.alm-listing > li { - position: relative; -} -.alm-listing .alm-paging-content > li.alm-item, -.alm-listing > li.alm-item { - background: none; - margin: 0 0 30px; - padding: 0 0 0 80px; - position: relative; - list-style: none; -} -@media screen and (min-width: 480px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 100px; - } -} -@media screen and (min-width: 768px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 135px; - } -} -@media screen and (min-width: 1024px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 160px; - } -} -.alm-listing .alm-paging-content > li.alm-item h3, -.alm-listing > li.alm-item h3 { - margin: 0; -} -.alm-listing .alm-paging-content > li.alm-item p, -.alm-listing > li.alm-item p { - margin: 10px 0 0; -} -.alm-listing .alm-paging-content > li.alm-item p.entry-meta, -.alm-listing > li.alm-item p.entry-meta { - opacity: 0.75; -} -.alm-listing .alm-paging-content > li.alm-item img, -.alm-listing > li.alm-item img { - position: absolute; - left: 0; - top: 0; - border-radius: 2px; - max-width: 65px; -} -@media screen and (min-width: 480px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 85px; - } -} -@media screen and (min-width: 768px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 115px; - } -} -@media screen and (min-width: 1024px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 140px; - } -} -.alm-listing .alm-paging-content > li.no-img, -.alm-listing > li.no-img { - padding: 0; -} -.alm-listing.products li.product { - padding-left: inherit; -} -.alm-listing.products li.product img { - position: static; - border-radius: inherit; -} -.alm-listing.stylefree .alm-paging-content > li, -.alm-listing.stylefree > li { - padding: inherit; - margin: inherit; -} -.alm-listing.stylefree .alm-paging-content > li img, -.alm-listing.stylefree > li img { - padding: inherit; - margin: inherit; - position: static; - border-radius: inherit; -} - -.alm-listing.rtl .alm-paging-content > li { - padding: 0 170px 0 0; - text-align: right; -} -.alm-listing.rtl .alm-paging-content > li img { - left: auto; - right: 0; -} -.alm-listing.rtl.products li.product { - padding-right: inherit; -} - -.alm-masonry { - display: block; - overflow: hidden; - clear: both; -} - -.alm-placeholder { - opacity: 0; - transition: opacity 0.2s ease; - display: none; -} - -.ajax-load-more-wrap.alm-horizontal { - display: flex; - flex-wrap: nowrap; - width: 100%; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing { - display: flex; - flex-wrap: nowrap; - flex-direction: row; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item { - text-align: center; - margin: 0 2px; - padding: 20px 20px 30px; - height: auto; - background-color: #fff; - border: 1px solid #efefef; - border-radius: 4px; - width: 300px; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item img { - position: static; - max-width: 125px; - margin: 0 auto 15px; - border-radius: 4px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.075); -} -.ajax-load-more-wrap.alm-horizontal .alm-listing::after { - display: none; -} - -.alm-toc { - display: flex; - width: auto; - padding: 10px 0; -} -.alm-toc button { - background: #f7f7f7; - border-radius: 4px; - transition: all 0.15s ease; - outline: none; - border: 1px solid #efefef; - box-shadow: none; - color: #454545; - cursor: pointer; - font-size: 14px; - font-weight: 500; - padding: 7px 10px; - line-height: 1; - margin: 0 5px 0 0; - height: auto; -} -.alm-toc button:hover, .alm-toc button:focus { - border-color: #ccc; - color: #222; -} -.alm-toc button:hover { - text-decoration: underline; -} -.alm-toc button:focus { - box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); -} +.alm-btn-wrap{display:block;margin:0 0 25px;padding:10px 0 0;position:relative;text-align:center}.alm-btn-wrap:after{clear:both;content:"";display:table;height:0}.alm-btn-wrap .alm-load-more-btn{appearance:none;background:#ed7070;border:none;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);color:#fff;cursor:pointer;display:inline-block;font-size:15px;font-weight:500;height:43px;line-height:1;margin:0;padding:0 20px;position:relative;text-align:center;text-decoration:none;transition:all .3s ease;user-select:none;width:auto}.alm-btn-wrap .alm-load-more-btn.loading,.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06161;box-shadow:0 1px 3px rgba(0,0,0,.09);color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{box-shadow:none;text-decoration:none}.alm-btn-wrap .alm-load-more-btn.loading{cursor:wait;outline:none;padding-left:44px;pointer-events:none}.alm-btn-wrap .alm-load-more-btn.done,.alm-btn-wrap .alm-load-more-btn:disabled{background-color:#ed7070;box-shadow:none!important;opacity:.15;outline:none!important;pointer-events:none}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before,.alm-btn-wrap .alm-load-more-btn:disabled:before{background:none;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../frontend/img/ajax-loader.gif) no-repeat 50%;border-radius:3px;content:"";display:inline-block;height:31px;left:0;margin:6px;overflow:hidden;position:absolute;top:0;transition:width .5s ease-in-out;width:30px;z-index:0}.alm-btn-wrap .alm-elementor-link{display:block;font-size:13px;margin:0 0 15px}@media screen and (min-width:768px){.alm-btn-wrap .alm-elementor-link{left:0;margin:0;position:absolute;top:50%;transform:translateY(-50%)}}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;border:1px solid #e0e0e0;color:#787878;outline:none;overflow:hidden;transition:none}.ajax-load-more-wrap.white .alm-load-more-btn.loading,.ajax-load-more-wrap.white .alm-load-more-btn:focus,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#fff;border-color:#aaa;color:#333}.ajax-load-more-wrap.white .alm-load-more-btn.done{background-color:#fff;border-color:#ccc;color:#444}.ajax-load-more-wrap.white .alm-load-more-btn.loading{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)!important;box-shadow:none!important;color:hsla(0,0%,100%,0)!important;outline:none!important;padding-left:20px}.ajax-load-more-wrap.white .alm-load-more-btn.loading:before{background-color:rgba(0,0,0,0);background-image:url(../frontend/img/ajax-loader-lg.gif);background-position:50%;background-size:25px 25px;height:100%;left:0;margin:0;top:0;width:100%}.ajax-load-more-wrap.light-grey .alm-load-more-btn{background-color:#efefef;border:1px solid #e0e0e0;color:#787878;outline:none;overflow:hidden;transition:all 75ms ease}.ajax-load-more-wrap.light-grey .alm-load-more-btn.done,.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading,.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus,.ajax-load-more-wrap.light-grey .alm-load-more-btn:hover{background-color:#f1f1f1;border-color:#aaa;color:#222}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)!important;box-shadow:none!important;color:hsla(0,0%,100%,0)!important;outline:none!important;padding-left:20px}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading:before{background-color:rgba(0,0,0,0);background-image:url(../frontend/img/ajax-loader-lg.gif);background-position:50%;background-size:25px 25px;height:100%;left:0;margin:0;top:0;width:100%}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#1b91ca}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn.loading,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#1b84b7}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#80ca7a}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn.loading,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#81c17b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#b97eca}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn.loading,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#a477b1}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#a09e9e}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn.loading,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#888}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn{background-color:rgba(0,0,0,0)!important;background-image:url(../frontend/img/spinner.gif);background-position:50%;background-repeat:no-repeat;border:none!important;box-shadow:none!important;cursor:default!important;opacity:0;outline:none!important;overflow:hidden;text-indent:-9999px;transition:opacity .2s ease;width:100%}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:active,.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:focus{outline:none}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-chasing-arrows.gif)}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap{align-items:center;display:flex;margin:0;padding:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button{margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done{display:none}.alm-btn-wrap--prev{clear:both;display:flex;justify-content:center;margin:0;padding:0;width:100%}.alm-btn-wrap--prev:after{clear:both;content:"";display:table;height:0}.alm-btn-wrap--prev a.alm-load-more-btn--prev{display:inline-block;font-size:14px;font-weight:500;line-height:1;margin:0 0 15px;padding:5px;position:relative;text-decoration:none}.alm-btn-wrap--prev a.alm-load-more-btn--prev:focus,.alm-btn-wrap--prev a.alm-load-more-btn--prev:hover{text-decoration:underline}.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading,.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus{cursor:wait;text-decoration:none}.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:before,.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus:before{background:url(../frontend/img/ajax-loader-lg.gif) no-repeat 0;background-size:16px 16px;content:"";display:block;height:16px;left:-18px;position:absolute;top:50%;transform:translateY(-50%);width:16px}.alm-btn-wrap--prev a.alm-load-more-btn--prev.skype.loading:before{background-image:url(../frontend/img/spinner-skype.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.ring.loading:before{background-image:url(../frontend/img/spinner-ring.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.fading-blocks.loading:before{background-image:url(../frontend/img/loader-fading-blocks.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.chasing-arrows.loading:before{background-image:url(../frontend/img/spinner-chasing-arrows.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev button:not([disabled]),.alm-btn-wrap--prev a.alm-load-more-btn--prev:not(.disabled){cursor:pointer}.alm-btn-wrap--prev a.alm-load-more-btn--prev.done{display:none!important}.alm-listing,.alm-paging-content{outline:none}.alm-listing:after,.alm-paging-content:after{clear:both;content:"";display:table;height:0}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing>li{position:relative}.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{background:none;list-style:none;margin:0 0 30px;padding:0 0 0 80px;position:relative}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 100px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 135px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 160px}}.alm-listing .alm-paging-content>li.alm-item h3,.alm-listing>li.alm-item h3{margin:0}.alm-listing .alm-paging-content>li.alm-item p,.alm-listing>li.alm-item p{margin:10px 0 0}.alm-listing .alm-paging-content>li.alm-item p.entry-meta,.alm-listing>li.alm-item p.entry-meta{opacity:.75}.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{border-radius:2px;left:0;max-width:65px;position:absolute;top:0}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:85px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:115px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:140px}}.alm-listing .alm-paging-content>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing.products li.product{padding-left:inherit}.alm-listing.products li.product img{border-radius:inherit;position:static}.alm-listing.stylefree .alm-paging-content>li,.alm-listing.stylefree>li{margin:inherit;padding:inherit}.alm-listing.stylefree .alm-paging-content>li img,.alm-listing.stylefree>li img{border-radius:inherit;margin:inherit;padding:inherit;position:static}.alm-listing.rtl .alm-paging-content>li{padding:0 170px 0 0;text-align:right}.alm-listing.rtl .alm-paging-content>li img{left:auto;right:0}.alm-listing.rtl.products li.product{padding-right:inherit}.alm-masonry{clear:both;display:block;overflow:hidden}.alm-placeholder{display:none;opacity:0;transition:opacity .2s ease}.ajax-load-more-wrap.alm-horizontal{display:flex;flex-wrap:nowrap;width:100%}.ajax-load-more-wrap.alm-horizontal .alm-listing{display:flex;flex-direction:row;flex-wrap:nowrap}.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item{background-color:#fff;border:1px solid #efefef;border-radius:4px;height:auto;margin:0 2px;padding:20px 20px 30px;text-align:center;width:300px}.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item img{border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.075);margin:0 auto 15px;max-width:125px;position:static}.ajax-load-more-wrap.alm-horizontal .alm-listing:after{display:none}.alm-toc{display:flex;padding:10px 0;width:auto}.alm-toc button{background:#f7f7f7;border:1px solid #efefef;border-radius:4px;box-shadow:none;color:#454545;cursor:pointer;font-size:14px;font-weight:500;height:auto;line-height:1;margin:0 5px 0 0;outline:none;padding:7px 10px;transition:all .15s ease}.alm-toc button:focus,.alm-toc button:hover{border-color:#ccc;color:#222}.alm-toc button:hover{text-decoration:underline}.alm-toc button:focus{box-shadow:0 0 0 3px rgba(0,0,0,.05)} \ No newline at end of file diff --git a/build/frontend/ajax-load-more.min.js b/build/frontend/ajax-load-more.min.js index fcee324..ce28fe9 100644 --- a/build/frontend/ajax-load-more.min.js +++ b/build/frontend/ajax-load-more.min.js @@ -1,1461 +1,6 @@ -/* - * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file in the browser devtools. - * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) - * or disable the default devtool with "devtool: false". - * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). - */ -var ajaxloadmore; -/******/ (function() { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./src/frontend/js/addons/cache.js": -/*!*****************************************!*\ - !*** ./src/frontend/js/addons/cache.js ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cacheCreateParams: function() { return /* binding */ cacheCreateParams; },\n/* harmony export */ createCache: function() { return /* binding */ createCache; },\n/* harmony export */ getCache: function() { return /* binding */ getCache; },\n/* harmony export */ getCacheSlug: function() { return /* binding */ getCacheSlug; }\n/* harmony export */ });\n/* harmony import */ var crypto_js_md5__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto-js/md5 */ \"./node_modules/crypto-js/md5.js\");\n/* harmony import */ var crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto_js_md5__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _functions_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/api */ \"./src/frontend/js/functions/api.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction cacheCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.cache = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cache) === 'true';\n if (alm.addons.cache) {\n alm.addons.cache_id = listing.dataset.cacheId;\n alm.addons.cache_path = listing.dataset.cachePath;\n alm.addons.cache_logged_in = listing.dataset.cacheLoggedIn ? listing.dataset.cacheLoggedIn : false;\n }\n return alm;\n}\n\n/**\n * Create unique cache slug from query params.\n *\n * @param {Object} alm The ALM object.\n * @param {Object} data The data object.\n * @return {string} The cache file slug.\n */\nfunction getCacheSlug(alm, data) {\n var addons = alm.addons,\n pagePrev = alm.pagePrev,\n page = alm.page,\n _alm$rel = alm.rel,\n rel = _alm$rel === void 0 ? 'next' : _alm$rel;\n if (addons.nextpage) {\n // Nextpage.\n return \"page-\".concat(page + addons.nextpage_startpage);\n } else if (addons.single_post) {\n // Single Post.\n return addons.single_post_id;\n } else if (addons.queryloop) {\n // Query Loop, use the button URL.\n return crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify((0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.getButtonURL)(alm, alm.rel))).toString();\n } else if (addons.woocommerce || addons.elementor) {\n // WooCommerce || Elementor.\n return rel === 'prev' ? \"page-\".concat(pagePrev) : \"page-\".concat(page + 1);\n }\n return crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify(data)).toString(); // Standard.\n}\n\n/**\n * Create a cache file.\n *\n * @param {Object} alm The ALM object.\n * @param {string} data Content to cache.\n * @param {string} name The cache slug\n * @since 5.3.1\n */\nfunction createCache(_x, _x2, _x3) {\n return _createCache.apply(this, arguments);\n}\n\n/**\n * Get cache data file.\n *\n * @param {Object} alm The ALM object.\n * @param {Object} params Query params.\n * @return {Promise} Cache data or false.\n */\nfunction _createCache() {\n _createCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(alm, data, name) {\n var _data$html, html, _data$meta, meta, params, res;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _data$html = data.html, html = _data$html === void 0 ? '' : _data$html, _data$meta = data.meta, meta = _data$meta === void 0 ? {} : _data$meta;\n if (!(!html || !alm.addons.cache)) {\n _context.next = 3;\n break;\n }\n return _context.abrupt(\"return\");\n case 3:\n params = {\n cache_id: alm.addons.cache_id,\n cache_logged_in: alm.addons.cache_logged_in,\n canonical_url: alm.canonical_url,\n name: name,\n html: html.trim(),\n postcount: meta.postcount,\n totalposts: meta.totalposts\n }; // Create the cache file via REST API.\n _context.next = 6;\n return _functions_api__WEBPACK_IMPORTED_MODULE_1__.api.post('ajax-load-more/cache/create', params);\n case 6:\n res = _context.sent;\n if (res.status === 200 && res.data && res.data.success) {\n console.log(res.data.msg); // eslint-disable-line no-console\n }\n case 8:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _createCache.apply(this, arguments);\n}\nfunction getCache(_x4, _x5) {\n return _getCache.apply(this, arguments);\n}\nfunction _getCache() {\n _getCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(alm, params) {\n var restParams, res;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n if (!(!alm.addons.cache || alm.addons.cache && alm.addons.cache_logged_in)) {\n _context2.next = 2;\n break;\n }\n return _context2.abrupt(\"return\", false);\n case 2:\n restParams = {\n id: alm.addons.cache_id,\n name: params.cache_slug\n };\n _context2.next = 5;\n return _functions_api__WEBPACK_IMPORTED_MODULE_1__.api.get('ajax-load-more/cache/get', {\n params: restParams\n });\n case 5:\n res = _context2.sent;\n if (!(res.status === 200 && res.data)) {\n _context2.next = 8;\n break;\n }\n return _context2.abrupt(\"return\", res.data);\n case 8:\n return _context2.abrupt(\"return\", false);\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _getCache.apply(this, arguments);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/cache.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/call-to-actions.js": -/*!***************************************************!*\ - !*** ./src/frontend/js/addons/call-to-actions.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ctaCreateParams: function() { return /* binding */ ctaCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction ctaCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.cta = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cta) === 'true';\n if (alm.addons.cta) {\n alm.addons.cta_position = listing.dataset.ctaPosition;\n alm.addons.cta_repeater = listing.dataset.ctaRepeater;\n alm.addons.cta_theme_repeater = listing.dataset.ctaThemeRepeater;\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/call-to-actions.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/comments.js": -/*!********************************************!*\ - !*** ./src/frontend/js/addons/comments.js ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ commentsCreateParams: function() { return /* binding */ commentsCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction commentsCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.comments = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.comments) === 'true';\n if (alm.addons.comments) {\n alm.addons.comments_post_id = listing.dataset.comments_post_id;\n alm.addons.comments_per_page = listing.dataset.comments_per_page;\n alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;\n alm.addons.comments_type = listing.dataset.comments_type;\n alm.addons.comments_style = listing.dataset.comments_style;\n alm.addons.comments_template = listing.dataset.comments_template;\n alm.addons.comments_callback = listing.dataset.comments_callback;\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/comments.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/elementor.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/elementor.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ elementor: function() { return /* binding */ elementor; },\n/* harmony export */ elementorCreateParams: function() { return /* binding */ elementorCreateParams; },\n/* harmony export */ elementorGetContent: function() { return /* binding */ elementorGetContent; },\n/* harmony export */ elementorGetPagedURL: function() { return /* binding */ elementorGetPagedURL; },\n/* harmony export */ elementorInit: function() { return /* binding */ elementorInit; },\n/* harmony export */ elementorLoaded: function() { return /* binding */ elementorLoaded; }\n/* harmony export */ });\n/* harmony import */ var _functions_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/constants */ \"./src/frontend/js/functions/constants.js\");\n/* harmony import */ var _functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/dispatchScrollEvent */ \"./src/frontend/js/functions/dispatchScrollEvent.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\n/* harmony import */ var _functions_setContentParams__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../functions/setContentParams */ \"./src/frontend/js/functions/setContentParams.js\");\n/* harmony import */ var _modules_lazyImages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modules/lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n/* harmony import */ var _modules_loadItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../modules/loadItems */ \"./src/frontend/js/modules/loadItems.js\");\n/* harmony import */ var _modules_loadPrevious__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../modules/loadPrevious */ \"./src/frontend/js/modules/loadPrevious.js\");\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction elementorCreateParams(alm) {\n var _alm = alm,\n listing = _alm.listing;\n alm.addons.elementor = listing.dataset.elementor === 'posts' && listing.dataset.elementorSettings;\n if (alm.addons.elementor) {\n alm.addons.elementor_type = 'posts';\n alm.addons.elementor_settings = JSON.parse(alm.listing.dataset.elementorSettings);\n\n // Parse Container Settings\n alm.addons.elementor_target = alm.addons.elementor_settings.target;\n alm.addons.elementor_element = alm.addons.elementor_settings.target ? document.querySelector(\".elementor-element \".concat(alm.addons.elementor_settings.target)) : '';\n alm.addons.elementor_widget = elementorGetWidgetType(alm.addons.elementor_element);\n\n // Masonry\n alm = setElementorClasses(alm, alm.addons.elementor_widget);\n\n // Pagination Element\n alm.addons.elementor_controls = alm.addons.elementor_settings.controls;\n alm.addons.elementor_controls = alm.addons.elementor_controls === 'true' ? true : false;\n alm.addons.elementor_scrolltop = parseInt(alm.addons.elementor_settings.scrolltop);\n alm.addons.elementor_prev_label = alm.addons.elementor_settings.prev_label || '';\n\n // Get next page URL.\n alm.addons.elementor_next_page = elementorGetPagedURL(alm, alm.addons.elementor_element);\n alm.addons.elementor_prev_page = elementorGetPagedURL(alm, alm.addons.elementor_element, 'prev');\n\n // Get the max pages.\n alm.addons.elementor_max_pages = alm.addons.elementor_element.querySelector('.e-load-more-anchor');\n alm.addons.elementor_max_pages = alm.addons.elementor_max_pages ? parseInt(alm.addons.elementor_max_pages.dataset.maxPage) : 999;\n alm.addons.elementor_paged = alm.addons.elementor_settings.paged ? parseInt(alm.addons.elementor_settings.paged) : 1;\n alm.page = parseInt(alm.page) + alm.addons.elementor_paged;\n\n // Masonry\n alm = parseMasonryConfig(alm);\n if (!alm.addons.elementor_element) {\n console.warn(\"Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?\");\n }\n if (!alm.addons.elementor_next_page) {\n console.warn('Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?');\n }\n }\n return alm;\n}\n\n/**\n * Set up the instance on Elementor\n *\n * @param {Object} alm\n */\nfunction elementorInit(alm) {\n var addons = alm.addons;\n if (!addons.elementor || !addons.elementor_type || !addons.elementor_type === 'posts') {\n return false;\n }\n var container = addons.elementor_element;\n if (!container) {\n return false;\n }\n alm.button.dataset.page = addons.elementor_paged; // Set button data attributes\n\n // Set button URL\n var nextPage = addons.elementor_next_page;\n alm.button.dataset.url = nextPage ? nextPage : '';\n\n // Set attributes on containers.\n (0,_functions_setContentParams__WEBPACK_IMPORTED_MODULE_3__.setContentContainersParams)(container, alm.listing);\n\n // Set data attributes on first item.\n var item = container.querySelector(\".\".concat(addons.elementor_item_class)); // Get first item\n if (item) {\n item.classList.add('alm-elementor');\n item.dataset.url = window.location;\n item.dataset.page = addons.elementor_paged;\n item.dataset.pageTitle = document.title;\n }\n\n // Paged URL: Create previous button.\n if (addons.elementor_paged > 1 && addons.elementor_prev_page && addons.elementor_prev_label) {\n (0,_modules_loadPrevious__WEBPACK_IMPORTED_MODULE_6__.createLoadPreviousButton)(alm, container, addons.elementor_paged, addons.elementor_prev_page, addons.elementor_prev_label);\n }\n\n // Masonry Window Resize. Delay for masonry to be added via Elementor.\n if (addons.elementor_masonry) {\n var resizeTimeout;\n setTimeout(function () {\n window.addEventListener('resize', function () {\n clearTimeout(resizeTimeout);\n resizeTimeout = setTimeout(function () {\n positionMasonryItems(alm, \".\".concat(addons.elementor_container_class), \".\".concat(addons.elementor_item_class));\n }, 100);\n });\n }, 250);\n }\n}\n\n/**\n * Get the content, title and results text from the Ajax response.\n *\n * @param {Object} alm The alm object.\n * @param {string} url The request URL.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n */\nfunction elementorGetContent(alm, url, response, cache_slug) {\n var data = _functions_constants__WEBPACK_IMPORTED_MODULE_0__.API_DATA_SHAPE; // Default data object.\n\n // Successful response.\n if (response.status === 200 && response.data) {\n var addons = alm.addons,\n page = alm.page,\n button = alm.button,\n buttonPrev = alm.buttonPrev,\n rel = alm.rel;\n var elementor_target = addons.elementor_target,\n elementor_container_class = addons.elementor_container_class,\n elementor_item_class = addons.elementor_item_class;\n\n // Create temp div to hold response data.\n var content = document.createElement('div');\n content.innerHTML = response.data;\n\n // Set button state & URL.\n if (rel === 'prev' && buttonPrev) {\n var prevURL = elementorGetPagedURL(alm, content, 'prev');\n if (prevURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(buttonPrev, page - 1, prevURL);\n } else {\n alm.AjaxLoadMore.triggerDonePrev();\n }\n } else {\n var nextURL = elementorGetPagedURL(alm, content);\n if (nextURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(button, page + 1, nextURL);\n } else {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n\n // Get Page Title\n var title = content.querySelector('title').innerHTML;\n data.pageTitle = title;\n\n // Get Elementor container.\n var container = content.querySelector(\"\".concat(elementor_target, \" .\").concat(elementor_container_class));\n if (!container) {\n console.warn(\"Ajax Load More Elementor: Unable to find Elementor container element.\");\n return data;\n }\n\n // Get the first item and append data attributes.\n var item = container ? container.querySelector(\".\".concat(elementor_item_class)) : null;\n if (item) {\n item.classList.add('alm-elementor');\n item.dataset.url = url;\n item.dataset.page = rel === 'next' ? page + 1 : page - 1;\n item.dataset.pageTitle = title;\n }\n\n // Count the number of returned items.\n var items = container.querySelectorAll(\".\".concat(elementor_item_class));\n if (items) {\n // Set the html to the elementor container data.\n data.html = container ? container.innerHTML : '';\n data.meta.postcount = items.length;\n data.meta.totalposts = items.length;\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_7__.createCache)(alm, data, cache_slug);\n }\n }\n return data;\n}\n\n/**\n * Core ALM Elementor loader.\n *\n * @param {HTMLElement} content The HTML data.\n * @param {Object} alm The alm object.\n */\nfunction elementor(content, alm) {\n if (!content || !alm) {\n alm.AjaxLoadMore.triggerDone();\n return false;\n }\n return new Promise(function (resolve) {\n var addons = alm.addons;\n var container = alm.addons.elementor_element.querySelector(\".\".concat(addons.elementor_container_class)); // Get post container\n var items = content.querySelectorAll(\".\".concat(addons.elementor_item_class)); // Get all items in container\n\n if (container && items) {\n var ElementorItems = Array.prototype.slice.call(items); // Convert NodeList to Array\n\n // Trigger almElementorLoaded callback.\n if (typeof almElementorLoaded === 'function') {\n window.almElementorLoaded(ElementorItems);\n }\n\n // Load the items.\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_modules_loadItems__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(container, ElementorItems, alm);\n case 2:\n if (addons.elementor_masonry) {\n setTimeout(function () {\n positionMasonryItems(alm, \".\".concat(addons.elementor_container_class), \".\".concat(addons.elementor_item_class));\n }, 125);\n }\n resolve(true);\n case 4:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function (e) {\n console.warn(e, 'There was an error with Elementor'); // eslint-disable-line no-console\n });\n } else {\n resolve(false);\n }\n });\n}\n\n/**\n * Elementor loaded and dispatch actions.\n *\n * @param {Object} alm The alm object.\n */\nfunction elementorLoaded(alm) {\n var page = alm.page,\n AjaxLoadMore = alm.AjaxLoadMore,\n addons = alm.addons;\n var nextPage = page + 1;\n var elementor_max_pages = addons.elementor_max_pages;\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_4__.lazyImages)(alm); // Lazy load images if necessary.\n\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm); // Trigger almComplete.\n }\n\n AjaxLoadMore.transitionEnd(); // End transitions.\n\n if (nextPage >= elementor_max_pages) {\n AjaxLoadMore.triggerDone(); // ALM Done.\n }\n\n (0,_functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n}\n\n/**\n * Set the required classnames for parsing data and injecting content into the Elementor listing\n *\n * @param {Object} alm The alm object.\n * @param {string} type The Elementor type.\n * @return {Object} The modified object.\n */\nfunction setElementorClasses(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'posts';\n // Get the items based on the Elementor type.\n alm.addons.elementor_container_class = alm.addons.elementor_settings.container_class; // Container class\n\n switch (type) {\n case 'woocommerce':\n alm.addons.elementor_item_class = alm.addons.elementor_settings.woo_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.woo_pagination_class); // Pagination class.\n break;\n case 'loop-grid':\n alm.addons.elementor_item_class = alm.addons.elementor_settings.loop_grid_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.loop_grid_pagination_class); // Pagination class.\n break;\n default:\n alm.addons.elementor_item_class = alm.addons.elementor_settings.posts_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.posts_pagination_class); // Pagination class.\n break;\n }\n return alm;\n}\n\n/**\n * Parse Masonry Settings from Elementor Data atts\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction parseMasonryConfig(alm) {\n var _target$dataset;\n var addons = alm.addons;\n if (!addons.elementor_element) {\n return alm; // Exit if not found.\n }\n\n var target = addons.elementor_element;\n var settings = target !== null && target !== void 0 && (_target$dataset = target.dataset) !== null && _target$dataset !== void 0 && _target$dataset.settings ? JSON.parse(target.dataset.settings) : '';\n if (!settings) {\n return alm; // Exit if not found.\n }\n\n addons.elementor_masonry = settings.hasOwnProperty('cards_masonry') || settings.hasOwnProperty('classic_masonry') || settings.hasOwnProperty('masonry');\n if (addons.elementor_masonry) {\n var _settings$cards_row_g, _settings$row_gap;\n addons.elementor_masonry_columns = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns);\n addons.elementor_masonry_columns_mobile = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_mobile);\n addons.elementor_masonry_columns_tablet = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_tablet);\n addons.elementor_masonry_gap = parseInt(settings === null || settings === void 0 || (_settings$cards_row_g = settings.cards_row_gap) === null || _settings$cards_row_g === void 0 ? void 0 : _settings$cards_row_g.size) || parseInt(settings === null || settings === void 0 || (_settings$row_gap = settings.row_gap) === null || _settings$row_gap === void 0 ? void 0 : _settings$row_gap.size);\n }\n return alm;\n}\n\n/**\n * Position Elementor Masonry Items\n *\n * @param {Object} alm The alm object.\n * @param {string} container_class The container classname.\n * @param {string} item_class The item classname.\n */\nfunction positionMasonryItems(alm, container_class, item_class) {\n var heights = [];\n\n // Get Elementor Settings\n var columnsCount = alm.addons.elementor_masonry_columns;\n var columnsCountTablet = alm.addons.elementor_masonry_columns_tablet;\n var columnsCountMobile = alm.addons.elementor_masonry_columns_mobile;\n var verticalSpaceBetween = alm.addons.elementor_masonry_gap;\n var columns = columnsCount;\n\n // Get Elementor Breakpoints\n var breakpoints = window.elementorFrontendConfig && window.elementorFrontendConfig.breakpoints ? window.elementorFrontendConfig.breakpoints : 0;\n var windowW = window.innerWidth;\n\n // Set Columns\n if (windowW > breakpoints.lg) {\n columns = columnsCount;\n } else if (windowW > breakpoints.md) {\n columns = columnsCountTablet;\n } else {\n columns = columnsCountMobile;\n }\n\n // Get Containers\n var container = document.querySelector(container_class);\n if (!container) {\n return false;\n }\n var items = container.querySelectorAll(item_class);\n if (!items) {\n return false;\n }\n\n // Loop items\n items.forEach(function (item, index) {\n var row = Math.floor(index / columns);\n var itemHeight = item.getBoundingClientRect().height + verticalSpaceBetween;\n if (row) {\n var itemPosition = jQuery(item).position();\n var indexAtRow = index % columns;\n var pullHeight = Math.round(itemPosition.top) - heights[indexAtRow];\n pullHeight *= -1;\n item.style.marginTop = \"\".concat(Math.round(pullHeight), \"px\");\n heights[indexAtRow] += itemHeight;\n } else {\n heights.push(itemHeight);\n }\n });\n}\n\n/**\n * Determine the type of elementor widget (woocommerce || posts)\n *\n * @param {HTMLElement} target The target element.\n * @return {string} The Elementor type.\n */\nfunction elementorGetWidgetType(target) {\n if (!target) {\n return false;\n }\n\n // Get Elementor type based on container class.\n if (target.classList.contains('elementor-wc-products')) {\n return 'woocommerce';\n } else if (target.classList.contains('elementor-widget-loop-grid')) {\n return 'loop-grid';\n }\n return 'posts';\n}\n\n/**\n * Get the pagination container for the Elementor pagination.\n *\n * @param {Object} alm The alm object.\n * @param {Element} content The HTML content to search.\n * @param {string} dir the direction, next of prev.\n * @return {HTMLElement} The pagination element.\n */\nfunction elementorGetPagedURL(alm, content) {\n var _addons$elementor_set, _element$querySelecto;\n var dir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'next';\n var _alm$addons = alm.addons,\n addons = _alm$addons === void 0 ? {} : _alm$addons;\n\n // Locate the pagination container.\n var element = (content === null || content === void 0 ? void 0 : content.querySelector(addons === null || addons === void 0 ? void 0 : addons.elementor_pagination_class)) || (content === null || content === void 0 ? void 0 : content.querySelector(\".\".concat(addons === null || addons === void 0 || (_addons$elementor_set = addons.elementor_settings) === null || _addons$elementor_set === void 0 ? void 0 : _addons$elementor_set.pagination_class)));\n\n // Get URL from the pagination element.\n var page = element === null || element === void 0 || (_element$querySelecto = element.querySelector(\"a.\".concat(dir))) === null || _element$querySelecto === void 0 ? void 0 : _element$querySelecto.href;\n\n // Return the paged URL element.\n return page ? page : false;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/elementor.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/filters.js": -/*!*******************************************!*\ - !*** ./src/frontend/js/addons/filters.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addFiltersAttributes: function() { return /* binding */ addFiltersAttributes; },\n/* harmony export */ buildFilterURL: function() { return /* binding */ buildFilterURL; },\n/* harmony export */ filtersCreateParams: function() { return /* binding */ filtersCreateParams; },\n/* harmony export */ parseQuerystring: function() { return /* binding */ parseQuerystring; }\n/* harmony export */ });\n/* harmony import */ var _functions_getParameterByName__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/getParameterByName */ \"./src/frontend/js/functions/getParameterByName.js\");\n/* harmony import */ var _functions_getQueryVariable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/getQueryVariable */ \"./src/frontend/js/functions/getQueryVariable.js\");\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction filtersCreateParams(alm) {\n var _alm$listing;\n var listing = alm.listing;\n alm.addons.filters = (alm === null || alm === void 0 || (_alm$listing = alm.listing) === null || _alm$listing === void 0 || (_alm$listing = _alm$listing.dataset) === null || _alm$listing === void 0 ? void 0 : _alm$listing.filters) === 'true';\n if (alm.addons.filters) {\n alm.addons.filters_url = listing.dataset.filtersUrl === 'true';\n alm.addons.filters_target = listing.dataset.filtersTarget ? listing.dataset.filtersTarget : false;\n alm.addons.filters_paging = listing.dataset.filtersPaging === 'true';\n alm.addons.filters_scroll = listing.dataset.filtersScroll === 'true';\n alm.addons.filters_scrolltop = listing.dataset.filtersScrolltop ? listing.dataset.filtersScrolltop : '30';\n alm.addons.filters_debug = listing.dataset.filtersDebug;\n alm.facets = listing.dataset.facets === 'true';\n\n // Display warning when `filters_target` parameter is missing.\n if (!alm.addons.filters_target) {\n console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters=\"true\" target=\"filters\"]');\n }\n\n // Parse querystring value for pg.\n var page = (0,_functions_getParameterByName__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('pg');\n alm.addons.filters_startpage = page !== null ? parseInt(page) : 0;\n\n // Handle a paged URL with filters.\n if (alm.addons.filters_startpage > 0) {\n if (alm.addons.paging) {\n // Paging add-on: Set current page value.\n alm.page = alm.addons.filters_startpage - 1;\n } else {\n // Set posts_per_page value to load all required posts.\n alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;\n alm.paged = true;\n }\n }\n }\n return alm;\n}\n\n/**\n * Create data attributes for a Filters item.\n *\n * @param {Object} alm The ALM object.\n * @param {HTMLElement} element The element HTML node.\n * @param {number} pagenum The current page number.\n * @return {HTMLElement} Modified HTML element.\n */\nfunction addFiltersAttributes(alm, element, pagenum) {\n var canonical_url = alm.canonical_url;\n var querystring = window.location.search;\n element.classList.add('alm-filters');\n element.dataset.page = pagenum;\n if (pagenum > 1) {\n element.dataset.url = canonical_url + buildFilterURL(alm, querystring, pagenum);\n } else {\n element.dataset.url = canonical_url + buildFilterURL(alm, querystring, 0);\n }\n return element;\n}\n\n/**\n * Parse a filter querystring for returning caches directories.\n *\n * @param {string} path The URL path.\n * @since 5.3.1\n */\nfunction parseQuerystring(path) {\n // Get querystring\n var query = window.location.search.substring(1);\n var obj = '';\n var cache_dir = '';\n\n // Parse querystring into object\n if (query) {\n obj = JSON.parse('{\"' + query.replace(/&/g, '\",\"').replace(/=/g, '\":\"') + '\"}', function (key, value) {\n // Replace + with - in URL\n return key === '' ? value : decodeURIComponent(value.replace(/\\+/g, '-'));\n });\n\n // Remove the following properties from the object as they should not be included in the cache ID\n\n if (obj.pg) {\n // `pg` object prop\n delete obj.pg;\n }\n if (obj.auto) {\n // `auto` object prop\n delete obj.auto;\n }\n }\n if (obj) {\n cache_dir += '/';\n Object.keys(obj).forEach(function (key, index) {\n cache_dir += index > 0 ? '--' : '';\n cache_dir += \"\".concat(key, \"--\").concat(obj[key]);\n });\n }\n return path + cache_dir;\n}\n\n/**\n * Build new paging URL for filters.\n *\n * @param {Object} alm The ALM object.\n * @param {string} querystring The current querystring.\n * @param {number} page The page number.\n * @return {string} The querystring.\n * @since 5.3.5\n */\nfunction buildFilterURL(alm) {\n var querystring = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var qs = querystring;\n if (alm.addons.filters_paging) {\n if (page > 1) {\n // Paged\n if (qs) {\n // If already has `pg` in querystring\n if ((0,_functions_getQueryVariable__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('pg')) {\n qs = querystring.replace(/(pg=)[^\\&]+/, '$1' + page);\n } else {\n qs = querystring + '&pg=' + page;\n }\n } else {\n qs = '?pg=' + page;\n }\n } else {\n // Not Paged\n qs = querystring.replace(/(pg=)[^\\&]+/, '');\n qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring\n qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols\n }\n }\n\n return qs;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/filters.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/next-page.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/next-page.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ nextpageCreateParams: function() { return /* binding */ nextpageCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction nextpageCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.nextpage = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.nextpage) === 'true';\n if (alm.addons.nextpage) {\n alm.addons.nextpage_urls = listing.dataset.nextpageUrls === undefined ? 'true' : listing.dataset.nextpageUrls;\n alm.addons.nextpage_scroll = listing.dataset.nextpageScroll === undefined ? 'false:30' : listing.dataset.nextpageScroll;\n alm.addons.nextpage_post_id = listing.dataset.nextpagePostId ? listing.dataset.nextpagePostId : false;\n alm.addons.nextpage_startpage = listing.dataset.nextpageStartpage ? parseInt(listing.dataset.nextpageStartpage) : 1;\n alm.addons.nextpage_title_template = listing.dataset.nextpageTitleTemplate;\n alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle;\n\n // Set default fallbacks.\n alm.posts_per_page = 1;\n alm.orginal_posts_per_page = 1;\n if (!alm.addons.nextpage_post_id) {\n alm.addons.nextpage = false;\n }\n if (alm.addons.nextpage_startpage > 1) {\n alm.paged = true;\n }\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/next-page.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/paging.js": -/*!******************************************!*\ - !*** ./src/frontend/js/addons/paging.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ pagingComplete: function() { return /* binding */ pagingComplete; },\n/* harmony export */ pagingCreateParams: function() { return /* binding */ pagingCreateParams; }\n/* harmony export */ });\n/* harmony import */ var _modules_insertScript__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/insertScript */ \"./src/frontend/js/modules/insertScript.js\");\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction pagingCreateParams(alm) {\n var listing = alm.listing;\n alm.addons.paging = listing.dataset.paging === 'true';\n if (alm.addons.paging) {\n alm.addons.paging_init = true;\n alm.addons.paging_controls = listing.dataset.pagingControls === 'true';\n alm.addons.paging_show_at_most = listing.dataset.pagingShowAtMost ? parseInt(listing.dataset.pagingShowAtMost) : 6;\n alm.addons.paging_classes = listing.dataset.pagingClasses;\n alm.addons.paging_first_label = listing.dataset.pagingFirstLabel;\n alm.addons.paging_previous_label = listing.dataset.pagingPreviousLabel;\n alm.addons.paging_next_label = listing.dataset.pagingNextLabel;\n alm.addons.paging_last_label = listing.dataset.pagingLastLabel;\n alm.addons.paging_scroll = listing.dataset.pagingScroll ? listing.dataset.pagingScroll : false;\n alm.addons.paging_scrolltop = listing.dataset.pagingScrolltop ? parseInt(listing.dataset.pagingScrolltop) : 100;\n alm.addons.paging_container = listing.querySelector('.alm-paging-content');\n alm.pause = alm.addons.preloaded ? true : alm.pause; // If preloaded, pause ALM.\n }\n\n return alm;\n}\n\n/**\n * Function dispatched after paging content has been loaded.\n *\n * @param {Object} alm The alm object.\n * @param {boolean} alm_is_filtering Is ALM filtering.\n * @param {boolean} init Is first run.\n */\nfunction pagingComplete(alm) {\n var alm_is_filtering = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var main = alm.main,\n AjaxLoadMore = alm.AjaxLoadMore,\n last_loaded = alm.last_loaded;\n main.classList.remove('alm-loading');\n AjaxLoadMore.triggerAddons(alm);\n if (init) {\n if (typeof almPagingComplete === 'function') {\n window.almPagingComplete();\n }\n } else {\n // Dispatch almOnPagingComplete callback when not alm.init.\n if (typeof almOnPagingComplete === 'function') {\n window.almOnPagingComplete(alm); // Callback: Paging Add-on Complete.\n }\n }\n\n if (alm_is_filtering && alm.addons.filters && typeof almFiltersAddonComplete === 'function') {\n window.almFiltersAddonComplete(main); // Callback: Filters Add-on Complete\n }\n\n if (typeof almComplete === 'function') {\n window.almComplete(alm); // Callback: ALM Complete\n }\n\n // Trigger tags in templates.\n _modules_insertScript__WEBPACK_IMPORTED_MODULE_0__[\"default\"].init(last_loaded);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/paging.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/preloaded.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/preloaded.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ preloadedCreateParams: function() { return /* binding */ preloadedCreateParams; },\n/* harmony export */ setPreloadedParams: function() { return /* binding */ setPreloadedParams; }\n/* harmony export */ });\n/* harmony import */ var _functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/stripEmptyNodes */ \"./src/frontend/js/functions/stripEmptyNodes.js\");\n/* harmony import */ var _filters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filters */ \"./src/frontend/js/addons/filters.js\");\n/* harmony import */ var _seo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./seo */ \"./src/frontend/js/addons/seo.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction preloadedCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing,\n addons = alm.addons;\n alm.addons.preloaded = listing.dataset.preloaded === 'true';\n alm.addons.preloaded_amount = listing !== null && listing !== void 0 && (_listing$dataset = listing.dataset) !== null && _listing$dataset !== void 0 && _listing$dataset.preloadedAmount ? parseInt(listing.dataset.preloadedAmount) : alm.posts_per_page;\n if (!alm.addons.preloaded) {\n alm.addons.preloaded_amount = 0;\n }\n if (addons.preloaded) {\n if (alm !== null && alm !== void 0 && alm.localize) {\n // Disable ALM if total_posts is equal to or less than preloaded_amount.\n var _alm$localize$total_p = alm.localize.total_posts,\n total_posts = _alm$localize$total_p === void 0 ? 0 : _alm$localize$total_p;\n if (parseInt(total_posts) <= addons.preloaded_amount) {\n alm.addons.preloaded_total_posts = parseInt(total_posts);\n alm.disable_ajax = true;\n }\n }\n }\n return alm;\n}\n\n/**\n * Set parameters on HTML elements for preloaded results.\n *\n * @param {Object} alm The ALM object.\n * @since 7.0.0\n */\nfunction setPreloadedParams(alm) {\n var addons = alm.addons,\n listing = alm.listing;\n if (addons.paging) {\n return; // Exit if paging.\n }\n\n // Parse preloaded data into array of HTML elements.\n var data = (0,_functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_toConsumableArray(listing === null || listing === void 0 ? void 0 : listing.childNodes));\n\n // Get first element in the data array.\n var firstElement = data !== null && data !== void 0 && data.length && data[0] ? data[0] : false;\n if (firstElement) {\n if (addons !== null && addons !== void 0 && addons.seo) {\n (0,_seo__WEBPACK_IMPORTED_MODULE_2__.addSEOAttributes)(alm, firstElement, 1);\n }\n if (addons !== null && addons !== void 0 && addons.filters) {\n (0,_filters__WEBPACK_IMPORTED_MODULE_1__.addFiltersAttributes)(alm, firstElement, 1);\n }\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/preloaded.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/queryLoop.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/queryLoop.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ queryLoopCreateParams: function() { return /* binding */ queryLoopCreateParams; },\n/* harmony export */ queryLoopGetContent: function() { return /* binding */ queryLoopGetContent; },\n/* harmony export */ queryLoopInit: function() { return /* binding */ queryLoopInit; },\n/* harmony export */ queryloop: function() { return /* binding */ queryloop; },\n/* harmony export */ queryloopLoaded: function() { return /* binding */ queryloopLoaded; }\n/* harmony export */ });\n/* harmony import */ var _functions_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/constants */ \"./src/frontend/js/functions/constants.js\");\n/* harmony import */ var _functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/dispatchScrollEvent */ \"./src/frontend/js/functions/dispatchScrollEvent.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\n/* harmony import */ var _modules_lazyImages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../modules/lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n/* harmony import */ var _modules_loadItems__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modules/loadItems */ \"./src/frontend/js/modules/loadItems.js\");\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object|null} The modified object.\n */\nfunction queryLoopCreateParams(alm) {\n var main = alm.main;\n var blockClassname = 'wp-block-query';\n\n // Get the parent container.\n var container = main.closest(\".\".concat(blockClassname));\n\n // If parent is not a .wp-block-query, return alm.\n if (!container) {\n return alm;\n }\n\n // If parent is a wp-block-query, set queryloop settings.\n alm.addons.queryloop = true;\n alm.addons.queryloop_settings = {\n container: container,\n classes: {\n container: \".\".concat(container.className.replace(/ /g, '.')),\n listing: '.wp-block-post-template',\n element: '.wp-block-post',\n pagination: '.wp-block-query-pagination',\n pagination_prev: 'a.wp-block-query-pagination-previous',\n pagination_next: 'a.wp-block-query-pagination-next'\n },\n pagination: container.querySelector('.wp-block-query-pagination'),\n pagination_prev: container.querySelector('a.wp-block-query-pagination-previous'),\n pagination_next: container.querySelector('a.wp-block-query-pagination-next')\n };\n return alm;\n}\n\n/**\n * Set up the instance of Query Loop.\n *\n * @param {Object} alm\n */\nfunction queryLoopInit(alm) {\n var rel = alm.rel,\n addons = alm.addons,\n button = alm.button,\n buttonPrev = alm.buttonPrev,\n page = alm.page;\n var _addons$queryloop_set = addons.queryloop_settings,\n settings = _addons$queryloop_set === void 0 ? {} : _addons$queryloop_set;\n\n // Set button state & URL.\n if (rel === 'prev' && buttonPrev) {\n var _settings$pagination_;\n var prevURL = (settings === null || settings === void 0 || (_settings$pagination_ = settings.pagination_prev) === null || _settings$pagination_ === void 0 ? void 0 : _settings$pagination_.href) || false;\n if (prevURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(buttonPrev, page - 1, prevURL);\n } else {\n alm.AjaxLoadMore.triggerDonePrev();\n }\n } else {\n var _settings$pagination_2;\n var nextURL = (settings === null || settings === void 0 || (_settings$pagination_2 = settings.pagination_next) === null || _settings$pagination_2 === void 0 ? void 0 : _settings$pagination_2.href) || false;\n if (nextURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(button, page + 1, nextURL);\n } else {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n}\n\n/**\n * Get the content, title and results text from the Ajax response.\n *\n * @param {Object} alm The alm object.\n * @param {string} url The request URL.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n */\nfunction queryLoopGetContent(alm, url, response, cache_slug) {\n var data = _functions_constants__WEBPACK_IMPORTED_MODULE_0__.API_DATA_SHAPE; // Default data object.\n\n // Successful response.\n if (response.status === 200 && response.data) {\n var _queryloop_settings$c, _queryloop_settings$c2, _queryloop_settings$c3, _queryloop_settings$c4;\n var addons = alm.addons,\n page = alm.page,\n button = alm.button,\n buttonPrev = alm.buttonPrev,\n rel = alm.rel;\n var _addons$queryloop_set2 = addons.queryloop_settings,\n queryloop_settings = _addons$queryloop_set2 === void 0 ? {} : _addons$queryloop_set2;\n\n // Create temp div to hold response data.\n var content = document.createElement('div');\n content.innerHTML = response.data;\n\n // Set button state & URL.\n if (rel === 'prev' && buttonPrev) {\n var prevURL = getPagedURL(queryloop_settings, content, 'prev');\n if (prevURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(buttonPrev, page - 1, prevURL);\n } else {\n alm.AjaxLoadMore.triggerDonePrev();\n }\n } else {\n var nextURL = getPagedURL(queryloop_settings, content);\n if (nextURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(button, page + 1, nextURL);\n } else {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n\n // Get Page Title\n var title = content.querySelector('title').innerHTML;\n data.pageTitle = title;\n\n // Get container.\n var container = content === null || content === void 0 ? void 0 : content.querySelector(\"\".concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c = queryloop_settings.classes) === null || _queryloop_settings$c === void 0 ? void 0 : _queryloop_settings$c.container, \" \").concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c2 = queryloop_settings.classes) === null || _queryloop_settings$c2 === void 0 ? void 0 : _queryloop_settings$c2.listing));\n if (!container) {\n console.warn('Ajax Load More: Unable to locate Query Loop container.');\n return data;\n }\n\n // Get the first item and append data attributes.\n var item = container ? container.querySelector(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c3 = queryloop_settings.classes) === null || _queryloop_settings$c3 === void 0 ? void 0 : _queryloop_settings$c3.element) : null;\n if (item) {\n item.classList.add('alm-queryloop');\n item.dataset.url = url;\n item.dataset.page = rel === 'next' ? page + 1 : page - 1;\n item.dataset.pageTitle = title;\n }\n\n // Count the number of returned items.\n var items = container.querySelectorAll(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c4 = queryloop_settings.classes) === null || _queryloop_settings$c4 === void 0 ? void 0 : _queryloop_settings$c4.element);\n if (items) {\n // Set the html to the elementor container data.\n data.html = container ? container.innerHTML : '';\n data.meta.postcount = items.length;\n data.meta.totalposts = items.length;\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_5__.createCache)(alm, data, cache_slug);\n }\n }\n return data;\n}\n\n/**\n * Core ALM Query Loop loader.\n *\n * @param {HTMLElement} content The HTML data.\n * @param {Object} alm The alm object.\n */\nfunction queryloop(content, alm) {\n if (!content || !alm) {\n alm.AjaxLoadMore.triggerDone();\n return false;\n }\n return new Promise(function (resolve) {\n var _queryloop_settings$c5, _queryloop_settings$c6;\n var addons = alm.addons;\n var _addons$queryloop_set3 = addons.queryloop_settings,\n queryloop_settings = _addons$queryloop_set3 === void 0 ? {} : _addons$queryloop_set3;\n\n // Get post listing container.\n var container = queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c5 = queryloop_settings.container) === null || _queryloop_settings$c5 === void 0 ? void 0 : _queryloop_settings$c5.querySelector(\"\".concat(queryloop_settings.classes.listing));\n\n // Get all individual items in Ajax response.\n var items = content.querySelectorAll(\"\".concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c6 = queryloop_settings.classes) === null || _queryloop_settings$c6 === void 0 ? void 0 : _queryloop_settings$c6.element));\n if (container && items) {\n var queryloopItems = Array.prototype.slice.call(items); // Convert NodeList to Array\n\n // Trigger almQueryLoopLoaded callback.\n if (typeof almQueryLoopLoaded === 'function') {\n window.almQueryLoopLoaded(queryloopItems);\n }\n\n // Load the items.\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_modules_loadItems__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(container, queryloopItems, alm);\n case 2:\n resolve(true);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function (e) {\n console.warn(e, 'There was an error with Query Loop'); // eslint-disable-line no-console\n });\n } else {\n resolve(false);\n }\n });\n}\n\n/**\n * Query Loop loaded and dispatch actions.\n *\n * @param {Object} alm The alm object.\n */\nfunction queryloopLoaded(alm) {\n var page = alm.page,\n AjaxLoadMore = alm.AjaxLoadMore,\n addons = alm.addons;\n var nextPage = page + 1;\n var max_pages = addons.elementor_max_pages;\n\n // Lazy load images if necessary.\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_3__.lazyImages)(alm);\n\n // Trigger almComplete.\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm);\n }\n\n // End transitions.\n AjaxLoadMore.transitionEnd();\n\n // ALM Done.\n if (nextPage >= max_pages) {\n AjaxLoadMore.triggerDone();\n }\n (0,_functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n}\n\n/**\n * Get the pagination container for the Elementor pagination.\n *\n * @param {Object} settings The query loop settings object.\n * @param {Element} content The HTML content to search.\n * @param {string} dir the direction, next of prev.\n * @return {HTMLElement} The pagination element.\n */\nfunction getPagedURL(settings, content) {\n var _settings$classes, _settings$classes2, _pagination$querySele;\n var dir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'next';\n // Locate the pagination container.\n var pagination = content === null || content === void 0 ? void 0 : content.querySelector(\"\".concat(settings.classes.container, \" \").concat(settings.classes.pagination));\n\n // Get the pagination target class.\n var target = dir === 'next' ? (_settings$classes = settings.classes) === null || _settings$classes === void 0 ? void 0 : _settings$classes.pagination_next : (_settings$classes2 = settings.classes) === null || _settings$classes2 === void 0 ? void 0 : _settings$classes2.pagination_prev;\n\n // Get the next URL from the pagination element.\n var page = pagination === null || pagination === void 0 || (_pagination$querySele = pagination.querySelector(target)) === null || _pagination$querySele === void 0 ? void 0 : _pagination$querySele.href;\n\n // Return the next page URL.\n return page ? page : false;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/queryLoop.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/seo.js": -/*!***************************************!*\ - !*** ./src/frontend/js/addons/seo.js ***! - \***************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addSEOAttributes: function() { return /* binding */ addSEOAttributes; },\n/* harmony export */ createSEOOffset: function() { return /* binding */ createSEOOffset; },\n/* harmony export */ getSEOPageNum: function() { return /* binding */ getSEOPageNum; },\n/* harmony export */ seoCreateParams: function() { return /* binding */ seoCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction seoCreateParams(alm) {\n var _alm$listing;\n var listing = alm.listing;\n alm.addons.seo = listing.dataset.seo === 'true';\n if (alm.addons.seo) {\n alm.addons.seo_offset = listing.dataset.seoOffset || false;\n alm.addons.seo_permalink = listing.dataset.seoPermalink;\n alm.addons.seo_trailing_slash = listing.dataset.seoTrailingSlash === 'false' ? '' : '/';\n alm.addons.seo_leading_slash = listing.dataset.seoLeadingSlash === 'true' ? '/' : '';\n if (alm.addons.seo_offset === 'true') {\n alm.offset = alm.posts_per_page;\n }\n }\n alm.start_page = (alm === null || alm === void 0 || (_alm$listing = alm.listing) === null || _alm$listing === void 0 || (_alm$listing = _alm$listing.dataset) === null || _alm$listing === void 0 ? void 0 : _alm$listing.seoStartPage) || '';\n if (alm.start_page) {\n alm.start_page = parseInt(alm.start_page);\n alm.addons.seo_scroll = listing.dataset.seoScroll;\n alm.addons.seo_scrolltop = listing.dataset.seoScrolltop;\n alm.addons.seo_controls = listing.dataset.seoControls;\n alm.paged = false;\n if (alm.start_page > 1) {\n alm.paged = true;\n if (alm.addons.paging) {\n // Paging add-on: Set current page value.\n alm.page = alm.start_page - 1;\n } else {\n // Set posts_per_page value to load all required posts.\n alm.posts_per_page = alm.start_page * alm.posts_per_page;\n }\n }\n } else {\n alm.start_page = 1;\n }\n return alm;\n}\n\n/**\n * Create data attributes for an SEO item.\n *\n * @param {Object} alm The ALM object.\n * @param {HTMLElement} element The element HTML node.\n * @param {number} pagenum The current page number.\n * @param {boolean} skipOffset Skip the SEO offset check.\n * @return {HTMLElement} Modified HTML element.\n */\nfunction addSEOAttributes(alm, element, pagenum) {\n var skipOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var addons = alm.addons,\n canonical_url = alm.canonical_url;\n var _alm_localize = alm_localize,\n _alm_localize$retain_ = _alm_localize.retain_querystring,\n retain_querystring = _alm_localize$retain_ === void 0 ? true : _alm_localize$retain_;\n var querystring = retain_querystring ? window.location.search : '';\n pagenum = !skipOffset ? getSEOPageNum(addons === null || addons === void 0 ? void 0 : addons.seo_offset, pagenum) : pagenum;\n element.classList.add('alm-seo');\n element.dataset.page = pagenum;\n if (addons.seo_permalink === 'default') {\n // Default Permalinks\n if (pagenum > 1) {\n element.dataset.url = \"\".concat(canonical_url).concat(querystring, \"&paged=\").concat(pagenum);\n } else {\n element.dataset.url = \"\".concat(canonical_url).concat(querystring);\n }\n } else {\n // Pretty Permalinks\n if (pagenum > 1) {\n element.dataset.url = \"\".concat(canonical_url).concat(addons.seo_leading_slash, \"page/\").concat(pagenum).concat(addons.seo_trailing_slash).concat(querystring);\n } else {\n element.dataset.url = \"\".concat(canonical_url).concat(querystring);\n }\n }\n return element;\n}\n\n/**\n * Get the current page number.\n *\n * @param {string} seo_offset Is this an SEO offset.\n * @param {number} page The page number,\n * @return {number} The page number.\n */\nfunction getSEOPageNum(seo_offset, page) {\n return seo_offset === 'true' ? parseInt(page) + 1 : parseInt(page);\n}\n\n/**\n * Create div to hold offset values for SEO.\n *\n * @param {Object} alm The ALM object.\n */\nfunction createSEOOffset(alm) {\n var offsetDiv = document.createElement('div');\n // Add data attributes.\n offsetDiv = addSEOAttributes(alm, offsetDiv, 1, true);\n\n // Insert into ALM container.\n alm.main.insertBefore(offsetDiv, alm.listing);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/seo.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/singleposts.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/addons/singleposts.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addSinglePostsAttributes: function() { return /* binding */ addSinglePostsAttributes; },\n/* harmony export */ getNestedNextPageElement: function() { return /* binding */ getNestedNextPageElement; },\n/* harmony export */ singlepostsCreateParams: function() { return /* binding */ singlepostsCreateParams; },\n/* harmony export */ singlepostsHTML: function() { return /* binding */ singlepostsHTML; }\n/* harmony export */ });\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction singlepostsCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.single_post = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.singlePost) === 'true';\n if (alm.addons.single_post) {\n alm.addons.single_post_id = listing.dataset.singlePostId;\n alm.addons.single_post_query = listing.dataset.singlePostQuery;\n alm.addons.single_post_order = listing.dataset.singlePostOrder === undefined ? 'previous' : listing.dataset.singlePostOrder;\n alm.addons.single_post_init_id = listing.dataset.singlePostId;\n alm.addons.single_post_taxonomy = listing.dataset.singlePostTaxonomy === undefined ? '' : listing.dataset.singlePostTaxonomy;\n alm.addons.single_post_excluded_terms = listing.dataset.singlePostExcludedTerms === undefined ? '' : listing.dataset.singlePostExcludedTerms;\n alm.addons.single_post_progress_bar = listing.dataset.singlePostProgressBar === undefined ? '' : listing.dataset.singlePostProgressBar;\n alm.addons.single_post_target = listing.dataset.singlePostTarget === undefined ? '' : listing.dataset.singlePostTarget;\n alm.addons.single_post_preview = listing.dataset.singlePostPreview === undefined ? false : true;\n\n // Post Preview. Does this even work?\n if (alm.addons.single_post_preview) {\n var singlePostPreviewData = listing.dataset.singlePostPreview.split(':');\n alm.addons.single_post_preview_data = {\n button_label: singlePostPreviewData[0] ? singlePostPreviewData[0] : 'Continue Reading',\n height: singlePostPreviewData[1] ? singlePostPreviewData[1] : 500,\n element: singlePostPreviewData[2] ? singlePostPreviewData[2] : 'default',\n className: 'alm-single-post--preview'\n };\n }\n if (alm.addons.single_post_id === undefined) {\n alm.addons.single_post_id = '';\n alm.addons.single_post_init_id = '';\n }\n\n // Set default fallbacks.\n alm.addons.single_post_permalink = '';\n alm.addons.single_post_title = '';\n alm.addons.single_post_slug = '';\n alm.addons.single_post_cache = false;\n alm.addons.single_post_title_template = listing.dataset.singlePostTitleTemplate;\n alm.addons.single_post_siteTitle = listing.dataset.singlePostSiteTitle;\n alm.addons.single_post_siteTagline = listing.dataset.singlePostSiteTagline;\n alm.addons.single_post_scroll = listing.dataset.singlePostScroll;\n alm.addons.single_post_scroll_speed = listing.dataset.singlePostScrollSpeed;\n alm.addons.single_post_scroll_top = listing.dataset.singlePostScrolltop;\n alm.addons.single_post_controls = listing.dataset.singlePostControls;\n }\n return alm;\n}\n\n/**\n * Create the HTML for loading Single Posts.\n *\n * @param {Object} alm The alm object.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n * @since 5.1.8.1\n */\nfunction singlepostsHTML(alm, response, cache_slug) {\n var data = {\n html: '',\n meta: {\n postcount: 0,\n totalposts: 0\n }\n };\n\n // Get target element.\n var _alm$addons = alm.addons,\n single_post_target = _alm$addons.single_post_target,\n single_post_id = _alm$addons.single_post_id;\n if (response.status === 200 && response.data && single_post_target) {\n var _window;\n // Create temp div to hold response data.\n var div = document.createElement('div');\n div.innerHTML = response.data;\n\n // Get target element.\n var html = div.querySelector(single_post_target);\n if (!html) {\n console.warn(\"Ajax Load More: Unable to find \".concat(single_post_target, \" element.\"));\n return data;\n }\n\n // Get any custom target elements.\n if ((_window = window) !== null && _window !== void 0 && _window.almSinglePostsCustomElements) {\n var _window2;\n var customElements = singlepostsGetCustomElements(div, (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.almSinglePostsCustomElements, single_post_id);\n if (customElements) {\n // Get first element in HTML.\n var target = html.querySelector('article, section, div');\n if (target) {\n target.appendChild(customElements);\n }\n }\n }\n data.html = html.innerHTML;\n data.meta = {\n postcount: 1,\n totalposts: 1\n };\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_0__.createCache)(alm, data, cache_slug);\n }\n return data;\n}\n\n/**\n * Find nested Next Page instance and prepend first element to the returned HTML.\n *\n * @param {Element} html The wrapper element.\n * @return {Element} The modified element.\n */\nfunction getNestedNextPageElement(html) {\n var nextpageElement = html.querySelector('.ajax-load-more-wrap .alm-nextpage');\n if (!nextpageElement) {\n return html;\n }\n\n // Clone the nextpage element and clear the contents.\n var clone = nextpageElement.cloneNode(true);\n clone.innerHTML = '';\n\n // Insert the clone before the first child.\n html.insertBefore(clone, html.querySelector(':first-child'));\n return html;\n}\n\n/**\n * Collect custom target elements and append them to the returned HTML.\n * This function is useful to get elements from outside the ALM target and bring them into the returned HTML.\n * Useful for when CSS or JS may be loaded in the and we need it brought into the HTML for Single Posts.\n *\n * e.g. window.almSinglePostsCustomElements = ['#woocommerce-inline-inline-css', '#wc-block-style-css'];\n *\n * @param {HTMLElement} content The HTML element.\n * @param {Array} customElements The elements to search for in content.\n * @param {string|number} id The Post ID.\n * @return {HTMLElement} The HTML elements.\n */\nfunction singlepostsGetCustomElements() {\n var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var customElements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var id = arguments.length > 2 ? arguments[2] : undefined;\n if (!content || !customElements) {\n return container; // Exit if empty.\n }\n\n // Create container element if if doesn't exist.\n var container = document.createElement('div');\n container.classList.add('alm-custom-elements');\n container.dataset.id = id;\n\n // Convert customElements to an Array.\n customElements = !Array.isArray(customElements) ? [customElements] : customElements;\n\n // Loop Array to extract elements and append to container.\n for (var i = 0; i < customElements.length; i++) {\n var element = content.querySelector(customElements[i]);\n if (element) {\n element.classList.add('alm-custom-element');\n container.appendChild(element);\n }\n }\n return container;\n}\n\n/**\n * Create data attributes for a Single Post item.\n *\n * @param {Object} alm The ALM object.\n * @param {Element} element The elements HTML element to add data params.\n * @return {Array} Modified HTML element.\n */\nfunction addSinglePostsAttributes(alm, element) {\n if (!element) {\n return [];\n }\n var page = alm.page,\n addons = alm.addons;\n element.setAttribute('class', \"alm-single-post post-\".concat(addons.single_post_id));\n element.dataset.id = addons.single_post_id;\n element.dataset.url = addons.single_post_permalink;\n element.dataset.page = addons.single_post_target ? parseInt(page) + 1 : page;\n element.dataset.title = addons.single_post_title;\n return element;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/singleposts.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/woocommerce.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/addons/woocommerce.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almWooCommerceResultsTextInit: function() { return /* binding */ almWooCommerceResultsTextInit; },\n/* harmony export */ wooCreateParams: function() { return /* binding */ wooCreateParams; },\n/* harmony export */ wooGetContent: function() { return /* binding */ wooGetContent; },\n/* harmony export */ wooInit: function() { return /* binding */ wooInit; },\n/* harmony export */ wooReset: function() { return /* binding */ wooReset; },\n/* harmony export */ woocommerce: function() { return /* binding */ woocommerce; },\n/* harmony export */ woocommerceLoaded: function() { return /* binding */ woocommerceLoaded; }\n/* harmony export */ });\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! axios */ \"./node_modules/axios/lib/axios.js\");\n/* harmony import */ var _functions_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/constants */ \"./src/frontend/js/functions/constants.js\");\n/* harmony import */ var _functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/dispatchScrollEvent */ \"./src/frontend/js/functions/dispatchScrollEvent.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\n/* harmony import */ var _functions_setContentParams__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../functions/setContentParams */ \"./src/frontend/js/functions/setContentParams.js\");\n/* harmony import */ var _modules_lazyImages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modules/lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n/* harmony import */ var _modules_loadItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../modules/loadItems */ \"./src/frontend/js/modules/loadItems.js\");\n/* harmony import */ var _modules_loadPrevious__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../modules/loadPrevious */ \"./src/frontend/js/modules/loadPrevious.js\");\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction wooCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing,\n addons = alm.addons;\n alm.addons.woocommerce = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.woo) === 'true';\n if (alm.addons.woocommerce && listing.dataset.wooSettings) {\n var _addons$woocommerce_s;\n alm.addons.woocommerce_settings = JSON.parse(listing.dataset.wooSettings);\n alm.addons.woocommerce_settings.results_text = document.querySelectorAll(addons === null || addons === void 0 || (_addons$woocommerce_s = addons.woocommerce_settings) === null || _addons$woocommerce_s === void 0 ? void 0 : _addons$woocommerce_s.results); // Add Results Text\n alm.page = parseInt(alm.page) + parseInt(addons.woocommerce_settings.paged);\n }\n return alm;\n}\n\n/**\n * Set up instance of ALM WooCommerce\n *\n * @param {Object} alm ALM object.\n * @since 5.3.0\n */\nfunction wooInit(alm) {\n if (!alm || !alm.addons.woocommerce) {\n return false;\n }\n var container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`\n if (!container) {\n console.warn('ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container');\n return;\n }\n alm.button.dataset.page = alm.addons.woocommerce_settings.paged + 1; // Page\n\n // Get upcoming URL.\n var nextPage = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged];\n if (nextPage) {\n alm.button.dataset.url = nextPage;\n } else {\n alm.button.dataset.url = '';\n }\n var count = countContainers(alm.addons.woocommerce_settings.container);\n var page = alm.addons.woocommerce_settings.paged;\n if (count > 1) {\n // Display warning if multiple containers were found.\n console.warn('ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/');\n }\n\n // Set attributes on containers.\n (0,_functions_setContentParams__WEBPACK_IMPORTED_MODULE_3__.setContentContainersParams)(container, alm.listing);\n\n // Set data attributes on first item.\n var item = container.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item\n if (item) {\n item.classList.add('alm-woocommerce');\n item.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];\n item.dataset.page = alm.page;\n item.dataset.pageTitle = document.title;\n } else {\n console.warn('ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products');\n }\n\n // Paged URL: Create previous button.\n if (page > 1 && alm.addons.woocommerce_settings.settings.previous_products) {\n var prevURL = alm.addons.woocommerce_settings.paged_urls[page - 2];\n var label = alm.addons.woocommerce_settings.settings.previous_products;\n (0,_modules_loadPrevious__WEBPACK_IMPORTED_MODULE_6__.createLoadPreviousButton)(alm, container, page - 1, prevURL, label);\n }\n}\n\n/**\n * Core ALM WooCommerce product loader\n *\n * @param {Element} content WooCommerce content container.\n * @param {Object} alm ALM object.\n * @since 5.3.0\n */\nfunction woocommerce(content, alm) {\n if (!content || !alm) {\n return false;\n }\n return new Promise(function (resolve) {\n var _alm$addons$woocommer = alm.addons.woocommerce_settings,\n woocommerce_settings = _alm$addons$woocommer === void 0 ? {} : _alm$addons$woocommer;\n var _woocommerce_settings = woocommerce_settings.settings,\n settings = _woocommerce_settings === void 0 ? {} : _woocommerce_settings;\n var container = document.querySelector(woocommerce_settings.container); // Get `ul.products`\n var products = content.querySelectorAll(woocommerce_settings.products); // Get all `.products`\n var waitForImages = settings && settings.images_loaded === 'true' ? true : false;\n if (container && products) {\n var wooProducts = Array.prototype.slice.call(products); // Convert NodeList to Array.\n\n // Load the items.\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_modules_loadItems__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(container, wooProducts, alm, waitForImages);\n case 2:\n resolve(true);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function (e) {\n console.warn(e, 'There was an error with WooCommerce'); // eslint-disable-line no-console\n });\n\n // Trigger almWooCommerceLoaded callback.\n if (typeof almWooCommerceLoaded === 'function') {\n window.almWooCommerceLoaded(products);\n }\n }\n });\n}\n\n/**\n * Get the content, title and results from the Ajax request.\n *\n * @param {Object} alm The alm object.\n * @param {string} url The request URL.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n * @since 5.3.0\n */\nfunction wooGetContent(alm, url, response, cache_slug) {\n var data = _functions_constants__WEBPACK_IMPORTED_MODULE_0__.API_DATA_SHAPE; // Default data object.\n\n // Successful response.\n if (response.status === 200 && response.data) {\n var addons = alm.addons,\n pagePrev = alm.pagePrev,\n _alm$rel = alm.rel,\n rel = _alm$rel === void 0 ? 'next' : _alm$rel,\n page = alm.page,\n localize = alm.localize;\n var total_posts = localize.total_posts;\n var _addons$woocommerce_s2 = addons.woocommerce_settings,\n woocommerce_settings = _addons$woocommerce_s2 === void 0 ? {} : _addons$woocommerce_s2;\n\n // Get the page number.\n var currentPage = rel === 'prev' ? pagePrev : page + 1;\n\n // Create temp div to hold response data.\n var content = document.createElement('div');\n content.innerHTML = response.data;\n\n // Get Page Title\n var title = content.querySelector('title').innerHTML;\n data.pageTitle = title;\n\n // Get WooCommerce products container.\n var container = content.querySelector(woocommerce_settings.container);\n if (!container) {\n console.warn(\"Ajax Load More WooCommerce: Unable to find WooCommerce \".concat(woocommerce_settings.container, \" element.\"));\n return data;\n }\n\n // Get the first item and append data attributes.\n var item = container ? container.querySelector(woocommerce_settings.products) : null;\n if (item) {\n item.classList.add('alm-woocommerce');\n item.dataset.url = url;\n item.dataset.page = currentPage;\n item.dataset.pageTitle = title;\n }\n\n // Count the number of returned items.\n var items = container.querySelectorAll(woocommerce_settings.products);\n if (items) {\n // Set the html to the elementor container data.\n data.html = container ? container.innerHTML : '';\n data.meta.postcount = items.length;\n data.meta.totalposts = total_posts;\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_7__.createCache)(alm, data, cache_slug);\n }\n\n // Results Text\n almWooCommerceResultsText(content, alm);\n }\n return data;\n}\n\n/**\n * Handle WooCommerce loaded functionality and dispatch actions.\n *\n * @param {Object} alm ALM object.\n * @since 5.5.0\n */\nfunction woocommerceLoaded(alm) {\n var addons = alm.addons;\n var nextPageNum = alm.page + 2;\n var nextPage = addons.woocommerce_settings.paged_urls[nextPageNum - 1]; // Get URL.\n\n // Set button state & URL.\n if (alm.rel === 'prev' && alm.buttonPrev) {\n var prevPage = addons.woocommerce_settings.paged_urls[alm.pagePrev - 2];\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(alm.buttonPrev, parseInt(alm.pagePrev) - 1, prevPage);\n } else {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(alm.button, nextPageNum, nextPage);\n }\n\n // Lazy load images if necessary.\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_4__.lazyImages)(alm);\n\n // Trigger almComplete.\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm);\n }\n\n // End transitions.\n alm.AjaxLoadMore.transitionEnd();\n\n // ALM Done.\n if (alm.rel === 'prev' && alm.pagePrev <= 1) {\n alm.AjaxLoadMore.triggerDonePrev();\n }\n if (alm.rel === 'next' && nextPageNum > parseInt(alm.addons.woocommerce_settings.pages)) {\n alm.AjaxLoadMore.triggerDone();\n }\n (0,_functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n}\n\n/**\n * Reset a WooCommerce Instance by hitting the updated site URL.\n *\n * @since 5.3.8\n */\nfunction wooReset() {\n return new Promise(function (resolve) {\n var url = window.location;\n axios__WEBPACK_IMPORTED_MODULE_8__[\"default\"].get(url).then(function (response) {\n if (response.status === 200 && response.data) {\n var div = document.createElement('div');\n div.innerHTML = response.data; // Add data to div\n\n var alm = div.querySelector('.ajax-load-more-wrap .alm-listing[data-woo=\"true\"]'); // Get ALM instance\n var settings = alm ? alm.dataset.wooSettings : ''; // Get settings data\n resolve(settings);\n } else {\n resolve(false);\n }\n })[\"catch\"](function () {\n resolve(false);\n });\n });\n}\n\n/**\n * Set results text for WooCommerce Add-on.\n *\n * @param {Element} target The target HTML element.\n * @param {Object} alm ALM object.\n * @since 5.3\n */\nfunction almWooCommerceResultsText() {\n var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var alm = arguments.length > 1 ? arguments[1] : undefined;\n if (target && alm && alm.addons.woocommerce_settings.results_text) {\n var currentResults = target.querySelector(alm.addons.woocommerce_settings.results);\n if (alm.addons.woocommerce_settings.results_text) {\n //let link = alm.addons.woocommerce_settings.settings.previous_page_link;\n //let label = alm.addons.woocommerce_settings.settings.previous_page_label;\n //let sep = alm.addons.woocommerce_settings.settings.previous_page_sep;\n alm.addons.woocommerce_settings.results_text.forEach(function (element) {\n element.innerHTML = currentResults.innerHTML;\n // if (link && label) {\n // \telement.innerHTML = returnButton(currentResults, link, label, sep);\n // } else {\n // \telement.innerHTML = currentResults.innerHTML;\n // }\n });\n }\n }\n}\n\n/**\n * Initiate Results text.\n *\n * @param {Object} alm ALM object.\n * @since 5.3\n * @deprecated 5.5\n */\nfunction almWooCommerceResultsTextInit(alm) {\n if (alm && alm.addons.woocommerce_settings.results_text) {\n var results = document.querySelectorAll(alm.addons.woocommerce_settings.results);\n if (results.length < 1) {\n return false;\n }\n var link = alm.addons.woocommerce_settings.settings.previous_page_link;\n var label = alm.addons.woocommerce_settings.settings.previous_page_label;\n var sep = alm.addons.woocommerce_settings.settings.previous_page_sep;\n // Loop all result text elements\n results.forEach(function (element) {\n if (link && label) {\n element.innerHTML = returnButton(element, link, label, sep);\n }\n });\n }\n}\n\n/**\n * Create button text for returning to the first page\n *\n * @param {Element} text The button text.\n * @param {string} link Link URL.\n * @param {string} label Button label.\n * @param {string} seperator HTML separator.\n */\nfunction returnButton(text, link, label, seperator) {\n var button = \" \".concat(seperator, \" \").concat(label, \"\");\n return text.innerHTML + button;\n}\n\n/**\n * Get total count of WooCommerce containers.\n *\n * @param {string} container The container class.\n * @return {number} The total number of containers.\n */\nfunction countContainers(container) {\n if (!container) {\n return 0;\n }\n var containers = document.querySelectorAll(container); // Get all containers.\n if (!containers) {\n return 0;\n }\n return containers.length;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/woocommerce.js?"); - -/***/ }), - -/***/ "./src/frontend/js/ajax-load-more.js": -/*!*******************************************!*\ - !*** ./src/frontend/js/ajax-load-more.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almScroll: function() { return /* binding */ almScroll; },\n/* harmony export */ analytics: function() { return /* binding */ analytics; },\n/* harmony export */ click: function() { return /* binding */ click; },\n/* harmony export */ filter: function() { return /* binding */ filter; },\n/* harmony export */ getOffset: function() { return /* binding */ getOffset; },\n/* harmony export */ getPostCount: function() { return /* binding */ getPostCount; },\n/* harmony export */ getTotalPosts: function() { return /* binding */ getTotalPosts; },\n/* harmony export */ getTotalRemaining: function() { return /* binding */ getTotalRemaining; },\n/* harmony export */ reset: function() { return /* binding */ reset; },\n/* harmony export */ start: function() { return /* binding */ start; },\n/* harmony export */ wpblock: function() { return /* binding */ wpblock; }\n/* harmony export */ });\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! axios */ \"./node_modules/axios/lib/axios.js\");\n/* harmony import */ var _scss_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scss/ajax-load-more.scss */ \"./src/frontend/scss/ajax-load-more.scss\");\n/* harmony import */ var _addons_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./addons/cache */ \"./src/frontend/js/addons/cache.js\");\n/* harmony import */ var _addons_call_to_actions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./addons/call-to-actions */ \"./src/frontend/js/addons/call-to-actions.js\");\n/* harmony import */ var _addons_comments__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./addons/comments */ \"./src/frontend/js/addons/comments.js\");\n/* harmony import */ var _addons_elementor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./addons/elementor */ \"./src/frontend/js/addons/elementor.js\");\n/* harmony import */ var _addons_filters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./addons/filters */ \"./src/frontend/js/addons/filters.js\");\n/* harmony import */ var _addons_next_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./addons/next-page */ \"./src/frontend/js/addons/next-page.js\");\n/* harmony import */ var _addons_paging__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./addons/paging */ \"./src/frontend/js/addons/paging.js\");\n/* harmony import */ var _addons_preloaded__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./addons/preloaded */ \"./src/frontend/js/addons/preloaded.js\");\n/* harmony import */ var _addons_queryLoop__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./addons/queryLoop */ \"./src/frontend/js/addons/queryLoop.js\");\n/* harmony import */ var _addons_seo__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./addons/seo */ \"./src/frontend/js/addons/seo.js\");\n/* harmony import */ var _addons_singleposts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./addons/singleposts */ \"./src/frontend/js/addons/singleposts.js\");\n/* harmony import */ var _addons_woocommerce__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./addons/woocommerce */ \"./src/frontend/js/addons/woocommerce.js\");\n/* harmony import */ var _functions_displayResults__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./functions/displayResults */ \"./src/frontend/js/functions/displayResults.js\");\n/* harmony import */ var _functions_formatHTML__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./functions/formatHTML */ \"./src/frontend/js/functions/formatHTML.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\n/* harmony import */ var _functions_getScrollPercentage__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./functions/getScrollPercentage */ \"./src/frontend/js/functions/getScrollPercentage.js\");\n/* harmony import */ var _functions_getTotals__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./functions/getTotals */ \"./src/frontend/js/functions/getTotals.js\");\n/* harmony import */ var _functions_noResults__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./functions/noResults */ \"./src/frontend/js/functions/noResults.js\");\n/* harmony import */ var _functions_parsers__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./functions/parsers */ \"./src/frontend/js/functions/parsers.js\");\n/* harmony import */ var _functions_queryParams__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./functions/queryParams */ \"./src/frontend/js/functions/queryParams.js\");\n/* harmony import */ var _functions_setFocus__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./functions/setFocus */ \"./src/frontend/js/functions/setFocus.js\");\n/* harmony import */ var _functions_windowResize__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./functions/windowResize */ \"./src/frontend/js/functions/windowResize.js\");\n/* harmony import */ var _modules_almDebug__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./modules/almDebug */ \"./src/frontend/js/modules/almDebug.js\");\n/* harmony import */ var _modules_fade__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./modules/fade */ \"./src/frontend/js/modules/fade.js\");\n/* harmony import */ var _modules_filtering__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./modules/filtering */ \"./src/frontend/js/modules/filtering.js\");\n/* harmony import */ var _modules_insertScript__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./modules/insertScript */ \"./src/frontend/js/modules/insertScript.js\");\n/* harmony import */ var _modules_masonry__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./modules/masonry */ \"./src/frontend/js/modules/masonry.js\");\n/* harmony import */ var _modules_placeholder__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./modules/placeholder */ \"./src/frontend/js/modules/placeholder.js\");\n/* harmony import */ var _modules_resultsText__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./modules/resultsText */ \"./src/frontend/js/modules/resultsText.js\");\n/* harmony import */ var _modules_setLocalizedVars__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./modules/setLocalizedVars */ \"./src/frontend/js/modules/setLocalizedVars.js\");\n/* harmony import */ var _modules_tableofcontents__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./modules/tableofcontents */ \"./src/frontend/js/modules/tableofcontents.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n// ALM Modules\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// External packages.\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n// Axios Config.\naxios__WEBPACK_IMPORTED_MODULE_32__[\"default\"].defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';\n\n// Axios Interceptor for nested data objects\naxios__WEBPACK_IMPORTED_MODULE_32__[\"default\"].interceptors.request.use(function (config) {\n config.paramsSerializer = function (params) {\n // Qs is already included in the Axios package\n return qs.stringify(params, {\n arrayFormat: 'brackets',\n encode: false\n });\n };\n return config;\n});\n\n// Focus Polyfill.\n__webpack_require__(/*! focus-options-polyfill */ \"./node_modules/focus-options-polyfill/index.js\");\n\n// Global filtering state.\nvar alm_is_filtering = false;\n\n// Start ALM\n(function () {\n 'use strict';\n\n /**\n * Initiate Ajax Load More.\n *\n * @param {Element} el The Ajax Load More DOM element/container.\n * @param {number} index The current index number of the Ajax Load More instance.\n */\n var ajaxloadmore = function ajaxloadmore(el, index) {\n var _alm_localize, _el$dataset, _alm, _alm2, _alm3, _alm4, _alm5, _alm6, _alm_localize2, _alm7, _alm8, _alm9, _alm10, _alm11, _alm12, _alm13, _alm14, _alm15, _alm16, _alm_localize3, _alm17, _alm18, _alm19, _alm20, _alm21, _alm22;\n // Move user to top of page to prevent loading of unnessasry posts\n if (((_alm_localize = alm_localize) === null || _alm_localize === void 0 ? void 0 : _alm_localize.scrolltop) === 'true') {\n window.scrollTo(0, 0);\n }\n\n // Set ALM Variables\n var alm = this;\n alm.AjaxLoadMore = {};\n alm.addons = {};\n alm.extensions = {};\n alm.integration = {};\n alm.window = window;\n alm.page = 0;\n alm.postcount = 0;\n alm.totalposts = 0;\n alm.proceed = false;\n alm.disable_ajax = false;\n alm.init = true;\n alm.loading = true;\n alm.finished = false;\n alm.timer = null;\n alm.rel = 'next';\n alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent\n alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor\n\n el.classList.add('alm-' + index); // Add unique classname.\n el.setAttribute('data-alm-id', index); // Add unique data id.\n\n // The defined or generated ID for the ALM instance.\n alm.master_id = el.dataset.id ? \"ajax_load_more_\".concat(el.dataset.id) : el.id;\n alm.master_id = alm.master_id.replace(/-/g, '_');\n\n // Localized variables.\n alm.localized_var = \"\".concat(alm.master_id, \"_vars\");\n alm.localize = window[alm.localized_var];\n if (!alm.localize) {\n window[alm.localized_var] = {}; // Create empty object if not defined.\n alm.localize = window[alm.localized_var];\n }\n\n // Add ALM object to the global window scope.\n window[alm.master_id] = alm; // e.g. window.ajax_load_more or window.ajax_load_more_{id}\n\n // ALM Element Containers\n alm.main = el; // Top level DOM element\n alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');\n alm.content = alm.listing;\n alm.ajax = el.querySelector('.alm-ajax');\n alm.container_type = alm.listing.dataset.containerType;\n alm.loading_style = alm.listing.dataset.loadingStyle;\n\n // Instance Params\n alm.canonical_url = el.dataset.canonicalUrl;\n alm.nested = el.dataset.nested ? el.dataset.nested : false;\n alm.is_search = (el === null || el === void 0 || (_el$dataset = el.dataset) === null || _el$dataset === void 0 ? void 0 : _el$dataset.search) === 'true' ? 'true' : false;\n alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url.\n alm.slug = el.dataset.slug;\n alm.post_id = parseInt(el.dataset.postId);\n alm.id = el.dataset.id ? el.dataset.id : '';\n\n // Shortcode Params\n\n alm.repeater = ((_alm = alm) === null || _alm === void 0 || (_alm = _alm.listing) === null || _alm === void 0 || (_alm = _alm.dataset) === null || _alm === void 0 ? void 0 : _alm.repeater) || 'default';\n alm.theme_repeater = ((_alm2 = alm) === null || _alm2 === void 0 || (_alm2 = _alm2.listing) === null || _alm2 === void 0 || (_alm2 = _alm2.dataset) === null || _alm2 === void 0 ? void 0 : _alm2.themeRepeater) || false;\n alm.post_type = ((_alm3 = alm) === null || _alm3 === void 0 || (_alm3 = _alm3.listing) === null || _alm3 === void 0 || (_alm3 = _alm3.dataset) === null || _alm3 === void 0 ? void 0 : _alm3.postType) || 'post';\n alm.sticky_posts = ((_alm4 = alm) === null || _alm4 === void 0 || (_alm4 = _alm4.listing) === null || _alm4 === void 0 || (_alm4 = _alm4.dataset) === null || _alm4 === void 0 ? void 0 : _alm4.stickyPosts) || false;\n alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs\n alm.btnWrap = _toConsumableArray(alm.btnWrap); // Convert NodeList to array\n alm.btnWrap[alm.btnWrap.length - 1].style.visibility = 'visible'; // Get last element (used for nesting)\n alm.trigger = alm.btnWrap[alm.btnWrap.length - 1];\n alm.button = ((_alm5 = alm) === null || _alm5 === void 0 || (_alm5 = _alm5.trigger) === null || _alm5 === void 0 ? void 0 : _alm5.querySelector('button.alm-load-more-btn')) || null;\n alm.button_labels = {\n \"default\": ((_alm6 = alm) === null || _alm6 === void 0 || (_alm6 = _alm6.listing) === null || _alm6 === void 0 || (_alm6 = _alm6.dataset) === null || _alm6 === void 0 ? void 0 : _alm6.buttonLabel) || ((_alm_localize2 = alm_localize) === null || _alm_localize2 === void 0 ? void 0 : _alm_localize2.button_label),\n loading: ((_alm7 = alm) === null || _alm7 === void 0 || (_alm7 = _alm7.listing) === null || _alm7 === void 0 || (_alm7 = _alm7.dataset) === null || _alm7 === void 0 ? void 0 : _alm7.buttonLoadingLabel) || null,\n done: ((_alm8 = alm) === null || _alm8 === void 0 || (_alm8 = _alm8.listing) === null || _alm8 === void 0 || (_alm8 = _alm8.dataset) === null || _alm8 === void 0 ? void 0 : _alm8.buttonDoneLabel) || null\n };\n alm.placeholder = alm.main.querySelector('.alm-placeholder') || false;\n alm.scroll_distance = ((_alm9 = alm) === null || _alm9 === void 0 || (_alm9 = _alm9.listing) === null || _alm9 === void 0 ? void 0 : _alm9.dataset.scrollDistance) || 100;\n alm.scroll_container = ((_alm10 = alm) === null || _alm10 === void 0 || (_alm10 = _alm10.listing) === null || _alm10 === void 0 ? void 0 : _alm10.dataset.scrollContainer) || null;\n alm.scroll_direction = ((_alm11 = alm) === null || _alm11 === void 0 || (_alm11 = _alm11.listing) === null || _alm11 === void 0 || (_alm11 = _alm11.dataset) === null || _alm11 === void 0 ? void 0 : _alm11.scrollDirection) || 'vertical';\n alm.max_pages = (_alm12 = alm) !== null && _alm12 !== void 0 && (_alm12 = _alm12.listing) !== null && _alm12 !== void 0 && (_alm12 = _alm12.dataset) !== null && _alm12 !== void 0 && _alm12.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;\n alm.pause_override = ((_alm13 = alm) === null || _alm13 === void 0 || (_alm13 = _alm13.listing) === null || _alm13 === void 0 || (_alm13 = _alm13.dataset) === null || _alm13 === void 0 ? void 0 : _alm13.pauseOverride) || false; // true | false\n alm.pause = ((_alm14 = alm) === null || _alm14 === void 0 || (_alm14 = _alm14.listing) === null || _alm14 === void 0 || (_alm14 = _alm14.dataset) === null || _alm14 === void 0 ? void 0 : _alm14.pause) || false; // true | false\n alm.transition = ((_alm15 = alm) === null || _alm15 === void 0 || (_alm15 = _alm15.listing) === null || _alm15 === void 0 || (_alm15 = _alm15.dataset) === null || _alm15 === void 0 ? void 0 : _alm15.transition) || 'fade'; // Transition\n alm.transition_delay = ((_alm16 = alm) === null || _alm16 === void 0 || (_alm16 = _alm16.listing) === null || _alm16 === void 0 || (_alm16 = _alm16.dataset) === null || _alm16 === void 0 ? void 0 : _alm16.transitionDelay) || 0;\n alm.speed = (_alm_localize3 = alm_localize) !== null && _alm_localize3 !== void 0 && _alm_localize3.speed ? parseInt(alm_localize.speed) : 250;\n alm.images_loaded = ((_alm17 = alm) === null || _alm17 === void 0 || (_alm17 = _alm17.listing) === null || _alm17 === void 0 || (_alm17 = _alm17.dataset) === null || _alm17 === void 0 ? void 0 : _alm17.imagesLoaded) === 'true';\n alm.destroy_after = (_alm18 = alm) !== null && _alm18 !== void 0 && (_alm18 = _alm18.listing) !== null && _alm18 !== void 0 && (_alm18 = _alm18.dataset) !== null && _alm18 !== void 0 && _alm18.destroyAfter ? parseInt(alm.listing.dataset.destroyAfter) : false;\n alm.lazy_images = ((_alm19 = alm) === null || _alm19 === void 0 || (_alm19 = _alm19.listing.dataset) === null || _alm19 === void 0 ? void 0 : _alm19.lazyImages) === 'true' ? true : false;\n alm.integration.woocommerce = ((_alm20 = alm) === null || _alm20 === void 0 || (_alm20 = _alm20.listing) === null || _alm20 === void 0 || (_alm20 = _alm20.dataset) === null || _alm20 === void 0 ? void 0 : _alm20.woocommerce) === 'true' ? true : false;\n alm.scroll = ((_alm21 = alm) === null || _alm21 === void 0 || (_alm21 = _alm21.listing) === null || _alm21 === void 0 || (_alm21 = _alm21.dataset) === null || _alm21 === void 0 ? void 0 : _alm21.scroll) === 'false' ? false : true;\n alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on\n alm.posts_per_page = parseInt(alm.listing.dataset.postsPerPage);\n alm.offset = (_alm22 = alm) !== null && _alm22 !== void 0 && (_alm22 = _alm22.listing) !== null && _alm22 !== void 0 && (_alm22 = _alm22.dataset) !== null && _alm22 !== void 0 && _alm22.offset ? parseInt(alm.listing.dataset.offset) : 0;\n alm.paged = false;\n\n // Add-on Shortcode Params\n\n alm = (0,_addons_queryLoop__WEBPACK_IMPORTED_MODULE_9__.queryLoopCreateParams)(alm); // Query Loop add-on\n alm = (0,_addons_elementor__WEBPACK_IMPORTED_MODULE_4__.elementorCreateParams)(alm); // Elementor add-on\n alm = (0,_addons_woocommerce__WEBPACK_IMPORTED_MODULE_12__.wooCreateParams)(alm); // WooCommerce add-on\n alm = (0,_addons_cache__WEBPACK_IMPORTED_MODULE_1__.cacheCreateParams)(alm); // Cache add-on\n alm = (0,_addons_call_to_actions__WEBPACK_IMPORTED_MODULE_2__.ctaCreateParams)(alm); // CTA add-on\n alm = (0,_addons_next_page__WEBPACK_IMPORTED_MODULE_6__.nextpageCreateParams)(alm); // Nextpage add-on\n alm = (0,_addons_singleposts__WEBPACK_IMPORTED_MODULE_11__.singlepostsCreateParams)(alm); // Single Posts add-on\n alm = (0,_addons_comments__WEBPACK_IMPORTED_MODULE_3__.commentsCreateParams)(alm); // Comments add-on\n alm = (0,_addons_preloaded__WEBPACK_IMPORTED_MODULE_8__.preloadedCreateParams)(alm); // Preloaded add-on.\n alm = (0,_addons_paging__WEBPACK_IMPORTED_MODULE_7__.pagingCreateParams)(alm); // Paging add-on.\n alm = (0,_addons_filters__WEBPACK_IMPORTED_MODULE_5__.filtersCreateParams)(alm); // Filters add-on.\n alm = (0,_addons_seo__WEBPACK_IMPORTED_MODULE_10__.seoCreateParams)(alm); // SEO add-on.\n\n // Extension Shortcode Params\n\n // Users\n alm.extensions.users = alm.listing.dataset.users === 'true';\n if (alm.extensions.users) {\n // Override paging params for users\n alm.orginal_posts_per_page = parseInt(alm.listing.dataset.usersPerPage);\n alm.posts_per_page = parseInt(alm.listing.dataset.usersPerPage);\n }\n\n // REST API.\n alm.extensions.restapi = alm.listing.dataset.restapi === 'true';\n if (alm.extensions.restapi) {\n alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl;\n alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace;\n alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint;\n alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId;\n alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug;\n if (alm.extensions.restapi_template_id === '') {\n alm.extensions.restapi = false;\n }\n }\n\n // ACF.\n alm.extensions.acf = alm.listing.dataset.acf === 'true' ? true : false;\n if (alm.extensions.acf) {\n alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;\n alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;\n alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName;\n alm.extensions.acf_row_index = alm.listing.dataset.acfRowIndex;\n alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;\n // if field type, name or post ID is empty.\n if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) {\n alm.extensions.acf = false;\n }\n }\n\n // Term Query.\n alm.extensions.term_query = alm.listing.dataset.termQuery === 'true';\n if (alm.extensions.term_query) {\n alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy;\n alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty;\n alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;\n }\n\n /* Pause */\n if (alm.pause === undefined || alm.addons.seo && alm.start_page > 1) {\n // SEO only.\n alm.pause = false;\n }\n if (alm.addons.preloaded && alm.addons.seo && alm.start_page > 0) {\n // SEO + Preloaded.\n alm.pause = false;\n }\n if (alm.addons.filters && alm.addons.filters_startpage > 0) {\n // Filters.\n alm.pause = false;\n }\n if (alm.addons.preloaded && alm.addons.paging) {\n alm.pause = true;\n }\n\n /* Max Pages */\n alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 9999 : alm.max_pages;\n\n /* Scroll Distance */\n alm.scroll_distance = alm.scroll_distance === undefined ? 100 : alm.scroll_distance;\n alm.scroll_distance_perc = false;\n if (alm.scroll_distance.toString().indexOf('%') === -1) {\n // Standard scroll_distance\n alm.scroll_distance = parseInt(alm.scroll_distance);\n } else {\n // Percentage scroll_distance\n alm.scroll_distance_perc = true;\n alm.scroll_distance_orig = parseInt(alm.scroll_distance);\n alm.scroll_distance = (0,_functions_getScrollPercentage__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(alm);\n }\n\n /* Masonry */\n if (alm.transition === 'masonry') {\n alm = (0,_modules_masonry__WEBPACK_IMPORTED_MODULE_27__.almMasonryConfig)(alm);\n }\n\n /* Paging */\n if (alm.addons.paging) {\n // Add loading class to main container.\n alm.main.classList.add('alm-loading');\n } else {\n var almChildren = el.childNodes; // Get child nodes of instance [nodeList]\n if (almChildren) {\n var almChildArray = _toConsumableArray(almChildren); // Convert nodeList to array\n\n // Filter array to find the `.alm-btn-wrap` div\n var btnWrap = almChildArray.filter(function (element) {\n if (!element.classList) {\n // If not element (#text node)\n return false;\n }\n return element.classList.contains('alm-btn-wrap');\n });\n alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');\n } else {\n alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');\n }\n\n // Reset button state\n alm.button.disabled = false;\n alm.button.style.display = '';\n }\n\n /**\n * No Results.\n * Set template for showing no results HTML.\n */\n var alm_no_results = el.querySelector('.alm-no-results');\n alm.no_results = alm_no_results ? alm_no_results.innerHTML : '';\n\n /**\n * Results Text.\n * Render \"Showing x of y results\" text.\n */\n if (alm.integration.woocommerce) {\n var _alm23;\n // If woocommerce, get the default woocommerce results block\n alm.resultsText = document.querySelectorAll('.woocommerce-result-count');\n if (((_alm23 = alm) === null || _alm23 === void 0 || (_alm23 = _alm23.resultsText) === null || _alm23 === void 0 ? void 0 : _alm23.length) < 1) {\n alm.resultsText = document.querySelectorAll('.alm-results-text');\n }\n } else {\n alm.resultsText = document.querySelectorAll('.alm-results-text');\n }\n if (alm.resultsText) {\n alm.resultsText.forEach(function (results) {\n results.setAttribute('aria-live', 'polite');\n results.setAttribute('aria-atomic', 'true');\n });\n } else {\n alm.resultsText = false;\n }\n\n // Table of Contents: Render 1, 2, 3 etc. when pages are loaded\n alm.tableofcontents = document.querySelector('.alm-toc') || false;\n if (alm.tableofcontents) {\n alm.tableofcontents.setAttribute('aria-live', 'polite');\n alm.tableofcontents.setAttribute('aria-atomic', 'true');\n }\n\n /**\n * The function to get posts via Ajax/HTTP request.\n *\n * @since 2.0.0\n */\n alm.AjaxLoadMore.loadPosts = function () {\n if (alm.disable_ajax) {\n return;\n }\n if (typeof almOnChange === 'function') {\n window.almOnChange(alm);\n }\n\n // Set loading attributes.\n alm.loading = true;\n alm.main.classList.add('alm-loading');\n (0,_modules_placeholder__WEBPACK_IMPORTED_MODULE_28__[\"default\"])('show', alm);\n\n // Add loading styles to buttons.\n if (!alm.addons.paging) {\n if (alm.rel === 'prev') {\n alm.buttonPrev.classList.add('loading');\n } else {\n alm.button.classList.add('loading');\n if (alm.button_labels.loading) {\n alm.button.innerHTML = alm.button_labels.loading;\n }\n }\n }\n\n // Dispatch Ajax request.\n alm.AjaxLoadMore.ajax();\n };\n\n /**\n * The core Ajax Load More Ajax function.\n *\n * @param {string} type The type of Ajax request [standard|totalposts|totalpages].\n * @since 2.6.0\n */\n alm.AjaxLoadMore.ajax = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n var type,\n _alm24,\n params,\n cache,\n _args = arguments;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'standard';\n if (!alm.extensions.restapi) {\n _context.next = 5;\n break;\n }\n alm.AjaxLoadMore.restapi(alm);\n _context.next = 14;\n break;\n case 5:\n // Standard ALM.\n params = (0,_functions_queryParams__WEBPACK_IMPORTED_MODULE_20__.getAjaxParams)(alm, type); // Cache.\n if (!((_alm24 = alm) !== null && _alm24 !== void 0 && (_alm24 = _alm24.addons) !== null && _alm24 !== void 0 && _alm24.cache && !['totalposts', 'totalpages'].includes(type))) {\n _context.next = 13;\n break;\n }\n _context.next = 9;\n return (0,_addons_cache__WEBPACK_IMPORTED_MODULE_1__.getCache)(alm, Object.assign({}, params));\n case 9:\n cache = _context.sent;\n if (cache) {\n alm.AjaxLoadMore.render(cache);\n } else {\n alm.AjaxLoadMore.adminajax(params, type);\n }\n _context.next = 14;\n break;\n case 13:\n alm.AjaxLoadMore.adminajax(params, type);\n case 14:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n\n /**\n * Send request to the admin-ajax.php\n *\n * @param {Object} params Query params.\n * @param {string} type The type of Ajax request [standard|totalposts|totalpages].\n * @since 5.0.0\n */\n alm.AjaxLoadMore.adminajax = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params, type) {\n var _alm_localize4, ajaxurl, _params, _params$cache_slug, cache_slug, data;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n _alm_localize4 = alm_localize, ajaxurl = _alm_localize4.ajaxurl; // Get Ajax URL\n _params = params, _params$cache_slug = _params.cache_slug, cache_slug = _params$cache_slug === void 0 ? '' : _params$cache_slug; // Deconstruct query params.\n /**\n * Single Posts.\n * If `single_post_target`, adjust the Ajax URL to the post URL.\n */\n if (alm.addons.single_post && alm.addons.single_post_target) {\n ajaxurl = \"\".concat(alm.addons.single_post_permalink, \"?id=\").concat(alm.addons.single_post_id, \"&alm_page=\").concat(parseInt(alm.page) + 1);\n params = '';\n }\n\n // Query Loop || WooCommerce || Elementor.\n if (alm.addons.queryloop || alm.addons.woocommerce || alm.addons.elementor && alm.addons.elementor_type === 'posts') {\n ajaxurl = (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_15__.getButtonURL)(alm, alm.rel);\n params = '';\n }\n\n // Send HTTP request via axios.\n _context2.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_32__[\"default\"].get(ajaxurl, {\n params: params\n }).then(function (response) {\n if (alm.addons.single_post && alm.addons.single_post_target) {\n // Single Posts\n return (0,_addons_singleposts__WEBPACK_IMPORTED_MODULE_11__.singlepostsHTML)(alm, response, cache_slug);\n } else if (alm.addons.woocommerce) {\n // WooCommerce.\n return (0,_addons_woocommerce__WEBPACK_IMPORTED_MODULE_12__.wooGetContent)(alm, ajaxurl, response, cache_slug);\n } else if (alm.addons.elementor) {\n // Elementor\n return (0,_addons_elementor__WEBPACK_IMPORTED_MODULE_4__.elementorGetContent)(alm, ajaxurl, response, cache_slug);\n } else if (alm.addons.queryloop) {\n // Query Loop\n return (0,_addons_queryLoop__WEBPACK_IMPORTED_MODULE_9__.queryLoopGetContent)(alm, ajaxurl, response, cache_slug);\n }\n\n // Standard ALM - Get data from response.\n return response.data;\n })[\"catch\"](function (error) {\n // Error\n alm.AjaxLoadMore.error(error, 'adminajax');\n });\n case 6:\n data = _context2.sent;\n _context2.t0 = type;\n _context2.next = _context2.t0 === 'standard' ? 10 : _context2.t0 === 'totalposts' ? 12 : _context2.t0 === 'totalpages' ? 12 : 14;\n break;\n case 10:\n alm.AjaxLoadMore.render(data);\n return _context2.abrupt(\"break\", 14);\n case 12:\n if (alm.addons.paging && alm.addons.nextpage && typeof almBuildPagination === 'function') {\n window.almBuildPagination(data.totalpages, alm);\n alm.totalpages = data.totalpages;\n } else {\n if (alm.addons.paging && typeof almBuildPagination === 'function') {\n window.almBuildPagination(data.totalposts, alm);\n }\n }\n return _context2.abrupt(\"break\", 14);\n case 14:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return function (_x, _x2) {\n return _ref2.apply(this, arguments);\n };\n }();\n\n /**\n * Send request to the WP REST API\n *\n * @param {Object} alm The Ajax Load More object.\n * @since 5.0.0\n */\n alm.AjaxLoadMore.restapi = function (alm) {\n var _alm_localize5 = alm_localize,\n rest_api_url = _alm_localize5.rest_api_url; // Get Rest API URL\n var _alm$extensions = alm.extensions,\n restapi_base_url = _alm$extensions.restapi_base_url,\n restapi_namespace = _alm$extensions.restapi_namespace,\n restapi_endpoint = _alm$extensions.restapi_endpoint,\n restapi_template_id = _alm$extensions.restapi_template_id;\n var alm_rest_template = wp.template(restapi_template_id);\n var alm_rest_url = \"\".concat(rest_api_url).concat(restapi_base_url, \"/\").concat(restapi_namespace, \"/\").concat(restapi_endpoint);\n var params = (0,_functions_queryParams__WEBPACK_IMPORTED_MODULE_20__.getRestAPIParams)(alm);\n axios__WEBPACK_IMPORTED_MODULE_32__[\"default\"].get(alm_rest_url, {\n params: params\n }).then(function (response) {\n // Success\n var results = response.data; // Get data from response\n var _results$html = results.html,\n items = _results$html === void 0 ? null : _results$html,\n _results$meta = results.meta,\n meta = _results$meta === void 0 ? null : _results$meta;\n var postcount = meta && meta.postcount ? meta.postcount : 0;\n var totalposts = meta && meta.totalposts ? meta.totalposts : 0;\n\n // loop results to get data from each.\n var data = '';\n for (var i = 0; i < items.length; i++) {\n var result = items[i];\n data += alm_rest_template(result);\n }\n\n // Rest API debug.\n if (alm.extensions.restapi_debug === 'true') {\n console.log('ALM RestAPI Debug:', items); // eslint-disable-line no-console\n }\n\n // Create results object.\n var obj = {\n html: data,\n meta: {\n postcount: postcount,\n totalposts: totalposts\n }\n };\n alm.AjaxLoadMore.render(obj);\n })[\"catch\"](function (error) {\n // Error\n alm.AjaxLoadMore.error(error, 'restapi');\n });\n };\n\n /**\n * Display/render results function.\n *\n * @param {Object} data The results of the Ajax request.\n * @since 2.6.0\n */\n alm.AjaxLoadMore.render = /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(data) {\n var _alm29;\n var html, meta, total, totalposts, nodes, temp, paging_container, currentPage;\n return _regeneratorRuntime().wrap(function _callee8$(_context8) {\n while (1) switch (_context8.prev = _context8.next) {\n case 0:\n if (alm.addons.single_post) {\n alm.AjaxLoadMore.getSinglePost(); // Fetch single post data for next post.\n }\n\n // Parse incoming data.\n html = data.html, meta = data.meta;\n total = meta ? parseInt(meta.postcount) : parseInt(alm.posts_per_page); // Get current post counts.\n totalposts = typeof meta !== 'undefined' ? meta.totalposts : alm.posts_per_page * 5;\n alm.totalposts = totalposts;\n alm.postcount = alm.addons.paging ? total : alm.postcount + total;\n\n // Set alm.html as plain text return.\n alm.html = alm.container_type === 'table' ? html : html;\n if (!meta) {\n // Display warning if `meta` is missing from response.\n console.warn('Ajax Load More: Unable to access `meta` object in Ajax response. There may be an issue in your Repeater Template or another theme/plugin hook causing interference with the Ajax request.');\n }\n\n // ALM Init: First run only.\n if (alm.init) {\n if (meta) {\n alm.main.dataset.totalPosts = meta.totalposts ? meta.totalposts : 0;\n }\n\n // No Results / ALM Empty.\n if (total === 0) {\n if (alm.addons.paging && typeof almPagingEmpty === 'function') {\n window.almPagingEmpty(alm);\n }\n if (typeof almEmpty === 'function') {\n window.almEmpty(alm);\n }\n if (alm.no_results) {\n (0,_functions_noResults__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(alm.content, alm.no_results);\n }\n }\n\n // Paging Add-on.\n if (alm.addons.paging) {\n // Dispatch call to build pagination.\n if (typeof almBuildPagination === 'function') {\n window.almBuildPagination(totalposts, alm, false);\n }\n if (total > 0) {\n // Reset container opacity.\n alm.addons.paging_container.style.opacity = 0;\n\n // Start paging functionaity.\n alm.AjaxLoadMore.pagingInit();\n }\n }\n\n // SEO Offset.\n if (alm.addons.seo && alm.addons.seo_offset && !alm.addons.paging) {\n (0,_addons_seo__WEBPACK_IMPORTED_MODULE_10__.createSEOOffset)(alm);\n }\n\n /**\n * SEO & Filters add-on.\n * Handle isPaged results.\n */\n if (alm.paged) {\n // Reset the posts_per_page value.\n if (alm.addons.seo || alm.addons.filters || alm.extensions.users) {\n // Reset posts per page value.\n alm.posts_per_page = alm.orginal_posts_per_page;\n }\n\n // SEO add-on.\n if (alm.addons.seo) {\n alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page number.\n }\n\n // Filters add-on.\n if (alm.addons.filters && alm.addons.filters_startpage > 0) {\n alm.page = alm.addons.filters_startpage - 1; // Set new page number.\n }\n }\n // Filters onLoad\n if (typeof almFiltersOnload === 'function') {\n window.almFiltersOnload(alm);\n }\n }\n // End ALM Init.\n\n /**\n * Set Filter Facets.\n */\n if (alm.addons.filters && alm.facets && data.facets && typeof almFiltersFacets === 'function') {\n window.almFiltersFacets(data.facets);\n }\n\n /**\n * Display alm_debug results.\n */\n (0,_modules_almDebug__WEBPACK_IMPORTED_MODULE_23__[\"default\"])(alm);\n\n /**\n * Set localized variables and Results Text.\n */\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {\n return _regeneratorRuntime().wrap(function _callee3$(_context3) {\n while (1) switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return (0,_modules_setLocalizedVars__WEBPACK_IMPORTED_MODULE_30__[\"default\"])(alm);\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }, _callee3);\n }))();\n\n // Get all returned data as an array of DOM nodes.\n nodes = alm.container_type === 'table' ? (0,_functions_parsers__WEBPACK_IMPORTED_MODULE_19__.tableParser)(alm.html) : (0,_functions_parsers__WEBPACK_IMPORTED_MODULE_19__.domParser)(alm.html);\n alm.last_loaded = nodes;\n\n // Render results.\n if (!(total > 0)) {\n _context8.next = 52;\n break;\n }\n if (!(alm.addons.woocommerce || alm.addons.elementor || alm.addons.queryloop)) {\n _context8.next = 21;\n break;\n }\n temp = document.createElement('div');\n temp.innerHTML = html;\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {\n return _regeneratorRuntime().wrap(function _callee4$(_context4) {\n while (1) switch (_context4.prev = _context4.next) {\n case 0:\n if (!alm.addons.woocommerce) {\n _context4.next = 4;\n break;\n }\n _context4.next = 3;\n return (0,_addons_woocommerce__WEBPACK_IMPORTED_MODULE_12__.woocommerce)(temp, alm);\n case 3:\n (0,_addons_woocommerce__WEBPACK_IMPORTED_MODULE_12__.woocommerceLoaded)(alm);\n case 4:\n if (!alm.addons.elementor) {\n _context4.next = 8;\n break;\n }\n _context4.next = 7;\n return (0,_addons_elementor__WEBPACK_IMPORTED_MODULE_4__.elementor)(temp, alm);\n case 7:\n (0,_addons_elementor__WEBPACK_IMPORTED_MODULE_4__.elementorLoaded)(alm);\n case 8:\n if (!alm.addons.queryloop) {\n _context4.next = 12;\n break;\n }\n _context4.next = 11;\n return (0,_addons_queryLoop__WEBPACK_IMPORTED_MODULE_9__.queryloop)(temp, alm);\n case 11:\n (0,_addons_queryLoop__WEBPACK_IMPORTED_MODULE_9__.queryloopLoaded)(alm);\n case 12:\n case \"end\":\n return _context4.stop();\n }\n }, _callee4);\n }))()[\"catch\"](function (e) {\n if (alm.addons.woocommerce) {\n console.warn('Ajax Load More: There was an error loading WooCommerce products.', e);\n }\n if (alm.addons.elementor) {\n console.warn('Ajax Load More: There was an error loading Clementor items.', e);\n }\n if (alm.addons.queryloop) {\n console.warn('Ajax Load More: There was an error loading Query Loop items.', e);\n }\n });\n alm.init = false;\n return _context8.abrupt(\"return\");\n case 21:\n if (alm.addons.paging) {\n _context8.next = 36;\n break;\n }\n /**\n * Infinite Scroll Results.\n */\n nodes = (0,_functions_formatHTML__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(alm, nodes);\n _context8.t0 = alm.transition;\n _context8.next = _context8.t0 === 'masonry' ? 26 : 30;\n break;\n case 26:\n _context8.next = 28;\n return (0,_functions_displayResults__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(alm, nodes);\n case 28:\n // Wrap almMasonry in anonymous async/await function\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {\n return _regeneratorRuntime().wrap(function _callee5$(_context5) {\n while (1) switch (_context5.prev = _context5.next) {\n case 0:\n _context5.next = 2;\n return (0,_modules_masonry__WEBPACK_IMPORTED_MODULE_27__.almMasonry)(alm, alm.init, alm_is_filtering);\n case 2:\n alm.masonry.init = false;\n (0,_functions_windowResize__WEBPACK_IMPORTED_MODULE_22__[\"default\"])();\n\n // Callback: ALM Complete\n if (typeof almComplete === 'function') {\n window.almComplete(alm);\n }\n case 5:\n case \"end\":\n return _context5.stop();\n }\n }, _callee5);\n }))()[\"catch\"](function () {\n console.error('There was an error with ALM Masonry'); //eslint-disable-line no-console\n });\n return _context8.abrupt(\"break\", 33);\n case 30:\n _context8.next = 32;\n return (0,_functions_displayResults__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(alm, nodes);\n case 32:\n return _context8.abrupt(\"break\", 33);\n case 33:\n // Infinite Scroll -> Images Loaded: Run complete callbacks and checks.\n imagesLoaded(alm.listing, function () {\n alm.AjaxLoadMore.nested(); // Nested ALM.\n\n if (alm_is_filtering && alm.addons.filters) {\n if (typeof almFiltersAddonComplete === 'function') {\n window.almFiltersAddonComplete(el); // Callback: Filters Add-on Complete\n }\n }\n\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm); // Callback: ALM Complete\n }\n\n // Trigger tags in templates.\n _modules_insertScript__WEBPACK_IMPORTED_MODULE_26__[\"default\"].init(alm.last_loaded);\n\n // ALM Done.\n if (!alm.addons.single_post) {\n if (alm.addons.nextpage) {\n var _alm25, _alm26;\n // Nextpage.\n if (((_alm25 = alm) === null || _alm25 === void 0 || (_alm25 = _alm25.localize) === null || _alm25 === void 0 ? void 0 : _alm25.post_count) + (alm.addons.nextpage_startpage - 1) >= ((_alm26 = alm) === null || _alm26 === void 0 || (_alm26 = _alm26.localize) === null || _alm26 === void 0 ? void 0 : _alm26.total_posts)) {\n alm.AjaxLoadMore.triggerDone();\n }\n } else {\n var _alm27, _alm28;\n if (((_alm27 = alm) === null || _alm27 === void 0 || (_alm27 = _alm27.localize) === null || _alm27 === void 0 ? void 0 : _alm27.post_count) >= ((_alm28 = alm) === null || _alm28 === void 0 || (_alm28 = _alm28.localize) === null || _alm28 === void 0 ? void 0 : _alm28.total_posts)) {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n }\n alm_is_filtering = false;\n });\n /**\n * End: Infinite Scroll Results.\n */\n _context8.next = 50;\n break;\n case 36:\n /**\n * Paging.\n */\n paging_container = alm.addons.paging_container;\n if (!alm.init) {\n _context8.next = 44;\n break;\n }\n if (!paging_container) {\n _context8.next = 42;\n break;\n }\n _context8.next = 41;\n return (0,_functions_displayResults__WEBPACK_IMPORTED_MODULE_13__.displayPagingResults)(alm, nodes);\n case 41:\n // Inject content.\n\n // Paging -> Images Loaded: Run complete callbacks and checks.\n imagesLoaded(paging_container, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {\n return _regeneratorRuntime().wrap(function _callee6$(_context6) {\n while (1) switch (_context6.prev = _context6.next) {\n case 0:\n (0,_addons_paging__WEBPACK_IMPORTED_MODULE_7__.pagingComplete)(alm, alm_is_filtering, true);\n alm_is_filtering = false;\n case 2:\n case \"end\":\n return _context6.stop();\n }\n }, _callee6);\n })));\n case 42:\n _context8.next = 50;\n break;\n case 44:\n if (!paging_container) {\n _context8.next = 50;\n break;\n }\n _context8.next = 47;\n return (0,_modules_fade__WEBPACK_IMPORTED_MODULE_24__.almFadeOut)(paging_container, 250);\n case 47:\n _context8.next = 49;\n return (0,_functions_displayResults__WEBPACK_IMPORTED_MODULE_13__.displayPagingResults)(alm, nodes);\n case 49:\n // Inject content.\n\n // Paging -> Images Loaded: Run complete callbacks and checks.\n imagesLoaded(paging_container, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {\n return _regeneratorRuntime().wrap(function _callee7$(_context7) {\n while (1) switch (_context7.prev = _context7.next) {\n case 0:\n _context7.next = 2;\n return (0,_modules_fade__WEBPACK_IMPORTED_MODULE_24__.almFadeIn)(paging_container, 250);\n case 2:\n paging_container.style.opacity = '';\n (0,_addons_paging__WEBPACK_IMPORTED_MODULE_7__.pagingComplete)(alm, alm_is_filtering);\n alm_is_filtering = false;\n case 5:\n case \"end\":\n return _context7.stop();\n }\n }, _callee7);\n })));\n case 50:\n _context8.next = 54;\n break;\n case 52:\n /**\n * No results from Ajax.\n */\n alm.AjaxLoadMore.noresults();\n alm.AjaxLoadMore.transitionEnd();\n case 54:\n /**\n * Destroy After\n */\n if (alm.destroy_after) {\n currentPage = alm.page + 1; // Add 1 because alm.page starts at 0\n currentPage = alm.addons.preloaded ? currentPage++ : currentPage; // Add 1 for preloaded\n if (parseInt(currentPage) === parseInt(alm.destroy_after)) {\n alm.AjaxLoadMore.destroyed(); // Disable ALM if page = alm.destroy_after value.\n }\n }\n\n /**\n * Display Table of Contents\n */\n (0,_modules_tableofcontents__WEBPACK_IMPORTED_MODULE_31__.tableOfContents)(alm, alm.init);\n\n /**\n * Set Focus for accessibility.\n */\n if ((_alm29 = alm) !== null && _alm29 !== void 0 && (_alm29 = _alm29.last_loaded) !== null && _alm29 !== void 0 && _alm29.length) {\n (0,_functions_setFocus__WEBPACK_IMPORTED_MODULE_21__[\"default\"])(alm, alm.last_loaded[0], total, alm_is_filtering);\n }\n alm.main.classList.remove('alm-is-filtering'); // Remove filtering class.\n\n if (alm.init) {\n alm.main.classList.add('alm-is-loaded'); // Add loaded class to main container.\n }\n\n alm.init = false; // Set init flag.\n case 60:\n case \"end\":\n return _context8.stop();\n }\n }, _callee8);\n }));\n return function (_x3) {\n return _ref3.apply(this, arguments);\n };\n }();\n\n /**\n * Function runs when no results are returned.\n *\n * @since 5.3.1\n */\n alm.AjaxLoadMore.noresults = function () {\n if (!alm.addons.paging) {\n var _alm30, _alm31;\n // Add .done class, reset btn text\n (_alm30 = alm) === null || _alm30 === void 0 || (_alm30 = _alm30.button) === null || _alm30 === void 0 || (_alm30 = _alm30.classList) === null || _alm30 === void 0 || _alm30.remove('loading');\n (_alm31 = alm) === null || _alm31 === void 0 || (_alm31 = _alm31.button) === null || _alm31 === void 0 || (_alm31 = _alm31.classList) === null || _alm31 === void 0 || _alm31.add('done');\n alm.AjaxLoadMore.resetBtnText();\n }\n\n // Callback: ALM Complete\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm);\n }\n\n // Filters Add-on Complete\n if (alm_is_filtering && alm.addons.filters) {\n if (typeof almFiltersAddonComplete === 'function') {\n window.almFiltersAddonComplete(el);\n }\n alm_is_filtering = false;\n }\n\n // Masonry, clear `alm-listing` height.\n if (alm.transition === 'masonry') {\n alm.content.style.height = 'auto';\n }\n\n // ALM Done\n alm.AjaxLoadMore.triggerDone();\n };\n\n /**\n * Init Paging + Preloaded add-ons.\n *\n * @param {string} html Results of Ajax request.\n * @since 2.11.3\n */\n alm.AjaxLoadMore.pagingPreloadedInit = function () {\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n alm.AjaxLoadMore.pagingInit(); // Set up paging functionality.\n\n if (!html) {\n if (typeof almPagingEmpty === 'function') {\n window.almPagingEmpty(alm);\n }\n if (typeof almEmpty === 'function') {\n window.almEmpty(alm);\n }\n if (alm.no_results) {\n (0,_functions_noResults__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(alm.content, alm.no_results);\n }\n }\n };\n\n /**\n * Init Paging + Next Page add-ons.\n *\n * @since 2.14.0\n */\n alm.AjaxLoadMore.pagingNextpageInit = function () {\n alm.AjaxLoadMore.pagingInit(); // Set up paging functionality.\n\n if (typeof almSetNextPageVars === 'function') {\n window.almSetNextPageVars(alm); // Set up Nextpage Vars.\n }\n };\n\n /**\n * Paging add-on first to create required containers.\n *\n * @since 5.0\n */\n alm.AjaxLoadMore.pagingInit = function () {\n var paging_container = alm.addons.paging_container; // Get content container.\n\n if (paging_container) {\n (0,_modules_fade__WEBPACK_IMPORTED_MODULE_24__.almFadeIn)(paging_container, 150); // Fade in paging container.\n\n // Delay reveal of paging content.\n setTimeout(function () {\n alm.main.classList.remove('alm-loading'); // Remove `alm-loading` class\n }, 150);\n\n // Delay initial pagination display to avoid positioning issues.\n setTimeout(function () {\n paging_container.style.removeProperty('opacity'); // Remove initial opacity prop.\n\n if (typeof almFadePageControls === 'function') {\n window.almFadePageControls(alm.btnWrap); // Fade in paging controls.\n }\n\n if (typeof almPagingSetHeight === 'function') {\n window.almPagingSetHeight(paging_container); // Fade in container height.\n }\n }, 275);\n }\n };\n\n /**\n *\tAutomatically trigger nested ALM instances.\n *\n * @since 5.0\n */\n alm.AjaxLoadMore.nested = function () {\n var nested = alm.listing.querySelectorAll('.ajax-load-more-wrap:not(.alm-is-loaded)'); // Get all new instances\n if (nested) {\n _toConsumableArray(nested).forEach(function (element) {\n window.almInit(element);\n });\n }\n };\n\n /**\n * Get the Single Posts post ID via ajax.\n *\n * @since 2.7.4\n */\n alm.AjaxLoadMore.getSinglePost = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {\n var params, singlePostData;\n return _regeneratorRuntime().wrap(function _callee9$(_context9) {\n while (1) switch (_context9.prev = _context9.next) {\n case 0:\n if (!alm.fetchingPreviousPost) {\n _context9.next = 2;\n break;\n }\n return _context9.abrupt(\"return\");\n case 2:\n alm.fetchingPreviousPost = true; // Set loading flag.\n\n // Create data params.\n params = {\n action: 'alm_get_single',\n id: alm.addons.single_post_id,\n initial_id: alm.addons.single_post_init_id,\n order: alm.addons.single_post_order,\n taxonomy: alm.addons.single_post_taxonomy,\n excluded_terms: alm.addons.single_post_excluded_terms,\n post_type: alm.post_type,\n init: alm.addons.single_post_init\n }; // Send HTTP request via Axios.\n _context9.next = 6;\n return axios__WEBPACK_IMPORTED_MODULE_32__[\"default\"].get(alm_localize.ajaxurl, {\n params: params\n }).then(function (response) {\n // Get data from response.\n var data = response.data;\n if (data.has_previous_post) {\n alm.listing.dataset.singlePostId = data.prev_id; // Update single-post-id on instance\n alm.addons.single_post_id = data.prev_id;\n alm.addons.single_post_permalink = data.prev_permalink;\n alm.addons.single_post_title = data.prev_title;\n alm.addons.single_post_slug = data.prev_slug;\n alm.addons.single_post_cache = data.cache;\n } else {\n alm.addons.single_post_cache = false;\n if (!data.has_previous_post) {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n if (typeof window.almSetSinglePost === 'function') {\n window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);\n }\n alm.fetchingPreviousPost = false;\n alm.addons.single_post_init = false;\n return data;\n })[\"catch\"](function (error) {\n // Error\n alm.AjaxLoadMore.error(error, 'getSinglePost');\n alm.fetchingPreviousPost = false;\n });\n case 6:\n singlePostData = _context9.sent;\n return _context9.abrupt(\"return\", singlePostData);\n case 8:\n case \"end\":\n return _context9.stop();\n }\n }, _callee9);\n }));\n if (alm.addons.single_post_id) {\n alm.fetchingPreviousPost = false;\n alm.addons.single_post_init = true;\n }\n\n /**\n * Triggers various add-on functions after load complete.\n *\n * @param {Object} alm The ALM object.\n * @since 2.14.0\n */\n alm.AjaxLoadMore.triggerAddons = function (alm) {\n if (typeof almSetNextPage === 'function' && alm.addons.nextpage) {\n window.almSetNextPage(alm);\n }\n if (typeof almSEO === 'function' && alm.addons.seo) {\n window.almSEO(alm, false);\n }\n if (typeof almWooCommerce === 'function' && alm.addons.woocommerce) {\n window.almWooCommerce(alm);\n }\n if (typeof almElementor === 'function' && alm.addons.elementor) {\n window.almElementor(alm);\n }\n };\n\n /**\n * Fires a set of actions and functions when ALM has no other posts to load.\n *\n * @since 2.11.3\n */\n alm.AjaxLoadMore.triggerDone = function () {\n alm.loading = false;\n alm.finished = true;\n (0,_modules_placeholder__WEBPACK_IMPORTED_MODULE_28__[\"default\"])('hide', alm);\n if (!alm.addons.paging) {\n if (alm.button_labels.done) {\n setTimeout(function () {\n alm.button.innerHTML = alm.button_labels.done;\n }, 75);\n }\n alm.button.classList.add('done');\n alm.button.removeAttribute('rel');\n alm.button.disabled = true;\n }\n\n // almDone\n if (typeof almDone === 'function') {\n // Delay done until animations complete\n setTimeout(function () {\n window.almDone(alm);\n }, alm.speed + 10);\n }\n };\n\n /**\n * Fires a set of actions once ALm Previous hits the first page.\n *\n * @since 5.5.0\n */\n alm.AjaxLoadMore.triggerDonePrev = function () {\n alm.loading = false;\n (0,_modules_placeholder__WEBPACK_IMPORTED_MODULE_28__[\"default\"])('hide', alm);\n if (!alm.addons.paging) {\n alm.buttonPrev.classList.add('done');\n alm.buttonPrev.style.opacity = '0.5';\n alm.buttonPrev.disabled = true;\n }\n\n // almDonePrev Callback.\n if (typeof almDonePrev === 'function') {\n // Delay done until animations complete\n setTimeout(function () {\n window.almDonePrev(alm);\n }, alm.speed + 10);\n }\n };\n\n /**\n * Resets the loading button text after loading has completed.\n *\n * @since 2.8.4\n */\n alm.AjaxLoadMore.resetBtnText = function () {\n if (alm.button && alm.button_labels.loading) {\n alm.button.innerHTML = alm.button_labels[\"default\"];\n }\n };\n\n /**\n * Button click handler to load posts.\n *\n * @param {Object} e The target button element.\n * @since 4.2.0\n */\n alm.AjaxLoadMore.click = function (e) {\n var button = e.currentTarget || e.target;\n alm.rel = 'next';\n if (alm.pause === 'true') {\n alm.pause = false;\n alm.pause_override = false;\n alm.AjaxLoadMore.loadPosts();\n }\n if (!alm.loading && !alm.finished && !button.classList.contains('done')) {\n alm.loading = true;\n alm.page++;\n alm.AjaxLoadMore.loadPosts();\n }\n button.blur(); // Remove button focus\n };\n\n /**\n * Button click handler for previous load more.\n *\n * @param {Object} e The target button element.\n * @since 5.5.0\n */\n alm.AjaxLoadMore.prevClick = function (e) {\n var button = e.currentTarget || e.target;\n e.preventDefault();\n if (!alm.loading && !button.classList.contains('done')) {\n alm.loading = true;\n alm.pagePrev--;\n alm.rel = 'prev';\n alm.AjaxLoadMore.loadPosts();\n button.blur(); // Remove button focus\n }\n };\n\n /**\n * Set the Load Previous button to alm object.\n *\n * @param {Element} button The button element.\n * @since 5.5.0\n */\n alm.AjaxLoadMore.setPreviousButton = function (button) {\n alm.pagePrev = alm.page;\n alm.buttonPrev = button;\n };\n\n /**\n * Load More button click event handler.\n *\n * @since 1.0.0\n */\n if (!alm.addons.paging && !alm.fetchingPreviousPost) {\n alm.button.onclick = alm.AjaxLoadMore.click;\n }\n\n /**\n * Window resize functions for Paging, Scroll Distance Percentage etc.\n *\n * @since 2.1.2\n */\n if (alm.addons.paging || alm.scroll_distance_perc || alm.scroll_direction === 'horizontal') {\n var resize;\n alm.window.onresize = function () {\n clearTimeout(resize);\n resize = setTimeout(function () {\n if (alm.addons.paging) {\n // Paging\n if (typeof almOnWindowResize === 'function') {\n window.almOnWindowResize(alm);\n }\n }\n if (alm.scroll_distance_perc) {\n alm.scroll_distance = (0,_functions_getScrollPercentage__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(alm);\n }\n if (alm.scroll_direction === 'horizontal') {\n alm.AjaxLoadMore.horizontal();\n }\n }, alm.speed);\n };\n }\n\n /**\n * Check to see if element is visible before loading posts.\n *\n * @since 2.1.2\n */\n alm.AjaxLoadMore.isVisible = function () {\n // Check for a width and height to determine visibility\n alm.visible = alm.main.clientWidth > 0 && alm.main.clientHeight > 0 ? true : false;\n return alm.visible;\n };\n\n /**\n * Load posts as user scrolls the page.\n *\n * @since 1.0\n */\n alm.AjaxLoadMore.scroll = function () {\n if (alm.timer) {\n clearTimeout(alm.timer);\n }\n alm.timer = setTimeout(function () {\n if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {\n var trigger = alm.trigger.getBoundingClientRect();\n var btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;\n var scrollTrigger = btnPos <= 0 ? true : false;\n\n // Scroll Container\n if (alm.window !== window) {\n var scrollHeight = alm.main.offsetHeight; // ALM height\n var scrollWidth = alm.main.offsetWidth; // ALM Width\n var scrollPosition = '';\n if (alm.scroll_direction === 'horizontal') {\n // Left/Right\n alm.AjaxLoadMore.horizontal();\n scrollPosition = Math.round(alm.window.scrollLeft + alm.window.offsetWidth - alm.scroll_distance); // How far user has scrolled\n scrollTrigger = scrollWidth <= scrollPosition ? true : false;\n } else {\n // Up/Down\n scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled\n scrollTrigger = scrollHeight <= scrollPosition ? true : false;\n }\n }\n\n // If Pause && Pause Override\n if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') {\n alm.button.click();\n }\n\n // Standard Scroll\n else {\n if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {\n alm.button.click();\n }\n }\n }\n }, 25);\n };\n\n /**\n * Add scroll eventlisteners, only when needed.\n *\n * @since 5.2.0\n */\n alm.AjaxLoadMore.scrollSetup = function () {\n if (alm.scroll && !alm.addons.paging) {\n if (alm.scroll_container) {\n // Scroll Container\n alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;\n setTimeout(function () {\n // Delay to allow for ALM container to resize on load.\n alm.AjaxLoadMore.horizontal();\n }, 500);\n }\n alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll\n alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices\n alm.window.addEventListener('wheel', function (e) {\n // Mousewheel\n var direction = Math.sign(e.deltaY);\n if (direction > 0) {\n alm.AjaxLoadMore.scroll();\n }\n });\n alm.window.addEventListener('keyup', function (e) {\n var key = e.key;\n switch (key) {\n case 'End':\n case 'PageDown':\n alm.AjaxLoadMore.scroll();\n break;\n }\n });\n }\n };\n\n /**\n * Configure horizontal scroll settings.\n *\n * @since 5.3.6\n */\n alm.AjaxLoadMore.horizontal = function () {\n if (alm.scroll_direction === 'horizontal') {\n alm.main.style.width = \"\".concat(alm.listing.offsetWidth, \"px\");\n }\n };\n\n /**\n * Destroy Ajax Load More functionality.\n *\n * @since 3.4.2\n */\n alm.AjaxLoadMore.destroyed = function () {\n alm.disable_ajax = true;\n if (!alm.addons.paging) {\n alm.button.style.display = 'none';\n alm.AjaxLoadMore.triggerDone();\n if (typeof almDestroyed === 'function') {\n window.almDestroyed(alm);\n }\n }\n };\n\n /**\n * Set variables after loading transition completes.\n *\n * @since 3.5\n */\n alm.AjaxLoadMore.transitionEnd = function () {\n setTimeout(function () {\n alm.AjaxLoadMore.resetBtnText();\n alm.main.classList.remove('alm-loading');\n\n // Loading buttons.\n if (alm.rel === 'prev') {\n var _alm32;\n (_alm32 = alm) === null || _alm32 === void 0 || (_alm32 = _alm32.buttonPrev) === null || _alm32 === void 0 || (_alm32 = _alm32.classList) === null || _alm32 === void 0 || _alm32.remove('loading');\n } else {\n var _alm33;\n (_alm33 = alm) === null || _alm33 === void 0 || (_alm33 = _alm33.button) === null || _alm33 === void 0 || (_alm33 = _alm33.classList) === null || _alm33 === void 0 || _alm33.remove('loading');\n }\n alm.AjaxLoadMore.triggerAddons(alm);\n if (!alm.addons.paging) {\n setTimeout(function () {\n alm.loading = false; // Delay to prevent loading to fast\n }, alm.speed * 2);\n }\n }, 25);\n\n // Hide loading placeholder.\n (0,_modules_placeholder__WEBPACK_IMPORTED_MODULE_28__[\"default\"])('hide', alm);\n };\n\n /**\n * Set individual localized variable.\n *\n * @param {string} name\n * @param {string} value\n * @since 4.1\n */\n alm.AjaxLoadMore.setLocalizedVar = function () {\n var _alm34;\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n if ((_alm34 = alm) !== null && _alm34 !== void 0 && _alm34.localize && name !== '' && value !== '') {\n alm.localize[name] = value; // Set ALM localize var.\n window[alm.localized_var][name] = value; // Update vars.\n }\n };\n\n /**\n * Init Ajax load More functionality and add-ons.\n *\n * @since 2.0\n */\n alm.AjaxLoadMore.init = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {\n var nextpage_pages, _alm35, nextpage_first, nextpage_total;\n return _regeneratorRuntime().wrap(function _callee12$(_context12) {\n while (1) switch (_context12.prev = _context12.next) {\n case 0:\n // Preloaded and Destroy After is 1.\n if (alm.addons.preloaded && alm.destroy_after === 1) {\n alm.AjaxLoadMore.destroyed();\n }\n\n // Paging Add-on.\n if (alm.addons.paging) {\n if (alm.addons.preloaded) {\n // Preloaded.\n alm.AjaxLoadMore.ajax('totalposts');\n } else if (alm.addons.nextpage) {\n // Next Page.\n alm.AjaxLoadMore.ajax('totalpages');\n } else {\n // Standard.\n alm.AjaxLoadMore.loadPosts();\n }\n }\n\n // Not Paging & not Single Post.\n if (!alm.addons.paging && !alm.addons.single_post) {\n if (alm.disable_ajax) {\n alm.finished = true;\n alm.button.classList.add('done');\n } else {\n // Set button label.\n alm.button.innerHTML = alm.button_labels[\"default\"];\n\n // Check pause.\n if (alm.pause === 'true') {\n alm.loading = false;\n } else {\n alm.AjaxLoadMore.loadPosts();\n }\n }\n }\n\n // Single Post Add-on.\n if (alm.addons.single_post) {\n // Add delay for setup and scripts to load.\n setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {\n return _regeneratorRuntime().wrap(function _callee10$(_context10) {\n while (1) switch (_context10.prev = _context10.next) {\n case 0:\n _context10.next = 2;\n return alm.AjaxLoadMore.getSinglePost();\n case 2:\n // Set next post on load\n\n // Trigger done if custom query and no posts to render\n if (alm.addons.single_post_query && alm.addons.single_post_order === '') {\n alm.AjaxLoadMore.triggerDone();\n }\n alm.loading = false;\n (0,_modules_tableofcontents__WEBPACK_IMPORTED_MODULE_31__.tableOfContents)(alm, true, true);\n case 5:\n case \"end\":\n return _context10.stop();\n }\n }, _callee10);\n })), 250);\n }\n\n // Query Loop Add-on.\n if (alm.addons.queryloop && alm.addons.queryloop_settings) {\n (0,_addons_queryLoop__WEBPACK_IMPORTED_MODULE_9__.queryLoopInit)(alm);\n }\n\n // Preloaded + SEO && !Paging.\n if (alm.addons.preloaded && alm.addons.seo && !alm.addons.paging) {\n // Add delay for setup and scripts to load.\n setTimeout(function () {\n if (typeof almSEO === 'function' && alm.start_page < 1) {\n window.almSEO(alm, true);\n }\n }, 200);\n }\n\n // Preloaded && !Paging.\n if (alm.addons.preloaded && !alm.addons.paging) {\n // Add delay for setup and scripts to load.\n setTimeout(function () {\n if (alm.addons.preloaded_total_posts <= alm.addons.preloaded_amount) {\n alm.AjaxLoadMore.triggerDone();\n }\n // almEmpty callback.\n if (alm.addons.preloaded_total_posts === 0) {\n if (typeof almEmpty === 'function') {\n window.almEmpty(alm);\n }\n if (alm.no_results) {\n (0,_functions_noResults__WEBPACK_IMPORTED_MODULE_18__[\"default\"])(alm.content, alm.no_results);\n }\n }\n }, alm.speed);\n }\n\n // Preloaded Add-on ONLY.\n if (alm.addons.preloaded) {\n if (alm.resultsText) {\n _modules_resultsText__WEBPACK_IMPORTED_MODULE_29__.almInitResultsText(alm, 'preloaded');\n }\n (0,_modules_tableofcontents__WEBPACK_IMPORTED_MODULE_31__.tableOfContents)(alm, alm.init, true);\n }\n\n // Next Page Add-on.\n if (alm.addons.nextpage) {\n // Check that posts remain on load\n if (alm.listing.querySelector('.alm-nextpage') && !alm.addons.paging) {\n nextpage_pages = alm.listing.querySelectorAll('.alm-nextpage'); // All Next Page Items.\n if (nextpage_pages) {\n nextpage_first = nextpage_pages[0];\n nextpage_total = nextpage_first.dataset.totalPosts ? parseInt(nextpage_first.dataset.totalPosts) : (_alm35 = alm) === null || _alm35 === void 0 || (_alm35 = _alm35.localize) === null || _alm35 === void 0 ? void 0 : _alm35.total_posts; // Disable if last page loaded\n if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.page) === nextpage_total) {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n }\n if (alm.resultsText) {\n _modules_resultsText__WEBPACK_IMPORTED_MODULE_29__.almInitResultsText(alm, 'nextpage');\n }\n (0,_modules_tableofcontents__WEBPACK_IMPORTED_MODULE_31__.tableOfContents)(alm, alm.init, true);\n }\n\n // WooCommerce Add-on.\n if (alm.addons.woocommerce) {\n (0,_addons_woocommerce__WEBPACK_IMPORTED_MODULE_12__.wooInit)(alm);\n if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) {\n alm.AjaxLoadMore.triggerDone(); // Done if `paged is less than `pages`.\n }\n }\n\n // Elementor Add-on.\n if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {\n (0,_addons_elementor__WEBPACK_IMPORTED_MODULE_4__.elementorInit)(alm);\n if (!alm.addons.elementor_next_page) {\n alm.AjaxLoadMore.triggerDone(); // Done if `elementor_next_page` is false.\n }\n }\n\n // Window Load.\n alm.window.addEventListener('load', function () {\n // Masonry & Preloaded.\n if (alm.transition === 'masonry' && alm.addons.preloaded) {\n // Wrap almMasonry in anonymous async/await function\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {\n return _regeneratorRuntime().wrap(function _callee11$(_context11) {\n while (1) switch (_context11.prev = _context11.next) {\n case 0:\n _context11.next = 2;\n return (0,_modules_masonry__WEBPACK_IMPORTED_MODULE_27__.almMasonry)(alm, true, false);\n case 2:\n alm.masonry.init = false;\n case 3:\n case \"end\":\n return _context11.stop();\n }\n }, _callee11);\n }))()[\"catch\"](function () {\n console.error('There was an error with ALM Masonry');\n });\n }\n\n // Filters, Facets & Preloaded Facets\n if (alm.addons.preloaded && alm.addons.filters && alm.facets) {\n if (typeof almFiltersFacets === 'function') {\n var _alm36;\n var facets = (_alm36 = alm) === null || _alm36 === void 0 || (_alm36 = _alm36.localize) === null || _alm36 === void 0 ? void 0 : _alm36.facets;\n if (facets) {\n window.almFiltersFacets(facets);\n }\n }\n }\n\n // Window Load Callback.\n if (typeof almOnLoad === 'function') {\n window.almOnLoad(alm); // eslint-disable-line\n }\n });\n\n (0,_addons_preloaded__WEBPACK_IMPORTED_MODULE_8__.setPreloadedParams)(alm); // Set preloaded params.\n case 13:\n case \"end\":\n return _context12.stop();\n }\n }, _callee12);\n }));\n\n /**\n * Handle error messages.\n *\n * @param {string} error The error message.\n * @param {string} location The location the error occured.\n * @since 2.6.0\n */\n alm.AjaxLoadMore.error = function (error) {\n var location = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n alm.loading = false;\n if (!alm.addons.paging) {\n alm.button.classList.remove('loading');\n alm.AjaxLoadMore.resetBtnText();\n }\n console.warn('Error: ', error);\n if (error.response) {\n // The request was made and the server responded with a status code that falls out of the range of 2xx.\n console.error('Error Msg: ', error.message);\n } else if (error.request) {\n // The request was made but no response was received.\n console.error(error.request);\n } else {\n // Something happened in setting up the request that triggered an Error.\n console.error('Error Msg: ', error.message);\n }\n if (location) {\n console.error('ALM Error started in ' + location);\n }\n if (error.config) {\n console.error('ALM Error Debug: ', error.config);\n }\n };\n\n /**\n * Update Current Page.\n * Note: Callback function triggered from Paging add-on.\n *\n * @param {number} current Current page number.\n * @param {Object} obj Optional object (Deprecated).\n * @param {Object} alm The ALM object.\n * @since 2.7.0\n */\n window.almUpdateCurrentPage = function (current, obj, alm) {\n // eslint-disable-line\n alm.page = current;\n alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on\n\n var target = alm.listing;\n var data = target === null || target === void 0 ? void 0 : target.innerHTML; // Get content\n\n if (alm.addons.paging_init && alm.addons.preloaded) {\n // Paging + Preloaded Firstrun.\n alm.addons.preloaded_amount = 0; // Reset preloaded_amount param.\n alm.AjaxLoadMore.pagingPreloadedInit(data);\n alm.addons.paging_init = false;\n alm.init = false;\n } else if (alm.addons.paging_init && alm.addons.nextpage) {\n // Paging + Next Page on firstrun.\n alm.AjaxLoadMore.pagingNextpageInit();\n alm.addons.paging_init = false;\n alm.init = false;\n } else {\n // Standard Paging\n alm.AjaxLoadMore.loadPosts();\n }\n };\n\n /**\n * Get the parent ALM container.\n *\n * @return {HTMLElement} The ALM listing container.\n * @since 2.7.0\n */\n window.almGetParentContainer = function () {\n var _alm37;\n return (_alm37 = alm) === null || _alm37 === void 0 ? void 0 : _alm37.listing;\n };\n\n /**\n * Returns the current ALM obj.\n *\n * @param {string} obj The ALM object to return.\n * @return {Object} The ALM object.\n * @since 2.7.0\n */\n window.almGetObj = function () {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n if (obj) {\n return alm[obj]; // Return specific param.\n }\n\n return alm; // Return the entire alm object\n };\n\n /**\n * Trigger ajaxloadmore from any element on page.\n *\n * @since 2.12.0\n */\n window.almTriggerClick = function () {\n alm.button.click();\n };\n\n // Delay to prevent immediate loading of posts on initial page load via scroll.\n setTimeout(function () {\n alm.proceed = true;\n alm.AjaxLoadMore.scrollSetup();\n }, 1000);\n\n // Init Ajax Load More\n alm.AjaxLoadMore.init();\n };\n\n // End ajaxloadmore\n\n /**\n * Initiate instance of Ajax load More\n *\n * @param {HTMLElement} el The ALM element.\n * @param {number} id The ALM instance ID.\n * @since 5.0\n */\n window.almInit = function (el) {\n var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n new ajaxloadmore(el, id);\n };\n\n /**\n * Initiate Ajax load More if div is present on screen\n *\n * @since 2.1.2\n */\n var alm_instances = document.querySelectorAll('.ajax-load-more-wrap');\n if (alm_instances.length) {\n _toConsumableArray(alm_instances).forEach(function (alm, index) {\n new ajaxloadmore(alm, index);\n });\n }\n})();\n\n/**\n * Filter an Ajax Load More instance.\n *\n * @param {string} transition The transition type.\n * @param {string} speed The speed of the filter transition.\n * @param {Object} data Query data as an object.\n * @since 5.0\n */\nvar filter = function filter() {\n var transition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fade';\n var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '200';\n var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n if (!transition || !speed || !data) {\n return false;\n }\n alm_is_filtering = true;\n (0,_modules_filtering__WEBPACK_IMPORTED_MODULE_25__[\"default\"])(transition, speed, data, 'filter');\n};\n\n/**\n * Reset an Ajax Load More instance.\n *\n * @since 5.3.8\n * @param {Object} props The ALM props as an object.\n */\nvar reset = function reset() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var data = {};\n alm_is_filtering = true;\n if (props && props.target) {\n data = {\n target: target\n };\n }\n if (props && props.type === 'woocommerce') {\n // WooCommerce\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {\n var instance, settings;\n return _regeneratorRuntime().wrap(function _callee13$(_context13) {\n while (1) switch (_context13.prev = _context13.next) {\n case 0:\n instance = document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo=\"true\"]'); // Get ALM instance\n _context13.next = 3;\n return (0,_addons_woocommerce__WEBPACK_IMPORTED_MODULE_12__.wooReset)();\n case 3:\n settings = _context13.sent;\n // Get WooCommerce `settings` via Ajax\n if (settings) {\n instance.dataset.wooSettings = settings; // Update data atts\n (0,_modules_filtering__WEBPACK_IMPORTED_MODULE_25__[\"default\"])('fade', '100', data, 'filter');\n }\n case 5:\n case \"end\":\n return _context13.stop();\n }\n }, _callee13);\n }))()[\"catch\"](function () {\n console.warn('Ajax Load More: There was an issue resetting the Ajax Load More instance.');\n });\n } else {\n // Standard ALM\n (0,_modules_filtering__WEBPACK_IMPORTED_MODULE_25__[\"default\"])('fade', '200', data, 'filter');\n }\n};\n\n/**\n * Get the total post count in the current query by ALM instance ID.\n * Note: Uses localized ALM variables.\n *\n * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php\n * @param {string} id An optional Ajax Load More ID.\n * @return {number} The results from the localized variable.\n */\nvar getPostCount = function getPostCount() {\n var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_17__[\"default\"])('post_count', id);\n};\n\n/**\n * Get the total number of posts by ALM instance ID.\n * Note: Uses localized ALM variables.\n *\n * @param {string} id An optional Ajax Load More ID.\n * @return {number} The results from the localized variable.\n */\nvar getTotalPosts = function getTotalPosts() {\n var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_17__[\"default\"])('total_posts', id);\n};\n\n/**\n * Get the total posts remaining in the current query by ALM instance ID.\n * Note: Uses localized ALM variables.\n *\n * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php\n * @param {string} id An optional Ajax Load More ID.\n * @return {number} The total remaining posts.\n */\nvar getTotalRemaining = function getTotalRemaining() {\n var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_17__[\"default\"])('remaining', id);\n};\n\n/**\n * Track Page Views and Analytics\n *\n * @since 5.0\n * @param {string} type The add-on type that is triggering the analytics.\n */\nvar analytics = function analytics() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var _window$location = window.location,\n _window$location$path = _window$location.pathname,\n pathname = _window$location$path === void 0 ? '' : _window$location$path,\n _window$location$sear = _window$location.search,\n search = _window$location$sear === void 0 ? '' : _window$location$sear;\n\n /**\n * ALM Callback Function (URL Change)\n *\n * @see https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/#url-update\n */\n if (typeof almUrlUpdate === 'function') {\n window.almUrlUpdate(pathname + search, type);\n }\n\n /**\n * ALM Callback Function\n */\n if (typeof almAnalytics === 'function') {\n window.almAnalytics(pathname + search, type);\n }\n};\n\n/**\n * Trigger Ajax Load More from other events.\n *\n * @since 5.0\n * @param {Element} instance The HTML element.\n */\nvar start = function start(instance) {\n if (!instance) {\n return false;\n }\n window.almInit(instance);\n};\n\n/**\n * Scroll window to position (global function).\n *\n * @since 5.0\n * @param {string} position The position to scroll.\n */\nvar almScroll = function almScroll(position) {\n if (!position) {\n return false;\n }\n window.scrollTo({\n top: position,\n behavior: 'smooth'\n });\n};\n\n/**\n * Get the current top/left coordinates of an element relative to the document.\n *\n * @since 5.0\n * @param {HTMLElement} el The HTML element.\n * @return {Object} The top/left coordinates.\n */\nvar getOffset = function getOffset() {\n var el = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n if (!el) {\n return false;\n }\n var rect = el.getBoundingClientRect();\n var scrollLeft = window.scrollX || document.documentElement.scrollLeft;\n var scrollTop = window.scrollY || document.documentElement.scrollTop;\n return {\n top: rect.top + scrollTop,\n left: rect.left + scrollLeft\n };\n};\n\n/**\n * Trigger a click event to load Ajax Load More content.\n *\n * @param {string} id The Ajax Load More ID.\n */\nvar click = function click() {\n var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var alm = document.querySelector('.ajax-load-more-wrap');\n var button = '';\n if (!id && alm) {\n // Default ALM element.\n button = alm.querySelector('button.alm-load-more-btn');\n if (button) {\n button.click();\n }\n } else {\n // Ajax Load More by ID.\n alm = document.querySelector(\".ajax-load-more-wrap[data-id=\\\"\".concat(id, \"\\\"]\"));\n if (alm) {\n button = alm.querySelector('button.alm-load-more-btn');\n if (button) {\n button.click();\n }\n }\n }\n};\n\n/**\n * Load ALM inside the WP Block Editor.\n *\n * @since 7.1.0\n * @param {Element} instance The HTML element.\n */\nvar wpblock = function wpblock(instance) {\n var listing = instance.querySelector('.alm-listing');\n if (!listing || instance.dataset.blockLoaded === 'true') {\n return; // Exit if does not exist or block already loaded.\n }\n\n instance.dataset.blockLoaded = 'true';\n listing.dataset.scroll = 'false'; // Remove scroll.\n start(instance);\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/ajax-load-more.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/api.js": -/*!******************************************!*\ - !*** ./src/frontend/js/functions/api.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ api: function() { return /* binding */ api; }\n/* harmony export */ });\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/lib/axios.js\");\n\nvar _alm_localize = alm_localize,\n rest_api = _alm_localize.rest_api,\n rest_nonce = _alm_localize.rest_nonce;\n\n/*\n * Create a Api object with Axios and configure it for the WordPRess Rest API.\n *\n * @see https://axios-http.com/docs/instance\n */\nvar api = axios__WEBPACK_IMPORTED_MODULE_0__[\"default\"].create({\n baseURL: rest_api,\n headers: {\n 'content-type': 'application/json',\n 'X-WP-Nonce': rest_nonce\n }\n});\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/api.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/constants.js": -/*!************************************************!*\ - !*** ./src/frontend/js/functions/constants.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ API_DATA_SHAPE: function() { return /* binding */ API_DATA_SHAPE; },\n/* harmony export */ EXCLUDED_NODES: function() { return /* binding */ EXCLUDED_NODES; }\n/* harmony export */ });\nvar EXCLUDED_NODES = ['#text', '#comment'];\nvar API_DATA_SHAPE = {\n html: '',\n meta: {\n postcount: 0,\n totalposts: 0\n }\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/constants.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/dispatchScrollEvent.js": -/*!**********************************************************!*\ - !*** ./src/frontend/js/functions/dispatchScrollEvent.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ dispatchScrollEvent; }\n/* harmony export */ });\n/**\n * Dispatch a window scroll event.\n *\n * @param {boolean} delay Should this be delayed.\n * @since 5.5\n */\nfunction dispatchScrollEvent() {\n var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (typeof Event === 'function') {\n setTimeout(function () {\n window.dispatchEvent(new CustomEvent('scroll'));\n }, delay ? 150 : 1);\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/dispatchScrollEvent.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/displayResults.js": -/*!*****************************************************!*\ - !*** ./src/frontend/js/functions/displayResults.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ displayResults; },\n/* harmony export */ displayPagingResults: function() { return /* binding */ displayPagingResults; }\n/* harmony export */ });\n/* harmony import */ var _srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./srcsetPolyfill */ \"./src/frontend/js/functions/srcsetPolyfill.js\");\n/* harmony import */ var _modules_lazyImages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modules/lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ \"./src/frontend/js/functions/constants.js\");\n\n\n\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n/**\n * Append and display Ajax results to the ALM container.\n *\n * @param {Object} alm The ALM object.\n * @param {Array} nodes The HTML nodes to append.\n * @return {Promise} The Promise object.\n */\nfunction displayResults(alm, nodes) {\n var container = alm.listing,\n transition = alm.transition,\n speed = alm.speed,\n images_loaded = alm.images_loaded;\n return new Promise(function (resolve) {\n if (!container || !nodes) {\n resolve(true);\n return;\n }\n var useTransition = transition === 'fade' ? true : false;\n\n // Add each node to the alm listing container.\n nodes.forEach(function (node) {\n var nodeName = node.nodeName.toLowerCase();\n if (useTransition || images_loaded) {\n node.style.opacity = 0;\n if (useTransition) {\n node.style.transition = \"all \".concat(speed, \"ms ease\");\n }\n }\n\n /**\n * Do not append elements that are not actual element nodes (i.e. #text node).\n * Add item if not in exclude array.\n */\n if (_constants__WEBPACK_IMPORTED_MODULE_2__.EXCLUDED_NODES.indexOf(nodeName) === -1) {\n container.appendChild(node);\n }\n });\n\n // Run srcSet polyfill.\n (0,_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(container, alm.ua);\n\n // Lazy load images.\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_1__.lazyImages)(alm);\n\n // Display the results.\n if (images_loaded) {\n imagesLoaded(container, function () {\n display(alm, nodes, useTransition);\n });\n } else {\n display(alm, nodes, useTransition);\n }\n resolve(true);\n });\n}\n\n/**\n * Append and display Ajax results to the Paging container.\n *\n * @param {Object} alm The ALM object.\n * @param {Array} nodes The HTML nodes to append.\n * @return {Promise} The Promise object.\n */\nfunction displayPagingResults(alm, nodes) {\n var addons = alm.addons;\n var container = addons.paging_container;\n return new Promise(function (resolve) {\n if (!container || !nodes) {\n resolve(true);\n return;\n }\n\n // Clear contents of Paging container.\n container.style.opacity = 0;\n container.innerHTML = '';\n\n // Add each node to the paging container.\n nodes.forEach(function (node) {\n var nodeName = node.nodeName.toLowerCase();\n /**\n * Do not append elements that are not actual element nodes (i.e. #text node).\n * Add item if not in exclude array.\n */\n if (_constants__WEBPACK_IMPORTED_MODULE_2__.EXCLUDED_NODES.indexOf(nodeName) === -1) {\n container.appendChild(node);\n }\n });\n\n // Run srcSet polyfill.\n (0,_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(container, alm.ua);\n\n // Lazy load images.\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_1__.lazyImages)(alm);\n resolve(true);\n });\n}\n\n/**\n * Display the loaded results via CSS transition.\n *\n * @param {Object} alm The ALM object.\n * @param {Array} nodes The HTML nodes to append.\n * @param {boolean} useTransition Use CSS transition.\n */\nfunction display(alm, nodes) {\n var useTransition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var delay = alm.transition_delay,\n images_loaded = alm.images_loaded;\n var offset = useTransition ? parseInt(delay) : 0; // Delay offset timing.\n\n if (nodes) {\n setTimeout(function () {\n if (useTransition || images_loaded) {\n nodes.forEach(function (node, index) {\n setTimeout(function () {\n node.style.opacity = 1;\n }, index * offset);\n });\n }\n alm.AjaxLoadMore.transitionEnd();\n }, 50);\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/displayResults.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/formatHTML.js": -/*!*************************************************!*\ - !*** ./src/frontend/js/functions/formatHTML.js ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ formatHTML; }\n/* harmony export */ });\n/* harmony import */ var _addons_filters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addons/filters */ \"./src/frontend/js/addons/filters.js\");\n/* harmony import */ var _addons_seo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addons/seo */ \"./src/frontend/js/addons/seo.js\");\n/* harmony import */ var _addons_singleposts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addons/singleposts */ \"./src/frontend/js/addons/singleposts.js\");\n/* harmony import */ var _functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../functions/stripEmptyNodes */ \"./src/frontend/js/functions/stripEmptyNodes.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n\n\n/**\n * Create data attributes for Single Posts, SEO and Filter paged results.\n *\n * @param {Object} alm The ALM object.\n * @param {Array} elements The element HTML nodes.\n * @return {Array} The modified elements.\n * @since 7.0.0\n */\nfunction formatHTML(alm, elements) {\n var _elements;\n if (!((_elements = elements) !== null && _elements !== void 0 && _elements.length)) {\n return [];\n }\n var addons = alm.addons,\n page = alm.page,\n posts_per_page = alm.posts_per_page,\n init = alm.init,\n start_page = alm.start_page,\n container_type = alm.container_type;\n\n // Single Posts.\n if (addons !== null && addons !== void 0 && addons.single_post) {\n var singleWrap = document.createElement('div');\n singleWrap.innerHTML = alm.html;\n singleWrap = (0,_addons_singleposts__WEBPACK_IMPORTED_MODULE_2__.addSinglePostsAttributes)(alm, singleWrap);\n singleWrap = (0,_addons_singleposts__WEBPACK_IMPORTED_MODULE_2__.getNestedNextPageElement)(singleWrap);\n\n // Single Post Preview.\n if (addons !== null && addons !== void 0 && addons.single_post_preview && addons !== null && addons !== void 0 && addons.single_post_preview_data && typeof almSinglePostCreatePreview === 'function') {\n var singlePreview = almSinglePostCreatePreview(singleWrap, addons.single_post_id, addons.single_post_preview_data);\n if (singlePreview) {\n singleWrap.replaceChildren(singlePreview);\n }\n }\n alm.last_loaded = [singleWrap];\n return [singleWrap];\n }\n\n // Exit if not SEO or Filters.\n if (!(addons !== null && addons !== void 0 && addons.seo) && !(addons !== null && addons !== void 0 && addons.filters)) {\n return elements;\n }\n var current = parseInt(page) + 1;\n current = addons !== null && addons !== void 0 && addons.preloaded ? current + 1 : current;\n\n // If init and SEO or Filter start_page, set pagenum to 1.\n if (init && (parseInt(start_page) > 1 || (addons === null || addons === void 0 ? void 0 : addons.filters_startpage) > 1)) {\n current = 1;\n }\n\n // Call to Action add-on: Add 1 if CTA is true.\n var per_page = addons !== null && addons !== void 0 && addons.cta ? parseInt(posts_per_page) + 1 : parseInt(posts_per_page);\n\n // If table, format the return data.\n if (container_type === 'table') {\n elements = formatTable(elements);\n }\n\n /**\n * Split elements array into individual pages.\n */\n var pages = [];\n for (var i = 0; i < ((_elements2 = elements) === null || _elements2 === void 0 ? void 0 : _elements2.length); i += per_page) {\n var _elements2;\n pages.push(elements.slice(i, per_page + i));\n }\n\n /**\n * Loop pages and modify first element in return data.\n */\n if (pages) {\n for (var _i = 0; _i < pages.length; _i++) {\n var index = _i > 0 ? _i * per_page : 0;\n if (elements[index]) {\n if (addons !== null && addons !== void 0 && addons.seo) {\n elements[index] = (0,_addons_seo__WEBPACK_IMPORTED_MODULE_1__.addSEOAttributes)(alm, elements[index], _i + current);\n }\n if (addons !== null && addons !== void 0 && addons.filters) {\n elements[index] = (0,_addons_filters__WEBPACK_IMPORTED_MODULE_0__.addFiltersAttributes)(alm, elements[index], _i + current);\n }\n }\n }\n }\n return elements;\n}\n\n/**\n * Format return table data.\n *\n * @param {Array} elements The element HTML nodes.\n * @return {Array} The modified elements.\n */\nfunction formatTable() {\n var _elements3;\n var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!elements) {\n return [];\n }\n var tableChildren = (_elements3 = elements) !== null && _elements3 !== void 0 && _elements3.length ? elements[0].childNodes : [];\n if (tableChildren) {\n elements = (0,_functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_toConsumableArray(tableChildren));\n }\n return elements;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/formatHTML.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/getButtonURL.js": -/*!***************************************************!*\ - !*** ./src/frontend/js/functions/getButtonURL.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getButtonURL: function() { return /* binding */ getButtonURL; },\n/* harmony export */ setButtonAtts: function() { return /* binding */ setButtonAtts; }\n/* harmony export */ });\n/**\n * Get the URL for Load More button.\n *\n * @param {Object} alm The Ajax Load More object.\n * @param {string} rel The type of load more, `next` or `previous`.\n * @since 5.4.0\n */\nfunction getButtonURL(alm) {\n var _button;\n var rel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'next';\n if (!alm || !alm.trigger) {\n return false;\n }\n var button = alm.trigger.querySelector('.alm-load-more-btn');\n if (rel === 'prev') {\n button = document.querySelector('.alm-load-more-btn--prev');\n }\n return ((_button = button) === null || _button === void 0 || (_button = _button.dataset) === null || _button === void 0 ? void 0 : _button.url) || '';\n}\n\n/**\n * Set button dataset attributes.\n *\n * @param {Element} button The HTML element.\n * @param {number} page The current page number.\n * @param {string} url The URL for updating.\n */\nfunction setButtonAtts(button, page, url) {\n if (!button || page === 0) {\n return;\n }\n if ((button === null || button === void 0 ? void 0 : button.rel) === 'prev') {\n button.href = url;\n }\n\n // Set page & URL attributes.\n button.dataset.page = page;\n button.dataset.url = url ? url : '';\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/getButtonURL.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/getParameterByName.js": -/*!*********************************************************!*\ - !*** ./src/frontend/js/functions/getParameterByName.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ getParameterByName; }\n/* harmony export */ });\n/**\n * Return a query param by name.\n *\n * @param {string} name The query param name.\n * @param {string} url The URL.\n * @return {string} The query param value.\n */\nfunction getParameterByName(name, url) {\n if (!url) url = window.location.href;\n name = name.replace(/[\\[\\]]/g, '\\\\$&');\n var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)');\n var results = regex.exec(url);\n if (!results) {\n return null;\n }\n if (!results[2]) {\n return '';\n }\n return decodeURIComponent(results[2].replace(/\\+/g, ' '));\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/getParameterByName.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/getQueryVariable.js": -/*!*******************************************************!*\ - !*** ./src/frontend/js/functions/getQueryVariable.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ getQueryVariable; }\n/* harmony export */ });\n/**\n * Get a query variable from location querystring\n *\n * @param {string} variable\n * @since 5.3.4\n */\nfunction getQueryVariable(variable) {\n var query = window.location.search.substring(1);\n var vars = query.split('&');\n for (var i = 0; i < vars.length; i++) {\n var pair = vars[i].split('=');\n if (decodeURIComponent(pair[0]) === variable) {\n return decodeURIComponent(pair[1]);\n }\n }\n return false;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/getQueryVariable.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/getScrollPercentage.js": -/*!**********************************************************!*\ - !*** ./src/frontend/js/functions/getScrollPercentage.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ getScrollPercentage; }\n/* harmony export */ });\n/**\n * Get the scroll distance in pixels from a percentage.\n *\n * @param {Object} alm The Ajax Load More object.\n * @return {number} The new distance.\n * @since 5.2\n */\nfunction getScrollPercentage(alm) {\n if (!alm) {\n return false;\n }\n var is_negative = alm.scroll_distance_orig.toString().indexOf('-') === -1 ? false : true; // Is this a negative number\n var raw_distance = alm.scroll_distance_orig.toString().replace('-', '').replace('%', ''); // Remove - and perc\n var wh = alm.window.innerHeight; // window height\n var height = Math.floor(wh / 100 * parseInt(raw_distance)); // Do math to get distance\n var newdistance = is_negative ? \"-\".concat(height) : height; // Set the distance\n\n return parseInt(newdistance);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/getScrollPercentage.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/getTotals.js": -/*!************************************************!*\ - !*** ./src/frontend/js/functions/getTotals.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ getTotals; }\n/* harmony export */ });\n/**\n * Get the total posts remaining in the current query by ALM instance ID.\n * Note: Uses localized ALM variables.\n *\n * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php\n * @param {string} type The type of total to retrieve.\n * @param {string} id An optional Ajax Load More ID.\n * @return {number} A total post count.\n */\nfunction getTotals(type) {\n var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n // Get the ALM localized variable name.\n var localize_var = id ? \"ajax_load_more_\".concat(id.replace(/-/g, '_'), \"_vars\") : 'ajax_load_more_vars';\n\n // Get the localized value from the window object.\n var localized = window[localize_var];\n if (!localized) {\n return null;\n }\n\n // Deconstruct the object.\n var total_posts = localized.total_posts,\n post_count = localized.post_count,\n page = localized.page,\n pages = localized.pages;\n switch (type) {\n case 'total_posts':\n return total_posts ? parseInt(total_posts) : '';\n case 'post_count':\n return post_count ? parseInt(post_count) : '';\n case 'page':\n return page ? parseInt(page) : '';\n case 'pages':\n return pages ? parseInt(pages) : '';\n case 'remaining':\n if (!total_posts || !post_count) {\n return '';\n }\n return parseInt(total_posts) - parseInt(post_count);\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/getTotals.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/noResults.js": -/*!************************************************!*\ - !*** ./src/frontend/js/functions/noResults.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ noResults; }\n/* harmony export */ });\n/**\n * Set the results text if required.\n *\n * @param {Element} element Target HTML element\n * @param {string} html Text as HTML to display.\n * @since 5.1\n */\nfunction noResults(element) {\n var html = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n if (!html || !element) {\n return; // Exit if empty.\n }\n\n // Remove empty tags.\n html = html.replace(/(<\\/p>)+/g, '');\n\n // Is this a paging instance.\n var paging = element === null || element === void 0 ? void 0 : element.querySelector('.alm-paging-content');\n if (paging) {\n paging.innerHTML = html;\n } else {\n element.innerHTML = html;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/noResults.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/parsers.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/functions/parsers.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ domParser: function() { return /* binding */ domParser; },\n/* harmony export */ tableParser: function() { return /* binding */ tableParser; }\n/* harmony export */ });\n/* harmony import */ var _functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/stripEmptyNodes */ \"./src/frontend/js/functions/stripEmptyNodes.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n/**\n * Convert a plain text string into an array of HTML nodes.\n *\n * @param {string} html The HTML string\n * @param {string} type The element type.\n * @return {Array} The HTML nodes as an array.\n * @since 5.0\n */\nfunction domParser() {\n var _data$body;\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text/html';\n if (!html) {\n return [];\n }\n var parser = new DOMParser();\n var data = parser.parseFromString(html, type);\n var nodes = data === null || data === void 0 || (_data$body = data.body) === null || _data$body === void 0 ? void 0 : _data$body.childNodes;\n return nodes ? (0,_functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_toConsumableArray(nodes)) : [];\n}\n\n/**\n * Convert retun table data into an array of HTML elements.\n *\n * @param {string} html Plain text HTML.\n * @return {Array} Array of HTML elements.\n * @since 5.0\n */\nfunction tableParser() {\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n if (!html) {\n return [];\n }\n // Create table element and add results to table body.\n var tbody = document.createElement('tbody');\n tbody.innerHTML = html;\n return [tbody];\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/parsers.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/queryParams.js": -/*!**************************************************!*\ - !*** ./src/frontend/js/functions/queryParams.js ***! - \**************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getAjaxParams: function() { return /* binding */ getAjaxParams; },\n/* harmony export */ getRestAPIParams: function() { return /* binding */ getRestAPIParams; },\n/* harmony export */ getTypeParams: function() { return /* binding */ getTypeParams; }\n/* harmony export */ });\n/* harmony import */ var _addons_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addons/cache */ \"./src/frontend/js/addons/cache.js\");\n\n\n/**\n * Build the data object to send with the Ajax request.\n *\n * @param {Object} alm The ALM object.\n * @param {string} queryType The query type.\n * @return {Object} The data object.\n * @since 3.6\n */\nfunction getAjaxParams(alm, queryType) {\n var addons = alm.addons,\n extensions = alm.extensions;\n\n // Defaults\n var data = {\n action: 'alm_get_posts',\n query_type: queryType,\n id: alm.id,\n post_id: parseInt(alm.post_id),\n slug: alm.slug,\n canonical_url: encodeURIComponent(alm.canonical_url),\n posts_per_page: parseInt(alm.posts_per_page),\n page: parseInt(alm.page),\n offset: parseInt(alm.offset),\n post_type: alm.post_type,\n repeater: alm.repeater,\n seo_start_page: alm.start_page\n };\n\n // Addons & Extensions\n\n if (extensions.acf) {\n data.acf = getTypeParams(alm, 'acf');\n if (extensions.acf_field_type !== 'relationship') {\n data.action = 'alm_acf';\n }\n }\n if (addons.comments) {\n data.comments = getTypeParams(alm, 'comments');\n data.posts_per_page = addons.comments_per_page;\n data.action = 'alm_comments';\n }\n if (addons.cta) {\n data.cta = getTypeParams(alm, 'cta');\n }\n if (addons.filters) {\n data.filters = addons.filters;\n data.filters_startpage = addons.filters_startpage;\n data.filters_target = addons.filters_target;\n data.facets = alm.facets;\n }\n if (addons.nextpage) {\n data.nextpage = getTypeParams(alm, 'nextpage');\n data.action = 'alm_nextpage';\n }\n if (addons.paging) {\n data.paging = addons.paging;\n }\n if (addons.preloaded) {\n data.preloaded = addons.preloaded;\n data.preloaded_amount = parseInt(addons.preloaded_amount);\n }\n if (addons.single_post) {\n data.single_post = getTypeParams(alm, 'single_post');\n }\n if (extensions.term_query) {\n data.term_query = getTypeParams(alm, 'term_query');\n data.action = 'alm_get_terms';\n }\n if (alm.extensions.users) {\n data.users = getTypeParams(alm, 'users');\n data.action = 'alm_users';\n }\n if (alm.theme_repeater) {\n data.theme_repeater = alm.theme_repeater;\n }\n\n // Query data params from ALM HTML element.\n if (alm.listing.dataset.lang) {\n data.lang = alm.listing.dataset.lang;\n }\n if (alm.listing.dataset.stickyPosts) {\n data.sticky_posts = alm.listing.dataset.stickyPosts;\n }\n if (alm.listing.dataset.postFormat) {\n data.post_format = alm.listing.dataset.postFormat;\n }\n if (alm.listing.dataset.category) {\n data.category = alm.listing.dataset.category;\n }\n if (alm.listing.dataset.categoryAnd) {\n data.category__and = alm.listing.dataset.categoryAnd;\n }\n if (alm.listing.dataset.categoryNotIn) {\n data.category__not_in = alm.listing.dataset.categoryNotIn;\n }\n if (alm.listing.dataset.tag) {\n data.tag = alm.listing.dataset.tag;\n }\n if (alm.listing.dataset.tagAnd) {\n data.tag__and = alm.listing.dataset.tagAnd;\n }\n if (alm.listing.dataset.tagNotIn) {\n data.tag__not_in = alm.listing.dataset.tagNotIn;\n }\n if (alm.listing.dataset.taxonomy) {\n data.taxonomy = alm.listing.dataset.taxonomy;\n }\n if (alm.listing.dataset.taxonomyTerms) {\n data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;\n }\n if (alm.listing.dataset.taxonomyOperator) {\n data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;\n }\n if (alm.listing.dataset.taxonomyIncludeChildren) {\n data.taxonomy_include_children = alm.listing.dataset.taxonomyIncludeChildren;\n }\n if (alm.listing.dataset.taxonomyRelation) {\n data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;\n }\n if (alm.listing.dataset.sortKey) {\n data.sort_key = alm.listing.dataset.sortKey;\n }\n if (alm.listing.dataset.metaKey) {\n data.meta_key = alm.listing.dataset.metaKey;\n }\n if (alm.listing.dataset.metaValue) {\n data.meta_value = alm.listing.dataset.metaValue;\n }\n if (alm.listing.dataset.metaCompare) {\n data.meta_compare = alm.listing.dataset.metaCompare;\n }\n if (alm.listing.dataset.metaRelation) {\n data.meta_relation = alm.listing.dataset.metaRelation;\n }\n if (alm.listing.dataset.metaType) {\n data.meta_type = alm.listing.dataset.metaType;\n }\n if (alm.listing.dataset.author) {\n data.author = alm.listing.dataset.author;\n }\n if (alm.listing.dataset.year) {\n data.year = alm.listing.dataset.year;\n }\n if (alm.listing.dataset.month) {\n data.month = alm.listing.dataset.month;\n }\n if (alm.listing.dataset.day) {\n data.day = alm.listing.dataset.day;\n }\n if (alm.listing.dataset.order) {\n data.order = alm.listing.dataset.order;\n }\n if (alm.listing.dataset.orderby) {\n data.orderby = alm.listing.dataset.orderby;\n }\n if (alm.listing.dataset.postStatus) {\n data.post_status = alm.listing.dataset.postStatus;\n }\n if (alm.listing.dataset.postIn) {\n data.post__in = alm.listing.dataset.postIn;\n }\n if (alm.listing.dataset.postNotIn) {\n data.post__not_in = alm.listing.dataset.postNotIn;\n }\n if (alm.listing.dataset.exclude) {\n data.exclude = alm.listing.dataset.exclude;\n }\n if (alm.listing.dataset.search) {\n data.search = alm.listing.dataset.search;\n }\n if (alm.listing.dataset.s) {\n data.search = alm.listing.dataset.s;\n }\n if (alm.listing.dataset.customArgs) {\n data.custom_args = alm.listing.dataset.customArgs;\n }\n if (alm.listing.dataset.vars) {\n data.vars = alm.listing.dataset.vars;\n }\n\n // Cache Params\n\n if (addons.cache) {\n data.cache_id = addons.cache_id;\n data.cache_logged_in = addons.cache_logged_in;\n data.cache_slug = (0,_addons_cache__WEBPACK_IMPORTED_MODULE_0__.getCacheSlug)(alm, data);\n }\n return data;\n}\n\n/**\n * Build the query params for content types.\n *\n * @param {Object} alm The ALM object.\n * @param {string} type The query type.\n * @return {Object} The query params.\n */\nfunction getTypeParams(alm, type) {\n var addons = alm.addons,\n extensions = alm.extensions;\n switch (type) {\n case 'acf':\n return {\n acf: 'true',\n post_id: extensions.acf_post_id,\n field_type: extensions.acf_field_type,\n field_name: extensions.acf_field_name,\n parent_field_name: extensions.acf_parent_field_name,\n row_index: extensions.acf_row_index\n };\n case 'comments':\n return {\n comments: 'true',\n post_id: addons.comments_post_id,\n per_page: addons.comments_per_page,\n type: addons.comments_type,\n style: addons.comments_style,\n template: addons.comments_template,\n callback: addons.comments_callback\n };\n case 'cta':\n return {\n cta: 'true',\n cta_position: addons.cta_position,\n cta_repeater: addons.cta_repeater,\n cta_theme_repeater: addons.cta_theme_repeater\n };\n case 'nextpage':\n return {\n nextpage: 'true',\n urls: addons.nextpage_urls,\n scroll: addons.nextpage_scroll,\n post_id: addons.nextpage_post_id,\n startpage: addons.nextpage_startpage,\n nested: alm.nested\n };\n case 'single_post':\n return {\n single_post: 'true',\n id: addons.single_post_id,\n slug: addons.single_post_slug\n };\n case 'term_query':\n return {\n term_query: 'true',\n taxonomy: extensions.term_query_taxonomy,\n hide_empty: extensions.term_query_hide_empty,\n number: extensions.term_query_number\n };\n case 'users':\n return {\n users: 'true',\n role: alm.listing.dataset.usersRole,\n include: alm.listing.dataset.usersInclude,\n exclude: alm.listing.dataset.usersExclude,\n per_page: alm.posts_per_page,\n order: alm.listing.dataset.usersOrder,\n orderby: alm.listing.dataset.usersOrderby\n };\n }\n}\n\n/**\n * Build the REST API data object to send with REST API request.\n *\n * @param {Object} alm The ALM object.\n * @return {Object} The data object.\n * @since 3.6\n */\nfunction getRestAPIParams(alm) {\n var data = {\n id: alm.id,\n post_id: parseInt(alm.post_id),\n posts_per_page: alm.posts_per_page,\n page: alm.page,\n offset: alm.offset,\n slug: alm.slug,\n canonical_url: encodeURIComponent(alm.canonical_url),\n post_type: alm.post_type,\n post_format: alm.listing.dataset.postFormat,\n category: alm.listing.dataset.category,\n category__not_in: alm.listing.dataset.categoryNotIn,\n tag: alm.listing.dataset.tag,\n tag__not_in: alm.listing.dataset.tagNotIn,\n taxonomy: alm.listing.dataset.taxonomy,\n taxonomy_terms: alm.listing.dataset.taxonomyTerms,\n taxonomy_operator: alm.listing.dataset.taxonomyOperator,\n taxonomy_relation: alm.listing.dataset.taxonomyRelation,\n meta_key: alm.listing.dataset.metaKey,\n meta_value: alm.listing.dataset.metaValue,\n meta_compare: alm.listing.dataset.metaCompare,\n meta_relation: alm.listing.dataset.metaRelation,\n meta_type: alm.listing.dataset.metaType,\n author: alm.listing.dataset.author,\n year: alm.listing.dataset.year,\n month: alm.listing.dataset.month,\n day: alm.listing.dataset.day,\n post_status: alm.listing.dataset.postStatus,\n order: alm.listing.dataset.order,\n orderby: alm.listing.dataset.orderby,\n post__in: alm.listing.dataset.postIn,\n post__not_in: alm.listing.dataset.postNotIn,\n search: alm.listing.dataset.search,\n s: alm.listing.dataset.s,\n custom_args: alm.listing.dataset.customArgs,\n vars: alm.listing.dataset.vars,\n lang: alm.lang,\n preloaded: alm.addons.preloaded,\n preloaded_amount: alm.addons.preloaded_amount,\n seo_start_page: alm.start_page\n };\n return data;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/queryParams.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/setContentParams.js": -/*!*******************************************************!*\ - !*** ./src/frontend/js/functions/setContentParams.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setContentContainersParams: function() { return /* binding */ setContentContainersParams; }\n/* harmony export */ });\n/**\n * Set accessibility attributes on the containers.\n *\n * @param {Element} container The container element.\n * @param {Element} almListing The Ajax Load More container.\n */\nfunction setContentContainersParams(container, almListing) {\n container.setAttribute('aria-live', 'polite');\n container.setAttribute('aria-atomic', 'true');\n almListing.removeAttribute('aria-live');\n almListing.removeAttribute('aria-atomic');\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/setContentParams.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/setFocus.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/functions/setFocus.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ setFocus; }\n/* harmony export */ });\n/**\n * Set user focus to improve accessibility after load events.\n *\n * @param {Object} alm ALM object.\n * @param {Element} element The element to focus on.\n * @param {number} total The total number of posts returned.\n * @param {boolean} filtering Is this a filtering event.\n * @since 5.1\n */\nfunction setFocus(alm) {\n var _alm_localize;\n var element = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var total = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!((_alm_localize = alm_localize) !== null && _alm_localize !== void 0 && _alm_localize.a11y_focus) || !element) {\n return;\n }\n\n // WooCommerce||ELementor Add-ons.\n if (alm.addons.woocommerce || alm.addons.elementor) {\n moveFocus(false, false, element, false);\n return;\n }\n if (total < 1) {\n return; // Exit if no posts returned.\n }\n\n if (alm.addons.paging) {\n // Paging.\n moveFocus(alm.init, alm.addons.preloaded, alm.listing, filtering);\n } else if (alm.addons.single_post || alm.addons.nextpage) {\n // Single Posts || Next Page - Set `init` to false to trigger focus.\n moveFocus(false, alm.addons.preloaded, element, filtering);\n } else {\n // Standard.\n moveFocus(alm.init, alm.addons.preloaded, element, filtering);\n }\n}\n\n/**\n * Move user focus to latest elements that have been loaded.\n *\n * @param {boolean} init Initial run true or false.\n * @param {string} preloaded Preloaded true or false.\n * @param {Element} element The container HTML element.\n * @param {boolean} filtering Filtering true or false.\n * @since 5.1\n */\n\nfunction moveFocus() {\n var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var preloaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'false';\n var element = arguments.length > 2 ? arguments[2] : undefined;\n var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!filtering) {\n if ((init || !element) && preloaded !== 'true') {\n return; // Exit if first run\n }\n }\n\n element.setAttribute('tabIndex', '-1'); // Set tabIndex.\n element.style.outline = 'none'; // Set element outline.\n\n // Add slight delay for elements to settle into DOM.\n setTimeout(function () {\n element.focus({\n preventScroll: true\n });\n }, 25);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/setFocus.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/srcsetPolyfill.js": -/*!*****************************************************!*\ - !*** ./src/frontend/js/functions/srcsetPolyfill.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ srcsetPolyfill; }\n/* harmony export */ });\n/**\n * A srcset polyfill to get Masonry and ImagesLoaded working with Safari and Firefox.\n *\n * @param {HTMLElement} container Container HTML element.\n * @param {string} ua The user-agent string.\n * @since 5.0.2\n */\nfunction srcsetPolyfill() {\n var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n if (!container) {\n return false; // Exit if no container.\n }\n\n // Exit if useragent is Chrome, Safari or Windows.\n if (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') !== -1 || ua.indexOf('Firefox') > -1 || ua.indexOf('Windows') > -1) {\n return false;\n }\n\n // Get all images.\n var imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)');\n\n // Loop images.\n for (var i = 0; i < imgs.length; i++) {\n var img = imgs[i];\n img.classList.add('alm-loaded');\n img.outerHTML = img.outerHTML;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/srcsetPolyfill.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/stripEmptyNodes.js": -/*!******************************************************!*\ - !*** ./src/frontend/js/functions/stripEmptyNodes.js ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./src/frontend/js/functions/constants.js\");\n\n\n/**\n * Remove empty HTML nodes from array of nodes.\n * Filter out nodes by nodeName.\n *\n * @param {Array} nodes Array of HTML nodes\n * @return {Array} The filtered array of HTML nodes\n * @since 5.1.3\n */\nvar stripEmptyNodes = function stripEmptyNodes() {\n var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return (nodes === null || nodes === void 0 ? void 0 : nodes.length) && nodes.filter(function (node) {\n return _constants__WEBPACK_IMPORTED_MODULE_0__.EXCLUDED_NODES.indexOf(node.nodeName.toLowerCase()) === -1;\n });\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (stripEmptyNodes);\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/stripEmptyNodes.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/windowResize.js": -/*!***************************************************!*\ - !*** ./src/frontend/js/functions/windowResize.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ triggerWindowResize; }\n/* harmony export */ });\n/**\n * Trigger a window resize browser function.\n *\n * @since 5.3.1\n */\nfunction triggerWindowResize() {\n if (typeof Event === 'function') {\n // Modern browsers.\n window.dispatchEvent(new Event('resize'));\n } else {\n // Executed on old browsers and especially IE.\n var resizeEvent = window.document.createEvent('UIEvents');\n resizeEvent.initUIEvent('resize', true, false, window, 0);\n window.dispatchEvent(resizeEvent);\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/windowResize.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/almDebug.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/modules/almDebug.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ almDebug; }\n/* harmony export */ });\n/**\n * Display Ajax Load More debug results.\n *\n * @see https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug\n * @param {Object} alm ALM object.\n * @since 5.1.6\n */\nfunction almDebug(alm) {\n if (alm && alm.debug) {\n var obj = {\n query: alm.debug,\n localize: alm.localize\n };\n console.log('ALM Debug:', obj); // eslint-disable-line no-console\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/almDebug.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/fade.js": -/*!*****************************************!*\ - !*** ./src/frontend/js/modules/fade.js ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almFadeIn: function() { return /* binding */ almFadeIn; },\n/* harmony export */ almFadeOut: function() { return /* binding */ almFadeOut; }\n/* harmony export */ });\n/**\n * Fade element in.\n *\n * @param {HTMLElement} element The HTML element to fade in.\n * @param {number} speed The transition speed.\n * @return {Promise} The Promise object.\n */\nvar almFadeIn = function almFadeIn(element, speed) {\n return new Promise(function (resolve) {\n if (speed === 0) {\n element.style.opacity = 1;\n element.style.height = 'auto';\n resolve(true);\n } else {\n speed = speed / 10;\n var op = 0; // initial opacity\n var timer = setInterval(function () {\n if (op > 0.9) {\n element.style.opacity = 1;\n resolve(true);\n clearInterval(timer);\n }\n element.style.opacity = op;\n op += 0.1;\n }, speed);\n element.style.height = 'auto';\n }\n });\n};\n\n/**\n * Fade element out.\n *\n * @param {HTMLElement} element The HTML element to fade out.\n * @param {number} speed The transition speed.\n * @return {Promise} The Promise object.\n */\nvar almFadeOut = function almFadeOut(element, speed) {\n return new Promise(function (resolve) {\n speed = speed / 10;\n element.style.opacity = 0.5;\n var fadeEffect = setInterval(function () {\n if (element.style.opacity < 0.1) {\n element.style.opacity = 0;\n clearInterval(fadeEffect);\n resolve(true);\n } else {\n element.style.opacity -= 0.1;\n }\n }, speed);\n });\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/fade.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/filtering.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/filtering.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ almFilter; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\n/* harmony import */ var _tableofcontents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tableofcontents */ \"./src/frontend/js/modules/tableofcontents.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n/**\n * Filter an Ajax Load More instance.\n *\n * @param {string} transition Transition type.\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @since 2.6.1\n */\nfunction almFilter(transition) {\n var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 150;\n var data = arguments.length > 2 ? arguments[2] : undefined;\n var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'filter';\n if (data.target) {\n // Target has been specified.\n var alm = document.querySelectorAll('.ajax-load-more-wrap[data-id=\"' + data.target.toLowerCase() + '\"]');\n if (alm) {\n alm.forEach(function (element) {\n almFilterTransition(transition, speed, data, type, element);\n });\n }\n } else {\n // Target not specified.\n var _alm = document.querySelectorAll('.ajax-load-more-wrap');\n if (_alm) {\n _alm.forEach(function (element) {\n almFilterTransition(transition, speed, data, type, element);\n });\n }\n }\n (0,_tableofcontents__WEBPACK_IMPORTED_MODULE_1__.clearTOC)(); // Clear table of contents if required\n}\n\n/**\n * Transition Ajax Load More\n *\n * @param {string} transition Transition type.\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 2.13.1\n */\nfunction almFilterTransition(transition, speed, data, type, element) {\n if (transition === 'fade' || transition === 'masonry') {\n // Fade, Masonry transition\n\n switch (type) {\n case 'filter':\n element.classList.add('alm-is-filtering');\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeOut)(element, speed);\n break;\n }\n\n // Move to next function\n setTimeout(function () {\n almCompleteFilterTransition(speed, data, type, element);\n }, speed);\n } else {\n // No transition\n element.classList.add('alm-is-filtering');\n almCompleteFilterTransition(speed, data, type, element);\n }\n}\n\n/**\n * Complete the filter transition.\n *\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 3.3\n */\nfunction almCompleteFilterTransition(speed, data, type, element) {\n var btnWrap = element.querySelector('.alm-btn-wrap'); // Get `.alm-btn-wrap` element\n var listing = element.querySelectorAll('.alm-listing'); // Get `.alm-listing` element\n\n if (!listing || !btnWrap) {\n // Exit if elements doesn't exist.\n return false;\n }\n\n // Loop over all .alm-listing divs and clear HTML.\n _toConsumableArray(listing).forEach(function (element) {\n // Is this a paging instance.\n var paging = element.querySelector('.alm-paging-content');\n if (paging) {\n paging.innerHTML = '';\n } else {\n element.innerHTML = '';\n }\n });\n\n // Get Load More button\n var button = btnWrap.querySelector('.alm-load-more-btn');\n if (button) {\n button.classList.remove('done'); // Reset Button\n }\n\n // Clear paging navigation\n var paging = btnWrap.querySelector('.alm-paging');\n if (paging) {\n paging.style.opacity = 0;\n }\n\n // Reset Preloaded Amount\n data.preloadedAmount = 0;\n\n // Dispatch Filters\n almSetFilters(speed, data, type, element);\n}\n\n/**\n * Set filter parameters on .alm-listing element.\n *\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 2.6.1\n */\nfunction almSetFilters(speed, data, type, element) {\n // Get `alm-listing` container.\n var listing = element.querySelector('.alm-listing') || element.querySelector('.alm-comments');\n if (!listing) {\n return false;\n }\n switch (type) {\n case 'filter':\n // Update data attributes\n for (var _i = 0, _Object$entries = Object.entries(data); _i < _Object$entries.length; _i++) {\n var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),\n key = _Object$entries$_i[0],\n value = _Object$entries$_i[1];\n // Convert camelCase data atts back to dashes (-).\n key = key.replace(/\\W+/g, '-').replace(/([a-z\\d])([A-Z])/g, '$1-$2').toLowerCase();\n listing.setAttribute('data-' + key, value);\n }\n // Fade ALM back (Filters only)\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(element, speed);\n break;\n }\n\n // Re-initiate Ajax Load More.\n var target = '';\n if (data.target) {\n // Target has been specified\n target = document.querySelector('.ajax-load-more-wrap[data-id=\"' + data.target + '\"]');\n if (target) {\n window.almInit(target);\n }\n } else {\n // Target not specified\n target = document.querySelector('.ajax-load-more-wrap');\n if (target) {\n window.almInit(target);\n }\n }\n switch (type) {\n case 'filter':\n // Filters Complete (not the add-on)\n if (typeof almFilterComplete === 'function') {\n // Standard Filtering\n almFilterComplete();\n }\n break;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/filtering.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/insertScript.js": -/*!*************************************************!*\ - !*** ./src/frontend/js/modules/insertScript.js ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Search nodes for tags and run scripts.\n * Scripts cannot run with appendChild or innerHTML so this is necessary to function.\n *\n * @since 5.0\n */\nvar insertScript = {\n /**\n * Initiate the script insertion.\n *\n * @param {Array} nodes The HTML nodes.\n */\n init: function init(nodes) {\n var _this = this;\n if (!(nodes !== null && nodes !== void 0 && nodes.length)) {\n return false;\n }\n nodes.forEach(function (node) {\n _this.check(node);\n });\n },\n /**\n * Parse HTML node from script.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The modified HTML node.\n */\n check: function check(node) {\n if (this.isScript(node) === true) {\n node.parentNode.replaceChild(this.clone(node), node);\n } else {\n var i = 0;\n var children = node.childNodes;\n if (children === undefined) {\n var parser = new DOMParser();\n var data = parser.parseFromString(node, 'text/html');\n if (data) {\n children = data.body.childNodes;\n }\n }\n while (i < children.length) {\n this.replace(children[i++]);\n }\n }\n return node;\n },\n /**\n * Replace the script tag with a clone.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The modified node.\n */\n replace: function replace(node) {\n if (this.isScript(node) === true) {\n node.parentNode.replaceChild(this.clone(node), node);\n } else {\n var i = 0;\n var children = node.childNodes;\n while (i < children.length) {\n this.replace(children[i++]);\n }\n }\n return node;\n },\n /**\n * Clone the tag.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The cloned node.\n */\n clone: function clone(node) {\n var script = document.createElement('script');\n script.text = node.innerHTML;\n for (var i = node.attributes.length - 1; i >= 0; i--) {\n script.setAttribute(node.attributes[i].name, node.attributes[i].value);\n }\n return script;\n },\n /**\n * Is the node a script tag.\n *\n * @param {HTMLElement} node The html node.\n */\n isScript: function isScript(node) {\n return node.tagName === 'SCRIPT';\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (insertScript);\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/insertScript.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/lazyImages.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/modules/lazyImages.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ lazyImages: function() { return /* binding */ lazyImages; },\n/* harmony export */ lazyImagesReplace: function() { return /* binding */ lazyImagesReplace; }\n/* harmony export */ });\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n/**\n * Lazy load images helper.\n * When a plugin or 3rd party script has hooked into WP Post Thumbnails to provide a lazy load solution, images will not load via Ajax.\n * This helper provides a fix by grabbing the dataset value and making it the src.\n *\n * @param {Object} alm The Ajax Load More object.\n */\nfunction lazyImages(alm) {\n var lazy_images = alm.lazy_images,\n last_loaded = alm.last_loaded;\n if (lazy_images && last_loaded !== null && last_loaded !== void 0 && last_loaded.length) {\n last_loaded.forEach(function (item) {\n lazyImagesReplace(item);\n });\n }\n}\n\n/**\n * Loop all images in container and replace the src.\n *\n * @param {HTMLElement} container The element HTML.\n */\nfunction lazyImagesReplace(container) {\n var images = container.querySelectorAll('img');\n if (images) {\n // Loop all images.\n _toConsumableArray(images).forEach(function (image) {\n if (image) {\n replaceSrc(image);\n }\n });\n }\n}\n\n/**\n * Replace the image src with the value from data-src attributes.\n *\n * @param {HTMLElement} img The HTML image element.\n */\nfunction replaceSrc(img) {\n var _img$dataset, _img$dataset2, _img$dataset3, _img$dataset4;\n if (!img) {\n return;\n }\n if (img !== null && img !== void 0 && (_img$dataset = img.dataset) !== null && _img$dataset !== void 0 && _img$dataset.src) {\n img.src = img.dataset.src;\n }\n if (img !== null && img !== void 0 && (_img$dataset2 = img.dataset) !== null && _img$dataset2 !== void 0 && _img$dataset2.srcset) {\n img.srcset = img.dataset.srcset;\n }\n // Blocksy Pro.\n // @see https://creativethemes.com/blocksy\n if (img !== null && img !== void 0 && (_img$dataset3 = img.dataset) !== null && _img$dataset3 !== void 0 && _img$dataset3.ctLazy) {\n img.src = img.dataset.ctLazy;\n }\n if (img !== null && img !== void 0 && (_img$dataset4 = img.dataset) !== null && _img$dataset4 !== void 0 && _img$dataset4.ctLazySet) {\n img.srcset = img.dataset.ctLazySet;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/lazyImages.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/loadImage.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/loadImage.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ loadImage; }\n/* harmony export */ });\n/* harmony import */ var _functions_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/srcsetPolyfill */ \"./src/frontend/js/functions/srcsetPolyfill.js\");\n/* harmony import */ var _lazyImages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n\n\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n/**\n * Load the image with imagesLoaded\n *\n * @param {Element} container The HTML container.\n * @param {Element} item The element to load.\n * @param {string} ua Browser user-agent.\n * @param {string} rel The loading direction, next or prev.\n * @param {boolean} waitForImages Wait for images to load before loading next item.\n */\nfunction loadImage(container, item, ua) {\n var rel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'next';\n var waitForImages = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n /**\n * Append item to container.\n */\n function appendImage() {\n if (rel === 'prev') {\n container.insertBefore(item, container.childNodes[0]);\n } else {\n container.appendChild(item);\n }\n (0,_lazyImages__WEBPACK_IMPORTED_MODULE_1__.lazyImagesReplace)(item); // Lazy load image fix.\n (0,_functions_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(item, ua); // Safari/Firefox polyfills.\n }\n\n return new Promise(function (resolve) {\n item.style.transition = 'all 0.25s ease'; // Add CSS transition to each item.\n\n if (waitForImages) {\n imagesLoaded(item, function () {\n appendImage();\n resolve(true); // Send Promise callback\n });\n } else {\n appendImage();\n resolve(true); // Send Promise callback\n }\n });\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadImage.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/loadItems.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/loadItems.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ loadItems; }\n/* harmony export */ });\n/* harmony import */ var _loadImage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./loadImage */ \"./src/frontend/js/modules/loadImage.js\");\n/* harmony import */ var _functions_setFocus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/setFocus */ \"./src/frontend/js/functions/setFocus.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n/**\n * Load all items after Ajax request.\n *\n * Note: The function is used with WooCommerce and Elementor add-ons.\n *\n * @param {HTMLElement} container The HTML container.\n * @param {Array} items Array of items.\n * @param {Object} alm The ALM object.\n * @param {boolean} waitForImages Wait for images to load before loading next item.\n */\nfunction loadItems(container, items, alm) {\n var waitForImages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n return new Promise(function (resolve) {\n var _alm$rel = alm.rel,\n rel = _alm$rel === void 0 ? 'next' : _alm$rel;\n var total = items.length;\n var index = 0;\n var count = 1;\n\n // Reverse items array if rel is 'prev'.\n items = rel === 'prev' ? items.reverse() : items;\n function loadItem() {\n if (count <= total) {\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n items[index].style.opacity = 0;\n _context.next = 3;\n return (0,_loadImage__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(container, items[index], alm.ua, rel, waitForImages);\n case 3:\n count++;\n index++;\n loadItem();\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function () {\n console.warn('There was an error loading the items.');\n });\n } else {\n // Delay for effect only\n setTimeout(function () {\n items.map(function (item) {\n item.style.opacity = 1;\n return item;\n });\n if (items[0]) {\n var focusItem = rel === 'prev' ? items[items.length - 1] : items[0]; // Get the item to focus.\n (0,_functions_setFocus__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(alm, focusItem, null, false); // Set the focus.\n }\n }, 25);\n resolve(true);\n }\n }\n loadItem();\n });\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadItems.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/loadPrevious.js": -/*!*************************************************!*\ - !*** ./src/frontend/js/modules/loadPrevious.js ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createLoadPreviousButton: function() { return /* binding */ createLoadPreviousButton; }\n/* harmony export */ });\n/**\n * Create a Load Previous button.\n *\n * @param {Object} alm The Ajax Load More object.\n * @param {Object} container The container element.\n * @param {number} page The previous page number.\n * @param {string} url The previous page url.\n * @param {string} label The label for the button.\n * @since 5.5.0\n */\nfunction createLoadPreviousButton(alm, container) {\n var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var url = arguments.length > 3 ? arguments[3] : undefined;\n var label = arguments.length > 4 ? arguments[4] : undefined;\n if (!label) {\n return;\n }\n\n // Create wrapper.\n var btnWrap = document.createElement('div');\n btnWrap.classList.add('alm-btn-wrap--prev');\n\n // Create button.\n var button = document.createElement('a');\n button.href = url;\n button.innerHTML = label;\n button.setAttribute('rel', 'prev');\n button.dataset.page = page;\n button.dataset.url = url;\n button.setAttribute('class', \"alm-load-more-btn alm-load-more-btn--prev \".concat(alm.loading_style));\n\n // Click event.\n button.addEventListener('click', function (e) {\n alm.AjaxLoadMore.prevClick(e);\n });\n\n // Set alm previous button to this button.\n alm.AjaxLoadMore.setPreviousButton(button);\n\n // Append button to wrap.\n btnWrap.appendChild(button);\n\n // Get parent element.\n var parent = container.parentNode;\n\n // Append button before container.\n parent.insertBefore(btnWrap, container);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadPrevious.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/masonry.js": -/*!********************************************!*\ - !*** ./src/frontend/js/modules/masonry.js ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almMasonry: function() { return /* binding */ almMasonry; },\n/* harmony export */ almMasonryConfig: function() { return /* binding */ almMasonryConfig; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n/**\n * Function to trigger built-in Ajax Load More Masonry.\n *\n * @param {Object} alm ALM object.\n * @param {boolean} init Initial run true or false.\n * @param {boolean} filtering Is this a filtering event.\n * @since 3.1\n */\nfunction almMasonry(alm, init, filtering) {\n if (!alm.masonry) {\n console.warn('Ajax Load More: Unable to locate Masonry settings.');\n }\n var container = alm.listing,\n last_loaded = alm.last_loaded,\n speed = alm.speed;\n return new Promise(function (resolve) {\n var _alm$masonry;\n var selector = alm.masonry.selector;\n var animation = alm.masonry.animation;\n var horizontalOrder = (alm === null || alm === void 0 || (_alm$masonry = alm.masonry) === null || _alm$masonry === void 0 ? void 0 : _alm$masonry.horizontalorder) === 'true' ? true : false;\n var masonry_init = alm.masonry.init;\n var columnWidth = alm.masonry.columnwidth;\n var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay\n var hidden = 'scale(0.5)';\n var visible = 'scale(1)';\n if (animation === 'zoom-out') {\n hidden = 'translateY(-20px) scale(1.25)';\n visible = 'translateY(0) scale(1)';\n }\n if (animation === 'slide-up') {\n hidden = 'translateY(50px)';\n visible = 'translateY(0)';\n }\n if (animation === 'slide-down') {\n hidden = 'translateY(-50px)';\n visible = 'translateY(0)';\n }\n if (animation === 'none') {\n hidden = 'translateY(0)';\n visible = 'translateY(0)';\n }\n\n // columnWidth\n if (columnWidth) {\n if (!isNaN(columnWidth)) {\n columnWidth = parseInt(columnWidth); // Check if number.\n }\n } else {\n columnWidth = selector; // No columnWidth, use the selector\n }\n\n if (!filtering) {\n // First Run.\n if (masonry_init && init) {\n imagesLoaded(container, function () {\n var _window;\n var defaults = {\n itemSelector: selector,\n transitionDuration: duration,\n columnWidth: columnWidth,\n // eslint-disable-line\n horizontalOrder: horizontalOrder,\n // eslint-disable-line\n hiddenStyle: {\n transform: hidden,\n opacity: 0\n },\n visibleStyle: {\n transform: visible,\n opacity: 1\n }\n };\n\n // Get custom Masonry options (https://masonry.desandro.com/options.html).\n var alm_masonry_vars = (_window = window) === null || _window === void 0 ? void 0 : _window.alm_masonry_vars;\n if (alm_masonry_vars) {\n Object.keys(alm_masonry_vars).forEach(function (key) {\n // Loop object\tto create key:prop\n defaults[key] = alm_masonry_vars[key];\n });\n }\n\n // Init Masonry, delay to allow time for items to be added to the page.\n setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n alm.msnry = new Masonry(container, defaults);\n _context.next = 3;\n return (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(container.parentNode, 175);\n case 3:\n resolve(true);\n case 4:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n })), 25);\n });\n } else {\n // Standard / Append content.\n // eslint-disable-next-line no-lonely-if\n if (last_loaded) {\n // ImagesLoaded & appended.\n imagesLoaded(container, function () {\n setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n alm.msnry.appended(last_loaded);\n resolve(true);\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n })), 25);\n });\n }\n }\n } else {\n // Reset instance.\n container.parentNode.style.opacity = 0;\n almMasonry(alm, true, false);\n resolve(true);\n }\n });\n}\n\n/**\n * Set up initial Masonry Configuration.\n *\n * @param {Object} alm ALM Object.\n * @return {Object} Configuration object.\n */\nfunction almMasonryConfig(alm) {\n alm.masonry = {};\n alm.masonry.init = true;\n if (alm.msnry) {\n // destroy masonry if it currently exists.\n alm.msnry.destroy();\n } else {\n alm.msnry = '';\n }\n var masonry_config = JSON.parse(alm.listing.dataset.masonryConfig);\n if (masonry_config) {\n alm.masonry.selector = masonry_config.selector;\n alm.masonry.columnwidth = masonry_config.columnwidth;\n alm.masonry.animation = masonry_config.animation === '' ? 'standard' : masonry_config.animation;\n alm.masonry.horizontalorder = masonry_config.horizontalorder === '' ? 'true' : masonry_config.horizontalorder;\n alm.images_loaded = true;\n alm.transition_delay = 0;\n } else {\n console.warn('Ajax Load More: Unable to locate Masonry configuration settings.');\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/masonry.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/placeholder.js": -/*!************************************************!*\ - !*** ./src/frontend/js/modules/placeholder.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ placeholder; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n/**\n * Show placeholder div.\n *\n * @param {string} type The direction.\n * @param {Object} alm The ALM object.\n */\nfunction placeholder() {\n return _placeholder.apply(this, arguments);\n}\nfunction _placeholder() {\n _placeholder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n var type,\n alm,\n placeholder,\n addons,\n rel,\n _args = arguments;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'show';\n alm = _args.length > 1 ? _args[1] : undefined;\n placeholder = alm.placeholder, addons = alm.addons, rel = alm.rel;\n if (!(!placeholder || addons.paging || rel === 'prev')) {\n _context.next = 5;\n break;\n }\n return _context.abrupt(\"return\", false);\n case 5:\n _context.t0 = type;\n _context.next = _context.t0 === 'hide' ? 8 : 12;\n break;\n case 8:\n _context.next = 10;\n return (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeOut)(placeholder, 175);\n case 10:\n setTimeout(function () {\n placeholder.style.display = 'none';\n }, 75);\n return _context.abrupt(\"break\", 15);\n case 12:\n placeholder.style.display = 'block';\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(placeholder, 175);\n return _context.abrupt(\"break\", 15);\n case 15:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _placeholder.apply(this, arguments);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/placeholder.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/resultsText.js": -/*!************************************************!*\ - !*** ./src/frontend/js/modules/resultsText.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almGetResultsText: function() { return /* binding */ almGetResultsText; },\n/* harmony export */ almInitResultsText: function() { return /* binding */ almInitResultsText; },\n/* harmony export */ almResultsText: function() { return /* binding */ almResultsText; }\n/* harmony export */ });\n/* harmony import */ var _functions_getTotals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/getTotals */ \"./src/frontend/js/functions/getTotals.js\");\n\n\n/**\n * Set the results text if required.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 5.1\n */\nfunction almResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || alm.nested === 'true') {\n return false;\n }\n var resultsType = type === 'nextpage' || type === 'woocommerce' ? type : 'standard';\n almGetResultsText(alm, resultsType);\n}\n\n/**\n * Get values for showing results text.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 4.1\n */\nfunction almGetResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || !alm.localize || alm.nested === 'true') {\n return false;\n }\n var page = 0;\n var pages = 0;\n var post_count = 0;\n var total_posts = 0;\n var posts_per_page = alm.orginal_posts_per_page;\n switch (type) {\n // Nextpage\n case 'nextpage':\n page = parseInt(alm.localize.page);\n post_count = page;\n pages = parseInt(alm.localize.total_posts);\n total_posts = parseInt(pages);\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page);\n break;\n\n // WooCommerce\n case 'woocommerce':\n // Don't do anything\n break;\n default:\n page = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('page', alm.id);\n pages = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('pages', alm.id);\n post_count = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('post_count', alm.id);\n total_posts = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('total_posts', alm.id);\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page);\n }\n}\n\n/**\n * Display `Showing {x} of {y} pages` text.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 4.1\n */\nfunction almInitResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || !alm.localize || alm.nested === 'true') {\n return false;\n }\n var page = 0;\n var pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page);\n var post_count = parseInt(alm.localize.post_count);\n var total_posts = parseInt(alm.localize.total_posts);\n switch (type) {\n case 'nextpage':\n // Nextpage\n page = alm.addons.nextpage_startpage;\n post_count = page;\n pages = total_posts;\n almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts, alm.posts_per_page);\n break;\n case 'preloaded':\n // Preloaded\n page = alm.addons.paging && alm.addons.seo ? alm.start_page + 1 : parseInt(alm.page) + 1;\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, alm.posts_per_page);\n break;\n case 'woocommerce':\n // WooCommerce\n // Don't do anything\n break;\n }\n}\n\n/**\n * Render `Showing {x} of {y} results` text.\n *\n * @param {Element} el The results text HTML element.\n * @param {string} page The current page number.\n * @param {string} pages The total pages.\n * @param {string} post_count Total posts displayed.\n * @param {string} total_posts Total amount of posts in query.\n * @param {string} per_page Total amount of posts per page.\n * @since 4.1\n */\nvar almRenderResultsText = function almRenderResultsText(el, page, pages, post_count, total_posts, per_page) {\n el.forEach(function (result) {\n pages = parseInt(pages);\n var text = pages > 0 ? alm_localize.results_text : alm_localize.no_results_text;\n\n // Paging add-on.\n // Start and End values for posts in view.\n var start = page * per_page - per_page + 1;\n var end_val = page * per_page;\n var end = end_val <= total_posts ? end_val : total_posts;\n if (pages > 0) {\n text = text.replace('{num}', \"\".concat(page, \"\")); // Deprecated\n text = text.replace('{page}', \"\".concat(page, \"\"));\n text = text.replace('{start}', \"\".concat(start, \"\"));\n text = text.replace('{end}', \"\".concat(end, \"\"));\n text = text.replace('{total}', \"\".concat(pages, \"\")); // Deprecated\n text = text.replace('{pages}', \"\".concat(pages, \"\"));\n text = text.replace('{post_count}', \"\".concat(post_count, \"\"));\n text = text.replace('{total_posts}', \"\".concat(total_posts, \"\"));\n result.innerHTML = text;\n } else {\n result.innerHTML = text;\n }\n });\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/resultsText.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/setLocalizedVars.js": -/*!*****************************************************!*\ - !*** ./src/frontend/js/modules/setLocalizedVars.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ setLocalizedVars; }\n/* harmony export */ });\n/* harmony import */ var _resultsText__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./resultsText */ \"./src/frontend/js/modules/resultsText.js\");\n\n\n/**\n * Set localized variables\n *\n * @param {Object} alm ALM object\n * @since 4.1\n */\nfunction setLocalizedVars(alm) {\n var addons = alm.addons;\n return new Promise(function (resolve) {\n var type = 'standard';\n if (addons.nextpage) {\n // Nextpage\n type = 'nextpage';\n if (addons.paging) {\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);\n } else {\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(addons.nextpage_startpage) + 1);\n }\n } else if (addons.woocommerce) {\n // WooCommerce\n type = 'woocommerce';\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);\n } else {\n // Standard ALM.\n var page = parseInt(alm.page) + 1 + (addons.preloaded && !addons.paging ? 1 : 0); // Add 1 page for preloaded.\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(page));\n var pages = Math.ceil(alm.totalposts / alm.orginal_posts_per_page);\n alm.AjaxLoadMore.setLocalizedVar('pages', parseInt(pages));\n }\n\n // Total Posts `total_posts`.\n // Only update if !preloaded && !nextpage && !woocommerce\n if (addons.preloaded !== 'true' && !addons.nextpage && !addons.woocommerce) {\n alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts);\n }\n\n // Viewing count.\n alm.AjaxLoadMore.setLocalizedVar('post_count', getPostCount(alm));\n\n // Set Results Text (if required).\n _resultsText__WEBPACK_IMPORTED_MODULE_0__.almResultsText(alm, type);\n resolve(true);\n });\n}\n\n/**\n * Get total post_count.\n *\n * @param {Object} alm ALM object.\n * @return {number} Total post count.\n */\nfunction getPostCount(alm) {\n var postcount = alm.postcount,\n addons = alm.addons,\n start_page = alm.start_page;\n var preloaded_amount = addons.preloaded_amount;\n\n // Construct post count.\n var count = parseInt(postcount) + parseInt(preloaded_amount);\n count = start_page > 1 ? count - parseInt(preloaded_amount) : count; // SEO\n count = addons.filters_startpage > 1 ? count - parseInt(preloaded_amount) : count; // Filters\n count = addons.single_post ? count + 1 : count; // Single Posts\n count = addons.nextpage ? count + 1 : count; // Next Page\n\n return count;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/setLocalizedVars.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/tableofcontents.js": -/*!****************************************************!*\ - !*** ./src/frontend/js/modules/tableofcontents.js ***! - \****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ clearTOC: function() { return /* binding */ clearTOC; },\n/* harmony export */ tableOfContents: function() { return /* binding */ tableOfContents; }\n/* harmony export */ });\n/* harmony import */ var _ajax_load_more__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ajax-load-more */ \"./src/frontend/js/ajax-load-more.js\");\n/* harmony import */ var _functions_setFocus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/setFocus */ \"./src/frontend/js/functions/setFocus.js\");\n\n\n\n/**\n * Create a numbered table of contents navigation.\n *\n * @param {Object} alm The alm object.\n * @param {boolean} init Init boolean.\n * @param {boolean} from_preloaded Preloaded boolean.\n * @since 5.2\n */\nfunction tableOfContents(alm) {\n var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var from_preloaded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var totalPosts = alm.localize && alm.localize.post_count ? parseInt(alm.localize.post_count) : 0;\n\n // eslint-disable-next-line eqeqeq\n if (totalPosts == 0 && !alm.addons.single_post) {\n // Exit if zero posts and not single posts\n return false;\n }\n if (alm && alm.tableofcontents && alm.transition !== 'masonry') {\n var offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30;\n var startPage = alm.start_page ? parseInt(alm.start_page) : 0;\n var filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0;\n var nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0;\n var page = parseInt(alm.page);\n var preloaded = alm.addons.preloaded ? true : false;\n\n // Exit if Paging or Next Page\n if (alm.addons.paging || alm.addons.nextpage) {\n return false;\n }\n\n // Init.\n if (init) {\n setTimeout(function () {\n // Paged results\n if (alm.addons.seo && startPage > 1 || alm.addons.filters && filterStartPage > 1 || alm.addons.nextpage && nextpageStartPage > 1) {\n // SEO\n if (alm.addons.seo && startPage > 1) {\n for (var i = 0; i < startPage; i++) {\n createTOCButton(alm, i, offset);\n }\n }\n // Filters\n if (alm.addons.filters && filterStartPage > 1) {\n for (var _i = 0; _i < filterStartPage; _i++) {\n createTOCButton(alm, _i, offset);\n }\n }\n // Nextpage\n if (alm.addons.nextpage && nextpageStartPage > 1) {\n for (var _i2 = 0; _i2 < nextpageStartPage; _i2++) {\n createTOCButton(alm, _i2, offset);\n }\n }\n } else {\n if (!from_preloaded && preloaded) {\n page = page + 1;\n }\n createTOCButton(alm, page, offset);\n }\n }, 100);\n } else {\n // Preloaded\n if (preloaded) {\n if (alm.addons.seo && startPage > 0) {\n page = page;\n } else if (alm.addons.filters && filterStartPage > 0) {\n page = page;\n } else {\n page = page + 1;\n }\n }\n createTOCButton(alm, page, offset);\n }\n }\n}\n\n/**\n * Clear table of contents.\n */\nfunction clearTOC() {\n var toc = document.querySelector('.alm-toc');\n if (toc) {\n toc.innerHTML = '';\n }\n}\n\n/**\n * Create Standard Page Button.\n *\n * @param {Object} alm The alm object.\n * @param {string} page Current page.\n * @param {number} offset The page offset.\n */\nfunction createTOCButton(alm, page, offset) {\n if (!alm.tableofcontents) {\n return false;\n }\n page = parseInt(page);\n var posts_per_page = parseInt(alm.posts_per_page);\n\n // Create button.\n var button = document.createElement('button');\n button.type = 'button';\n button.innerHTML = getTOCLabel(alm, page + 1);\n button.dataset.page = alm.addons.single_post_target && alm.init ? page - 1 : page + 1;\n button.dataset.target = (page + 1) * posts_per_page - posts_per_page + 1;\n\n // Add button to TOC.\n alm.tableofcontents.appendChild(button);\n\n // Click event listener.\n button.addEventListener('click', function () {\n var current = this.dataset.page;\n var target = this.dataset.target;\n\n // Get all listing children.\n var children = alm.listing.children;\n\n // Find element.\n var element = children[target - 1];\n\n // Next Page.\n if (alm.addons.nextpage) {\n element = document.querySelector(\".alm-nextpage[data-page=\\\"\".concat(current, \"\\\"]\"));\n }\n // Single Posts.\n if (alm.addons.single_post_target) {\n element = document.querySelector(\".alm-single-post[data-page=\\\"\".concat(current, \"\\\"]\"));\n }\n if (!element) {\n return; // Exit if no target.\n }\n\n var top = typeof _ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.getOffset === 'function' ? (0,_ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.getOffset)(element).top : element.offsetTop;\n (0,_ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.almScroll)(top - offset);\n setTimeout(function () {\n (0,_functions_setFocus__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(alm, element, target, false);\n }, 500);\n });\n}\n\n/**\n * Get Button Label.\n *\n * @param {Object} alm The alm object.\n * @param {string} page The current page.\n * @return {string} The Label.\n */\nfunction getTOCLabel(alm, page) {\n var label = page;\n\n // Single Posts\n if (alm.addons.single_post) {\n var thePage = page - 1;\n var element;\n if (alm.addons.single_post_target) {\n // Special functionality for Single Post with a loading target type\n if (alm.init) {\n thePage = thePage;\n } else {\n thePage = thePage + 1;\n }\n var posts = document.querySelectorAll(\".alm-single-post\");\n if (posts) {\n element = posts[thePage];\n }\n } else {\n element = document.querySelector(\".alm-single-post[data-page=\".concat(page - 1, \"]\"));\n }\n label = element ? element.dataset.title : label;\n }\n\n // Dynamic function name.\n var funcName = \"almTOCLabel_\".concat(alm.id);\n if (typeof window[funcName] === 'function') {\n label = window[funcName](page, label);\n }\n return label;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/tableofcontents.js?"); - -/***/ }), - -/***/ "./node_modules/call-bind/callBound.js": -/*!*********************************************!*\ - !*** ./node_modules/call-bind/callBound.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\n\nvar callBind = __webpack_require__(/*! ./ */ \"./node_modules/call-bind/index.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/call-bind/callBound.js?"); - -/***/ }), - -/***/ "./node_modules/call-bind/index.js": -/*!*****************************************!*\ - !*** ./node_modules/call-bind/index.js ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/call-bind/index.js?"); - -/***/ }), - -/***/ "./node_modules/crypto-js/core.js": -/*!****************************************!*\ - !*** ./node_modules/crypto-js/core.js ***! - \****************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval(";(function (root, factory) {\n\tif (true) {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse {}\n}(this, function () {\n\n\t/*globals window, global, require*/\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\n\t var crypto;\n\n\t // Native crypto from window (Browser)\n\t if (typeof window !== 'undefined' && window.crypto) {\n\t crypto = window.crypto;\n\t }\n\n\t // Native crypto in web worker (Browser)\n\t if (typeof self !== 'undefined' && self.crypto) {\n\t crypto = self.crypto;\n\t }\n\n\t // Native crypto from worker\n\t if (typeof globalThis !== 'undefined' && globalThis.crypto) {\n\t crypto = globalThis.crypto;\n\t }\n\n\t // Native (experimental IE 11) crypto from window (Browser)\n\t if (!crypto && typeof window !== 'undefined' && window.msCrypto) {\n\t crypto = window.msCrypto;\n\t }\n\n\t // Native crypto from global (NodeJS)\n\t if (!crypto && typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.crypto) {\n\t crypto = __webpack_require__.g.crypto;\n\t }\n\n\t // Native crypto import via require (NodeJS)\n\t if (!crypto && \"function\" === 'function') {\n\t try {\n\t crypto = __webpack_require__(/*! crypto */ \"?9157\");\n\t } catch (err) {}\n\t }\n\n\t /*\n\t * Cryptographically secure pseudorandom number generator\n\t *\n\t * As Math.random() is cryptographically not safe to use\n\t */\n\t var cryptoSecureRandomInt = function () {\n\t if (crypto) {\n\t // Use getRandomValues method (Browser)\n\t if (typeof crypto.getRandomValues === 'function') {\n\t try {\n\t return crypto.getRandomValues(new Uint32Array(1))[0];\n\t } catch (err) {}\n\t }\n\n\t // Use randomBytes method (NodeJS)\n\t if (typeof crypto.randomBytes === 'function') {\n\t try {\n\t return crypto.randomBytes(4).readInt32LE();\n\t } catch (err) {}\n\t }\n\t }\n\n\t throw new Error('Native crypto module could not be used to get secure random number.');\n\t };\n\n\t /*\n\t * Local polyfill of Object.create\n\n\t */\n\t var create = Object.create || (function () {\n\t function F() {}\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }());\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var j = 0; j < thatSigBytes; j += 4) {\n\t thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t for (var i = 0; i < nBytes; i += 4) {\n\t words.push(cryptoSecureRandomInt());\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t var processedWords;\n\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/crypto-js/core.js?"); - -/***/ }), - -/***/ "./node_modules/crypto-js/md5.js": -/*!***************************************!*\ - !*** ./node_modules/crypto-js/md5.js ***! - \***************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval(";(function (root, factory) {\n\tif (true) {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(__webpack_require__(/*! ./core */ \"./node_modules/crypto-js/core.js\"));\n\t}\n\telse {}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Constants table\n\t var T = [];\n\n\t // Compute constants\n\t (function () {\n\t for (var i = 0; i < 64; i++) {\n\t T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n\t }\n\t }());\n\n\t /**\n\t * MD5 hash algorithm.\n\t */\n\t var MD5 = C_algo.MD5 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0x67452301, 0xefcdab89,\n\t 0x98badcfe, 0x10325476\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Swap endian\n\t for (var i = 0; i < 16; i++) {\n\t // Shortcuts\n\t var offset_i = offset + i;\n\t var M_offset_i = M[offset_i];\n\n\t M[offset_i] = (\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n\t );\n\t }\n\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var M_offset_0 = M[offset + 0];\n\t var M_offset_1 = M[offset + 1];\n\t var M_offset_2 = M[offset + 2];\n\t var M_offset_3 = M[offset + 3];\n\t var M_offset_4 = M[offset + 4];\n\t var M_offset_5 = M[offset + 5];\n\t var M_offset_6 = M[offset + 6];\n\t var M_offset_7 = M[offset + 7];\n\t var M_offset_8 = M[offset + 8];\n\t var M_offset_9 = M[offset + 9];\n\t var M_offset_10 = M[offset + 10];\n\t var M_offset_11 = M[offset + 11];\n\t var M_offset_12 = M[offset + 12];\n\t var M_offset_13 = M[offset + 13];\n\t var M_offset_14 = M[offset + 14];\n\t var M_offset_15 = M[offset + 15];\n\n\t // Working varialbes\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\n\t // Computation\n\t a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n\t d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n\t c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n\t b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n\t a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n\t d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n\t c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n\t b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n\t a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n\t d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n\t c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n\t b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n\t a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n\t d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n\t c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n\t b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n\t a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n\t d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n\t c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n\t b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n\t a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n\t d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n\t c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n\t b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n\t a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n\t d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n\t c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n\t b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n\t a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n\t d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n\t c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n\t b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n\t a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n\t d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n\t c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n\t b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n\t a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n\t d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n\t c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n\t b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n\t a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n\t d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n\t c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n\t b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n\t a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n\t d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n\t c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n\t b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n\t a = II(a, b, c, d, M_offset_0, 6, T[48]);\n\t d = II(d, a, b, c, M_offset_7, 10, T[49]);\n\t c = II(c, d, a, b, M_offset_14, 15, T[50]);\n\t b = II(b, c, d, a, M_offset_5, 21, T[51]);\n\t a = II(a, b, c, d, M_offset_12, 6, T[52]);\n\t d = II(d, a, b, c, M_offset_3, 10, T[53]);\n\t c = II(c, d, a, b, M_offset_10, 15, T[54]);\n\t b = II(b, c, d, a, M_offset_1, 21, T[55]);\n\t a = II(a, b, c, d, M_offset_8, 6, T[56]);\n\t d = II(d, a, b, c, M_offset_15, 10, T[57]);\n\t c = II(c, d, a, b, M_offset_6, 15, T[58]);\n\t b = II(b, c, d, a, M_offset_13, 21, T[59]);\n\t a = II(a, b, c, d, M_offset_4, 6, T[60]);\n\t d = II(d, a, b, c, M_offset_11, 10, T[61]);\n\t c = II(c, d, a, b, M_offset_2, 15, T[62]);\n\t b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n\t var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n\t var nBitsTotalL = nBitsTotal;\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n\t (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n\t );\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n\t (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n\t );\n\n\t data.sigBytes = (dataWords.length + 1) * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var hash = this._hash;\n\t var H = hash.words;\n\n\t // Swap endian\n\t for (var i = 0; i < 4; i++) {\n\t // Shortcut\n\t var H_i = H[i];\n\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t function FF(a, b, c, d, x, s, t) {\n\t var n = a + ((b & c) | (~b & d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function GG(a, b, c, d, x, s, t) {\n\t var n = a + ((b & d) | (c & ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function HH(a, b, c, d, x, s, t) {\n\t var n = a + (b ^ c ^ d) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function II(a, b, c, d, x, s, t) {\n\t var n = a + (c ^ (b | ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.MD5('message');\n\t * var hash = CryptoJS.MD5(wordArray);\n\t */\n\t C.MD5 = Hasher._createHelper(MD5);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacMD5(message, key);\n\t */\n\t C.HmacMD5 = Hasher._createHmacHelper(MD5);\n\t}(Math));\n\n\n\treturn CryptoJS.MD5;\n\n}));\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/crypto-js/md5.js?"); - -/***/ }), - -/***/ "./node_modules/ev-emitter/ev-emitter.js": -/*!***********************************************!*\ - !*** ./node_modules/ev-emitter/ev-emitter.js ***! - \***********************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * EvEmitter v1.1.0\n * Lil' event emitter\n * MIT License\n */\n\n/* jshint unused: true, undef: true, strict: true */\n\n( function( global, factory ) {\n // universal module definition\n /* jshint strict: false */ /* globals define, module, window */\n if ( true ) {\n // AMD - RequireJS\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n\n}( typeof window != 'undefined' ? window : this, function() {\n\n\"use strict\";\n\nfunction EvEmitter() {}\n\nvar proto = EvEmitter.prototype;\n\nproto.on = function( eventName, listener ) {\n if ( !eventName || !listener ) {\n return;\n }\n // set events hash\n var events = this._events = this._events || {};\n // set listeners array\n var listeners = events[ eventName ] = events[ eventName ] || [];\n // only add once\n if ( listeners.indexOf( listener ) == -1 ) {\n listeners.push( listener );\n }\n\n return this;\n};\n\nproto.once = function( eventName, listener ) {\n if ( !eventName || !listener ) {\n return;\n }\n // add event\n this.on( eventName, listener );\n // set once flag\n // set onceEvents hash\n var onceEvents = this._onceEvents = this._onceEvents || {};\n // set onceListeners object\n var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {};\n // set flag\n onceListeners[ listener ] = true;\n\n return this;\n};\n\nproto.off = function( eventName, listener ) {\n var listeners = this._events && this._events[ eventName ];\n if ( !listeners || !listeners.length ) {\n return;\n }\n var index = listeners.indexOf( listener );\n if ( index != -1 ) {\n listeners.splice( index, 1 );\n }\n\n return this;\n};\n\nproto.emitEvent = function( eventName, args ) {\n var listeners = this._events && this._events[ eventName ];\n if ( !listeners || !listeners.length ) {\n return;\n }\n // copy over to avoid interference if .off() in listener\n listeners = listeners.slice(0);\n args = args || [];\n // once stuff\n var onceListeners = this._onceEvents && this._onceEvents[ eventName ];\n\n for ( var i=0; i < listeners.length; i++ ) {\n var listener = listeners[i]\n var isOnce = onceListeners && onceListeners[ listener ];\n if ( isOnce ) {\n // remove listener\n // remove before trigger to prevent recursion\n this.off( eventName, listener );\n // unset once flag\n delete onceListeners[ listener ];\n }\n // trigger listener\n listener.apply( this, args );\n }\n\n return this;\n};\n\nproto.allOff = function() {\n delete this._events;\n delete this._onceEvents;\n};\n\nreturn EvEmitter;\n\n}));\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/ev-emitter/ev-emitter.js?"); - -/***/ }), - -/***/ "./node_modules/focus-options-polyfill/index.js": -/*!******************************************************!*\ - !*** ./node_modules/focus-options-polyfill/index.js ***! - \******************************************************/ -/***/ (function() { - -eval("// focus - focusOptions - preventScroll polyfill\n(function() {\n if (\n typeof window === \"undefined\" ||\n typeof document === \"undefined\" ||\n typeof HTMLElement === \"undefined\"\n ) {\n return;\n }\n\n var supportsPreventScrollOption = false;\n try {\n var focusElem = document.createElement(\"div\");\n focusElem.addEventListener(\n \"focus\",\n function(event) {\n event.preventDefault();\n event.stopPropagation();\n },\n true\n );\n focusElem.focus(\n Object.defineProperty({}, \"preventScroll\", {\n get: function() {\n // Edge v18 gives a false positive for supporting inputs\n if (\n navigator &&\n typeof navigator.userAgent !== 'undefined' &&\n navigator.userAgent &&\n navigator.userAgent.match(/Edge\\/1[7-8]/)) {\n return supportsPreventScrollOption = false\n }\n\n supportsPreventScrollOption = true;\n }\n })\n );\n } catch (e) {}\n\n if (\n HTMLElement.prototype.nativeFocus === undefined &&\n !supportsPreventScrollOption\n ) {\n HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus;\n\n var calcScrollableElements = function(element) {\n var parent = element.parentNode;\n var scrollableElements = [];\n var rootScrollingElement =\n document.scrollingElement || document.documentElement;\n\n while (parent && parent !== rootScrollingElement) {\n if (\n parent.offsetHeight < parent.scrollHeight ||\n parent.offsetWidth < parent.scrollWidth\n ) {\n scrollableElements.push([\n parent,\n parent.scrollTop,\n parent.scrollLeft\n ]);\n }\n parent = parent.parentNode;\n }\n parent = rootScrollingElement;\n scrollableElements.push([parent, parent.scrollTop, parent.scrollLeft]);\n\n return scrollableElements;\n };\n\n var restoreScrollPosition = function(scrollableElements) {\n for (var i = 0; i < scrollableElements.length; i++) {\n scrollableElements[i][0].scrollTop = scrollableElements[i][1];\n scrollableElements[i][0].scrollLeft = scrollableElements[i][2];\n }\n scrollableElements = [];\n };\n\n var patchedFocus = function(args) {\n if (args && args.preventScroll) {\n var evScrollableElements = calcScrollableElements(this);\n if (typeof setTimeout === 'function') {\n var thisElem = this;\n setTimeout(function () {\n thisElem.nativeFocus();\n restoreScrollPosition(evScrollableElements);\n }, 0);\n } else {\n this.nativeFocus();\n restoreScrollPosition(evScrollableElements);\n }\n }\n else {\n this.nativeFocus();\n }\n };\n\n HTMLElement.prototype.focus = patchedFocus;\n }\n})();\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/focus-options-polyfill/index.js?"); - -/***/ }), - -/***/ "./node_modules/function-bind/implementation.js": -/*!******************************************************!*\ - !*** ./node_modules/function-bind/implementation.js ***! - \******************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slice.call(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n } else {\n return target.apply(\n that,\n args.concat(slice.call(arguments))\n );\n }\n };\n\n var boundLength = Math.max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs.push('$' + i);\n }\n\n bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/function-bind/implementation.js?"); - -/***/ }), - -/***/ "./node_modules/function-bind/index.js": -/*!*********************************************!*\ - !*** ./node_modules/function-bind/index.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar implementation = __webpack_require__(/*! ./implementation */ \"./node_modules/function-bind/implementation.js\");\n\nmodule.exports = Function.prototype.bind || implementation;\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/function-bind/index.js?"); - -/***/ }), - -/***/ "./node_modules/get-intrinsic/index.js": -/*!*********************************************!*\ - !*** ./node_modules/get-intrinsic/index.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\nvar hasProto = __webpack_require__(/*! has-proto */ \"./node_modules/has-proto/index.js\")();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar hasOwn = __webpack_require__(/*! has */ \"./node_modules/has/src/index.js\");\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/get-intrinsic/index.js?"); - -/***/ }), - -/***/ "./node_modules/has-proto/index.js": -/*!*****************************************!*\ - !*** ./node_modules/has-proto/index.js ***! - \*****************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar test = {\n\tfoo: {}\n};\n\nvar $Object = Object;\n\nmodule.exports = function hasProto() {\n\treturn { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-proto/index.js?"); - -/***/ }), - -/***/ "./node_modules/has-symbols/index.js": -/*!*******************************************!*\ - !*** ./node_modules/has-symbols/index.js ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = __webpack_require__(/*! ./shams */ \"./node_modules/has-symbols/shams.js\");\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-symbols/index.js?"); - -/***/ }), - -/***/ "./node_modules/has-symbols/shams.js": -/*!*******************************************!*\ - !*** ./node_modules/has-symbols/shams.js ***! - \*******************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-symbols/shams.js?"); - -/***/ }), - -/***/ "./node_modules/has/src/index.js": -/*!***************************************!*\ - !*** ./node_modules/has/src/index.js ***! - \***************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has/src/index.js?"); - -/***/ }), - -/***/ "./node_modules/imagesloaded/imagesloaded.js": -/*!***************************************************!*\ - !*** ./node_modules/imagesloaded/imagesloaded.js ***! - \***************************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * imagesLoaded v4.1.4\n * JavaScript is all like \"You images are done yet or what?\"\n * MIT License\n */\n\n( function( window, factory ) { 'use strict';\n // universal module definition\n\n /*global define: false, module: false, require: false */\n\n if ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [\n __webpack_require__(/*! ev-emitter/ev-emitter */ \"./node_modules/ev-emitter/ev-emitter.js\")\n ], __WEBPACK_AMD_DEFINE_RESULT__ = (function( EvEmitter ) {\n return factory( window, EvEmitter );\n }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n\n})( typeof window !== 'undefined' ? window : this,\n\n// -------------------------- factory -------------------------- //\n\nfunction factory( window, EvEmitter ) {\n\n'use strict';\n\nvar $ = window.jQuery;\nvar console = window.console;\n\n// -------------------------- helpers -------------------------- //\n\n// extend objects\nfunction extend( a, b ) {\n for ( var prop in b ) {\n a[ prop ] = b[ prop ];\n }\n return a;\n}\n\nvar arraySlice = Array.prototype.slice;\n\n// turn element or nodeList into an array\nfunction makeArray( obj ) {\n if ( Array.isArray( obj ) ) {\n // use object if already an array\n return obj;\n }\n\n var isArrayLike = typeof obj == 'object' && typeof obj.length == 'number';\n if ( isArrayLike ) {\n // convert nodeList to array\n return arraySlice.call( obj );\n }\n\n // array of single index\n return [ obj ];\n}\n\n// -------------------------- imagesLoaded -------------------------- //\n\n/**\n * @param {Array, Element, NodeList, String} elem\n * @param {Object or Function} options - if function, use as callback\n * @param {Function} onAlways - callback function\n */\nfunction ImagesLoaded( elem, options, onAlways ) {\n // coerce ImagesLoaded() without new, to be new ImagesLoaded()\n if ( !( this instanceof ImagesLoaded ) ) {\n return new ImagesLoaded( elem, options, onAlways );\n }\n // use elem as selector string\n var queryElem = elem;\n if ( typeof elem == 'string' ) {\n queryElem = document.querySelectorAll( elem );\n }\n // bail if bad element\n if ( !queryElem ) {\n console.error( 'Bad element for imagesLoaded ' + ( queryElem || elem ) );\n return;\n }\n\n this.elements = makeArray( queryElem );\n this.options = extend( {}, this.options );\n // shift arguments if no options set\n if ( typeof options == 'function' ) {\n onAlways = options;\n } else {\n extend( this.options, options );\n }\n\n if ( onAlways ) {\n this.on( 'always', onAlways );\n }\n\n this.getImages();\n\n if ( $ ) {\n // add jQuery Deferred object\n this.jqDeferred = new $.Deferred();\n }\n\n // HACK check async to allow time to bind listeners\n setTimeout( this.check.bind( this ) );\n}\n\nImagesLoaded.prototype = Object.create( EvEmitter.prototype );\n\nImagesLoaded.prototype.options = {};\n\nImagesLoaded.prototype.getImages = function() {\n this.images = [];\n\n // filter & find items if we have an item selector\n this.elements.forEach( this.addElementImages, this );\n};\n\n/**\n * @param {Node} element\n */\nImagesLoaded.prototype.addElementImages = function( elem ) {\n // filter siblings\n if ( elem.nodeName == 'IMG' ) {\n this.addImage( elem );\n }\n // get background image on element\n if ( this.options.background === true ) {\n this.addElementBackgroundImages( elem );\n }\n\n // find children\n // no non-element nodes, #143\n var nodeType = elem.nodeType;\n if ( !nodeType || !elementNodeTypes[ nodeType ] ) {\n return;\n }\n var childImgs = elem.querySelectorAll('img');\n // concat childElems to filterFound array\n for ( var i=0; i < childImgs.length; i++ ) {\n var img = childImgs[i];\n this.addImage( img );\n }\n\n // get child background images\n if ( typeof this.options.background == 'string' ) {\n var children = elem.querySelectorAll( this.options.background );\n for ( i=0; i < children.length; i++ ) {\n var child = children[i];\n this.addElementBackgroundImages( child );\n }\n }\n};\n\nvar elementNodeTypes = {\n 1: true,\n 9: true,\n 11: true\n};\n\nImagesLoaded.prototype.addElementBackgroundImages = function( elem ) {\n var style = getComputedStyle( elem );\n if ( !style ) {\n // Firefox returns null if in a hidden iframe https://bugzil.la/548397\n return;\n }\n // get url inside url(\"...\")\n var reURL = /url\\((['\"])?(.*?)\\1\\)/gi;\n var matches = reURL.exec( style.backgroundImage );\n while ( matches !== null ) {\n var url = matches && matches[2];\n if ( url ) {\n this.addBackground( url, elem );\n }\n matches = reURL.exec( style.backgroundImage );\n }\n};\n\n/**\n * @param {Image} img\n */\nImagesLoaded.prototype.addImage = function( img ) {\n var loadingImage = new LoadingImage( img );\n this.images.push( loadingImage );\n};\n\nImagesLoaded.prototype.addBackground = function( url, elem ) {\n var background = new Background( url, elem );\n this.images.push( background );\n};\n\nImagesLoaded.prototype.check = function() {\n var _this = this;\n this.progressedCount = 0;\n this.hasAnyBroken = false;\n // complete if no images\n if ( !this.images.length ) {\n this.complete();\n return;\n }\n\n function onProgress( image, elem, message ) {\n // HACK - Chrome triggers event before object properties have changed. #83\n setTimeout( function() {\n _this.progress( image, elem, message );\n });\n }\n\n this.images.forEach( function( loadingImage ) {\n loadingImage.once( 'progress', onProgress );\n loadingImage.check();\n });\n};\n\nImagesLoaded.prototype.progress = function( image, elem, message ) {\n this.progressedCount++;\n this.hasAnyBroken = this.hasAnyBroken || !image.isLoaded;\n // progress event\n this.emitEvent( 'progress', [ this, image, elem ] );\n if ( this.jqDeferred && this.jqDeferred.notify ) {\n this.jqDeferred.notify( this, image );\n }\n // check if completed\n if ( this.progressedCount == this.images.length ) {\n this.complete();\n }\n\n if ( this.options.debug && console ) {\n console.log( 'progress: ' + message, image, elem );\n }\n};\n\nImagesLoaded.prototype.complete = function() {\n var eventName = this.hasAnyBroken ? 'fail' : 'done';\n this.isComplete = true;\n this.emitEvent( eventName, [ this ] );\n this.emitEvent( 'always', [ this ] );\n if ( this.jqDeferred ) {\n var jqMethod = this.hasAnyBroken ? 'reject' : 'resolve';\n this.jqDeferred[ jqMethod ]( this );\n }\n};\n\n// -------------------------- -------------------------- //\n\nfunction LoadingImage( img ) {\n this.img = img;\n}\n\nLoadingImage.prototype = Object.create( EvEmitter.prototype );\n\nLoadingImage.prototype.check = function() {\n // If complete is true and browser supports natural sizes,\n // try to check for image status manually.\n var isComplete = this.getIsImageComplete();\n if ( isComplete ) {\n // report based on naturalWidth\n this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );\n return;\n }\n\n // If none of the checks above matched, simulate loading on detached element.\n this.proxyImage = new Image();\n this.proxyImage.addEventListener( 'load', this );\n this.proxyImage.addEventListener( 'error', this );\n // bind to image as well for Firefox. #191\n this.img.addEventListener( 'load', this );\n this.img.addEventListener( 'error', this );\n this.proxyImage.src = this.img.src;\n};\n\nLoadingImage.prototype.getIsImageComplete = function() {\n // check for non-zero, non-undefined naturalWidth\n // fixes Safari+InfiniteScroll+Masonry bug infinite-scroll#671\n return this.img.complete && this.img.naturalWidth;\n};\n\nLoadingImage.prototype.confirm = function( isLoaded, message ) {\n this.isLoaded = isLoaded;\n this.emitEvent( 'progress', [ this, this.img, message ] );\n};\n\n// ----- events ----- //\n\n// trigger specified handler for event type\nLoadingImage.prototype.handleEvent = function( event ) {\n var method = 'on' + event.type;\n if ( this[ method ] ) {\n this[ method ]( event );\n }\n};\n\nLoadingImage.prototype.onload = function() {\n this.confirm( true, 'onload' );\n this.unbindEvents();\n};\n\nLoadingImage.prototype.onerror = function() {\n this.confirm( false, 'onerror' );\n this.unbindEvents();\n};\n\nLoadingImage.prototype.unbindEvents = function() {\n this.proxyImage.removeEventListener( 'load', this );\n this.proxyImage.removeEventListener( 'error', this );\n this.img.removeEventListener( 'load', this );\n this.img.removeEventListener( 'error', this );\n};\n\n// -------------------------- Background -------------------------- //\n\nfunction Background( url, element ) {\n this.url = url;\n this.element = element;\n this.img = new Image();\n}\n\n// inherit LoadingImage prototype\nBackground.prototype = Object.create( LoadingImage.prototype );\n\nBackground.prototype.check = function() {\n this.img.addEventListener( 'load', this );\n this.img.addEventListener( 'error', this );\n this.img.src = this.url;\n // check if image is already complete\n var isComplete = this.getIsImageComplete();\n if ( isComplete ) {\n this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );\n this.unbindEvents();\n }\n};\n\nBackground.prototype.unbindEvents = function() {\n this.img.removeEventListener( 'load', this );\n this.img.removeEventListener( 'error', this );\n};\n\nBackground.prototype.confirm = function( isLoaded, message ) {\n this.isLoaded = isLoaded;\n this.emitEvent( 'progress', [ this, this.element, message ] );\n};\n\n// -------------------------- jQuery -------------------------- //\n\nImagesLoaded.makeJQueryPlugin = function( jQuery ) {\n jQuery = jQuery || window.jQuery;\n if ( !jQuery ) {\n return;\n }\n // set local variable\n $ = jQuery;\n // $().imagesLoaded()\n $.fn.imagesLoaded = function( options, callback ) {\n var instance = new ImagesLoaded( this, options, callback );\n return instance.jqDeferred.promise( $(this) );\n };\n};\n// try making plugin\nImagesLoaded.makeJQueryPlugin();\n\n// -------------------------- -------------------------- //\n\nreturn ImagesLoaded;\n\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/imagesloaded/imagesloaded.js?"); - -/***/ }), - -/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss": -/*!******************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss ***! - \******************************************************************************************************************************************************************************************************************************************/ -/***/ (function() { - -eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/scss/ajax-load-more.scss?./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B1%5D!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B3%5D"); - -/***/ }), - -/***/ "./node_modules/object-inspect/index.js": -/*!**********************************************!*\ - !*** ./node_modules/object-inspect/index.js ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -eval("var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = __webpack_require__(/*! ./util.inspect */ \"?4f7e\");\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '' + $toLowerCase.call(String(obj.nodeName)) + '>';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/object-inspect/index.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/formats.js": -/*!****************************************!*\ - !*** ./node_modules/qs/lib/formats.js ***! - \****************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/formats.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/index.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/index.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar stringify = __webpack_require__(/*! ./stringify */ \"./node_modules/qs/lib/stringify.js\");\nvar parse = __webpack_require__(/*! ./parse */ \"./node_modules/qs/lib/parse.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/index.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/parse.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/parse.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!options.parseArrays && cleanRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== cleanRoot\n && String(index) === cleanRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/parse.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/stringify.js": -/*!******************************************!*\ - !*** ./node_modules/qs/lib/stringify.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar getSideChannel = __webpack_require__(/*! side-channel */ \"./node_modules/side-channel/index.js\");\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.strictNullHandling,\n options.skipNulls,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/stringify.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/utils.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/utils.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/utils.js?"); - -/***/ }), - -/***/ "./node_modules/side-channel/index.js": -/*!********************************************!*\ - !*** ./node_modules/side-channel/index.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\nvar callBound = __webpack_require__(/*! call-bind/callBound */ \"./node_modules/call-bind/callBound.js\");\nvar inspect = __webpack_require__(/*! object-inspect */ \"./node_modules/object-inspect/index.js\");\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n * This function traverses the list returning the node corresponding to the\n * given key.\n *\n * That node is also moved to the head of the list, so that if it's accessed\n * again we don't need to traverse the whole list. By doing so, all the recently\n * used nodes can be accessed relatively quickly.\n */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\tfor (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tcurr.next = list.next;\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = { // eslint-disable-line no-param-reassign\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t};\n\t}\n};\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Initialize the linked list as an empty node, so that we don't have\n\t\t\t\t\t * to special-case handling of the first node: we can always refer to\n\t\t\t\t\t * it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t */\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/side-channel/index.js?"); - -/***/ }), - -/***/ "./src/frontend/scss/ajax-load-more.scss": -/*!***********************************************!*\ - !*** ./src/frontend/scss/ajax-load-more.scss ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./ajax-load-more.scss */ \"./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss\");\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== \"default\") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)\n/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default()), options);\n\n\n\n\n /* harmony default export */ __webpack_exports__[\"default\"] = ((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);\n\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/scss/ajax-load-more.scss?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": -/*!****************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! - \****************************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js": -/*!********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***! - \********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertBySelector.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js": -/*!**********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***! - \**********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertStyleElement.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! - \**********************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js": -/*!***************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***! - \***************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleDomAPI.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js": -/*!*********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***! - \*********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleTagTransform.js?"); - -/***/ }), - -/***/ "?9157": -/*!************************!*\ - !*** crypto (ignored) ***! - \************************/ -/***/ (function() { - -eval("/* (ignored) */\n\n//# sourceURL=webpack://ajaxloadmore/crypto_(ignored)?"); - -/***/ }), - -/***/ "?4f7e": -/*!********************************!*\ - !*** ./util.inspect (ignored) ***! - \********************************/ -/***/ (function() { - -eval("/* (ignored) */\n\n//# sourceURL=webpack://ajaxloadmore/./util.inspect_(ignored)?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/adapters.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/adapters/adapters.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ \"./node_modules/axios/lib/helpers/null.js\");\n/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ \"./node_modules/axios/lib/adapters/xhr.js\");\n/* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fetch.js */ \"./node_modules/axios/lib/adapters/fetch.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\n\nconst knownAdapters = {\n http: _http_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n fetch: _fetch_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isFunction(adapter) || adapter === null || adapter === false;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n getAdapter: (adapters) => {\n adapters = _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"](`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/adapters.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/fetch.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/adapters/fetch.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/composeSignals.js */ \"./node_modules/axios/lib/helpers/composeSignals.js\");\n/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/trackStream.js */ \"./node_modules/axios/lib/helpers/trackStream.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ \"./node_modules/axios/lib/helpers/progressEventReducer.js\");\n/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ \"./node_modules/axios/lib/helpers/resolveConfig.js\");\n/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/settle.js */ \"./node_modules/axios/lib/core/settle.js\");\n\n\n\n\n\n\n\n\n\n\nconst fetchProgressDecorator = (total, fn) => {\n const lengthComputable = total != null;\n return (loaded) => setTimeout(() => fn({\n lengthComputable,\n total,\n loaded\n }));\n}\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst supportsRequestStream = isReadableStreamSupported && (() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n})();\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported && !!(()=> {\n try {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isReadableStream(new Response('').body);\n } catch(err) {\n // return undefined\n }\n})();\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"](`Response type '${type}' is not supported`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isBlob(body)) {\n return body.size;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isSpecCompliantForm(body)) {\n return (await new Request(body).arrayBuffer()).byteLength;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArrayBufferView(body)) {\n return body.byteLength;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let [composedSignal, stopTimeout] = (signal || cancelToken || timeout) ?\n (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])([signal, cancelToken], timeout) : [];\n\n let finished, request;\n\n const onFinish = () => {\n !finished && setTimeout(() => {\n composedSignal && composedSignal.unsubscribe();\n });\n\n finished = true;\n }\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(\n requestContentLength,\n (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(onUploadProgress)\n ), null, encodeText);\n }\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(withCredentials)) {\n withCredentials = withCredentials ? 'cors' : 'omit';\n }\n\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n withCredentials\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].toFiniteNumber(response.headers.get('content-length'));\n\n response = new Response(\n (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(\n responseContentLength,\n (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(onDownloadProgress, true)\n ), isStreamResponse && onFinish, encodeText),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && onFinish();\n\n stopTimeout && stopTimeout();\n\n return await new Promise((resolve, reject) => {\n (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(resolve, reject, {\n data: responseData,\n headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"].from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n onFinish();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].from(err, err && err.code, config, request);\n }\n}));\n\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/fetch.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../core/settle.js */ \"./node_modules/axios/lib/core/settle.js\");\n/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ \"./node_modules/axios/lib/helpers/parseProtocol.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ \"./node_modules/axios/lib/helpers/progressEventReducer.js\");\n/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ \"./node_modules/axios/lib/helpers/resolveConfig.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(config);\n let requestData = _config.data;\n const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(_config.headers).normalize();\n let {responseType} = _config;\n let onCanceled;\n function done() {\n if (_config.cancelToken) {\n _config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (_config.signal) {\n _config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ECONNABORTED, _config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ERR_NETWORK, _config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"];\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ECONNABORTED,\n _config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n _utils_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (typeof _config.onDownloadProgress === 'function') {\n request.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof _config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_config.onUploadProgress));\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"](null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(_config.url);\n\n if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"].protocols.indexOf(protocol) === -1) {\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/xhr.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ \"./node_modules/axios/lib/core/Axios.js\");\n/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ \"./node_modules/axios/lib/cancel/CancelToken.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ \"./node_modules/axios/lib/helpers/spread.js\");\n/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ \"./node_modules/axios/lib/helpers/isAxiosError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ \"./node_modules/axios/lib/adapters/adapters.js\");\n/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ \"./node_modules/axios/lib/helpers/HttpStatusCode.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](defaultConfig);\n const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.request, context);\n\n // Copy axios.prototype to instance\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n\n// Expose Cancel & CancelToken\naxios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"];\naxios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\naxios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\naxios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION;\naxios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\n\n// Expose AxiosError class\naxios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"];\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"];\n\n// Expose isAxiosError\naxios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"];\n\n// Expose mergeConfig\naxios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n\naxios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__[\"default\"];\n\naxios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].getAdapter;\n\naxios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__[\"default\"];\n\naxios.default = axios;\n\n// this module should only have a default export\n/* harmony default export */ __webpack_exports__[\"default\"] = (axios);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/axios.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n\n\n\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CancelToken);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/CancelToken.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CanceledError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CanceledError.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n __CANCEL__: true\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CanceledError);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/CanceledError.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isCancel; }\n/* harmony export */ });\n\n\nfunction isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/isCancel.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ \"./node_modules/axios/lib/core/InterceptorManager.js\");\n/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ \"./node_modules/axios/lib/core/dispatchRequest.js\");\n/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ \"./node_modules/axios/lib/helpers/validator.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].merge(\n headers.common,\n headers[config.method]\n );\n\n headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this.defaults, config);\n const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(config.baseURL, config.url);\n return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Axios);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/Axios.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/AxiosError.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosError.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosError);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/AxiosError.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/AxiosHeaders.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosHeaders.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ \"./node_modules/axios/lib/helpers/parseHeaders.js\");\n\n\n\n\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(value)) return;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(header), valueOrRewrite);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].freezeMethods(AxiosHeaders);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosHeaders);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/AxiosHeaders.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (InterceptorManager);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/InterceptorManager.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/buildFullPath.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/buildFullPath.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ buildFullPath; }\n/* harmony export */ });\n/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ \"./node_modules/axios/lib/helpers/isAbsoluteURL.js\");\n/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ \"./node_modules/axios/lib/helpers/combineURLs.js\");\n\n\n\n\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nfunction buildFullPath(baseURL, requestedURL) {\n if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(requestedURL)) {\n return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(baseURL, requestedURL);\n }\n return requestedURL;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/buildFullPath.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ dispatchRequest; }\n/* harmony export */ });\n/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ \"./node_modules/axios/lib/core/transformData.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ \"./node_modules/axios/lib/adapters/adapters.js\");\n\n\n\n\n\n\n\n\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nfunction dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(config.headers);\n\n // Transform request data\n config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/dispatchRequest.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/mergeConfig.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/mergeConfig.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ mergeConfig; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\nconst headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nfunction mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(source)) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].merge.call({caseless}, target, source);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(source)) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].merge({}, source);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/mergeConfig.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ settle; }\n/* harmony export */ });\n/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nfunction settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](\n 'Request failed with status code ' + response.status,\n [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/settle.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ transformData; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nfunction transformData(fns, response) {\n const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n const context = response || config;\n const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(context.headers);\n let data = context.data;\n\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/transformData.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/defaults/index.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ \"./node_modules/axios/lib/helpers/toURLEncodedForm.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n\n\n\n\n\n\n\n\n\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(data);\n\n if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(data)) : data;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBuffer(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isStream(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFile(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isReadableStream(data)\n ) {\n return data;\n }\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBufferView(data)) {\n return data.buffer;\n }\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(data, this.formSerializer).toString();\n }\n\n if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isResponse(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isReadableStream(data)) {\n return data;\n }\n\n if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].classes.FormData,\n Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (defaults);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/defaults/index.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/transitional.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/defaults/transitional.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/defaults/transitional.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/env/data.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/env/data.js ***! - \********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ VERSION: function() { return /* binding */ VERSION; }\n/* harmony export */ });\nconst VERSION = \"1.7.2\";\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/env/data.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js": -/*!****************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n\n\n\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosURLSearchParams);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/HttpStatusCode.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/HttpStatusCode.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\nconst HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (HttpStatusCode);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/HttpStatusCode.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ bind; }\n/* harmony export */ });\n\n\nfunction bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/bind.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ buildURL; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nfunction buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(params) ?\n params.toString() :\n new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/buildURL.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ combineURLs; }\n/* harmony export */ });\n\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nfunction combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/combineURLs.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/composeSignals.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/composeSignals.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\nconst composeSignals = (signals, timeout) => {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (cancel) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = cancel instanceof Error ? cancel : this.reason;\n controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](`timeout ${timeout} of ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal &&\n (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort));\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal && signal.addEventListener && signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = unsubscribe;\n\n return [signal, () => {\n timer && clearTimeout(timer);\n timer = null;\n }];\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (composeSignals);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/composeSignals.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(path) && cookie.push('path=' + path);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n });\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/cookies.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/formDataToJSON.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/formDataToJSON.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target) ? target.length : name;\n\n if (isLast) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(formData.entries)) {\n const obj = {};\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (formDataToJSON);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/formDataToJSON.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isAbsoluteURL; }\n/* harmony export */ });\n\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nfunction isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isAbsoluteURL.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isAxiosError; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nfunction isAxiosError(payload) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(payload) && (payload.isAxiosError === true);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isAxiosError.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })());\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isURLSameOrigin.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/null.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/null.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n// eslint-disable-next-line strict\n/* harmony default export */ __webpack_exports__[\"default\"] = (null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/null.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\n/* harmony default export */ __webpack_exports__[\"default\"] = (rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/parseHeaders.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseProtocol.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseProtocol.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ parseProtocol; }\n/* harmony export */ });\n\n\nfunction parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/parseProtocol.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/progressEventReducer.js": -/*!****************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/progressEventReducer.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./speedometer.js */ \"./node_modules/axios/lib/helpers/speedometer.js\");\n/* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./throttle.js */ \"./node_modules/axios/lib/helpers/throttle.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(50, 250);\n\n return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n }, freq);\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/progressEventReducer.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/resolveConfig.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/resolveConfig.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isURLSameOrigin.js */ \"./node_modules/axios/lib/helpers/isURLSameOrigin.js\");\n/* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cookies.js */ \"./node_modules/axios/lib/helpers/cookies.js\");\n/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((config) => {\n const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(headers);\n\n newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isFormData(data)) {\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserEnv) {\n withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n});\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/resolveConfig.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/speedometer.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/speedometer.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (speedometer);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/speedometer.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ spread; }\n/* harmony export */ });\n\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nfunction spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/spread.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/throttle.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/throttle.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n const threshold = 1000 / freq;\n let timer = null;\n return function throttled() {\n const force = this === true;\n\n const now = Date.now();\n if (force || now - timestamp > threshold) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timestamp = now;\n return fn.apply(null, arguments);\n }\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n timestamp = Date.now();\n return fn.apply(null, arguments);\n }, threshold - (now - timestamp));\n }\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (throttle);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/throttle.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/toFormData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toFormData.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ \"./node_modules/axios/lib/helpers/null.js\");\n\n\n\n\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\n\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"] || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isSpecCompliantForm(formData);\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(value)) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]('Blob is not supported. Use a Buffer instead.');\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) && isFlatArray(value)) ||\n ((_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(value, function each(el, key) {\n const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && visitor.call(\n formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (toFormData);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/toFormData.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/toURLEncodedForm.js": -/*!************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toURLEncodedForm.js ***! - \************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ toURLEncodedForm; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n\nfunction toURLEncodedForm(data, options) {\n return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/toURLEncodedForm.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/trackStream.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/trackStream.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ readBytes: function() { return /* binding */ readBytes; },\n/* harmony export */ streamChunk: function() { return /* binding */ streamChunk; },\n/* harmony export */ trackStream: function() { return /* binding */ trackStream; }\n/* harmony export */ });\n\n\nconst streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nconst readBytes = async function* (iterable, chunkSize, encode) {\n for await (const chunk of iterable) {\n yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : (await encode(String(chunk))), chunkSize);\n }\n}\n\nconst trackStream = (stream, chunkSize, onProgress, onFinish, encode) => {\n const iterator = readBytes(stream, chunkSize, encode);\n\n let bytes = 0;\n\n return new ReadableStream({\n type: 'bytes',\n\n async pull(controller) {\n const {done, value} = await iterator.next();\n\n if (done) {\n controller.close();\n onFinish();\n return;\n }\n\n let len = value.byteLength;\n onProgress && onProgress(bytes += len);\n controller.enqueue(new Uint8Array(value));\n },\n cancel(reason) {\n onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/trackStream.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/validator.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/validator.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION);\n }\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n assertOptions,\n validators\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/validator.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/Blob.js": -/*!*****************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/Blob.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof Blob !== 'undefined' ? Blob : null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/Blob.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/FormData.js": -/*!*********************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/FormData.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof FormData !== 'undefined' ? FormData : null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/FormData.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js": -/*!****************************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***! - \****************************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/index.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ \"./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js\");\n/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ \"./node_modules/axios/lib/platform/browser/classes/FormData.js\");\n/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ \"./node_modules/axios/lib/platform/browser/classes/Blob.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isBrowser: true,\n classes: {\n URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/index.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/common/utils.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/platform/common/utils.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ hasBrowserEnv: function() { return /* binding */ hasBrowserEnv; },\n/* harmony export */ hasStandardBrowserEnv: function() { return /* binding */ hasStandardBrowserEnv; },\n/* harmony export */ hasStandardBrowserWebWorkerEnv: function() { return /* binding */ hasStandardBrowserWebWorkerEnv; },\n/* harmony export */ origin: function() { return /* binding */ origin; }\n/* harmony export */ });\nconst hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/common/utils.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/platform/index.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node/index.js */ \"./node_modules/axios/lib/platform/browser/index.js\");\n/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/utils.js */ \"./node_modules/axios/lib/platform/common/utils.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n ..._common_utils_js__WEBPACK_IMPORTED_MODULE_0__,\n ..._node_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/index.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n\n\n\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/utils.js?"); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ !function() { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function() { return module['default']; } : -/******/ function() { return module; }; -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/global */ -/******/ !function() { -/******/ __webpack_require__.g = (function() { -/******/ if (typeof globalThis === 'object') return globalThis; -/******/ try { -/******/ return this || new Function('return this')(); -/******/ } catch (e) { -/******/ if (typeof window === 'object') return window; -/******/ } -/******/ })(); -/******/ }(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/nonce */ -/******/ !function() { -/******/ __webpack_require__.nc = undefined; -/******/ }(); -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __webpack_require__("./src/frontend/js/ajax-load-more.js"); -/******/ ajaxloadmore = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file +var ajaxloadmore;!function(){var t={924:function(t,e,n){"use strict";var r=n(210),o=n(559),a=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&a(t,".prototype.")>-1?o(n):n}},559:function(t,e,n){"use strict";var r=n(612),o=n(210),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(i,a),l=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,i,arguments);l&&c&&(l(e,"length").configurable&&c(e,"length",{value:1+u(0,t.length-(arguments.length-1))}));return e};var d=function(){return s(r,a,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},249:function(t,e,n){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(480)}catch(t){}var o=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},s=i.lib={},l=s.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;e[r+a>>>2]|=i<<24-(r+a)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new c.init(n,e/2)}},p=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new c.init(n,e)}},f=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,s=a/(4*i),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*i,u=t.min(4*l,a);if(l){for(var d=0;d>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,i=t[e+0],l=t[e+1],f=t[e+2],g=t[e+3],h=t[e+4],m=t[e+5],y=t[e+6],v=t[e+7],_=t[e+8],w=t[e+9],b=t[e+10],x=t[e+11],S=t[e+12],L=t[e+13],E=t[e+14],j=t[e+15],A=a[0],O=a[1],P=a[2],T=a[3];A=c(A,O,P,T,i,7,s[0]),T=c(T,A,O,P,l,12,s[1]),P=c(P,T,A,O,f,17,s[2]),O=c(O,P,T,A,g,22,s[3]),A=c(A,O,P,T,h,7,s[4]),T=c(T,A,O,P,m,12,s[5]),P=c(P,T,A,O,y,17,s[6]),O=c(O,P,T,A,v,22,s[7]),A=c(A,O,P,T,_,7,s[8]),T=c(T,A,O,P,w,12,s[9]),P=c(P,T,A,O,b,17,s[10]),O=c(O,P,T,A,x,22,s[11]),A=c(A,O,P,T,S,7,s[12]),T=c(T,A,O,P,L,12,s[13]),P=c(P,T,A,O,E,17,s[14]),A=u(A,O=c(O,P,T,A,j,22,s[15]),P,T,l,5,s[16]),T=u(T,A,O,P,y,9,s[17]),P=u(P,T,A,O,x,14,s[18]),O=u(O,P,T,A,i,20,s[19]),A=u(A,O,P,T,m,5,s[20]),T=u(T,A,O,P,b,9,s[21]),P=u(P,T,A,O,j,14,s[22]),O=u(O,P,T,A,h,20,s[23]),A=u(A,O,P,T,w,5,s[24]),T=u(T,A,O,P,E,9,s[25]),P=u(P,T,A,O,g,14,s[26]),O=u(O,P,T,A,_,20,s[27]),A=u(A,O,P,T,L,5,s[28]),T=u(T,A,O,P,f,9,s[29]),P=u(P,T,A,O,v,14,s[30]),A=d(A,O=u(O,P,T,A,S,20,s[31]),P,T,m,4,s[32]),T=d(T,A,O,P,_,11,s[33]),P=d(P,T,A,O,x,16,s[34]),O=d(O,P,T,A,E,23,s[35]),A=d(A,O,P,T,l,4,s[36]),T=d(T,A,O,P,h,11,s[37]),P=d(P,T,A,O,v,16,s[38]),O=d(O,P,T,A,b,23,s[39]),A=d(A,O,P,T,L,4,s[40]),T=d(T,A,O,P,i,11,s[41]),P=d(P,T,A,O,g,16,s[42]),O=d(O,P,T,A,y,23,s[43]),A=d(A,O,P,T,w,4,s[44]),T=d(T,A,O,P,S,11,s[45]),P=d(P,T,A,O,j,16,s[46]),A=p(A,O=d(O,P,T,A,f,23,s[47]),P,T,i,6,s[48]),T=p(T,A,O,P,v,10,s[49]),P=p(P,T,A,O,E,15,s[50]),O=p(O,P,T,A,m,21,s[51]),A=p(A,O,P,T,S,6,s[52]),T=p(T,A,O,P,g,10,s[53]),P=p(P,T,A,O,b,15,s[54]),O=p(O,P,T,A,l,21,s[55]),A=p(A,O,P,T,_,6,s[56]),T=p(T,A,O,P,j,10,s[57]),P=p(P,T,A,O,y,15,s[58]),O=p(O,P,T,A,L,21,s[59]),A=p(A,O,P,T,h,6,s[60]),T=p(T,A,O,P,x,10,s[61]),P=p(P,T,A,O,f,15,s[62]),O=p(O,P,T,A,w,21,s[63]),a[0]=a[0]+A|0,a[1]=a[1]+O|0,a[2]=a[2]+P|0,a[3]=a[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var a=t.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,o,a,i){var s=t+(e&n|~e&r)+o+i;return(s<>>32-a)+e}function u(t,e,n,r,o,a,i){var s=t+(e&r|n&~r)+o+i;return(s<>>32-a)+e}function d(t,e,n,r,o,a,i){var s=t+(e^n^r)+o+i;return(s<>>32-a)+e}function p(t,e,n,r,o,a,i){var s=t+(n^(e|~r))+o+i;return(s<>>32-a)+e}e.MD5=a._createHelper(l),e.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5)},158:function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=E(t,0,1),n=E(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return L(t,A,(function(t,e,n,o){r[r.length]=n?L(o,O,"$1"):e||t})),r}(t),r=n.length>0?n[0]:"",a=P("%"+r+"%",e),s=a.name,c=a.value,u=!1,d=a.alias;d&&(r=d[0],S(n,x([0,1],d)));for(var p=1,f=!0;p=n.length){var v=l(c,g);c=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[g]}else f=b(c,g),c=c[g];f&&!u&&(m[s]=c)}}return c}},185:function(t){"use strict";var e={foo:{}},n=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof n)}},405:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(419);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},419:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},642:function(t,e,n){"use strict";var r=n(612);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},564:function(t,e,n){var r,o; +/*! + * imagesLoaded v4.1.4 + * JavaScript is all like "You images are done yet or what?" + * MIT License + */!function(a,i){"use strict";r=[n(158)],o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?a.call(t):[t]}function s(t,e,a){if(!(this instanceof s))return new s(t,e,a);var l=t;"string"==typeof t&&(l=document.querySelectorAll(t)),l?(this.elements=i(l),this.options=o({},this.options),"function"==typeof e?a=e:o(this.options,e),a&&this.on("always",a),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(l||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var n=t.querySelectorAll("img"),r=0;r-1e3&&t<1e3||x.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-j(-t):j(t);if(r!==t){var o=String(r),a=v.call(e,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(e,n,"$&_")}var R=n(654),C=R.custom,F=z(C)?C:null;function q(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function D(t){return _.call(String(t),/"/g,""")}function B(t){return!("[object Array]"!==W(t)||k&&"object"==typeof t&&k in t)}function U(t){return!("[object RegExp]"!==W(t)||k&&"object"==typeof t&&k in t)}function z(t){if(T)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var s=n||{};if(G(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!G(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return $(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return h?N(e,w):w}if("bigint"==typeof e){var x=String(e)+"n";return h?N(e,x):x}var j=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=j&&j>0&&"object"==typeof e)return B(e)?"[Array]":"[Object]";var O=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=L.call(Array(t.indent+1)," ")}return{base:n,prev:L.call(Array(e+1),n)}}(s,r);if(void 0===o)o=[];else if(V(o,e)>=0)return"[Circular]";function C(e,n,a){if(n&&(o=E.call(o)).push(n),a){var i={depth:s.depth};return G(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),t(e,i,r+1,o)}return t(e,s,r+1,o)}if("function"==typeof e&&!U(e)){var H=function(t){if(t.name)return t.name;var e=y.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),J=Z(e,C);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(J.length>0?" { "+L.call(J,", ")+" }":"")}if(z(e)){var tt=T?_.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(e);return"object"!=typeof e||T?tt:Q(tt)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var et="<"+b.call(String(e.nodeName)),nt=e.attributes||[],rt=0;rt",e.childNodes&&e.childNodes.length&&(et+="..."),et+=""+b.call(String(e.nodeName))+">"}if(B(e)){if(0===e.length)return"[]";var ot=Z(e,C);return O&&!function(t){for(var e=0;e=0)return!1;return!0}(ot)?"["+X(ot,O)+"]":"[ "+L.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==W(t)||k&&"object"==typeof t&&k in t)}(e)){var at=Z(e,C);return"cause"in Error.prototype||!("cause"in e)||I.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+L.call(at,", ")+" }":"{ ["+String(e)+"] "+L.call(S.call("[cause]: "+C(e.cause),at),", ")+" }"}if("object"==typeof e&&l){if(F&&"function"==typeof e[F]&&R)return R(e,{depth:j-r});if("symbol"!==l&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var it=[];return i&&i.call(e,(function(t,n){it.push(C(n,e,!0)+" => "+C(t,e))})),K("Map",a.call(e),it,O)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{a.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return u&&u.call(e,(function(t){st.push(C(t,e))})),K("Set",c.call(e),st,O)}if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return!("[object Number]"!==W(t)||k&&"object"==typeof t&&k in t)}(e))return Q(C(Number(e)));if(function(t){if(!t||"object"!=typeof t||!A)return!1;try{return A.call(t),!0}catch(t){}return!1}(e))return Q(C(A.call(e)));if(function(t){return!("[object Boolean]"!==W(t)||k&&"object"==typeof t&&k in t)}(e))return Q(g.call(e));if(function(t){return!("[object String]"!==W(t)||k&&"object"==typeof t&&k in t)}(e))return Q(C(String(e)));if(!function(t){return!("[object Date]"!==W(t)||k&&"object"==typeof t&&k in t)}(e)&&!U(e)){var lt=Z(e,C),ct=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,ut=e instanceof Object?"":"null prototype",dt=!ct&&k&&Object(e)===e&&k in e?v.call(W(e),8,-1):ut?"Object":"",pt=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(dt||ut?"["+L.call(S.call([],dt||[],ut||[]),": ")+"] ":"");return 0===lt.length?pt+"{}":O?pt+"{"+X(lt,O)+"}":pt+"{ "+L.call(lt,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function G(t,e){return H.call(t,e)}function W(t){return h.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(v.call(t,0,e.maxStringLength),e)+r}return q(_.call(_.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Q(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function K(t,e,n,r){return t+" ("+e+") {"+(r?X(n,r):L.call(n,", "))+"}"}function X(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+L.call(t,","+n)+"\n"+e.prev}function Z(t,e){var n=B(t),r=[];if(n){r.length=t.length;for(var o=0;o-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:"__proto__"!==c&&(i[c]=o):i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:i.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,p=u.split(e.delimiter,d),f=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(m=a(m)?[m]:m),o.call(c,h)?c[h]=r.combine(c[h],m):c[h]=m}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},p=Object.keys(u),f=0;f0?L.join(",")||null:void 0}];else if(l(p))P=p;else{var k=Object.keys(L);P=h?k.sort(h):k}for(var I=i&&l(L)&&1===L.length?n+"[]":n,M=0;M0?b+w:""}},769:function(t,e,n){"use strict";var r=n(798),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r1;){var e=t.pop(),n=e.obj[e.prop];if(a(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=i[u]:u<2048?l+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?l+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return l},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var n=[],r=0;r0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},589:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},480:function(){},654:function(){}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};!function(){"use strict";n.r(r),n.d(r,{almScroll:function(){return eo},analytics:function(){return Zr},click:function(){return ro},filter:function(){return Jr},getOffset:function(){return no},getPostCount:function(){return Yr},getTotalPosts:function(){return Kr},getTotalRemaining:function(){return Xr},reset:function(){return Qr},start:function(){return to},wpblock:function(){return oo}});var t={};function e(t,e){return function(){return t.apply(e,arguments)}}n.r(t),n.d(t,{hasBrowserEnv:function(){return it},hasStandardBrowserEnv:function(){return st},hasStandardBrowserWebWorkerEnv:function(){return ct},origin:function(){return ut}});const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,i=(s=Object.create(null),t=>{const e=o.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())});var s;const l=t=>(t=t.toLowerCase(),e=>i(e)===t),c=t=>e=>typeof e===t,{isArray:u}=Array,d=c("undefined");const p=l("ArrayBuffer");const f=c("string"),g=c("function"),h=c("number"),m=t=>null!==t&&"object"==typeof t,y=t=>{if("object"!==i(t))return!1;const e=a(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},v=l("Date"),_=l("File"),w=l("Blob"),b=l("FileList"),x=l("URLSearchParams"),[S,L,E,j]=["ReadableStream","Request","Response","Headers"].map(l);function A(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),u(t))for(r=0,o=t.length;r0;)if(r=n[o],e===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=t=>!d(t)&&t!==P;const k=(I="undefined"!=typeof Uint8Array&&a(Uint8Array),t=>I&&t instanceof I);var I;const M=l("HTMLFormElement"),N=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),R=l("RegExp"),C=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};A(n,((n,o)=>{let a;!1!==(a=e(n,o,t))&&(r[o]=a||n)})),Object.defineProperties(t,r)},F="abcdefghijklmnopqrstuvwxyz",q="0123456789",D={DIGIT:q,ALPHA:F,ALPHA_DIGIT:F+F.toUpperCase()+q};const B=l("AsyncFunction");var U={isArray:u,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=i(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:f,isNumber:h,isBoolean:t=>!0===t||!1===t,isObject:m,isPlainObject:y,isReadableStream:S,isRequest:L,isResponse:E,isHeaders:j,isUndefined:d,isDate:v,isFile:_,isBlob:w,isRegExp:R,isFunction:g,isStream:t=>m(t)&&g(t.pipe),isURLSearchParams:x,isTypedArray:k,isFileList:b,forEach:A,merge:function t(){const{caseless:e}=T(this)&&this||{},n={},r=(r,o)=>{const a=e&&O(n,o)||o;y(n[a])&&y(r)?n[a]=t(n[a],r):y(r)?n[a]=t({},r):u(r)?n[a]=r.slice():n[a]=r};for(let t=0,e=arguments.length;t(A(n,((n,o)=>{r&&g(n)?t[o]=e(n,r):t[o]=n}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const l={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==n&&a(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:i,kindOfTest:l,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!h(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:C,freezeMethods:t=>{C(t,((e,n)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];g(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:O,global:P,isContextDefined:T,ALPHABET:D,generateString:(t=16,e=D.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(m(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=u(t)?[]:{};return A(t,((t,e)=>{const a=n(t,r+1);!d(a)&&(o[e]=a)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:B,isThenable:t=>t&&(m(t)||g(t))&&g(t.then)&&g(t.catch)};function z(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}U.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H=z.prototype,G={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{G[t]={value:t}})),Object.defineProperties(z,G),Object.defineProperty(H,"isAxiosError",{value:!0}),z.from=(t,e,n,r,o,a)=>{const i=Object.create(H);return U.toFlatObject(t,i,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),z.call(i,t.message,e,n,r,o),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};var W=z;function V(t){return U.isPlainObject(t)||U.isArray(t)}function $(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function J(t,e,n){return t?t.concat(e).map((function(t,e){return t=$(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Q=U.toFlatObject(U,{},null,(function(t){return/^is[A-Z]/.test(t)}));var Y=function(t,e,n){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!U.isUndefined(e[t])}))).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&U.isSpecCompliantForm(e);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(U.isDate(t))return t.toISOString();if(!s&&U.isBlob(t))throw new W("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(t)||U.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(U.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(U.isArray(t)&&function(t){return U.isArray(t)&&!t.some(V)}(t)||(U.isFileList(t)||U.endsWith(n,"[]"))&&(s=U.toArray(t)))return n=$(n),s.forEach((function(t,r){!U.isUndefined(t)&&null!==t&&e.append(!0===i?J([n],r,a):null===i?n:n+"[]",l(t))})),!1;return!!V(t)||(e.append(J(o,n,a),l(t)),!1)}const u=[],d=Object.assign(Q,{defaultVisitor:c,convertValue:l,isVisitable:V});if(!U.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!U.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),U.forEach(n,(function(n,a){!0===(!(U.isUndefined(n)||null===n)&&o.call(e,n,U.isString(a)?a.trim():a,r,d))&&t(n,r?r.concat(a):[a])})),u.pop()}}(t),e};function K(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function X(t,e){this._pairs=[],t&&Y(t,this,e)}const Z=X.prototype;Z.append=function(t,e){this._pairs.push([t,e])},Z.toString=function(t){const e=t?function(e){return t.call(this,e,K)}:K;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var tt=X;function et(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nt(t,e,n){if(!e)return t;const r=n&&n.encode||et,o=n&&n.serialize;let a;if(a=o?o(e,n):U.isURLSearchParams(e)?e.toString():new tt(e,n).toString(r),a){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}var rt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},at={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const it="undefined"!=typeof window&&"undefined"!=typeof document,st=(lt="undefined"!=typeof navigator&&navigator.product,it&&["ReactNative","NativeScript","NS"].indexOf(lt)<0);var lt;const ct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ut=it&&window.location.href||"http://localhost";var dt={...t,...at};var pt=function(t){function e(t,n,r,o){let a=t[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=t.length;if(a=!a&&U.isArray(r)?r.length:a,s)return U.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&U.isObject(r[a])||(r[a]=[]);return e(t,n,r[a],o)&&U.isArray(r[a])&&(r[a]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let a;for(r=0;r{e(function(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const ft={transitional:ot,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=U.isObject(t);o&&U.isHTMLForm(t)&&(t=new FormData(t));if(U.isFormData(t))return r?JSON.stringify(pt(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Y(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return dt.isNode&&U.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((a=U.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Y(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||ft.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw W.from(t,W.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],(t=>{ft.headers[t]={}}));var gt=ft;const ht=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const mt=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function vt(t){return!1===t||null==t?t:U.isArray(t)?t.map(vt):String(t)}function _t(t,e,n,r,o){return U.isFunction(r)?r.call(this,e,n):(o&&(e=n),U.isString(e)?U.isString(r)?-1!==e.indexOf(r):U.isRegExp(r)?r.test(e):void 0:void 0)}class wt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=yt(e);if(!o)throw new Error("header name must be a non-empty string");const a=U.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||e]=vt(t))}const a=(t,e)=>U.forEach(t,((t,n)=>o(t,n,e)));if(U.isPlainObject(t)||t instanceof this.constructor)a(t,e);else if(U.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))a((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&ht[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(U.isHeaders(t))for(const[e,r]of t.entries())o(r,e,n);else null!=t&&o(e,t,n);return this}get(t,e){if(t=yt(t)){const n=U.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(U.isFunction(e))return e.call(this,t,n);if(U.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=yt(t)){const n=U.findKey(this,t);return!(!n||void 0===this[n]||e&&!_t(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=yt(t)){const o=U.findKey(n,t);!o||e&&!_t(0,n[o],o,e)||(delete n[o],r=!0)}}return U.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!_t(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return U.forEach(this,((r,o)=>{const a=U.findKey(n,o);if(a)return e[a]=vt(r),void delete e[o];const i=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete e[o],e[i]=vt(r),n[i]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return U.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&U.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[mt]=this[mt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=yt(t);e[r]||(!function(t,e){const n=U.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return U.isArray(t)?t.forEach(r):r(t),this}}wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(wt.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),U.freezeMethods(wt);var bt=wt;function xt(t,e){const n=this||gt,r=e||n,o=bt.from(r.headers);let a=r.data;return U.forEach(t,(function(t){a=t.call(n,a,o.normalize(),e?e.status:void 0)})),o.normalize(),a}function St(t){return!(!t||!t.__CANCEL__)}function Lt(t,e,n){W.call(this,null==t?"canceled":t,W.ERR_CANCELED,e,n),this.name="CanceledError"}U.inherits(Lt,W,{__CANCEL__:!0});var Et=Lt;function jt(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}var At=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,a=0,i=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=r[i];o||(o=l),n[a]=s,r[a]=l;let u=i,d=0;for(;u!==a;)d+=n[u++],u%=t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),l-or)return o&&(clearTimeout(o),o=null),n=a,t.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),t.apply(null,arguments))),r-(a-n)))}},Pt=(t,e,n=3)=>{let r=0;const o=At(50,250);return Ot((n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i};c[e?"download":"upload"]=!0,t(c)}),n)},Tt=dt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=U.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0},kt=dt.hasStandardBrowserEnv?{write(t,e,n,r,o,a){const i=[t+"="+encodeURIComponent(e)];U.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),U.isString(r)&&i.push("path="+r),U.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function It(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Mt=t=>t instanceof bt?{...t}:t;function Nt(t,e){e=e||{};const n={};function r(t,e,n){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge.call({caseless:n},t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function o(t,e,n){return U.isUndefined(e)?U.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function a(t,e){if(!U.isUndefined(e))return r(void 0,e)}function i(t,e){return U.isUndefined(e)?U.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,a){return a in e?r(n,o):a in t?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(t,e)=>o(Mt(t),Mt(e),!0)};return U.forEach(Object.keys(Object.assign({},t,e)),(function(r){const a=l[r]||o,i=a(t[r],e[r],r);U.isUndefined(i)&&a!==s||(n[r]=i)})),n}var Rt=t=>{const e=Nt({},t);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=e;if(e.headers=s=bt.from(s),e.url=nt(It(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),U.isFormData(r))if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(dt.hasStandardBrowserEnv&&(o&&U.isFunction(o)&&(o=o(e)),o||!1!==o&&Tt(e.url))){const t=a&&i&&kt.read(i);t&&s.set(a,t)}return e};var Ct="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=Rt(t);let o=r.data;const a=bt.from(r.headers).normalize();let i,{responseType:s}=r;function l(){r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let c=new XMLHttpRequest;function u(){if(!c)return;const r=bt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());jt((function(t){e(t),l()}),(function(t){n(t),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new W("Request aborted",W.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const e=r.transitional||ot;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,e.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,r,c)),c=null},void 0===o&&a.setContentType(null),"setRequestHeader"in c&&U.forEach(a.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),U.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),s&&"json"!==s&&(c.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&c.addEventListener("progress",Pt(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Pt(r.onUploadProgress)),(r.cancelToken||r.signal)&&(i=e=>{c&&(n(!e||e.type?new Et(null,t,c):e),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const d=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);d&&-1===dt.protocols.indexOf(d)?n(new W("Unsupported protocol "+d+":",W.ERR_BAD_REQUEST,t)):c.send(o||null)}))};var Ft=(t,e)=>{let n,r=new AbortController;const o=function(t){if(!n){n=!0,i();const e=t instanceof Error?t:this.reason;r.abort(e instanceof W?e:new Et(e instanceof Error?e.message:e))}};let a=e&&setTimeout((()=>{o(new W(`timeout ${e} of ms exceeded`,W.ETIMEDOUT))}),e);const i=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach((t=>{t&&(t.removeEventListener?t.removeEventListener("abort",o):t.unsubscribe(o))})),t=null)};t.forEach((t=>t&&t.addEventListener&&t.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=i,[s,()=>{a&&clearTimeout(a),a=null}]};const qt=function*(t,e){let n=t.byteLength;if(!e||n{const a=async function*(t,e,n){for await(const r of t)yield*qt(ArrayBuffer.isView(r)?r:await n(String(r)),e)}(t,e,o);let i=0;return new ReadableStream({type:"bytes",async pull(t){const{done:e,value:o}=await a.next();if(e)return t.close(),void r();let s=o.byteLength;n&&n(i+=s),t.enqueue(new Uint8Array(o))},cancel(t){return r(t),a.return()}},{highWaterMark:2})},Bt=(t,e)=>{const n=null!=t;return r=>setTimeout((()=>e({lengthComputable:n,total:t,loaded:r})))},Ut="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,zt=Ut&&"function"==typeof ReadableStream,Ht=Ut&&("function"==typeof TextEncoder?(Gt=new TextEncoder,t=>Gt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Gt;const Wt=zt&&(()=>{let t=!1;const e=new Request(dt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),Vt=zt&&!!(()=>{try{return U.isReadableStream(new Response("").body)}catch(t){}})(),$t={stream:Vt&&(t=>t.body)};var Jt;Ut&&(Jt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!$t[t]&&($t[t]=U.isFunction(Jt[t])?e=>e[t]():(e,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})));const Qt=async(t,e)=>{const n=U.toFiniteNumber(t.getContentLength());return null==n?(async t=>null==t?0:U.isBlob(t)?t.size:U.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:U.isArrayBufferView(t)?t.byteLength:(U.isURLSearchParams(t)&&(t+=""),U.isString(t)?(await Ht(t)).byteLength:void 0))(e):n};var Yt=Ut&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Rt(t);c=c?(c+"").toLowerCase():"text";let f,g,[h,m]=o||a||i?Ft([o,a],i):[];const y=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let v;try{if(l&&Wt&&"get"!==n&&"head"!==n&&0!==(v=await Qt(u,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});U.isFormData(r)&&(t=n.headers.get("content-type"))&&u.setContentType(t),n.body&&(r=Dt(n.body,65536,Bt(v,Pt(l)),null,Ht))}U.isString(d)||(d=d?"cors":"omit"),g=new Request(e,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let o=await fetch(g);const a=Vt&&("stream"===c||"response"===c);if(Vt&&(s||a)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=U.toFiniteNumber(o.headers.get("content-length"));o=new Response(Dt(o.body,65536,s&&Bt(e,Pt(s,!0)),a&&y,Ht),t)}c=c||"text";let i=await $t[U.findKey($t,c)||"text"](o,t);return!a&&y(),m&&m(),await new Promise(((e,n)=>{jt(e,n,{data:i,headers:bt.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:g})}))}catch(e){if(y(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,t,g),{cause:e.cause||e});throw W.from(e,e&&e.code,t,g)}});const Kt={http:null,xhr:Ct,fetch:Yt};U.forEach(Kt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Xt=t=>`- ${t}`,Zt=t=>U.isFunction(t)||null===t||!1===t;var te=t=>{t=U.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let a=0;a`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(Xt).join("\n"):" "+Xt(t[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Et(null,t)}function ne(t){ee(t),t.headers=bt.from(t.headers),t.data=xt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return te(t.adapter||gt.adapter)(t).then((function(e){return ee(t),e.data=xt.call(t,t.transformResponse,e),e.headers=bt.from(e.headers),e}),(function(e){return St(e)||(ee(t),e&&e.response&&(e.response.data=xt.call(t,t.transformResponse,e.response),e.response.headers=bt.from(e.response.headers))),Promise.reject(e)}))}const re="1.7.2",oe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{oe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const ae={};oe.transitional=function(t,e,n){function r(t,e){return"[Axios v1.7.2] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,a)=>{if(!1===t)throw new W(r(o," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!ae[o]&&(ae[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,a)}};var ie={assertOptions:function(t,e,n){if("object"!=typeof t)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const a=r[o],i=e[a];if(i){const e=t[a],n=void 0===e||i(e,a,t);if(!0!==n)throw new W("option "+a+" must be "+n,W.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new W("Unknown option "+a,W.ERR_BAD_OPTION)}},validators:oe};const se=ie.validators;class le{constructor(t){this.defaults=t,this.interceptors={request:new rt,response:new rt}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Nt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&ie.assertOptions(n,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1),null!=r&&(U.isFunction(r)?e.paramsSerializer={serialize:r}:ie.assertOptions(r,{encode:se.function,serialize:se.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=o&&U.merge(o.common,o[e.method]);o&&U.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=bt.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,i.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let u,d=0;if(!s){const t=[ne.bind(this),void 0];for(t.unshift.apply(t,i),t.push.apply(t,l),u=t.length,c=Promise.resolve(e);d{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Et(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new ue((function(e){t=e})),cancel:t}}}var de=ue;const pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pe).forEach((([t,e])=>{pe[e]=t}));var fe=pe;const ge=function t(n){const r=new ce(n),o=e(ce.prototype.request,r);return U.extend(o,ce.prototype,r,{allOwnKeys:!0}),U.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Nt(n,e))},o}(gt);ge.Axios=ce,ge.CanceledError=Et,ge.CancelToken=de,ge.isCancel=St,ge.VERSION=re,ge.toFormData=Y,ge.AxiosError=W,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=function(t){return function(e){return t.apply(null,e)}},ge.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError},ge.mergeConfig=Nt,ge.AxiosHeaders=bt,ge.formToJSON=t=>pt(U.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=te,ge.HttpStatusCode=fe,ge.default=ge;var he=ge,me=n(379),ye=n.n(me),ve=n(795),_e=n.n(ve),we=n(569),be=n.n(we),xe=n(565),Se=n.n(xe),Le=n(216),Ee=n.n(Le),je=n(589),Ae=n.n(je),Oe=n(792),Pe=n.n(Oe),Te={};Te.styleTagTransform=Ae(),Te.setAttributes=Se(),Te.insert=be().bind(null,"head"),Te.domAPI=_e(),Te.insertStyleElement=Ee();ye()(Pe(),Te),Pe()&&Pe().locals&&Pe().locals;var ke=n(214),Ie=n.n(ke),Me=alm_localize,Ne=Me.rest_api,Re=Me.rest_nonce,Ce=he.create({baseURL:Ne,headers:{"content-type":"application/json","X-WP-Nonce":Re}});function Fe(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"next";if(!t||!t.trigger)return!1;var r=t.trigger.querySelector(".alm-load-more-btn");return"prev"===n&&(r=document.querySelector(".alm-load-more-btn--prev")),(null===(e=r)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.url)||""}function qe(t,e,n){t&&0!==e&&("prev"===(null==t?void 0:t.rel)&&(t.href=n),t.dataset.page=e,t.dataset.url=n||"")}function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Be(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Be=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==De(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ue(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function ze(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ue(a,r,o,i,s,"next",t)}function s(t){Ue(a,r,o,i,s,"throw",t)}i(void 0)}))}}function He(t,e,n){return Ge.apply(this,arguments)}function Ge(){return Ge=ze(Be().mark((function t(e,n,r){var o,a,i,s,l,c;return Be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.html,a=void 0===o?"":o,i=n.meta,s=void 0===i?{}:i,a&&e.addons.cache){t.next=3;break}return t.abrupt("return");case 3:return l={cache_id:e.addons.cache_id,cache_logged_in:e.addons.cache_logged_in,canonical_url:e.canonical_url,name:r,html:a.trim(),postcount:s.postcount,totalposts:s.totalposts},t.next=6,Ce.post("ajax-load-more/cache/create",l);case 6:200===(c=t.sent).status&&c.data&&c.data.success&&console.log(c.data.msg);case 8:case"end":return t.stop()}}),t)}))),Ge.apply(this,arguments)}function We(t,e){return Ve.apply(this,arguments)}function Ve(){return Ve=ze(Be().mark((function t(e,n){var r,o;return Be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(!e.addons.cache||e.addons.cache&&e.addons.cache_logged_in)){t.next=2;break}return t.abrupt("return",!1);case 2:return r={id:e.addons.cache_id,name:n.cache_slug},t.next=5,Ce.get("ajax-load-more/cache/get",{params:r});case 5:if(200!==(o=t.sent).status||!o.data){t.next=8;break}return t.abrupt("return",o.data);case 8:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t)}))),Ve.apply(this,arguments)}var $e=["#text","#comment"],Je={html:"",meta:{postcount:0,totalposts:0}};function Qe(){"function"==typeof Event&&setTimeout((function(){window.dispatchEvent(new CustomEvent("scroll"))}),!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?150:1)}function Ye(t,e){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),e.removeAttribute("aria-live"),e.removeAttribute("aria-atomic")}function Ke(t){return function(t){if(Array.isArray(t))return Xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!==e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r3&&void 0!==arguments[3]?arguments[3]:"next",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];function a(){"prev"===r?t.insertBefore(e,t.childNodes[0]):t.appendChild(e),tn(e),en(e,n)}return new Promise((function(t){e.style.transition="all 0.25s ease",o?nn(e,(function(){a(),t(!0)})):(a(),t(!0))}))}function on(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null!==(e=alm_localize)&&void 0!==e&&e.a11y_focus&&n&&(t.addons.woocommerce||t.addons.elementor?an(!1,!1,n,!1):r<1||(t.addons.paging?an(t.init,t.addons.preloaded,t.listing,o):t.addons.single_post||t.addons.nextpage?an(!1,t.addons.preloaded,n,o):an(t.init,t.addons.preloaded,n,o)))}function an(){var t=arguments.length>2?arguments[2]:void 0;(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&t||"true"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false"))&&(t.setAttribute("tabIndex","-1"),t.style.outline="none",setTimeout((function(){t.focus({preventScroll:!0})}),25))}function sn(t){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(t)}function ln(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ln=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==sn(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function cn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function un(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return new Promise((function(o){var a=n.rel,i=void 0===a?"next":a,s=e.length,l=0,c=1;e="prev"===i?e.reverse():e,function a(){var u;c<=s?(u=ln().mark((function o(){return ln().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[l].style.opacity=0,o.next=3,rn(t,e[l],n.ua,i,r);case 3:c++,l++,a();case 6:case"end":return o.stop()}}),o)})),function(){var t=this,e=arguments;return new Promise((function(n,r){var o=u.apply(t,e);function a(t){cn(o,n,r,a,i,"next",t)}function i(t){cn(o,n,r,a,i,"throw",t)}a(void 0)}))})().catch((function(){console.warn("There was an error loading the items.")})):(setTimeout((function(){if(e.map((function(t){return t.style.opacity=1,t})),e[0]){var t="prev"===i?e[e.length-1]:e[0];on(n,t,null,!1)}}),25),o(!0))}()}))}function dn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(o){var a=document.createElement("div");a.classList.add("alm-btn-wrap--prev");var i=document.createElement("a");i.href=r,i.innerHTML=o,i.setAttribute("rel","prev"),i.dataset.page=n,i.dataset.url=r,i.setAttribute("class","alm-load-more-btn alm-load-more-btn--prev ".concat(t.loading_style)),i.addEventListener("click",(function(e){t.AjaxLoadMore.prevClick(e)})),t.AjaxLoadMore.setPreviousButton(i),a.appendChild(i),e.parentNode.insertBefore(a,e)}}function pn(t){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(t)}function fn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==pn(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function gn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function hn(t){var e=t.listing;return t.addons.elementor="posts"===e.dataset.elementor&&e.dataset.elementorSettings,t.addons.elementor&&(t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-element ".concat(t.addons.elementor_settings.target)):"",t.addons.elementor_widget=function(t){if(!t)return!1;if(t.classList.contains("elementor-wc-products"))return"woocommerce";if(t.classList.contains("elementor-widget-loop-grid"))return"loop-grid";return"posts"}(t.addons.elementor_element),t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";switch(t.addons.elementor_container_class=t.addons.elementor_settings.container_class,e){case"woocommerce":t.addons.elementor_item_class=t.addons.elementor_settings.woo_item_class,t.addons.elementor_pagination_class=".".concat(t.addons.elementor_settings.woo_pagination_class);break;case"loop-grid":t.addons.elementor_item_class=t.addons.elementor_settings.loop_grid_item_class,t.addons.elementor_pagination_class=".".concat(t.addons.elementor_settings.loop_grid_pagination_class);break;default:t.addons.elementor_item_class=t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class=".".concat(t.addons.elementor_settings.posts_pagination_class)}return t}(t,t.addons.elementor_widget),t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_prev_label=t.addons.elementor_settings.prev_label||"",t.addons.elementor_next_page=bn(t,t.addons.elementor_element),t.addons.elementor_prev_page=bn(t,t.addons.elementor_element,"prev"),t.addons.elementor_max_pages=t.addons.elementor_element.querySelector(".e-load-more-anchor"),t.addons.elementor_max_pages=t.addons.elementor_max_pages?parseInt(t.addons.elementor_max_pages.dataset.maxPage):999,t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){var e,n=t.addons;if(!n.elementor_element)return t;var r=n.elementor_element,o=null!=r&&null!==(e=r.dataset)&&void 0!==e&&e.settings?JSON.parse(r.dataset.settings):"";if(!o)return t;if(n.elementor_masonry=o.hasOwnProperty("cards_masonry")||o.hasOwnProperty("classic_masonry")||o.hasOwnProperty("masonry"),n.elementor_masonry){var a,i;n.elementor_masonry_columns=parseInt(null==o?void 0:o.cards_columns)||parseInt(null==o?void 0:o.classic_columns)||parseInt(null==o?void 0:o.columns),n.elementor_masonry_columns_mobile=parseInt(null==o?void 0:o.cards_columns_mobile)||parseInt(null==o?void 0:o.classic_columns_mobile)||parseInt(null==o?void 0:o.columns_mobile),n.elementor_masonry_columns_tablet=parseInt(null==o?void 0:o.cards_columns_tablet)||parseInt(null==o?void 0:o.classic_columns_tablet)||parseInt(null==o?void 0:o.columns_tablet),n.elementor_masonry_gap=parseInt(null==o||null===(a=o.cards_row_gap)||void 0===a?void 0:a.size)||parseInt(null==o||null===(i=o.row_gap)||void 0===i?void 0:i.size)}return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?"),t.addons.elementor_next_page||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?")),t}function mn(t){var e=t.addons;if(!e.elementor||!e.elementor_type||"posts"===!e.elementor_type)return!1;var n=e.elementor_element;if(!n)return!1;t.button.dataset.page=e.elementor_paged;var r=e.elementor_next_page;t.button.dataset.url=r||"",Ye(n,t.listing);var o,a=n.querySelector(".".concat(e.elementor_item_class));(a&&(a.classList.add("alm-elementor"),a.dataset.url=window.location,a.dataset.page=e.elementor_paged,a.dataset.pageTitle=document.title),e.elementor_paged>1&&e.elementor_prev_page&&e.elementor_prev_label&&dn(t,n,e.elementor_paged,e.elementor_prev_page,e.elementor_prev_label),e.elementor_masonry)&&setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){wn(t,".".concat(e.elementor_container_class),".".concat(e.elementor_item_class))}),100)}))}),250)}function yn(t,e,n,r){var o=Je;if(200===n.status&&n.data){var a=t.addons,i=t.page,s=t.button,l=t.buttonPrev,c=t.rel,u=a.elementor_target,d=a.elementor_container_class,p=a.elementor_item_class,f=document.createElement("div");if(f.innerHTML=n.data,"prev"===c&&l){var g=bn(t,f,"prev");g?qe(l,i-1,g):t.AjaxLoadMore.triggerDonePrev()}else{var h=bn(t,f);h?qe(s,i+1,h):t.AjaxLoadMore.triggerDone()}var m=f.querySelector("title").innerHTML;o.pageTitle=m;var y=f.querySelector("".concat(u," .").concat(d));if(!y)return console.warn("Ajax Load More Elementor: Unable to find Elementor container element."),o;var v=y?y.querySelector(".".concat(p)):null;v&&(v.classList.add("alm-elementor"),v.dataset.url=e,v.dataset.page="next"===c?i+1:i-1,v.dataset.pageTitle=m);var _=y.querySelectorAll(".".concat(p));_&&(o.html=y?y.innerHTML:"",o.meta.postcount=_.length,o.meta.totalposts=_.length,He(t,o,r))}return o}function vn(t,e){return t&&e?new Promise((function(n){var r,o=e.addons,a=e.addons.elementor_element.querySelector(".".concat(o.elementor_container_class)),i=t.querySelectorAll(".".concat(o.elementor_item_class));if(a&&i){var s=Array.prototype.slice.call(i);"function"==typeof almElementorLoaded&&window.almElementorLoaded(s),(r=fn().mark((function t(){return fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,un(a,s,e);case 2:o.elementor_masonry&&setTimeout((function(){wn(e,".".concat(o.elementor_container_class),".".concat(o.elementor_item_class))}),125),n(!0);case 4:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(n,o){var a=r.apply(t,e);function i(t){gn(a,n,o,i,s,"next",t)}function s(t){gn(a,n,o,i,s,"throw",t)}i(void 0)}))})().catch((function(t){console.warn(t,"There was an error with Elementor")}))}else n(!1)})):(e.AjaxLoadMore.triggerDone(),!1)}function _n(t){var e=t.page,n=t.AjaxLoadMore,r=e+1,o=t.addons.elementor_max_pages;Ze(t),"function"==typeof almComplete&&"masonry"!==t.transition&&window.almComplete(t),n.transitionEnd(),r>=o&&n.triggerDone(),Qe()}function wn(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var p=d.querySelectorAll(n);if(!p)return!1;p.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop="".concat(Math.round(c),"px"),r[i]+=o}else r.push(o)}))}function bn(t,e){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",a=t.addons,i=void 0===a?{}:a,s=(null==e?void 0:e.querySelector(null==i?void 0:i.elementor_pagination_class))||(null==e?void 0:e.querySelector(".".concat(null==i||null===(n=i.elementor_settings)||void 0===n?void 0:n.pagination_class))),l=null==s||null===(r=s.querySelector("a.".concat(o)))||void 0===r?void 0:r.href;return l||!1}function xn(t){var e,n=t.listing;if(t.addons.filters="true"===(null==t||null===(e=t.listing)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.filters),t.addons.filters){t.addons.filters_url="true"===n.dataset.filtersUrl,t.addons.filters_target=!!n.dataset.filtersTarget&&n.dataset.filtersTarget,t.addons.filters_paging="true"===n.dataset.filtersPaging,t.addons.filters_scroll="true"===n.dataset.filtersScroll,t.addons.filters_scrolltop=n.dataset.filtersScrolltop?n.dataset.filtersScrolltop:"30",t.addons.filters_debug=n.dataset.filtersDebug,t.facets="true"===n.dataset.facets,t.addons.filters_target||console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters="true" target="filters"]');var r=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}("pg");t.addons.filters_startpage=null!==r?parseInt(r):0,t.addons.filters_startpage>0&&(t.addons.paging?t.page=t.addons.filters_startpage-1:(t.posts_per_page=t.posts_per_page*t.addons.filters_startpage,t.paged=!0))}return t}function Sn(t,e,n){var r=t.canonical_url,o=window.location.search;return e.classList.add("alm-filters"),e.dataset.page=n,e.dataset.url=n>1?r+Ln(t,o,n):r+Ln(t,o,0),e}function Ln(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e},isScript:function(t){return"SCRIPT"===t.tagName}};function jn(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.main,o=t.AjaxLoadMore,a=t.last_loaded;r.classList.remove("alm-loading"),o.triggerAddons(t),n?"function"==typeof almPagingComplete&&window.almPagingComplete():"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(t),e&&t.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(r),"function"==typeof almComplete&&window.almComplete(t),En.init(a)}var An=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(null==t?void 0:t.length)&&t.filter((function(t){return-1===$e.indexOf(t.nodeName.toLowerCase())}))};function On(t,e,n){var r,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.addons,s=t.canonical_url,l=alm_localize.retain_querystring,c=void 0===l||l?window.location.search:"";return n=a?n:(r=null==i?void 0:i.seo_offset,o=n,"true"===r?parseInt(o)+1:parseInt(o)),e.classList.add("alm-seo"),e.dataset.page=n,"default"===i.seo_permalink?e.dataset.url=n>1?"".concat(s).concat(c,"&paged=").concat(n):"".concat(s).concat(c):e.dataset.url=n>1?"".concat(s).concat(i.seo_leading_slash,"page/").concat(n).concat(i.seo_trailing_slash).concat(c):"".concat(s).concat(c),e}function Pn(t){var e=document.createElement("div");e=On(t,e,1,!0),t.main.insertBefore(e,t.listing)}function Tn(t){return function(t){if(Array.isArray(t))return kn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Rn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Cn(t){var e=t.rel,n=t.addons,r=t.button,o=t.buttonPrev,a=t.page,i=n.queryloop_settings,s=void 0===i?{}:i;if("prev"===e&&o){var l,c=(null==s||null===(l=s.pagination_prev)||void 0===l?void 0:l.href)||!1;c?qe(o,a-1,c):t.AjaxLoadMore.triggerDonePrev()}else{var u,d=(null==s||null===(u=s.pagination_next)||void 0===u?void 0:u.href)||!1;d?qe(r,a+1,d):t.AjaxLoadMore.triggerDone()}}function Fn(t,e,n,r){var o=Je;if(200===n.status&&n.data){var a,i,s,l,c=t.addons,u=t.page,d=t.button,p=t.buttonPrev,f=t.rel,g=c.queryloop_settings,h=void 0===g?{}:g,m=document.createElement("div");if(m.innerHTML=n.data,"prev"===f&&p){var y=Bn(h,m,"prev");y?qe(p,u-1,y):t.AjaxLoadMore.triggerDonePrev()}else{var v=Bn(h,m);v?qe(d,u+1,v):t.AjaxLoadMore.triggerDone()}var _=m.querySelector("title").innerHTML;o.pageTitle=_;var w=null==m?void 0:m.querySelector("".concat(null==h||null===(a=h.classes)||void 0===a?void 0:a.container," ").concat(null==h||null===(i=h.classes)||void 0===i?void 0:i.listing));if(!w)return console.warn("Ajax Load More: Unable to locate Query Loop container."),o;var b=w?w.querySelector(null==h||null===(s=h.classes)||void 0===s?void 0:s.element):null;b&&(b.classList.add("alm-queryloop"),b.dataset.url=e,b.dataset.page="next"===f?u+1:u-1,b.dataset.pageTitle=_);var x=w.querySelectorAll(null==h||null===(l=h.classes)||void 0===l?void 0:l.element);x&&(o.html=w?w.innerHTML:"",o.meta.postcount=x.length,o.meta.totalposts=x.length,He(t,o,r))}return o}function qn(t,e){return t&&e?new Promise((function(n){var r,o,a,i=e.addons.queryloop_settings,s=void 0===i?{}:i,l=null==s||null===(r=s.container)||void 0===r?void 0:r.querySelector("".concat(s.classes.listing)),c=t.querySelectorAll("".concat(null==s||null===(o=s.classes)||void 0===o?void 0:o.element));if(l&&c){var u=Array.prototype.slice.call(c);"function"==typeof almQueryLoopLoaded&&window.almQueryLoopLoaded(u),(a=Nn().mark((function t(){return Nn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,un(l,u,e);case 2:n(!0);case 3:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(n,r){var o=a.apply(t,e);function i(t){Rn(o,n,r,i,s,"next",t)}function s(t){Rn(o,n,r,i,s,"throw",t)}i(void 0)}))})().catch((function(t){console.warn(t,"There was an error with Query Loop")}))}else n(!1)})):(e.AjaxLoadMore.triggerDone(),!1)}function Dn(t){var e=t.page,n=t.AjaxLoadMore,r=e+1,o=t.addons.elementor_max_pages;Ze(t),"function"==typeof almComplete&&"masonry"!==t.transition&&window.almComplete(t),n.transitionEnd(),r>=o&&n.triggerDone(),Qe()}function Bn(t,e){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",i=null==e?void 0:e.querySelector("".concat(t.classes.container," ").concat(t.classes.pagination)),s="next"===a?null===(n=t.classes)||void 0===n?void 0:n.pagination_next:null===(r=t.classes)||void 0===r?void 0:r.pagination_prev,l=null==i||null===(o=i.querySelector(s))||void 0===o?void 0:o.href;return l||!1}function Un(t,e,n){var r={html:"",meta:{postcount:0,totalposts:0}},o=t.addons,a=o.single_post_target,i=o.single_post_id;if(200===e.status&&e.data&&a){var s,l=document.createElement("div");l.innerHTML=e.data;var c=l.querySelector(a);if(!c)return console.warn("Ajax Load More: Unable to find ".concat(a," element.")),r;if(null!==(s=window)&&void 0!==s&&s.almSinglePostsCustomElements){var u,d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;if(!t||!e)return r;var r=document.createElement("div");r.classList.add("alm-custom-elements"),r.dataset.id=n,e=Array.isArray(e)?e:[e];for(var o=0;o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Gn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Wn(t){if(!t||!t.addons.woocommerce)return!1;var e=document.querySelector(t.addons.woocommerce_settings.container);if(e){t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var n=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=n||"";var r=function(t){if(!t)return 0;var e=document.querySelectorAll(t);if(!e)return 0;return e.length}(t.addons.woocommerce_settings.container),o=t.addons.woocommerce_settings.paged;r>1&&console.warn("ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/"),Ye(e,t.listing);var a=e.querySelector(t.addons.woocommerce_settings.products);if(a?(a.classList.add("alm-woocommerce"),a.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],a.dataset.page=t.page,a.dataset.pageTitle=document.title):console.warn("ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products"),o>1&&t.addons.woocommerce_settings.settings.previous_products)dn(t,e,o-1,t.addons.woocommerce_settings.paged_urls[o-2],t.addons.woocommerce_settings.settings.previous_products)}else console.warn("ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container")}function Vn(t,e){return!(!t||!e)&&new Promise((function(n){var r,o=e.addons.woocommerce_settings,a=void 0===o?{}:o,i=a.settings,s=void 0===i?{}:i,l=document.querySelector(a.container),c=t.querySelectorAll(a.products),u=!(!s||"true"!==s.images_loaded);if(l&&c){var d=Array.prototype.slice.call(c);(r=Hn().mark((function t(){return Hn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,un(l,d,e,u);case 2:n(!0);case 3:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(n,o){var a=r.apply(t,e);function i(t){Gn(a,n,o,i,s,"next",t)}function s(t){Gn(a,n,o,i,s,"throw",t)}i(void 0)}))})().catch((function(t){console.warn(t,"There was an error with WooCommerce")})),"function"==typeof almWooCommerceLoaded&&window.almWooCommerceLoaded(c)}}))}function $n(t,e,n,r){var o=Je;if(200===n.status&&n.data){var a=t.addons,i=t.pagePrev,s=t.rel,l=void 0===s?"next":s,c=t.page,u=t.localize.total_posts,d=a.woocommerce_settings,p=void 0===d?{}:d,f="prev"===l?i:c+1,g=document.createElement("div");g.innerHTML=n.data;var h=g.querySelector("title").innerHTML;o.pageTitle=h;var m=g.querySelector(p.container);if(!m)return console.warn("Ajax Load More WooCommerce: Unable to find WooCommerce ".concat(p.container," element.")),o;var y=m?m.querySelector(p.products):null;y&&(y.classList.add("alm-woocommerce"),y.dataset.url=e,y.dataset.page=f,y.dataset.pageTitle=h);var v=m.querySelectorAll(p.products);v&&(o.html=m?m.innerHTML:"",o.meta.postcount=v.length,o.meta.totalposts=u,He(t,o,r)),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results);e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=n.innerHTML}))}}(g,t)}return o}function Jn(t){var e=t.addons,n=t.page+2,r=e.woocommerce_settings.paged_urls[n-1];if("prev"===t.rel&&t.buttonPrev){var o=e.woocommerce_settings.paged_urls[t.pagePrev-2];qe(t.buttonPrev,parseInt(t.pagePrev)-1,o)}else qe(t.button,n,r);Ze(t),"function"==typeof almComplete&&"masonry"!==t.transition&&window.almComplete(t),t.AjaxLoadMore.transitionEnd(),"prev"===t.rel&&t.pagePrev<=1&&t.AjaxLoadMore.triggerDonePrev(),"next"===t.rel&&n>parseInt(t.addons.woocommerce_settings.pages)&&t.AjaxLoadMore.triggerDone(),Qe()}var Qn=n(564);function Yn(t,e){var n=t.listing,r=t.transition,o=t.speed,a=t.images_loaded;return new Promise((function(i){if(n&&e){var s="fade"===r;e.forEach((function(t){var e=t.nodeName.toLowerCase();(s||a)&&(t.style.opacity=0,s&&(t.style.transition="all ".concat(o,"ms ease"))),-1===$e.indexOf(e)&&n.appendChild(t)})),en(n,t.ua),Ze(t),a?Qn(n,(function(){Xn(t,e,s)})):Xn(t,e,s),i(!0)}else i(!0)}))}function Kn(t,e){var n=t.addons.paging_container;return new Promise((function(r){n&&e?(n.style.opacity=0,n.innerHTML="",e.forEach((function(t){var e=t.nodeName.toLowerCase();-1===$e.indexOf(e)&&n.appendChild(t)})),en(n,t.ua),Ze(t),r(!0)):r(!0)}))}function Xn(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.transition_delay,o=t.images_loaded,a=n?parseInt(r):0;e&&setTimeout((function(){(n||o)&&e.forEach((function(t,e){setTimeout((function(){t.style.opacity=1}),e*a)})),t.AjaxLoadMore.transitionEnd()}),50)}function Zn(t){return function(t){if(Array.isArray(t))return tr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return tr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1||(null==r?void 0:r.filters_startpage)>1)&&(d=1);var p=null!=r&&r.cta?parseInt(a)+1:parseInt(a);"table"===l&&(e=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e)return[];var n=null!==(t=e)&&void 0!==t&&t.length?e[0].childNodes:[];n&&(e=An(Zn(n)));return e}(e));for(var f=[],g=0;g<(null===(h=e)||void 0===h?void 0:h.length);g+=p){var h;f.push(e.slice(g,p+g))}if(f)for(var m=0;m0?m*p:0;e[y]&&(null!=r&&r.seo&&(e[y]=On(t,e[y],m+d)),null!=r&&r.filters&&(e[y]=Sn(t,e[y],m+d)))}return e}function nr(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n)),a=e?"-".concat(o):o;return parseInt(a)}function rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e?"ajax_load_more_".concat(e.replace(/-/g,"_"),"_vars"):"ajax_load_more_vars",r=window[n];if(!r)return null;var o=r.total_posts,a=r.post_count,i=r.page,s=r.pages;switch(t){case"total_posts":return o?parseInt(o):"";case"post_count":return a?parseInt(a):"";case"page":return i?parseInt(i):"";case"pages":return s?parseInt(s):"";case"remaining":return o&&a?parseInt(o)-parseInt(a):""}}function or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e&&t){e=e.replace(/(<\/p>)+/g,"");var n=null==t?void 0:t.querySelector(".alm-paging-content");n?n.innerHTML=e:t.innerHTML=e}}function ar(t){return function(t){if(Array.isArray(t))return ir(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ir(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ir(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!e)return[];var r=(new DOMParser).parseFromString(e,n),o=null==r||null===(t=r.body)||void 0===t?void 0:t.childNodes;return o?An(ar(o)):[]}function lr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return[];var e=document.createElement("tbody");return e.innerHTML=t,[e]}function cr(t,e){var n=t.addons,r=t.extensions,o={action:"alm_get_posts",query_type:e,id:t.id,post_id:parseInt(t.post_id),slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:parseInt(t.posts_per_page),page:parseInt(t.page),offset:parseInt(t.offset),post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};return r.acf&&(o.acf=ur(t,"acf"),"relationship"!==r.acf_field_type&&(o.action="alm_acf")),n.comments&&(o.comments=ur(t,"comments"),o.posts_per_page=n.comments_per_page,o.action="alm_comments"),n.cta&&(o.cta=ur(t,"cta")),n.filters&&(o.filters=n.filters,o.filters_startpage=n.filters_startpage,o.filters_target=n.filters_target,o.facets=t.facets),n.nextpage&&(o.nextpage=ur(t,"nextpage"),o.action="alm_nextpage"),n.paging&&(o.paging=n.paging),n.preloaded&&(o.preloaded=n.preloaded,o.preloaded_amount=parseInt(n.preloaded_amount)),n.single_post&&(o.single_post=ur(t,"single_post")),r.term_query&&(o.term_query=ur(t,"term_query"),o.action="alm_get_terms"),t.extensions.users&&(o.users=ur(t,"users"),o.action="alm_users"),t.theme_repeater&&(o.theme_repeater=t.theme_repeater),t.listing.dataset.lang&&(o.lang=t.listing.dataset.lang),t.listing.dataset.stickyPosts&&(o.sticky_posts=t.listing.dataset.stickyPosts),t.listing.dataset.postFormat&&(o.post_format=t.listing.dataset.postFormat),t.listing.dataset.category&&(o.category=t.listing.dataset.category),t.listing.dataset.categoryAnd&&(o.category__and=t.listing.dataset.categoryAnd),t.listing.dataset.categoryNotIn&&(o.category__not_in=t.listing.dataset.categoryNotIn),t.listing.dataset.tag&&(o.tag=t.listing.dataset.tag),t.listing.dataset.tagAnd&&(o.tag__and=t.listing.dataset.tagAnd),t.listing.dataset.tagNotIn&&(o.tag__not_in=t.listing.dataset.tagNotIn),t.listing.dataset.taxonomy&&(o.taxonomy=t.listing.dataset.taxonomy),t.listing.dataset.taxonomyTerms&&(o.taxonomy_terms=t.listing.dataset.taxonomyTerms),t.listing.dataset.taxonomyOperator&&(o.taxonomy_operator=t.listing.dataset.taxonomyOperator),t.listing.dataset.taxonomyIncludeChildren&&(o.taxonomy_include_children=t.listing.dataset.taxonomyIncludeChildren),t.listing.dataset.taxonomyRelation&&(o.taxonomy_relation=t.listing.dataset.taxonomyRelation),t.listing.dataset.sortKey&&(o.sort_key=t.listing.dataset.sortKey),t.listing.dataset.metaKey&&(o.meta_key=t.listing.dataset.metaKey),t.listing.dataset.metaValue&&(o.meta_value=t.listing.dataset.metaValue),t.listing.dataset.metaCompare&&(o.meta_compare=t.listing.dataset.metaCompare),t.listing.dataset.metaRelation&&(o.meta_relation=t.listing.dataset.metaRelation),t.listing.dataset.metaType&&(o.meta_type=t.listing.dataset.metaType),t.listing.dataset.author&&(o.author=t.listing.dataset.author),t.listing.dataset.year&&(o.year=t.listing.dataset.year),t.listing.dataset.month&&(o.month=t.listing.dataset.month),t.listing.dataset.day&&(o.day=t.listing.dataset.day),t.listing.dataset.order&&(o.order=t.listing.dataset.order),t.listing.dataset.orderby&&(o.orderby=t.listing.dataset.orderby),t.listing.dataset.postStatus&&(o.post_status=t.listing.dataset.postStatus),t.listing.dataset.postIn&&(o.post__in=t.listing.dataset.postIn),t.listing.dataset.postNotIn&&(o.post__not_in=t.listing.dataset.postNotIn),t.listing.dataset.exclude&&(o.exclude=t.listing.dataset.exclude),t.listing.dataset.search&&(o.search=t.listing.dataset.search),t.listing.dataset.s&&(o.search=t.listing.dataset.s),t.listing.dataset.customArgs&&(o.custom_args=t.listing.dataset.customArgs),t.listing.dataset.vars&&(o.vars=t.listing.dataset.vars),n.cache&&(o.cache_id=n.cache_id,o.cache_logged_in=n.cache_logged_in,o.cache_slug=function(t,e){var n=t.addons,r=t.pagePrev,o=t.page,a=t.rel,i=void 0===a?"next":a;return n.nextpage?"page-".concat(o+n.nextpage_startpage):n.single_post?n.single_post_id:n.queryloop?Ie()(JSON.stringify(Fe(t,t.rel))).toString():n.woocommerce||n.elementor?"page-".concat("prev"===i?r:o+1):Ie()(JSON.stringify(e)).toString()}(t,o)),o}function ur(t,e){var n=t.addons,r=t.extensions;switch(e){case"acf":return{acf:"true",post_id:r.acf_post_id,field_type:r.acf_field_type,field_name:r.acf_field_name,parent_field_name:r.acf_parent_field_name,row_index:r.acf_row_index};case"comments":return{comments:"true",post_id:n.comments_post_id,per_page:n.comments_per_page,type:n.comments_type,style:n.comments_style,template:n.comments_template,callback:n.comments_callback};case"cta":return{cta:"true",cta_position:n.cta_position,cta_repeater:n.cta_repeater,cta_theme_repeater:n.cta_theme_repeater};case"nextpage":return{nextpage:"true",urls:n.nextpage_urls,scroll:n.nextpage_scroll,post_id:n.nextpage_post_id,startpage:n.nextpage_startpage,nested:t.nested};case"single_post":return{single_post:"true",id:n.single_post_id,slug:n.single_post_slug};case"term_query":return{term_query:"true",taxonomy:r.term_query_taxonomy,hide_empty:r.term_query_hide_empty,number:r.term_query_number};case"users":return{users:"true",role:t.listing.dataset.usersRole,include:t.listing.dataset.usersInclude,exclude:t.listing.dataset.usersExclude,per_page:t.posts_per_page,order:t.listing.dataset.usersOrder,orderby:t.listing.dataset.usersOrderby}}}function dr(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}function pr(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}var fr=function(t,e){return new Promise((function(n){if(0===e)t.style.opacity=1,t.style.height="auto",n(!0);else{e/=10;var r=0,o=setInterval((function(){r>.9&&(t.style.opacity=1,n(!0),clearInterval(o)),t.style.opacity=r,r+=.1}),e);t.style.height="auto"}}))},gr=function(t,e){return new Promise((function(n){e/=10,t.style.opacity=.5;var r=setInterval((function(){t.style.opacity<.1?(t.style.opacity=0,clearInterval(r),n(!0)):t.style.opacity-=.1}),e)}))};function hr(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0==(t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0)&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&"masonry"!==t.transition){var r=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,o=t.start_page?parseInt(t.start_page):0,a=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,i=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,s=parseInt(t.page),l=!!t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&o>1||t.addons.filters&&a>1||t.addons.nextpage&&i>1){if(t.addons.seo&&o>1)for(var e=0;e1)for(var c=0;c1)for(var u=0;u0||t.addons.filters&&a>0||(s+=1)),mr(t,s,r))}}function mr(t,e,n){if(!t.tableofcontents)return!1;e=parseInt(e);var r=parseInt(t.posts_per_page),o=document.createElement("button");o.type="button",o.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r,o=e-1;if(t.addons.single_post_target){t.init||(o+=1);var a=document.querySelectorAll(".alm-single-post");a&&(r=a[o])}else r=document.querySelector(".alm-single-post[data-page=".concat(e-1,"]"));n=r?r.dataset.title:n}var i="almTOCLabel_".concat(t.id);"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e+1),o.dataset.page=t.addons.single_post_target&&t.init?e-1:e+1,o.dataset.target=(e+1)*r-r+1,t.tableofcontents.appendChild(o),o.addEventListener("click",(function(){var e=this.dataset.page,r=this.dataset.target,o=t.listing.children[r-1];if(t.addons.nextpage&&(o=document.querySelector('.alm-nextpage[data-page="'.concat(e,'"]'))),t.addons.single_post_target&&(o=document.querySelector('.alm-single-post[data-page="'.concat(e,'"]'))),o){var a="function"==typeof no?no(o).top:o.offsetTop;eo(a-n),setTimeout((function(){on(t,o,r,!1)}),500)}}))}function yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,e)||_r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vr(t){return function(t){if(Array.isArray(t))return wr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(t,e){if(t){if("string"==typeof t)return wr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(t,e):void 0}}function wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:150,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(r.target){var a=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+r.target.toLowerCase()+'"]');a&&a.forEach((function(e){xr(t,n,r,o,e)}))}else{var i=document.querySelectorAll(".ajax-load-more-wrap");i&&i.forEach((function(e){xr(t,n,r,o,e)}))}(e=document.querySelector(".alm-toc"))&&(e.innerHTML="")}function xr(t,e,n,r,o){if("fade"===t||"masonry"===t){if("filter"===r)o.classList.add("alm-is-filtering"),gr(o,e);setTimeout((function(){Sr(e,n,r,o)}),e)}else o.classList.add("alm-is-filtering"),Sr(e,n,r,o)}function Sr(t,e,n,r){var o=r.querySelector(".alm-btn-wrap"),a=r.querySelectorAll(".alm-listing");if(!a||!o)return!1;vr(a).forEach((function(t){var e=t.querySelector(".alm-paging-content");e?e.innerHTML="":t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,function(t,e,n,r){var o=r.querySelector(".alm-listing")||r.querySelector(".alm-comments");if(!o)return!1;if("filter"===n){for(var a=0,i=Object.entries(e);a=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function jr(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ar(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){jr(a,r,o,i,s,"next",t)}function s(t){jr(a,r,o,i,s,"throw",t)}i(void 0)}))}}var Or=n(564);function Pr(t,e,n){t.masonry||console.warn("Ajax Load More: Unable to locate Masonry settings.");var r=t.listing,o=t.last_loaded,a=t.speed;return new Promise((function(i){var s,l=t.masonry.selector,c=t.masonry.animation,u="true"===(null==t||null===(s=t.masonry)||void 0===s?void 0:s.horizontalorder),d=t.masonry.init,p=t.masonry.columnwidth,f=(a+100)/1e3+"s",g="scale(0.5)",h="scale(1)";"zoom-out"===c&&(g="translateY(-20px) scale(1.25)",h="translateY(0) scale(1)"),"slide-up"===c&&(g="translateY(50px)",h="translateY(0)"),"slide-down"===c&&(g="translateY(-50px)",h="translateY(0)"),"none"===c&&(g="translateY(0)",h="translateY(0)"),p?isNaN(p)||(p=parseInt(p)):p=l,n?(r.parentNode.style.opacity=0,Pr(t,!0,!1),i(!0)):d&&e?Or(r,(function(){var e,n={itemSelector:l,transitionDuration:f,columnWidth:p,horizontalOrder:u,hiddenStyle:{transform:g,opacity:0},visibleStyle:{transform:h,opacity:1}},o=null===(e=window)||void 0===e?void 0:e.alm_masonry_vars;o&&Object.keys(o).forEach((function(t){n[t]=o[t]})),setTimeout(Ar(Er().mark((function e(){return Er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.msnry=new Masonry(r,n),e.next=3,fr(r.parentNode,175);case 3:i(!0);case 4:case"end":return e.stop()}}),e)}))),25)})):o&&Or(r,(function(){setTimeout(Ar(Er().mark((function e(){return Er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.msnry.appended(o),i(!0);case 2:case"end":return e.stop()}}),e)}))),25)}))}))}function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function kr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Tr(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ir(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Mr(){return Nr.apply(this,arguments)}function Nr(){var t;return t=kr().mark((function t(){var e,n,r,o,a,i=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:"show",r=(n=i.length>1?i[1]:void 0).placeholder,o=n.addons,a=n.rel,r&&!o.paging&&"prev"!==a){t.next=5;break}return t.abrupt("return",!1);case 5:t.t0=e,t.next="hide"===t.t0?8:12;break;case 8:return t.next=10,gr(r,175);case 10:return setTimeout((function(){r.style.display="none"}),75),t.abrupt("break",15);case 12:return r.style.display="block",fr(r,175),t.abrupt("break",15);case 15:case"end":return t.stop()}}),t)})),Nr=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ir(a,r,o,i,s,"next",t)}function s(t){Ir(a,r,o,i,s,"throw",t)}i(void 0)}))},Nr.apply(this,arguments)}function Rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,o=0,a=0,i=t.orginal_posts_per_page;switch(e){case"nextpage":o=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),a=parseInt(r),Fr(t.resultsText,n,r,o,a,i);break;case"woocommerce":break;default:n=rr("page",t.id),r=rr("pages",t.id),o=rr("post_count",t.id),a=rr("total_posts",t.id),Fr(t.resultsText,n,r,o,a,i)}}(t,"nextpage"===e||"woocommerce"===e?e:"standard")}function Cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),o=parseInt(t.localize.post_count),a=parseInt(t.localize.total_posts);switch(e){case"nextpage":o=n=t.addons.nextpage_startpage,r=a,Fr(t.resultsText,n,a,o,a,t.posts_per_page);break;case"preloaded":n=t.addons.paging&&t.addons.seo?t.start_page+1:parseInt(t.page)+1,Fr(t.resultsText,n,r,o,a,t.posts_per_page)}}var Fr=function(t,e,n,r,o,a){t.forEach((function(t){var i=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text,s=e*a-a+1,l=e*a,c=l<=o?l:o;n>0?(i=(i=(i=(i=(i=(i=(i=(i=i.replace("{num}",''.concat(e,""))).replace("{page}",''.concat(e,""))).replace("{start}",''.concat(s,""))).replace("{end}",''.concat(c,""))).replace("{total}",''.concat(n,""))).replace("{pages}",''.concat(n,""))).replace("{post_count}",''.concat(r,""))).replace("{total_posts}",''.concat(o,"")),t.innerHTML=i):t.innerHTML=i}))};function qr(t){var e=t.addons;return new Promise((function(n){var r="standard";if(e.nextpage)r="nextpage",e.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(e.nextpage_startpage)+1);else if(e.woocommerce)r="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1);else{var o=parseInt(t.page)+1+(e.preloaded&&!e.paging?1:0);t.AjaxLoadMore.setLocalizedVar("page",parseInt(o));var a=Math.ceil(t.totalposts/t.orginal_posts_per_page);t.AjaxLoadMore.setLocalizedVar("pages",parseInt(a))}"true"===e.preloaded||e.nextpage||e.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=t.postcount,n=t.addons,r=t.start_page,o=n.preloaded_amount,a=parseInt(e)+parseInt(o);return a=r>1?a-parseInt(o):a,a=n.filters_startpage>1?a-parseInt(o):a,a=n.single_post?a+1:a,a=n.nextpage?a+1:a,a}(t)),Rr(t,r),n(!0)}))}function Dr(t){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(t)}function Br(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Br=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Dr(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ur(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function zr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ur(a,r,o,i,s,"next",t)}function s(t){Ur(a,r,o,i,s,"throw",t)}i(void 0)}))}}function Hr(t){return function(t){if(Array.isArray(t))return Gr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gr(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&(t.paged=!0,t.addons.paging?t.page=t.start_page-1:t.posts_per_page=t.start_page*t.posts_per_page)):t.start_page=1,t}(O=xn(O=function(t){var e=t.listing;return t.addons.paging="true"===e.dataset.paging,t.addons.paging&&(t.addons.paging_init=!0,t.addons.paging_controls="true"===e.dataset.pagingControls,t.addons.paging_show_at_most=e.dataset.pagingShowAtMost?parseInt(e.dataset.pagingShowAtMost):6,t.addons.paging_classes=e.dataset.pagingClasses,t.addons.paging_first_label=e.dataset.pagingFirstLabel,t.addons.paging_previous_label=e.dataset.pagingPreviousLabel,t.addons.paging_next_label=e.dataset.pagingNextLabel,t.addons.paging_last_label=e.dataset.pagingLastLabel,t.addons.paging_scroll=!!e.dataset.pagingScroll&&e.dataset.pagingScroll,t.addons.paging_scrolltop=e.dataset.pagingScrolltop?parseInt(e.dataset.pagingScrolltop):100,t.addons.paging_container=e.querySelector(".alm-paging-content"),t.pause=!!t.addons.preloaded||t.pause),t}(O=function(t){var e,n=t.listing,r=t.addons;if(t.addons.preloaded="true"===n.dataset.preloaded,t.addons.preloaded_amount=null!=n&&null!==(e=n.dataset)&&void 0!==e&&e.preloadedAmount?parseInt(n.dataset.preloadedAmount):t.posts_per_page,t.addons.preloaded||(t.addons.preloaded_amount=0),r.preloaded&&null!=t&&t.localize){var o=t.localize.total_posts,a=void 0===o?0:o;parseInt(a)<=r.preloaded_amount&&(t.addons.preloaded_total_posts=parseInt(a),t.disable_ajax=!0)}return t}(O=function(t){var e,n=t.listing;return t.addons.comments="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.comments),t.addons.comments&&(t.addons.comments_post_id=n.dataset.comments_post_id,t.addons.comments_per_page=n.dataset.comments_per_page,t.addons.comments_per_page=void 0===t.addons.comments_per_page?"5":t.addons.comments_per_page,t.addons.comments_type=n.dataset.comments_type,t.addons.comments_style=n.dataset.comments_style,t.addons.comments_template=n.dataset.comments_template,t.addons.comments_callback=n.dataset.comments_callback),t}(O=function(t){var e,n=t.listing;if(t.addons.single_post="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.singlePost),t.addons.single_post){if(t.addons.single_post_id=n.dataset.singlePostId,t.addons.single_post_query=n.dataset.singlePostQuery,t.addons.single_post_order=void 0===n.dataset.singlePostOrder?"previous":n.dataset.singlePostOrder,t.addons.single_post_init_id=n.dataset.singlePostId,t.addons.single_post_taxonomy=void 0===n.dataset.singlePostTaxonomy?"":n.dataset.singlePostTaxonomy,t.addons.single_post_excluded_terms=void 0===n.dataset.singlePostExcludedTerms?"":n.dataset.singlePostExcludedTerms,t.addons.single_post_progress_bar=void 0===n.dataset.singlePostProgressBar?"":n.dataset.singlePostProgressBar,t.addons.single_post_target=void 0===n.dataset.singlePostTarget?"":n.dataset.singlePostTarget,t.addons.single_post_preview=void 0!==n.dataset.singlePostPreview,t.addons.single_post_preview){var r=n.dataset.singlePostPreview.split(":");t.addons.single_post_preview_data={button_label:r[0]?r[0]:"Continue Reading",height:r[1]?r[1]:500,element:r[2]?r[2]:"default",className:"alm-single-post--preview"}}void 0===t.addons.single_post_id&&(t.addons.single_post_id="",t.addons.single_post_init_id=""),t.addons.single_post_permalink="",t.addons.single_post_title="",t.addons.single_post_slug="",t.addons.single_post_cache=!1,t.addons.single_post_title_template=n.dataset.singlePostTitleTemplate,t.addons.single_post_siteTitle=n.dataset.singlePostSiteTitle,t.addons.single_post_siteTagline=n.dataset.singlePostSiteTagline,t.addons.single_post_scroll=n.dataset.singlePostScroll,t.addons.single_post_scroll_speed=n.dataset.singlePostScrollSpeed,t.addons.single_post_scroll_top=n.dataset.singlePostScrolltop,t.addons.single_post_controls=n.dataset.singlePostControls}return t}(O=function(t){var e,n=t.listing;return t.addons.nextpage="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.nextpage),t.addons.nextpage&&(t.addons.nextpage_urls=void 0===n.dataset.nextpageUrls?"true":n.dataset.nextpageUrls,t.addons.nextpage_scroll=void 0===n.dataset.nextpageScroll?"false:30":n.dataset.nextpageScroll,t.addons.nextpage_post_id=!!n.dataset.nextpagePostId&&n.dataset.nextpagePostId,t.addons.nextpage_startpage=n.dataset.nextpageStartpage?parseInt(n.dataset.nextpageStartpage):1,t.addons.nextpage_title_template=n.dataset.nextpageTitleTemplate,t.addons.nextpage_postTitle=t.listing.dataset.nextpagePostTitle,t.posts_per_page=1,t.orginal_posts_per_page=1,t.addons.nextpage_post_id||(t.addons.nextpage=!1),t.addons.nextpage_startpage>1&&(t.paged=!0)),t}(O=function(t){var e,n=t.listing;return t.addons.cta="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.cta),t.addons.cta&&(t.addons.cta_position=n.dataset.ctaPosition,t.addons.cta_repeater=n.dataset.ctaRepeater,t.addons.cta_theme_repeater=n.dataset.ctaThemeRepeater),t}(O=function(t){var e,n=t.listing;return t.addons.cache="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.cache),t.addons.cache&&(t.addons.cache_id=n.dataset.cacheId,t.addons.cache_path=n.dataset.cachePath,t.addons.cache_logged_in=!!n.dataset.cacheLoggedIn&&n.dataset.cacheLoggedIn),t}(O=function(t){var e,n,r=t.listing,o=t.addons;return t.addons.woocommerce="true"===(null==r||null===(e=r.dataset)||void 0===e?void 0:e.woo),t.addons.woocommerce&&r.dataset.wooSettings&&(t.addons.woocommerce_settings=JSON.parse(r.dataset.wooSettings),t.addons.woocommerce_settings.results_text=document.querySelectorAll(null==o||null===(n=o.woocommerce_settings)||void 0===n?void 0:n.results),t.page=parseInt(t.page)+parseInt(o.woocommerce_settings.paged)),t}(O=hn(O=function(t){var e=t.main.closest(".".concat("wp-block-query"));return e?(t.addons.queryloop=!0,t.addons.queryloop_settings={container:e,classes:{container:".".concat(e.className.replace(/ /g,".")),listing:".wp-block-post-template",element:".wp-block-post",pagination:".wp-block-query-pagination",pagination_prev:"a.wp-block-query-pagination-previous",pagination_next:"a.wp-block-query-pagination-next"},pagination:e.querySelector(".wp-block-query-pagination"),pagination_prev:e.querySelector("a.wp-block-query-pagination-previous"),pagination_next:e.querySelector("a.wp-block-query-pagination-next")},t):t}(O))))))))))))).extensions.users="true"===O.listing.dataset.users,O.extensions.users&&(O.orginal_posts_per_page=parseInt(O.listing.dataset.usersPerPage),O.posts_per_page=parseInt(O.listing.dataset.usersPerPage)),O.extensions.restapi="true"===O.listing.dataset.restapi,O.extensions.restapi&&(O.extensions.restapi_base_url=O.listing.dataset.restapiBaseUrl,O.extensions.restapi_namespace=O.listing.dataset.restapiNamespace,O.extensions.restapi_endpoint=O.listing.dataset.restapiEndpoint,O.extensions.restapi_template_id=O.listing.dataset.restapiTemplateId,O.extensions.restapi_debug=O.listing.dataset.restapiDebug,""===O.extensions.restapi_template_id&&(O.extensions.restapi=!1)),O.extensions.acf="true"===O.listing.dataset.acf,O.extensions.acf&&(O.extensions.acf_field_type=O.listing.dataset.acfFieldType,O.extensions.acf_field_name=O.listing.dataset.acfFieldName,O.extensions.acf_parent_field_name=O.listing.dataset.acfParentFieldName,O.extensions.acf_row_index=O.listing.dataset.acfRowIndex,O.extensions.acf_post_id=O.listing.dataset.acfPostId,void 0!==O.extensions.acf_field_type&&void 0!==O.extensions.acf_field_name&&void 0!==O.extensions.acf_post_id||(O.extensions.acf=!1)),O.extensions.term_query="true"===O.listing.dataset.termQuery,O.extensions.term_query&&(O.extensions.term_query_taxonomy=O.listing.dataset.termQueryTaxonomy,O.extensions.term_query_hide_empty=O.listing.dataset.termQueryHideEmpty,O.extensions.term_query_number=O.listing.dataset.termQueryNumber),(void 0===O.pause||O.addons.seo&&O.start_page>1)&&(O.pause=!1),O.addons.preloaded&&O.addons.seo&&O.start_page>0&&(O.pause=!1),O.addons.filters&&O.addons.filters_startpage>0&&(O.pause=!1),O.addons.preloaded&&O.addons.paging&&(O.pause=!0),O.max_pages=void 0===O.max_pages||0===O.max_pages?9999:O.max_pages,O.scroll_distance=void 0===O.scroll_distance?100:O.scroll_distance,O.scroll_distance_perc=!1,-1===O.scroll_distance.toString().indexOf("%")?O.scroll_distance=parseInt(O.scroll_distance):(O.scroll_distance_perc=!0,O.scroll_distance_orig=parseInt(O.scroll_distance),O.scroll_distance=nr(O)),"masonry"===O.transition&&(O=function(t){t.masonry={},t.masonry.init=!0,t.msnry?t.msnry.destroy():t.msnry="";var e=JSON.parse(t.listing.dataset.masonryConfig);return e?(t.masonry.selector=e.selector,t.masonry.columnwidth=e.columnwidth,t.masonry.animation=""===e.animation?"standard":e.animation,t.masonry.horizontalorder=""===e.horizontalorder?"true":e.horizontalorder,t.images_loaded=!0,t.transition_delay=0):console.warn("Ajax Load More: Unable to locate Masonry configuration settings."),t}(O)),O.addons.paging)O.main.classList.add("alm-loading");else{var P=t.childNodes;if(P){var T=Hr(P).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));O.button=T?T[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else O.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");O.button.disabled=!1,O.button.style.display=""}var k,I,M=t.querySelector(".alm-no-results");(O.no_results=M?M.innerHTML:"",O.integration.woocommerce)?(O.resultsText=document.querySelectorAll(".woocommerce-result-count"),(null===(k=O)||void 0===k||null===(k=k.resultsText)||void 0===k?void 0:k.length)<1&&(O.resultsText=document.querySelectorAll(".alm-results-text"))):O.resultsText=document.querySelectorAll(".alm-results-text");(O.resultsText?O.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):O.resultsText=!1,O.tableofcontents=document.querySelector(".alm-toc")||!1,O.tableofcontents&&(O.tableofcontents.setAttribute("aria-live","polite"),O.tableofcontents.setAttribute("aria-atomic","true")),O.AjaxLoadMore.loadPosts=function(){O.disable_ajax||("function"==typeof almOnChange&&window.almOnChange(O),O.loading=!0,O.main.classList.add("alm-loading"),Mr("show",O),O.addons.paging||("prev"===O.rel?O.buttonPrev.classList.add("loading"):(O.button.classList.add("loading"),O.button_labels.loading&&(O.button.innerHTML=O.button_labels.loading))),O.AjaxLoadMore.ajax())},O.AjaxLoadMore.ajax=zr(Br().mark((function t(){var e,n,r,o,a=arguments;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]?a[0]:"standard",!O.extensions.restapi){t.next=5;break}O.AjaxLoadMore.restapi(O),t.next=14;break;case 5:if(r=cr(O,e),null===(n=O)||void 0===n||null===(n=n.addons)||void 0===n||!n.cache||["totalposts","totalpages"].includes(e)){t.next=13;break}return t.next=9,We(O,Object.assign({},r));case 9:(o=t.sent)?O.AjaxLoadMore.render(o):O.AjaxLoadMore.adminajax(r,e),t.next=14;break;case 13:O.AjaxLoadMore.adminajax(r,e);case 14:case"end":return t.stop()}}),t)}))),O.AjaxLoadMore.adminajax=function(){var t=zr(Br().mark((function t(e,n){var r,o,a,i,s;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=alm_localize,o=r.ajaxurl,a=e.cache_slug,i=void 0===a?"":a,O.addons.single_post&&O.addons.single_post_target&&(o="".concat(O.addons.single_post_permalink,"?id=").concat(O.addons.single_post_id,"&alm_page=").concat(parseInt(O.page)+1),e=""),(O.addons.queryloop||O.addons.woocommerce||O.addons.elementor&&"posts"===O.addons.elementor_type)&&(o=Fe(O,O.rel),e=""),t.next=6,he.get(o,{params:e}).then((function(t){return O.addons.single_post&&O.addons.single_post_target?Un(O,t,i):O.addons.woocommerce?$n(O,o,t,i):O.addons.elementor?yn(O,o,t,i):O.addons.queryloop?Fn(O,o,t,i):t.data})).catch((function(t){O.AjaxLoadMore.error(t,"adminajax")}));case 6:s=t.sent,t.t0=n,t.next="standard"===t.t0?10:"totalposts"===t.t0||"totalpages"===t.t0?12:14;break;case 10:return O.AjaxLoadMore.render(s),t.abrupt("break",14);case 12:return O.addons.paging&&O.addons.nextpage&&"function"==typeof almBuildPagination?(window.almBuildPagination(s.totalpages,O),O.totalpages=s.totalpages):O.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(s.totalposts,O),t.abrupt("break",14);case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),O.AjaxLoadMore.restapi=function(t){var e=alm_localize.rest_api_url,n=t.extensions,r=n.restapi_base_url,o=n.restapi_namespace,a=n.restapi_endpoint,i=n.restapi_template_id,s=wp.template(i),l="".concat(e).concat(r,"/").concat(o,"/").concat(a),c=function(t){return{id:t.id,post_id:parseInt(t.post_id),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}(t);he.get(l,{params:c}).then((function(e){for(var n=e.data,r=n.html,o=void 0===r?null:r,a=n.meta,i=void 0===a?null:a,l=i&&i.postcount?i.postcount:0,c=i&&i.totalposts?i.totalposts:0,u="",d=0;d0&&(O.addons.paging_container.style.opacity=0,O.AjaxLoadMore.pagingInit())),O.addons.seo&&O.addons.seo_offset&&!O.addons.paging&&Pn(O),O.paged&&((O.addons.seo||O.addons.filters||O.extensions.users)&&(O.posts_per_page=O.orginal_posts_per_page),O.addons.seo&&(O.page=O.start_page?O.start_page-1:O.page),O.addons.filters&&O.addons.filters_startpage>0&&(O.page=O.addons.filters_startpage-1)),"function"==typeof almFiltersOnload&&window.almFiltersOnload(O)),O.addons.filters&&O.facets&&n.facets&&"function"==typeof almFiltersFacets&&window.almFiltersFacets(n.facets),pr(O),zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qr(O);case 2:case"end":return t.stop()}}),t)})))(),l="table"===O.container_type?lr(O.html):sr(O.html),O.last_loaded=l,!(i>0)){e.next=52;break}if(!(O.addons.woocommerce||O.addons.elementor||O.addons.queryloop)){e.next=21;break}return(c=document.createElement("div")).innerHTML=o,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.addons.woocommerce){t.next=4;break}return t.next=3,Vn(c,O);case 3:Jn(O);case 4:if(!O.addons.elementor){t.next=8;break}return t.next=7,vn(c,O);case 7:_n(O);case 8:if(!O.addons.queryloop){t.next=12;break}return t.next=11,qn(c,O);case 11:Dn(O);case 12:case"end":return t.stop()}}),t)})))().catch((function(t){O.addons.woocommerce&&console.warn("Ajax Load More: There was an error loading WooCommerce products.",t),O.addons.elementor&&console.warn("Ajax Load More: There was an error loading Clementor items.",t),O.addons.queryloop&&console.warn("Ajax Load More: There was an error loading Query Loop items.",t)})),O.init=!1,e.abrupt("return");case 21:if(O.addons.paging){e.next=36;break}l=er(O,l),e.t0=O.transition,e.next="masonry"===e.t0?26:30;break;case 26:return e.next=28,Yn(O,l);case 28:return zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pr(O,O.init,$r);case 2:O.masonry.init=!1,dr(),"function"==typeof almComplete&&window.almComplete(O);case 5:case"end":return t.stop()}}),t)})))().catch((function(){console.error("There was an error with ALM Masonry")})),e.abrupt("break",33);case 30:return e.next=32,Yn(O,l);case 32:return e.abrupt("break",33);case 33:Vr(O.listing,(function(){var e,n,r,o;(O.AjaxLoadMore.nested(),$r&&O.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),"function"==typeof almComplete&&"masonry"!==O.transition&&window.almComplete(O),En.init(O.last_loaded),O.addons.single_post)||(O.addons.nextpage?(null===(e=O)||void 0===e||null===(e=e.localize)||void 0===e?void 0:e.post_count)+(O.addons.nextpage_startpage-1)>=(null===(n=O)||void 0===n||null===(n=n.localize)||void 0===n?void 0:n.total_posts)&&O.AjaxLoadMore.triggerDone():(null===(r=O)||void 0===r||null===(r=r.localize)||void 0===r?void 0:r.post_count)>=(null===(o=O)||void 0===o||null===(o=o.localize)||void 0===o?void 0:o.total_posts)&&O.AjaxLoadMore.triggerDone());$r=!1})),e.next=50;break;case 36:if(u=O.addons.paging_container,!O.init){e.next=44;break}if(!u){e.next=42;break}return e.next=41,Kn(O,l);case 41:Vr(u,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:jn(O,$r,!0),$r=!1;case 2:case"end":return t.stop()}}),t)}))));case 42:e.next=50;break;case 44:if(!u){e.next=50;break}return e.next=47,gr(u,250);case 47:return e.next=49,Kn(O,l);case 49:Vr(u,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fr(u,250);case 2:u.style.opacity="",jn(O,$r),$r=!1;case 5:case"end":return t.stop()}}),t)}))));case 50:e.next=54;break;case 52:O.AjaxLoadMore.noresults(),O.AjaxLoadMore.transitionEnd();case 54:O.destroy_after&&(d=O.page+1,d=O.addons.preloaded?d++:d,parseInt(d)===parseInt(O.destroy_after)&&O.AjaxLoadMore.destroyed()),hr(O,O.init),null!==(r=O)&&void 0!==r&&null!==(r=r.last_loaded)&&void 0!==r&&r.length&&on(O,O.last_loaded[0],i,$r),O.main.classList.remove("alm-is-filtering"),O.init&&O.main.classList.add("alm-is-loaded"),O.init=!1;case 60:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O.AjaxLoadMore.noresults=function(){var e,n;O.addons.paging||(null===(e=O)||void 0===e||null===(e=e.button)||void 0===e||null===(e=e.classList)||void 0===e||e.remove("loading"),null===(n=O)||void 0===n||null===(n=n.button)||void 0===n||null===(n=n.classList)||void 0===n||n.add("done"),O.AjaxLoadMore.resetBtnText());"function"==typeof almComplete&&"masonry"!==O.transition&&window.almComplete(O),$r&&O.addons.filters&&("function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),$r=!1),"masonry"===O.transition&&(O.content.style.height="auto"),O.AjaxLoadMore.triggerDone()},O.AjaxLoadMore.pagingPreloadedInit=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;O.AjaxLoadMore.pagingInit(),t||("function"==typeof almPagingEmpty&&window.almPagingEmpty(O),"function"==typeof almEmpty&&window.almEmpty(O),O.no_results&&or(O.content,O.no_results))},O.AjaxLoadMore.pagingNextpageInit=function(){O.AjaxLoadMore.pagingInit(),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(O)},O.AjaxLoadMore.pagingInit=function(){var t=O.addons.paging_container;t&&(fr(t,150),setTimeout((function(){O.main.classList.remove("alm-loading")}),150),setTimeout((function(){t.style.removeProperty("opacity"),"function"==typeof almFadePageControls&&window.almFadePageControls(O.btnWrap),"function"==typeof almPagingSetHeight&&window.almPagingSetHeight(t)}),275))},O.AjaxLoadMore.nested=function(){var t=O.listing.querySelectorAll(".ajax-load-more-wrap:not(.alm-is-loaded)");t&&Hr(t).forEach((function(t){window.almInit(t)}))},O.AjaxLoadMore.getSinglePost=zr(Br().mark((function t(){var e,n;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.fetchingPreviousPost){t.next=2;break}return t.abrupt("return");case 2:return O.fetchingPreviousPost=!0,e={action:"alm_get_single",id:O.addons.single_post_id,initial_id:O.addons.single_post_init_id,order:O.addons.single_post_order,taxonomy:O.addons.single_post_taxonomy,excluded_terms:O.addons.single_post_excluded_terms,post_type:O.post_type,init:O.addons.single_post_init},t.next=6,he.get(alm_localize.ajaxurl,{params:e}).then((function(t){var e=t.data;return e.has_previous_post?(O.listing.dataset.singlePostId=e.prev_id,O.addons.single_post_id=e.prev_id,O.addons.single_post_permalink=e.prev_permalink,O.addons.single_post_title=e.prev_title,O.addons.single_post_slug=e.prev_slug,O.addons.single_post_cache=e.cache):(O.addons.single_post_cache=!1,e.has_previous_post||O.AjaxLoadMore.triggerDone()),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(O,e.current_id,e.permalink,e.title),O.fetchingPreviousPost=!1,O.addons.single_post_init=!1,e})).catch((function(t){O.AjaxLoadMore.error(t,"getSinglePost"),O.fetchingPreviousPost=!1}));case 6:return n=t.sent,t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)}))),O.addons.single_post_id&&(O.fetchingPreviousPost=!1,O.addons.single_post_init=!0),O.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&t.addons.nextpage&&window.almSetNextPage(t),"function"==typeof almSEO&&t.addons.seo&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&t.addons.woocommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&t.addons.elementor&&window.almElementor(t)},O.AjaxLoadMore.triggerDone=function(){O.loading=!1,O.finished=!0,Mr("hide",O),O.addons.paging||(O.button_labels.done&&setTimeout((function(){O.button.innerHTML=O.button_labels.done}),75),O.button.classList.add("done"),O.button.removeAttribute("rel"),O.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(O)}),O.speed+10)},O.AjaxLoadMore.triggerDonePrev=function(){O.loading=!1,Mr("hide",O),O.addons.paging||(O.buttonPrev.classList.add("done"),O.buttonPrev.style.opacity="0.5",O.buttonPrev.disabled=!0),"function"==typeof almDonePrev&&setTimeout((function(){window.almDonePrev(O)}),O.speed+10)},O.AjaxLoadMore.resetBtnText=function(){O.button&&O.button_labels.loading&&(O.button.innerHTML=O.button_labels.default)},O.AjaxLoadMore.click=function(t){var e=t.currentTarget||t.target;O.rel="next","true"===O.pause&&(O.pause=!1,O.pause_override=!1,O.AjaxLoadMore.loadPosts()),O.loading||O.finished||e.classList.contains("done")||(O.loading=!0,O.page++,O.AjaxLoadMore.loadPosts()),e.blur()},O.AjaxLoadMore.prevClick=function(t){var e=t.currentTarget||t.target;t.preventDefault(),O.loading||e.classList.contains("done")||(O.loading=!0,O.pagePrev--,O.rel="prev",O.AjaxLoadMore.loadPosts(),e.blur())},O.AjaxLoadMore.setPreviousButton=function(t){O.pagePrev=O.page,O.buttonPrev=t},O.addons.paging||O.fetchingPreviousPost||(O.button.onclick=O.AjaxLoadMore.click),O.addons.paging||O.scroll_distance_perc||"horizontal"===O.scroll_direction)&&(O.window.onresize=function(){clearTimeout(I),I=setTimeout((function(){O.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(O),O.scroll_distance_perc&&(O.scroll_distance=nr(O)),"horizontal"===O.scroll_direction&&O.AjaxLoadMore.horizontal()}),O.speed)});O.AjaxLoadMore.isVisible=function(){return O.visible=O.main.clientWidth>0&&O.main.clientHeight>0,O.visible},O.AjaxLoadMore.scroll=function(){O.timer&&clearTimeout(O.timer),O.timer=setTimeout((function(){if(O.AjaxLoadMore.isVisible()&&!O.fetchingPreviousPost){var t=O.trigger.getBoundingClientRect(),e=Math.round(t.top-O.window.innerHeight)+O.scroll_distance<=0;if(O.window!==window){var n=O.main.offsetHeight,r=O.main.offsetWidth;"horizontal"===O.scroll_direction?(O.AjaxLoadMore.horizontal(),e=r<=Math.round(O.window.scrollLeft+O.window.offsetWidth-O.scroll_distance)):e=n<=Math.round(O.window.scrollTop+O.window.offsetHeight-O.scroll_distance)}(!O.loading&&!O.finished&&e&&O.page0&&O.AjaxLoadMore.scroll()})),O.window.addEventListener("keyup",(function(t){switch(t.key){case"End":case"PageDown":O.AjaxLoadMore.scroll()}})))},O.AjaxLoadMore.horizontal=function(){"horizontal"===O.scroll_direction&&(O.main.style.width="".concat(O.listing.offsetWidth,"px"))},O.AjaxLoadMore.destroyed=function(){O.disable_ajax=!0,O.addons.paging||(O.button.style.display="none",O.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(O))},O.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){var t,e;(O.AjaxLoadMore.resetBtnText(),O.main.classList.remove("alm-loading"),"prev"===O.rel)?null===(t=O)||void 0===t||null===(t=t.buttonPrev)||void 0===t||null===(t=t.classList)||void 0===t||t.remove("loading"):null===(e=O)||void 0===e||null===(e=e.button)||void 0===e||null===(e=e.classList)||void 0===e||e.remove("loading");O.AjaxLoadMore.triggerAddons(O),O.addons.paging||setTimeout((function(){O.loading=!1}),2*O.speed)}),25),Mr("hide",O)},O.AjaxLoadMore.setLocalizedVar=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null!==(t=O)&&void 0!==t&&t.localize&&""!==e&&""!==n&&(O.localize[e]=n,window[O.localized_var][e]=n)},O.AjaxLoadMore.init=zr(Br().mark((function t(){var e,n,r,o;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:O.addons.preloaded&&1===O.destroy_after&&O.AjaxLoadMore.destroyed(),O.addons.paging&&(O.addons.preloaded?O.AjaxLoadMore.ajax("totalposts"):O.addons.nextpage?O.AjaxLoadMore.ajax("totalpages"):O.AjaxLoadMore.loadPosts()),O.addons.paging||O.addons.single_post||(O.disable_ajax?(O.finished=!0,O.button.classList.add("done")):(O.button.innerHTML=O.button_labels.default,"true"===O.pause?O.loading=!1:O.AjaxLoadMore.loadPosts())),O.addons.single_post&&setTimeout(zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O.AjaxLoadMore.getSinglePost();case 2:O.addons.single_post_query&&""===O.addons.single_post_order&&O.AjaxLoadMore.triggerDone(),O.loading=!1,hr(O,!0,!0);case 5:case"end":return t.stop()}}),t)}))),250),O.addons.queryloop&&O.addons.queryloop_settings&&Cn(O),O.addons.preloaded&&O.addons.seo&&!O.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&O.start_page<1&&window.almSEO(O,!0)}),200),O.addons.preloaded&&!O.addons.paging&&setTimeout((function(){O.addons.preloaded_total_posts<=O.addons.preloaded_amount&&O.AjaxLoadMore.triggerDone(),0===O.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(O),O.no_results&&or(O.content,O.no_results))}),O.speed),O.addons.preloaded&&(O.resultsText&&Cr(O,"preloaded"),hr(O,O.init,!0)),O.addons.nextpage&&(O.listing.querySelector(".alm-nextpage")&&!O.addons.paging&&(e=O.listing.querySelectorAll(".alm-nextpage"))&&(r=e[0],o=r.dataset.totalPosts?parseInt(r.dataset.totalPosts):null===(n=O)||void 0===n||null===(n=n.localize)||void 0===n?void 0:n.total_posts,e.length!==o&&parseInt(r.dataset.page)!==o||O.AjaxLoadMore.triggerDone()),O.resultsText&&Cr(O,"nextpage"),hr(O,O.init,!0)),O.addons.woocommerce&&(Wn(O),O.addons.woocommerce_settings.paged>=parseInt(O.addons.woocommerce_settings.pages)&&O.AjaxLoadMore.triggerDone()),O.addons.elementor&&O.addons.elementor_type&&"posts"===O.addons.elementor_type&&(mn(O),O.addons.elementor_next_page||O.AjaxLoadMore.triggerDone()),O.window.addEventListener("load",(function(){if("masonry"===O.transition&&O.addons.preloaded&&zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pr(O,!0,!1);case 2:O.masonry.init=!1;case 3:case"end":return t.stop()}}),t)})))().catch((function(){console.error("There was an error with ALM Masonry")})),O.addons.preloaded&&O.addons.filters&&O.facets&&"function"==typeof almFiltersFacets){var t,e=null===(t=O)||void 0===t||null===(t=t.localize)||void 0===t?void 0:t.facets;e&&window.almFiltersFacets(e)}"function"==typeof almOnLoad&&window.almOnLoad(O)})),In(O);case 13:case"end":return t.stop()}}),t)}))),O.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;O.loading=!1,O.addons.paging||(O.button.classList.remove("loading"),O.AjaxLoadMore.resetBtnText()),console.warn("Error: ",t),t.response?console.error("Error Msg: ",t.message):t.request?console.error(t.request):console.error("Error Msg: ",t.message),e&&console.error("ALM Error started in "+e),t.config&&console.error("ALM Error Debug: ",t.config)},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r=n.listing,o=null==r?void 0:r.innerHTML;n.addons.paging_init&&n.addons.preloaded?(n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(o),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?(n.AjaxLoadMore.pagingNextpageInit(),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){var t;return null===(t=O)||void 0===t?void 0:t.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?O[t]:O},window.almTriggerClick=function(){O.button.click()},setTimeout((function(){O.proceed=!0,O.AjaxLoadMore.scrollSetup()}),1e3),O.AjaxLoadMore.init()};window.almInit=function(e){new t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&Hr(e).forEach((function(e,n){new t(e,n)}))}();var Jr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;$r=!0,br(t,e,n,"filter")},Qr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};$r=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?zr(Br().mark((function t(){var n,r;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,new Promise((function(t){var e=window.location;he.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(){t(!1)}))}));case 3:(r=t.sent)&&(n.dataset.wooSettings=r,br("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t)})))().catch((function(){console.warn("Ajax Load More: There was an issue resetting the Ajax Load More instance.")})):br("fade","200",e,"filter")},Yr=function(){return rr("post_count",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Kr=function(){return rr("total_posts",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Xr=function(){return rr("remaining",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Zr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=window.location,n=e.pathname,r=void 0===n?"":n,o=e.search,a=void 0===o?"":o;"function"==typeof almUrlUpdate&&window.almUrlUpdate(r+a,t),"function"==typeof almAnalytics&&window.almAnalytics(r+a,t)},to=function(t){if(!t)return!1;window.almInit(t)},eo=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})},no=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.scrollX||document.documentElement.scrollLeft,r=window.scrollY||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}},ro=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.querySelector(".ajax-load-more-wrap"),n="";!t&&e?(n=e.querySelector("button.alm-load-more-btn"))&&n.click():(e=document.querySelector('.ajax-load-more-wrap[data-id="'.concat(t,'"]')))&&(n=e.querySelector("button.alm-load-more-btn"))&&n.click()},oo=function(t){var e=t.querySelector(".alm-listing");e&&"true"!==t.dataset.blockLoaded&&(t.dataset.blockLoaded="true",e.dataset.scroll="false",to(t))}}(),ajaxloadmore=r}(); \ No newline at end of file diff --git a/lang/ajax-load-more.pot b/lang/ajax-load-more.pot index 138f0e6..f57621c 100755 --- a/lang/ajax-load-more.pot +++ b/lang/ajax-load-more.pot @@ -2,22 +2,22 @@ # This file is distributed under the GPL. msgid "" msgstr "" -"Project-Id-Version: Ajax Load More 7.1.3\n" +"Project-Id-Version: Ajax Load More 7.1.4\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-load-more\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-10-01T13:26:40+00:00\n" +"POT-Creation-Date: 2024-12-04T13:46:11+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: ajax-load-more\n" #. Plugin Name of the plugin -#: admin/admin.php:556 +#: admin/admin.php:555 #: core/integration/elementor/elementor.php:19 -#: src/blocks/core/render.php:15 +#: src/blocks/core/render.php:16 msgid "Ajax Load More" msgstr "" @@ -37,190 +37,190 @@ msgstr "" msgid "https://connekthq.com" msgstr "" -#: admin/admin.php:76 -#: admin/admin.php:592 +#: admin/admin.php:75 +#: admin/admin.php:591 #: admin/functions/layouts.php:18 #: admin/functions/licensing.php:19 #: admin/functions/repeater-templates.php:20 -#: admin/functions/repeater-templates.php:130 +#: admin/functions/repeater-templates.php:125 msgid "You don't belong here." msgstr "" -#: admin/admin.php:81 -#: admin/admin.php:596 +#: admin/admin.php:80 +#: admin/admin.php:595 #: admin/functions/layouts.php:23 #: admin/functions/licensing.php:25 #: admin/functions/repeater-templates.php:25 -#: admin/functions/repeater-templates.php:135 +#: admin/functions/repeater-templates.php:130 msgid "Error - unable to verify nonce, please try again." msgstr "" -#: admin/admin.php:89 +#: admin/admin.php:88 msgid "Transient set successfully" msgstr "" -#: admin/admin.php:107 +#: admin/admin.php:106 msgid "License" msgstr "" -#: admin/admin.php:107 +#: admin/admin.php:106 #: admin/views/filters.php:10 #: admin/views/licenses.php:9 #: admin/views/licenses.php:10 msgid "Licenses" msgstr "" +#: admin/admin.php:120 #: admin/admin.php:121 -#: admin/admin.php:122 -#: admin/admin.php:130 +#: admin/admin.php:129 #: admin/views/settings.php:9 -#: ajax-load-more.php:312 +#: ajax-load-more.php:317 #: src/blocks/core/inspector.js:17 #: src/blocks/filters/inspector.js:28 msgid "Settings" msgstr "" +#: admin/admin.php:136 #: admin/admin.php:137 -#: admin/admin.php:138 -#: admin/admin.php:146 +#: admin/admin.php:145 #: admin/views/repeater-templates.php:9 msgid "Templates" msgstr "" +#: admin/admin.php:152 #: admin/admin.php:153 -#: admin/admin.php:154 -#: admin/admin.php:162 +#: admin/admin.php:161 #: admin/views/shortcode-builder.php:9 msgid "Shortcode Builder" msgstr "" +#: admin/admin.php:168 #: admin/admin.php:169 -#: admin/admin.php:170 -#: admin/admin.php:178 +#: admin/admin.php:177 #: admin/shortcode-builder/components/filters.php:10 #: admin/views/filters.php:9 msgid "Filters" msgstr "" +#: admin/admin.php:185 #: admin/admin.php:186 -#: admin/admin.php:187 -#: admin/admin.php:197 +#: admin/admin.php:196 #: admin/shortcode-builder/components/cache.php:3 msgid "Cache" msgstr "" +#: admin/admin.php:205 #: admin/admin.php:206 -#: admin/admin.php:207 -#: admin/admin.php:216 +#: admin/admin.php:215 msgid "WooCommerce" msgstr "" +#: admin/admin.php:225 #: admin/admin.php:226 -#: admin/admin.php:227 -#: admin/admin.php:235 +#: admin/admin.php:234 #: admin/shortcode-builder/shortcode-builder.php:25 #: admin/shortcode-builder/shortcode-builder.php:46 #: admin/views/add-ons.php:9 msgid "Add-ons" msgstr "" +#: admin/admin.php:245 #: admin/admin.php:246 -#: admin/admin.php:247 -#: admin/admin.php:255 +#: admin/admin.php:254 #: admin/shortcode-builder/shortcode-builder.php:28 #: admin/shortcode-builder/shortcode-builder.php:78 #: admin/views/extensions.php:9 msgid "Extensions" msgstr "" +#: admin/admin.php:262 #: admin/admin.php:263 -#: admin/admin.php:264 -#: admin/admin.php:272 -#: admin/admin.php:278 +#: admin/admin.php:271 +#: admin/admin.php:277 msgid "Pro" msgstr "" -#: admin/admin.php:279 -#: admin/admin.php:287 +#: admin/admin.php:278 +#: admin/admin.php:286 #: admin/views/licenses.php:154 msgid "Go Pro" msgstr "" +#: admin/admin.php:310 #: admin/admin.php:311 -#: admin/admin.php:312 -#: admin/admin.php:320 +#: admin/admin.php:319 #: admin/views/help.php:9 msgid "Help" msgstr "" -#: admin/admin.php:557 +#: admin/admin.php:556 #: admin/views/licenses.php:97 msgid "Active" msgstr "" -#: admin/admin.php:558 +#: admin/admin.php:557 #: admin/views/licenses.php:99 msgid "Inactive" msgstr "" -#: admin/admin.php:559 +#: admin/admin.php:558 msgid "Applying Layout" msgstr "" -#: admin/admin.php:560 -#: admin/views/repeater-templates.php:432 +#: admin/admin.php:559 +#: admin/views/repeater-templates.php:447 msgid "Template Updated" msgstr "" -#: admin/admin.php:562 +#: admin/admin.php:561 msgid "Select Author(s)" msgstr "" -#: admin/admin.php:563 +#: admin/admin.php:562 msgid "Select Categories" msgstr "" -#: admin/admin.php:564 +#: admin/admin.php:563 msgid "Select Tags" msgstr "" -#: admin/admin.php:565 +#: admin/admin.php:564 msgid "Select" msgstr "" -#: admin/admin.php:566 +#: admin/admin.php:565 msgid "Jump to Option" msgstr "" -#: admin/admin.php:567 +#: admin/admin.php:566 msgid "Jump to Template" msgstr "" -#: admin/admin.php:568 +#: admin/admin.php:567 msgid "Are you sure you want to install this Ajax Load More extension?" msgstr "" -#: admin/admin.php:569 +#: admin/admin.php:568 msgid "Install Now" msgstr "" -#: admin/admin.php:570 +#: admin/admin.php:569 msgid "Activate" msgstr "" -#: admin/admin.php:571 +#: admin/admin.php:570 msgid "Saving Settings" msgstr "" -#: admin/admin.php:572 +#: admin/admin.php:571 msgid "Settings Saved Successfully" msgstr "" -#: admin/admin.php:573 +#: admin/admin.php:572 msgid "Error Saving Settings" msgstr "" -#: admin/admin.php:574 +#: admin/admin.php:573 msgid "There is a maximum of 3 tax_query objects while using the shortcode builder" msgstr "" @@ -267,20 +267,20 @@ msgstr "" msgid "%1$sRegister%2$s your copy of %3$s to receive access to automatic upgrades and support. Need a license key? %4$sPurchase one now%5$s." msgstr "" -#: admin/functions/repeater-templates.php:110 +#: admin/functions/repeater-templates.php:105 msgid "Template Saved Successfully" msgstr "" -#: admin/functions/repeater-templates.php:112 +#: admin/functions/repeater-templates.php:107 msgid "Error Writing File" msgstr "" -#: admin/functions/repeater-templates.php:112 -#: admin/views/repeater-templates.php:376 +#: admin/functions/repeater-templates.php:107 +#: admin/views/repeater-templates.php:391 msgid "Something went wrong and the data could not be saved." msgstr "" -#: admin/functions/repeater-templates.php:179 +#: admin/functions/repeater-templates.php:174 msgid "Something isn't right here..." msgstr "" @@ -407,7 +407,7 @@ msgstr "" #: admin/functions/settings.php:374 #: admin/shortcode-builder/shortcode-builder.php:168 #: admin/shortcode-builder/shortcode-builder.php:387 -#: ajax-load-more.php:417 +#: ajax-load-more.php:419 msgid "Load More" msgstr "" @@ -1821,7 +1821,7 @@ msgstr "" #: admin/views/filters.php:41 #: admin/views/go-pro.php:63 #: admin/views/repeater-templates.php:133 -#: admin/views/repeater-templates.php:482 +#: admin/views/repeater-templates.php:497 msgid "Learn More" msgstr "" @@ -2650,7 +2650,7 @@ msgid "Theme Repeaters" msgstr "" #: admin/views/repeater-templates.php:93 -#: admin/views/repeater-templates.php:255 +#: admin/views/repeater-templates.php:270 msgid "Location" msgstr "" @@ -2666,43 +2666,47 @@ msgstr "" msgid "Manage Settings" msgstr "" -#: admin/views/repeater-templates.php:184 +#: admin/views/repeater-templates.php:186 msgid "Default Template" msgstr "" -#: admin/views/repeater-templates.php:199 +#: admin/views/repeater-templates.php:201 msgid "Template Code:" msgstr "" -#: admin/views/repeater-templates.php:200 +#: admin/views/repeater-templates.php:202 msgid "Enter the PHP and HTML markup for this template." msgstr "" -#: admin/views/repeater-templates.php:236 +#: admin/views/repeater-templates.php:224 +msgid "This default ALM template is missing from the filesystem! Click the \"Save Template\" button to save the template." +msgstr "" + +#: admin/views/repeater-templates.php:251 msgid "Save Template" msgstr "" -#: admin/views/repeater-templates.php:253 +#: admin/views/repeater-templates.php:268 msgid "It appears you are loading the default template (default.php) from your current theme directory. To modify this template, you must edit the file directly on your server." msgstr "" -#: admin/views/repeater-templates.php:265 +#: admin/views/repeater-templates.php:280 msgid "Repeater Templates editing has been disabled for this instance of Ajax Load More. To enable the template editing, please remove the ALM_DISABLE_REPEATER_TEMPLATES PHP constant from your wp-config.php (or functions.php) and re-activate the plugin." msgstr "" -#: admin/views/repeater-templates.php:340 +#: admin/views/repeater-templates.php:355 msgid "Saving template..." msgstr "" -#: admin/views/repeater-templates.php:411 +#: admin/views/repeater-templates.php:426 msgid "Updating Template" msgstr "" -#: admin/views/repeater-templates.php:476 +#: admin/views/repeater-templates.php:491 msgid "What's a Repeater Template?" msgstr "" -#: admin/views/repeater-templates.php:478 +#: admin/views/repeater-templates.php:493 msgid "A Repeater Template is a snippet of code that will execute over and over within a WordPress loop" msgstr "" @@ -2726,15 +2730,15 @@ msgstr "" msgid "Reset" msgstr "" -#: ajax-load-more.php:289 +#: ajax-load-more.php:294 msgid "Error creating repeater template directory" msgstr "" -#: ajax-load-more.php:401 +#: ajax-load-more.php:403 msgid "Viewing {post_count} of {total_posts} results." msgstr "" -#: ajax-load-more.php:402 +#: ajax-load-more.php:404 msgid "No results found." msgstr "" @@ -2967,7 +2971,7 @@ msgstr "" msgid "%1$sBuild Shortcode%2$s" msgstr "" -#: src/blocks/core/render.php:16 +#: src/blocks/core/render.php:17 msgid "You must enter an Ajax Load More shortcode." msgstr "" @@ -2985,7 +2989,7 @@ msgid "You must enter an Ajax Load More target for this filter." msgstr "" #: src/blocks/core/inspector.js:23 -msgid "Note: Scroll is disabled within the WP block editor." +msgid "Note: Infinite scroll is disabled within the Block Editor." msgstr "" #: src/blocks/core/inspector.js:34
<\/p>)+/g, ''); + + // Is this a paging instance. + var paging = element === null || element === void 0 ? void 0 : element.querySelector('.alm-paging-content'); + if (paging) { + paging.innerHTML = html; + } else { + element.innerHTML = html; + } +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/parsers.js +function parsers_toConsumableArray(arr) { return parsers_arrayWithoutHoles(arr) || parsers_iterableToArray(arr) || parsers_unsupportedIterableToArray(arr) || parsers_nonIterableSpread(); } +function parsers_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function parsers_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return parsers_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return parsers_arrayLikeToArray(o, minLen); } +function parsers_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function parsers_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return parsers_arrayLikeToArray(arr); } +function parsers_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + +/** + * Convert a plain text string into an array of HTML nodes. + * + * @param {string} html The HTML string + * @param {string} type The element type. + * @return {Array} The HTML nodes as an array. + * @since 5.0 + */ +function domParser() { + var _data$body; + var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text/html'; + if (!html) { + return []; + } + var parser = new DOMParser(); + var data = parser.parseFromString(html, type); + var nodes = data === null || data === void 0 || (_data$body = data.body) === null || _data$body === void 0 ? void 0 : _data$body.childNodes; + return nodes ? functions_stripEmptyNodes(parsers_toConsumableArray(nodes)) : []; +} + +/** + * Convert retun table data into an array of HTML elements. + * + * @param {string} html Plain text HTML. + * @return {Array} Array of HTML elements. + * @since 5.0 + */ +function tableParser() { + var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + if (!html) { + return []; + } + // Create table element and add results to table body. + var tbody = document.createElement('tbody'); + tbody.innerHTML = html; + return [tbody]; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/queryParams.js + + +/** + * Build the data object to send with the Ajax request. + * + * @param {Object} alm The ALM object. + * @param {string} queryType The query type. + * @return {Object} The data object. + * @since 3.6 + */ +function getAjaxParams(alm, queryType) { + var addons = alm.addons, + extensions = alm.extensions; + + // Defaults + var data = { + action: 'alm_get_posts', + query_type: queryType, + id: alm.id, + post_id: parseInt(alm.post_id), + slug: alm.slug, + canonical_url: encodeURIComponent(alm.canonical_url), + posts_per_page: parseInt(alm.posts_per_page), + page: parseInt(alm.page), + offset: parseInt(alm.offset), + post_type: alm.post_type, + repeater: alm.repeater, + seo_start_page: alm.start_page + }; + + // Addons & Extensions + + if (extensions.acf) { + data.acf = getTypeParams(alm, 'acf'); + if (extensions.acf_field_type !== 'relationship') { + data.action = 'alm_acf'; + } + } + if (addons.comments) { + data.comments = getTypeParams(alm, 'comments'); + data.posts_per_page = addons.comments_per_page; + data.action = 'alm_comments'; + } + if (addons.cta) { + data.cta = getTypeParams(alm, 'cta'); + } + if (addons.filters) { + data.filters = addons.filters; + data.filters_startpage = addons.filters_startpage; + data.filters_target = addons.filters_target; + data.facets = alm.facets; + } + if (addons.nextpage) { + data.nextpage = getTypeParams(alm, 'nextpage'); + data.action = 'alm_nextpage'; + } + if (addons.paging) { + data.paging = addons.paging; + } + if (addons.preloaded) { + data.preloaded = addons.preloaded; + data.preloaded_amount = parseInt(addons.preloaded_amount); + } + if (addons.single_post) { + data.single_post = getTypeParams(alm, 'single_post'); + } + if (extensions.term_query) { + data.term_query = getTypeParams(alm, 'term_query'); + data.action = 'alm_get_terms'; + } + if (alm.extensions.users) { + data.users = getTypeParams(alm, 'users'); + data.action = 'alm_users'; + } + if (alm.theme_repeater) { + data.theme_repeater = alm.theme_repeater; + } + + // Query data params from ALM HTML element. + if (alm.listing.dataset.lang) { + data.lang = alm.listing.dataset.lang; + } + if (alm.listing.dataset.stickyPosts) { + data.sticky_posts = alm.listing.dataset.stickyPosts; + } + if (alm.listing.dataset.postFormat) { + data.post_format = alm.listing.dataset.postFormat; + } + if (alm.listing.dataset.category) { + data.category = alm.listing.dataset.category; + } + if (alm.listing.dataset.categoryAnd) { + data.category__and = alm.listing.dataset.categoryAnd; + } + if (alm.listing.dataset.categoryNotIn) { + data.category__not_in = alm.listing.dataset.categoryNotIn; + } + if (alm.listing.dataset.tag) { + data.tag = alm.listing.dataset.tag; + } + if (alm.listing.dataset.tagAnd) { + data.tag__and = alm.listing.dataset.tagAnd; + } + if (alm.listing.dataset.tagNotIn) { + data.tag__not_in = alm.listing.dataset.tagNotIn; + } + if (alm.listing.dataset.taxonomy) { + data.taxonomy = alm.listing.dataset.taxonomy; + } + if (alm.listing.dataset.taxonomyTerms) { + data.taxonomy_terms = alm.listing.dataset.taxonomyTerms; + } + if (alm.listing.dataset.taxonomyOperator) { + data.taxonomy_operator = alm.listing.dataset.taxonomyOperator; + } + if (alm.listing.dataset.taxonomyIncludeChildren) { + data.taxonomy_include_children = alm.listing.dataset.taxonomyIncludeChildren; + } + if (alm.listing.dataset.taxonomyRelation) { + data.taxonomy_relation = alm.listing.dataset.taxonomyRelation; + } + if (alm.listing.dataset.sortKey) { + data.sort_key = alm.listing.dataset.sortKey; + } + if (alm.listing.dataset.metaKey) { + data.meta_key = alm.listing.dataset.metaKey; + } + if (alm.listing.dataset.metaValue) { + data.meta_value = alm.listing.dataset.metaValue; + } + if (alm.listing.dataset.metaCompare) { + data.meta_compare = alm.listing.dataset.metaCompare; + } + if (alm.listing.dataset.metaRelation) { + data.meta_relation = alm.listing.dataset.metaRelation; + } + if (alm.listing.dataset.metaType) { + data.meta_type = alm.listing.dataset.metaType; + } + if (alm.listing.dataset.author) { + data.author = alm.listing.dataset.author; + } + if (alm.listing.dataset.year) { + data.year = alm.listing.dataset.year; + } + if (alm.listing.dataset.month) { + data.month = alm.listing.dataset.month; + } + if (alm.listing.dataset.day) { + data.day = alm.listing.dataset.day; + } + if (alm.listing.dataset.order) { + data.order = alm.listing.dataset.order; + } + if (alm.listing.dataset.orderby) { + data.orderby = alm.listing.dataset.orderby; + } + if (alm.listing.dataset.postStatus) { + data.post_status = alm.listing.dataset.postStatus; + } + if (alm.listing.dataset.postIn) { + data.post__in = alm.listing.dataset.postIn; + } + if (alm.listing.dataset.postNotIn) { + data.post__not_in = alm.listing.dataset.postNotIn; + } + if (alm.listing.dataset.exclude) { + data.exclude = alm.listing.dataset.exclude; + } + if (alm.listing.dataset.search) { + data.search = alm.listing.dataset.search; + } + if (alm.listing.dataset.s) { + data.search = alm.listing.dataset.s; + } + if (alm.listing.dataset.customArgs) { + data.custom_args = alm.listing.dataset.customArgs; + } + if (alm.listing.dataset.vars) { + data.vars = alm.listing.dataset.vars; + } + + // Cache Params + + if (addons.cache) { + data.cache_id = addons.cache_id; + data.cache_logged_in = addons.cache_logged_in; + data.cache_slug = getCacheSlug(alm, data); + } + return data; +} + +/** + * Build the query params for content types. + * + * @param {Object} alm The ALM object. + * @param {string} type The query type. + * @return {Object} The query params. + */ +function getTypeParams(alm, type) { + var addons = alm.addons, + extensions = alm.extensions; + switch (type) { + case 'acf': + return { + acf: 'true', + post_id: extensions.acf_post_id, + field_type: extensions.acf_field_type, + field_name: extensions.acf_field_name, + parent_field_name: extensions.acf_parent_field_name, + row_index: extensions.acf_row_index + }; + case 'comments': + return { + comments: 'true', + post_id: addons.comments_post_id, + per_page: addons.comments_per_page, + type: addons.comments_type, + style: addons.comments_style, + template: addons.comments_template, + callback: addons.comments_callback + }; + case 'cta': + return { + cta: 'true', + cta_position: addons.cta_position, + cta_repeater: addons.cta_repeater, + cta_theme_repeater: addons.cta_theme_repeater + }; + case 'nextpage': + return { + nextpage: 'true', + urls: addons.nextpage_urls, + scroll: addons.nextpage_scroll, + post_id: addons.nextpage_post_id, + startpage: addons.nextpage_startpage, + nested: alm.nested + }; + case 'single_post': + return { + single_post: 'true', + id: addons.single_post_id, + slug: addons.single_post_slug + }; + case 'term_query': + return { + term_query: 'true', + taxonomy: extensions.term_query_taxonomy, + hide_empty: extensions.term_query_hide_empty, + number: extensions.term_query_number + }; + case 'users': + return { + users: 'true', + role: alm.listing.dataset.usersRole, + include: alm.listing.dataset.usersInclude, + exclude: alm.listing.dataset.usersExclude, + per_page: alm.posts_per_page, + order: alm.listing.dataset.usersOrder, + orderby: alm.listing.dataset.usersOrderby + }; + } +} + +/** + * Build the REST API data object to send with REST API request. + * + * @param {Object} alm The ALM object. + * @return {Object} The data object. + * @since 3.6 + */ +function getRestAPIParams(alm) { + var data = { + id: alm.id, + post_id: parseInt(alm.post_id), + posts_per_page: alm.posts_per_page, + page: alm.page, + offset: alm.offset, + slug: alm.slug, + canonical_url: encodeURIComponent(alm.canonical_url), + post_type: alm.post_type, + post_format: alm.listing.dataset.postFormat, + category: alm.listing.dataset.category, + category__not_in: alm.listing.dataset.categoryNotIn, + tag: alm.listing.dataset.tag, + tag__not_in: alm.listing.dataset.tagNotIn, + taxonomy: alm.listing.dataset.taxonomy, + taxonomy_terms: alm.listing.dataset.taxonomyTerms, + taxonomy_operator: alm.listing.dataset.taxonomyOperator, + taxonomy_relation: alm.listing.dataset.taxonomyRelation, + meta_key: alm.listing.dataset.metaKey, + meta_value: alm.listing.dataset.metaValue, + meta_compare: alm.listing.dataset.metaCompare, + meta_relation: alm.listing.dataset.metaRelation, + meta_type: alm.listing.dataset.metaType, + author: alm.listing.dataset.author, + year: alm.listing.dataset.year, + month: alm.listing.dataset.month, + day: alm.listing.dataset.day, + post_status: alm.listing.dataset.postStatus, + order: alm.listing.dataset.order, + orderby: alm.listing.dataset.orderby, + post__in: alm.listing.dataset.postIn, + post__not_in: alm.listing.dataset.postNotIn, + search: alm.listing.dataset.search, + s: alm.listing.dataset.s, + custom_args: alm.listing.dataset.customArgs, + vars: alm.listing.dataset.vars, + lang: alm.lang, + preloaded: alm.addons.preloaded, + preloaded_amount: alm.addons.preloaded_amount, + seo_start_page: alm.start_page + }; + return data; +} +;// CONCATENATED MODULE: ./src/frontend/js/functions/windowResize.js +/** + * Trigger a window resize browser function. + * + * @since 5.3.1 + */ +function triggerWindowResize() { + if (typeof Event === 'function') { + // Modern browsers. + window.dispatchEvent(new Event('resize')); + } else { + // Executed on old browsers and especially IE. + var resizeEvent = window.document.createEvent('UIEvents'); + resizeEvent.initUIEvent('resize', true, false, window, 0); + window.dispatchEvent(resizeEvent); + } +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/almDebug.js +/** + * Display Ajax Load More debug results. + * + * @see https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug + * @param {Object} alm ALM object. + * @since 5.1.6 + */ +function almDebug(alm) { + if (alm && alm.debug) { + var obj = { + query: alm.debug, + localize: alm.localize + }; + console.log('ALM Debug:', obj); // eslint-disable-line no-console + } +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/fade.js +/** + * Fade element in. + * + * @param {HTMLElement} element The HTML element to fade in. + * @param {number} speed The transition speed. + * @return {Promise} The Promise object. + */ +var almFadeIn = function almFadeIn(element, speed) { + return new Promise(function (resolve) { + if (speed === 0) { + element.style.opacity = 1; + element.style.height = 'auto'; + resolve(true); + } else { + speed = speed / 10; + var op = 0; // initial opacity + var timer = setInterval(function () { + if (op > 0.9) { + element.style.opacity = 1; + resolve(true); + clearInterval(timer); + } + element.style.opacity = op; + op += 0.1; + }, speed); + element.style.height = 'auto'; + } + }); +}; + +/** + * Fade element out. + * + * @param {HTMLElement} element The HTML element to fade out. + * @param {number} speed The transition speed. + * @return {Promise} The Promise object. + */ +var almFadeOut = function almFadeOut(element, speed) { + return new Promise(function (resolve) { + speed = speed / 10; + element.style.opacity = 0.5; + var fadeEffect = setInterval(function () { + if (element.style.opacity < 0.1) { + element.style.opacity = 0; + clearInterval(fadeEffect); + resolve(true); + } else { + element.style.opacity -= 0.1; + } + }, speed); + }); +}; +;// CONCATENATED MODULE: ./src/frontend/js/modules/tableofcontents.js + + + +/** + * Create a numbered table of contents navigation. + * + * @param {Object} alm The alm object. + * @param {boolean} init Init boolean. + * @param {boolean} from_preloaded Preloaded boolean. + * @since 5.2 + */ +function tableOfContents(alm) { + var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var from_preloaded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var totalPosts = alm.localize && alm.localize.post_count ? parseInt(alm.localize.post_count) : 0; + + // eslint-disable-next-line eqeqeq + if (totalPosts == 0 && !alm.addons.single_post) { + // Exit if zero posts and not single posts + return false; + } + if (alm && alm.tableofcontents && alm.transition !== 'masonry') { + var offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30; + var startPage = alm.start_page ? parseInt(alm.start_page) : 0; + var filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0; + var nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0; + var page = parseInt(alm.page); + var preloaded = alm.addons.preloaded ? true : false; + + // Exit if Paging or Next Page + if (alm.addons.paging || alm.addons.nextpage) { + return false; + } + + // Init. + if (init) { + setTimeout(function () { + // Paged results + if (alm.addons.seo && startPage > 1 || alm.addons.filters && filterStartPage > 1 || alm.addons.nextpage && nextpageStartPage > 1) { + // SEO + if (alm.addons.seo && startPage > 1) { + for (var i = 0; i < startPage; i++) { + createTOCButton(alm, i, offset); + } + } + // Filters + if (alm.addons.filters && filterStartPage > 1) { + for (var _i = 0; _i < filterStartPage; _i++) { + createTOCButton(alm, _i, offset); + } + } + // Nextpage + if (alm.addons.nextpage && nextpageStartPage > 1) { + for (var _i2 = 0; _i2 < nextpageStartPage; _i2++) { + createTOCButton(alm, _i2, offset); + } + } + } else { + if (!from_preloaded && preloaded) { + page = page + 1; + } + createTOCButton(alm, page, offset); + } + }, 100); + } else { + // Preloaded + if (preloaded) { + if (alm.addons.seo && startPage > 0) { + page = page; + } else if (alm.addons.filters && filterStartPage > 0) { + page = page; + } else { + page = page + 1; + } + } + createTOCButton(alm, page, offset); + } + } +} + +/** + * Clear table of contents. + */ +function clearTOC() { + var toc = document.querySelector('.alm-toc'); + if (toc) { + toc.innerHTML = ''; + } +} + +/** + * Create Standard Page Button. + * + * @param {Object} alm The alm object. + * @param {string} page Current page. + * @param {number} offset The page offset. + */ +function createTOCButton(alm, page, offset) { + if (!alm.tableofcontents) { + return false; + } + page = parseInt(page); + var posts_per_page = parseInt(alm.posts_per_page); + + // Create button. + var button = document.createElement('button'); + button.type = 'button'; + button.innerHTML = getTOCLabel(alm, page + 1); + button.dataset.page = alm.addons.single_post_target && alm.init ? page - 1 : page + 1; + button.dataset.target = (page + 1) * posts_per_page - posts_per_page + 1; + + // Add button to TOC. + alm.tableofcontents.appendChild(button); + + // Click event listener. + button.addEventListener('click', function () { + var current = this.dataset.page; + var target = this.dataset.target; + + // Get all listing children. + var children = alm.listing.children; + + // Find element. + var element = children[target - 1]; + + // Next Page. + if (alm.addons.nextpage) { + element = document.querySelector(".alm-nextpage[data-page=\"".concat(current, "\"]")); + } + // Single Posts. + if (alm.addons.single_post_target) { + element = document.querySelector(".alm-single-post[data-page=\"".concat(current, "\"]")); + } + if (!element) { + return; // Exit if no target. + } + + var top = typeof getOffset === 'function' ? getOffset(element).top : element.offsetTop; + almScroll(top - offset); + setTimeout(function () { + setFocus(alm, element, target, false); + }, 500); + }); +} + +/** + * Get Button Label. + * + * @param {Object} alm The alm object. + * @param {string} page The current page. + * @return {string} The Label. + */ +function getTOCLabel(alm, page) { + var label = page; + + // Single Posts + if (alm.addons.single_post) { + var thePage = page - 1; + var element; + if (alm.addons.single_post_target) { + // Special functionality for Single Post with a loading target type + if (alm.init) { + thePage = thePage; + } else { + thePage = thePage + 1; + } + var posts = document.querySelectorAll(".alm-single-post"); + if (posts) { + element = posts[thePage]; + } + } else { + element = document.querySelector(".alm-single-post[data-page=".concat(page - 1, "]")); + } + label = element ? element.dataset.title : label; + } + + // Dynamic function name. + var funcName = "almTOCLabel_".concat(alm.id); + if (typeof window[funcName] === 'function') { + label = window[funcName](page, label); + } + return label; +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/filtering.js +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || filtering_unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function filtering_toConsumableArray(arr) { return filtering_arrayWithoutHoles(arr) || filtering_iterableToArray(arr) || filtering_unsupportedIterableToArray(arr) || filtering_nonIterableSpread(); } +function filtering_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function filtering_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return filtering_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return filtering_arrayLikeToArray(o, minLen); } +function filtering_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function filtering_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return filtering_arrayLikeToArray(arr); } +function filtering_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } + + + +/** + * Filter an Ajax Load More instance. + * + * @param {string} transition Transition type. + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @since 2.6.1 + */ +function almFilter(transition) { + var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 150; + var data = arguments.length > 2 ? arguments[2] : undefined; + var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'filter'; + if (data.target) { + // Target has been specified. + var alm = document.querySelectorAll('.ajax-load-more-wrap[data-id="' + data.target.toLowerCase() + '"]'); + if (alm) { + alm.forEach(function (element) { + almFilterTransition(transition, speed, data, type, element); + }); + } + } else { + // Target not specified. + var _alm = document.querySelectorAll('.ajax-load-more-wrap'); + if (_alm) { + _alm.forEach(function (element) { + almFilterTransition(transition, speed, data, type, element); + }); + } + } + clearTOC(); // Clear table of contents if required +} + +/** + * Transition Ajax Load More + * + * @param {string} transition Transition type. + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @param {Element} element Target element. + * @since 2.13.1 + */ +function almFilterTransition(transition, speed, data, type, element) { + if (transition === 'fade' || transition === 'masonry') { + // Fade, Masonry transition + + switch (type) { + case 'filter': + element.classList.add('alm-is-filtering'); + almFadeOut(element, speed); + break; + } + + // Move to next function + setTimeout(function () { + almCompleteFilterTransition(speed, data, type, element); + }, speed); + } else { + // No transition + element.classList.add('alm-is-filtering'); + almCompleteFilterTransition(speed, data, type, element); + } +} + +/** + * Complete the filter transition. + * + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @param {Element} element Target element. + * @since 3.3 + */ +function almCompleteFilterTransition(speed, data, type, element) { + var btnWrap = element.querySelector('.alm-btn-wrap'); // Get `.alm-btn-wrap` element + var listing = element.querySelectorAll('.alm-listing'); // Get `.alm-listing` element + + if (!listing || !btnWrap) { + // Exit if elements doesn't exist. + return false; + } + + // Loop over all .alm-listing divs and clear HTML. + filtering_toConsumableArray(listing).forEach(function (element) { + // Is this a paging instance. + var paging = element.querySelector('.alm-paging-content'); + if (paging) { + paging.innerHTML = ''; + } else { + element.innerHTML = ''; + } + }); + + // Get Load More button + var button = btnWrap.querySelector('.alm-load-more-btn'); + if (button) { + button.classList.remove('done'); // Reset Button + } + + // Clear paging navigation + var paging = btnWrap.querySelector('.alm-paging'); + if (paging) { + paging.style.opacity = 0; + } + + // Reset Preloaded Amount + data.preloadedAmount = 0; + + // Dispatch Filters + almSetFilters(speed, data, type, element); +} + +/** + * Set filter parameters on .alm-listing element. + * + * @param {number} speed Transition speed. + * @param {Object} data Data object. + * @param {string} type Type of filter. + * @param {Element} element Target element. + * @since 2.6.1 + */ +function almSetFilters(speed, data, type, element) { + // Get `alm-listing` container. + var listing = element.querySelector('.alm-listing') || element.querySelector('.alm-comments'); + if (!listing) { + return false; + } + switch (type) { + case 'filter': + // Update data attributes + for (var _i = 0, _Object$entries = Object.entries(data); _i < _Object$entries.length; _i++) { + var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), + key = _Object$entries$_i[0], + value = _Object$entries$_i[1]; + // Convert camelCase data atts back to dashes (-). + key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2').toLowerCase(); + listing.setAttribute('data-' + key, value); + } + // Fade ALM back (Filters only) + almFadeIn(element, speed); + break; + } + + // Re-initiate Ajax Load More. + var target = ''; + if (data.target) { + // Target has been specified + target = document.querySelector('.ajax-load-more-wrap[data-id="' + data.target + '"]'); + if (target) { + window.almInit(target); + } + } else { + // Target not specified + target = document.querySelector('.ajax-load-more-wrap'); + if (target) { + window.almInit(target); + } + } + switch (type) { + case 'filter': + // Filters Complete (not the add-on) + if (typeof almFilterComplete === 'function') { + // Standard Filtering + almFilterComplete(); + } + break; + } +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/masonry.js +function masonry_typeof(o) { "@babel/helpers - typeof"; return masonry_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, masonry_typeof(o); } +function masonry_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ masonry_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == masonry_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(masonry_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function masonry_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function masonry_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { masonry_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { masonry_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +var masonry_imagesLoaded = __webpack_require__(564); + +/** + * Function to trigger built-in Ajax Load More Masonry. + * + * @param {Object} alm ALM object. + * @param {boolean} init Initial run true or false. + * @param {boolean} filtering Is this a filtering event. + * @since 3.1 + */ +function almMasonry(alm, init, filtering) { + if (!alm.masonry) { + console.warn('Ajax Load More: Unable to locate Masonry settings.'); + } + var container = alm.listing, + last_loaded = alm.last_loaded, + speed = alm.speed; + return new Promise(function (resolve) { + var _alm$masonry; + var selector = alm.masonry.selector; + var animation = alm.masonry.animation; + var horizontalOrder = (alm === null || alm === void 0 || (_alm$masonry = alm.masonry) === null || _alm$masonry === void 0 ? void 0 : _alm$masonry.horizontalorder) === 'true' ? true : false; + var masonry_init = alm.masonry.init; + var columnWidth = alm.masonry.columnwidth; + var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay + var hidden = 'scale(0.5)'; + var visible = 'scale(1)'; + if (animation === 'zoom-out') { + hidden = 'translateY(-20px) scale(1.25)'; + visible = 'translateY(0) scale(1)'; + } + if (animation === 'slide-up') { + hidden = 'translateY(50px)'; + visible = 'translateY(0)'; + } + if (animation === 'slide-down') { + hidden = 'translateY(-50px)'; + visible = 'translateY(0)'; + } + if (animation === 'none') { + hidden = 'translateY(0)'; + visible = 'translateY(0)'; + } + + // columnWidth + if (columnWidth) { + if (!isNaN(columnWidth)) { + columnWidth = parseInt(columnWidth); // Check if number. + } + } else { + columnWidth = selector; // No columnWidth, use the selector + } + + if (!filtering) { + // First Run. + if (masonry_init && init) { + masonry_imagesLoaded(container, function () { + var _window; + var defaults = { + itemSelector: selector, + transitionDuration: duration, + columnWidth: columnWidth, + // eslint-disable-line + horizontalOrder: horizontalOrder, + // eslint-disable-line + hiddenStyle: { + transform: hidden, + opacity: 0 + }, + visibleStyle: { + transform: visible, + opacity: 1 + } + }; + + // Get custom Masonry options (https://masonry.desandro.com/options.html). + var alm_masonry_vars = (_window = window) === null || _window === void 0 ? void 0 : _window.alm_masonry_vars; + if (alm_masonry_vars) { + Object.keys(alm_masonry_vars).forEach(function (key) { + // Loop object to create key:prop + defaults[key] = alm_masonry_vars[key]; + }); + } + + // Init Masonry, delay to allow time for items to be added to the page. + setTimeout( /*#__PURE__*/masonry_asyncToGenerator( /*#__PURE__*/masonry_regeneratorRuntime().mark(function _callee() { + return masonry_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + alm.msnry = new Masonry(container, defaults); + _context.next = 3; + return almFadeIn(container.parentNode, 175); + case 3: + resolve(true); + case 4: + case "end": + return _context.stop(); + } + }, _callee); + })), 25); + }); + } else { + // Standard / Append content. + // eslint-disable-next-line no-lonely-if + if (last_loaded) { + // ImagesLoaded & appended. + masonry_imagesLoaded(container, function () { + setTimeout( /*#__PURE__*/masonry_asyncToGenerator( /*#__PURE__*/masonry_regeneratorRuntime().mark(function _callee2() { + return masonry_regeneratorRuntime().wrap(function _callee2$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + alm.msnry.appended(last_loaded); + resolve(true); + case 2: + case "end": + return _context2.stop(); + } + }, _callee2); + })), 25); + }); + } + } + } else { + // Reset instance. + container.parentNode.style.opacity = 0; + almMasonry(alm, true, false); + resolve(true); + } + }); +} + +/** + * Set up initial Masonry Configuration. + * + * @param {Object} alm ALM Object. + * @return {Object} Configuration object. + */ +function almMasonryConfig(alm) { + alm.masonry = {}; + alm.masonry.init = true; + if (alm.msnry) { + // destroy masonry if it currently exists. + alm.msnry.destroy(); + } else { + alm.msnry = ''; + } + var masonry_config = JSON.parse(alm.listing.dataset.masonryConfig); + if (masonry_config) { + alm.masonry.selector = masonry_config.selector; + alm.masonry.columnwidth = masonry_config.columnwidth; + alm.masonry.animation = masonry_config.animation === '' ? 'standard' : masonry_config.animation; + alm.masonry.horizontalorder = masonry_config.horizontalorder === '' ? 'true' : masonry_config.horizontalorder; + alm.images_loaded = true; + alm.transition_delay = 0; + } else { + console.warn('Ajax Load More: Unable to locate Masonry configuration settings.'); + } + return alm; +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/placeholder.js +function placeholder_typeof(o) { "@babel/helpers - typeof"; return placeholder_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, placeholder_typeof(o); } +function placeholder_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ placeholder_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == placeholder_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(placeholder_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function placeholder_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function placeholder_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { placeholder_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { placeholder_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + + +/** + * Show placeholder div. + * + * @param {string} type The direction. + * @param {Object} alm The ALM object. + */ +function placeholder() { + return _placeholder.apply(this, arguments); +} +function _placeholder() { + _placeholder = placeholder_asyncToGenerator( /*#__PURE__*/placeholder_regeneratorRuntime().mark(function _callee() { + var type, + alm, + placeholder, + addons, + rel, + _args = arguments; + return placeholder_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'show'; + alm = _args.length > 1 ? _args[1] : undefined; + placeholder = alm.placeholder, addons = alm.addons, rel = alm.rel; + if (!(!placeholder || addons.paging || rel === 'prev')) { + _context.next = 5; + break; + } + return _context.abrupt("return", false); + case 5: + _context.t0 = type; + _context.next = _context.t0 === 'hide' ? 8 : 12; + break; + case 8: + _context.next = 10; + return almFadeOut(placeholder, 175); + case 10: + setTimeout(function () { + placeholder.style.display = 'none'; + }, 75); + return _context.abrupt("break", 15); + case 12: + placeholder.style.display = 'block'; + almFadeIn(placeholder, 175); + return _context.abrupt("break", 15); + case 15: + case "end": + return _context.stop(); + } + }, _callee); + })); + return _placeholder.apply(this, arguments); +} +;// CONCATENATED MODULE: ./src/frontend/js/modules/resultsText.js + + +/** + * Set the results text if required. + * + * @param {Object} alm ALM object. + * @param {string} type Type of results. + * @since 5.1 + */ +function almResultsText(alm) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard'; + if (!alm.resultsText || alm.nested === 'true') { + return false; + } + var resultsType = type === 'nextpage' || type === 'woocommerce' ? type : 'standard'; + almGetResultsText(alm, resultsType); +} + +/** + * Get values for showing results text. + * + * @param {Object} alm ALM object. + * @param {string} type Type of results. + * @since 4.1 + */ +function almGetResultsText(alm) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard'; + if (!alm.resultsText || !alm.localize || alm.nested === 'true') { + return false; + } + var page = 0; + var pages = 0; + var post_count = 0; + var total_posts = 0; + var posts_per_page = alm.orginal_posts_per_page; + switch (type) { + // Nextpage + case 'nextpage': + page = parseInt(alm.localize.page); + post_count = page; + pages = parseInt(alm.localize.total_posts); + total_posts = parseInt(pages); + almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page); + break; + + // WooCommerce + case 'woocommerce': + // Don't do anything + break; + default: + page = getTotals('page', alm.id); + pages = getTotals('pages', alm.id); + post_count = getTotals('post_count', alm.id); + total_posts = getTotals('total_posts', alm.id); + almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page); + } +} + +/** + * Display `Showing {x} of {y} pages` text. + * + * @param {Object} alm ALM object. + * @param {string} type Type of results. + * @since 4.1 + */ +function almInitResultsText(alm) { + var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard'; + if (!alm.resultsText || !alm.localize || alm.nested === 'true') { + return false; + } + var page = 0; + var pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page); + var post_count = parseInt(alm.localize.post_count); + var total_posts = parseInt(alm.localize.total_posts); + switch (type) { + case 'nextpage': + // Nextpage + page = alm.addons.nextpage_startpage; + post_count = page; + pages = total_posts; + almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts, alm.posts_per_page); + break; + case 'preloaded': + // Preloaded + page = alm.addons.paging && alm.addons.seo ? alm.start_page + 1 : parseInt(alm.page) + 1; + almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, alm.posts_per_page); + break; + case 'woocommerce': + // WooCommerce + // Don't do anything + break; + } +} + +/** + * Render `Showing {x} of {y} results` text. + * + * @param {Element} el The results text HTML element. + * @param {string} page The current page number. + * @param {string} pages The total pages. + * @param {string} post_count Total posts displayed. + * @param {string} total_posts Total amount of posts in query. + * @param {string} per_page Total amount of posts per page. + * @since 4.1 + */ +var almRenderResultsText = function almRenderResultsText(el, page, pages, post_count, total_posts, per_page) { + el.forEach(function (result) { + pages = parseInt(pages); + var text = pages > 0 ? alm_localize.results_text : alm_localize.no_results_text; + + // Paging add-on. + // Start and End values for posts in view. + var start = page * per_page - per_page + 1; + var end_val = page * per_page; + var end = end_val <= total_posts ? end_val : total_posts; + if (pages > 0) { + text = text.replace('{num}', "".concat(page, "")); // Deprecated + text = text.replace('{page}', "".concat(page, "")); + text = text.replace('{start}', "".concat(start, "")); + text = text.replace('{end}', "".concat(end, "")); + text = text.replace('{total}', "".concat(pages, "")); // Deprecated + text = text.replace('{pages}', "".concat(pages, "")); + text = text.replace('{post_count}', "".concat(post_count, "")); + text = text.replace('{total_posts}', "".concat(total_posts, "")); + result.innerHTML = text; + } else { + result.innerHTML = text; + } + }); +}; +;// CONCATENATED MODULE: ./src/frontend/js/modules/setLocalizedVars.js + + +/** + * Set localized variables + * + * @param {Object} alm ALM object + * @since 4.1 + */ +function setLocalizedVars(alm) { + var addons = alm.addons; + return new Promise(function (resolve) { + var type = 'standard'; + if (addons.nextpage) { + // Nextpage + type = 'nextpage'; + if (addons.paging) { + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1); + } else { + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(addons.nextpage_startpage) + 1); + } + } else if (addons.woocommerce) { + // WooCommerce + type = 'woocommerce'; + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1); + } else { + // Standard ALM. + var page = parseInt(alm.page) + 1 + (addons.preloaded && !addons.paging ? 1 : 0); // Add 1 page for preloaded. + alm.AjaxLoadMore.setLocalizedVar('page', parseInt(page)); + var pages = Math.ceil(alm.totalposts / alm.orginal_posts_per_page); + alm.AjaxLoadMore.setLocalizedVar('pages', parseInt(pages)); + } + + // Total Posts `total_posts`. + // Only update if !preloaded && !nextpage && !woocommerce + if (addons.preloaded !== 'true' && !addons.nextpage && !addons.woocommerce) { + alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts); + } + + // Viewing count. + alm.AjaxLoadMore.setLocalizedVar('post_count', getPostCount(alm)); + + // Set Results Text (if required). + almResultsText(alm, type); + resolve(true); + }); +} + +/** + * Get total post_count. + * + * @param {Object} alm ALM object. + * @return {number} Total post count. + */ +function getPostCount(alm) { + var postcount = alm.postcount, + addons = alm.addons, + start_page = alm.start_page; + var preloaded_amount = addons.preloaded_amount; + + // Construct post count. + var count = parseInt(postcount) + parseInt(preloaded_amount); + count = start_page > 1 ? count - parseInt(preloaded_amount) : count; // SEO + count = addons.filters_startpage > 1 ? count - parseInt(preloaded_amount) : count; // Filters + count = addons.single_post ? count + 1 : count; // Single Posts + count = addons.nextpage ? count + 1 : count; // Next Page + + return count; +} +;// CONCATENATED MODULE: ./src/frontend/js/ajax-load-more.js +function ajax_load_more_typeof(o) { "@babel/helpers - typeof"; return ajax_load_more_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ajax_load_more_typeof(o); } +function ajax_load_more_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ ajax_load_more_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == ajax_load_more_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(ajax_load_more_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function ajax_load_more_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function ajax_load_more_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { ajax_load_more_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { ajax_load_more_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } +function ajax_load_more_toConsumableArray(arr) { return ajax_load_more_arrayWithoutHoles(arr) || ajax_load_more_iterableToArray(arr) || ajax_load_more_unsupportedIterableToArray(arr) || ajax_load_more_nonIterableSpread(); } +function ajax_load_more_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function ajax_load_more_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return ajax_load_more_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ajax_load_more_arrayLikeToArray(o, minLen); } +function ajax_load_more_iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } +function ajax_load_more_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return ajax_load_more_arrayLikeToArray(arr); } +function ajax_load_more_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +// ALM Modules + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +// External packages. +var qs = __webpack_require__(129); +var ajax_load_more_imagesLoaded = __webpack_require__(564); + +// Axios Config. +lib_axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +// Axios Interceptor for nested data objects +lib_axios.interceptors.request.use(function (config) { + config.paramsSerializer = function (params) { + // Qs is already included in the Axios package + return qs.stringify(params, { + arrayFormat: 'brackets', + encode: false + }); + }; + return config; +}); + +// Focus Polyfill. +__webpack_require__(334); + +// Global filtering state. +var alm_is_filtering = false; + +// Start ALM +(function () { + 'use strict'; + + /** + * Initiate Ajax Load More. + * + * @param {Element} el The Ajax Load More DOM element/container. + * @param {number} index The current index number of the Ajax Load More instance. + */ + var ajaxloadmore = function ajaxloadmore(el, index) { + var _alm_localize, _el$dataset, _alm, _alm2, _alm3, _alm4, _alm5, _alm6, _alm_localize2, _alm7, _alm8, _alm9, _alm10, _alm11, _alm12, _alm13, _alm14, _alm15, _alm16, _alm_localize3, _alm17, _alm18, _alm19, _alm20, _alm21, _alm22; + // Move user to top of page to prevent loading of unnessasry posts + if (((_alm_localize = alm_localize) === null || _alm_localize === void 0 ? void 0 : _alm_localize.scrolltop) === 'true') { + window.scrollTo(0, 0); + } + + // Set ALM Variables + var alm = this; + alm.AjaxLoadMore = {}; + alm.addons = {}; + alm.extensions = {}; + alm.integration = {}; + alm.window = window; + alm.page = 0; + alm.postcount = 0; + alm.totalposts = 0; + alm.proceed = false; + alm.disable_ajax = false; + alm.init = true; + alm.loading = true; + alm.finished = false; + alm.timer = null; + alm.rel = 'next'; + alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent + alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor + + el.classList.add('alm-' + index); // Add unique classname. + el.setAttribute('data-alm-id', index); // Add unique data id. + + // The defined or generated ID for the ALM instance. + alm.master_id = el.dataset.id ? "ajax_load_more_".concat(el.dataset.id) : el.id; + alm.master_id = alm.master_id.replace(/-/g, '_'); + + // Localized variables. + alm.localized_var = "".concat(alm.master_id, "_vars"); + alm.localize = window[alm.localized_var]; + if (!alm.localize) { + window[alm.localized_var] = {}; // Create empty object if not defined. + alm.localize = window[alm.localized_var]; + } + + // Add ALM object to the global window scope. + window[alm.master_id] = alm; // e.g. window.ajax_load_more or window.ajax_load_more_{id} + + // ALM Element Containers + alm.main = el; // Top level DOM element + alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments'); + alm.content = alm.listing; + alm.ajax = el.querySelector('.alm-ajax'); + alm.container_type = alm.listing.dataset.containerType; + alm.loading_style = alm.listing.dataset.loadingStyle; + + // Instance Params + alm.canonical_url = el.dataset.canonicalUrl; + alm.nested = el.dataset.nested ? el.dataset.nested : false; + alm.is_search = (el === null || el === void 0 || (_el$dataset = el.dataset) === null || _el$dataset === void 0 ? void 0 : _el$dataset.search) === 'true' ? 'true' : false; + alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url. + alm.slug = el.dataset.slug; + alm.post_id = parseInt(el.dataset.postId); + alm.id = el.dataset.id ? el.dataset.id : ''; + + // Shortcode Params + + alm.repeater = ((_alm = alm) === null || _alm === void 0 || (_alm = _alm.listing) === null || _alm === void 0 || (_alm = _alm.dataset) === null || _alm === void 0 ? void 0 : _alm.repeater) || 'default'; + alm.theme_repeater = ((_alm2 = alm) === null || _alm2 === void 0 || (_alm2 = _alm2.listing) === null || _alm2 === void 0 || (_alm2 = _alm2.dataset) === null || _alm2 === void 0 ? void 0 : _alm2.themeRepeater) || false; + alm.post_type = ((_alm3 = alm) === null || _alm3 === void 0 || (_alm3 = _alm3.listing) === null || _alm3 === void 0 || (_alm3 = _alm3.dataset) === null || _alm3 === void 0 ? void 0 : _alm3.postType) || 'post'; + alm.sticky_posts = ((_alm4 = alm) === null || _alm4 === void 0 || (_alm4 = _alm4.listing) === null || _alm4 === void 0 || (_alm4 = _alm4.dataset) === null || _alm4 === void 0 ? void 0 : _alm4.stickyPosts) || false; + alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs + alm.btnWrap = ajax_load_more_toConsumableArray(alm.btnWrap); // Convert NodeList to array + alm.btnWrap[alm.btnWrap.length - 1].style.visibility = 'visible'; // Get last element (used for nesting) + alm.trigger = alm.btnWrap[alm.btnWrap.length - 1]; + alm.button = ((_alm5 = alm) === null || _alm5 === void 0 || (_alm5 = _alm5.trigger) === null || _alm5 === void 0 ? void 0 : _alm5.querySelector('button.alm-load-more-btn')) || null; + alm.button_labels = { + "default": ((_alm6 = alm) === null || _alm6 === void 0 || (_alm6 = _alm6.listing) === null || _alm6 === void 0 || (_alm6 = _alm6.dataset) === null || _alm6 === void 0 ? void 0 : _alm6.buttonLabel) || ((_alm_localize2 = alm_localize) === null || _alm_localize2 === void 0 ? void 0 : _alm_localize2.button_label), + loading: ((_alm7 = alm) === null || _alm7 === void 0 || (_alm7 = _alm7.listing) === null || _alm7 === void 0 || (_alm7 = _alm7.dataset) === null || _alm7 === void 0 ? void 0 : _alm7.buttonLoadingLabel) || null, + done: ((_alm8 = alm) === null || _alm8 === void 0 || (_alm8 = _alm8.listing) === null || _alm8 === void 0 || (_alm8 = _alm8.dataset) === null || _alm8 === void 0 ? void 0 : _alm8.buttonDoneLabel) || null + }; + alm.placeholder = alm.main.querySelector('.alm-placeholder') || false; + alm.scroll_distance = ((_alm9 = alm) === null || _alm9 === void 0 || (_alm9 = _alm9.listing) === null || _alm9 === void 0 ? void 0 : _alm9.dataset.scrollDistance) || 100; + alm.scroll_container = ((_alm10 = alm) === null || _alm10 === void 0 || (_alm10 = _alm10.listing) === null || _alm10 === void 0 ? void 0 : _alm10.dataset.scrollContainer) || null; + alm.scroll_direction = ((_alm11 = alm) === null || _alm11 === void 0 || (_alm11 = _alm11.listing) === null || _alm11 === void 0 || (_alm11 = _alm11.dataset) === null || _alm11 === void 0 ? void 0 : _alm11.scrollDirection) || 'vertical'; + alm.max_pages = (_alm12 = alm) !== null && _alm12 !== void 0 && (_alm12 = _alm12.listing) !== null && _alm12 !== void 0 && (_alm12 = _alm12.dataset) !== null && _alm12 !== void 0 && _alm12.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0; + alm.pause_override = ((_alm13 = alm) === null || _alm13 === void 0 || (_alm13 = _alm13.listing) === null || _alm13 === void 0 || (_alm13 = _alm13.dataset) === null || _alm13 === void 0 ? void 0 : _alm13.pauseOverride) || false; // true | false + alm.pause = ((_alm14 = alm) === null || _alm14 === void 0 || (_alm14 = _alm14.listing) === null || _alm14 === void 0 || (_alm14 = _alm14.dataset) === null || _alm14 === void 0 ? void 0 : _alm14.pause) || false; // true | false + alm.transition = ((_alm15 = alm) === null || _alm15 === void 0 || (_alm15 = _alm15.listing) === null || _alm15 === void 0 || (_alm15 = _alm15.dataset) === null || _alm15 === void 0 ? void 0 : _alm15.transition) || 'fade'; // Transition + alm.transition_delay = ((_alm16 = alm) === null || _alm16 === void 0 || (_alm16 = _alm16.listing) === null || _alm16 === void 0 || (_alm16 = _alm16.dataset) === null || _alm16 === void 0 ? void 0 : _alm16.transitionDelay) || 0; + alm.speed = (_alm_localize3 = alm_localize) !== null && _alm_localize3 !== void 0 && _alm_localize3.speed ? parseInt(alm_localize.speed) : 250; + alm.images_loaded = ((_alm17 = alm) === null || _alm17 === void 0 || (_alm17 = _alm17.listing) === null || _alm17 === void 0 || (_alm17 = _alm17.dataset) === null || _alm17 === void 0 ? void 0 : _alm17.imagesLoaded) === 'true'; + alm.destroy_after = (_alm18 = alm) !== null && _alm18 !== void 0 && (_alm18 = _alm18.listing) !== null && _alm18 !== void 0 && (_alm18 = _alm18.dataset) !== null && _alm18 !== void 0 && _alm18.destroyAfter ? parseInt(alm.listing.dataset.destroyAfter) : false; + alm.lazy_images = ((_alm19 = alm) === null || _alm19 === void 0 || (_alm19 = _alm19.listing.dataset) === null || _alm19 === void 0 ? void 0 : _alm19.lazyImages) === 'true' ? true : false; + alm.integration.woocommerce = ((_alm20 = alm) === null || _alm20 === void 0 || (_alm20 = _alm20.listing) === null || _alm20 === void 0 || (_alm20 = _alm20.dataset) === null || _alm20 === void 0 ? void 0 : _alm20.woocommerce) === 'true' ? true : false; + alm.scroll = ((_alm21 = alm) === null || _alm21 === void 0 || (_alm21 = _alm21.listing) === null || _alm21 === void 0 || (_alm21 = _alm21.dataset) === null || _alm21 === void 0 ? void 0 : _alm21.scroll) === 'false' ? false : true; + alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on + alm.posts_per_page = parseInt(alm.listing.dataset.postsPerPage); + alm.offset = (_alm22 = alm) !== null && _alm22 !== void 0 && (_alm22 = _alm22.listing) !== null && _alm22 !== void 0 && (_alm22 = _alm22.dataset) !== null && _alm22 !== void 0 && _alm22.offset ? parseInt(alm.listing.dataset.offset) : 0; + alm.paged = false; + + // Add-on Shortcode Params + + alm = queryLoopCreateParams(alm); // Query Loop add-on + alm = elementorCreateParams(alm); // Elementor add-on + alm = wooCreateParams(alm); // WooCommerce add-on + alm = cacheCreateParams(alm); // Cache add-on + alm = ctaCreateParams(alm); // CTA add-on + alm = nextpageCreateParams(alm); // Nextpage add-on + alm = singlepostsCreateParams(alm); // Single Posts add-on + alm = commentsCreateParams(alm); // Comments add-on + alm = preloadedCreateParams(alm); // Preloaded add-on. + alm = pagingCreateParams(alm); // Paging add-on. + alm = filtersCreateParams(alm); // Filters add-on. + alm = seoCreateParams(alm); // SEO add-on. + + // Extension Shortcode Params + + // Users + alm.extensions.users = alm.listing.dataset.users === 'true'; + if (alm.extensions.users) { + // Override paging params for users + alm.orginal_posts_per_page = parseInt(alm.listing.dataset.usersPerPage); + alm.posts_per_page = parseInt(alm.listing.dataset.usersPerPage); + } + + // REST API. + alm.extensions.restapi = alm.listing.dataset.restapi === 'true'; + if (alm.extensions.restapi) { + alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl; + alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace; + alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint; + alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId; + alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug; + if (alm.extensions.restapi_template_id === '') { + alm.extensions.restapi = false; + } + } + + // ACF. + alm.extensions.acf = alm.listing.dataset.acf === 'true' ? true : false; + if (alm.extensions.acf) { + alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType; + alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName; + alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName; + alm.extensions.acf_row_index = alm.listing.dataset.acfRowIndex; + alm.extensions.acf_post_id = alm.listing.dataset.acfPostId; + // if field type, name or post ID is empty. + if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) { + alm.extensions.acf = false; + } + } + + // Term Query. + alm.extensions.term_query = alm.listing.dataset.termQuery === 'true'; + if (alm.extensions.term_query) { + alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy; + alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty; + alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber; + } + + /* Pause */ + if (alm.pause === undefined || alm.addons.seo && alm.start_page > 1) { + // SEO only. + alm.pause = false; + } + if (alm.addons.preloaded && alm.addons.seo && alm.start_page > 0) { + // SEO + Preloaded. + alm.pause = false; + } + if (alm.addons.filters && alm.addons.filters_startpage > 0) { + // Filters. + alm.pause = false; + } + if (alm.addons.preloaded && alm.addons.paging) { + alm.pause = true; + } + + /* Max Pages */ + alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 9999 : alm.max_pages; + + /* Scroll Distance */ + alm.scroll_distance = alm.scroll_distance === undefined ? 100 : alm.scroll_distance; + alm.scroll_distance_perc = false; + if (alm.scroll_distance.toString().indexOf('%') === -1) { + // Standard scroll_distance + alm.scroll_distance = parseInt(alm.scroll_distance); + } else { + // Percentage scroll_distance + alm.scroll_distance_perc = true; + alm.scroll_distance_orig = parseInt(alm.scroll_distance); + alm.scroll_distance = getScrollPercentage(alm); + } + + /* Masonry */ + if (alm.transition === 'masonry') { + alm = almMasonryConfig(alm); + } + + /* Paging */ + if (alm.addons.paging) { + // Add loading class to main container. + alm.main.classList.add('alm-loading'); + } else { + var almChildren = el.childNodes; // Get child nodes of instance [nodeList] + if (almChildren) { + var almChildArray = ajax_load_more_toConsumableArray(almChildren); // Convert nodeList to array + + // Filter array to find the `.alm-btn-wrap` div + var btnWrap = almChildArray.filter(function (element) { + if (!element.classList) { + // If not element (#text node) + return false; + } + return element.classList.contains('alm-btn-wrap'); + }); + alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn'); + } else { + alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn'); + } + + // Reset button state + alm.button.disabled = false; + alm.button.style.display = ''; + } + + /** + * No Results. + * Set template for showing no results HTML. + */ + var alm_no_results = el.querySelector('.alm-no-results'); + alm.no_results = alm_no_results ? alm_no_results.innerHTML : ''; + + /** + * Results Text. + * Render "Showing x of y results" text. + */ + if (alm.integration.woocommerce) { + var _alm23; + // If woocommerce, get the default woocommerce results block + alm.resultsText = document.querySelectorAll('.woocommerce-result-count'); + if (((_alm23 = alm) === null || _alm23 === void 0 || (_alm23 = _alm23.resultsText) === null || _alm23 === void 0 ? void 0 : _alm23.length) < 1) { + alm.resultsText = document.querySelectorAll('.alm-results-text'); + } + } else { + alm.resultsText = document.querySelectorAll('.alm-results-text'); + } + if (alm.resultsText) { + alm.resultsText.forEach(function (results) { + results.setAttribute('aria-live', 'polite'); + results.setAttribute('aria-atomic', 'true'); + }); + } else { + alm.resultsText = false; + } + + // Table of Contents: Render 1, 2, 3 etc. when pages are loaded + alm.tableofcontents = document.querySelector('.alm-toc') || false; + if (alm.tableofcontents) { + alm.tableofcontents.setAttribute('aria-live', 'polite'); + alm.tableofcontents.setAttribute('aria-atomic', 'true'); + } + + /** + * The function to get posts via Ajax/HTTP request. + * + * @since 2.0.0 + */ + alm.AjaxLoadMore.loadPosts = function () { + if (alm.disable_ajax) { + return; + } + if (typeof almOnChange === 'function') { + window.almOnChange(alm); + } + + // Set loading attributes. + alm.loading = true; + alm.main.classList.add('alm-loading'); + placeholder('show', alm); + + // Add loading styles to buttons. + if (!alm.addons.paging) { + if (alm.rel === 'prev') { + alm.buttonPrev.classList.add('loading'); + } else { + alm.button.classList.add('loading'); + if (alm.button_labels.loading) { + alm.button.innerHTML = alm.button_labels.loading; + } + } + } + + // Dispatch Ajax request. + alm.AjaxLoadMore.ajax(); + }; + + /** + * The core Ajax Load More Ajax function. + * + * @param {string} type The type of Ajax request [standard|totalposts|totalpages]. + * @since 2.6.0 + */ + alm.AjaxLoadMore.ajax = /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee() { + var type, + _alm24, + params, + cache, + _args = arguments; + return ajax_load_more_regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'standard'; + if (!alm.extensions.restapi) { + _context.next = 5; + break; + } + alm.AjaxLoadMore.restapi(alm); + _context.next = 14; + break; + case 5: + // Standard ALM. + params = getAjaxParams(alm, type); // Cache. + if (!((_alm24 = alm) !== null && _alm24 !== void 0 && (_alm24 = _alm24.addons) !== null && _alm24 !== void 0 && _alm24.cache && !['totalposts', 'totalpages'].includes(type))) { + _context.next = 13; + break; + } + _context.next = 9; + return getCache(alm, Object.assign({}, params)); + case 9: + cache = _context.sent; + if (cache) { + alm.AjaxLoadMore.render(cache); + } else { + alm.AjaxLoadMore.adminajax(params, type); + } + _context.next = 14; + break; + case 13: + alm.AjaxLoadMore.adminajax(params, type); + case 14: + case "end": + return _context.stop(); + } + }, _callee); + })); + + /** + * Send request to the admin-ajax.php + * + * @param {Object} params Query params. + * @param {string} type The type of Ajax request [standard|totalposts|totalpages]. + * @since 5.0.0 + */ + alm.AjaxLoadMore.adminajax = /*#__PURE__*/function () { + var _ref2 = ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee2(params, type) { + var _alm_localize4, ajaxurl, _params, _params$cache_slug, cache_slug, data; + return ajax_load_more_regeneratorRuntime().wrap(function _callee2$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + _alm_localize4 = alm_localize, ajaxurl = _alm_localize4.ajaxurl; // Get Ajax URL + _params = params, _params$cache_slug = _params.cache_slug, cache_slug = _params$cache_slug === void 0 ? '' : _params$cache_slug; // Deconstruct query params. + /** + * Single Posts. + * If `single_post_target`, adjust the Ajax URL to the post URL. + */ + if (alm.addons.single_post && alm.addons.single_post_target) { + ajaxurl = "".concat(alm.addons.single_post_permalink, "?id=").concat(alm.addons.single_post_id, "&alm_page=").concat(parseInt(alm.page) + 1); + params = ''; + } + + // Query Loop || WooCommerce || Elementor. + if (alm.addons.queryloop || alm.addons.woocommerce || alm.addons.elementor && alm.addons.elementor_type === 'posts') { + ajaxurl = getButtonURL(alm, alm.rel); + params = ''; + } + + // Send HTTP request via axios. + _context2.next = 6; + return lib_axios.get(ajaxurl, { + params: params + }).then(function (response) { + if (alm.addons.single_post && alm.addons.single_post_target) { + // Single Posts + return singlepostsHTML(alm, response, cache_slug); + } else if (alm.addons.woocommerce) { + // WooCommerce. + return wooGetContent(alm, ajaxurl, response, cache_slug); + } else if (alm.addons.elementor) { + // Elementor + return elementorGetContent(alm, ajaxurl, response, cache_slug); + } else if (alm.addons.queryloop) { + // Query Loop + return queryLoopGetContent(alm, ajaxurl, response, cache_slug); + } + + // Standard ALM - Get data from response. + return response.data; + })["catch"](function (error) { + // Error + alm.AjaxLoadMore.error(error, 'adminajax'); + }); + case 6: + data = _context2.sent; + _context2.t0 = type; + _context2.next = _context2.t0 === 'standard' ? 10 : _context2.t0 === 'totalposts' ? 12 : _context2.t0 === 'totalpages' ? 12 : 14; + break; + case 10: + alm.AjaxLoadMore.render(data); + return _context2.abrupt("break", 14); + case 12: + if (alm.addons.paging && alm.addons.nextpage && typeof almBuildPagination === 'function') { + window.almBuildPagination(data.totalpages, alm); + alm.totalpages = data.totalpages; + } else { + if (alm.addons.paging && typeof almBuildPagination === 'function') { + window.almBuildPagination(data.totalposts, alm); + } + } + return _context2.abrupt("break", 14); + case 14: + case "end": + return _context2.stop(); + } + }, _callee2); + })); + return function (_x, _x2) { + return _ref2.apply(this, arguments); + }; + }(); + + /** + * Send request to the WP REST API + * + * @param {Object} alm The Ajax Load More object. + * @since 5.0.0 + */ + alm.AjaxLoadMore.restapi = function (alm) { + var _alm_localize5 = alm_localize, + rest_api_url = _alm_localize5.rest_api_url; // Get Rest API URL + var _alm$extensions = alm.extensions, + restapi_base_url = _alm$extensions.restapi_base_url, + restapi_namespace = _alm$extensions.restapi_namespace, + restapi_endpoint = _alm$extensions.restapi_endpoint, + restapi_template_id = _alm$extensions.restapi_template_id; + var alm_rest_template = wp.template(restapi_template_id); + var alm_rest_url = "".concat(rest_api_url).concat(restapi_base_url, "/").concat(restapi_namespace, "/").concat(restapi_endpoint); + var params = getRestAPIParams(alm); + lib_axios.get(alm_rest_url, { + params: params + }).then(function (response) { + // Success + var results = response.data; // Get data from response + var _results$html = results.html, + items = _results$html === void 0 ? null : _results$html, + _results$meta = results.meta, + meta = _results$meta === void 0 ? null : _results$meta; + var postcount = meta && meta.postcount ? meta.postcount : 0; + var totalposts = meta && meta.totalposts ? meta.totalposts : 0; + + // loop results to get data from each. + var data = ''; + for (var i = 0; i < items.length; i++) { + var result = items[i]; + data += alm_rest_template(result); + } + + // Rest API debug. + if (alm.extensions.restapi_debug === 'true') { + console.log('ALM RestAPI Debug:', items); // eslint-disable-line no-console + } + + // Create results object. + var obj = { + html: data, + meta: { + postcount: postcount, + totalposts: totalposts + } + }; + alm.AjaxLoadMore.render(obj); + })["catch"](function (error) { + // Error + alm.AjaxLoadMore.error(error, 'restapi'); + }); + }; + + /** + * Display/render results function. + * + * @param {Object} data The results of the Ajax request. + * @since 2.6.0 + */ + alm.AjaxLoadMore.render = /*#__PURE__*/function () { + var _ref3 = ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee8(data) { + var _alm29; + var html, meta, total, totalposts, nodes, temp, paging_container, currentPage; + return ajax_load_more_regeneratorRuntime().wrap(function _callee8$(_context8) { + while (1) switch (_context8.prev = _context8.next) { + case 0: + if (alm.addons.single_post) { + alm.AjaxLoadMore.getSinglePost(); // Fetch single post data for next post. + } + + // Parse incoming data. + html = data.html, meta = data.meta; + total = meta ? parseInt(meta.postcount) : parseInt(alm.posts_per_page); // Get current post counts. + totalposts = typeof meta !== 'undefined' ? meta.totalposts : alm.posts_per_page * 5; + alm.totalposts = totalposts; + alm.postcount = alm.addons.paging ? total : alm.postcount + total; + + // Set alm.html as plain text return. + alm.html = alm.container_type === 'table' ? html : html; + if (!meta) { + // Display warning if `meta` is missing from response. + console.warn('Ajax Load More: Unable to access `meta` object in Ajax response. There may be an issue in your Repeater Template or another theme/plugin hook causing interference with the Ajax request.'); + } + + // ALM Init: First run only. + if (alm.init) { + if (meta) { + alm.main.dataset.totalPosts = meta.totalposts ? meta.totalposts : 0; + } + + // No Results / ALM Empty. + if (total === 0) { + if (alm.addons.paging && typeof almPagingEmpty === 'function') { + window.almPagingEmpty(alm); + } + if (typeof almEmpty === 'function') { + window.almEmpty(alm); + } + if (alm.no_results) { + noResults(alm.content, alm.no_results); + } + } + + // Paging Add-on. + if (alm.addons.paging) { + // Dispatch call to build pagination. + if (typeof almBuildPagination === 'function') { + window.almBuildPagination(totalposts, alm, false); + } + if (total > 0) { + // Reset container opacity. + alm.addons.paging_container.style.opacity = 0; + + // Start paging functionaity. + alm.AjaxLoadMore.pagingInit(); + } + } + + // SEO Offset. + if (alm.addons.seo && alm.addons.seo_offset && !alm.addons.paging) { + createSEOOffset(alm); + } + + /** + * SEO & Filters add-on. + * Handle isPaged results. + */ + if (alm.paged) { + // Reset the posts_per_page value. + if (alm.addons.seo || alm.addons.filters || alm.extensions.users) { + // Reset posts per page value. + alm.posts_per_page = alm.orginal_posts_per_page; + } + + // SEO add-on. + if (alm.addons.seo) { + alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page number. + } + + // Filters add-on. + if (alm.addons.filters && alm.addons.filters_startpage > 0) { + alm.page = alm.addons.filters_startpage - 1; // Set new page number. + } + } + // Filters onLoad + if (typeof almFiltersOnload === 'function') { + window.almFiltersOnload(alm); + } + } + // End ALM Init. + + /** + * Set Filter Facets. + */ + if (alm.addons.filters && alm.facets && data.facets && typeof almFiltersFacets === 'function') { + window.almFiltersFacets(data.facets); + } + + /** + * Display alm_debug results. + */ + almDebug(alm); + + /** + * Set localized variables and Results Text. + */ + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee3() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee3$(_context3) { + while (1) switch (_context3.prev = _context3.next) { + case 0: + _context3.next = 2; + return setLocalizedVars(alm); + case 2: + case "end": + return _context3.stop(); + } + }, _callee3); + }))(); + + // Get all returned data as an array of DOM nodes. + nodes = alm.container_type === 'table' ? tableParser(alm.html) : domParser(alm.html); + alm.last_loaded = nodes; + + // Render results. + if (!(total > 0)) { + _context8.next = 52; + break; + } + if (!(alm.addons.woocommerce || alm.addons.elementor || alm.addons.queryloop)) { + _context8.next = 21; + break; + } + temp = document.createElement('div'); + temp.innerHTML = html; + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee4() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee4$(_context4) { + while (1) switch (_context4.prev = _context4.next) { + case 0: + if (!alm.addons.woocommerce) { + _context4.next = 4; + break; + } + _context4.next = 3; + return woocommerce(temp, alm); + case 3: + woocommerceLoaded(alm); + case 4: + if (!alm.addons.elementor) { + _context4.next = 8; + break; + } + _context4.next = 7; + return elementor(temp, alm); + case 7: + elementorLoaded(alm); + case 8: + if (!alm.addons.queryloop) { + _context4.next = 12; + break; + } + _context4.next = 11; + return queryloop(temp, alm); + case 11: + queryloopLoaded(alm); + case 12: + case "end": + return _context4.stop(); + } + }, _callee4); + }))()["catch"](function (e) { + if (alm.addons.woocommerce) { + console.warn('Ajax Load More: There was an error loading WooCommerce products.', e); + } + if (alm.addons.elementor) { + console.warn('Ajax Load More: There was an error loading Clementor items.', e); + } + if (alm.addons.queryloop) { + console.warn('Ajax Load More: There was an error loading Query Loop items.', e); + } + }); + alm.init = false; + return _context8.abrupt("return"); + case 21: + if (alm.addons.paging) { + _context8.next = 36; + break; + } + /** + * Infinite Scroll Results. + */ + nodes = formatHTML(alm, nodes); + _context8.t0 = alm.transition; + _context8.next = _context8.t0 === 'masonry' ? 26 : 30; + break; + case 26: + _context8.next = 28; + return displayResults(alm, nodes); + case 28: + // Wrap almMasonry in anonymous async/await function + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee5() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee5$(_context5) { + while (1) switch (_context5.prev = _context5.next) { + case 0: + _context5.next = 2; + return almMasonry(alm, alm.init, alm_is_filtering); + case 2: + alm.masonry.init = false; + triggerWindowResize(); + + // Callback: ALM Complete + if (typeof almComplete === 'function') { + window.almComplete(alm); + } + case 5: + case "end": + return _context5.stop(); + } + }, _callee5); + }))()["catch"](function () { + console.error('There was an error with ALM Masonry'); //eslint-disable-line no-console + }); + return _context8.abrupt("break", 33); + case 30: + _context8.next = 32; + return displayResults(alm, nodes); + case 32: + return _context8.abrupt("break", 33); + case 33: + // Infinite Scroll -> Images Loaded: Run complete callbacks and checks. + ajax_load_more_imagesLoaded(alm.listing, function () { + alm.AjaxLoadMore.nested(); // Nested ALM. + + if (alm_is_filtering && alm.addons.filters) { + if (typeof almFiltersAddonComplete === 'function') { + window.almFiltersAddonComplete(el); // Callback: Filters Add-on Complete + } + } + + if (typeof almComplete === 'function' && alm.transition !== 'masonry') { + window.almComplete(alm); // Callback: ALM Complete + } + + // Trigger tags in templates. + modules_insertScript.init(alm.last_loaded); + + // ALM Done. + if (!alm.addons.single_post) { + if (alm.addons.nextpage) { + var _alm25, _alm26; + // Nextpage. + if (((_alm25 = alm) === null || _alm25 === void 0 || (_alm25 = _alm25.localize) === null || _alm25 === void 0 ? void 0 : _alm25.post_count) + (alm.addons.nextpage_startpage - 1) >= ((_alm26 = alm) === null || _alm26 === void 0 || (_alm26 = _alm26.localize) === null || _alm26 === void 0 ? void 0 : _alm26.total_posts)) { + alm.AjaxLoadMore.triggerDone(); + } + } else { + var _alm27, _alm28; + if (((_alm27 = alm) === null || _alm27 === void 0 || (_alm27 = _alm27.localize) === null || _alm27 === void 0 ? void 0 : _alm27.post_count) >= ((_alm28 = alm) === null || _alm28 === void 0 || (_alm28 = _alm28.localize) === null || _alm28 === void 0 ? void 0 : _alm28.total_posts)) { + alm.AjaxLoadMore.triggerDone(); + } + } + } + alm_is_filtering = false; + }); + /** + * End: Infinite Scroll Results. + */ + _context8.next = 50; + break; + case 36: + /** + * Paging. + */ + paging_container = alm.addons.paging_container; + if (!alm.init) { + _context8.next = 44; + break; + } + if (!paging_container) { + _context8.next = 42; + break; + } + _context8.next = 41; + return displayPagingResults(alm, nodes); + case 41: + // Inject content. + + // Paging -> Images Loaded: Run complete callbacks and checks. + ajax_load_more_imagesLoaded(paging_container, /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee6() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee6$(_context6) { + while (1) switch (_context6.prev = _context6.next) { + case 0: + pagingComplete(alm, alm_is_filtering, true); + alm_is_filtering = false; + case 2: + case "end": + return _context6.stop(); + } + }, _callee6); + }))); + case 42: + _context8.next = 50; + break; + case 44: + if (!paging_container) { + _context8.next = 50; + break; + } + _context8.next = 47; + return almFadeOut(paging_container, 250); + case 47: + _context8.next = 49; + return displayPagingResults(alm, nodes); + case 49: + // Inject content. + + // Paging -> Images Loaded: Run complete callbacks and checks. + ajax_load_more_imagesLoaded(paging_container, /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee7() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee7$(_context7) { + while (1) switch (_context7.prev = _context7.next) { + case 0: + _context7.next = 2; + return almFadeIn(paging_container, 250); + case 2: + paging_container.style.opacity = ''; + pagingComplete(alm, alm_is_filtering); + alm_is_filtering = false; + case 5: + case "end": + return _context7.stop(); + } + }, _callee7); + }))); + case 50: + _context8.next = 54; + break; + case 52: + /** + * No results from Ajax. + */ + alm.AjaxLoadMore.noresults(); + alm.AjaxLoadMore.transitionEnd(); + case 54: + /** + * Destroy After + */ + if (alm.destroy_after) { + currentPage = alm.page + 1; // Add 1 because alm.page starts at 0 + currentPage = alm.addons.preloaded ? currentPage++ : currentPage; // Add 1 for preloaded + if (parseInt(currentPage) === parseInt(alm.destroy_after)) { + alm.AjaxLoadMore.destroyed(); // Disable ALM if page = alm.destroy_after value. + } + } + + /** + * Display Table of Contents + */ + tableOfContents(alm, alm.init); + + /** + * Set Focus for accessibility. + */ + if ((_alm29 = alm) !== null && _alm29 !== void 0 && (_alm29 = _alm29.last_loaded) !== null && _alm29 !== void 0 && _alm29.length) { + setFocus(alm, alm.last_loaded[0], total, alm_is_filtering); + } + alm.main.classList.remove('alm-is-filtering'); // Remove filtering class. + + if (alm.init) { + alm.main.classList.add('alm-is-loaded'); // Add loaded class to main container. + } + + alm.init = false; // Set init flag. + case 60: + case "end": + return _context8.stop(); + } + }, _callee8); + })); + return function (_x3) { + return _ref3.apply(this, arguments); + }; + }(); + + /** + * Function runs when no results are returned. + * + * @since 5.3.1 + */ + alm.AjaxLoadMore.noresults = function () { + if (!alm.addons.paging) { + var _alm30, _alm31; + // Add .done class, reset btn text + (_alm30 = alm) === null || _alm30 === void 0 || (_alm30 = _alm30.button) === null || _alm30 === void 0 || (_alm30 = _alm30.classList) === null || _alm30 === void 0 || _alm30.remove('loading'); + (_alm31 = alm) === null || _alm31 === void 0 || (_alm31 = _alm31.button) === null || _alm31 === void 0 || (_alm31 = _alm31.classList) === null || _alm31 === void 0 || _alm31.add('done'); + alm.AjaxLoadMore.resetBtnText(); + } + + // Callback: ALM Complete + if (typeof almComplete === 'function' && alm.transition !== 'masonry') { + window.almComplete(alm); + } + + // Filters Add-on Complete + if (alm_is_filtering && alm.addons.filters) { + if (typeof almFiltersAddonComplete === 'function') { + window.almFiltersAddonComplete(el); + } + alm_is_filtering = false; + } + + // Masonry, clear `alm-listing` height. + if (alm.transition === 'masonry') { + alm.content.style.height = 'auto'; + } + + // ALM Done + alm.AjaxLoadMore.triggerDone(); + }; + + /** + * Init Paging + Preloaded add-ons. + * + * @param {string} html Results of Ajax request. + * @since 2.11.3 + */ + alm.AjaxLoadMore.pagingPreloadedInit = function () { + var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + alm.AjaxLoadMore.pagingInit(); // Set up paging functionality. + + if (!html) { + if (typeof almPagingEmpty === 'function') { + window.almPagingEmpty(alm); + } + if (typeof almEmpty === 'function') { + window.almEmpty(alm); + } + if (alm.no_results) { + noResults(alm.content, alm.no_results); + } + } + }; + + /** + * Init Paging + Next Page add-ons. + * + * @since 2.14.0 + */ + alm.AjaxLoadMore.pagingNextpageInit = function () { + alm.AjaxLoadMore.pagingInit(); // Set up paging functionality. + + if (typeof almSetNextPageVars === 'function') { + window.almSetNextPageVars(alm); // Set up Nextpage Vars. + } + }; + + /** + * Paging add-on first to create required containers. + * + * @since 5.0 + */ + alm.AjaxLoadMore.pagingInit = function () { + var paging_container = alm.addons.paging_container; // Get content container. + + if (paging_container) { + almFadeIn(paging_container, 150); // Fade in paging container. + + // Delay reveal of paging content. + setTimeout(function () { + alm.main.classList.remove('alm-loading'); // Remove `alm-loading` class + }, 150); + + // Delay initial pagination display to avoid positioning issues. + setTimeout(function () { + paging_container.style.removeProperty('opacity'); // Remove initial opacity prop. + + if (typeof almFadePageControls === 'function') { + window.almFadePageControls(alm.btnWrap); // Fade in paging controls. + } + + if (typeof almPagingSetHeight === 'function') { + window.almPagingSetHeight(paging_container); // Fade in container height. + } + }, 275); + } + }; + + /** + * Automatically trigger nested ALM instances. + * + * @since 5.0 + */ + alm.AjaxLoadMore.nested = function () { + var nested = alm.listing.querySelectorAll('.ajax-load-more-wrap:not(.alm-is-loaded)'); // Get all new instances + if (nested) { + ajax_load_more_toConsumableArray(nested).forEach(function (element) { + window.almInit(element); + }); + } + }; + + /** + * Get the Single Posts post ID via ajax. + * + * @since 2.7.4 + */ + alm.AjaxLoadMore.getSinglePost = /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee9() { + var params, singlePostData; + return ajax_load_more_regeneratorRuntime().wrap(function _callee9$(_context9) { + while (1) switch (_context9.prev = _context9.next) { + case 0: + if (!alm.fetchingPreviousPost) { + _context9.next = 2; + break; + } + return _context9.abrupt("return"); + case 2: + alm.fetchingPreviousPost = true; // Set loading flag. + + // Create data params. + params = { + action: 'alm_get_single', + id: alm.addons.single_post_id, + initial_id: alm.addons.single_post_init_id, + order: alm.addons.single_post_order, + taxonomy: alm.addons.single_post_taxonomy, + excluded_terms: alm.addons.single_post_excluded_terms, + post_type: alm.post_type, + init: alm.addons.single_post_init + }; // Send HTTP request via Axios. + _context9.next = 6; + return lib_axios.get(alm_localize.ajaxurl, { + params: params + }).then(function (response) { + // Get data from response. + var data = response.data; + if (data.has_previous_post) { + alm.listing.dataset.singlePostId = data.prev_id; // Update single-post-id on instance + alm.addons.single_post_id = data.prev_id; + alm.addons.single_post_permalink = data.prev_permalink; + alm.addons.single_post_title = data.prev_title; + alm.addons.single_post_slug = data.prev_slug; + alm.addons.single_post_cache = data.cache; + } else { + alm.addons.single_post_cache = false; + if (!data.has_previous_post) { + alm.AjaxLoadMore.triggerDone(); + } + } + if (typeof window.almSetSinglePost === 'function') { + window.almSetSinglePost(alm, data.current_id, data.permalink, data.title); + } + alm.fetchingPreviousPost = false; + alm.addons.single_post_init = false; + return data; + })["catch"](function (error) { + // Error + alm.AjaxLoadMore.error(error, 'getSinglePost'); + alm.fetchingPreviousPost = false; + }); + case 6: + singlePostData = _context9.sent; + return _context9.abrupt("return", singlePostData); + case 8: + case "end": + return _context9.stop(); + } + }, _callee9); + })); + if (alm.addons.single_post_id) { + alm.fetchingPreviousPost = false; + alm.addons.single_post_init = true; + } + + /** + * Triggers various add-on functions after load complete. + * + * @param {Object} alm The ALM object. + * @since 2.14.0 + */ + alm.AjaxLoadMore.triggerAddons = function (alm) { + if (typeof almSetNextPage === 'function' && alm.addons.nextpage) { + window.almSetNextPage(alm); + } + if (typeof almSEO === 'function' && alm.addons.seo) { + window.almSEO(alm, false); + } + if (typeof almWooCommerce === 'function' && alm.addons.woocommerce) { + window.almWooCommerce(alm); + } + if (typeof almElementor === 'function' && alm.addons.elementor) { + window.almElementor(alm); + } + }; + + /** + * Fires a set of actions and functions when ALM has no other posts to load. + * + * @since 2.11.3 + */ + alm.AjaxLoadMore.triggerDone = function () { + alm.loading = false; + alm.finished = true; + placeholder('hide', alm); + if (!alm.addons.paging) { + if (alm.button_labels.done) { + setTimeout(function () { + alm.button.innerHTML = alm.button_labels.done; + }, 75); + } + alm.button.classList.add('done'); + alm.button.removeAttribute('rel'); + alm.button.disabled = true; + } + + // almDone + if (typeof almDone === 'function') { + // Delay done until animations complete + setTimeout(function () { + window.almDone(alm); + }, alm.speed + 10); + } + }; + + /** + * Fires a set of actions once ALm Previous hits the first page. + * + * @since 5.5.0 + */ + alm.AjaxLoadMore.triggerDonePrev = function () { + alm.loading = false; + placeholder('hide', alm); + if (!alm.addons.paging) { + alm.buttonPrev.classList.add('done'); + alm.buttonPrev.style.opacity = '0.5'; + alm.buttonPrev.disabled = true; + } + + // almDonePrev Callback. + if (typeof almDonePrev === 'function') { + // Delay done until animations complete + setTimeout(function () { + window.almDonePrev(alm); + }, alm.speed + 10); + } + }; + + /** + * Resets the loading button text after loading has completed. + * + * @since 2.8.4 + */ + alm.AjaxLoadMore.resetBtnText = function () { + if (alm.button && alm.button_labels.loading) { + alm.button.innerHTML = alm.button_labels["default"]; + } + }; + + /** + * Button click handler to load posts. + * + * @param {Object} e The target button element. + * @since 4.2.0 + */ + alm.AjaxLoadMore.click = function (e) { + var button = e.currentTarget || e.target; + alm.rel = 'next'; + if (alm.pause === 'true') { + alm.pause = false; + alm.pause_override = false; + alm.AjaxLoadMore.loadPosts(); + } + if (!alm.loading && !alm.finished && !button.classList.contains('done')) { + alm.loading = true; + alm.page++; + alm.AjaxLoadMore.loadPosts(); + } + button.blur(); // Remove button focus + }; + + /** + * Button click handler for previous load more. + * + * @param {Object} e The target button element. + * @since 5.5.0 + */ + alm.AjaxLoadMore.prevClick = function (e) { + var button = e.currentTarget || e.target; + e.preventDefault(); + if (!alm.loading && !button.classList.contains('done')) { + alm.loading = true; + alm.pagePrev--; + alm.rel = 'prev'; + alm.AjaxLoadMore.loadPosts(); + button.blur(); // Remove button focus + } + }; + + /** + * Set the Load Previous button to alm object. + * + * @param {Element} button The button element. + * @since 5.5.0 + */ + alm.AjaxLoadMore.setPreviousButton = function (button) { + alm.pagePrev = alm.page; + alm.buttonPrev = button; + }; + + /** + * Load More button click event handler. + * + * @since 1.0.0 + */ + if (!alm.addons.paging && !alm.fetchingPreviousPost) { + alm.button.onclick = alm.AjaxLoadMore.click; + } + + /** + * Window resize functions for Paging, Scroll Distance Percentage etc. + * + * @since 2.1.2 + */ + if (alm.addons.paging || alm.scroll_distance_perc || alm.scroll_direction === 'horizontal') { + var resize; + alm.window.onresize = function () { + clearTimeout(resize); + resize = setTimeout(function () { + if (alm.addons.paging) { + // Paging + if (typeof almOnWindowResize === 'function') { + window.almOnWindowResize(alm); + } + } + if (alm.scroll_distance_perc) { + alm.scroll_distance = getScrollPercentage(alm); + } + if (alm.scroll_direction === 'horizontal') { + alm.AjaxLoadMore.horizontal(); + } + }, alm.speed); + }; + } + + /** + * Check to see if element is visible before loading posts. + * + * @since 2.1.2 + */ + alm.AjaxLoadMore.isVisible = function () { + // Check for a width and height to determine visibility + alm.visible = alm.main.clientWidth > 0 && alm.main.clientHeight > 0 ? true : false; + return alm.visible; + }; + + /** + * Load posts as user scrolls the page. + * + * @since 1.0 + */ + alm.AjaxLoadMore.scroll = function () { + if (alm.timer) { + clearTimeout(alm.timer); + } + alm.timer = setTimeout(function () { + if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) { + var trigger = alm.trigger.getBoundingClientRect(); + var btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance; + var scrollTrigger = btnPos <= 0 ? true : false; + + // Scroll Container + if (alm.window !== window) { + var scrollHeight = alm.main.offsetHeight; // ALM height + var scrollWidth = alm.main.offsetWidth; // ALM Width + var scrollPosition = ''; + if (alm.scroll_direction === 'horizontal') { + // Left/Right + alm.AjaxLoadMore.horizontal(); + scrollPosition = Math.round(alm.window.scrollLeft + alm.window.offsetWidth - alm.scroll_distance); // How far user has scrolled + scrollTrigger = scrollWidth <= scrollPosition ? true : false; + } else { + // Up/Down + scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled + scrollTrigger = scrollHeight <= scrollPosition ? true : false; + } + } + + // If Pause && Pause Override + if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') { + alm.button.click(); + } + + // Standard Scroll + else { + if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') { + alm.button.click(); + } + } + } + }, 25); + }; + + /** + * Add scroll eventlisteners, only when needed. + * + * @since 5.2.0 + */ + alm.AjaxLoadMore.scrollSetup = function () { + if (alm.scroll && !alm.addons.paging) { + if (alm.scroll_container) { + // Scroll Container + alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window; + setTimeout(function () { + // Delay to allow for ALM container to resize on load. + alm.AjaxLoadMore.horizontal(); + }, 500); + } + alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll + alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices + alm.window.addEventListener('wheel', function (e) { + // Mousewheel + var direction = Math.sign(e.deltaY); + if (direction > 0) { + alm.AjaxLoadMore.scroll(); + } + }); + alm.window.addEventListener('keyup', function (e) { + var key = e.key; + switch (key) { + case 'End': + case 'PageDown': + alm.AjaxLoadMore.scroll(); + break; + } + }); + } + }; + + /** + * Configure horizontal scroll settings. + * + * @since 5.3.6 + */ + alm.AjaxLoadMore.horizontal = function () { + if (alm.scroll_direction === 'horizontal') { + alm.main.style.width = "".concat(alm.listing.offsetWidth, "px"); + } + }; + + /** + * Destroy Ajax Load More functionality. + * + * @since 3.4.2 + */ + alm.AjaxLoadMore.destroyed = function () { + alm.disable_ajax = true; + if (!alm.addons.paging) { + alm.button.style.display = 'none'; + alm.AjaxLoadMore.triggerDone(); + if (typeof almDestroyed === 'function') { + window.almDestroyed(alm); + } + } + }; + + /** + * Set variables after loading transition completes. + * + * @since 3.5 + */ + alm.AjaxLoadMore.transitionEnd = function () { + setTimeout(function () { + alm.AjaxLoadMore.resetBtnText(); + alm.main.classList.remove('alm-loading'); + + // Loading buttons. + if (alm.rel === 'prev') { + var _alm32; + (_alm32 = alm) === null || _alm32 === void 0 || (_alm32 = _alm32.buttonPrev) === null || _alm32 === void 0 || (_alm32 = _alm32.classList) === null || _alm32 === void 0 || _alm32.remove('loading'); + } else { + var _alm33; + (_alm33 = alm) === null || _alm33 === void 0 || (_alm33 = _alm33.button) === null || _alm33 === void 0 || (_alm33 = _alm33.classList) === null || _alm33 === void 0 || _alm33.remove('loading'); + } + alm.AjaxLoadMore.triggerAddons(alm); + if (!alm.addons.paging) { + setTimeout(function () { + alm.loading = false; // Delay to prevent loading to fast + }, alm.speed * 2); + } + }, 25); + + // Hide loading placeholder. + placeholder('hide', alm); + }; + + /** + * Set individual localized variable. + * + * @param {string} name + * @param {string} value + * @since 4.1 + */ + alm.AjaxLoadMore.setLocalizedVar = function () { + var _alm34; + var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + if ((_alm34 = alm) !== null && _alm34 !== void 0 && _alm34.localize && name !== '' && value !== '') { + alm.localize[name] = value; // Set ALM localize var. + window[alm.localized_var][name] = value; // Update vars. + } + }; + + /** + * Init Ajax load More functionality and add-ons. + * + * @since 2.0 + */ + alm.AjaxLoadMore.init = /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee12() { + var nextpage_pages, _alm35, nextpage_first, nextpage_total; + return ajax_load_more_regeneratorRuntime().wrap(function _callee12$(_context12) { + while (1) switch (_context12.prev = _context12.next) { + case 0: + // Preloaded and Destroy After is 1. + if (alm.addons.preloaded && alm.destroy_after === 1) { + alm.AjaxLoadMore.destroyed(); + } + + // Paging Add-on. + if (alm.addons.paging) { + if (alm.addons.preloaded) { + // Preloaded. + alm.AjaxLoadMore.ajax('totalposts'); + } else if (alm.addons.nextpage) { + // Next Page. + alm.AjaxLoadMore.ajax('totalpages'); + } else { + // Standard. + alm.AjaxLoadMore.loadPosts(); + } + } + + // Not Paging & not Single Post. + if (!alm.addons.paging && !alm.addons.single_post) { + if (alm.disable_ajax) { + alm.finished = true; + alm.button.classList.add('done'); + } else { + // Set button label. + alm.button.innerHTML = alm.button_labels["default"]; + + // Check pause. + if (alm.pause === 'true') { + alm.loading = false; + } else { + alm.AjaxLoadMore.loadPosts(); + } + } + } + + // Single Post Add-on. + if (alm.addons.single_post) { + // Add delay for setup and scripts to load. + setTimeout( /*#__PURE__*/ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee10() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee10$(_context10) { + while (1) switch (_context10.prev = _context10.next) { + case 0: + _context10.next = 2; + return alm.AjaxLoadMore.getSinglePost(); + case 2: + // Set next post on load + + // Trigger done if custom query and no posts to render + if (alm.addons.single_post_query && alm.addons.single_post_order === '') { + alm.AjaxLoadMore.triggerDone(); + } + alm.loading = false; + tableOfContents(alm, true, true); + case 5: + case "end": + return _context10.stop(); + } + }, _callee10); + })), 250); + } + + // Query Loop Add-on. + if (alm.addons.queryloop && alm.addons.queryloop_settings) { + queryLoopInit(alm); + } + + // Preloaded + SEO && !Paging. + if (alm.addons.preloaded && alm.addons.seo && !alm.addons.paging) { + // Add delay for setup and scripts to load. + setTimeout(function () { + if (typeof almSEO === 'function' && alm.start_page < 1) { + window.almSEO(alm, true); + } + }, 200); + } + + // Preloaded && !Paging. + if (alm.addons.preloaded && !alm.addons.paging) { + // Add delay for setup and scripts to load. + setTimeout(function () { + if (alm.addons.preloaded_total_posts <= alm.addons.preloaded_amount) { + alm.AjaxLoadMore.triggerDone(); + } + // almEmpty callback. + if (alm.addons.preloaded_total_posts === 0) { + if (typeof almEmpty === 'function') { + window.almEmpty(alm); + } + if (alm.no_results) { + noResults(alm.content, alm.no_results); + } + } + }, alm.speed); + } + + // Preloaded Add-on ONLY. + if (alm.addons.preloaded) { + if (alm.resultsText) { + almInitResultsText(alm, 'preloaded'); + } + tableOfContents(alm, alm.init, true); + } + + // Next Page Add-on. + if (alm.addons.nextpage) { + // Check that posts remain on load + if (alm.listing.querySelector('.alm-nextpage') && !alm.addons.paging) { + nextpage_pages = alm.listing.querySelectorAll('.alm-nextpage'); // All Next Page Items. + if (nextpage_pages) { + nextpage_first = nextpage_pages[0]; + nextpage_total = nextpage_first.dataset.totalPosts ? parseInt(nextpage_first.dataset.totalPosts) : (_alm35 = alm) === null || _alm35 === void 0 || (_alm35 = _alm35.localize) === null || _alm35 === void 0 ? void 0 : _alm35.total_posts; // Disable if last page loaded + if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.page) === nextpage_total) { + alm.AjaxLoadMore.triggerDone(); + } + } + } + if (alm.resultsText) { + almInitResultsText(alm, 'nextpage'); + } + tableOfContents(alm, alm.init, true); + } + + // WooCommerce Add-on. + if (alm.addons.woocommerce) { + wooInit(alm); + if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) { + alm.AjaxLoadMore.triggerDone(); // Done if `paged is less than `pages`. + } + } + + // Elementor Add-on. + if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') { + elementorInit(alm); + if (!alm.addons.elementor_next_page) { + alm.AjaxLoadMore.triggerDone(); // Done if `elementor_next_page` is false. + } + } + + // Window Load. + alm.window.addEventListener('load', function () { + // Masonry & Preloaded. + if (alm.transition === 'masonry' && alm.addons.preloaded) { + // Wrap almMasonry in anonymous async/await function + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee11() { + return ajax_load_more_regeneratorRuntime().wrap(function _callee11$(_context11) { + while (1) switch (_context11.prev = _context11.next) { + case 0: + _context11.next = 2; + return almMasonry(alm, true, false); + case 2: + alm.masonry.init = false; + case 3: + case "end": + return _context11.stop(); + } + }, _callee11); + }))()["catch"](function () { + console.error('There was an error with ALM Masonry'); + }); + } + + // Filters, Facets & Preloaded Facets + if (alm.addons.preloaded && alm.addons.filters && alm.facets) { + if (typeof almFiltersFacets === 'function') { + var _alm36; + var facets = (_alm36 = alm) === null || _alm36 === void 0 || (_alm36 = _alm36.localize) === null || _alm36 === void 0 ? void 0 : _alm36.facets; + if (facets) { + window.almFiltersFacets(facets); + } + } + } + + // Window Load Callback. + if (typeof almOnLoad === 'function') { + window.almOnLoad(alm); // eslint-disable-line + } + }); + + setPreloadedParams(alm); // Set preloaded params. + case 13: + case "end": + return _context12.stop(); + } + }, _callee12); + })); + + /** + * Handle error messages. + * + * @param {string} error The error message. + * @param {string} location The location the error occured. + * @since 2.6.0 + */ + alm.AjaxLoadMore.error = function (error) { + var location = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + alm.loading = false; + if (!alm.addons.paging) { + alm.button.classList.remove('loading'); + alm.AjaxLoadMore.resetBtnText(); + } + console.warn('Error: ', error); + if (error.response) { + // The request was made and the server responded with a status code that falls out of the range of 2xx. + console.error('Error Msg: ', error.message); + } else if (error.request) { + // The request was made but no response was received. + console.error(error.request); + } else { + // Something happened in setting up the request that triggered an Error. + console.error('Error Msg: ', error.message); + } + if (location) { + console.error('ALM Error started in ' + location); + } + if (error.config) { + console.error('ALM Error Debug: ', error.config); + } + }; + + /** + * Update Current Page. + * Note: Callback function triggered from Paging add-on. + * + * @param {number} current Current page number. + * @param {Object} obj Optional object (Deprecated). + * @param {Object} alm The ALM object. + * @since 2.7.0 + */ + window.almUpdateCurrentPage = function (current, obj, alm) { + // eslint-disable-line + alm.page = current; + alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on + + var target = alm.listing; + var data = target === null || target === void 0 ? void 0 : target.innerHTML; // Get content + + if (alm.addons.paging_init && alm.addons.preloaded) { + // Paging + Preloaded Firstrun. + alm.addons.preloaded_amount = 0; // Reset preloaded_amount param. + alm.AjaxLoadMore.pagingPreloadedInit(data); + alm.addons.paging_init = false; + alm.init = false; + } else if (alm.addons.paging_init && alm.addons.nextpage) { + // Paging + Next Page on firstrun. + alm.AjaxLoadMore.pagingNextpageInit(); + alm.addons.paging_init = false; + alm.init = false; + } else { + // Standard Paging + alm.AjaxLoadMore.loadPosts(); + } + }; + + /** + * Get the parent ALM container. + * + * @return {HTMLElement} The ALM listing container. + * @since 2.7.0 + */ + window.almGetParentContainer = function () { + var _alm37; + return (_alm37 = alm) === null || _alm37 === void 0 ? void 0 : _alm37.listing; + }; + + /** + * Returns the current ALM obj. + * + * @param {string} obj The ALM object to return. + * @return {Object} The ALM object. + * @since 2.7.0 + */ + window.almGetObj = function () { + var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + if (obj) { + return alm[obj]; // Return specific param. + } + + return alm; // Return the entire alm object + }; + + /** + * Trigger ajaxloadmore from any element on page. + * + * @since 2.12.0 + */ + window.almTriggerClick = function () { + alm.button.click(); + }; + + // Delay to prevent immediate loading of posts on initial page load via scroll. + setTimeout(function () { + alm.proceed = true; + alm.AjaxLoadMore.scrollSetup(); + }, 1000); + + // Init Ajax Load More + alm.AjaxLoadMore.init(); + }; + + // End ajaxloadmore + + /** + * Initiate instance of Ajax load More + * + * @param {HTMLElement} el The ALM element. + * @param {number} id The ALM instance ID. + * @since 5.0 + */ + window.almInit = function (el) { + var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + new ajaxloadmore(el, id); + }; + + /** + * Initiate Ajax load More if div is present on screen + * + * @since 2.1.2 + */ + var alm_instances = document.querySelectorAll('.ajax-load-more-wrap'); + if (alm_instances.length) { + ajax_load_more_toConsumableArray(alm_instances).forEach(function (alm, index) { + new ajaxloadmore(alm, index); + }); + } +})(); + +/** + * Filter an Ajax Load More instance. + * + * @param {string} transition The transition type. + * @param {string} speed The speed of the filter transition. + * @param {Object} data Query data as an object. + * @since 5.0 + */ +var filter = function filter() { + var transition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fade'; + var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '200'; + var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; + if (!transition || !speed || !data) { + return false; + } + alm_is_filtering = true; + almFilter(transition, speed, data, 'filter'); +}; + +/** + * Reset an Ajax Load More instance. + * + * @since 5.3.8 + * @param {Object} props The ALM props as an object. + */ +var ajax_load_more_reset = function reset() { + var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var data = {}; + alm_is_filtering = true; + if (props && props.target) { + data = { + target: target + }; + } + if (props && props.type === 'woocommerce') { + // WooCommerce + ajax_load_more_asyncToGenerator( /*#__PURE__*/ajax_load_more_regeneratorRuntime().mark(function _callee13() { + var instance, settings; + return ajax_load_more_regeneratorRuntime().wrap(function _callee13$(_context13) { + while (1) switch (_context13.prev = _context13.next) { + case 0: + instance = document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'); // Get ALM instance + _context13.next = 3; + return wooReset(); + case 3: + settings = _context13.sent; + // Get WooCommerce `settings` via Ajax + if (settings) { + instance.dataset.wooSettings = settings; // Update data atts + almFilter('fade', '100', data, 'filter'); + } + case 5: + case "end": + return _context13.stop(); + } + }, _callee13); + }))()["catch"](function () { + console.warn('Ajax Load More: There was an issue resetting the Ajax Load More instance.'); + }); + } else { + // Standard ALM + almFilter('fade', '200', data, 'filter'); + } +}; + +/** + * Get the total post count in the current query by ALM instance ID. + * Note: Uses localized ALM variables. + * + * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php + * @param {string} id An optional Ajax Load More ID. + * @return {number} The results from the localized variable. + */ +var ajax_load_more_getPostCount = function getPostCount() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + return getTotals('post_count', id); +}; + +/** + * Get the total number of posts by ALM instance ID. + * Note: Uses localized ALM variables. + * + * @param {string} id An optional Ajax Load More ID. + * @return {number} The results from the localized variable. + */ +var getTotalPosts = function getTotalPosts() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + return getTotals('total_posts', id); +}; + +/** + * Get the total posts remaining in the current query by ALM instance ID. + * Note: Uses localized ALM variables. + * + * @see https://github.com/dcooney/wordpress-ajax-load-more/blob/main/core/classes/class-alm-localize.php + * @param {string} id An optional Ajax Load More ID. + * @return {number} The total remaining posts. + */ +var getTotalRemaining = function getTotalRemaining() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + return getTotals('remaining', id); +}; + +/** + * Track Page Views and Analytics + * + * @since 5.0 + * @param {string} type The add-on type that is triggering the analytics. + */ +var analytics = function analytics() { + var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var _window$location = window.location, + _window$location$path = _window$location.pathname, + pathname = _window$location$path === void 0 ? '' : _window$location$path, + _window$location$sear = _window$location.search, + search = _window$location$sear === void 0 ? '' : _window$location$sear; + + /** + * ALM Callback Function (URL Change) + * + * @see https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/#url-update + */ + if (typeof almUrlUpdate === 'function') { + window.almUrlUpdate(pathname + search, type); + } + + /** + * ALM Callback Function + */ + if (typeof almAnalytics === 'function') { + window.almAnalytics(pathname + search, type); + } +}; + +/** + * Trigger Ajax Load More from other events. + * + * @since 5.0 + * @param {Element} instance The HTML element. + */ +var start = function start(instance) { + if (!instance) { + return false; + } + window.almInit(instance); +}; + +/** + * Scroll window to position (global function). + * + * @since 5.0 + * @param {string} position The position to scroll. + */ +var almScroll = function almScroll(position) { + if (!position) { + return false; + } + window.scrollTo({ + top: position, + behavior: 'smooth' + }); +}; + +/** + * Get the current top/left coordinates of an element relative to the document. + * + * @since 5.0 + * @param {HTMLElement} el The HTML element. + * @return {Object} The top/left coordinates. + */ +var getOffset = function getOffset() { + var el = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + if (!el) { + return false; + } + var rect = el.getBoundingClientRect(); + var scrollLeft = window.scrollX || document.documentElement.scrollLeft; + var scrollTop = window.scrollY || document.documentElement.scrollTop; + return { + top: rect.top + scrollTop, + left: rect.left + scrollLeft + }; +}; + +/** + * Trigger a click event to load Ajax Load More content. + * + * @param {string} id The Ajax Load More ID. + */ +var click = function click() { + var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; + var alm = document.querySelector('.ajax-load-more-wrap'); + var button = ''; + if (!id && alm) { + // Default ALM element. + button = alm.querySelector('button.alm-load-more-btn'); + if (button) { + button.click(); + } + } else { + // Ajax Load More by ID. + alm = document.querySelector(".ajax-load-more-wrap[data-id=\"".concat(id, "\"]")); + if (alm) { + button = alm.querySelector('button.alm-load-more-btn'); + if (button) { + button.click(); + } + } + } +}; + +/** + * Load ALM inside the WP Block Editor. + * + * @since 7.1.0 + * @param {Element} instance The HTML element. + */ +var wpblock = function wpblock(instance) { + var listing = instance.querySelector('.alm-listing'); + if (!listing || instance.dataset.blockLoaded === 'true') { + return; // Exit if does not exist or block already loaded. + } + + instance.dataset.blockLoaded = 'true'; + listing.dataset.scroll = 'false'; // Remove scroll. + start(instance); +}; +}(); +ajaxloadmore = __webpack_exports__; /******/ })() ; \ No newline at end of file diff --git a/build/frontend/ajax-load-more.min.asset.php b/build/frontend/ajax-load-more.min.asset.php index 02114c3..6b7935b 100644 --- a/build/frontend/ajax-load-more.min.asset.php +++ b/build/frontend/ajax-load-more.min.asset.php @@ -1 +1 @@ - array(), 'version' => '86ad425329094fef5a9a'); + array(), 'version' => '3309b584d74c474ae5d2'); diff --git a/build/frontend/ajax-load-more.min.css b/build/frontend/ajax-load-more.min.css index d2e9af0..bbe8143 100644 --- a/build/frontend/ajax-load-more.min.css +++ b/build/frontend/ajax-load-more.min.css @@ -1,518 +1 @@ -/*!************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss ***! - \************************************************************************************************************************************************************/ -.alm-btn-wrap { - display: block; - text-align: center; - padding: 10px 0 0; - margin: 0 0 25px; - position: relative; -} -.alm-btn-wrap::after { - display: table; - clear: both; - height: 0; - content: ""; -} -.alm-btn-wrap .alm-load-more-btn { - font-size: 15px; - font-weight: 500; - width: auto; - height: 43px; - line-height: 1; - background: #ed7070; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); - color: #fff; - border: none; - border-radius: 4px; - margin: 0; - padding: 0 20px; - display: inline-block; - position: relative; - transition: all 0.3s ease; - text-align: center; - text-decoration: none; - appearance: none; - user-select: none; - cursor: pointer; - /* Loading */ - /* Loaded / Done */ - /* Loading Icon */ - /* Loading :before */ -} -.alm-btn-wrap .alm-load-more-btn:hover, .alm-btn-wrap .alm-load-more-btn.loading { - background-color: #e06161; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09); - color: #fff; - text-decoration: none; -} -.alm-btn-wrap .alm-load-more-btn:active { - box-shadow: none; - text-decoration: none; -} -.alm-btn-wrap .alm-load-more-btn.loading { - pointer-events: none; - cursor: wait; - outline: none; - padding-left: 44px; -} -.alm-btn-wrap .alm-load-more-btn.done, .alm-btn-wrap .alm-load-more-btn:disabled { - pointer-events: none; - opacity: 0.15; - background-color: #ed7070; - outline: none !important; - box-shadow: none !important; -} -.alm-btn-wrap .alm-load-more-btn::before, .alm-btn-wrap .alm-load-more-btn.done::before, .alm-btn-wrap .alm-load-more-btn:disabled::before { - background: none; - width: 0; -} -.alm-btn-wrap .alm-load-more-btn.loading::before { - background: #fff url(../frontend/img/ajax-loader.gif) no-repeat center center; - width: 30px; - height: 31px; - margin: 6px; - border-radius: 3px; - display: inline-block; - z-index: 0; - content: ""; - position: absolute; - left: 0; - top: 0; - overflow: hidden; - transition: width 0.5s ease-in-out; -} -.alm-btn-wrap .alm-elementor-link { - display: block; - font-size: 13px; - margin: 0 0 15px; -} -@media screen and (min-width: 768px) { - .alm-btn-wrap .alm-elementor-link { - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - margin: 0; - } -} - -/* white */ -.ajax-load-more-wrap.white .alm-load-more-btn { - background-color: #fff; - color: #787878; - border: 1px solid #e0e0e0; - overflow: hidden; - transition: none; - outline: none; -} -.ajax-load-more-wrap.white .alm-load-more-btn:focus, .ajax-load-more-wrap.white .alm-load-more-btn:hover, .ajax-load-more-wrap.white .alm-load-more-btn.loading { - background-color: #fff; - color: #333; - border-color: #aaaaaa; -} -.ajax-load-more-wrap.white .alm-load-more-btn.done { - background-color: #fff; - color: #444; - border-color: #ccc; -} -.ajax-load-more-wrap.white .alm-load-more-btn.loading { - color: rgba(255, 255, 255, 0) !important; - outline: none !important; - background-color: transparent; - border-color: transparent !important; - box-shadow: none !important; - padding-left: 20px; -} -.ajax-load-more-wrap.white .alm-load-more-btn.loading::before { - margin: 0; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: transparent; - background-image: url(../frontend/img/ajax-loader-lg.gif); - background-size: 25px 25px; - background-position: center center; -} - -/* light grey */ -.ajax-load-more-wrap.light-grey .alm-load-more-btn { - background-color: #efefef; - color: #787878; - border: 1px solid #e0e0e0; - overflow: hidden; - transition: all 0.075s ease; - outline: none; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus, .ajax-load-more-wrap.light-grey .alm-load-more-btn:hover, .ajax-load-more-wrap.light-grey .alm-load-more-btn.loading, .ajax-load-more-wrap.light-grey .alm-load-more-btn.done { - background-color: #f1f1f1; - color: #222; - border-color: #aaaaaa; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading { - color: rgba(255, 255, 255, 0) !important; - outline: none !important; - background-color: transparent; - border-color: transparent !important; - box-shadow: none !important; - padding-left: 20px; -} -.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading::before { - margin: 0; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: transparent; - background-image: url(../frontend/img/ajax-loader-lg.gif); - background-size: 25px 25px; - background-position: center center; -} - -/* Blue */ -.ajax-load-more-wrap.blue .alm-load-more-btn { - background-color: #1b91ca; -} -.ajax-load-more-wrap.blue .alm-load-more-btn:hover, .ajax-load-more-wrap.blue .alm-load-more-btn.loading, .ajax-load-more-wrap.blue .alm-load-more-btn.done { - background-color: #1b84b7; -} - -/* green */ -.ajax-load-more-wrap.green .alm-load-more-btn { - background-color: #80ca7a; -} -.ajax-load-more-wrap.green .alm-load-more-btn:hover, .ajax-load-more-wrap.green .alm-load-more-btn.loading, .ajax-load-more-wrap.green .alm-load-more-btn.done { - background-color: #81c17b; -} - -/* purple */ -.ajax-load-more-wrap.purple .alm-load-more-btn { - background-color: #b97eca; -} -.ajax-load-more-wrap.purple .alm-load-more-btn:hover, .ajax-load-more-wrap.purple .alm-load-more-btn.loading, .ajax-load-more-wrap.purple .alm-load-more-btn.done { - background-color: #a477b1; -} - -/* grey */ -.ajax-load-more-wrap.grey .alm-load-more-btn { - background-color: #a09e9e; -} -.ajax-load-more-wrap.grey .alm-load-more-btn:hover, .ajax-load-more-wrap.grey .alm-load-more-btn.loading, .ajax-load-more-wrap.grey .alm-load-more-btn.done { - background-color: #888; -} - -/* Infinite */ -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn { - width: 100%; - background-color: transparent !important; - background-position: center center; - background-repeat: no-repeat; - background-image: url(../frontend/img/spinner.gif); - border: none !important; - opacity: 0; - transition: opacity 0.2s ease; - box-shadow: none !important; - overflow: hidden; - text-indent: -9999px; - cursor: default !important; - outline: none !important; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn::before { - display: none !important; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:focus, .ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn:active { - outline: none; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.done { - opacity: 0; -} -.ajax-load-more-wrap.infinite > .alm-btn-wrap .alm-load-more-btn.loading { - opacity: 1; -} -.ajax-load-more-wrap.infinite.skype > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-skype.gif); -} -.ajax-load-more-wrap.infinite.ring > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-ring.gif); -} -.ajax-load-more-wrap.infinite.fading-blocks > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/loader-fading-blocks.gif); -} -.ajax-load-more-wrap.infinite.fading-circles > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/loader-fading-circles.gif); -} -.ajax-load-more-wrap.infinite.chasing-arrows > .alm-btn-wrap .alm-load-more-btn { - background-image: url(../frontend/img/spinner-chasing-arrows.gif); -} - -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap { - display: flex; - align-items: center; - padding: 0; - margin: 0; -} -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button { - margin: 0; -} -.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done { - display: none; -} - -.alm-btn-wrap--prev { - display: flex; - width: 100%; - justify-content: center; - clear: both; - padding: 0; - margin: 0; -} -.alm-btn-wrap--prev::after { - display: table; - clear: both; - height: 0; - content: ""; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev { - line-height: 1; - font-size: 14px; - font-weight: 500; - padding: 5px; - display: inline-block; - position: relative; - margin: 0 0 15px; - text-decoration: none; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev:hover, .alm-btn-wrap--prev a.alm-load-more-btn--prev:focus { - text-decoration: underline; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading, .alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus { - cursor: wait; - text-decoration: none; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading::before, .alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus::before { - content: ""; - display: block; - position: absolute; - left: -18px; - top: 50%; - transform: translateY(-50%); - width: 16px; - height: 16px; - background: url(../frontend/img/ajax-loader-lg.gif) no-repeat left center; - background-size: 16px 16px; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.skype.loading::before { - background-image: url(../frontend/img/spinner-skype.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.ring.loading::before { - background-image: url(../frontend/img/spinner-ring.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.fading-blocks.loading::before { - background-image: url(../frontend/img/loader-fading-blocks.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.chasing-arrows.loading::before { - background-image: url(../frontend/img/spinner-chasing-arrows.gif); -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev:not(.disabled), -.alm-btn-wrap--prev a.alm-load-more-btn--prev button:not([disabled]) { - cursor: pointer; -} -.alm-btn-wrap--prev a.alm-load-more-btn--prev.done { - display: none !important; -} - -.alm-listing, -.alm-paging-content { - outline: none; -} -.alm-listing::after, -.alm-paging-content::after { - display: table; - clear: both; - height: 0; - content: ""; -} - -.alm-listing { - margin: 0; - padding: 0; -} -.alm-listing .alm-paging-content > li, -.alm-listing > li { - position: relative; -} -.alm-listing .alm-paging-content > li.alm-item, -.alm-listing > li.alm-item { - background: none; - margin: 0 0 30px; - padding: 0 0 0 80px; - position: relative; - list-style: none; -} -@media screen and (min-width: 480px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 100px; - } -} -@media screen and (min-width: 768px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 135px; - } -} -@media screen and (min-width: 1024px) { - .alm-listing .alm-paging-content > li.alm-item, - .alm-listing > li.alm-item { - padding: 0 0 0 160px; - } -} -.alm-listing .alm-paging-content > li.alm-item h3, -.alm-listing > li.alm-item h3 { - margin: 0; -} -.alm-listing .alm-paging-content > li.alm-item p, -.alm-listing > li.alm-item p { - margin: 10px 0 0; -} -.alm-listing .alm-paging-content > li.alm-item p.entry-meta, -.alm-listing > li.alm-item p.entry-meta { - opacity: 0.75; -} -.alm-listing .alm-paging-content > li.alm-item img, -.alm-listing > li.alm-item img { - position: absolute; - left: 0; - top: 0; - border-radius: 2px; - max-width: 65px; -} -@media screen and (min-width: 480px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 85px; - } -} -@media screen and (min-width: 768px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 115px; - } -} -@media screen and (min-width: 1024px) { - .alm-listing .alm-paging-content > li.alm-item img, - .alm-listing > li.alm-item img { - max-width: 140px; - } -} -.alm-listing .alm-paging-content > li.no-img, -.alm-listing > li.no-img { - padding: 0; -} -.alm-listing.products li.product { - padding-left: inherit; -} -.alm-listing.products li.product img { - position: static; - border-radius: inherit; -} -.alm-listing.stylefree .alm-paging-content > li, -.alm-listing.stylefree > li { - padding: inherit; - margin: inherit; -} -.alm-listing.stylefree .alm-paging-content > li img, -.alm-listing.stylefree > li img { - padding: inherit; - margin: inherit; - position: static; - border-radius: inherit; -} - -.alm-listing.rtl .alm-paging-content > li { - padding: 0 170px 0 0; - text-align: right; -} -.alm-listing.rtl .alm-paging-content > li img { - left: auto; - right: 0; -} -.alm-listing.rtl.products li.product { - padding-right: inherit; -} - -.alm-masonry { - display: block; - overflow: hidden; - clear: both; -} - -.alm-placeholder { - opacity: 0; - transition: opacity 0.2s ease; - display: none; -} - -.ajax-load-more-wrap.alm-horizontal { - display: flex; - flex-wrap: nowrap; - width: 100%; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing { - display: flex; - flex-wrap: nowrap; - flex-direction: row; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item { - text-align: center; - margin: 0 2px; - padding: 20px 20px 30px; - height: auto; - background-color: #fff; - border: 1px solid #efefef; - border-radius: 4px; - width: 300px; -} -.ajax-load-more-wrap.alm-horizontal .alm-listing > li.alm-item img { - position: static; - max-width: 125px; - margin: 0 auto 15px; - border-radius: 4px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.075); -} -.ajax-load-more-wrap.alm-horizontal .alm-listing::after { - display: none; -} - -.alm-toc { - display: flex; - width: auto; - padding: 10px 0; -} -.alm-toc button { - background: #f7f7f7; - border-radius: 4px; - transition: all 0.15s ease; - outline: none; - border: 1px solid #efefef; - box-shadow: none; - color: #454545; - cursor: pointer; - font-size: 14px; - font-weight: 500; - padding: 7px 10px; - line-height: 1; - margin: 0 5px 0 0; - height: auto; -} -.alm-toc button:hover, .alm-toc button:focus { - border-color: #ccc; - color: #222; -} -.alm-toc button:hover { - text-decoration: underline; -} -.alm-toc button:focus { - box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); -} +.alm-btn-wrap{display:block;margin:0 0 25px;padding:10px 0 0;position:relative;text-align:center}.alm-btn-wrap:after{clear:both;content:"";display:table;height:0}.alm-btn-wrap .alm-load-more-btn{appearance:none;background:#ed7070;border:none;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.04);color:#fff;cursor:pointer;display:inline-block;font-size:15px;font-weight:500;height:43px;line-height:1;margin:0;padding:0 20px;position:relative;text-align:center;text-decoration:none;transition:all .3s ease;user-select:none;width:auto}.alm-btn-wrap .alm-load-more-btn.loading,.alm-btn-wrap .alm-load-more-btn:hover{background-color:#e06161;box-shadow:0 1px 3px rgba(0,0,0,.09);color:#fff;text-decoration:none}.alm-btn-wrap .alm-load-more-btn:active{box-shadow:none;text-decoration:none}.alm-btn-wrap .alm-load-more-btn.loading{cursor:wait;outline:none;padding-left:44px;pointer-events:none}.alm-btn-wrap .alm-load-more-btn.done,.alm-btn-wrap .alm-load-more-btn:disabled{background-color:#ed7070;box-shadow:none!important;opacity:.15;outline:none!important;pointer-events:none}.alm-btn-wrap .alm-load-more-btn.done:before,.alm-btn-wrap .alm-load-more-btn:before,.alm-btn-wrap .alm-load-more-btn:disabled:before{background:none;width:0}.alm-btn-wrap .alm-load-more-btn.loading:before{background:#fff url(../frontend/img/ajax-loader.gif) no-repeat 50%;border-radius:3px;content:"";display:inline-block;height:31px;left:0;margin:6px;overflow:hidden;position:absolute;top:0;transition:width .5s ease-in-out;width:30px;z-index:0}.alm-btn-wrap .alm-elementor-link{display:block;font-size:13px;margin:0 0 15px}@media screen and (min-width:768px){.alm-btn-wrap .alm-elementor-link{left:0;margin:0;position:absolute;top:50%;transform:translateY(-50%)}}.ajax-load-more-wrap.white .alm-load-more-btn{background-color:#fff;border:1px solid #e0e0e0;color:#787878;outline:none;overflow:hidden;transition:none}.ajax-load-more-wrap.white .alm-load-more-btn.loading,.ajax-load-more-wrap.white .alm-load-more-btn:focus,.ajax-load-more-wrap.white .alm-load-more-btn:hover{background-color:#fff;border-color:#aaa;color:#333}.ajax-load-more-wrap.white .alm-load-more-btn.done{background-color:#fff;border-color:#ccc;color:#444}.ajax-load-more-wrap.white .alm-load-more-btn.loading{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)!important;box-shadow:none!important;color:hsla(0,0%,100%,0)!important;outline:none!important;padding-left:20px}.ajax-load-more-wrap.white .alm-load-more-btn.loading:before{background-color:rgba(0,0,0,0);background-image:url(../frontend/img/ajax-loader-lg.gif);background-position:50%;background-size:25px 25px;height:100%;left:0;margin:0;top:0;width:100%}.ajax-load-more-wrap.light-grey .alm-load-more-btn{background-color:#efefef;border:1px solid #e0e0e0;color:#787878;outline:none;overflow:hidden;transition:all 75ms ease}.ajax-load-more-wrap.light-grey .alm-load-more-btn.done,.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading,.ajax-load-more-wrap.light-grey .alm-load-more-btn:focus,.ajax-load-more-wrap.light-grey .alm-load-more-btn:hover{background-color:#f1f1f1;border-color:#aaa;color:#222}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)!important;box-shadow:none!important;color:hsla(0,0%,100%,0)!important;outline:none!important;padding-left:20px}.ajax-load-more-wrap.light-grey .alm-load-more-btn.loading:before{background-color:rgba(0,0,0,0);background-image:url(../frontend/img/ajax-loader-lg.gif);background-position:50%;background-size:25px 25px;height:100%;left:0;margin:0;top:0;width:100%}.ajax-load-more-wrap.blue .alm-load-more-btn{background-color:#1b91ca}.ajax-load-more-wrap.blue .alm-load-more-btn.done,.ajax-load-more-wrap.blue .alm-load-more-btn.loading,.ajax-load-more-wrap.blue .alm-load-more-btn:hover{background-color:#1b84b7}.ajax-load-more-wrap.green .alm-load-more-btn{background-color:#80ca7a}.ajax-load-more-wrap.green .alm-load-more-btn.done,.ajax-load-more-wrap.green .alm-load-more-btn.loading,.ajax-load-more-wrap.green .alm-load-more-btn:hover{background-color:#81c17b}.ajax-load-more-wrap.purple .alm-load-more-btn{background-color:#b97eca}.ajax-load-more-wrap.purple .alm-load-more-btn.done,.ajax-load-more-wrap.purple .alm-load-more-btn.loading,.ajax-load-more-wrap.purple .alm-load-more-btn:hover{background-color:#a477b1}.ajax-load-more-wrap.grey .alm-load-more-btn{background-color:#a09e9e}.ajax-load-more-wrap.grey .alm-load-more-btn.done,.ajax-load-more-wrap.grey .alm-load-more-btn.loading,.ajax-load-more-wrap.grey .alm-load-more-btn:hover{background-color:#888}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn{background-color:rgba(0,0,0,0)!important;background-image:url(../frontend/img/spinner.gif);background-position:50%;background-repeat:no-repeat;border:none!important;box-shadow:none!important;cursor:default!important;opacity:0;outline:none!important;overflow:hidden;text-indent:-9999px;transition:opacity .2s ease;width:100%}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:before{display:none!important}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:active,.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn:focus{outline:none}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.done{opacity:0}.ajax-load-more-wrap.infinite>.alm-btn-wrap .alm-load-more-btn.loading{opacity:1}.ajax-load-more-wrap.infinite.skype>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-skype.gif)}.ajax-load-more-wrap.infinite.ring>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-ring.gif)}.ajax-load-more-wrap.infinite.fading-blocks>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/loader-fading-blocks.gif)}.ajax-load-more-wrap.infinite.fading-circles>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/loader-fading-circles.gif)}.ajax-load-more-wrap.infinite.chasing-arrows>.alm-btn-wrap .alm-load-more-btn{background-image:url(../frontend/img/spinner-chasing-arrows.gif)}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap{align-items:center;display:flex;margin:0;padding:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button{margin:0}.ajax-load-more-wrap.alm-horizontal .alm-btn-wrap button.done{display:none}.alm-btn-wrap--prev{clear:both;display:flex;justify-content:center;margin:0;padding:0;width:100%}.alm-btn-wrap--prev:after{clear:both;content:"";display:table;height:0}.alm-btn-wrap--prev a.alm-load-more-btn--prev{display:inline-block;font-size:14px;font-weight:500;line-height:1;margin:0 0 15px;padding:5px;position:relative;text-decoration:none}.alm-btn-wrap--prev a.alm-load-more-btn--prev:focus,.alm-btn-wrap--prev a.alm-load-more-btn--prev:hover{text-decoration:underline}.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading,.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus{cursor:wait;text-decoration:none}.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:before,.alm-btn-wrap--prev a.alm-load-more-btn--prev.loading:focus:before{background:url(../frontend/img/ajax-loader-lg.gif) no-repeat 0;background-size:16px 16px;content:"";display:block;height:16px;left:-18px;position:absolute;top:50%;transform:translateY(-50%);width:16px}.alm-btn-wrap--prev a.alm-load-more-btn--prev.skype.loading:before{background-image:url(../frontend/img/spinner-skype.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.ring.loading:before{background-image:url(../frontend/img/spinner-ring.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.fading-blocks.loading:before{background-image:url(../frontend/img/loader-fading-blocks.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev.chasing-arrows.loading:before{background-image:url(../frontend/img/spinner-chasing-arrows.gif)}.alm-btn-wrap--prev a.alm-load-more-btn--prev button:not([disabled]),.alm-btn-wrap--prev a.alm-load-more-btn--prev:not(.disabled){cursor:pointer}.alm-btn-wrap--prev a.alm-load-more-btn--prev.done{display:none!important}.alm-listing,.alm-paging-content{outline:none}.alm-listing:after,.alm-paging-content:after{clear:both;content:"";display:table;height:0}.alm-listing{margin:0;padding:0}.alm-listing .alm-paging-content>li,.alm-listing>li{position:relative}.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{background:none;list-style:none;margin:0 0 30px;padding:0 0 0 80px;position:relative}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 100px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 135px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item,.alm-listing>li.alm-item{padding:0 0 0 160px}}.alm-listing .alm-paging-content>li.alm-item h3,.alm-listing>li.alm-item h3{margin:0}.alm-listing .alm-paging-content>li.alm-item p,.alm-listing>li.alm-item p{margin:10px 0 0}.alm-listing .alm-paging-content>li.alm-item p.entry-meta,.alm-listing>li.alm-item p.entry-meta{opacity:.75}.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{border-radius:2px;left:0;max-width:65px;position:absolute;top:0}@media screen and (min-width:480px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:85px}}@media screen and (min-width:768px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:115px}}@media screen and (min-width:1024px){.alm-listing .alm-paging-content>li.alm-item img,.alm-listing>li.alm-item img{max-width:140px}}.alm-listing .alm-paging-content>li.no-img,.alm-listing>li.no-img{padding:0}.alm-listing.products li.product{padding-left:inherit}.alm-listing.products li.product img{border-radius:inherit;position:static}.alm-listing.stylefree .alm-paging-content>li,.alm-listing.stylefree>li{margin:inherit;padding:inherit}.alm-listing.stylefree .alm-paging-content>li img,.alm-listing.stylefree>li img{border-radius:inherit;margin:inherit;padding:inherit;position:static}.alm-listing.rtl .alm-paging-content>li{padding:0 170px 0 0;text-align:right}.alm-listing.rtl .alm-paging-content>li img{left:auto;right:0}.alm-listing.rtl.products li.product{padding-right:inherit}.alm-masonry{clear:both;display:block;overflow:hidden}.alm-placeholder{display:none;opacity:0;transition:opacity .2s ease}.ajax-load-more-wrap.alm-horizontal{display:flex;flex-wrap:nowrap;width:100%}.ajax-load-more-wrap.alm-horizontal .alm-listing{display:flex;flex-direction:row;flex-wrap:nowrap}.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item{background-color:#fff;border:1px solid #efefef;border-radius:4px;height:auto;margin:0 2px;padding:20px 20px 30px;text-align:center;width:300px}.ajax-load-more-wrap.alm-horizontal .alm-listing>li.alm-item img{border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.075);margin:0 auto 15px;max-width:125px;position:static}.ajax-load-more-wrap.alm-horizontal .alm-listing:after{display:none}.alm-toc{display:flex;padding:10px 0;width:auto}.alm-toc button{background:#f7f7f7;border:1px solid #efefef;border-radius:4px;box-shadow:none;color:#454545;cursor:pointer;font-size:14px;font-weight:500;height:auto;line-height:1;margin:0 5px 0 0;outline:none;padding:7px 10px;transition:all .15s ease}.alm-toc button:focus,.alm-toc button:hover{border-color:#ccc;color:#222}.alm-toc button:hover{text-decoration:underline}.alm-toc button:focus{box-shadow:0 0 0 3px rgba(0,0,0,.05)} \ No newline at end of file diff --git a/build/frontend/ajax-load-more.min.js b/build/frontend/ajax-load-more.min.js index fcee324..ce28fe9 100644 --- a/build/frontend/ajax-load-more.min.js +++ b/build/frontend/ajax-load-more.min.js @@ -1,1461 +1,6 @@ -/* - * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). - * This devtool is neither made for production nor for readable output files. - * It uses "eval()" calls to create a separate source file in the browser devtools. - * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) - * or disable the default devtool with "devtool: false". - * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). - */ -var ajaxloadmore; -/******/ (function() { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./src/frontend/js/addons/cache.js": -/*!*****************************************!*\ - !*** ./src/frontend/js/addons/cache.js ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ cacheCreateParams: function() { return /* binding */ cacheCreateParams; },\n/* harmony export */ createCache: function() { return /* binding */ createCache; },\n/* harmony export */ getCache: function() { return /* binding */ getCache; },\n/* harmony export */ getCacheSlug: function() { return /* binding */ getCacheSlug; }\n/* harmony export */ });\n/* harmony import */ var crypto_js_md5__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto-js/md5 */ \"./node_modules/crypto-js/md5.js\");\n/* harmony import */ var crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto_js_md5__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _functions_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/api */ \"./src/frontend/js/functions/api.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction cacheCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.cache = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cache) === 'true';\n if (alm.addons.cache) {\n alm.addons.cache_id = listing.dataset.cacheId;\n alm.addons.cache_path = listing.dataset.cachePath;\n alm.addons.cache_logged_in = listing.dataset.cacheLoggedIn ? listing.dataset.cacheLoggedIn : false;\n }\n return alm;\n}\n\n/**\n * Create unique cache slug from query params.\n *\n * @param {Object} alm The ALM object.\n * @param {Object} data The data object.\n * @return {string} The cache file slug.\n */\nfunction getCacheSlug(alm, data) {\n var addons = alm.addons,\n pagePrev = alm.pagePrev,\n page = alm.page,\n _alm$rel = alm.rel,\n rel = _alm$rel === void 0 ? 'next' : _alm$rel;\n if (addons.nextpage) {\n // Nextpage.\n return \"page-\".concat(page + addons.nextpage_startpage);\n } else if (addons.single_post) {\n // Single Post.\n return addons.single_post_id;\n } else if (addons.queryloop) {\n // Query Loop, use the button URL.\n return crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify((0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.getButtonURL)(alm, alm.rel))).toString();\n } else if (addons.woocommerce || addons.elementor) {\n // WooCommerce || Elementor.\n return rel === 'prev' ? \"page-\".concat(pagePrev) : \"page-\".concat(page + 1);\n }\n return crypto_js_md5__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify(data)).toString(); // Standard.\n}\n\n/**\n * Create a cache file.\n *\n * @param {Object} alm The ALM object.\n * @param {string} data Content to cache.\n * @param {string} name The cache slug\n * @since 5.3.1\n */\nfunction createCache(_x, _x2, _x3) {\n return _createCache.apply(this, arguments);\n}\n\n/**\n * Get cache data file.\n *\n * @param {Object} alm The ALM object.\n * @param {Object} params Query params.\n * @return {Promise} Cache data or false.\n */\nfunction _createCache() {\n _createCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(alm, data, name) {\n var _data$html, html, _data$meta, meta, params, res;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _data$html = data.html, html = _data$html === void 0 ? '' : _data$html, _data$meta = data.meta, meta = _data$meta === void 0 ? {} : _data$meta;\n if (!(!html || !alm.addons.cache)) {\n _context.next = 3;\n break;\n }\n return _context.abrupt(\"return\");\n case 3:\n params = {\n cache_id: alm.addons.cache_id,\n cache_logged_in: alm.addons.cache_logged_in,\n canonical_url: alm.canonical_url,\n name: name,\n html: html.trim(),\n postcount: meta.postcount,\n totalposts: meta.totalposts\n }; // Create the cache file via REST API.\n _context.next = 6;\n return _functions_api__WEBPACK_IMPORTED_MODULE_1__.api.post('ajax-load-more/cache/create', params);\n case 6:\n res = _context.sent;\n if (res.status === 200 && res.data && res.data.success) {\n console.log(res.data.msg); // eslint-disable-line no-console\n }\n case 8:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _createCache.apply(this, arguments);\n}\nfunction getCache(_x4, _x5) {\n return _getCache.apply(this, arguments);\n}\nfunction _getCache() {\n _getCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(alm, params) {\n var restParams, res;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n if (!(!alm.addons.cache || alm.addons.cache && alm.addons.cache_logged_in)) {\n _context2.next = 2;\n break;\n }\n return _context2.abrupt(\"return\", false);\n case 2:\n restParams = {\n id: alm.addons.cache_id,\n name: params.cache_slug\n };\n _context2.next = 5;\n return _functions_api__WEBPACK_IMPORTED_MODULE_1__.api.get('ajax-load-more/cache/get', {\n params: restParams\n });\n case 5:\n res = _context2.sent;\n if (!(res.status === 200 && res.data)) {\n _context2.next = 8;\n break;\n }\n return _context2.abrupt(\"return\", res.data);\n case 8:\n return _context2.abrupt(\"return\", false);\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n }));\n return _getCache.apply(this, arguments);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/cache.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/call-to-actions.js": -/*!***************************************************!*\ - !*** ./src/frontend/js/addons/call-to-actions.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ctaCreateParams: function() { return /* binding */ ctaCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction ctaCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.cta = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.cta) === 'true';\n if (alm.addons.cta) {\n alm.addons.cta_position = listing.dataset.ctaPosition;\n alm.addons.cta_repeater = listing.dataset.ctaRepeater;\n alm.addons.cta_theme_repeater = listing.dataset.ctaThemeRepeater;\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/call-to-actions.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/comments.js": -/*!********************************************!*\ - !*** ./src/frontend/js/addons/comments.js ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ commentsCreateParams: function() { return /* binding */ commentsCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction commentsCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.comments = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.comments) === 'true';\n if (alm.addons.comments) {\n alm.addons.comments_post_id = listing.dataset.comments_post_id;\n alm.addons.comments_per_page = listing.dataset.comments_per_page;\n alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;\n alm.addons.comments_type = listing.dataset.comments_type;\n alm.addons.comments_style = listing.dataset.comments_style;\n alm.addons.comments_template = listing.dataset.comments_template;\n alm.addons.comments_callback = listing.dataset.comments_callback;\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/comments.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/elementor.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/elementor.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ elementor: function() { return /* binding */ elementor; },\n/* harmony export */ elementorCreateParams: function() { return /* binding */ elementorCreateParams; },\n/* harmony export */ elementorGetContent: function() { return /* binding */ elementorGetContent; },\n/* harmony export */ elementorGetPagedURL: function() { return /* binding */ elementorGetPagedURL; },\n/* harmony export */ elementorInit: function() { return /* binding */ elementorInit; },\n/* harmony export */ elementorLoaded: function() { return /* binding */ elementorLoaded; }\n/* harmony export */ });\n/* harmony import */ var _functions_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/constants */ \"./src/frontend/js/functions/constants.js\");\n/* harmony import */ var _functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/dispatchScrollEvent */ \"./src/frontend/js/functions/dispatchScrollEvent.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\n/* harmony import */ var _functions_setContentParams__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../functions/setContentParams */ \"./src/frontend/js/functions/setContentParams.js\");\n/* harmony import */ var _modules_lazyImages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modules/lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n/* harmony import */ var _modules_loadItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../modules/loadItems */ \"./src/frontend/js/modules/loadItems.js\");\n/* harmony import */ var _modules_loadPrevious__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../modules/loadPrevious */ \"./src/frontend/js/modules/loadPrevious.js\");\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction elementorCreateParams(alm) {\n var _alm = alm,\n listing = _alm.listing;\n alm.addons.elementor = listing.dataset.elementor === 'posts' && listing.dataset.elementorSettings;\n if (alm.addons.elementor) {\n alm.addons.elementor_type = 'posts';\n alm.addons.elementor_settings = JSON.parse(alm.listing.dataset.elementorSettings);\n\n // Parse Container Settings\n alm.addons.elementor_target = alm.addons.elementor_settings.target;\n alm.addons.elementor_element = alm.addons.elementor_settings.target ? document.querySelector(\".elementor-element \".concat(alm.addons.elementor_settings.target)) : '';\n alm.addons.elementor_widget = elementorGetWidgetType(alm.addons.elementor_element);\n\n // Masonry\n alm = setElementorClasses(alm, alm.addons.elementor_widget);\n\n // Pagination Element\n alm.addons.elementor_controls = alm.addons.elementor_settings.controls;\n alm.addons.elementor_controls = alm.addons.elementor_controls === 'true' ? true : false;\n alm.addons.elementor_scrolltop = parseInt(alm.addons.elementor_settings.scrolltop);\n alm.addons.elementor_prev_label = alm.addons.elementor_settings.prev_label || '';\n\n // Get next page URL.\n alm.addons.elementor_next_page = elementorGetPagedURL(alm, alm.addons.elementor_element);\n alm.addons.elementor_prev_page = elementorGetPagedURL(alm, alm.addons.elementor_element, 'prev');\n\n // Get the max pages.\n alm.addons.elementor_max_pages = alm.addons.elementor_element.querySelector('.e-load-more-anchor');\n alm.addons.elementor_max_pages = alm.addons.elementor_max_pages ? parseInt(alm.addons.elementor_max_pages.dataset.maxPage) : 999;\n alm.addons.elementor_paged = alm.addons.elementor_settings.paged ? parseInt(alm.addons.elementor_settings.paged) : 1;\n alm.page = parseInt(alm.page) + alm.addons.elementor_paged;\n\n // Masonry\n alm = parseMasonryConfig(alm);\n if (!alm.addons.elementor_element) {\n console.warn(\"Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?\");\n }\n if (!alm.addons.elementor_next_page) {\n console.warn('Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?');\n }\n }\n return alm;\n}\n\n/**\n * Set up the instance on Elementor\n *\n * @param {Object} alm\n */\nfunction elementorInit(alm) {\n var addons = alm.addons;\n if (!addons.elementor || !addons.elementor_type || !addons.elementor_type === 'posts') {\n return false;\n }\n var container = addons.elementor_element;\n if (!container) {\n return false;\n }\n alm.button.dataset.page = addons.elementor_paged; // Set button data attributes\n\n // Set button URL\n var nextPage = addons.elementor_next_page;\n alm.button.dataset.url = nextPage ? nextPage : '';\n\n // Set attributes on containers.\n (0,_functions_setContentParams__WEBPACK_IMPORTED_MODULE_3__.setContentContainersParams)(container, alm.listing);\n\n // Set data attributes on first item.\n var item = container.querySelector(\".\".concat(addons.elementor_item_class)); // Get first item\n if (item) {\n item.classList.add('alm-elementor');\n item.dataset.url = window.location;\n item.dataset.page = addons.elementor_paged;\n item.dataset.pageTitle = document.title;\n }\n\n // Paged URL: Create previous button.\n if (addons.elementor_paged > 1 && addons.elementor_prev_page && addons.elementor_prev_label) {\n (0,_modules_loadPrevious__WEBPACK_IMPORTED_MODULE_6__.createLoadPreviousButton)(alm, container, addons.elementor_paged, addons.elementor_prev_page, addons.elementor_prev_label);\n }\n\n // Masonry Window Resize. Delay for masonry to be added via Elementor.\n if (addons.elementor_masonry) {\n var resizeTimeout;\n setTimeout(function () {\n window.addEventListener('resize', function () {\n clearTimeout(resizeTimeout);\n resizeTimeout = setTimeout(function () {\n positionMasonryItems(alm, \".\".concat(addons.elementor_container_class), \".\".concat(addons.elementor_item_class));\n }, 100);\n });\n }, 250);\n }\n}\n\n/**\n * Get the content, title and results text from the Ajax response.\n *\n * @param {Object} alm The alm object.\n * @param {string} url The request URL.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n */\nfunction elementorGetContent(alm, url, response, cache_slug) {\n var data = _functions_constants__WEBPACK_IMPORTED_MODULE_0__.API_DATA_SHAPE; // Default data object.\n\n // Successful response.\n if (response.status === 200 && response.data) {\n var addons = alm.addons,\n page = alm.page,\n button = alm.button,\n buttonPrev = alm.buttonPrev,\n rel = alm.rel;\n var elementor_target = addons.elementor_target,\n elementor_container_class = addons.elementor_container_class,\n elementor_item_class = addons.elementor_item_class;\n\n // Create temp div to hold response data.\n var content = document.createElement('div');\n content.innerHTML = response.data;\n\n // Set button state & URL.\n if (rel === 'prev' && buttonPrev) {\n var prevURL = elementorGetPagedURL(alm, content, 'prev');\n if (prevURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(buttonPrev, page - 1, prevURL);\n } else {\n alm.AjaxLoadMore.triggerDonePrev();\n }\n } else {\n var nextURL = elementorGetPagedURL(alm, content);\n if (nextURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(button, page + 1, nextURL);\n } else {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n\n // Get Page Title\n var title = content.querySelector('title').innerHTML;\n data.pageTitle = title;\n\n // Get Elementor container.\n var container = content.querySelector(\"\".concat(elementor_target, \" .\").concat(elementor_container_class));\n if (!container) {\n console.warn(\"Ajax Load More Elementor: Unable to find Elementor container element.\");\n return data;\n }\n\n // Get the first item and append data attributes.\n var item = container ? container.querySelector(\".\".concat(elementor_item_class)) : null;\n if (item) {\n item.classList.add('alm-elementor');\n item.dataset.url = url;\n item.dataset.page = rel === 'next' ? page + 1 : page - 1;\n item.dataset.pageTitle = title;\n }\n\n // Count the number of returned items.\n var items = container.querySelectorAll(\".\".concat(elementor_item_class));\n if (items) {\n // Set the html to the elementor container data.\n data.html = container ? container.innerHTML : '';\n data.meta.postcount = items.length;\n data.meta.totalposts = items.length;\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_7__.createCache)(alm, data, cache_slug);\n }\n }\n return data;\n}\n\n/**\n * Core ALM Elementor loader.\n *\n * @param {HTMLElement} content The HTML data.\n * @param {Object} alm The alm object.\n */\nfunction elementor(content, alm) {\n if (!content || !alm) {\n alm.AjaxLoadMore.triggerDone();\n return false;\n }\n return new Promise(function (resolve) {\n var addons = alm.addons;\n var container = alm.addons.elementor_element.querySelector(\".\".concat(addons.elementor_container_class)); // Get post container\n var items = content.querySelectorAll(\".\".concat(addons.elementor_item_class)); // Get all items in container\n\n if (container && items) {\n var ElementorItems = Array.prototype.slice.call(items); // Convert NodeList to Array\n\n // Trigger almElementorLoaded callback.\n if (typeof almElementorLoaded === 'function') {\n window.almElementorLoaded(ElementorItems);\n }\n\n // Load the items.\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_modules_loadItems__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(container, ElementorItems, alm);\n case 2:\n if (addons.elementor_masonry) {\n setTimeout(function () {\n positionMasonryItems(alm, \".\".concat(addons.elementor_container_class), \".\".concat(addons.elementor_item_class));\n }, 125);\n }\n resolve(true);\n case 4:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function (e) {\n console.warn(e, 'There was an error with Elementor'); // eslint-disable-line no-console\n });\n } else {\n resolve(false);\n }\n });\n}\n\n/**\n * Elementor loaded and dispatch actions.\n *\n * @param {Object} alm The alm object.\n */\nfunction elementorLoaded(alm) {\n var page = alm.page,\n AjaxLoadMore = alm.AjaxLoadMore,\n addons = alm.addons;\n var nextPage = page + 1;\n var elementor_max_pages = addons.elementor_max_pages;\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_4__.lazyImages)(alm); // Lazy load images if necessary.\n\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm); // Trigger almComplete.\n }\n\n AjaxLoadMore.transitionEnd(); // End transitions.\n\n if (nextPage >= elementor_max_pages) {\n AjaxLoadMore.triggerDone(); // ALM Done.\n }\n\n (0,_functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n}\n\n/**\n * Set the required classnames for parsing data and injecting content into the Elementor listing\n *\n * @param {Object} alm The alm object.\n * @param {string} type The Elementor type.\n * @return {Object} The modified object.\n */\nfunction setElementorClasses(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'posts';\n // Get the items based on the Elementor type.\n alm.addons.elementor_container_class = alm.addons.elementor_settings.container_class; // Container class\n\n switch (type) {\n case 'woocommerce':\n alm.addons.elementor_item_class = alm.addons.elementor_settings.woo_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.woo_pagination_class); // Pagination class.\n break;\n case 'loop-grid':\n alm.addons.elementor_item_class = alm.addons.elementor_settings.loop_grid_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.loop_grid_pagination_class); // Pagination class.\n break;\n default:\n alm.addons.elementor_item_class = alm.addons.elementor_settings.posts_item_class; // item class.\n alm.addons.elementor_pagination_class = \".\".concat(alm.addons.elementor_settings.posts_pagination_class); // Pagination class.\n break;\n }\n return alm;\n}\n\n/**\n * Parse Masonry Settings from Elementor Data atts\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction parseMasonryConfig(alm) {\n var _target$dataset;\n var addons = alm.addons;\n if (!addons.elementor_element) {\n return alm; // Exit if not found.\n }\n\n var target = addons.elementor_element;\n var settings = target !== null && target !== void 0 && (_target$dataset = target.dataset) !== null && _target$dataset !== void 0 && _target$dataset.settings ? JSON.parse(target.dataset.settings) : '';\n if (!settings) {\n return alm; // Exit if not found.\n }\n\n addons.elementor_masonry = settings.hasOwnProperty('cards_masonry') || settings.hasOwnProperty('classic_masonry') || settings.hasOwnProperty('masonry');\n if (addons.elementor_masonry) {\n var _settings$cards_row_g, _settings$row_gap;\n addons.elementor_masonry_columns = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns);\n addons.elementor_masonry_columns_mobile = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_mobile) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_mobile);\n addons.elementor_masonry_columns_tablet = parseInt(settings === null || settings === void 0 ? void 0 : settings.cards_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.classic_columns_tablet) || parseInt(settings === null || settings === void 0 ? void 0 : settings.columns_tablet);\n addons.elementor_masonry_gap = parseInt(settings === null || settings === void 0 || (_settings$cards_row_g = settings.cards_row_gap) === null || _settings$cards_row_g === void 0 ? void 0 : _settings$cards_row_g.size) || parseInt(settings === null || settings === void 0 || (_settings$row_gap = settings.row_gap) === null || _settings$row_gap === void 0 ? void 0 : _settings$row_gap.size);\n }\n return alm;\n}\n\n/**\n * Position Elementor Masonry Items\n *\n * @param {Object} alm The alm object.\n * @param {string} container_class The container classname.\n * @param {string} item_class The item classname.\n */\nfunction positionMasonryItems(alm, container_class, item_class) {\n var heights = [];\n\n // Get Elementor Settings\n var columnsCount = alm.addons.elementor_masonry_columns;\n var columnsCountTablet = alm.addons.elementor_masonry_columns_tablet;\n var columnsCountMobile = alm.addons.elementor_masonry_columns_mobile;\n var verticalSpaceBetween = alm.addons.elementor_masonry_gap;\n var columns = columnsCount;\n\n // Get Elementor Breakpoints\n var breakpoints = window.elementorFrontendConfig && window.elementorFrontendConfig.breakpoints ? window.elementorFrontendConfig.breakpoints : 0;\n var windowW = window.innerWidth;\n\n // Set Columns\n if (windowW > breakpoints.lg) {\n columns = columnsCount;\n } else if (windowW > breakpoints.md) {\n columns = columnsCountTablet;\n } else {\n columns = columnsCountMobile;\n }\n\n // Get Containers\n var container = document.querySelector(container_class);\n if (!container) {\n return false;\n }\n var items = container.querySelectorAll(item_class);\n if (!items) {\n return false;\n }\n\n // Loop items\n items.forEach(function (item, index) {\n var row = Math.floor(index / columns);\n var itemHeight = item.getBoundingClientRect().height + verticalSpaceBetween;\n if (row) {\n var itemPosition = jQuery(item).position();\n var indexAtRow = index % columns;\n var pullHeight = Math.round(itemPosition.top) - heights[indexAtRow];\n pullHeight *= -1;\n item.style.marginTop = \"\".concat(Math.round(pullHeight), \"px\");\n heights[indexAtRow] += itemHeight;\n } else {\n heights.push(itemHeight);\n }\n });\n}\n\n/**\n * Determine the type of elementor widget (woocommerce || posts)\n *\n * @param {HTMLElement} target The target element.\n * @return {string} The Elementor type.\n */\nfunction elementorGetWidgetType(target) {\n if (!target) {\n return false;\n }\n\n // Get Elementor type based on container class.\n if (target.classList.contains('elementor-wc-products')) {\n return 'woocommerce';\n } else if (target.classList.contains('elementor-widget-loop-grid')) {\n return 'loop-grid';\n }\n return 'posts';\n}\n\n/**\n * Get the pagination container for the Elementor pagination.\n *\n * @param {Object} alm The alm object.\n * @param {Element} content The HTML content to search.\n * @param {string} dir the direction, next of prev.\n * @return {HTMLElement} The pagination element.\n */\nfunction elementorGetPagedURL(alm, content) {\n var _addons$elementor_set, _element$querySelecto;\n var dir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'next';\n var _alm$addons = alm.addons,\n addons = _alm$addons === void 0 ? {} : _alm$addons;\n\n // Locate the pagination container.\n var element = (content === null || content === void 0 ? void 0 : content.querySelector(addons === null || addons === void 0 ? void 0 : addons.elementor_pagination_class)) || (content === null || content === void 0 ? void 0 : content.querySelector(\".\".concat(addons === null || addons === void 0 || (_addons$elementor_set = addons.elementor_settings) === null || _addons$elementor_set === void 0 ? void 0 : _addons$elementor_set.pagination_class)));\n\n // Get URL from the pagination element.\n var page = element === null || element === void 0 || (_element$querySelecto = element.querySelector(\"a.\".concat(dir))) === null || _element$querySelecto === void 0 ? void 0 : _element$querySelecto.href;\n\n // Return the paged URL element.\n return page ? page : false;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/elementor.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/filters.js": -/*!*******************************************!*\ - !*** ./src/frontend/js/addons/filters.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addFiltersAttributes: function() { return /* binding */ addFiltersAttributes; },\n/* harmony export */ buildFilterURL: function() { return /* binding */ buildFilterURL; },\n/* harmony export */ filtersCreateParams: function() { return /* binding */ filtersCreateParams; },\n/* harmony export */ parseQuerystring: function() { return /* binding */ parseQuerystring; }\n/* harmony export */ });\n/* harmony import */ var _functions_getParameterByName__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/getParameterByName */ \"./src/frontend/js/functions/getParameterByName.js\");\n/* harmony import */ var _functions_getQueryVariable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/getQueryVariable */ \"./src/frontend/js/functions/getQueryVariable.js\");\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction filtersCreateParams(alm) {\n var _alm$listing;\n var listing = alm.listing;\n alm.addons.filters = (alm === null || alm === void 0 || (_alm$listing = alm.listing) === null || _alm$listing === void 0 || (_alm$listing = _alm$listing.dataset) === null || _alm$listing === void 0 ? void 0 : _alm$listing.filters) === 'true';\n if (alm.addons.filters) {\n alm.addons.filters_url = listing.dataset.filtersUrl === 'true';\n alm.addons.filters_target = listing.dataset.filtersTarget ? listing.dataset.filtersTarget : false;\n alm.addons.filters_paging = listing.dataset.filtersPaging === 'true';\n alm.addons.filters_scroll = listing.dataset.filtersScroll === 'true';\n alm.addons.filters_scrolltop = listing.dataset.filtersScrolltop ? listing.dataset.filtersScrolltop : '30';\n alm.addons.filters_debug = listing.dataset.filtersDebug;\n alm.facets = listing.dataset.facets === 'true';\n\n // Display warning when `filters_target` parameter is missing.\n if (!alm.addons.filters_target) {\n console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters=\"true\" target=\"filters\"]');\n }\n\n // Parse querystring value for pg.\n var page = (0,_functions_getParameterByName__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('pg');\n alm.addons.filters_startpage = page !== null ? parseInt(page) : 0;\n\n // Handle a paged URL with filters.\n if (alm.addons.filters_startpage > 0) {\n if (alm.addons.paging) {\n // Paging add-on: Set current page value.\n alm.page = alm.addons.filters_startpage - 1;\n } else {\n // Set posts_per_page value to load all required posts.\n alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;\n alm.paged = true;\n }\n }\n }\n return alm;\n}\n\n/**\n * Create data attributes for a Filters item.\n *\n * @param {Object} alm The ALM object.\n * @param {HTMLElement} element The element HTML node.\n * @param {number} pagenum The current page number.\n * @return {HTMLElement} Modified HTML element.\n */\nfunction addFiltersAttributes(alm, element, pagenum) {\n var canonical_url = alm.canonical_url;\n var querystring = window.location.search;\n element.classList.add('alm-filters');\n element.dataset.page = pagenum;\n if (pagenum > 1) {\n element.dataset.url = canonical_url + buildFilterURL(alm, querystring, pagenum);\n } else {\n element.dataset.url = canonical_url + buildFilterURL(alm, querystring, 0);\n }\n return element;\n}\n\n/**\n * Parse a filter querystring for returning caches directories.\n *\n * @param {string} path The URL path.\n * @since 5.3.1\n */\nfunction parseQuerystring(path) {\n // Get querystring\n var query = window.location.search.substring(1);\n var obj = '';\n var cache_dir = '';\n\n // Parse querystring into object\n if (query) {\n obj = JSON.parse('{\"' + query.replace(/&/g, '\",\"').replace(/=/g, '\":\"') + '\"}', function (key, value) {\n // Replace + with - in URL\n return key === '' ? value : decodeURIComponent(value.replace(/\\+/g, '-'));\n });\n\n // Remove the following properties from the object as they should not be included in the cache ID\n\n if (obj.pg) {\n // `pg` object prop\n delete obj.pg;\n }\n if (obj.auto) {\n // `auto` object prop\n delete obj.auto;\n }\n }\n if (obj) {\n cache_dir += '/';\n Object.keys(obj).forEach(function (key, index) {\n cache_dir += index > 0 ? '--' : '';\n cache_dir += \"\".concat(key, \"--\").concat(obj[key]);\n });\n }\n return path + cache_dir;\n}\n\n/**\n * Build new paging URL for filters.\n *\n * @param {Object} alm The ALM object.\n * @param {string} querystring The current querystring.\n * @param {number} page The page number.\n * @return {string} The querystring.\n * @since 5.3.5\n */\nfunction buildFilterURL(alm) {\n var querystring = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var qs = querystring;\n if (alm.addons.filters_paging) {\n if (page > 1) {\n // Paged\n if (qs) {\n // If already has `pg` in querystring\n if ((0,_functions_getQueryVariable__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('pg')) {\n qs = querystring.replace(/(pg=)[^\\&]+/, '$1' + page);\n } else {\n qs = querystring + '&pg=' + page;\n }\n } else {\n qs = '?pg=' + page;\n }\n } else {\n // Not Paged\n qs = querystring.replace(/(pg=)[^\\&]+/, '');\n qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring\n qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols\n }\n }\n\n return qs;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/filters.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/next-page.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/next-page.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ nextpageCreateParams: function() { return /* binding */ nextpageCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction nextpageCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.nextpage = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.nextpage) === 'true';\n if (alm.addons.nextpage) {\n alm.addons.nextpage_urls = listing.dataset.nextpageUrls === undefined ? 'true' : listing.dataset.nextpageUrls;\n alm.addons.nextpage_scroll = listing.dataset.nextpageScroll === undefined ? 'false:30' : listing.dataset.nextpageScroll;\n alm.addons.nextpage_post_id = listing.dataset.nextpagePostId ? listing.dataset.nextpagePostId : false;\n alm.addons.nextpage_startpage = listing.dataset.nextpageStartpage ? parseInt(listing.dataset.nextpageStartpage) : 1;\n alm.addons.nextpage_title_template = listing.dataset.nextpageTitleTemplate;\n alm.addons.nextpage_postTitle = alm.listing.dataset.nextpagePostTitle;\n\n // Set default fallbacks.\n alm.posts_per_page = 1;\n alm.orginal_posts_per_page = 1;\n if (!alm.addons.nextpage_post_id) {\n alm.addons.nextpage = false;\n }\n if (alm.addons.nextpage_startpage > 1) {\n alm.paged = true;\n }\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/next-page.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/paging.js": -/*!******************************************!*\ - !*** ./src/frontend/js/addons/paging.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ pagingComplete: function() { return /* binding */ pagingComplete; },\n/* harmony export */ pagingCreateParams: function() { return /* binding */ pagingCreateParams; }\n/* harmony export */ });\n/* harmony import */ var _modules_insertScript__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/insertScript */ \"./src/frontend/js/modules/insertScript.js\");\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction pagingCreateParams(alm) {\n var listing = alm.listing;\n alm.addons.paging = listing.dataset.paging === 'true';\n if (alm.addons.paging) {\n alm.addons.paging_init = true;\n alm.addons.paging_controls = listing.dataset.pagingControls === 'true';\n alm.addons.paging_show_at_most = listing.dataset.pagingShowAtMost ? parseInt(listing.dataset.pagingShowAtMost) : 6;\n alm.addons.paging_classes = listing.dataset.pagingClasses;\n alm.addons.paging_first_label = listing.dataset.pagingFirstLabel;\n alm.addons.paging_previous_label = listing.dataset.pagingPreviousLabel;\n alm.addons.paging_next_label = listing.dataset.pagingNextLabel;\n alm.addons.paging_last_label = listing.dataset.pagingLastLabel;\n alm.addons.paging_scroll = listing.dataset.pagingScroll ? listing.dataset.pagingScroll : false;\n alm.addons.paging_scrolltop = listing.dataset.pagingScrolltop ? parseInt(listing.dataset.pagingScrolltop) : 100;\n alm.addons.paging_container = listing.querySelector('.alm-paging-content');\n alm.pause = alm.addons.preloaded ? true : alm.pause; // If preloaded, pause ALM.\n }\n\n return alm;\n}\n\n/**\n * Function dispatched after paging content has been loaded.\n *\n * @param {Object} alm The alm object.\n * @param {boolean} alm_is_filtering Is ALM filtering.\n * @param {boolean} init Is first run.\n */\nfunction pagingComplete(alm) {\n var alm_is_filtering = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var main = alm.main,\n AjaxLoadMore = alm.AjaxLoadMore,\n last_loaded = alm.last_loaded;\n main.classList.remove('alm-loading');\n AjaxLoadMore.triggerAddons(alm);\n if (init) {\n if (typeof almPagingComplete === 'function') {\n window.almPagingComplete();\n }\n } else {\n // Dispatch almOnPagingComplete callback when not alm.init.\n if (typeof almOnPagingComplete === 'function') {\n window.almOnPagingComplete(alm); // Callback: Paging Add-on Complete.\n }\n }\n\n if (alm_is_filtering && alm.addons.filters && typeof almFiltersAddonComplete === 'function') {\n window.almFiltersAddonComplete(main); // Callback: Filters Add-on Complete\n }\n\n if (typeof almComplete === 'function') {\n window.almComplete(alm); // Callback: ALM Complete\n }\n\n // Trigger tags in templates.\n _modules_insertScript__WEBPACK_IMPORTED_MODULE_0__[\"default\"].init(last_loaded);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/paging.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/preloaded.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/preloaded.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ preloadedCreateParams: function() { return /* binding */ preloadedCreateParams; },\n/* harmony export */ setPreloadedParams: function() { return /* binding */ setPreloadedParams; }\n/* harmony export */ });\n/* harmony import */ var _functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/stripEmptyNodes */ \"./src/frontend/js/functions/stripEmptyNodes.js\");\n/* harmony import */ var _filters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filters */ \"./src/frontend/js/addons/filters.js\");\n/* harmony import */ var _seo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./seo */ \"./src/frontend/js/addons/seo.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction preloadedCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing,\n addons = alm.addons;\n alm.addons.preloaded = listing.dataset.preloaded === 'true';\n alm.addons.preloaded_amount = listing !== null && listing !== void 0 && (_listing$dataset = listing.dataset) !== null && _listing$dataset !== void 0 && _listing$dataset.preloadedAmount ? parseInt(listing.dataset.preloadedAmount) : alm.posts_per_page;\n if (!alm.addons.preloaded) {\n alm.addons.preloaded_amount = 0;\n }\n if (addons.preloaded) {\n if (alm !== null && alm !== void 0 && alm.localize) {\n // Disable ALM if total_posts is equal to or less than preloaded_amount.\n var _alm$localize$total_p = alm.localize.total_posts,\n total_posts = _alm$localize$total_p === void 0 ? 0 : _alm$localize$total_p;\n if (parseInt(total_posts) <= addons.preloaded_amount) {\n alm.addons.preloaded_total_posts = parseInt(total_posts);\n alm.disable_ajax = true;\n }\n }\n }\n return alm;\n}\n\n/**\n * Set parameters on HTML elements for preloaded results.\n *\n * @param {Object} alm The ALM object.\n * @since 7.0.0\n */\nfunction setPreloadedParams(alm) {\n var addons = alm.addons,\n listing = alm.listing;\n if (addons.paging) {\n return; // Exit if paging.\n }\n\n // Parse preloaded data into array of HTML elements.\n var data = (0,_functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_toConsumableArray(listing === null || listing === void 0 ? void 0 : listing.childNodes));\n\n // Get first element in the data array.\n var firstElement = data !== null && data !== void 0 && data.length && data[0] ? data[0] : false;\n if (firstElement) {\n if (addons !== null && addons !== void 0 && addons.seo) {\n (0,_seo__WEBPACK_IMPORTED_MODULE_2__.addSEOAttributes)(alm, firstElement, 1);\n }\n if (addons !== null && addons !== void 0 && addons.filters) {\n (0,_filters__WEBPACK_IMPORTED_MODULE_1__.addFiltersAttributes)(alm, firstElement, 1);\n }\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/preloaded.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/queryLoop.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/addons/queryLoop.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ queryLoopCreateParams: function() { return /* binding */ queryLoopCreateParams; },\n/* harmony export */ queryLoopGetContent: function() { return /* binding */ queryLoopGetContent; },\n/* harmony export */ queryLoopInit: function() { return /* binding */ queryLoopInit; },\n/* harmony export */ queryloop: function() { return /* binding */ queryloop; },\n/* harmony export */ queryloopLoaded: function() { return /* binding */ queryloopLoaded; }\n/* harmony export */ });\n/* harmony import */ var _functions_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/constants */ \"./src/frontend/js/functions/constants.js\");\n/* harmony import */ var _functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/dispatchScrollEvent */ \"./src/frontend/js/functions/dispatchScrollEvent.js\");\n/* harmony import */ var _functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../functions/getButtonURL */ \"./src/frontend/js/functions/getButtonURL.js\");\n/* harmony import */ var _modules_lazyImages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../modules/lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n/* harmony import */ var _modules_loadItems__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modules/loadItems */ \"./src/frontend/js/modules/loadItems.js\");\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n\n\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object|null} The modified object.\n */\nfunction queryLoopCreateParams(alm) {\n var main = alm.main;\n var blockClassname = 'wp-block-query';\n\n // Get the parent container.\n var container = main.closest(\".\".concat(blockClassname));\n\n // If parent is not a .wp-block-query, return alm.\n if (!container) {\n return alm;\n }\n\n // If parent is a wp-block-query, set queryloop settings.\n alm.addons.queryloop = true;\n alm.addons.queryloop_settings = {\n container: container,\n classes: {\n container: \".\".concat(container.className.replace(/ /g, '.')),\n listing: '.wp-block-post-template',\n element: '.wp-block-post',\n pagination: '.wp-block-query-pagination',\n pagination_prev: 'a.wp-block-query-pagination-previous',\n pagination_next: 'a.wp-block-query-pagination-next'\n },\n pagination: container.querySelector('.wp-block-query-pagination'),\n pagination_prev: container.querySelector('a.wp-block-query-pagination-previous'),\n pagination_next: container.querySelector('a.wp-block-query-pagination-next')\n };\n return alm;\n}\n\n/**\n * Set up the instance of Query Loop.\n *\n * @param {Object} alm\n */\nfunction queryLoopInit(alm) {\n var rel = alm.rel,\n addons = alm.addons,\n button = alm.button,\n buttonPrev = alm.buttonPrev,\n page = alm.page;\n var _addons$queryloop_set = addons.queryloop_settings,\n settings = _addons$queryloop_set === void 0 ? {} : _addons$queryloop_set;\n\n // Set button state & URL.\n if (rel === 'prev' && buttonPrev) {\n var _settings$pagination_;\n var prevURL = (settings === null || settings === void 0 || (_settings$pagination_ = settings.pagination_prev) === null || _settings$pagination_ === void 0 ? void 0 : _settings$pagination_.href) || false;\n if (prevURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(buttonPrev, page - 1, prevURL);\n } else {\n alm.AjaxLoadMore.triggerDonePrev();\n }\n } else {\n var _settings$pagination_2;\n var nextURL = (settings === null || settings === void 0 || (_settings$pagination_2 = settings.pagination_next) === null || _settings$pagination_2 === void 0 ? void 0 : _settings$pagination_2.href) || false;\n if (nextURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(button, page + 1, nextURL);\n } else {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n}\n\n/**\n * Get the content, title and results text from the Ajax response.\n *\n * @param {Object} alm The alm object.\n * @param {string} url The request URL.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n */\nfunction queryLoopGetContent(alm, url, response, cache_slug) {\n var data = _functions_constants__WEBPACK_IMPORTED_MODULE_0__.API_DATA_SHAPE; // Default data object.\n\n // Successful response.\n if (response.status === 200 && response.data) {\n var _queryloop_settings$c, _queryloop_settings$c2, _queryloop_settings$c3, _queryloop_settings$c4;\n var addons = alm.addons,\n page = alm.page,\n button = alm.button,\n buttonPrev = alm.buttonPrev,\n rel = alm.rel;\n var _addons$queryloop_set2 = addons.queryloop_settings,\n queryloop_settings = _addons$queryloop_set2 === void 0 ? {} : _addons$queryloop_set2;\n\n // Create temp div to hold response data.\n var content = document.createElement('div');\n content.innerHTML = response.data;\n\n // Set button state & URL.\n if (rel === 'prev' && buttonPrev) {\n var prevURL = getPagedURL(queryloop_settings, content, 'prev');\n if (prevURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(buttonPrev, page - 1, prevURL);\n } else {\n alm.AjaxLoadMore.triggerDonePrev();\n }\n } else {\n var nextURL = getPagedURL(queryloop_settings, content);\n if (nextURL) {\n (0,_functions_getButtonURL__WEBPACK_IMPORTED_MODULE_2__.setButtonAtts)(button, page + 1, nextURL);\n } else {\n alm.AjaxLoadMore.triggerDone();\n }\n }\n\n // Get Page Title\n var title = content.querySelector('title').innerHTML;\n data.pageTitle = title;\n\n // Get container.\n var container = content === null || content === void 0 ? void 0 : content.querySelector(\"\".concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c = queryloop_settings.classes) === null || _queryloop_settings$c === void 0 ? void 0 : _queryloop_settings$c.container, \" \").concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c2 = queryloop_settings.classes) === null || _queryloop_settings$c2 === void 0 ? void 0 : _queryloop_settings$c2.listing));\n if (!container) {\n console.warn('Ajax Load More: Unable to locate Query Loop container.');\n return data;\n }\n\n // Get the first item and append data attributes.\n var item = container ? container.querySelector(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c3 = queryloop_settings.classes) === null || _queryloop_settings$c3 === void 0 ? void 0 : _queryloop_settings$c3.element) : null;\n if (item) {\n item.classList.add('alm-queryloop');\n item.dataset.url = url;\n item.dataset.page = rel === 'next' ? page + 1 : page - 1;\n item.dataset.pageTitle = title;\n }\n\n // Count the number of returned items.\n var items = container.querySelectorAll(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c4 = queryloop_settings.classes) === null || _queryloop_settings$c4 === void 0 ? void 0 : _queryloop_settings$c4.element);\n if (items) {\n // Set the html to the elementor container data.\n data.html = container ? container.innerHTML : '';\n data.meta.postcount = items.length;\n data.meta.totalposts = items.length;\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_5__.createCache)(alm, data, cache_slug);\n }\n }\n return data;\n}\n\n/**\n * Core ALM Query Loop loader.\n *\n * @param {HTMLElement} content The HTML data.\n * @param {Object} alm The alm object.\n */\nfunction queryloop(content, alm) {\n if (!content || !alm) {\n alm.AjaxLoadMore.triggerDone();\n return false;\n }\n return new Promise(function (resolve) {\n var _queryloop_settings$c5, _queryloop_settings$c6;\n var addons = alm.addons;\n var _addons$queryloop_set3 = addons.queryloop_settings,\n queryloop_settings = _addons$queryloop_set3 === void 0 ? {} : _addons$queryloop_set3;\n\n // Get post listing container.\n var container = queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c5 = queryloop_settings.container) === null || _queryloop_settings$c5 === void 0 ? void 0 : _queryloop_settings$c5.querySelector(\"\".concat(queryloop_settings.classes.listing));\n\n // Get all individual items in Ajax response.\n var items = content.querySelectorAll(\"\".concat(queryloop_settings === null || queryloop_settings === void 0 || (_queryloop_settings$c6 = queryloop_settings.classes) === null || _queryloop_settings$c6 === void 0 ? void 0 : _queryloop_settings$c6.element));\n if (container && items) {\n var queryloopItems = Array.prototype.slice.call(items); // Convert NodeList to Array\n\n // Trigger almQueryLoopLoaded callback.\n if (typeof almQueryLoopLoaded === 'function') {\n window.almQueryLoopLoaded(queryloopItems);\n }\n\n // Load the items.\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_modules_loadItems__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(container, queryloopItems, alm);\n case 2:\n resolve(true);\n case 3:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function (e) {\n console.warn(e, 'There was an error with Query Loop'); // eslint-disable-line no-console\n });\n } else {\n resolve(false);\n }\n });\n}\n\n/**\n * Query Loop loaded and dispatch actions.\n *\n * @param {Object} alm The alm object.\n */\nfunction queryloopLoaded(alm) {\n var page = alm.page,\n AjaxLoadMore = alm.AjaxLoadMore,\n addons = alm.addons;\n var nextPage = page + 1;\n var max_pages = addons.elementor_max_pages;\n\n // Lazy load images if necessary.\n (0,_modules_lazyImages__WEBPACK_IMPORTED_MODULE_3__.lazyImages)(alm);\n\n // Trigger almComplete.\n if (typeof almComplete === 'function' && alm.transition !== 'masonry') {\n window.almComplete(alm);\n }\n\n // End transitions.\n AjaxLoadMore.transitionEnd();\n\n // ALM Done.\n if (nextPage >= max_pages) {\n AjaxLoadMore.triggerDone();\n }\n (0,_functions_dispatchScrollEvent__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n}\n\n/**\n * Get the pagination container for the Elementor pagination.\n *\n * @param {Object} settings The query loop settings object.\n * @param {Element} content The HTML content to search.\n * @param {string} dir the direction, next of prev.\n * @return {HTMLElement} The pagination element.\n */\nfunction getPagedURL(settings, content) {\n var _settings$classes, _settings$classes2, _pagination$querySele;\n var dir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'next';\n // Locate the pagination container.\n var pagination = content === null || content === void 0 ? void 0 : content.querySelector(\"\".concat(settings.classes.container, \" \").concat(settings.classes.pagination));\n\n // Get the pagination target class.\n var target = dir === 'next' ? (_settings$classes = settings.classes) === null || _settings$classes === void 0 ? void 0 : _settings$classes.pagination_next : (_settings$classes2 = settings.classes) === null || _settings$classes2 === void 0 ? void 0 : _settings$classes2.pagination_prev;\n\n // Get the next URL from the pagination element.\n var page = pagination === null || pagination === void 0 || (_pagination$querySele = pagination.querySelector(target)) === null || _pagination$querySele === void 0 ? void 0 : _pagination$querySele.href;\n\n // Return the next page URL.\n return page ? page : false;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/queryLoop.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/seo.js": -/*!***************************************!*\ - !*** ./src/frontend/js/addons/seo.js ***! - \***************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addSEOAttributes: function() { return /* binding */ addSEOAttributes; },\n/* harmony export */ createSEOOffset: function() { return /* binding */ createSEOOffset; },\n/* harmony export */ getSEOPageNum: function() { return /* binding */ getSEOPageNum; },\n/* harmony export */ seoCreateParams: function() { return /* binding */ seoCreateParams; }\n/* harmony export */ });\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction seoCreateParams(alm) {\n var _alm$listing;\n var listing = alm.listing;\n alm.addons.seo = listing.dataset.seo === 'true';\n if (alm.addons.seo) {\n alm.addons.seo_offset = listing.dataset.seoOffset || false;\n alm.addons.seo_permalink = listing.dataset.seoPermalink;\n alm.addons.seo_trailing_slash = listing.dataset.seoTrailingSlash === 'false' ? '' : '/';\n alm.addons.seo_leading_slash = listing.dataset.seoLeadingSlash === 'true' ? '/' : '';\n if (alm.addons.seo_offset === 'true') {\n alm.offset = alm.posts_per_page;\n }\n }\n alm.start_page = (alm === null || alm === void 0 || (_alm$listing = alm.listing) === null || _alm$listing === void 0 || (_alm$listing = _alm$listing.dataset) === null || _alm$listing === void 0 ? void 0 : _alm$listing.seoStartPage) || '';\n if (alm.start_page) {\n alm.start_page = parseInt(alm.start_page);\n alm.addons.seo_scroll = listing.dataset.seoScroll;\n alm.addons.seo_scrolltop = listing.dataset.seoScrolltop;\n alm.addons.seo_controls = listing.dataset.seoControls;\n alm.paged = false;\n if (alm.start_page > 1) {\n alm.paged = true;\n if (alm.addons.paging) {\n // Paging add-on: Set current page value.\n alm.page = alm.start_page - 1;\n } else {\n // Set posts_per_page value to load all required posts.\n alm.posts_per_page = alm.start_page * alm.posts_per_page;\n }\n }\n } else {\n alm.start_page = 1;\n }\n return alm;\n}\n\n/**\n * Create data attributes for an SEO item.\n *\n * @param {Object} alm The ALM object.\n * @param {HTMLElement} element The element HTML node.\n * @param {number} pagenum The current page number.\n * @param {boolean} skipOffset Skip the SEO offset check.\n * @return {HTMLElement} Modified HTML element.\n */\nfunction addSEOAttributes(alm, element, pagenum) {\n var skipOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var addons = alm.addons,\n canonical_url = alm.canonical_url;\n var _alm_localize = alm_localize,\n _alm_localize$retain_ = _alm_localize.retain_querystring,\n retain_querystring = _alm_localize$retain_ === void 0 ? true : _alm_localize$retain_;\n var querystring = retain_querystring ? window.location.search : '';\n pagenum = !skipOffset ? getSEOPageNum(addons === null || addons === void 0 ? void 0 : addons.seo_offset, pagenum) : pagenum;\n element.classList.add('alm-seo');\n element.dataset.page = pagenum;\n if (addons.seo_permalink === 'default') {\n // Default Permalinks\n if (pagenum > 1) {\n element.dataset.url = \"\".concat(canonical_url).concat(querystring, \"&paged=\").concat(pagenum);\n } else {\n element.dataset.url = \"\".concat(canonical_url).concat(querystring);\n }\n } else {\n // Pretty Permalinks\n if (pagenum > 1) {\n element.dataset.url = \"\".concat(canonical_url).concat(addons.seo_leading_slash, \"page/\").concat(pagenum).concat(addons.seo_trailing_slash).concat(querystring);\n } else {\n element.dataset.url = \"\".concat(canonical_url).concat(querystring);\n }\n }\n return element;\n}\n\n/**\n * Get the current page number.\n *\n * @param {string} seo_offset Is this an SEO offset.\n * @param {number} page The page number,\n * @return {number} The page number.\n */\nfunction getSEOPageNum(seo_offset, page) {\n return seo_offset === 'true' ? parseInt(page) + 1 : parseInt(page);\n}\n\n/**\n * Create div to hold offset values for SEO.\n *\n * @param {Object} alm The ALM object.\n */\nfunction createSEOOffset(alm) {\n var offsetDiv = document.createElement('div');\n // Add data attributes.\n offsetDiv = addSEOAttributes(alm, offsetDiv, 1, true);\n\n // Insert into ALM container.\n alm.main.insertBefore(offsetDiv, alm.listing);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/addons/seo.js?"); - -/***/ }), - -/***/ "./src/frontend/js/addons/singleposts.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/addons/singleposts.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addSinglePostsAttributes: function() { return /* binding */ addSinglePostsAttributes; },\n/* harmony export */ getNestedNextPageElement: function() { return /* binding */ getNestedNextPageElement; },\n/* harmony export */ singlepostsCreateParams: function() { return /* binding */ singlepostsCreateParams; },\n/* harmony export */ singlepostsHTML: function() { return /* binding */ singlepostsHTML; }\n/* harmony export */ });\n/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cache */ \"./src/frontend/js/addons/cache.js\");\n\n\n/**\n * Create add-on params for ALM.\n *\n * @param {Object} alm The alm object.\n * @return {Object} The modified object.\n */\nfunction singlepostsCreateParams(alm) {\n var _listing$dataset;\n var listing = alm.listing;\n alm.addons.single_post = (listing === null || listing === void 0 || (_listing$dataset = listing.dataset) === null || _listing$dataset === void 0 ? void 0 : _listing$dataset.singlePost) === 'true';\n if (alm.addons.single_post) {\n alm.addons.single_post_id = listing.dataset.singlePostId;\n alm.addons.single_post_query = listing.dataset.singlePostQuery;\n alm.addons.single_post_order = listing.dataset.singlePostOrder === undefined ? 'previous' : listing.dataset.singlePostOrder;\n alm.addons.single_post_init_id = listing.dataset.singlePostId;\n alm.addons.single_post_taxonomy = listing.dataset.singlePostTaxonomy === undefined ? '' : listing.dataset.singlePostTaxonomy;\n alm.addons.single_post_excluded_terms = listing.dataset.singlePostExcludedTerms === undefined ? '' : listing.dataset.singlePostExcludedTerms;\n alm.addons.single_post_progress_bar = listing.dataset.singlePostProgressBar === undefined ? '' : listing.dataset.singlePostProgressBar;\n alm.addons.single_post_target = listing.dataset.singlePostTarget === undefined ? '' : listing.dataset.singlePostTarget;\n alm.addons.single_post_preview = listing.dataset.singlePostPreview === undefined ? false : true;\n\n // Post Preview. Does this even work?\n if (alm.addons.single_post_preview) {\n var singlePostPreviewData = listing.dataset.singlePostPreview.split(':');\n alm.addons.single_post_preview_data = {\n button_label: singlePostPreviewData[0] ? singlePostPreviewData[0] : 'Continue Reading',\n height: singlePostPreviewData[1] ? singlePostPreviewData[1] : 500,\n element: singlePostPreviewData[2] ? singlePostPreviewData[2] : 'default',\n className: 'alm-single-post--preview'\n };\n }\n if (alm.addons.single_post_id === undefined) {\n alm.addons.single_post_id = '';\n alm.addons.single_post_init_id = '';\n }\n\n // Set default fallbacks.\n alm.addons.single_post_permalink = '';\n alm.addons.single_post_title = '';\n alm.addons.single_post_slug = '';\n alm.addons.single_post_cache = false;\n alm.addons.single_post_title_template = listing.dataset.singlePostTitleTemplate;\n alm.addons.single_post_siteTitle = listing.dataset.singlePostSiteTitle;\n alm.addons.single_post_siteTagline = listing.dataset.singlePostSiteTagline;\n alm.addons.single_post_scroll = listing.dataset.singlePostScroll;\n alm.addons.single_post_scroll_speed = listing.dataset.singlePostScrollSpeed;\n alm.addons.single_post_scroll_top = listing.dataset.singlePostScrolltop;\n alm.addons.single_post_controls = listing.dataset.singlePostControls;\n }\n return alm;\n}\n\n/**\n * Create the HTML for loading Single Posts.\n *\n * @param {Object} alm The alm object.\n * @param {Object} response Query response.\n * @param {string} cache_slug The cache slug.\n * @return {Object} Results data.\n * @since 5.1.8.1\n */\nfunction singlepostsHTML(alm, response, cache_slug) {\n var data = {\n html: '',\n meta: {\n postcount: 0,\n totalposts: 0\n }\n };\n\n // Get target element.\n var _alm$addons = alm.addons,\n single_post_target = _alm$addons.single_post_target,\n single_post_id = _alm$addons.single_post_id;\n if (response.status === 200 && response.data && single_post_target) {\n var _window;\n // Create temp div to hold response data.\n var div = document.createElement('div');\n div.innerHTML = response.data;\n\n // Get target element.\n var html = div.querySelector(single_post_target);\n if (!html) {\n console.warn(\"Ajax Load More: Unable to find \".concat(single_post_target, \" element.\"));\n return data;\n }\n\n // Get any custom target elements.\n if ((_window = window) !== null && _window !== void 0 && _window.almSinglePostsCustomElements) {\n var _window2;\n var customElements = singlepostsGetCustomElements(div, (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.almSinglePostsCustomElements, single_post_id);\n if (customElements) {\n // Get first element in HTML.\n var target = html.querySelector('article, section, div');\n if (target) {\n target.appendChild(customElements);\n }\n }\n }\n data.html = html.innerHTML;\n data.meta = {\n postcount: 1,\n totalposts: 1\n };\n\n // Create cache file.\n (0,_cache__WEBPACK_IMPORTED_MODULE_0__.createCache)(alm, data, cache_slug);\n }\n return data;\n}\n\n/**\n * Find nested Next Page instance and prepend first element to the returned HTML.\n *\n * @param {Element} html The wrapper element.\n * @return {Element} The modified element.\n */\nfunction getNestedNextPageElement(html) {\n var nextpageElement = html.querySelector('.ajax-load-more-wrap .alm-nextpage');\n if (!nextpageElement) {\n return html;\n }\n\n // Clone the nextpage element and clear the contents.\n var clone = nextpageElement.cloneNode(true);\n clone.innerHTML = '';\n\n // Insert the clone before the first child.\n html.insertBefore(clone, html.querySelector(':first-child'));\n return html;\n}\n\n/**\n * Collect custom target elements and append them to the returned HTML.\n * This function is useful to get elements from outside the ALM target and bring them into the returned HTML.\n * Useful for when CSS or JS may be loaded in the
<\\/p>)+/g, '');\n\n // Is this a paging instance.\n var paging = element === null || element === void 0 ? void 0 : element.querySelector('.alm-paging-content');\n if (paging) {\n paging.innerHTML = html;\n } else {\n element.innerHTML = html;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/noResults.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/parsers.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/functions/parsers.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ domParser: function() { return /* binding */ domParser; },\n/* harmony export */ tableParser: function() { return /* binding */ tableParser; }\n/* harmony export */ });\n/* harmony import */ var _functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/stripEmptyNodes */ \"./src/frontend/js/functions/stripEmptyNodes.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n/**\n * Convert a plain text string into an array of HTML nodes.\n *\n * @param {string} html The HTML string\n * @param {string} type The element type.\n * @return {Array} The HTML nodes as an array.\n * @since 5.0\n */\nfunction domParser() {\n var _data$body;\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text/html';\n if (!html) {\n return [];\n }\n var parser = new DOMParser();\n var data = parser.parseFromString(html, type);\n var nodes = data === null || data === void 0 || (_data$body = data.body) === null || _data$body === void 0 ? void 0 : _data$body.childNodes;\n return nodes ? (0,_functions_stripEmptyNodes__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_toConsumableArray(nodes)) : [];\n}\n\n/**\n * Convert retun table data into an array of HTML elements.\n *\n * @param {string} html Plain text HTML.\n * @return {Array} Array of HTML elements.\n * @since 5.0\n */\nfunction tableParser() {\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n if (!html) {\n return [];\n }\n // Create table element and add results to table body.\n var tbody = document.createElement('tbody');\n tbody.innerHTML = html;\n return [tbody];\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/parsers.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/queryParams.js": -/*!**************************************************!*\ - !*** ./src/frontend/js/functions/queryParams.js ***! - \**************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getAjaxParams: function() { return /* binding */ getAjaxParams; },\n/* harmony export */ getRestAPIParams: function() { return /* binding */ getRestAPIParams; },\n/* harmony export */ getTypeParams: function() { return /* binding */ getTypeParams; }\n/* harmony export */ });\n/* harmony import */ var _addons_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addons/cache */ \"./src/frontend/js/addons/cache.js\");\n\n\n/**\n * Build the data object to send with the Ajax request.\n *\n * @param {Object} alm The ALM object.\n * @param {string} queryType The query type.\n * @return {Object} The data object.\n * @since 3.6\n */\nfunction getAjaxParams(alm, queryType) {\n var addons = alm.addons,\n extensions = alm.extensions;\n\n // Defaults\n var data = {\n action: 'alm_get_posts',\n query_type: queryType,\n id: alm.id,\n post_id: parseInt(alm.post_id),\n slug: alm.slug,\n canonical_url: encodeURIComponent(alm.canonical_url),\n posts_per_page: parseInt(alm.posts_per_page),\n page: parseInt(alm.page),\n offset: parseInt(alm.offset),\n post_type: alm.post_type,\n repeater: alm.repeater,\n seo_start_page: alm.start_page\n };\n\n // Addons & Extensions\n\n if (extensions.acf) {\n data.acf = getTypeParams(alm, 'acf');\n if (extensions.acf_field_type !== 'relationship') {\n data.action = 'alm_acf';\n }\n }\n if (addons.comments) {\n data.comments = getTypeParams(alm, 'comments');\n data.posts_per_page = addons.comments_per_page;\n data.action = 'alm_comments';\n }\n if (addons.cta) {\n data.cta = getTypeParams(alm, 'cta');\n }\n if (addons.filters) {\n data.filters = addons.filters;\n data.filters_startpage = addons.filters_startpage;\n data.filters_target = addons.filters_target;\n data.facets = alm.facets;\n }\n if (addons.nextpage) {\n data.nextpage = getTypeParams(alm, 'nextpage');\n data.action = 'alm_nextpage';\n }\n if (addons.paging) {\n data.paging = addons.paging;\n }\n if (addons.preloaded) {\n data.preloaded = addons.preloaded;\n data.preloaded_amount = parseInt(addons.preloaded_amount);\n }\n if (addons.single_post) {\n data.single_post = getTypeParams(alm, 'single_post');\n }\n if (extensions.term_query) {\n data.term_query = getTypeParams(alm, 'term_query');\n data.action = 'alm_get_terms';\n }\n if (alm.extensions.users) {\n data.users = getTypeParams(alm, 'users');\n data.action = 'alm_users';\n }\n if (alm.theme_repeater) {\n data.theme_repeater = alm.theme_repeater;\n }\n\n // Query data params from ALM HTML element.\n if (alm.listing.dataset.lang) {\n data.lang = alm.listing.dataset.lang;\n }\n if (alm.listing.dataset.stickyPosts) {\n data.sticky_posts = alm.listing.dataset.stickyPosts;\n }\n if (alm.listing.dataset.postFormat) {\n data.post_format = alm.listing.dataset.postFormat;\n }\n if (alm.listing.dataset.category) {\n data.category = alm.listing.dataset.category;\n }\n if (alm.listing.dataset.categoryAnd) {\n data.category__and = alm.listing.dataset.categoryAnd;\n }\n if (alm.listing.dataset.categoryNotIn) {\n data.category__not_in = alm.listing.dataset.categoryNotIn;\n }\n if (alm.listing.dataset.tag) {\n data.tag = alm.listing.dataset.tag;\n }\n if (alm.listing.dataset.tagAnd) {\n data.tag__and = alm.listing.dataset.tagAnd;\n }\n if (alm.listing.dataset.tagNotIn) {\n data.tag__not_in = alm.listing.dataset.tagNotIn;\n }\n if (alm.listing.dataset.taxonomy) {\n data.taxonomy = alm.listing.dataset.taxonomy;\n }\n if (alm.listing.dataset.taxonomyTerms) {\n data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;\n }\n if (alm.listing.dataset.taxonomyOperator) {\n data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;\n }\n if (alm.listing.dataset.taxonomyIncludeChildren) {\n data.taxonomy_include_children = alm.listing.dataset.taxonomyIncludeChildren;\n }\n if (alm.listing.dataset.taxonomyRelation) {\n data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;\n }\n if (alm.listing.dataset.sortKey) {\n data.sort_key = alm.listing.dataset.sortKey;\n }\n if (alm.listing.dataset.metaKey) {\n data.meta_key = alm.listing.dataset.metaKey;\n }\n if (alm.listing.dataset.metaValue) {\n data.meta_value = alm.listing.dataset.metaValue;\n }\n if (alm.listing.dataset.metaCompare) {\n data.meta_compare = alm.listing.dataset.metaCompare;\n }\n if (alm.listing.dataset.metaRelation) {\n data.meta_relation = alm.listing.dataset.metaRelation;\n }\n if (alm.listing.dataset.metaType) {\n data.meta_type = alm.listing.dataset.metaType;\n }\n if (alm.listing.dataset.author) {\n data.author = alm.listing.dataset.author;\n }\n if (alm.listing.dataset.year) {\n data.year = alm.listing.dataset.year;\n }\n if (alm.listing.dataset.month) {\n data.month = alm.listing.dataset.month;\n }\n if (alm.listing.dataset.day) {\n data.day = alm.listing.dataset.day;\n }\n if (alm.listing.dataset.order) {\n data.order = alm.listing.dataset.order;\n }\n if (alm.listing.dataset.orderby) {\n data.orderby = alm.listing.dataset.orderby;\n }\n if (alm.listing.dataset.postStatus) {\n data.post_status = alm.listing.dataset.postStatus;\n }\n if (alm.listing.dataset.postIn) {\n data.post__in = alm.listing.dataset.postIn;\n }\n if (alm.listing.dataset.postNotIn) {\n data.post__not_in = alm.listing.dataset.postNotIn;\n }\n if (alm.listing.dataset.exclude) {\n data.exclude = alm.listing.dataset.exclude;\n }\n if (alm.listing.dataset.search) {\n data.search = alm.listing.dataset.search;\n }\n if (alm.listing.dataset.s) {\n data.search = alm.listing.dataset.s;\n }\n if (alm.listing.dataset.customArgs) {\n data.custom_args = alm.listing.dataset.customArgs;\n }\n if (alm.listing.dataset.vars) {\n data.vars = alm.listing.dataset.vars;\n }\n\n // Cache Params\n\n if (addons.cache) {\n data.cache_id = addons.cache_id;\n data.cache_logged_in = addons.cache_logged_in;\n data.cache_slug = (0,_addons_cache__WEBPACK_IMPORTED_MODULE_0__.getCacheSlug)(alm, data);\n }\n return data;\n}\n\n/**\n * Build the query params for content types.\n *\n * @param {Object} alm The ALM object.\n * @param {string} type The query type.\n * @return {Object} The query params.\n */\nfunction getTypeParams(alm, type) {\n var addons = alm.addons,\n extensions = alm.extensions;\n switch (type) {\n case 'acf':\n return {\n acf: 'true',\n post_id: extensions.acf_post_id,\n field_type: extensions.acf_field_type,\n field_name: extensions.acf_field_name,\n parent_field_name: extensions.acf_parent_field_name,\n row_index: extensions.acf_row_index\n };\n case 'comments':\n return {\n comments: 'true',\n post_id: addons.comments_post_id,\n per_page: addons.comments_per_page,\n type: addons.comments_type,\n style: addons.comments_style,\n template: addons.comments_template,\n callback: addons.comments_callback\n };\n case 'cta':\n return {\n cta: 'true',\n cta_position: addons.cta_position,\n cta_repeater: addons.cta_repeater,\n cta_theme_repeater: addons.cta_theme_repeater\n };\n case 'nextpage':\n return {\n nextpage: 'true',\n urls: addons.nextpage_urls,\n scroll: addons.nextpage_scroll,\n post_id: addons.nextpage_post_id,\n startpage: addons.nextpage_startpage,\n nested: alm.nested\n };\n case 'single_post':\n return {\n single_post: 'true',\n id: addons.single_post_id,\n slug: addons.single_post_slug\n };\n case 'term_query':\n return {\n term_query: 'true',\n taxonomy: extensions.term_query_taxonomy,\n hide_empty: extensions.term_query_hide_empty,\n number: extensions.term_query_number\n };\n case 'users':\n return {\n users: 'true',\n role: alm.listing.dataset.usersRole,\n include: alm.listing.dataset.usersInclude,\n exclude: alm.listing.dataset.usersExclude,\n per_page: alm.posts_per_page,\n order: alm.listing.dataset.usersOrder,\n orderby: alm.listing.dataset.usersOrderby\n };\n }\n}\n\n/**\n * Build the REST API data object to send with REST API request.\n *\n * @param {Object} alm The ALM object.\n * @return {Object} The data object.\n * @since 3.6\n */\nfunction getRestAPIParams(alm) {\n var data = {\n id: alm.id,\n post_id: parseInt(alm.post_id),\n posts_per_page: alm.posts_per_page,\n page: alm.page,\n offset: alm.offset,\n slug: alm.slug,\n canonical_url: encodeURIComponent(alm.canonical_url),\n post_type: alm.post_type,\n post_format: alm.listing.dataset.postFormat,\n category: alm.listing.dataset.category,\n category__not_in: alm.listing.dataset.categoryNotIn,\n tag: alm.listing.dataset.tag,\n tag__not_in: alm.listing.dataset.tagNotIn,\n taxonomy: alm.listing.dataset.taxonomy,\n taxonomy_terms: alm.listing.dataset.taxonomyTerms,\n taxonomy_operator: alm.listing.dataset.taxonomyOperator,\n taxonomy_relation: alm.listing.dataset.taxonomyRelation,\n meta_key: alm.listing.dataset.metaKey,\n meta_value: alm.listing.dataset.metaValue,\n meta_compare: alm.listing.dataset.metaCompare,\n meta_relation: alm.listing.dataset.metaRelation,\n meta_type: alm.listing.dataset.metaType,\n author: alm.listing.dataset.author,\n year: alm.listing.dataset.year,\n month: alm.listing.dataset.month,\n day: alm.listing.dataset.day,\n post_status: alm.listing.dataset.postStatus,\n order: alm.listing.dataset.order,\n orderby: alm.listing.dataset.orderby,\n post__in: alm.listing.dataset.postIn,\n post__not_in: alm.listing.dataset.postNotIn,\n search: alm.listing.dataset.search,\n s: alm.listing.dataset.s,\n custom_args: alm.listing.dataset.customArgs,\n vars: alm.listing.dataset.vars,\n lang: alm.lang,\n preloaded: alm.addons.preloaded,\n preloaded_amount: alm.addons.preloaded_amount,\n seo_start_page: alm.start_page\n };\n return data;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/queryParams.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/setContentParams.js": -/*!*******************************************************!*\ - !*** ./src/frontend/js/functions/setContentParams.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ setContentContainersParams: function() { return /* binding */ setContentContainersParams; }\n/* harmony export */ });\n/**\n * Set accessibility attributes on the containers.\n *\n * @param {Element} container The container element.\n * @param {Element} almListing The Ajax Load More container.\n */\nfunction setContentContainersParams(container, almListing) {\n container.setAttribute('aria-live', 'polite');\n container.setAttribute('aria-atomic', 'true');\n almListing.removeAttribute('aria-live');\n almListing.removeAttribute('aria-atomic');\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/setContentParams.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/setFocus.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/functions/setFocus.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ setFocus; }\n/* harmony export */ });\n/**\n * Set user focus to improve accessibility after load events.\n *\n * @param {Object} alm ALM object.\n * @param {Element} element The element to focus on.\n * @param {number} total The total number of posts returned.\n * @param {boolean} filtering Is this a filtering event.\n * @since 5.1\n */\nfunction setFocus(alm) {\n var _alm_localize;\n var element = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var total = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!((_alm_localize = alm_localize) !== null && _alm_localize !== void 0 && _alm_localize.a11y_focus) || !element) {\n return;\n }\n\n // WooCommerce||ELementor Add-ons.\n if (alm.addons.woocommerce || alm.addons.elementor) {\n moveFocus(false, false, element, false);\n return;\n }\n if (total < 1) {\n return; // Exit if no posts returned.\n }\n\n if (alm.addons.paging) {\n // Paging.\n moveFocus(alm.init, alm.addons.preloaded, alm.listing, filtering);\n } else if (alm.addons.single_post || alm.addons.nextpage) {\n // Single Posts || Next Page - Set `init` to false to trigger focus.\n moveFocus(false, alm.addons.preloaded, element, filtering);\n } else {\n // Standard.\n moveFocus(alm.init, alm.addons.preloaded, element, filtering);\n }\n}\n\n/**\n * Move user focus to latest elements that have been loaded.\n *\n * @param {boolean} init Initial run true or false.\n * @param {string} preloaded Preloaded true or false.\n * @param {Element} element The container HTML element.\n * @param {boolean} filtering Filtering true or false.\n * @since 5.1\n */\n\nfunction moveFocus() {\n var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var preloaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'false';\n var element = arguments.length > 2 ? arguments[2] : undefined;\n var filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (!filtering) {\n if ((init || !element) && preloaded !== 'true') {\n return; // Exit if first run\n }\n }\n\n element.setAttribute('tabIndex', '-1'); // Set tabIndex.\n element.style.outline = 'none'; // Set element outline.\n\n // Add slight delay for elements to settle into DOM.\n setTimeout(function () {\n element.focus({\n preventScroll: true\n });\n }, 25);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/setFocus.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/srcsetPolyfill.js": -/*!*****************************************************!*\ - !*** ./src/frontend/js/functions/srcsetPolyfill.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ srcsetPolyfill; }\n/* harmony export */ });\n/**\n * A srcset polyfill to get Masonry and ImagesLoaded working with Safari and Firefox.\n *\n * @param {HTMLElement} container Container HTML element.\n * @param {string} ua The user-agent string.\n * @since 5.0.2\n */\nfunction srcsetPolyfill() {\n var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n if (!container) {\n return false; // Exit if no container.\n }\n\n // Exit if useragent is Chrome, Safari or Windows.\n if (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') !== -1 || ua.indexOf('Firefox') > -1 || ua.indexOf('Windows') > -1) {\n return false;\n }\n\n // Get all images.\n var imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)');\n\n // Loop images.\n for (var i = 0; i < imgs.length; i++) {\n var img = imgs[i];\n img.classList.add('alm-loaded');\n img.outerHTML = img.outerHTML;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/srcsetPolyfill.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/stripEmptyNodes.js": -/*!******************************************************!*\ - !*** ./src/frontend/js/functions/stripEmptyNodes.js ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ \"./src/frontend/js/functions/constants.js\");\n\n\n/**\n * Remove empty HTML nodes from array of nodes.\n * Filter out nodes by nodeName.\n *\n * @param {Array} nodes Array of HTML nodes\n * @return {Array} The filtered array of HTML nodes\n * @since 5.1.3\n */\nvar stripEmptyNodes = function stripEmptyNodes() {\n var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return (nodes === null || nodes === void 0 ? void 0 : nodes.length) && nodes.filter(function (node) {\n return _constants__WEBPACK_IMPORTED_MODULE_0__.EXCLUDED_NODES.indexOf(node.nodeName.toLowerCase()) === -1;\n });\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (stripEmptyNodes);\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/stripEmptyNodes.js?"); - -/***/ }), - -/***/ "./src/frontend/js/functions/windowResize.js": -/*!***************************************************!*\ - !*** ./src/frontend/js/functions/windowResize.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ triggerWindowResize; }\n/* harmony export */ });\n/**\n * Trigger a window resize browser function.\n *\n * @since 5.3.1\n */\nfunction triggerWindowResize() {\n if (typeof Event === 'function') {\n // Modern browsers.\n window.dispatchEvent(new Event('resize'));\n } else {\n // Executed on old browsers and especially IE.\n var resizeEvent = window.document.createEvent('UIEvents');\n resizeEvent.initUIEvent('resize', true, false, window, 0);\n window.dispatchEvent(resizeEvent);\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/functions/windowResize.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/almDebug.js": -/*!*********************************************!*\ - !*** ./src/frontend/js/modules/almDebug.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ almDebug; }\n/* harmony export */ });\n/**\n * Display Ajax Load More debug results.\n *\n * @see https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug\n * @param {Object} alm ALM object.\n * @since 5.1.6\n */\nfunction almDebug(alm) {\n if (alm && alm.debug) {\n var obj = {\n query: alm.debug,\n localize: alm.localize\n };\n console.log('ALM Debug:', obj); // eslint-disable-line no-console\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/almDebug.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/fade.js": -/*!*****************************************!*\ - !*** ./src/frontend/js/modules/fade.js ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almFadeIn: function() { return /* binding */ almFadeIn; },\n/* harmony export */ almFadeOut: function() { return /* binding */ almFadeOut; }\n/* harmony export */ });\n/**\n * Fade element in.\n *\n * @param {HTMLElement} element The HTML element to fade in.\n * @param {number} speed The transition speed.\n * @return {Promise} The Promise object.\n */\nvar almFadeIn = function almFadeIn(element, speed) {\n return new Promise(function (resolve) {\n if (speed === 0) {\n element.style.opacity = 1;\n element.style.height = 'auto';\n resolve(true);\n } else {\n speed = speed / 10;\n var op = 0; // initial opacity\n var timer = setInterval(function () {\n if (op > 0.9) {\n element.style.opacity = 1;\n resolve(true);\n clearInterval(timer);\n }\n element.style.opacity = op;\n op += 0.1;\n }, speed);\n element.style.height = 'auto';\n }\n });\n};\n\n/**\n * Fade element out.\n *\n * @param {HTMLElement} element The HTML element to fade out.\n * @param {number} speed The transition speed.\n * @return {Promise} The Promise object.\n */\nvar almFadeOut = function almFadeOut(element, speed) {\n return new Promise(function (resolve) {\n speed = speed / 10;\n element.style.opacity = 0.5;\n var fadeEffect = setInterval(function () {\n if (element.style.opacity < 0.1) {\n element.style.opacity = 0;\n clearInterval(fadeEffect);\n resolve(true);\n } else {\n element.style.opacity -= 0.1;\n }\n }, speed);\n });\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/fade.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/filtering.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/filtering.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ almFilter; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\n/* harmony import */ var _tableofcontents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tableofcontents */ \"./src/frontend/js/modules/tableofcontents.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n/**\n * Filter an Ajax Load More instance.\n *\n * @param {string} transition Transition type.\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @since 2.6.1\n */\nfunction almFilter(transition) {\n var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 150;\n var data = arguments.length > 2 ? arguments[2] : undefined;\n var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'filter';\n if (data.target) {\n // Target has been specified.\n var alm = document.querySelectorAll('.ajax-load-more-wrap[data-id=\"' + data.target.toLowerCase() + '\"]');\n if (alm) {\n alm.forEach(function (element) {\n almFilterTransition(transition, speed, data, type, element);\n });\n }\n } else {\n // Target not specified.\n var _alm = document.querySelectorAll('.ajax-load-more-wrap');\n if (_alm) {\n _alm.forEach(function (element) {\n almFilterTransition(transition, speed, data, type, element);\n });\n }\n }\n (0,_tableofcontents__WEBPACK_IMPORTED_MODULE_1__.clearTOC)(); // Clear table of contents if required\n}\n\n/**\n * Transition Ajax Load More\n *\n * @param {string} transition Transition type.\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 2.13.1\n */\nfunction almFilterTransition(transition, speed, data, type, element) {\n if (transition === 'fade' || transition === 'masonry') {\n // Fade, Masonry transition\n\n switch (type) {\n case 'filter':\n element.classList.add('alm-is-filtering');\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeOut)(element, speed);\n break;\n }\n\n // Move to next function\n setTimeout(function () {\n almCompleteFilterTransition(speed, data, type, element);\n }, speed);\n } else {\n // No transition\n element.classList.add('alm-is-filtering');\n almCompleteFilterTransition(speed, data, type, element);\n }\n}\n\n/**\n * Complete the filter transition.\n *\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 3.3\n */\nfunction almCompleteFilterTransition(speed, data, type, element) {\n var btnWrap = element.querySelector('.alm-btn-wrap'); // Get `.alm-btn-wrap` element\n var listing = element.querySelectorAll('.alm-listing'); // Get `.alm-listing` element\n\n if (!listing || !btnWrap) {\n // Exit if elements doesn't exist.\n return false;\n }\n\n // Loop over all .alm-listing divs and clear HTML.\n _toConsumableArray(listing).forEach(function (element) {\n // Is this a paging instance.\n var paging = element.querySelector('.alm-paging-content');\n if (paging) {\n paging.innerHTML = '';\n } else {\n element.innerHTML = '';\n }\n });\n\n // Get Load More button\n var button = btnWrap.querySelector('.alm-load-more-btn');\n if (button) {\n button.classList.remove('done'); // Reset Button\n }\n\n // Clear paging navigation\n var paging = btnWrap.querySelector('.alm-paging');\n if (paging) {\n paging.style.opacity = 0;\n }\n\n // Reset Preloaded Amount\n data.preloadedAmount = 0;\n\n // Dispatch Filters\n almSetFilters(speed, data, type, element);\n}\n\n/**\n * Set filter parameters on .alm-listing element.\n *\n * @param {number} speed Transition speed.\n * @param {Object} data Data object.\n * @param {string} type Type of filter.\n * @param {Element} element Target element.\n * @since 2.6.1\n */\nfunction almSetFilters(speed, data, type, element) {\n // Get `alm-listing` container.\n var listing = element.querySelector('.alm-listing') || element.querySelector('.alm-comments');\n if (!listing) {\n return false;\n }\n switch (type) {\n case 'filter':\n // Update data attributes\n for (var _i = 0, _Object$entries = Object.entries(data); _i < _Object$entries.length; _i++) {\n var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),\n key = _Object$entries$_i[0],\n value = _Object$entries$_i[1];\n // Convert camelCase data atts back to dashes (-).\n key = key.replace(/\\W+/g, '-').replace(/([a-z\\d])([A-Z])/g, '$1-$2').toLowerCase();\n listing.setAttribute('data-' + key, value);\n }\n // Fade ALM back (Filters only)\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(element, speed);\n break;\n }\n\n // Re-initiate Ajax Load More.\n var target = '';\n if (data.target) {\n // Target has been specified\n target = document.querySelector('.ajax-load-more-wrap[data-id=\"' + data.target + '\"]');\n if (target) {\n window.almInit(target);\n }\n } else {\n // Target not specified\n target = document.querySelector('.ajax-load-more-wrap');\n if (target) {\n window.almInit(target);\n }\n }\n switch (type) {\n case 'filter':\n // Filters Complete (not the add-on)\n if (typeof almFilterComplete === 'function') {\n // Standard Filtering\n almFilterComplete();\n }\n break;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/filtering.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/insertScript.js": -/*!*************************************************!*\ - !*** ./src/frontend/js/modules/insertScript.js ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/**\n * Search nodes for tags and run scripts.\n * Scripts cannot run with appendChild or innerHTML so this is necessary to function.\n *\n * @since 5.0\n */\nvar insertScript = {\n /**\n * Initiate the script insertion.\n *\n * @param {Array} nodes The HTML nodes.\n */\n init: function init(nodes) {\n var _this = this;\n if (!(nodes !== null && nodes !== void 0 && nodes.length)) {\n return false;\n }\n nodes.forEach(function (node) {\n _this.check(node);\n });\n },\n /**\n * Parse HTML node from script.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The modified HTML node.\n */\n check: function check(node) {\n if (this.isScript(node) === true) {\n node.parentNode.replaceChild(this.clone(node), node);\n } else {\n var i = 0;\n var children = node.childNodes;\n if (children === undefined) {\n var parser = new DOMParser();\n var data = parser.parseFromString(node, 'text/html');\n if (data) {\n children = data.body.childNodes;\n }\n }\n while (i < children.length) {\n this.replace(children[i++]);\n }\n }\n return node;\n },\n /**\n * Replace the script tag with a clone.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The modified node.\n */\n replace: function replace(node) {\n if (this.isScript(node) === true) {\n node.parentNode.replaceChild(this.clone(node), node);\n } else {\n var i = 0;\n var children = node.childNodes;\n while (i < children.length) {\n this.replace(children[i++]);\n }\n }\n return node;\n },\n /**\n * Clone the tag.\n *\n * @param {HTMLElement} node The HTML node/element.\n * @return {HTMLElement} The cloned node.\n */\n clone: function clone(node) {\n var script = document.createElement('script');\n script.text = node.innerHTML;\n for (var i = node.attributes.length - 1; i >= 0; i--) {\n script.setAttribute(node.attributes[i].name, node.attributes[i].value);\n }\n return script;\n },\n /**\n * Is the node a script tag.\n *\n * @param {HTMLElement} node The html node.\n */\n isScript: function isScript(node) {\n return node.tagName === 'SCRIPT';\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (insertScript);\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/insertScript.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/lazyImages.js": -/*!***********************************************!*\ - !*** ./src/frontend/js/modules/lazyImages.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ lazyImages: function() { return /* binding */ lazyImages; },\n/* harmony export */ lazyImagesReplace: function() { return /* binding */ lazyImagesReplace; }\n/* harmony export */ });\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n/**\n * Lazy load images helper.\n * When a plugin or 3rd party script has hooked into WP Post Thumbnails to provide a lazy load solution, images will not load via Ajax.\n * This helper provides a fix by grabbing the dataset value and making it the src.\n *\n * @param {Object} alm The Ajax Load More object.\n */\nfunction lazyImages(alm) {\n var lazy_images = alm.lazy_images,\n last_loaded = alm.last_loaded;\n if (lazy_images && last_loaded !== null && last_loaded !== void 0 && last_loaded.length) {\n last_loaded.forEach(function (item) {\n lazyImagesReplace(item);\n });\n }\n}\n\n/**\n * Loop all images in container and replace the src.\n *\n * @param {HTMLElement} container The element HTML.\n */\nfunction lazyImagesReplace(container) {\n var images = container.querySelectorAll('img');\n if (images) {\n // Loop all images.\n _toConsumableArray(images).forEach(function (image) {\n if (image) {\n replaceSrc(image);\n }\n });\n }\n}\n\n/**\n * Replace the image src with the value from data-src attributes.\n *\n * @param {HTMLElement} img The HTML image element.\n */\nfunction replaceSrc(img) {\n var _img$dataset, _img$dataset2, _img$dataset3, _img$dataset4;\n if (!img) {\n return;\n }\n if (img !== null && img !== void 0 && (_img$dataset = img.dataset) !== null && _img$dataset !== void 0 && _img$dataset.src) {\n img.src = img.dataset.src;\n }\n if (img !== null && img !== void 0 && (_img$dataset2 = img.dataset) !== null && _img$dataset2 !== void 0 && _img$dataset2.srcset) {\n img.srcset = img.dataset.srcset;\n }\n // Blocksy Pro.\n // @see https://creativethemes.com/blocksy\n if (img !== null && img !== void 0 && (_img$dataset3 = img.dataset) !== null && _img$dataset3 !== void 0 && _img$dataset3.ctLazy) {\n img.src = img.dataset.ctLazy;\n }\n if (img !== null && img !== void 0 && (_img$dataset4 = img.dataset) !== null && _img$dataset4 !== void 0 && _img$dataset4.ctLazySet) {\n img.srcset = img.dataset.ctLazySet;\n }\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/lazyImages.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/loadImage.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/loadImage.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ loadImage; }\n/* harmony export */ });\n/* harmony import */ var _functions_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/srcsetPolyfill */ \"./src/frontend/js/functions/srcsetPolyfill.js\");\n/* harmony import */ var _lazyImages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lazyImages */ \"./src/frontend/js/modules/lazyImages.js\");\n\n\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n/**\n * Load the image with imagesLoaded\n *\n * @param {Element} container The HTML container.\n * @param {Element} item The element to load.\n * @param {string} ua Browser user-agent.\n * @param {string} rel The loading direction, next or prev.\n * @param {boolean} waitForImages Wait for images to load before loading next item.\n */\nfunction loadImage(container, item, ua) {\n var rel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'next';\n var waitForImages = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n /**\n * Append item to container.\n */\n function appendImage() {\n if (rel === 'prev') {\n container.insertBefore(item, container.childNodes[0]);\n } else {\n container.appendChild(item);\n }\n (0,_lazyImages__WEBPACK_IMPORTED_MODULE_1__.lazyImagesReplace)(item); // Lazy load image fix.\n (0,_functions_srcsetPolyfill__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(item, ua); // Safari/Firefox polyfills.\n }\n\n return new Promise(function (resolve) {\n item.style.transition = 'all 0.25s ease'; // Add CSS transition to each item.\n\n if (waitForImages) {\n imagesLoaded(item, function () {\n appendImage();\n resolve(true); // Send Promise callback\n });\n } else {\n appendImage();\n resolve(true); // Send Promise callback\n }\n });\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadImage.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/loadItems.js": -/*!**********************************************!*\ - !*** ./src/frontend/js/modules/loadItems.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ loadItems; }\n/* harmony export */ });\n/* harmony import */ var _loadImage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./loadImage */ \"./src/frontend/js/modules/loadImage.js\");\n/* harmony import */ var _functions_setFocus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/setFocus */ \"./src/frontend/js/functions/setFocus.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n\n/**\n * Load all items after Ajax request.\n *\n * Note: The function is used with WooCommerce and Elementor add-ons.\n *\n * @param {HTMLElement} container The HTML container.\n * @param {Array} items Array of items.\n * @param {Object} alm The ALM object.\n * @param {boolean} waitForImages Wait for images to load before loading next item.\n */\nfunction loadItems(container, items, alm) {\n var waitForImages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n return new Promise(function (resolve) {\n var _alm$rel = alm.rel,\n rel = _alm$rel === void 0 ? 'next' : _alm$rel;\n var total = items.length;\n var index = 0;\n var count = 1;\n\n // Reverse items array if rel is 'prev'.\n items = rel === 'prev' ? items.reverse() : items;\n function loadItem() {\n if (count <= total) {\n _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n items[index].style.opacity = 0;\n _context.next = 3;\n return (0,_loadImage__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(container, items[index], alm.ua, rel, waitForImages);\n case 3:\n count++;\n index++;\n loadItem();\n case 6:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }))()[\"catch\"](function () {\n console.warn('There was an error loading the items.');\n });\n } else {\n // Delay for effect only\n setTimeout(function () {\n items.map(function (item) {\n item.style.opacity = 1;\n return item;\n });\n if (items[0]) {\n var focusItem = rel === 'prev' ? items[items.length - 1] : items[0]; // Get the item to focus.\n (0,_functions_setFocus__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(alm, focusItem, null, false); // Set the focus.\n }\n }, 25);\n resolve(true);\n }\n }\n loadItem();\n });\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadItems.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/loadPrevious.js": -/*!*************************************************!*\ - !*** ./src/frontend/js/modules/loadPrevious.js ***! - \*************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createLoadPreviousButton: function() { return /* binding */ createLoadPreviousButton; }\n/* harmony export */ });\n/**\n * Create a Load Previous button.\n *\n * @param {Object} alm The Ajax Load More object.\n * @param {Object} container The container element.\n * @param {number} page The previous page number.\n * @param {string} url The previous page url.\n * @param {string} label The label for the button.\n * @since 5.5.0\n */\nfunction createLoadPreviousButton(alm, container) {\n var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var url = arguments.length > 3 ? arguments[3] : undefined;\n var label = arguments.length > 4 ? arguments[4] : undefined;\n if (!label) {\n return;\n }\n\n // Create wrapper.\n var btnWrap = document.createElement('div');\n btnWrap.classList.add('alm-btn-wrap--prev');\n\n // Create button.\n var button = document.createElement('a');\n button.href = url;\n button.innerHTML = label;\n button.setAttribute('rel', 'prev');\n button.dataset.page = page;\n button.dataset.url = url;\n button.setAttribute('class', \"alm-load-more-btn alm-load-more-btn--prev \".concat(alm.loading_style));\n\n // Click event.\n button.addEventListener('click', function (e) {\n alm.AjaxLoadMore.prevClick(e);\n });\n\n // Set alm previous button to this button.\n alm.AjaxLoadMore.setPreviousButton(button);\n\n // Append button to wrap.\n btnWrap.appendChild(button);\n\n // Get parent element.\n var parent = container.parentNode;\n\n // Append button before container.\n parent.insertBefore(btnWrap, container);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/loadPrevious.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/masonry.js": -/*!********************************************!*\ - !*** ./src/frontend/js/modules/masonry.js ***! - \********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almMasonry: function() { return /* binding */ almMasonry; },\n/* harmony export */ almMasonryConfig: function() { return /* binding */ almMasonryConfig; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nvar imagesLoaded = __webpack_require__(/*! imagesloaded */ \"./node_modules/imagesloaded/imagesloaded.js\");\n\n/**\n * Function to trigger built-in Ajax Load More Masonry.\n *\n * @param {Object} alm ALM object.\n * @param {boolean} init Initial run true or false.\n * @param {boolean} filtering Is this a filtering event.\n * @since 3.1\n */\nfunction almMasonry(alm, init, filtering) {\n if (!alm.masonry) {\n console.warn('Ajax Load More: Unable to locate Masonry settings.');\n }\n var container = alm.listing,\n last_loaded = alm.last_loaded,\n speed = alm.speed;\n return new Promise(function (resolve) {\n var _alm$masonry;\n var selector = alm.masonry.selector;\n var animation = alm.masonry.animation;\n var horizontalOrder = (alm === null || alm === void 0 || (_alm$masonry = alm.masonry) === null || _alm$masonry === void 0 ? void 0 : _alm$masonry.horizontalorder) === 'true' ? true : false;\n var masonry_init = alm.masonry.init;\n var columnWidth = alm.masonry.columnwidth;\n var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay\n var hidden = 'scale(0.5)';\n var visible = 'scale(1)';\n if (animation === 'zoom-out') {\n hidden = 'translateY(-20px) scale(1.25)';\n visible = 'translateY(0) scale(1)';\n }\n if (animation === 'slide-up') {\n hidden = 'translateY(50px)';\n visible = 'translateY(0)';\n }\n if (animation === 'slide-down') {\n hidden = 'translateY(-50px)';\n visible = 'translateY(0)';\n }\n if (animation === 'none') {\n hidden = 'translateY(0)';\n visible = 'translateY(0)';\n }\n\n // columnWidth\n if (columnWidth) {\n if (!isNaN(columnWidth)) {\n columnWidth = parseInt(columnWidth); // Check if number.\n }\n } else {\n columnWidth = selector; // No columnWidth, use the selector\n }\n\n if (!filtering) {\n // First Run.\n if (masonry_init && init) {\n imagesLoaded(container, function () {\n var _window;\n var defaults = {\n itemSelector: selector,\n transitionDuration: duration,\n columnWidth: columnWidth,\n // eslint-disable-line\n horizontalOrder: horizontalOrder,\n // eslint-disable-line\n hiddenStyle: {\n transform: hidden,\n opacity: 0\n },\n visibleStyle: {\n transform: visible,\n opacity: 1\n }\n };\n\n // Get custom Masonry options (https://masonry.desandro.com/options.html).\n var alm_masonry_vars = (_window = window) === null || _window === void 0 ? void 0 : _window.alm_masonry_vars;\n if (alm_masonry_vars) {\n Object.keys(alm_masonry_vars).forEach(function (key) {\n // Loop object\tto create key:prop\n defaults[key] = alm_masonry_vars[key];\n });\n }\n\n // Init Masonry, delay to allow time for items to be added to the page.\n setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n alm.msnry = new Masonry(container, defaults);\n _context.next = 3;\n return (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(container.parentNode, 175);\n case 3:\n resolve(true);\n case 4:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n })), 25);\n });\n } else {\n // Standard / Append content.\n // eslint-disable-next-line no-lonely-if\n if (last_loaded) {\n // ImagesLoaded & appended.\n imagesLoaded(container, function () {\n setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n alm.msnry.appended(last_loaded);\n resolve(true);\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2);\n })), 25);\n });\n }\n }\n } else {\n // Reset instance.\n container.parentNode.style.opacity = 0;\n almMasonry(alm, true, false);\n resolve(true);\n }\n });\n}\n\n/**\n * Set up initial Masonry Configuration.\n *\n * @param {Object} alm ALM Object.\n * @return {Object} Configuration object.\n */\nfunction almMasonryConfig(alm) {\n alm.masonry = {};\n alm.masonry.init = true;\n if (alm.msnry) {\n // destroy masonry if it currently exists.\n alm.msnry.destroy();\n } else {\n alm.msnry = '';\n }\n var masonry_config = JSON.parse(alm.listing.dataset.masonryConfig);\n if (masonry_config) {\n alm.masonry.selector = masonry_config.selector;\n alm.masonry.columnwidth = masonry_config.columnwidth;\n alm.masonry.animation = masonry_config.animation === '' ? 'standard' : masonry_config.animation;\n alm.masonry.horizontalorder = masonry_config.horizontalorder === '' ? 'true' : masonry_config.horizontalorder;\n alm.images_loaded = true;\n alm.transition_delay = 0;\n } else {\n console.warn('Ajax Load More: Unable to locate Masonry configuration settings.');\n }\n return alm;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/masonry.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/placeholder.js": -/*!************************************************!*\ - !*** ./src/frontend/js/modules/placeholder.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ placeholder; }\n/* harmony export */ });\n/* harmony import */ var _fade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fade */ \"./src/frontend/js/modules/fade.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n\n/**\n * Show placeholder div.\n *\n * @param {string} type The direction.\n * @param {Object} alm The ALM object.\n */\nfunction placeholder() {\n return _placeholder.apply(this, arguments);\n}\nfunction _placeholder() {\n _placeholder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n var type,\n alm,\n placeholder,\n addons,\n rel,\n _args = arguments;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n type = _args.length > 0 && _args[0] !== undefined ? _args[0] : 'show';\n alm = _args.length > 1 ? _args[1] : undefined;\n placeholder = alm.placeholder, addons = alm.addons, rel = alm.rel;\n if (!(!placeholder || addons.paging || rel === 'prev')) {\n _context.next = 5;\n break;\n }\n return _context.abrupt(\"return\", false);\n case 5:\n _context.t0 = type;\n _context.next = _context.t0 === 'hide' ? 8 : 12;\n break;\n case 8:\n _context.next = 10;\n return (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeOut)(placeholder, 175);\n case 10:\n setTimeout(function () {\n placeholder.style.display = 'none';\n }, 75);\n return _context.abrupt(\"break\", 15);\n case 12:\n placeholder.style.display = 'block';\n (0,_fade__WEBPACK_IMPORTED_MODULE_0__.almFadeIn)(placeholder, 175);\n return _context.abrupt(\"break\", 15);\n case 15:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return _placeholder.apply(this, arguments);\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/placeholder.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/resultsText.js": -/*!************************************************!*\ - !*** ./src/frontend/js/modules/resultsText.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ almGetResultsText: function() { return /* binding */ almGetResultsText; },\n/* harmony export */ almInitResultsText: function() { return /* binding */ almInitResultsText; },\n/* harmony export */ almResultsText: function() { return /* binding */ almResultsText; }\n/* harmony export */ });\n/* harmony import */ var _functions_getTotals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../functions/getTotals */ \"./src/frontend/js/functions/getTotals.js\");\n\n\n/**\n * Set the results text if required.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 5.1\n */\nfunction almResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || alm.nested === 'true') {\n return false;\n }\n var resultsType = type === 'nextpage' || type === 'woocommerce' ? type : 'standard';\n almGetResultsText(alm, resultsType);\n}\n\n/**\n * Get values for showing results text.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 4.1\n */\nfunction almGetResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || !alm.localize || alm.nested === 'true') {\n return false;\n }\n var page = 0;\n var pages = 0;\n var post_count = 0;\n var total_posts = 0;\n var posts_per_page = alm.orginal_posts_per_page;\n switch (type) {\n // Nextpage\n case 'nextpage':\n page = parseInt(alm.localize.page);\n post_count = page;\n pages = parseInt(alm.localize.total_posts);\n total_posts = parseInt(pages);\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page);\n break;\n\n // WooCommerce\n case 'woocommerce':\n // Don't do anything\n break;\n default:\n page = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('page', alm.id);\n pages = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('pages', alm.id);\n post_count = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('post_count', alm.id);\n total_posts = (0,_functions_getTotals__WEBPACK_IMPORTED_MODULE_0__[\"default\"])('total_posts', alm.id);\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, posts_per_page);\n }\n}\n\n/**\n * Display `Showing {x} of {y} pages` text.\n *\n * @param {Object} alm ALM object.\n * @param {string} type Type of results.\n * @since 4.1\n */\nfunction almInitResultsText(alm) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';\n if (!alm.resultsText || !alm.localize || alm.nested === 'true') {\n return false;\n }\n var page = 0;\n var pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page);\n var post_count = parseInt(alm.localize.post_count);\n var total_posts = parseInt(alm.localize.total_posts);\n switch (type) {\n case 'nextpage':\n // Nextpage\n page = alm.addons.nextpage_startpage;\n post_count = page;\n pages = total_posts;\n almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts, alm.posts_per_page);\n break;\n case 'preloaded':\n // Preloaded\n page = alm.addons.paging && alm.addons.seo ? alm.start_page + 1 : parseInt(alm.page) + 1;\n almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts, alm.posts_per_page);\n break;\n case 'woocommerce':\n // WooCommerce\n // Don't do anything\n break;\n }\n}\n\n/**\n * Render `Showing {x} of {y} results` text.\n *\n * @param {Element} el The results text HTML element.\n * @param {string} page The current page number.\n * @param {string} pages The total pages.\n * @param {string} post_count Total posts displayed.\n * @param {string} total_posts Total amount of posts in query.\n * @param {string} per_page Total amount of posts per page.\n * @since 4.1\n */\nvar almRenderResultsText = function almRenderResultsText(el, page, pages, post_count, total_posts, per_page) {\n el.forEach(function (result) {\n pages = parseInt(pages);\n var text = pages > 0 ? alm_localize.results_text : alm_localize.no_results_text;\n\n // Paging add-on.\n // Start and End values for posts in view.\n var start = page * per_page - per_page + 1;\n var end_val = page * per_page;\n var end = end_val <= total_posts ? end_val : total_posts;\n if (pages > 0) {\n text = text.replace('{num}', \"\".concat(page, \"\")); // Deprecated\n text = text.replace('{page}', \"\".concat(page, \"\"));\n text = text.replace('{start}', \"\".concat(start, \"\"));\n text = text.replace('{end}', \"\".concat(end, \"\"));\n text = text.replace('{total}', \"\".concat(pages, \"\")); // Deprecated\n text = text.replace('{pages}', \"\".concat(pages, \"\"));\n text = text.replace('{post_count}', \"\".concat(post_count, \"\"));\n text = text.replace('{total_posts}', \"\".concat(total_posts, \"\"));\n result.innerHTML = text;\n } else {\n result.innerHTML = text;\n }\n });\n};\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/resultsText.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/setLocalizedVars.js": -/*!*****************************************************!*\ - !*** ./src/frontend/js/modules/setLocalizedVars.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ setLocalizedVars; }\n/* harmony export */ });\n/* harmony import */ var _resultsText__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./resultsText */ \"./src/frontend/js/modules/resultsText.js\");\n\n\n/**\n * Set localized variables\n *\n * @param {Object} alm ALM object\n * @since 4.1\n */\nfunction setLocalizedVars(alm) {\n var addons = alm.addons;\n return new Promise(function (resolve) {\n var type = 'standard';\n if (addons.nextpage) {\n // Nextpage\n type = 'nextpage';\n if (addons.paging) {\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);\n } else {\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(addons.nextpage_startpage) + 1);\n }\n } else if (addons.woocommerce) {\n // WooCommerce\n type = 'woocommerce';\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);\n } else {\n // Standard ALM.\n var page = parseInt(alm.page) + 1 + (addons.preloaded && !addons.paging ? 1 : 0); // Add 1 page for preloaded.\n alm.AjaxLoadMore.setLocalizedVar('page', parseInt(page));\n var pages = Math.ceil(alm.totalposts / alm.orginal_posts_per_page);\n alm.AjaxLoadMore.setLocalizedVar('pages', parseInt(pages));\n }\n\n // Total Posts `total_posts`.\n // Only update if !preloaded && !nextpage && !woocommerce\n if (addons.preloaded !== 'true' && !addons.nextpage && !addons.woocommerce) {\n alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts);\n }\n\n // Viewing count.\n alm.AjaxLoadMore.setLocalizedVar('post_count', getPostCount(alm));\n\n // Set Results Text (if required).\n _resultsText__WEBPACK_IMPORTED_MODULE_0__.almResultsText(alm, type);\n resolve(true);\n });\n}\n\n/**\n * Get total post_count.\n *\n * @param {Object} alm ALM object.\n * @return {number} Total post count.\n */\nfunction getPostCount(alm) {\n var postcount = alm.postcount,\n addons = alm.addons,\n start_page = alm.start_page;\n var preloaded_amount = addons.preloaded_amount;\n\n // Construct post count.\n var count = parseInt(postcount) + parseInt(preloaded_amount);\n count = start_page > 1 ? count - parseInt(preloaded_amount) : count; // SEO\n count = addons.filters_startpage > 1 ? count - parseInt(preloaded_amount) : count; // Filters\n count = addons.single_post ? count + 1 : count; // Single Posts\n count = addons.nextpage ? count + 1 : count; // Next Page\n\n return count;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/setLocalizedVars.js?"); - -/***/ }), - -/***/ "./src/frontend/js/modules/tableofcontents.js": -/*!****************************************************!*\ - !*** ./src/frontend/js/modules/tableofcontents.js ***! - \****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ clearTOC: function() { return /* binding */ clearTOC; },\n/* harmony export */ tableOfContents: function() { return /* binding */ tableOfContents; }\n/* harmony export */ });\n/* harmony import */ var _ajax_load_more__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ajax-load-more */ \"./src/frontend/js/ajax-load-more.js\");\n/* harmony import */ var _functions_setFocus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../functions/setFocus */ \"./src/frontend/js/functions/setFocus.js\");\n\n\n\n/**\n * Create a numbered table of contents navigation.\n *\n * @param {Object} alm The alm object.\n * @param {boolean} init Init boolean.\n * @param {boolean} from_preloaded Preloaded boolean.\n * @since 5.2\n */\nfunction tableOfContents(alm) {\n var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var from_preloaded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var totalPosts = alm.localize && alm.localize.post_count ? parseInt(alm.localize.post_count) : 0;\n\n // eslint-disable-next-line eqeqeq\n if (totalPosts == 0 && !alm.addons.single_post) {\n // Exit if zero posts and not single posts\n return false;\n }\n if (alm && alm.tableofcontents && alm.transition !== 'masonry') {\n var offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30;\n var startPage = alm.start_page ? parseInt(alm.start_page) : 0;\n var filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0;\n var nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0;\n var page = parseInt(alm.page);\n var preloaded = alm.addons.preloaded ? true : false;\n\n // Exit if Paging or Next Page\n if (alm.addons.paging || alm.addons.nextpage) {\n return false;\n }\n\n // Init.\n if (init) {\n setTimeout(function () {\n // Paged results\n if (alm.addons.seo && startPage > 1 || alm.addons.filters && filterStartPage > 1 || alm.addons.nextpage && nextpageStartPage > 1) {\n // SEO\n if (alm.addons.seo && startPage > 1) {\n for (var i = 0; i < startPage; i++) {\n createTOCButton(alm, i, offset);\n }\n }\n // Filters\n if (alm.addons.filters && filterStartPage > 1) {\n for (var _i = 0; _i < filterStartPage; _i++) {\n createTOCButton(alm, _i, offset);\n }\n }\n // Nextpage\n if (alm.addons.nextpage && nextpageStartPage > 1) {\n for (var _i2 = 0; _i2 < nextpageStartPage; _i2++) {\n createTOCButton(alm, _i2, offset);\n }\n }\n } else {\n if (!from_preloaded && preloaded) {\n page = page + 1;\n }\n createTOCButton(alm, page, offset);\n }\n }, 100);\n } else {\n // Preloaded\n if (preloaded) {\n if (alm.addons.seo && startPage > 0) {\n page = page;\n } else if (alm.addons.filters && filterStartPage > 0) {\n page = page;\n } else {\n page = page + 1;\n }\n }\n createTOCButton(alm, page, offset);\n }\n }\n}\n\n/**\n * Clear table of contents.\n */\nfunction clearTOC() {\n var toc = document.querySelector('.alm-toc');\n if (toc) {\n toc.innerHTML = '';\n }\n}\n\n/**\n * Create Standard Page Button.\n *\n * @param {Object} alm The alm object.\n * @param {string} page Current page.\n * @param {number} offset The page offset.\n */\nfunction createTOCButton(alm, page, offset) {\n if (!alm.tableofcontents) {\n return false;\n }\n page = parseInt(page);\n var posts_per_page = parseInt(alm.posts_per_page);\n\n // Create button.\n var button = document.createElement('button');\n button.type = 'button';\n button.innerHTML = getTOCLabel(alm, page + 1);\n button.dataset.page = alm.addons.single_post_target && alm.init ? page - 1 : page + 1;\n button.dataset.target = (page + 1) * posts_per_page - posts_per_page + 1;\n\n // Add button to TOC.\n alm.tableofcontents.appendChild(button);\n\n // Click event listener.\n button.addEventListener('click', function () {\n var current = this.dataset.page;\n var target = this.dataset.target;\n\n // Get all listing children.\n var children = alm.listing.children;\n\n // Find element.\n var element = children[target - 1];\n\n // Next Page.\n if (alm.addons.nextpage) {\n element = document.querySelector(\".alm-nextpage[data-page=\\\"\".concat(current, \"\\\"]\"));\n }\n // Single Posts.\n if (alm.addons.single_post_target) {\n element = document.querySelector(\".alm-single-post[data-page=\\\"\".concat(current, \"\\\"]\"));\n }\n if (!element) {\n return; // Exit if no target.\n }\n\n var top = typeof _ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.getOffset === 'function' ? (0,_ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.getOffset)(element).top : element.offsetTop;\n (0,_ajax_load_more__WEBPACK_IMPORTED_MODULE_0__.almScroll)(top - offset);\n setTimeout(function () {\n (0,_functions_setFocus__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(alm, element, target, false);\n }, 500);\n });\n}\n\n/**\n * Get Button Label.\n *\n * @param {Object} alm The alm object.\n * @param {string} page The current page.\n * @return {string} The Label.\n */\nfunction getTOCLabel(alm, page) {\n var label = page;\n\n // Single Posts\n if (alm.addons.single_post) {\n var thePage = page - 1;\n var element;\n if (alm.addons.single_post_target) {\n // Special functionality for Single Post with a loading target type\n if (alm.init) {\n thePage = thePage;\n } else {\n thePage = thePage + 1;\n }\n var posts = document.querySelectorAll(\".alm-single-post\");\n if (posts) {\n element = posts[thePage];\n }\n } else {\n element = document.querySelector(\".alm-single-post[data-page=\".concat(page - 1, \"]\"));\n }\n label = element ? element.dataset.title : label;\n }\n\n // Dynamic function name.\n var funcName = \"almTOCLabel_\".concat(alm.id);\n if (typeof window[funcName] === 'function') {\n label = window[funcName](page, label);\n }\n return label;\n}\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/js/modules/tableofcontents.js?"); - -/***/ }), - -/***/ "./node_modules/call-bind/callBound.js": -/*!*********************************************!*\ - !*** ./node_modules/call-bind/callBound.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\n\nvar callBind = __webpack_require__(/*! ./ */ \"./node_modules/call-bind/index.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/call-bind/callBound.js?"); - -/***/ }), - -/***/ "./node_modules/call-bind/index.js": -/*!*****************************************!*\ - !*** ./node_modules/call-bind/index.js ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = null;\n\t}\n}\n\nmodule.exports = function callBind(originalFunction) {\n\tvar func = $reflectApply(bind, $call, arguments);\n\tif ($gOPD && $defineProperty) {\n\t\tvar desc = $gOPD(func, 'length');\n\t\tif (desc.configurable) {\n\t\t\t// original length, plus the receiver, minus any additional arguments (after the receiver)\n\t\t\t$defineProperty(\n\t\t\t\tfunc,\n\t\t\t\t'length',\n\t\t\t\t{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/call-bind/index.js?"); - -/***/ }), - -/***/ "./node_modules/crypto-js/core.js": -/*!****************************************!*\ - !*** ./node_modules/crypto-js/core.js ***! - \****************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval(";(function (root, factory) {\n\tif (true) {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse {}\n}(this, function () {\n\n\t/*globals window, global, require*/\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\n\t var crypto;\n\n\t // Native crypto from window (Browser)\n\t if (typeof window !== 'undefined' && window.crypto) {\n\t crypto = window.crypto;\n\t }\n\n\t // Native crypto in web worker (Browser)\n\t if (typeof self !== 'undefined' && self.crypto) {\n\t crypto = self.crypto;\n\t }\n\n\t // Native crypto from worker\n\t if (typeof globalThis !== 'undefined' && globalThis.crypto) {\n\t crypto = globalThis.crypto;\n\t }\n\n\t // Native (experimental IE 11) crypto from window (Browser)\n\t if (!crypto && typeof window !== 'undefined' && window.msCrypto) {\n\t crypto = window.msCrypto;\n\t }\n\n\t // Native crypto from global (NodeJS)\n\t if (!crypto && typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.crypto) {\n\t crypto = __webpack_require__.g.crypto;\n\t }\n\n\t // Native crypto import via require (NodeJS)\n\t if (!crypto && \"function\" === 'function') {\n\t try {\n\t crypto = __webpack_require__(/*! crypto */ \"?9157\");\n\t } catch (err) {}\n\t }\n\n\t /*\n\t * Cryptographically secure pseudorandom number generator\n\t *\n\t * As Math.random() is cryptographically not safe to use\n\t */\n\t var cryptoSecureRandomInt = function () {\n\t if (crypto) {\n\t // Use getRandomValues method (Browser)\n\t if (typeof crypto.getRandomValues === 'function') {\n\t try {\n\t return crypto.getRandomValues(new Uint32Array(1))[0];\n\t } catch (err) {}\n\t }\n\n\t // Use randomBytes method (NodeJS)\n\t if (typeof crypto.randomBytes === 'function') {\n\t try {\n\t return crypto.randomBytes(4).readInt32LE();\n\t } catch (err) {}\n\t }\n\t }\n\n\t throw new Error('Native crypto module could not be used to get secure random number.');\n\t };\n\n\t /*\n\t * Local polyfill of Object.create\n\n\t */\n\t var create = Object.create || (function () {\n\t function F() {}\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }());\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var j = 0; j < thatSigBytes; j += 4) {\n\t thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t for (var i = 0; i < nBytes; i += 4) {\n\t words.push(cryptoSecureRandomInt());\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t var processedWords;\n\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/crypto-js/core.js?"); - -/***/ }), - -/***/ "./node_modules/crypto-js/md5.js": -/*!***************************************!*\ - !*** ./node_modules/crypto-js/md5.js ***! - \***************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval(";(function (root, factory) {\n\tif (true) {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(__webpack_require__(/*! ./core */ \"./node_modules/crypto-js/core.js\"));\n\t}\n\telse {}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Constants table\n\t var T = [];\n\n\t // Compute constants\n\t (function () {\n\t for (var i = 0; i < 64; i++) {\n\t T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n\t }\n\t }());\n\n\t /**\n\t * MD5 hash algorithm.\n\t */\n\t var MD5 = C_algo.MD5 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0x67452301, 0xefcdab89,\n\t 0x98badcfe, 0x10325476\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Swap endian\n\t for (var i = 0; i < 16; i++) {\n\t // Shortcuts\n\t var offset_i = offset + i;\n\t var M_offset_i = M[offset_i];\n\n\t M[offset_i] = (\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n\t );\n\t }\n\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var M_offset_0 = M[offset + 0];\n\t var M_offset_1 = M[offset + 1];\n\t var M_offset_2 = M[offset + 2];\n\t var M_offset_3 = M[offset + 3];\n\t var M_offset_4 = M[offset + 4];\n\t var M_offset_5 = M[offset + 5];\n\t var M_offset_6 = M[offset + 6];\n\t var M_offset_7 = M[offset + 7];\n\t var M_offset_8 = M[offset + 8];\n\t var M_offset_9 = M[offset + 9];\n\t var M_offset_10 = M[offset + 10];\n\t var M_offset_11 = M[offset + 11];\n\t var M_offset_12 = M[offset + 12];\n\t var M_offset_13 = M[offset + 13];\n\t var M_offset_14 = M[offset + 14];\n\t var M_offset_15 = M[offset + 15];\n\n\t // Working varialbes\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\n\t // Computation\n\t a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n\t d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n\t c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n\t b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n\t a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n\t d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n\t c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n\t b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n\t a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n\t d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n\t c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n\t b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n\t a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n\t d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n\t c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n\t b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n\t a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n\t d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n\t c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n\t b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n\t a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n\t d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n\t c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n\t b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n\t a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n\t d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n\t c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n\t b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n\t a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n\t d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n\t c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n\t b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n\t a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n\t d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n\t c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n\t b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n\t a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n\t d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n\t c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n\t b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n\t a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n\t d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n\t c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n\t b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n\t a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n\t d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n\t c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n\t b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n\t a = II(a, b, c, d, M_offset_0, 6, T[48]);\n\t d = II(d, a, b, c, M_offset_7, 10, T[49]);\n\t c = II(c, d, a, b, M_offset_14, 15, T[50]);\n\t b = II(b, c, d, a, M_offset_5, 21, T[51]);\n\t a = II(a, b, c, d, M_offset_12, 6, T[52]);\n\t d = II(d, a, b, c, M_offset_3, 10, T[53]);\n\t c = II(c, d, a, b, M_offset_10, 15, T[54]);\n\t b = II(b, c, d, a, M_offset_1, 21, T[55]);\n\t a = II(a, b, c, d, M_offset_8, 6, T[56]);\n\t d = II(d, a, b, c, M_offset_15, 10, T[57]);\n\t c = II(c, d, a, b, M_offset_6, 15, T[58]);\n\t b = II(b, c, d, a, M_offset_13, 21, T[59]);\n\t a = II(a, b, c, d, M_offset_4, 6, T[60]);\n\t d = II(d, a, b, c, M_offset_11, 10, T[61]);\n\t c = II(c, d, a, b, M_offset_2, 15, T[62]);\n\t b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n\t var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n\t var nBitsTotalL = nBitsTotal;\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n\t (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n\t );\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n\t (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n\t );\n\n\t data.sigBytes = (dataWords.length + 1) * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var hash = this._hash;\n\t var H = hash.words;\n\n\t // Swap endian\n\t for (var i = 0; i < 4; i++) {\n\t // Shortcut\n\t var H_i = H[i];\n\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t function FF(a, b, c, d, x, s, t) {\n\t var n = a + ((b & c) | (~b & d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function GG(a, b, c, d, x, s, t) {\n\t var n = a + ((b & d) | (c & ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function HH(a, b, c, d, x, s, t) {\n\t var n = a + (b ^ c ^ d) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function II(a, b, c, d, x, s, t) {\n\t var n = a + (c ^ (b | ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.MD5('message');\n\t * var hash = CryptoJS.MD5(wordArray);\n\t */\n\t C.MD5 = Hasher._createHelper(MD5);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacMD5(message, key);\n\t */\n\t C.HmacMD5 = Hasher._createHmacHelper(MD5);\n\t}(Math));\n\n\n\treturn CryptoJS.MD5;\n\n}));\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/crypto-js/md5.js?"); - -/***/ }), - -/***/ "./node_modules/ev-emitter/ev-emitter.js": -/*!***********************************************!*\ - !*** ./node_modules/ev-emitter/ev-emitter.js ***! - \***********************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * EvEmitter v1.1.0\n * Lil' event emitter\n * MIT License\n */\n\n/* jshint unused: true, undef: true, strict: true */\n\n( function( global, factory ) {\n // universal module definition\n /* jshint strict: false */ /* globals define, module, window */\n if ( true ) {\n // AMD - RequireJS\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n\n}( typeof window != 'undefined' ? window : this, function() {\n\n\"use strict\";\n\nfunction EvEmitter() {}\n\nvar proto = EvEmitter.prototype;\n\nproto.on = function( eventName, listener ) {\n if ( !eventName || !listener ) {\n return;\n }\n // set events hash\n var events = this._events = this._events || {};\n // set listeners array\n var listeners = events[ eventName ] = events[ eventName ] || [];\n // only add once\n if ( listeners.indexOf( listener ) == -1 ) {\n listeners.push( listener );\n }\n\n return this;\n};\n\nproto.once = function( eventName, listener ) {\n if ( !eventName || !listener ) {\n return;\n }\n // add event\n this.on( eventName, listener );\n // set once flag\n // set onceEvents hash\n var onceEvents = this._onceEvents = this._onceEvents || {};\n // set onceListeners object\n var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {};\n // set flag\n onceListeners[ listener ] = true;\n\n return this;\n};\n\nproto.off = function( eventName, listener ) {\n var listeners = this._events && this._events[ eventName ];\n if ( !listeners || !listeners.length ) {\n return;\n }\n var index = listeners.indexOf( listener );\n if ( index != -1 ) {\n listeners.splice( index, 1 );\n }\n\n return this;\n};\n\nproto.emitEvent = function( eventName, args ) {\n var listeners = this._events && this._events[ eventName ];\n if ( !listeners || !listeners.length ) {\n return;\n }\n // copy over to avoid interference if .off() in listener\n listeners = listeners.slice(0);\n args = args || [];\n // once stuff\n var onceListeners = this._onceEvents && this._onceEvents[ eventName ];\n\n for ( var i=0; i < listeners.length; i++ ) {\n var listener = listeners[i]\n var isOnce = onceListeners && onceListeners[ listener ];\n if ( isOnce ) {\n // remove listener\n // remove before trigger to prevent recursion\n this.off( eventName, listener );\n // unset once flag\n delete onceListeners[ listener ];\n }\n // trigger listener\n listener.apply( this, args );\n }\n\n return this;\n};\n\nproto.allOff = function() {\n delete this._events;\n delete this._onceEvents;\n};\n\nreturn EvEmitter;\n\n}));\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/ev-emitter/ev-emitter.js?"); - -/***/ }), - -/***/ "./node_modules/focus-options-polyfill/index.js": -/*!******************************************************!*\ - !*** ./node_modules/focus-options-polyfill/index.js ***! - \******************************************************/ -/***/ (function() { - -eval("// focus - focusOptions - preventScroll polyfill\n(function() {\n if (\n typeof window === \"undefined\" ||\n typeof document === \"undefined\" ||\n typeof HTMLElement === \"undefined\"\n ) {\n return;\n }\n\n var supportsPreventScrollOption = false;\n try {\n var focusElem = document.createElement(\"div\");\n focusElem.addEventListener(\n \"focus\",\n function(event) {\n event.preventDefault();\n event.stopPropagation();\n },\n true\n );\n focusElem.focus(\n Object.defineProperty({}, \"preventScroll\", {\n get: function() {\n // Edge v18 gives a false positive for supporting inputs\n if (\n navigator &&\n typeof navigator.userAgent !== 'undefined' &&\n navigator.userAgent &&\n navigator.userAgent.match(/Edge\\/1[7-8]/)) {\n return supportsPreventScrollOption = false\n }\n\n supportsPreventScrollOption = true;\n }\n })\n );\n } catch (e) {}\n\n if (\n HTMLElement.prototype.nativeFocus === undefined &&\n !supportsPreventScrollOption\n ) {\n HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus;\n\n var calcScrollableElements = function(element) {\n var parent = element.parentNode;\n var scrollableElements = [];\n var rootScrollingElement =\n document.scrollingElement || document.documentElement;\n\n while (parent && parent !== rootScrollingElement) {\n if (\n parent.offsetHeight < parent.scrollHeight ||\n parent.offsetWidth < parent.scrollWidth\n ) {\n scrollableElements.push([\n parent,\n parent.scrollTop,\n parent.scrollLeft\n ]);\n }\n parent = parent.parentNode;\n }\n parent = rootScrollingElement;\n scrollableElements.push([parent, parent.scrollTop, parent.scrollLeft]);\n\n return scrollableElements;\n };\n\n var restoreScrollPosition = function(scrollableElements) {\n for (var i = 0; i < scrollableElements.length; i++) {\n scrollableElements[i][0].scrollTop = scrollableElements[i][1];\n scrollableElements[i][0].scrollLeft = scrollableElements[i][2];\n }\n scrollableElements = [];\n };\n\n var patchedFocus = function(args) {\n if (args && args.preventScroll) {\n var evScrollableElements = calcScrollableElements(this);\n if (typeof setTimeout === 'function') {\n var thisElem = this;\n setTimeout(function () {\n thisElem.nativeFocus();\n restoreScrollPosition(evScrollableElements);\n }, 0);\n } else {\n this.nativeFocus();\n restoreScrollPosition(evScrollableElements);\n }\n }\n else {\n this.nativeFocus();\n }\n };\n\n HTMLElement.prototype.focus = patchedFocus;\n }\n})();\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/focus-options-polyfill/index.js?"); - -/***/ }), - -/***/ "./node_modules/function-bind/implementation.js": -/*!******************************************************!*\ - !*** ./node_modules/function-bind/implementation.js ***! - \******************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slice.call(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n } else {\n return target.apply(\n that,\n args.concat(slice.call(arguments))\n );\n }\n };\n\n var boundLength = Math.max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs.push('$' + i);\n }\n\n bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/function-bind/implementation.js?"); - -/***/ }), - -/***/ "./node_modules/function-bind/index.js": -/*!*********************************************!*\ - !*** ./node_modules/function-bind/index.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar implementation = __webpack_require__(/*! ./implementation */ \"./node_modules/function-bind/implementation.js\");\n\nmodule.exports = Function.prototype.bind || implementation;\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/function-bind/index.js?"); - -/***/ }), - -/***/ "./node_modules/get-intrinsic/index.js": -/*!*********************************************!*\ - !*** ./node_modules/get-intrinsic/index.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar undefined;\n\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\nvar hasProto = __webpack_require__(/*! has-proto */ \"./node_modules/has-proto/index.js\")();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%ReferenceError%': ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar hasOwn = __webpack_require__(/*! has */ \"./node_modules/has/src/index.js\");\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/get-intrinsic/index.js?"); - -/***/ }), - -/***/ "./node_modules/has-proto/index.js": -/*!*****************************************!*\ - !*** ./node_modules/has-proto/index.js ***! - \*****************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar test = {\n\tfoo: {}\n};\n\nvar $Object = Object;\n\nmodule.exports = function hasProto() {\n\treturn { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-proto/index.js?"); - -/***/ }), - -/***/ "./node_modules/has-symbols/index.js": -/*!*******************************************!*\ - !*** ./node_modules/has-symbols/index.js ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = __webpack_require__(/*! ./shams */ \"./node_modules/has-symbols/shams.js\");\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-symbols/index.js?"); - -/***/ }), - -/***/ "./node_modules/has-symbols/shams.js": -/*!*******************************************!*\ - !*** ./node_modules/has-symbols/shams.js ***! - \*******************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has-symbols/shams.js?"); - -/***/ }), - -/***/ "./node_modules/has/src/index.js": -/*!***************************************!*\ - !*** ./node_modules/has/src/index.js ***! - \***************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/has/src/index.js?"); - -/***/ }), - -/***/ "./node_modules/imagesloaded/imagesloaded.js": -/*!***************************************************!*\ - !*** ./node_modules/imagesloaded/imagesloaded.js ***! - \***************************************************/ -/***/ (function(module, exports, __webpack_require__) { - -eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * imagesLoaded v4.1.4\n * JavaScript is all like \"You images are done yet or what?\"\n * MIT License\n */\n\n( function( window, factory ) { 'use strict';\n // universal module definition\n\n /*global define: false, module: false, require: false */\n\n if ( true ) {\n // AMD\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [\n __webpack_require__(/*! ev-emitter/ev-emitter */ \"./node_modules/ev-emitter/ev-emitter.js\")\n ], __WEBPACK_AMD_DEFINE_RESULT__ = (function( EvEmitter ) {\n return factory( window, EvEmitter );\n }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n\n})( typeof window !== 'undefined' ? window : this,\n\n// -------------------------- factory -------------------------- //\n\nfunction factory( window, EvEmitter ) {\n\n'use strict';\n\nvar $ = window.jQuery;\nvar console = window.console;\n\n// -------------------------- helpers -------------------------- //\n\n// extend objects\nfunction extend( a, b ) {\n for ( var prop in b ) {\n a[ prop ] = b[ prop ];\n }\n return a;\n}\n\nvar arraySlice = Array.prototype.slice;\n\n// turn element or nodeList into an array\nfunction makeArray( obj ) {\n if ( Array.isArray( obj ) ) {\n // use object if already an array\n return obj;\n }\n\n var isArrayLike = typeof obj == 'object' && typeof obj.length == 'number';\n if ( isArrayLike ) {\n // convert nodeList to array\n return arraySlice.call( obj );\n }\n\n // array of single index\n return [ obj ];\n}\n\n// -------------------------- imagesLoaded -------------------------- //\n\n/**\n * @param {Array, Element, NodeList, String} elem\n * @param {Object or Function} options - if function, use as callback\n * @param {Function} onAlways - callback function\n */\nfunction ImagesLoaded( elem, options, onAlways ) {\n // coerce ImagesLoaded() without new, to be new ImagesLoaded()\n if ( !( this instanceof ImagesLoaded ) ) {\n return new ImagesLoaded( elem, options, onAlways );\n }\n // use elem as selector string\n var queryElem = elem;\n if ( typeof elem == 'string' ) {\n queryElem = document.querySelectorAll( elem );\n }\n // bail if bad element\n if ( !queryElem ) {\n console.error( 'Bad element for imagesLoaded ' + ( queryElem || elem ) );\n return;\n }\n\n this.elements = makeArray( queryElem );\n this.options = extend( {}, this.options );\n // shift arguments if no options set\n if ( typeof options == 'function' ) {\n onAlways = options;\n } else {\n extend( this.options, options );\n }\n\n if ( onAlways ) {\n this.on( 'always', onAlways );\n }\n\n this.getImages();\n\n if ( $ ) {\n // add jQuery Deferred object\n this.jqDeferred = new $.Deferred();\n }\n\n // HACK check async to allow time to bind listeners\n setTimeout( this.check.bind( this ) );\n}\n\nImagesLoaded.prototype = Object.create( EvEmitter.prototype );\n\nImagesLoaded.prototype.options = {};\n\nImagesLoaded.prototype.getImages = function() {\n this.images = [];\n\n // filter & find items if we have an item selector\n this.elements.forEach( this.addElementImages, this );\n};\n\n/**\n * @param {Node} element\n */\nImagesLoaded.prototype.addElementImages = function( elem ) {\n // filter siblings\n if ( elem.nodeName == 'IMG' ) {\n this.addImage( elem );\n }\n // get background image on element\n if ( this.options.background === true ) {\n this.addElementBackgroundImages( elem );\n }\n\n // find children\n // no non-element nodes, #143\n var nodeType = elem.nodeType;\n if ( !nodeType || !elementNodeTypes[ nodeType ] ) {\n return;\n }\n var childImgs = elem.querySelectorAll('img');\n // concat childElems to filterFound array\n for ( var i=0; i < childImgs.length; i++ ) {\n var img = childImgs[i];\n this.addImage( img );\n }\n\n // get child background images\n if ( typeof this.options.background == 'string' ) {\n var children = elem.querySelectorAll( this.options.background );\n for ( i=0; i < children.length; i++ ) {\n var child = children[i];\n this.addElementBackgroundImages( child );\n }\n }\n};\n\nvar elementNodeTypes = {\n 1: true,\n 9: true,\n 11: true\n};\n\nImagesLoaded.prototype.addElementBackgroundImages = function( elem ) {\n var style = getComputedStyle( elem );\n if ( !style ) {\n // Firefox returns null if in a hidden iframe https://bugzil.la/548397\n return;\n }\n // get url inside url(\"...\")\n var reURL = /url\\((['\"])?(.*?)\\1\\)/gi;\n var matches = reURL.exec( style.backgroundImage );\n while ( matches !== null ) {\n var url = matches && matches[2];\n if ( url ) {\n this.addBackground( url, elem );\n }\n matches = reURL.exec( style.backgroundImage );\n }\n};\n\n/**\n * @param {Image} img\n */\nImagesLoaded.prototype.addImage = function( img ) {\n var loadingImage = new LoadingImage( img );\n this.images.push( loadingImage );\n};\n\nImagesLoaded.prototype.addBackground = function( url, elem ) {\n var background = new Background( url, elem );\n this.images.push( background );\n};\n\nImagesLoaded.prototype.check = function() {\n var _this = this;\n this.progressedCount = 0;\n this.hasAnyBroken = false;\n // complete if no images\n if ( !this.images.length ) {\n this.complete();\n return;\n }\n\n function onProgress( image, elem, message ) {\n // HACK - Chrome triggers event before object properties have changed. #83\n setTimeout( function() {\n _this.progress( image, elem, message );\n });\n }\n\n this.images.forEach( function( loadingImage ) {\n loadingImage.once( 'progress', onProgress );\n loadingImage.check();\n });\n};\n\nImagesLoaded.prototype.progress = function( image, elem, message ) {\n this.progressedCount++;\n this.hasAnyBroken = this.hasAnyBroken || !image.isLoaded;\n // progress event\n this.emitEvent( 'progress', [ this, image, elem ] );\n if ( this.jqDeferred && this.jqDeferred.notify ) {\n this.jqDeferred.notify( this, image );\n }\n // check if completed\n if ( this.progressedCount == this.images.length ) {\n this.complete();\n }\n\n if ( this.options.debug && console ) {\n console.log( 'progress: ' + message, image, elem );\n }\n};\n\nImagesLoaded.prototype.complete = function() {\n var eventName = this.hasAnyBroken ? 'fail' : 'done';\n this.isComplete = true;\n this.emitEvent( eventName, [ this ] );\n this.emitEvent( 'always', [ this ] );\n if ( this.jqDeferred ) {\n var jqMethod = this.hasAnyBroken ? 'reject' : 'resolve';\n this.jqDeferred[ jqMethod ]( this );\n }\n};\n\n// -------------------------- -------------------------- //\n\nfunction LoadingImage( img ) {\n this.img = img;\n}\n\nLoadingImage.prototype = Object.create( EvEmitter.prototype );\n\nLoadingImage.prototype.check = function() {\n // If complete is true and browser supports natural sizes,\n // try to check for image status manually.\n var isComplete = this.getIsImageComplete();\n if ( isComplete ) {\n // report based on naturalWidth\n this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );\n return;\n }\n\n // If none of the checks above matched, simulate loading on detached element.\n this.proxyImage = new Image();\n this.proxyImage.addEventListener( 'load', this );\n this.proxyImage.addEventListener( 'error', this );\n // bind to image as well for Firefox. #191\n this.img.addEventListener( 'load', this );\n this.img.addEventListener( 'error', this );\n this.proxyImage.src = this.img.src;\n};\n\nLoadingImage.prototype.getIsImageComplete = function() {\n // check for non-zero, non-undefined naturalWidth\n // fixes Safari+InfiniteScroll+Masonry bug infinite-scroll#671\n return this.img.complete && this.img.naturalWidth;\n};\n\nLoadingImage.prototype.confirm = function( isLoaded, message ) {\n this.isLoaded = isLoaded;\n this.emitEvent( 'progress', [ this, this.img, message ] );\n};\n\n// ----- events ----- //\n\n// trigger specified handler for event type\nLoadingImage.prototype.handleEvent = function( event ) {\n var method = 'on' + event.type;\n if ( this[ method ] ) {\n this[ method ]( event );\n }\n};\n\nLoadingImage.prototype.onload = function() {\n this.confirm( true, 'onload' );\n this.unbindEvents();\n};\n\nLoadingImage.prototype.onerror = function() {\n this.confirm( false, 'onerror' );\n this.unbindEvents();\n};\n\nLoadingImage.prototype.unbindEvents = function() {\n this.proxyImage.removeEventListener( 'load', this );\n this.proxyImage.removeEventListener( 'error', this );\n this.img.removeEventListener( 'load', this );\n this.img.removeEventListener( 'error', this );\n};\n\n// -------------------------- Background -------------------------- //\n\nfunction Background( url, element ) {\n this.url = url;\n this.element = element;\n this.img = new Image();\n}\n\n// inherit LoadingImage prototype\nBackground.prototype = Object.create( LoadingImage.prototype );\n\nBackground.prototype.check = function() {\n this.img.addEventListener( 'load', this );\n this.img.addEventListener( 'error', this );\n this.img.src = this.url;\n // check if image is already complete\n var isComplete = this.getIsImageComplete();\n if ( isComplete ) {\n this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );\n this.unbindEvents();\n }\n};\n\nBackground.prototype.unbindEvents = function() {\n this.img.removeEventListener( 'load', this );\n this.img.removeEventListener( 'error', this );\n};\n\nBackground.prototype.confirm = function( isLoaded, message ) {\n this.isLoaded = isLoaded;\n this.emitEvent( 'progress', [ this, this.element, message ] );\n};\n\n// -------------------------- jQuery -------------------------- //\n\nImagesLoaded.makeJQueryPlugin = function( jQuery ) {\n jQuery = jQuery || window.jQuery;\n if ( !jQuery ) {\n return;\n }\n // set local variable\n $ = jQuery;\n // $().imagesLoaded()\n $.fn.imagesLoaded = function( options, callback ) {\n var instance = new ImagesLoaded( this, options, callback );\n return instance.jqDeferred.promise( $(this) );\n };\n};\n// try making plugin\nImagesLoaded.makeJQueryPlugin();\n\n// -------------------------- -------------------------- //\n\nreturn ImagesLoaded;\n\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/imagesloaded/imagesloaded.js?"); - -/***/ }), - -/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss": -/*!******************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss ***! - \******************************************************************************************************************************************************************************************************************************************/ -/***/ (function() { - -eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/scss/ajax-load-more.scss?./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B1%5D!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet%5B1%5D.rules%5B2%5D.use%5B3%5D"); - -/***/ }), - -/***/ "./node_modules/object-inspect/index.js": -/*!**********************************************!*\ - !*** ./node_modules/object-inspect/index.js ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -eval("var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = __webpack_require__(/*! ./util.inspect */ \"?4f7e\");\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '' + $toLowerCase.call(String(obj.nodeName)) + '>';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/object-inspect/index.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/formats.js": -/*!****************************************!*\ - !*** ./node_modules/qs/lib/formats.js ***! - \****************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/formats.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/index.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/index.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar stringify = __webpack_require__(/*! ./stringify */ \"./node_modules/qs/lib/stringify.js\");\nvar parse = __webpack_require__(/*! ./parse */ \"./node_modules/qs/lib/parse.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/index.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/parse.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/parse.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!options.parseArrays && cleanRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== cleanRoot\n && String(index) === cleanRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/parse.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/stringify.js": -/*!******************************************!*\ - !*** ./node_modules/qs/lib/stringify.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar getSideChannel = __webpack_require__(/*! side-channel */ \"./node_modules/side-channel/index.js\");\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n strictNullHandling,\n skipNulls,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.strictNullHandling,\n options.skipNulls,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/stringify.js?"); - -/***/ }), - -/***/ "./node_modules/qs/lib/utils.js": -/*!**************************************!*\ - !*** ./node_modules/qs/lib/utils.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/qs/lib/utils.js?"); - -/***/ }), - -/***/ "./node_modules/side-channel/index.js": -/*!********************************************!*\ - !*** ./node_modules/side-channel/index.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar GetIntrinsic = __webpack_require__(/*! get-intrinsic */ \"./node_modules/get-intrinsic/index.js\");\nvar callBound = __webpack_require__(/*! call-bind/callBound */ \"./node_modules/call-bind/callBound.js\");\nvar inspect = __webpack_require__(/*! object-inspect */ \"./node_modules/object-inspect/index.js\");\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n * This function traverses the list returning the node corresponding to the\n * given key.\n *\n * That node is also moved to the head of the list, so that if it's accessed\n * again we don't need to traverse the whole list. By doing so, all the recently\n * used nodes can be accessed relatively quickly.\n */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\tfor (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\tcurr.next = list.next;\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = { // eslint-disable-line no-param-reassign\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t};\n\t}\n};\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Initialize the linked list as an empty node, so that we don't have\n\t\t\t\t\t * to special-case handling of the first node: we can always refer to\n\t\t\t\t\t * it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t */\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/side-channel/index.js?"); - -/***/ }), - -/***/ "./src/frontend/scss/ajax-load-more.scss": -/*!***********************************************!*\ - !*** ./src/frontend/scss/ajax-load-more.scss ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./ajax-load-more.scss */ \"./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/frontend/scss/ajax-load-more.scss\");\n/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__) if(__WEBPACK_IMPORT_KEY__ !== \"default\") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = function(key) { return _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6__[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)\n/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default()), options);\n\n\n\n\n /* harmony default export */ __webpack_exports__[\"default\"] = ((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default()) && (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) ? (_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_2_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_2_use_3_ajax_load_more_scss__WEBPACK_IMPORTED_MODULE_6___default().locals) : undefined);\n\n\n//# sourceURL=webpack://ajaxloadmore/./src/frontend/scss/ajax-load-more.scss?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": -/*!****************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! - \****************************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js": -/*!********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***! - \********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertBySelector.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js": -/*!**********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***! - \**********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/insertStyleElement.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! - \**********************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js": -/*!***************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***! - \***************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleDomAPI.js?"); - -/***/ }), - -/***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js": -/*!*********************************************************************!*\ - !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***! - \*********************************************************************/ -/***/ (function(module) { - -"use strict"; -eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/style-loader/dist/runtime/styleTagTransform.js?"); - -/***/ }), - -/***/ "?9157": -/*!************************!*\ - !*** crypto (ignored) ***! - \************************/ -/***/ (function() { - -eval("/* (ignored) */\n\n//# sourceURL=webpack://ajaxloadmore/crypto_(ignored)?"); - -/***/ }), - -/***/ "?4f7e": -/*!********************************!*\ - !*** ./util.inspect (ignored) ***! - \********************************/ -/***/ (function() { - -eval("/* (ignored) */\n\n//# sourceURL=webpack://ajaxloadmore/./util.inspect_(ignored)?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/adapters.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/adapters/adapters.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ \"./node_modules/axios/lib/helpers/null.js\");\n/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ \"./node_modules/axios/lib/adapters/xhr.js\");\n/* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fetch.js */ \"./node_modules/axios/lib/adapters/fetch.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\n\nconst knownAdapters = {\n http: _http_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n fetch: _fetch_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isFunction(adapter) || adapter === null || adapter === false;\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n getAdapter: (adapters) => {\n adapters = _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"](`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/adapters.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/fetch.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/adapters/fetch.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/composeSignals.js */ \"./node_modules/axios/lib/helpers/composeSignals.js\");\n/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/trackStream.js */ \"./node_modules/axios/lib/helpers/trackStream.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ \"./node_modules/axios/lib/helpers/progressEventReducer.js\");\n/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ \"./node_modules/axios/lib/helpers/resolveConfig.js\");\n/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/settle.js */ \"./node_modules/axios/lib/core/settle.js\");\n\n\n\n\n\n\n\n\n\n\nconst fetchProgressDecorator = (total, fn) => {\n const lengthComputable = total != null;\n return (loaded) => setTimeout(() => fn({\n lengthComputable,\n total,\n loaded\n }));\n}\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst supportsRequestStream = isReadableStreamSupported && (() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n})();\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported && !!(()=> {\n try {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isReadableStream(new Response('').body);\n } catch(err) {\n // return undefined\n }\n})();\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"](`Response type '${type}' is not supported`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isBlob(body)) {\n return body.size;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isSpecCompliantForm(body)) {\n return (await new Request(body).arrayBuffer()).byteLength;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArrayBufferView(body)) {\n return body.byteLength;\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let [composedSignal, stopTimeout] = (signal || cancelToken || timeout) ?\n (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])([signal, cancelToken], timeout) : [];\n\n let finished, request;\n\n const onFinish = () => {\n !finished && setTimeout(() => {\n composedSignal && composedSignal.unsubscribe();\n });\n\n finished = true;\n }\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(\n requestContentLength,\n (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(onUploadProgress)\n ), null, encodeText);\n }\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(withCredentials)) {\n withCredentials = withCredentials ? 'cors' : 'omit';\n }\n\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n withCredentials\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].toFiniteNumber(response.headers.get('content-length'));\n\n response = new Response(\n (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(\n responseContentLength,\n (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(onDownloadProgress, true)\n ), isStreamResponse && onFinish, encodeText),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && onFinish();\n\n stopTimeout && stopTimeout();\n\n return await new Promise((resolve, reject) => {\n (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(resolve, reject, {\n data: responseData,\n headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"].from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n onFinish();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].from(err, err && err.code, config, request);\n }\n}));\n\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/fetch.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../core/settle.js */ \"./node_modules/axios/lib/core/settle.js\");\n/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ \"./node_modules/axios/lib/helpers/parseProtocol.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ \"./node_modules/axios/lib/helpers/progressEventReducer.js\");\n/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ \"./node_modules/axios/lib/helpers/resolveConfig.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(config);\n let requestData = _config.data;\n const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(_config.headers).normalize();\n let {responseType} = _config;\n let onCanceled;\n function done() {\n if (_config.cancelToken) {\n _config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (_config.signal) {\n _config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ECONNABORTED, _config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ERR_NETWORK, _config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"];\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ECONNABORTED,\n _config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n _utils_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (typeof _config.onDownloadProgress === 'function') {\n request.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof _config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_config.onUploadProgress));\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"](null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(_config.url);\n\n if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"].protocols.indexOf(protocol) === -1) {\n reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/adapters/xhr.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/Axios.js */ \"./node_modules/axios/lib/core/Axios.js\");\n/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CancelToken.js */ \"./node_modules/axios/lib/cancel/CancelToken.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helpers/spread.js */ \"./node_modules/axios/lib/helpers/spread.js\");\n/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ \"./node_modules/axios/lib/helpers/isAxiosError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ \"./node_modules/axios/lib/adapters/adapters.js\");\n/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ \"./node_modules/axios/lib/helpers/HttpStatusCode.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](defaultConfig);\n const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.request, context);\n\n // Copy axios.prototype to instance\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance((0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n\n// Expose Cancel & CancelToken\naxios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"];\naxios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\naxios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\naxios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_8__.VERSION;\naxios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\n\n// Expose AxiosError class\naxios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"];\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"];\n\n// Expose isAxiosError\naxios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_12__[\"default\"];\n\n// Expose mergeConfig\naxios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n\naxios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_13__[\"default\"];\n\naxios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(_utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].getAdapter;\n\naxios.HttpStatusCode = _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__[\"default\"];\n\naxios.default = axios;\n\n// this module should only have a default export\n/* harmony default export */ __webpack_exports__[\"default\"] = (axios);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/axios.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n\n\n\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CancelToken);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/CancelToken.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CanceledError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CanceledError.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].call(this, message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n __CANCEL__: true\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CanceledError);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/CanceledError.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isCancel; }\n/* harmony export */ });\n\n\nfunction isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/cancel/isCancel.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ \"./node_modules/axios/lib/core/InterceptorManager.js\");\n/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dispatchRequest.js */ \"./node_modules/axios/lib/core/dispatchRequest.js\");\n/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ \"./node_modules/axios/lib/helpers/validator.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].merge(\n headers.common,\n headers[config.method]\n );\n\n headers && _utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(this.defaults, config);\n const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(config.baseURL, config.url);\n return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Axios);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/Axios.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/AxiosError.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosError.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosError);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/AxiosError.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/AxiosHeaders.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosHeaders.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ \"./node_modules/axios/lib/helpers/parseHeaders.js\");\n\n\n\n\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(value)) return;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(header), valueOrRewrite);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].freezeMethods(AxiosHeaders);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosHeaders);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/AxiosHeaders.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (InterceptorManager);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/InterceptorManager.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/buildFullPath.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/buildFullPath.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ buildFullPath; }\n/* harmony export */ });\n/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ \"./node_modules/axios/lib/helpers/isAbsoluteURL.js\");\n/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/combineURLs.js */ \"./node_modules/axios/lib/helpers/combineURLs.js\");\n\n\n\n\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nfunction buildFullPath(baseURL, requestedURL) {\n if (baseURL && !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(requestedURL)) {\n return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(baseURL, requestedURL);\n }\n return requestedURL;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/buildFullPath.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ dispatchRequest; }\n/* harmony export */ });\n/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transformData.js */ \"./node_modules/axios/lib/core/transformData.js\");\n/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../cancel/isCancel.js */ \"./node_modules/axios/lib/cancel/isCancel.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../adapters/adapters.js */ \"./node_modules/axios/lib/adapters/adapters.js\");\n\n\n\n\n\n\n\n\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nfunction dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(config.headers);\n\n // Transform request data\n config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/dispatchRequest.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/mergeConfig.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/mergeConfig.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ mergeConfig; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\nconst headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nfunction mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(source)) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].merge.call({caseless}, target, source);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isPlainObject(source)) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].merge({}, source);\n } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/mergeConfig.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ settle; }\n/* harmony export */ });\n/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nfunction settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](\n 'Request failed with status code ' + response.status,\n [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/settle.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ transformData; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ \"./node_modules/axios/lib/defaults/index.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n\n\n\n\n\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nfunction transformData(fns, response) {\n const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n const context = response || config;\n const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(context.headers);\n let data = context.data;\n\n _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/core/transformData.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/defaults/index.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transitional.js */ \"./node_modules/axios/lib/defaults/transitional.js\");\n/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ \"./node_modules/axios/lib/helpers/toURLEncodedForm.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ \"./node_modules/axios/lib/helpers/formDataToJSON.js\");\n\n\n\n\n\n\n\n\n\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(data);\n\n if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(data)) : data;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBuffer(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isStream(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFile(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(data) ||\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isReadableStream(data)\n ) {\n return data;\n }\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBufferView(data)) {\n return data.buffer;\n }\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(data, this.formSerializer).toString();\n }\n\n if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isResponse(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isReadableStream(data)) {\n return data;\n }\n\n if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].classes.FormData,\n Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"].classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\n_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (defaults);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/defaults/index.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/transitional.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/defaults/transitional.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/defaults/transitional.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/env/data.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/env/data.js ***! - \********************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ VERSION: function() { return /* binding */ VERSION; }\n/* harmony export */ });\nconst VERSION = \"1.7.2\";\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/env/data.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js": -/*!****************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n\n\n\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AxiosURLSearchParams);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/HttpStatusCode.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/HttpStatusCode.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\nconst HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (HttpStatusCode);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/HttpStatusCode.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ bind; }\n/* harmony export */ });\n\n\nfunction bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/bind.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ buildURL; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nfunction buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isURLSearchParams(params) ?\n params.toString() :\n new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/buildURL.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ combineURLs; }\n/* harmony export */ });\n\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nfunction combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/combineURLs.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/composeSignals.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/composeSignals.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/CanceledError.js */ \"./node_modules/axios/lib/cancel/CanceledError.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\nconst composeSignals = (signals, timeout) => {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (cancel) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = cancel instanceof Error ? cancel : this.reason;\n controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](`timeout ${timeout} of ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal &&\n (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort));\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal && signal.addEventListener && signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = unsubscribe;\n\n return [signal, () => {\n timer && clearTimeout(timer);\n timer = null;\n }];\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (composeSignals);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/composeSignals.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(path) && cookie.push('path=' + path);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n });\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/cookies.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/formDataToJSON.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/formDataToJSON.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target) ? target.length : name;\n\n if (isLast) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFormData(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(formData.entries)) {\n const obj = {};\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (formDataToJSON);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/formDataToJSON.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isAbsoluteURL; }\n/* harmony export */ });\n\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nfunction isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isAbsoluteURL.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ isAxiosError; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nfunction isAxiosError(payload) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(payload) && (payload.isAxiosError === true);\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isAxiosError.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hasStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })());\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isURLSameOrigin.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/null.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/null.js ***! - \************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n// eslint-disable-next-line strict\n/* harmony default export */ __webpack_exports__[\"default\"] = (null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/null.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ \"./node_modules/axios/lib/utils.js\");\n\n\n\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\n/* harmony default export */ __webpack_exports__[\"default\"] = (rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/parseHeaders.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseProtocol.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseProtocol.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ parseProtocol; }\n/* harmony export */ });\n\n\nfunction parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/parseProtocol.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/progressEventReducer.js": -/*!****************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/progressEventReducer.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./speedometer.js */ \"./node_modules/axios/lib/helpers/speedometer.js\");\n/* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./throttle.js */ \"./node_modules/axios/lib/helpers/throttle.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(50, 250);\n\n return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n }, freq);\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/progressEventReducer.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/resolveConfig.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/resolveConfig.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isURLSameOrigin.js */ \"./node_modules/axios/lib/helpers/isURLSameOrigin.js\");\n/* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cookies.js */ \"./node_modules/axios/lib/helpers/cookies.js\");\n/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/buildFullPath.js */ \"./node_modules/axios/lib/core/buildFullPath.js\");\n/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/mergeConfig.js */ \"./node_modules/axios/lib/core/mergeConfig.js\");\n/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ \"./node_modules/axios/lib/core/AxiosHeaders.js\");\n/* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./buildURL.js */ \"./node_modules/axios/lib/helpers/buildURL.js\");\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((config) => {\n const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].from(headers);\n\n newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isFormData(data)) {\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"].hasStandardBrowserEnv) {\n withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"].read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n});\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/resolveConfig.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/speedometer.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/speedometer.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (speedometer);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/speedometer.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ spread; }\n/* harmony export */ });\n\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nfunction spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/spread.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/throttle.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/throttle.js ***! - \****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n const threshold = 1000 / freq;\n let timer = null;\n return function throttled() {\n const force = this === true;\n\n const now = Date.now();\n if (force || now - timestamp > threshold) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timestamp = now;\n return fn.apply(null, arguments);\n }\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n timestamp = Date.now();\n return fn.apply(null, arguments);\n }, threshold - (now - timestamp));\n }\n };\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (throttle);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/throttle.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/toFormData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toFormData.js ***! - \******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ \"./node_modules/axios/lib/helpers/null.js\");\n\n\n\n\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\n\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isPlainObject(thing) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"] || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isSpecCompliantForm(formData);\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isBlob(value)) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]('Blob is not supported. Use a Buffer instead.');\n }\n\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isArray(value) && isFlatArray(value)) ||\n ((_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].forEach(value, function each(el, key) {\n const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isUndefined(el) || el === null) && visitor.call(\n formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (toFormData);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/toFormData.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/toURLEncodedForm.js": -/*!************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toURLEncodedForm.js ***! - \************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ toURLEncodedForm; }\n/* harmony export */ });\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ \"./node_modules/axios/lib/utils.js\");\n/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ \"./node_modules/axios/lib/helpers/toFormData.js\");\n/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ \"./node_modules/axios/lib/platform/index.js\");\n\n\n\n\n\n\nfunction toURLEncodedForm(data, options) {\n return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/toURLEncodedForm.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/trackStream.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/trackStream.js ***! - \*******************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ readBytes: function() { return /* binding */ readBytes; },\n/* harmony export */ streamChunk: function() { return /* binding */ streamChunk; },\n/* harmony export */ trackStream: function() { return /* binding */ trackStream; }\n/* harmony export */ });\n\n\nconst streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nconst readBytes = async function* (iterable, chunkSize, encode) {\n for await (const chunk of iterable) {\n yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : (await encode(String(chunk))), chunkSize);\n }\n}\n\nconst trackStream = (stream, chunkSize, onProgress, onFinish, encode) => {\n const iterator = readBytes(stream, chunkSize, encode);\n\n let bytes = 0;\n\n return new ReadableStream({\n type: 'bytes',\n\n async pull(controller) {\n const {done, value} = await iterator.next();\n\n if (done) {\n controller.close();\n onFinish();\n return;\n }\n\n let len = value.byteLength;\n onProgress && onProgress(bytes += len);\n controller.enqueue(new Uint8Array(value));\n },\n cancel(reason) {\n onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/trackStream.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/validator.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/validator.js ***! - \*****************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ \"./node_modules/axios/lib/env/data.js\");\n/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ \"./node_modules/axios/lib/core/AxiosError.js\");\n\n\n\n\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('options must be an object', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('Unknown option ' + opt, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].ERR_BAD_OPTION);\n }\n }\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n assertOptions,\n validators\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/helpers/validator.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/Blob.js": -/*!*****************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/Blob.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof Blob !== 'undefined' ? Blob : null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/Blob.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/FormData.js": -/*!*********************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/FormData.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof FormData !== 'undefined' ? FormData : null);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/FormData.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js": -/*!****************************************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***! - \****************************************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ \"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/browser/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/axios/lib/platform/browser/index.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ \"./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js\");\n/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ \"./node_modules/axios/lib/platform/browser/classes/FormData.js\");\n/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ \"./node_modules/axios/lib/platform/browser/classes/Blob.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isBrowser: true,\n classes: {\n URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/browser/index.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/common/utils.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/platform/common/utils.js ***! - \*********************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ hasBrowserEnv: function() { return /* binding */ hasBrowserEnv; },\n/* harmony export */ hasStandardBrowserEnv: function() { return /* binding */ hasStandardBrowserEnv; },\n/* harmony export */ hasStandardBrowserWebWorkerEnv: function() { return /* binding */ hasStandardBrowserWebWorkerEnv; },\n/* harmony export */ origin: function() { return /* binding */ origin; }\n/* harmony export */ });\nconst hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\n\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/common/utils.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/platform/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/platform/index.js ***! - \**************************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node/index.js */ \"./node_modules/axios/lib/platform/browser/index.js\");\n/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common/utils.js */ \"./node_modules/axios/lib/platform/common/utils.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n ..._common_utils_js__WEBPACK_IMPORTED_MODULE_0__,\n ..._node_index_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/platform/index.js?"); - -/***/ }), - -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ -/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ \"./node_modules/axios/lib/helpers/bind.js\");\n\n\n\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n});\n\n\n//# sourceURL=webpack://ajaxloadmore/./node_modules/axios/lib/utils.js?"); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ !function() { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function() { return module['default']; } : -/******/ function() { return module; }; -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/global */ -/******/ !function() { -/******/ __webpack_require__.g = (function() { -/******/ if (typeof globalThis === 'object') return globalThis; -/******/ try { -/******/ return this || new Function('return this')(); -/******/ } catch (e) { -/******/ if (typeof window === 'object') return window; -/******/ } -/******/ })(); -/******/ }(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/nonce */ -/******/ !function() { -/******/ __webpack_require__.nc = undefined; -/******/ }(); -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __webpack_require__("./src/frontend/js/ajax-load-more.js"); -/******/ ajaxloadmore = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file +var ajaxloadmore;!function(){var t={924:function(t,e,n){"use strict";var r=n(210),o=n(559),a=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&a(t,".prototype.")>-1?o(n):n}},559:function(t,e,n){"use strict";var r=n(612),o=n(210),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(i,a),l=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,i,arguments);l&&c&&(l(e,"length").configurable&&c(e,"length",{value:1+u(0,t.length-(arguments.length-1))}));return e};var d=function(){return s(r,a,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},249:function(t,e,n){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(480)}catch(t){}var o=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},s=i.lib={},l=s.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;e[r+a>>>2]|=i<<24-(r+a)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new c.init(n,e/2)}},p=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new c.init(n,e)}},f=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},g=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,s=a/(4*i),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*i,u=t.min(4*l,a);if(l){for(var d=0;d>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,i=t[e+0],l=t[e+1],f=t[e+2],g=t[e+3],h=t[e+4],m=t[e+5],y=t[e+6],v=t[e+7],_=t[e+8],w=t[e+9],b=t[e+10],x=t[e+11],S=t[e+12],L=t[e+13],E=t[e+14],j=t[e+15],A=a[0],O=a[1],P=a[2],T=a[3];A=c(A,O,P,T,i,7,s[0]),T=c(T,A,O,P,l,12,s[1]),P=c(P,T,A,O,f,17,s[2]),O=c(O,P,T,A,g,22,s[3]),A=c(A,O,P,T,h,7,s[4]),T=c(T,A,O,P,m,12,s[5]),P=c(P,T,A,O,y,17,s[6]),O=c(O,P,T,A,v,22,s[7]),A=c(A,O,P,T,_,7,s[8]),T=c(T,A,O,P,w,12,s[9]),P=c(P,T,A,O,b,17,s[10]),O=c(O,P,T,A,x,22,s[11]),A=c(A,O,P,T,S,7,s[12]),T=c(T,A,O,P,L,12,s[13]),P=c(P,T,A,O,E,17,s[14]),A=u(A,O=c(O,P,T,A,j,22,s[15]),P,T,l,5,s[16]),T=u(T,A,O,P,y,9,s[17]),P=u(P,T,A,O,x,14,s[18]),O=u(O,P,T,A,i,20,s[19]),A=u(A,O,P,T,m,5,s[20]),T=u(T,A,O,P,b,9,s[21]),P=u(P,T,A,O,j,14,s[22]),O=u(O,P,T,A,h,20,s[23]),A=u(A,O,P,T,w,5,s[24]),T=u(T,A,O,P,E,9,s[25]),P=u(P,T,A,O,g,14,s[26]),O=u(O,P,T,A,_,20,s[27]),A=u(A,O,P,T,L,5,s[28]),T=u(T,A,O,P,f,9,s[29]),P=u(P,T,A,O,v,14,s[30]),A=d(A,O=u(O,P,T,A,S,20,s[31]),P,T,m,4,s[32]),T=d(T,A,O,P,_,11,s[33]),P=d(P,T,A,O,x,16,s[34]),O=d(O,P,T,A,E,23,s[35]),A=d(A,O,P,T,l,4,s[36]),T=d(T,A,O,P,h,11,s[37]),P=d(P,T,A,O,v,16,s[38]),O=d(O,P,T,A,b,23,s[39]),A=d(A,O,P,T,L,4,s[40]),T=d(T,A,O,P,i,11,s[41]),P=d(P,T,A,O,g,16,s[42]),O=d(O,P,T,A,y,23,s[43]),A=d(A,O,P,T,w,4,s[44]),T=d(T,A,O,P,S,11,s[45]),P=d(P,T,A,O,j,16,s[46]),A=p(A,O=d(O,P,T,A,f,23,s[47]),P,T,i,6,s[48]),T=p(T,A,O,P,v,10,s[49]),P=p(P,T,A,O,E,15,s[50]),O=p(O,P,T,A,m,21,s[51]),A=p(A,O,P,T,S,6,s[52]),T=p(T,A,O,P,g,10,s[53]),P=p(P,T,A,O,b,15,s[54]),O=p(O,P,T,A,l,21,s[55]),A=p(A,O,P,T,_,6,s[56]),T=p(T,A,O,P,j,10,s[57]),P=p(P,T,A,O,y,15,s[58]),O=p(O,P,T,A,L,21,s[59]),A=p(A,O,P,T,h,6,s[60]),T=p(T,A,O,P,x,10,s[61]),P=p(P,T,A,O,f,15,s[62]),O=p(O,P,T,A,w,21,s[63]),a[0]=a[0]+A|0,a[1]=a[1]+O|0,a[2]=a[2]+P|0,a[3]=a[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var a=t.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,o,a,i){var s=t+(e&n|~e&r)+o+i;return(s<>>32-a)+e}function u(t,e,n,r,o,a,i){var s=t+(e&r|n&~r)+o+i;return(s<>>32-a)+e}function d(t,e,n,r,o,a,i){var s=t+(e^n^r)+o+i;return(s<>>32-a)+e}function p(t,e,n,r,o,a,i){var s=t+(n^(e|~r))+o+i;return(s<>>32-a)+e}e.MD5=a._createHelper(l),e.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5)},158:function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=E(t,0,1),n=E(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return L(t,A,(function(t,e,n,o){r[r.length]=n?L(o,O,"$1"):e||t})),r}(t),r=n.length>0?n[0]:"",a=P("%"+r+"%",e),s=a.name,c=a.value,u=!1,d=a.alias;d&&(r=d[0],S(n,x([0,1],d)));for(var p=1,f=!0;p=n.length){var v=l(c,g);c=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[g]}else f=b(c,g),c=c[g];f&&!u&&(m[s]=c)}}return c}},185:function(t){"use strict";var e={foo:{}},n=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof n)}},405:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(419);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},419:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},642:function(t,e,n){"use strict";var r=n(612);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},564:function(t,e,n){var r,o; +/*! + * imagesLoaded v4.1.4 + * JavaScript is all like "You images are done yet or what?" + * MIT License + */!function(a,i){"use strict";r=[n(158)],o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?a.call(t):[t]}function s(t,e,a){if(!(this instanceof s))return new s(t,e,a);var l=t;"string"==typeof t&&(l=document.querySelectorAll(t)),l?(this.elements=i(l),this.options=o({},this.options),"function"==typeof e?a=e:o(this.options,e),a&&this.on("always",a),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(l||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var n=t.querySelectorAll("img"),r=0;r-1e3&&t<1e3||x.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-j(-t):j(t);if(r!==t){var o=String(r),a=v.call(e,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(e,n,"$&_")}var R=n(654),C=R.custom,F=z(C)?C:null;function q(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function D(t){return _.call(String(t),/"/g,""")}function B(t){return!("[object Array]"!==W(t)||k&&"object"==typeof t&&k in t)}function U(t){return!("[object RegExp]"!==W(t)||k&&"object"==typeof t&&k in t)}function z(t){if(T)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var s=n||{};if(G(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!G(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return $(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return h?N(e,w):w}if("bigint"==typeof e){var x=String(e)+"n";return h?N(e,x):x}var j=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=j&&j>0&&"object"==typeof e)return B(e)?"[Array]":"[Object]";var O=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=L.call(Array(t.indent+1)," ")}return{base:n,prev:L.call(Array(e+1),n)}}(s,r);if(void 0===o)o=[];else if(V(o,e)>=0)return"[Circular]";function C(e,n,a){if(n&&(o=E.call(o)).push(n),a){var i={depth:s.depth};return G(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),t(e,i,r+1,o)}return t(e,s,r+1,o)}if("function"==typeof e&&!U(e)){var H=function(t){if(t.name)return t.name;var e=y.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),J=Z(e,C);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(J.length>0?" { "+L.call(J,", ")+" }":"")}if(z(e)){var tt=T?_.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(e);return"object"!=typeof e||T?tt:Q(tt)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var et="<"+b.call(String(e.nodeName)),nt=e.attributes||[],rt=0;rt",e.childNodes&&e.childNodes.length&&(et+="..."),et+=""+b.call(String(e.nodeName))+">"}if(B(e)){if(0===e.length)return"[]";var ot=Z(e,C);return O&&!function(t){for(var e=0;e=0)return!1;return!0}(ot)?"["+X(ot,O)+"]":"[ "+L.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==W(t)||k&&"object"==typeof t&&k in t)}(e)){var at=Z(e,C);return"cause"in Error.prototype||!("cause"in e)||I.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+L.call(at,", ")+" }":"{ ["+String(e)+"] "+L.call(S.call("[cause]: "+C(e.cause),at),", ")+" }"}if("object"==typeof e&&l){if(F&&"function"==typeof e[F]&&R)return R(e,{depth:j-r});if("symbol"!==l&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var it=[];return i&&i.call(e,(function(t,n){it.push(C(n,e,!0)+" => "+C(t,e))})),K("Map",a.call(e),it,O)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{a.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return u&&u.call(e,(function(t){st.push(C(t,e))})),K("Set",c.call(e),st,O)}if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return!("[object Number]"!==W(t)||k&&"object"==typeof t&&k in t)}(e))return Q(C(Number(e)));if(function(t){if(!t||"object"!=typeof t||!A)return!1;try{return A.call(t),!0}catch(t){}return!1}(e))return Q(C(A.call(e)));if(function(t){return!("[object Boolean]"!==W(t)||k&&"object"==typeof t&&k in t)}(e))return Q(g.call(e));if(function(t){return!("[object String]"!==W(t)||k&&"object"==typeof t&&k in t)}(e))return Q(C(String(e)));if(!function(t){return!("[object Date]"!==W(t)||k&&"object"==typeof t&&k in t)}(e)&&!U(e)){var lt=Z(e,C),ct=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,ut=e instanceof Object?"":"null prototype",dt=!ct&&k&&Object(e)===e&&k in e?v.call(W(e),8,-1):ut?"Object":"",pt=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(dt||ut?"["+L.call(S.call([],dt||[],ut||[]),": ")+"] ":"");return 0===lt.length?pt+"{}":O?pt+"{"+X(lt,O)+"}":pt+"{ "+L.call(lt,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function G(t,e){return H.call(t,e)}function W(t){return h.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(v.call(t,0,e.maxStringLength),e)+r}return q(_.call(_.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Q(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function K(t,e,n,r){return t+" ("+e+") {"+(r?X(n,r):L.call(n,", "))+"}"}function X(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+L.call(t,","+n)+"\n"+e.prev}function Z(t,e){var n=B(t),r=[];if(n){r.length=t.length;for(var o=0;o-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:"__proto__"!==c&&(i[c]=o):i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:i.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,p=u.split(e.delimiter,d),f=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(m=a(m)?[m]:m),o.call(c,h)?c[h]=r.combine(c[h],m):c[h]=m}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},p=Object.keys(u),f=0;f0?L.join(",")||null:void 0}];else if(l(p))P=p;else{var k=Object.keys(L);P=h?k.sort(h):k}for(var I=i&&l(L)&&1===L.length?n+"[]":n,M=0;M0?b+w:""}},769:function(t,e,n){"use strict";var r=n(798),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r1;){var e=t.pop(),n=e.obj[e.prop];if(a(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=i[u]:u<2048?l+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?l+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return l},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var n=[],r=0;r0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},589:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},480:function(){},654:function(){}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};!function(){"use strict";n.r(r),n.d(r,{almScroll:function(){return eo},analytics:function(){return Zr},click:function(){return ro},filter:function(){return Jr},getOffset:function(){return no},getPostCount:function(){return Yr},getTotalPosts:function(){return Kr},getTotalRemaining:function(){return Xr},reset:function(){return Qr},start:function(){return to},wpblock:function(){return oo}});var t={};function e(t,e){return function(){return t.apply(e,arguments)}}n.r(t),n.d(t,{hasBrowserEnv:function(){return it},hasStandardBrowserEnv:function(){return st},hasStandardBrowserWebWorkerEnv:function(){return ct},origin:function(){return ut}});const{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,i=(s=Object.create(null),t=>{const e=o.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())});var s;const l=t=>(t=t.toLowerCase(),e=>i(e)===t),c=t=>e=>typeof e===t,{isArray:u}=Array,d=c("undefined");const p=l("ArrayBuffer");const f=c("string"),g=c("function"),h=c("number"),m=t=>null!==t&&"object"==typeof t,y=t=>{if("object"!==i(t))return!1;const e=a(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},v=l("Date"),_=l("File"),w=l("Blob"),b=l("FileList"),x=l("URLSearchParams"),[S,L,E,j]=["ReadableStream","Request","Response","Headers"].map(l);function A(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),u(t))for(r=0,o=t.length;r0;)if(r=n[o],e===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=t=>!d(t)&&t!==P;const k=(I="undefined"!=typeof Uint8Array&&a(Uint8Array),t=>I&&t instanceof I);var I;const M=l("HTMLFormElement"),N=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),R=l("RegExp"),C=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};A(n,((n,o)=>{let a;!1!==(a=e(n,o,t))&&(r[o]=a||n)})),Object.defineProperties(t,r)},F="abcdefghijklmnopqrstuvwxyz",q="0123456789",D={DIGIT:q,ALPHA:F,ALPHA_DIGIT:F+F.toUpperCase()+q};const B=l("AsyncFunction");var U={isArray:u,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=i(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:f,isNumber:h,isBoolean:t=>!0===t||!1===t,isObject:m,isPlainObject:y,isReadableStream:S,isRequest:L,isResponse:E,isHeaders:j,isUndefined:d,isDate:v,isFile:_,isBlob:w,isRegExp:R,isFunction:g,isStream:t=>m(t)&&g(t.pipe),isURLSearchParams:x,isTypedArray:k,isFileList:b,forEach:A,merge:function t(){const{caseless:e}=T(this)&&this||{},n={},r=(r,o)=>{const a=e&&O(n,o)||o;y(n[a])&&y(r)?n[a]=t(n[a],r):y(r)?n[a]=t({},r):u(r)?n[a]=r.slice():n[a]=r};for(let t=0,e=arguments.length;t(A(n,((n,o)=>{r&&g(n)?t[o]=e(n,r):t[o]=n}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const l={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==n&&a(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:i,kindOfTest:l,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!h(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:C,freezeMethods:t=>{C(t,((e,n)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];g(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:O,global:P,isContextDefined:T,ALPHABET:D,generateString:(t=16,e=D.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(m(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=u(t)?[]:{};return A(t,((t,e)=>{const a=n(t,r+1);!d(a)&&(o[e]=a)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:B,isThenable:t=>t&&(m(t)||g(t))&&g(t.then)&&g(t.catch)};function z(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}U.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H=z.prototype,G={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{G[t]={value:t}})),Object.defineProperties(z,G),Object.defineProperty(H,"isAxiosError",{value:!0}),z.from=(t,e,n,r,o,a)=>{const i=Object.create(H);return U.toFlatObject(t,i,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),z.call(i,t.message,e,n,r,o),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};var W=z;function V(t){return U.isPlainObject(t)||U.isArray(t)}function $(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function J(t,e,n){return t?t.concat(e).map((function(t,e){return t=$(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Q=U.toFlatObject(U,{},null,(function(t){return/^is[A-Z]/.test(t)}));var Y=function(t,e,n){if(!U.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!U.isUndefined(e[t])}))).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&U.isSpecCompliantForm(e);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(U.isDate(t))return t.toISOString();if(!s&&U.isBlob(t))throw new W("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(t)||U.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(U.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(U.isArray(t)&&function(t){return U.isArray(t)&&!t.some(V)}(t)||(U.isFileList(t)||U.endsWith(n,"[]"))&&(s=U.toArray(t)))return n=$(n),s.forEach((function(t,r){!U.isUndefined(t)&&null!==t&&e.append(!0===i?J([n],r,a):null===i?n:n+"[]",l(t))})),!1;return!!V(t)||(e.append(J(o,n,a),l(t)),!1)}const u=[],d=Object.assign(Q,{defaultVisitor:c,convertValue:l,isVisitable:V});if(!U.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!U.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),U.forEach(n,(function(n,a){!0===(!(U.isUndefined(n)||null===n)&&o.call(e,n,U.isString(a)?a.trim():a,r,d))&&t(n,r?r.concat(a):[a])})),u.pop()}}(t),e};function K(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function X(t,e){this._pairs=[],t&&Y(t,this,e)}const Z=X.prototype;Z.append=function(t,e){this._pairs.push([t,e])},Z.toString=function(t){const e=t?function(e){return t.call(this,e,K)}:K;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var tt=X;function et(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nt(t,e,n){if(!e)return t;const r=n&&n.encode||et,o=n&&n.serialize;let a;if(a=o?o(e,n):U.isURLSearchParams(e)?e.toString():new tt(e,n).toString(r),a){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}var rt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},at={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const it="undefined"!=typeof window&&"undefined"!=typeof document,st=(lt="undefined"!=typeof navigator&&navigator.product,it&&["ReactNative","NativeScript","NS"].indexOf(lt)<0);var lt;const ct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ut=it&&window.location.href||"http://localhost";var dt={...t,...at};var pt=function(t){function e(t,n,r,o){let a=t[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=t.length;if(a=!a&&U.isArray(r)?r.length:a,s)return U.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&U.isObject(r[a])||(r[a]=[]);return e(t,n,r[a],o)&&U.isArray(r[a])&&(r[a]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let a;for(r=0;r{e(function(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const ft={transitional:ot,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=U.isObject(t);o&&U.isHTMLForm(t)&&(t=new FormData(t));if(U.isFormData(t))return r?JSON.stringify(pt(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Y(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return dt.isNode&&U.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((a=U.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Y(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(U.isString(t))try{return(e||JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||ft.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw W.from(t,W.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],(t=>{ft.headers[t]={}}));var gt=ft;const ht=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const mt=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function vt(t){return!1===t||null==t?t:U.isArray(t)?t.map(vt):String(t)}function _t(t,e,n,r,o){return U.isFunction(r)?r.call(this,e,n):(o&&(e=n),U.isString(e)?U.isString(r)?-1!==e.indexOf(r):U.isRegExp(r)?r.test(e):void 0:void 0)}class wt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=yt(e);if(!o)throw new Error("header name must be a non-empty string");const a=U.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||e]=vt(t))}const a=(t,e)=>U.forEach(t,((t,n)=>o(t,n,e)));if(U.isPlainObject(t)||t instanceof this.constructor)a(t,e);else if(U.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))a((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&ht[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(U.isHeaders(t))for(const[e,r]of t.entries())o(r,e,n);else null!=t&&o(e,t,n);return this}get(t,e){if(t=yt(t)){const n=U.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(U.isFunction(e))return e.call(this,t,n);if(U.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=yt(t)){const n=U.findKey(this,t);return!(!n||void 0===this[n]||e&&!_t(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=yt(t)){const o=U.findKey(n,t);!o||e&&!_t(0,n[o],o,e)||(delete n[o],r=!0)}}return U.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!_t(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return U.forEach(this,((r,o)=>{const a=U.findKey(n,o);if(a)return e[a]=vt(r),void delete e[o];const i=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete e[o],e[i]=vt(r),n[i]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return U.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&U.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[mt]=this[mt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=yt(t);e[r]||(!function(t,e){const n=U.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return U.isArray(t)?t.forEach(r):r(t),this}}wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(wt.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),U.freezeMethods(wt);var bt=wt;function xt(t,e){const n=this||gt,r=e||n,o=bt.from(r.headers);let a=r.data;return U.forEach(t,(function(t){a=t.call(n,a,o.normalize(),e?e.status:void 0)})),o.normalize(),a}function St(t){return!(!t||!t.__CANCEL__)}function Lt(t,e,n){W.call(this,null==t?"canceled":t,W.ERR_CANCELED,e,n),this.name="CanceledError"}U.inherits(Lt,W,{__CANCEL__:!0});var Et=Lt;function jt(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}var At=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,a=0,i=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=r[i];o||(o=l),n[a]=s,r[a]=l;let u=i,d=0;for(;u!==a;)d+=n[u++],u%=t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),l-or)return o&&(clearTimeout(o),o=null),n=a,t.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),t.apply(null,arguments))),r-(a-n)))}},Pt=(t,e,n=3)=>{let r=0;const o=At(50,250);return Ot((n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i};c[e?"download":"upload"]=!0,t(c)}),n)},Tt=dt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=U.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0},kt=dt.hasStandardBrowserEnv?{write(t,e,n,r,o,a){const i=[t+"="+encodeURIComponent(e)];U.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),U.isString(r)&&i.push("path="+r),U.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function It(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Mt=t=>t instanceof bt?{...t}:t;function Nt(t,e){e=e||{};const n={};function r(t,e,n){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge.call({caseless:n},t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function o(t,e,n){return U.isUndefined(e)?U.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function a(t,e){if(!U.isUndefined(e))return r(void 0,e)}function i(t,e){return U.isUndefined(e)?U.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,a){return a in e?r(n,o):a in t?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(t,e)=>o(Mt(t),Mt(e),!0)};return U.forEach(Object.keys(Object.assign({},t,e)),(function(r){const a=l[r]||o,i=a(t[r],e[r],r);U.isUndefined(i)&&a!==s||(n[r]=i)})),n}var Rt=t=>{const e=Nt({},t);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=e;if(e.headers=s=bt.from(s),e.url=nt(It(e.baseURL,e.url),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),U.isFormData(r))if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(dt.hasStandardBrowserEnv&&(o&&U.isFunction(o)&&(o=o(e)),o||!1!==o&&Tt(e.url))){const t=a&&i&&kt.read(i);t&&s.set(a,t)}return e};var Ct="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=Rt(t);let o=r.data;const a=bt.from(r.headers).normalize();let i,{responseType:s}=r;function l(){r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let c=new XMLHttpRequest;function u(){if(!c)return;const r=bt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());jt((function(t){e(t),l()}),(function(t){n(t),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new W("Request aborted",W.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const e=r.transitional||ot;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,e.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,r,c)),c=null},void 0===o&&a.setContentType(null),"setRequestHeader"in c&&U.forEach(a.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),U.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),s&&"json"!==s&&(c.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&c.addEventListener("progress",Pt(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Pt(r.onUploadProgress)),(r.cancelToken||r.signal)&&(i=e=>{c&&(n(!e||e.type?new Et(null,t,c):e),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const d=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);d&&-1===dt.protocols.indexOf(d)?n(new W("Unsupported protocol "+d+":",W.ERR_BAD_REQUEST,t)):c.send(o||null)}))};var Ft=(t,e)=>{let n,r=new AbortController;const o=function(t){if(!n){n=!0,i();const e=t instanceof Error?t:this.reason;r.abort(e instanceof W?e:new Et(e instanceof Error?e.message:e))}};let a=e&&setTimeout((()=>{o(new W(`timeout ${e} of ms exceeded`,W.ETIMEDOUT))}),e);const i=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach((t=>{t&&(t.removeEventListener?t.removeEventListener("abort",o):t.unsubscribe(o))})),t=null)};t.forEach((t=>t&&t.addEventListener&&t.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=i,[s,()=>{a&&clearTimeout(a),a=null}]};const qt=function*(t,e){let n=t.byteLength;if(!e||n{const a=async function*(t,e,n){for await(const r of t)yield*qt(ArrayBuffer.isView(r)?r:await n(String(r)),e)}(t,e,o);let i=0;return new ReadableStream({type:"bytes",async pull(t){const{done:e,value:o}=await a.next();if(e)return t.close(),void r();let s=o.byteLength;n&&n(i+=s),t.enqueue(new Uint8Array(o))},cancel(t){return r(t),a.return()}},{highWaterMark:2})},Bt=(t,e)=>{const n=null!=t;return r=>setTimeout((()=>e({lengthComputable:n,total:t,loaded:r})))},Ut="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,zt=Ut&&"function"==typeof ReadableStream,Ht=Ut&&("function"==typeof TextEncoder?(Gt=new TextEncoder,t=>Gt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Gt;const Wt=zt&&(()=>{let t=!1;const e=new Request(dt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),Vt=zt&&!!(()=>{try{return U.isReadableStream(new Response("").body)}catch(t){}})(),$t={stream:Vt&&(t=>t.body)};var Jt;Ut&&(Jt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!$t[t]&&($t[t]=U.isFunction(Jt[t])?e=>e[t]():(e,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})));const Qt=async(t,e)=>{const n=U.toFiniteNumber(t.getContentLength());return null==n?(async t=>null==t?0:U.isBlob(t)?t.size:U.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:U.isArrayBufferView(t)?t.byteLength:(U.isURLSearchParams(t)&&(t+=""),U.isString(t)?(await Ht(t)).byteLength:void 0))(e):n};var Yt=Ut&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Rt(t);c=c?(c+"").toLowerCase():"text";let f,g,[h,m]=o||a||i?Ft([o,a],i):[];const y=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let v;try{if(l&&Wt&&"get"!==n&&"head"!==n&&0!==(v=await Qt(u,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});U.isFormData(r)&&(t=n.headers.get("content-type"))&&u.setContentType(t),n.body&&(r=Dt(n.body,65536,Bt(v,Pt(l)),null,Ht))}U.isString(d)||(d=d?"cors":"omit"),g=new Request(e,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let o=await fetch(g);const a=Vt&&("stream"===c||"response"===c);if(Vt&&(s||a)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=U.toFiniteNumber(o.headers.get("content-length"));o=new Response(Dt(o.body,65536,s&&Bt(e,Pt(s,!0)),a&&y,Ht),t)}c=c||"text";let i=await $t[U.findKey($t,c)||"text"](o,t);return!a&&y(),m&&m(),await new Promise(((e,n)=>{jt(e,n,{data:i,headers:bt.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:g})}))}catch(e){if(y(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,t,g),{cause:e.cause||e});throw W.from(e,e&&e.code,t,g)}});const Kt={http:null,xhr:Ct,fetch:Yt};U.forEach(Kt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Xt=t=>`- ${t}`,Zt=t=>U.isFunction(t)||null===t||!1===t;var te=t=>{t=U.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let a=0;a`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(Xt).join("\n"):" "+Xt(t[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Et(null,t)}function ne(t){ee(t),t.headers=bt.from(t.headers),t.data=xt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return te(t.adapter||gt.adapter)(t).then((function(e){return ee(t),e.data=xt.call(t,t.transformResponse,e),e.headers=bt.from(e.headers),e}),(function(e){return St(e)||(ee(t),e&&e.response&&(e.response.data=xt.call(t,t.transformResponse,e.response),e.response.headers=bt.from(e.response.headers))),Promise.reject(e)}))}const re="1.7.2",oe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{oe[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const ae={};oe.transitional=function(t,e,n){function r(t,e){return"[Axios v1.7.2] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,a)=>{if(!1===t)throw new W(r(o," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!ae[o]&&(ae[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,a)}};var ie={assertOptions:function(t,e,n){if("object"!=typeof t)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const a=r[o],i=e[a];if(i){const e=t[a],n=void 0===e||i(e,a,t);if(!0!==n)throw new W("option "+a+" must be "+n,W.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new W("Unknown option "+a,W.ERR_BAD_OPTION)}},validators:oe};const se=ie.validators;class le{constructor(t){this.defaults=t,this.interceptors={request:new rt,response:new rt}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Nt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&ie.assertOptions(n,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1),null!=r&&(U.isFunction(r)?e.paramsSerializer={serialize:r}:ie.assertOptions(r,{encode:se.function,serialize:se.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=o&&U.merge(o.common,o[e.method]);o&&U.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=bt.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,i.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let u,d=0;if(!s){const t=[ne.bind(this),void 0];for(t.unshift.apply(t,i),t.push.apply(t,l),u=t.length,c=Promise.resolve(e);d{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Et(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new ue((function(e){t=e})),cancel:t}}}var de=ue;const pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pe).forEach((([t,e])=>{pe[e]=t}));var fe=pe;const ge=function t(n){const r=new ce(n),o=e(ce.prototype.request,r);return U.extend(o,ce.prototype,r,{allOwnKeys:!0}),U.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Nt(n,e))},o}(gt);ge.Axios=ce,ge.CanceledError=Et,ge.CancelToken=de,ge.isCancel=St,ge.VERSION=re,ge.toFormData=Y,ge.AxiosError=W,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=function(t){return function(e){return t.apply(null,e)}},ge.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError},ge.mergeConfig=Nt,ge.AxiosHeaders=bt,ge.formToJSON=t=>pt(U.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=te,ge.HttpStatusCode=fe,ge.default=ge;var he=ge,me=n(379),ye=n.n(me),ve=n(795),_e=n.n(ve),we=n(569),be=n.n(we),xe=n(565),Se=n.n(xe),Le=n(216),Ee=n.n(Le),je=n(589),Ae=n.n(je),Oe=n(792),Pe=n.n(Oe),Te={};Te.styleTagTransform=Ae(),Te.setAttributes=Se(),Te.insert=be().bind(null,"head"),Te.domAPI=_e(),Te.insertStyleElement=Ee();ye()(Pe(),Te),Pe()&&Pe().locals&&Pe().locals;var ke=n(214),Ie=n.n(ke),Me=alm_localize,Ne=Me.rest_api,Re=Me.rest_nonce,Ce=he.create({baseURL:Ne,headers:{"content-type":"application/json","X-WP-Nonce":Re}});function Fe(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"next";if(!t||!t.trigger)return!1;var r=t.trigger.querySelector(".alm-load-more-btn");return"prev"===n&&(r=document.querySelector(".alm-load-more-btn--prev")),(null===(e=r)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.url)||""}function qe(t,e,n){t&&0!==e&&("prev"===(null==t?void 0:t.rel)&&(t.href=n),t.dataset.page=e,t.dataset.url=n||"")}function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Be(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Be=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==De(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ue(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function ze(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ue(a,r,o,i,s,"next",t)}function s(t){Ue(a,r,o,i,s,"throw",t)}i(void 0)}))}}function He(t,e,n){return Ge.apply(this,arguments)}function Ge(){return Ge=ze(Be().mark((function t(e,n,r){var o,a,i,s,l,c;return Be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.html,a=void 0===o?"":o,i=n.meta,s=void 0===i?{}:i,a&&e.addons.cache){t.next=3;break}return t.abrupt("return");case 3:return l={cache_id:e.addons.cache_id,cache_logged_in:e.addons.cache_logged_in,canonical_url:e.canonical_url,name:r,html:a.trim(),postcount:s.postcount,totalposts:s.totalposts},t.next=6,Ce.post("ajax-load-more/cache/create",l);case 6:200===(c=t.sent).status&&c.data&&c.data.success&&console.log(c.data.msg);case 8:case"end":return t.stop()}}),t)}))),Ge.apply(this,arguments)}function We(t,e){return Ve.apply(this,arguments)}function Ve(){return Ve=ze(Be().mark((function t(e,n){var r,o;return Be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(!e.addons.cache||e.addons.cache&&e.addons.cache_logged_in)){t.next=2;break}return t.abrupt("return",!1);case 2:return r={id:e.addons.cache_id,name:n.cache_slug},t.next=5,Ce.get("ajax-load-more/cache/get",{params:r});case 5:if(200!==(o=t.sent).status||!o.data){t.next=8;break}return t.abrupt("return",o.data);case 8:return t.abrupt("return",!1);case 9:case"end":return t.stop()}}),t)}))),Ve.apply(this,arguments)}var $e=["#text","#comment"],Je={html:"",meta:{postcount:0,totalposts:0}};function Qe(){"function"==typeof Event&&setTimeout((function(){window.dispatchEvent(new CustomEvent("scroll"))}),!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?150:1)}function Ye(t,e){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),e.removeAttribute("aria-live"),e.removeAttribute("aria-atomic")}function Ke(t){return function(t){if(Array.isArray(t))return Xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Xe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!==e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r3&&void 0!==arguments[3]?arguments[3]:"next",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];function a(){"prev"===r?t.insertBefore(e,t.childNodes[0]):t.appendChild(e),tn(e),en(e,n)}return new Promise((function(t){e.style.transition="all 0.25s ease",o?nn(e,(function(){a(),t(!0)})):(a(),t(!0))}))}function on(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null!==(e=alm_localize)&&void 0!==e&&e.a11y_focus&&n&&(t.addons.woocommerce||t.addons.elementor?an(!1,!1,n,!1):r<1||(t.addons.paging?an(t.init,t.addons.preloaded,t.listing,o):t.addons.single_post||t.addons.nextpage?an(!1,t.addons.preloaded,n,o):an(t.init,t.addons.preloaded,n,o)))}function an(){var t=arguments.length>2?arguments[2]:void 0;(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||!(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&t||"true"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false"))&&(t.setAttribute("tabIndex","-1"),t.style.outline="none",setTimeout((function(){t.focus({preventScroll:!0})}),25))}function sn(t){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(t)}function ln(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ln=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==sn(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function cn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function un(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return new Promise((function(o){var a=n.rel,i=void 0===a?"next":a,s=e.length,l=0,c=1;e="prev"===i?e.reverse():e,function a(){var u;c<=s?(u=ln().mark((function o(){return ln().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[l].style.opacity=0,o.next=3,rn(t,e[l],n.ua,i,r);case 3:c++,l++,a();case 6:case"end":return o.stop()}}),o)})),function(){var t=this,e=arguments;return new Promise((function(n,r){var o=u.apply(t,e);function a(t){cn(o,n,r,a,i,"next",t)}function i(t){cn(o,n,r,a,i,"throw",t)}a(void 0)}))})().catch((function(){console.warn("There was an error loading the items.")})):(setTimeout((function(){if(e.map((function(t){return t.style.opacity=1,t})),e[0]){var t="prev"===i?e[e.length-1]:e[0];on(n,t,null,!1)}}),25),o(!0))}()}))}function dn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(o){var a=document.createElement("div");a.classList.add("alm-btn-wrap--prev");var i=document.createElement("a");i.href=r,i.innerHTML=o,i.setAttribute("rel","prev"),i.dataset.page=n,i.dataset.url=r,i.setAttribute("class","alm-load-more-btn alm-load-more-btn--prev ".concat(t.loading_style)),i.addEventListener("click",(function(e){t.AjaxLoadMore.prevClick(e)})),t.AjaxLoadMore.setPreviousButton(i),a.appendChild(i),e.parentNode.insertBefore(a,e)}}function pn(t){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(t)}function fn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */fn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==pn(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function gn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function hn(t){var e=t.listing;return t.addons.elementor="posts"===e.dataset.elementor&&e.dataset.elementorSettings,t.addons.elementor&&(t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-element ".concat(t.addons.elementor_settings.target)):"",t.addons.elementor_widget=function(t){if(!t)return!1;if(t.classList.contains("elementor-wc-products"))return"woocommerce";if(t.classList.contains("elementor-widget-loop-grid"))return"loop-grid";return"posts"}(t.addons.elementor_element),t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";switch(t.addons.elementor_container_class=t.addons.elementor_settings.container_class,e){case"woocommerce":t.addons.elementor_item_class=t.addons.elementor_settings.woo_item_class,t.addons.elementor_pagination_class=".".concat(t.addons.elementor_settings.woo_pagination_class);break;case"loop-grid":t.addons.elementor_item_class=t.addons.elementor_settings.loop_grid_item_class,t.addons.elementor_pagination_class=".".concat(t.addons.elementor_settings.loop_grid_pagination_class);break;default:t.addons.elementor_item_class=t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class=".".concat(t.addons.elementor_settings.posts_pagination_class)}return t}(t,t.addons.elementor_widget),t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_prev_label=t.addons.elementor_settings.prev_label||"",t.addons.elementor_next_page=bn(t,t.addons.elementor_element),t.addons.elementor_prev_page=bn(t,t.addons.elementor_element,"prev"),t.addons.elementor_max_pages=t.addons.elementor_element.querySelector(".e-load-more-anchor"),t.addons.elementor_max_pages=t.addons.elementor_max_pages?parseInt(t.addons.elementor_max_pages.dataset.maxPage):999,t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){var e,n=t.addons;if(!n.elementor_element)return t;var r=n.elementor_element,o=null!=r&&null!==(e=r.dataset)&&void 0!==e&&e.settings?JSON.parse(r.dataset.settings):"";if(!o)return t;if(n.elementor_masonry=o.hasOwnProperty("cards_masonry")||o.hasOwnProperty("classic_masonry")||o.hasOwnProperty("masonry"),n.elementor_masonry){var a,i;n.elementor_masonry_columns=parseInt(null==o?void 0:o.cards_columns)||parseInt(null==o?void 0:o.classic_columns)||parseInt(null==o?void 0:o.columns),n.elementor_masonry_columns_mobile=parseInt(null==o?void 0:o.cards_columns_mobile)||parseInt(null==o?void 0:o.classic_columns_mobile)||parseInt(null==o?void 0:o.columns_mobile),n.elementor_masonry_columns_tablet=parseInt(null==o?void 0:o.cards_columns_tablet)||parseInt(null==o?void 0:o.classic_columns_tablet)||parseInt(null==o?void 0:o.columns_tablet),n.elementor_masonry_gap=parseInt(null==o||null===(a=o.cards_row_gap)||void 0===a?void 0:a.size)||parseInt(null==o||null===(i=o.row_gap)||void 0===i?void 0:i.size)}return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?"),t.addons.elementor_next_page||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or Ajax Load More is unable to locate the pagination widget?")),t}function mn(t){var e=t.addons;if(!e.elementor||!e.elementor_type||"posts"===!e.elementor_type)return!1;var n=e.elementor_element;if(!n)return!1;t.button.dataset.page=e.elementor_paged;var r=e.elementor_next_page;t.button.dataset.url=r||"",Ye(n,t.listing);var o,a=n.querySelector(".".concat(e.elementor_item_class));(a&&(a.classList.add("alm-elementor"),a.dataset.url=window.location,a.dataset.page=e.elementor_paged,a.dataset.pageTitle=document.title),e.elementor_paged>1&&e.elementor_prev_page&&e.elementor_prev_label&&dn(t,n,e.elementor_paged,e.elementor_prev_page,e.elementor_prev_label),e.elementor_masonry)&&setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){wn(t,".".concat(e.elementor_container_class),".".concat(e.elementor_item_class))}),100)}))}),250)}function yn(t,e,n,r){var o=Je;if(200===n.status&&n.data){var a=t.addons,i=t.page,s=t.button,l=t.buttonPrev,c=t.rel,u=a.elementor_target,d=a.elementor_container_class,p=a.elementor_item_class,f=document.createElement("div");if(f.innerHTML=n.data,"prev"===c&&l){var g=bn(t,f,"prev");g?qe(l,i-1,g):t.AjaxLoadMore.triggerDonePrev()}else{var h=bn(t,f);h?qe(s,i+1,h):t.AjaxLoadMore.triggerDone()}var m=f.querySelector("title").innerHTML;o.pageTitle=m;var y=f.querySelector("".concat(u," .").concat(d));if(!y)return console.warn("Ajax Load More Elementor: Unable to find Elementor container element."),o;var v=y?y.querySelector(".".concat(p)):null;v&&(v.classList.add("alm-elementor"),v.dataset.url=e,v.dataset.page="next"===c?i+1:i-1,v.dataset.pageTitle=m);var _=y.querySelectorAll(".".concat(p));_&&(o.html=y?y.innerHTML:"",o.meta.postcount=_.length,o.meta.totalposts=_.length,He(t,o,r))}return o}function vn(t,e){return t&&e?new Promise((function(n){var r,o=e.addons,a=e.addons.elementor_element.querySelector(".".concat(o.elementor_container_class)),i=t.querySelectorAll(".".concat(o.elementor_item_class));if(a&&i){var s=Array.prototype.slice.call(i);"function"==typeof almElementorLoaded&&window.almElementorLoaded(s),(r=fn().mark((function t(){return fn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,un(a,s,e);case 2:o.elementor_masonry&&setTimeout((function(){wn(e,".".concat(o.elementor_container_class),".".concat(o.elementor_item_class))}),125),n(!0);case 4:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(n,o){var a=r.apply(t,e);function i(t){gn(a,n,o,i,s,"next",t)}function s(t){gn(a,n,o,i,s,"throw",t)}i(void 0)}))})().catch((function(t){console.warn(t,"There was an error with Elementor")}))}else n(!1)})):(e.AjaxLoadMore.triggerDone(),!1)}function _n(t){var e=t.page,n=t.AjaxLoadMore,r=e+1,o=t.addons.elementor_max_pages;Ze(t),"function"==typeof almComplete&&"masonry"!==t.transition&&window.almComplete(t),n.transitionEnd(),r>=o&&n.triggerDone(),Qe()}function wn(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var p=d.querySelectorAll(n);if(!p)return!1;p.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop="".concat(Math.round(c),"px"),r[i]+=o}else r.push(o)}))}function bn(t,e){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",a=t.addons,i=void 0===a?{}:a,s=(null==e?void 0:e.querySelector(null==i?void 0:i.elementor_pagination_class))||(null==e?void 0:e.querySelector(".".concat(null==i||null===(n=i.elementor_settings)||void 0===n?void 0:n.pagination_class))),l=null==s||null===(r=s.querySelector("a.".concat(o)))||void 0===r?void 0:r.href;return l||!1}function xn(t){var e,n=t.listing;if(t.addons.filters="true"===(null==t||null===(e=t.listing)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.filters),t.addons.filters){t.addons.filters_url="true"===n.dataset.filtersUrl,t.addons.filters_target=!!n.dataset.filtersTarget&&n.dataset.filtersTarget,t.addons.filters_paging="true"===n.dataset.filtersPaging,t.addons.filters_scroll="true"===n.dataset.filtersScroll,t.addons.filters_scrolltop=n.dataset.filtersScrolltop?n.dataset.filtersScrolltop:"30",t.addons.filters_debug=n.dataset.filtersDebug,t.facets="true"===n.dataset.facets,t.addons.filters_target||console.warn('Ajax Load More: Unable to locate a target for Filters. Make sure you set a target parameter in the core Ajax Load More shortcode - e.g. [ajax_load_more filters="true" target="filters"]');var r=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}("pg");t.addons.filters_startpage=null!==r?parseInt(r):0,t.addons.filters_startpage>0&&(t.addons.paging?t.page=t.addons.filters_startpage-1:(t.posts_per_page=t.posts_per_page*t.addons.filters_startpage,t.paged=!0))}return t}function Sn(t,e,n){var r=t.canonical_url,o=window.location.search;return e.classList.add("alm-filters"),e.dataset.page=n,e.dataset.url=n>1?r+Ln(t,o,n):r+Ln(t,o,0),e}function Ln(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e},isScript:function(t){return"SCRIPT"===t.tagName}};function jn(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.main,o=t.AjaxLoadMore,a=t.last_loaded;r.classList.remove("alm-loading"),o.triggerAddons(t),n?"function"==typeof almPagingComplete&&window.almPagingComplete():"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(t),e&&t.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(r),"function"==typeof almComplete&&window.almComplete(t),En.init(a)}var An=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(null==t?void 0:t.length)&&t.filter((function(t){return-1===$e.indexOf(t.nodeName.toLowerCase())}))};function On(t,e,n){var r,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.addons,s=t.canonical_url,l=alm_localize.retain_querystring,c=void 0===l||l?window.location.search:"";return n=a?n:(r=null==i?void 0:i.seo_offset,o=n,"true"===r?parseInt(o)+1:parseInt(o)),e.classList.add("alm-seo"),e.dataset.page=n,"default"===i.seo_permalink?e.dataset.url=n>1?"".concat(s).concat(c,"&paged=").concat(n):"".concat(s).concat(c):e.dataset.url=n>1?"".concat(s).concat(i.seo_leading_slash,"page/").concat(n).concat(i.seo_trailing_slash).concat(c):"".concat(s).concat(c),e}function Pn(t){var e=document.createElement("div");e=On(t,e,1,!0),t.main.insertBefore(e,t.listing)}function Tn(t){return function(t){if(Array.isArray(t))return kn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Rn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Cn(t){var e=t.rel,n=t.addons,r=t.button,o=t.buttonPrev,a=t.page,i=n.queryloop_settings,s=void 0===i?{}:i;if("prev"===e&&o){var l,c=(null==s||null===(l=s.pagination_prev)||void 0===l?void 0:l.href)||!1;c?qe(o,a-1,c):t.AjaxLoadMore.triggerDonePrev()}else{var u,d=(null==s||null===(u=s.pagination_next)||void 0===u?void 0:u.href)||!1;d?qe(r,a+1,d):t.AjaxLoadMore.triggerDone()}}function Fn(t,e,n,r){var o=Je;if(200===n.status&&n.data){var a,i,s,l,c=t.addons,u=t.page,d=t.button,p=t.buttonPrev,f=t.rel,g=c.queryloop_settings,h=void 0===g?{}:g,m=document.createElement("div");if(m.innerHTML=n.data,"prev"===f&&p){var y=Bn(h,m,"prev");y?qe(p,u-1,y):t.AjaxLoadMore.triggerDonePrev()}else{var v=Bn(h,m);v?qe(d,u+1,v):t.AjaxLoadMore.triggerDone()}var _=m.querySelector("title").innerHTML;o.pageTitle=_;var w=null==m?void 0:m.querySelector("".concat(null==h||null===(a=h.classes)||void 0===a?void 0:a.container," ").concat(null==h||null===(i=h.classes)||void 0===i?void 0:i.listing));if(!w)return console.warn("Ajax Load More: Unable to locate Query Loop container."),o;var b=w?w.querySelector(null==h||null===(s=h.classes)||void 0===s?void 0:s.element):null;b&&(b.classList.add("alm-queryloop"),b.dataset.url=e,b.dataset.page="next"===f?u+1:u-1,b.dataset.pageTitle=_);var x=w.querySelectorAll(null==h||null===(l=h.classes)||void 0===l?void 0:l.element);x&&(o.html=w?w.innerHTML:"",o.meta.postcount=x.length,o.meta.totalposts=x.length,He(t,o,r))}return o}function qn(t,e){return t&&e?new Promise((function(n){var r,o,a,i=e.addons.queryloop_settings,s=void 0===i?{}:i,l=null==s||null===(r=s.container)||void 0===r?void 0:r.querySelector("".concat(s.classes.listing)),c=t.querySelectorAll("".concat(null==s||null===(o=s.classes)||void 0===o?void 0:o.element));if(l&&c){var u=Array.prototype.slice.call(c);"function"==typeof almQueryLoopLoaded&&window.almQueryLoopLoaded(u),(a=Nn().mark((function t(){return Nn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,un(l,u,e);case 2:n(!0);case 3:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(n,r){var o=a.apply(t,e);function i(t){Rn(o,n,r,i,s,"next",t)}function s(t){Rn(o,n,r,i,s,"throw",t)}i(void 0)}))})().catch((function(t){console.warn(t,"There was an error with Query Loop")}))}else n(!1)})):(e.AjaxLoadMore.triggerDone(),!1)}function Dn(t){var e=t.page,n=t.AjaxLoadMore,r=e+1,o=t.addons.elementor_max_pages;Ze(t),"function"==typeof almComplete&&"masonry"!==t.transition&&window.almComplete(t),n.transitionEnd(),r>=o&&n.triggerDone(),Qe()}function Bn(t,e){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",i=null==e?void 0:e.querySelector("".concat(t.classes.container," ").concat(t.classes.pagination)),s="next"===a?null===(n=t.classes)||void 0===n?void 0:n.pagination_next:null===(r=t.classes)||void 0===r?void 0:r.pagination_prev,l=null==i||null===(o=i.querySelector(s))||void 0===o?void 0:o.href;return l||!1}function Un(t,e,n){var r={html:"",meta:{postcount:0,totalposts:0}},o=t.addons,a=o.single_post_target,i=o.single_post_id;if(200===e.status&&e.data&&a){var s,l=document.createElement("div");l.innerHTML=e.data;var c=l.querySelector(a);if(!c)return console.warn("Ajax Load More: Unable to find ".concat(a," element.")),r;if(null!==(s=window)&&void 0!==s&&s.almSinglePostsCustomElements){var u,d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;if(!t||!e)return r;var r=document.createElement("div");r.classList.add("alm-custom-elements"),r.dataset.id=n,e=Array.isArray(e)?e:[e];for(var o=0;o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Gn(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Wn(t){if(!t||!t.addons.woocommerce)return!1;var e=document.querySelector(t.addons.woocommerce_settings.container);if(e){t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var n=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=n||"";var r=function(t){if(!t)return 0;var e=document.querySelectorAll(t);if(!e)return 0;return e.length}(t.addons.woocommerce_settings.container),o=t.addons.woocommerce_settings.paged;r>1&&console.warn("ALM WooCommerce: Multiple containers with the same classname or ID found. The WooCommerce add-on requires a single container to be defined. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/"),Ye(e,t.listing);var a=e.querySelector(t.addons.woocommerce_settings.products);if(a?(a.classList.add("alm-woocommerce"),a.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],a.dataset.page=t.page,a.dataset.pageTitle=document.title):console.warn("ALM WooCommerce: Unable to locate products. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_products"),o>1&&t.addons.woocommerce_settings.settings.previous_products)dn(t,e,o-1,t.addons.woocommerce_settings.paged_urls[o-2],t.addons.woocommerce_settings.settings.previous_products)}else console.warn("ALM WooCommerce: Unable to locate container element. Get more information -> https://connekthq.com/plugins/ajax-load-more/docs/add-ons/woocommerce/#alm_woocommerce_container")}function Vn(t,e){return!(!t||!e)&&new Promise((function(n){var r,o=e.addons.woocommerce_settings,a=void 0===o?{}:o,i=a.settings,s=void 0===i?{}:i,l=document.querySelector(a.container),c=t.querySelectorAll(a.products),u=!(!s||"true"!==s.images_loaded);if(l&&c){var d=Array.prototype.slice.call(c);(r=Hn().mark((function t(){return Hn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,un(l,d,e,u);case 2:n(!0);case 3:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(n,o){var a=r.apply(t,e);function i(t){Gn(a,n,o,i,s,"next",t)}function s(t){Gn(a,n,o,i,s,"throw",t)}i(void 0)}))})().catch((function(t){console.warn(t,"There was an error with WooCommerce")})),"function"==typeof almWooCommerceLoaded&&window.almWooCommerceLoaded(c)}}))}function $n(t,e,n,r){var o=Je;if(200===n.status&&n.data){var a=t.addons,i=t.pagePrev,s=t.rel,l=void 0===s?"next":s,c=t.page,u=t.localize.total_posts,d=a.woocommerce_settings,p=void 0===d?{}:d,f="prev"===l?i:c+1,g=document.createElement("div");g.innerHTML=n.data;var h=g.querySelector("title").innerHTML;o.pageTitle=h;var m=g.querySelector(p.container);if(!m)return console.warn("Ajax Load More WooCommerce: Unable to find WooCommerce ".concat(p.container," element.")),o;var y=m?m.querySelector(p.products):null;y&&(y.classList.add("alm-woocommerce"),y.dataset.url=e,y.dataset.page=f,y.dataset.pageTitle=h);var v=m.querySelectorAll(p.products);v&&(o.html=m?m.innerHTML:"",o.meta.postcount=v.length,o.meta.totalposts=u,He(t,o,r)),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results);e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=n.innerHTML}))}}(g,t)}return o}function Jn(t){var e=t.addons,n=t.page+2,r=e.woocommerce_settings.paged_urls[n-1];if("prev"===t.rel&&t.buttonPrev){var o=e.woocommerce_settings.paged_urls[t.pagePrev-2];qe(t.buttonPrev,parseInt(t.pagePrev)-1,o)}else qe(t.button,n,r);Ze(t),"function"==typeof almComplete&&"masonry"!==t.transition&&window.almComplete(t),t.AjaxLoadMore.transitionEnd(),"prev"===t.rel&&t.pagePrev<=1&&t.AjaxLoadMore.triggerDonePrev(),"next"===t.rel&&n>parseInt(t.addons.woocommerce_settings.pages)&&t.AjaxLoadMore.triggerDone(),Qe()}var Qn=n(564);function Yn(t,e){var n=t.listing,r=t.transition,o=t.speed,a=t.images_loaded;return new Promise((function(i){if(n&&e){var s="fade"===r;e.forEach((function(t){var e=t.nodeName.toLowerCase();(s||a)&&(t.style.opacity=0,s&&(t.style.transition="all ".concat(o,"ms ease"))),-1===$e.indexOf(e)&&n.appendChild(t)})),en(n,t.ua),Ze(t),a?Qn(n,(function(){Xn(t,e,s)})):Xn(t,e,s),i(!0)}else i(!0)}))}function Kn(t,e){var n=t.addons.paging_container;return new Promise((function(r){n&&e?(n.style.opacity=0,n.innerHTML="",e.forEach((function(t){var e=t.nodeName.toLowerCase();-1===$e.indexOf(e)&&n.appendChild(t)})),en(n,t.ua),Ze(t),r(!0)):r(!0)}))}function Xn(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.transition_delay,o=t.images_loaded,a=n?parseInt(r):0;e&&setTimeout((function(){(n||o)&&e.forEach((function(t,e){setTimeout((function(){t.style.opacity=1}),e*a)})),t.AjaxLoadMore.transitionEnd()}),50)}function Zn(t){return function(t){if(Array.isArray(t))return tr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return tr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1||(null==r?void 0:r.filters_startpage)>1)&&(d=1);var p=null!=r&&r.cta?parseInt(a)+1:parseInt(a);"table"===l&&(e=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e)return[];var n=null!==(t=e)&&void 0!==t&&t.length?e[0].childNodes:[];n&&(e=An(Zn(n)));return e}(e));for(var f=[],g=0;g<(null===(h=e)||void 0===h?void 0:h.length);g+=p){var h;f.push(e.slice(g,p+g))}if(f)for(var m=0;m0?m*p:0;e[y]&&(null!=r&&r.seo&&(e[y]=On(t,e[y],m+d)),null!=r&&r.filters&&(e[y]=Sn(t,e[y],m+d)))}return e}function nr(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n)),a=e?"-".concat(o):o;return parseInt(a)}function rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e?"ajax_load_more_".concat(e.replace(/-/g,"_"),"_vars"):"ajax_load_more_vars",r=window[n];if(!r)return null;var o=r.total_posts,a=r.post_count,i=r.page,s=r.pages;switch(t){case"total_posts":return o?parseInt(o):"";case"post_count":return a?parseInt(a):"";case"page":return i?parseInt(i):"";case"pages":return s?parseInt(s):"";case"remaining":return o&&a?parseInt(o)-parseInt(a):""}}function or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e&&t){e=e.replace(/(<\/p>)+/g,"");var n=null==t?void 0:t.querySelector(".alm-paging-content");n?n.innerHTML=e:t.innerHTML=e}}function ar(t){return function(t){if(Array.isArray(t))return ir(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ir(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ir(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!e)return[];var r=(new DOMParser).parseFromString(e,n),o=null==r||null===(t=r.body)||void 0===t?void 0:t.childNodes;return o?An(ar(o)):[]}function lr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return[];var e=document.createElement("tbody");return e.innerHTML=t,[e]}function cr(t,e){var n=t.addons,r=t.extensions,o={action:"alm_get_posts",query_type:e,id:t.id,post_id:parseInt(t.post_id),slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:parseInt(t.posts_per_page),page:parseInt(t.page),offset:parseInt(t.offset),post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};return r.acf&&(o.acf=ur(t,"acf"),"relationship"!==r.acf_field_type&&(o.action="alm_acf")),n.comments&&(o.comments=ur(t,"comments"),o.posts_per_page=n.comments_per_page,o.action="alm_comments"),n.cta&&(o.cta=ur(t,"cta")),n.filters&&(o.filters=n.filters,o.filters_startpage=n.filters_startpage,o.filters_target=n.filters_target,o.facets=t.facets),n.nextpage&&(o.nextpage=ur(t,"nextpage"),o.action="alm_nextpage"),n.paging&&(o.paging=n.paging),n.preloaded&&(o.preloaded=n.preloaded,o.preloaded_amount=parseInt(n.preloaded_amount)),n.single_post&&(o.single_post=ur(t,"single_post")),r.term_query&&(o.term_query=ur(t,"term_query"),o.action="alm_get_terms"),t.extensions.users&&(o.users=ur(t,"users"),o.action="alm_users"),t.theme_repeater&&(o.theme_repeater=t.theme_repeater),t.listing.dataset.lang&&(o.lang=t.listing.dataset.lang),t.listing.dataset.stickyPosts&&(o.sticky_posts=t.listing.dataset.stickyPosts),t.listing.dataset.postFormat&&(o.post_format=t.listing.dataset.postFormat),t.listing.dataset.category&&(o.category=t.listing.dataset.category),t.listing.dataset.categoryAnd&&(o.category__and=t.listing.dataset.categoryAnd),t.listing.dataset.categoryNotIn&&(o.category__not_in=t.listing.dataset.categoryNotIn),t.listing.dataset.tag&&(o.tag=t.listing.dataset.tag),t.listing.dataset.tagAnd&&(o.tag__and=t.listing.dataset.tagAnd),t.listing.dataset.tagNotIn&&(o.tag__not_in=t.listing.dataset.tagNotIn),t.listing.dataset.taxonomy&&(o.taxonomy=t.listing.dataset.taxonomy),t.listing.dataset.taxonomyTerms&&(o.taxonomy_terms=t.listing.dataset.taxonomyTerms),t.listing.dataset.taxonomyOperator&&(o.taxonomy_operator=t.listing.dataset.taxonomyOperator),t.listing.dataset.taxonomyIncludeChildren&&(o.taxonomy_include_children=t.listing.dataset.taxonomyIncludeChildren),t.listing.dataset.taxonomyRelation&&(o.taxonomy_relation=t.listing.dataset.taxonomyRelation),t.listing.dataset.sortKey&&(o.sort_key=t.listing.dataset.sortKey),t.listing.dataset.metaKey&&(o.meta_key=t.listing.dataset.metaKey),t.listing.dataset.metaValue&&(o.meta_value=t.listing.dataset.metaValue),t.listing.dataset.metaCompare&&(o.meta_compare=t.listing.dataset.metaCompare),t.listing.dataset.metaRelation&&(o.meta_relation=t.listing.dataset.metaRelation),t.listing.dataset.metaType&&(o.meta_type=t.listing.dataset.metaType),t.listing.dataset.author&&(o.author=t.listing.dataset.author),t.listing.dataset.year&&(o.year=t.listing.dataset.year),t.listing.dataset.month&&(o.month=t.listing.dataset.month),t.listing.dataset.day&&(o.day=t.listing.dataset.day),t.listing.dataset.order&&(o.order=t.listing.dataset.order),t.listing.dataset.orderby&&(o.orderby=t.listing.dataset.orderby),t.listing.dataset.postStatus&&(o.post_status=t.listing.dataset.postStatus),t.listing.dataset.postIn&&(o.post__in=t.listing.dataset.postIn),t.listing.dataset.postNotIn&&(o.post__not_in=t.listing.dataset.postNotIn),t.listing.dataset.exclude&&(o.exclude=t.listing.dataset.exclude),t.listing.dataset.search&&(o.search=t.listing.dataset.search),t.listing.dataset.s&&(o.search=t.listing.dataset.s),t.listing.dataset.customArgs&&(o.custom_args=t.listing.dataset.customArgs),t.listing.dataset.vars&&(o.vars=t.listing.dataset.vars),n.cache&&(o.cache_id=n.cache_id,o.cache_logged_in=n.cache_logged_in,o.cache_slug=function(t,e){var n=t.addons,r=t.pagePrev,o=t.page,a=t.rel,i=void 0===a?"next":a;return n.nextpage?"page-".concat(o+n.nextpage_startpage):n.single_post?n.single_post_id:n.queryloop?Ie()(JSON.stringify(Fe(t,t.rel))).toString():n.woocommerce||n.elementor?"page-".concat("prev"===i?r:o+1):Ie()(JSON.stringify(e)).toString()}(t,o)),o}function ur(t,e){var n=t.addons,r=t.extensions;switch(e){case"acf":return{acf:"true",post_id:r.acf_post_id,field_type:r.acf_field_type,field_name:r.acf_field_name,parent_field_name:r.acf_parent_field_name,row_index:r.acf_row_index};case"comments":return{comments:"true",post_id:n.comments_post_id,per_page:n.comments_per_page,type:n.comments_type,style:n.comments_style,template:n.comments_template,callback:n.comments_callback};case"cta":return{cta:"true",cta_position:n.cta_position,cta_repeater:n.cta_repeater,cta_theme_repeater:n.cta_theme_repeater};case"nextpage":return{nextpage:"true",urls:n.nextpage_urls,scroll:n.nextpage_scroll,post_id:n.nextpage_post_id,startpage:n.nextpage_startpage,nested:t.nested};case"single_post":return{single_post:"true",id:n.single_post_id,slug:n.single_post_slug};case"term_query":return{term_query:"true",taxonomy:r.term_query_taxonomy,hide_empty:r.term_query_hide_empty,number:r.term_query_number};case"users":return{users:"true",role:t.listing.dataset.usersRole,include:t.listing.dataset.usersInclude,exclude:t.listing.dataset.usersExclude,per_page:t.posts_per_page,order:t.listing.dataset.usersOrder,orderby:t.listing.dataset.usersOrderby}}}function dr(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}function pr(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}var fr=function(t,e){return new Promise((function(n){if(0===e)t.style.opacity=1,t.style.height="auto",n(!0);else{e/=10;var r=0,o=setInterval((function(){r>.9&&(t.style.opacity=1,n(!0),clearInterval(o)),t.style.opacity=r,r+=.1}),e);t.style.height="auto"}}))},gr=function(t,e){return new Promise((function(n){e/=10,t.style.opacity=.5;var r=setInterval((function(){t.style.opacity<.1?(t.style.opacity=0,clearInterval(r),n(!0)):t.style.opacity-=.1}),e)}))};function hr(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0==(t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0)&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&"masonry"!==t.transition){var r=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,o=t.start_page?parseInt(t.start_page):0,a=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,i=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,s=parseInt(t.page),l=!!t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&o>1||t.addons.filters&&a>1||t.addons.nextpage&&i>1){if(t.addons.seo&&o>1)for(var e=0;e1)for(var c=0;c1)for(var u=0;u0||t.addons.filters&&a>0||(s+=1)),mr(t,s,r))}}function mr(t,e,n){if(!t.tableofcontents)return!1;e=parseInt(e);var r=parseInt(t.posts_per_page),o=document.createElement("button");o.type="button",o.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r,o=e-1;if(t.addons.single_post_target){t.init||(o+=1);var a=document.querySelectorAll(".alm-single-post");a&&(r=a[o])}else r=document.querySelector(".alm-single-post[data-page=".concat(e-1,"]"));n=r?r.dataset.title:n}var i="almTOCLabel_".concat(t.id);"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e+1),o.dataset.page=t.addons.single_post_target&&t.init?e-1:e+1,o.dataset.target=(e+1)*r-r+1,t.tableofcontents.appendChild(o),o.addEventListener("click",(function(){var e=this.dataset.page,r=this.dataset.target,o=t.listing.children[r-1];if(t.addons.nextpage&&(o=document.querySelector('.alm-nextpage[data-page="'.concat(e,'"]'))),t.addons.single_post_target&&(o=document.querySelector('.alm-single-post[data-page="'.concat(e,'"]'))),o){var a="function"==typeof no?no(o).top:o.offsetTop;eo(a-n),setTimeout((function(){on(t,o,r,!1)}),500)}}))}function yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,e)||_r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vr(t){return function(t){if(Array.isArray(t))return wr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(t,e){if(t){if("string"==typeof t)return wr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(t,e):void 0}}function wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:150,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(r.target){var a=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+r.target.toLowerCase()+'"]');a&&a.forEach((function(e){xr(t,n,r,o,e)}))}else{var i=document.querySelectorAll(".ajax-load-more-wrap");i&&i.forEach((function(e){xr(t,n,r,o,e)}))}(e=document.querySelector(".alm-toc"))&&(e.innerHTML="")}function xr(t,e,n,r,o){if("fade"===t||"masonry"===t){if("filter"===r)o.classList.add("alm-is-filtering"),gr(o,e);setTimeout((function(){Sr(e,n,r,o)}),e)}else o.classList.add("alm-is-filtering"),Sr(e,n,r,o)}function Sr(t,e,n,r){var o=r.querySelector(".alm-btn-wrap"),a=r.querySelectorAll(".alm-listing");if(!a||!o)return!1;vr(a).forEach((function(t){var e=t.querySelector(".alm-paging-content");e?e.innerHTML="":t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,function(t,e,n,r){var o=r.querySelector(".alm-listing")||r.querySelector(".alm-comments");if(!o)return!1;if("filter"===n){for(var a=0,i=Object.entries(e);a=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function jr(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ar(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){jr(a,r,o,i,s,"next",t)}function s(t){jr(a,r,o,i,s,"throw",t)}i(void 0)}))}}var Or=n(564);function Pr(t,e,n){t.masonry||console.warn("Ajax Load More: Unable to locate Masonry settings.");var r=t.listing,o=t.last_loaded,a=t.speed;return new Promise((function(i){var s,l=t.masonry.selector,c=t.masonry.animation,u="true"===(null==t||null===(s=t.masonry)||void 0===s?void 0:s.horizontalorder),d=t.masonry.init,p=t.masonry.columnwidth,f=(a+100)/1e3+"s",g="scale(0.5)",h="scale(1)";"zoom-out"===c&&(g="translateY(-20px) scale(1.25)",h="translateY(0) scale(1)"),"slide-up"===c&&(g="translateY(50px)",h="translateY(0)"),"slide-down"===c&&(g="translateY(-50px)",h="translateY(0)"),"none"===c&&(g="translateY(0)",h="translateY(0)"),p?isNaN(p)||(p=parseInt(p)):p=l,n?(r.parentNode.style.opacity=0,Pr(t,!0,!1),i(!0)):d&&e?Or(r,(function(){var e,n={itemSelector:l,transitionDuration:f,columnWidth:p,horizontalOrder:u,hiddenStyle:{transform:g,opacity:0},visibleStyle:{transform:h,opacity:1}},o=null===(e=window)||void 0===e?void 0:e.alm_masonry_vars;o&&Object.keys(o).forEach((function(t){n[t]=o[t]})),setTimeout(Ar(Er().mark((function e(){return Er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.msnry=new Masonry(r,n),e.next=3,fr(r.parentNode,175);case 3:i(!0);case 4:case"end":return e.stop()}}),e)}))),25)})):o&&Or(r,(function(){setTimeout(Ar(Er().mark((function e(){return Er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.msnry.appended(o),i(!0);case 2:case"end":return e.stop()}}),e)}))),25)}))}))}function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function kr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Tr(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ir(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Mr(){return Nr.apply(this,arguments)}function Nr(){var t;return t=kr().mark((function t(){var e,n,r,o,a,i=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:"show",r=(n=i.length>1?i[1]:void 0).placeholder,o=n.addons,a=n.rel,r&&!o.paging&&"prev"!==a){t.next=5;break}return t.abrupt("return",!1);case 5:t.t0=e,t.next="hide"===t.t0?8:12;break;case 8:return t.next=10,gr(r,175);case 10:return setTimeout((function(){r.style.display="none"}),75),t.abrupt("break",15);case 12:return r.style.display="block",fr(r,175),t.abrupt("break",15);case 15:case"end":return t.stop()}}),t)})),Nr=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ir(a,r,o,i,s,"next",t)}function s(t){Ir(a,r,o,i,s,"throw",t)}i(void 0)}))},Nr.apply(this,arguments)}function Rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,o=0,a=0,i=t.orginal_posts_per_page;switch(e){case"nextpage":o=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),a=parseInt(r),Fr(t.resultsText,n,r,o,a,i);break;case"woocommerce":break;default:n=rr("page",t.id),r=rr("pages",t.id),o=rr("post_count",t.id),a=rr("total_posts",t.id),Fr(t.resultsText,n,r,o,a,i)}}(t,"nextpage"===e||"woocommerce"===e?e:"standard")}function Cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),o=parseInt(t.localize.post_count),a=parseInt(t.localize.total_posts);switch(e){case"nextpage":o=n=t.addons.nextpage_startpage,r=a,Fr(t.resultsText,n,a,o,a,t.posts_per_page);break;case"preloaded":n=t.addons.paging&&t.addons.seo?t.start_page+1:parseInt(t.page)+1,Fr(t.resultsText,n,r,o,a,t.posts_per_page)}}var Fr=function(t,e,n,r,o,a){t.forEach((function(t){var i=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text,s=e*a-a+1,l=e*a,c=l<=o?l:o;n>0?(i=(i=(i=(i=(i=(i=(i=(i=i.replace("{num}",''.concat(e,""))).replace("{page}",''.concat(e,""))).replace("{start}",''.concat(s,""))).replace("{end}",''.concat(c,""))).replace("{total}",''.concat(n,""))).replace("{pages}",''.concat(n,""))).replace("{post_count}",''.concat(r,""))).replace("{total_posts}",''.concat(o,"")),t.innerHTML=i):t.innerHTML=i}))};function qr(t){var e=t.addons;return new Promise((function(n){var r="standard";if(e.nextpage)r="nextpage",e.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(e.nextpage_startpage)+1);else if(e.woocommerce)r="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1);else{var o=parseInt(t.page)+1+(e.preloaded&&!e.paging?1:0);t.AjaxLoadMore.setLocalizedVar("page",parseInt(o));var a=Math.ceil(t.totalposts/t.orginal_posts_per_page);t.AjaxLoadMore.setLocalizedVar("pages",parseInt(a))}"true"===e.preloaded||e.nextpage||e.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=t.postcount,n=t.addons,r=t.start_page,o=n.preloaded_amount,a=parseInt(e)+parseInt(o);return a=r>1?a-parseInt(o):a,a=n.filters_startpage>1?a-parseInt(o):a,a=n.single_post?a+1:a,a=n.nextpage?a+1:a,a}(t)),Rr(t,r),n(!0)}))}function Dr(t){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(t)}function Br(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Br=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Dr(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ur(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function zr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ur(a,r,o,i,s,"next",t)}function s(t){Ur(a,r,o,i,s,"throw",t)}i(void 0)}))}}function Hr(t){return function(t){if(Array.isArray(t))return Gr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gr(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&(t.paged=!0,t.addons.paging?t.page=t.start_page-1:t.posts_per_page=t.start_page*t.posts_per_page)):t.start_page=1,t}(O=xn(O=function(t){var e=t.listing;return t.addons.paging="true"===e.dataset.paging,t.addons.paging&&(t.addons.paging_init=!0,t.addons.paging_controls="true"===e.dataset.pagingControls,t.addons.paging_show_at_most=e.dataset.pagingShowAtMost?parseInt(e.dataset.pagingShowAtMost):6,t.addons.paging_classes=e.dataset.pagingClasses,t.addons.paging_first_label=e.dataset.pagingFirstLabel,t.addons.paging_previous_label=e.dataset.pagingPreviousLabel,t.addons.paging_next_label=e.dataset.pagingNextLabel,t.addons.paging_last_label=e.dataset.pagingLastLabel,t.addons.paging_scroll=!!e.dataset.pagingScroll&&e.dataset.pagingScroll,t.addons.paging_scrolltop=e.dataset.pagingScrolltop?parseInt(e.dataset.pagingScrolltop):100,t.addons.paging_container=e.querySelector(".alm-paging-content"),t.pause=!!t.addons.preloaded||t.pause),t}(O=function(t){var e,n=t.listing,r=t.addons;if(t.addons.preloaded="true"===n.dataset.preloaded,t.addons.preloaded_amount=null!=n&&null!==(e=n.dataset)&&void 0!==e&&e.preloadedAmount?parseInt(n.dataset.preloadedAmount):t.posts_per_page,t.addons.preloaded||(t.addons.preloaded_amount=0),r.preloaded&&null!=t&&t.localize){var o=t.localize.total_posts,a=void 0===o?0:o;parseInt(a)<=r.preloaded_amount&&(t.addons.preloaded_total_posts=parseInt(a),t.disable_ajax=!0)}return t}(O=function(t){var e,n=t.listing;return t.addons.comments="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.comments),t.addons.comments&&(t.addons.comments_post_id=n.dataset.comments_post_id,t.addons.comments_per_page=n.dataset.comments_per_page,t.addons.comments_per_page=void 0===t.addons.comments_per_page?"5":t.addons.comments_per_page,t.addons.comments_type=n.dataset.comments_type,t.addons.comments_style=n.dataset.comments_style,t.addons.comments_template=n.dataset.comments_template,t.addons.comments_callback=n.dataset.comments_callback),t}(O=function(t){var e,n=t.listing;if(t.addons.single_post="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.singlePost),t.addons.single_post){if(t.addons.single_post_id=n.dataset.singlePostId,t.addons.single_post_query=n.dataset.singlePostQuery,t.addons.single_post_order=void 0===n.dataset.singlePostOrder?"previous":n.dataset.singlePostOrder,t.addons.single_post_init_id=n.dataset.singlePostId,t.addons.single_post_taxonomy=void 0===n.dataset.singlePostTaxonomy?"":n.dataset.singlePostTaxonomy,t.addons.single_post_excluded_terms=void 0===n.dataset.singlePostExcludedTerms?"":n.dataset.singlePostExcludedTerms,t.addons.single_post_progress_bar=void 0===n.dataset.singlePostProgressBar?"":n.dataset.singlePostProgressBar,t.addons.single_post_target=void 0===n.dataset.singlePostTarget?"":n.dataset.singlePostTarget,t.addons.single_post_preview=void 0!==n.dataset.singlePostPreview,t.addons.single_post_preview){var r=n.dataset.singlePostPreview.split(":");t.addons.single_post_preview_data={button_label:r[0]?r[0]:"Continue Reading",height:r[1]?r[1]:500,element:r[2]?r[2]:"default",className:"alm-single-post--preview"}}void 0===t.addons.single_post_id&&(t.addons.single_post_id="",t.addons.single_post_init_id=""),t.addons.single_post_permalink="",t.addons.single_post_title="",t.addons.single_post_slug="",t.addons.single_post_cache=!1,t.addons.single_post_title_template=n.dataset.singlePostTitleTemplate,t.addons.single_post_siteTitle=n.dataset.singlePostSiteTitle,t.addons.single_post_siteTagline=n.dataset.singlePostSiteTagline,t.addons.single_post_scroll=n.dataset.singlePostScroll,t.addons.single_post_scroll_speed=n.dataset.singlePostScrollSpeed,t.addons.single_post_scroll_top=n.dataset.singlePostScrolltop,t.addons.single_post_controls=n.dataset.singlePostControls}return t}(O=function(t){var e,n=t.listing;return t.addons.nextpage="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.nextpage),t.addons.nextpage&&(t.addons.nextpage_urls=void 0===n.dataset.nextpageUrls?"true":n.dataset.nextpageUrls,t.addons.nextpage_scroll=void 0===n.dataset.nextpageScroll?"false:30":n.dataset.nextpageScroll,t.addons.nextpage_post_id=!!n.dataset.nextpagePostId&&n.dataset.nextpagePostId,t.addons.nextpage_startpage=n.dataset.nextpageStartpage?parseInt(n.dataset.nextpageStartpage):1,t.addons.nextpage_title_template=n.dataset.nextpageTitleTemplate,t.addons.nextpage_postTitle=t.listing.dataset.nextpagePostTitle,t.posts_per_page=1,t.orginal_posts_per_page=1,t.addons.nextpage_post_id||(t.addons.nextpage=!1),t.addons.nextpage_startpage>1&&(t.paged=!0)),t}(O=function(t){var e,n=t.listing;return t.addons.cta="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.cta),t.addons.cta&&(t.addons.cta_position=n.dataset.ctaPosition,t.addons.cta_repeater=n.dataset.ctaRepeater,t.addons.cta_theme_repeater=n.dataset.ctaThemeRepeater),t}(O=function(t){var e,n=t.listing;return t.addons.cache="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.cache),t.addons.cache&&(t.addons.cache_id=n.dataset.cacheId,t.addons.cache_path=n.dataset.cachePath,t.addons.cache_logged_in=!!n.dataset.cacheLoggedIn&&n.dataset.cacheLoggedIn),t}(O=function(t){var e,n,r=t.listing,o=t.addons;return t.addons.woocommerce="true"===(null==r||null===(e=r.dataset)||void 0===e?void 0:e.woo),t.addons.woocommerce&&r.dataset.wooSettings&&(t.addons.woocommerce_settings=JSON.parse(r.dataset.wooSettings),t.addons.woocommerce_settings.results_text=document.querySelectorAll(null==o||null===(n=o.woocommerce_settings)||void 0===n?void 0:n.results),t.page=parseInt(t.page)+parseInt(o.woocommerce_settings.paged)),t}(O=hn(O=function(t){var e=t.main.closest(".".concat("wp-block-query"));return e?(t.addons.queryloop=!0,t.addons.queryloop_settings={container:e,classes:{container:".".concat(e.className.replace(/ /g,".")),listing:".wp-block-post-template",element:".wp-block-post",pagination:".wp-block-query-pagination",pagination_prev:"a.wp-block-query-pagination-previous",pagination_next:"a.wp-block-query-pagination-next"},pagination:e.querySelector(".wp-block-query-pagination"),pagination_prev:e.querySelector("a.wp-block-query-pagination-previous"),pagination_next:e.querySelector("a.wp-block-query-pagination-next")},t):t}(O))))))))))))).extensions.users="true"===O.listing.dataset.users,O.extensions.users&&(O.orginal_posts_per_page=parseInt(O.listing.dataset.usersPerPage),O.posts_per_page=parseInt(O.listing.dataset.usersPerPage)),O.extensions.restapi="true"===O.listing.dataset.restapi,O.extensions.restapi&&(O.extensions.restapi_base_url=O.listing.dataset.restapiBaseUrl,O.extensions.restapi_namespace=O.listing.dataset.restapiNamespace,O.extensions.restapi_endpoint=O.listing.dataset.restapiEndpoint,O.extensions.restapi_template_id=O.listing.dataset.restapiTemplateId,O.extensions.restapi_debug=O.listing.dataset.restapiDebug,""===O.extensions.restapi_template_id&&(O.extensions.restapi=!1)),O.extensions.acf="true"===O.listing.dataset.acf,O.extensions.acf&&(O.extensions.acf_field_type=O.listing.dataset.acfFieldType,O.extensions.acf_field_name=O.listing.dataset.acfFieldName,O.extensions.acf_parent_field_name=O.listing.dataset.acfParentFieldName,O.extensions.acf_row_index=O.listing.dataset.acfRowIndex,O.extensions.acf_post_id=O.listing.dataset.acfPostId,void 0!==O.extensions.acf_field_type&&void 0!==O.extensions.acf_field_name&&void 0!==O.extensions.acf_post_id||(O.extensions.acf=!1)),O.extensions.term_query="true"===O.listing.dataset.termQuery,O.extensions.term_query&&(O.extensions.term_query_taxonomy=O.listing.dataset.termQueryTaxonomy,O.extensions.term_query_hide_empty=O.listing.dataset.termQueryHideEmpty,O.extensions.term_query_number=O.listing.dataset.termQueryNumber),(void 0===O.pause||O.addons.seo&&O.start_page>1)&&(O.pause=!1),O.addons.preloaded&&O.addons.seo&&O.start_page>0&&(O.pause=!1),O.addons.filters&&O.addons.filters_startpage>0&&(O.pause=!1),O.addons.preloaded&&O.addons.paging&&(O.pause=!0),O.max_pages=void 0===O.max_pages||0===O.max_pages?9999:O.max_pages,O.scroll_distance=void 0===O.scroll_distance?100:O.scroll_distance,O.scroll_distance_perc=!1,-1===O.scroll_distance.toString().indexOf("%")?O.scroll_distance=parseInt(O.scroll_distance):(O.scroll_distance_perc=!0,O.scroll_distance_orig=parseInt(O.scroll_distance),O.scroll_distance=nr(O)),"masonry"===O.transition&&(O=function(t){t.masonry={},t.masonry.init=!0,t.msnry?t.msnry.destroy():t.msnry="";var e=JSON.parse(t.listing.dataset.masonryConfig);return e?(t.masonry.selector=e.selector,t.masonry.columnwidth=e.columnwidth,t.masonry.animation=""===e.animation?"standard":e.animation,t.masonry.horizontalorder=""===e.horizontalorder?"true":e.horizontalorder,t.images_loaded=!0,t.transition_delay=0):console.warn("Ajax Load More: Unable to locate Masonry configuration settings."),t}(O)),O.addons.paging)O.main.classList.add("alm-loading");else{var P=t.childNodes;if(P){var T=Hr(P).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));O.button=T?T[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else O.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");O.button.disabled=!1,O.button.style.display=""}var k,I,M=t.querySelector(".alm-no-results");(O.no_results=M?M.innerHTML:"",O.integration.woocommerce)?(O.resultsText=document.querySelectorAll(".woocommerce-result-count"),(null===(k=O)||void 0===k||null===(k=k.resultsText)||void 0===k?void 0:k.length)<1&&(O.resultsText=document.querySelectorAll(".alm-results-text"))):O.resultsText=document.querySelectorAll(".alm-results-text");(O.resultsText?O.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):O.resultsText=!1,O.tableofcontents=document.querySelector(".alm-toc")||!1,O.tableofcontents&&(O.tableofcontents.setAttribute("aria-live","polite"),O.tableofcontents.setAttribute("aria-atomic","true")),O.AjaxLoadMore.loadPosts=function(){O.disable_ajax||("function"==typeof almOnChange&&window.almOnChange(O),O.loading=!0,O.main.classList.add("alm-loading"),Mr("show",O),O.addons.paging||("prev"===O.rel?O.buttonPrev.classList.add("loading"):(O.button.classList.add("loading"),O.button_labels.loading&&(O.button.innerHTML=O.button_labels.loading))),O.AjaxLoadMore.ajax())},O.AjaxLoadMore.ajax=zr(Br().mark((function t(){var e,n,r,o,a=arguments;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]?a[0]:"standard",!O.extensions.restapi){t.next=5;break}O.AjaxLoadMore.restapi(O),t.next=14;break;case 5:if(r=cr(O,e),null===(n=O)||void 0===n||null===(n=n.addons)||void 0===n||!n.cache||["totalposts","totalpages"].includes(e)){t.next=13;break}return t.next=9,We(O,Object.assign({},r));case 9:(o=t.sent)?O.AjaxLoadMore.render(o):O.AjaxLoadMore.adminajax(r,e),t.next=14;break;case 13:O.AjaxLoadMore.adminajax(r,e);case 14:case"end":return t.stop()}}),t)}))),O.AjaxLoadMore.adminajax=function(){var t=zr(Br().mark((function t(e,n){var r,o,a,i,s;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=alm_localize,o=r.ajaxurl,a=e.cache_slug,i=void 0===a?"":a,O.addons.single_post&&O.addons.single_post_target&&(o="".concat(O.addons.single_post_permalink,"?id=").concat(O.addons.single_post_id,"&alm_page=").concat(parseInt(O.page)+1),e=""),(O.addons.queryloop||O.addons.woocommerce||O.addons.elementor&&"posts"===O.addons.elementor_type)&&(o=Fe(O,O.rel),e=""),t.next=6,he.get(o,{params:e}).then((function(t){return O.addons.single_post&&O.addons.single_post_target?Un(O,t,i):O.addons.woocommerce?$n(O,o,t,i):O.addons.elementor?yn(O,o,t,i):O.addons.queryloop?Fn(O,o,t,i):t.data})).catch((function(t){O.AjaxLoadMore.error(t,"adminajax")}));case 6:s=t.sent,t.t0=n,t.next="standard"===t.t0?10:"totalposts"===t.t0||"totalpages"===t.t0?12:14;break;case 10:return O.AjaxLoadMore.render(s),t.abrupt("break",14);case 12:return O.addons.paging&&O.addons.nextpage&&"function"==typeof almBuildPagination?(window.almBuildPagination(s.totalpages,O),O.totalpages=s.totalpages):O.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(s.totalposts,O),t.abrupt("break",14);case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),O.AjaxLoadMore.restapi=function(t){var e=alm_localize.rest_api_url,n=t.extensions,r=n.restapi_base_url,o=n.restapi_namespace,a=n.restapi_endpoint,i=n.restapi_template_id,s=wp.template(i),l="".concat(e).concat(r,"/").concat(o,"/").concat(a),c=function(t){return{id:t.id,post_id:parseInt(t.post_id),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}(t);he.get(l,{params:c}).then((function(e){for(var n=e.data,r=n.html,o=void 0===r?null:r,a=n.meta,i=void 0===a?null:a,l=i&&i.postcount?i.postcount:0,c=i&&i.totalposts?i.totalposts:0,u="",d=0;d0&&(O.addons.paging_container.style.opacity=0,O.AjaxLoadMore.pagingInit())),O.addons.seo&&O.addons.seo_offset&&!O.addons.paging&&Pn(O),O.paged&&((O.addons.seo||O.addons.filters||O.extensions.users)&&(O.posts_per_page=O.orginal_posts_per_page),O.addons.seo&&(O.page=O.start_page?O.start_page-1:O.page),O.addons.filters&&O.addons.filters_startpage>0&&(O.page=O.addons.filters_startpage-1)),"function"==typeof almFiltersOnload&&window.almFiltersOnload(O)),O.addons.filters&&O.facets&&n.facets&&"function"==typeof almFiltersFacets&&window.almFiltersFacets(n.facets),pr(O),zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qr(O);case 2:case"end":return t.stop()}}),t)})))(),l="table"===O.container_type?lr(O.html):sr(O.html),O.last_loaded=l,!(i>0)){e.next=52;break}if(!(O.addons.woocommerce||O.addons.elementor||O.addons.queryloop)){e.next=21;break}return(c=document.createElement("div")).innerHTML=o,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.addons.woocommerce){t.next=4;break}return t.next=3,Vn(c,O);case 3:Jn(O);case 4:if(!O.addons.elementor){t.next=8;break}return t.next=7,vn(c,O);case 7:_n(O);case 8:if(!O.addons.queryloop){t.next=12;break}return t.next=11,qn(c,O);case 11:Dn(O);case 12:case"end":return t.stop()}}),t)})))().catch((function(t){O.addons.woocommerce&&console.warn("Ajax Load More: There was an error loading WooCommerce products.",t),O.addons.elementor&&console.warn("Ajax Load More: There was an error loading Clementor items.",t),O.addons.queryloop&&console.warn("Ajax Load More: There was an error loading Query Loop items.",t)})),O.init=!1,e.abrupt("return");case 21:if(O.addons.paging){e.next=36;break}l=er(O,l),e.t0=O.transition,e.next="masonry"===e.t0?26:30;break;case 26:return e.next=28,Yn(O,l);case 28:return zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pr(O,O.init,$r);case 2:O.masonry.init=!1,dr(),"function"==typeof almComplete&&window.almComplete(O);case 5:case"end":return t.stop()}}),t)})))().catch((function(){console.error("There was an error with ALM Masonry")})),e.abrupt("break",33);case 30:return e.next=32,Yn(O,l);case 32:return e.abrupt("break",33);case 33:Vr(O.listing,(function(){var e,n,r,o;(O.AjaxLoadMore.nested(),$r&&O.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),"function"==typeof almComplete&&"masonry"!==O.transition&&window.almComplete(O),En.init(O.last_loaded),O.addons.single_post)||(O.addons.nextpage?(null===(e=O)||void 0===e||null===(e=e.localize)||void 0===e?void 0:e.post_count)+(O.addons.nextpage_startpage-1)>=(null===(n=O)||void 0===n||null===(n=n.localize)||void 0===n?void 0:n.total_posts)&&O.AjaxLoadMore.triggerDone():(null===(r=O)||void 0===r||null===(r=r.localize)||void 0===r?void 0:r.post_count)>=(null===(o=O)||void 0===o||null===(o=o.localize)||void 0===o?void 0:o.total_posts)&&O.AjaxLoadMore.triggerDone());$r=!1})),e.next=50;break;case 36:if(u=O.addons.paging_container,!O.init){e.next=44;break}if(!u){e.next=42;break}return e.next=41,Kn(O,l);case 41:Vr(u,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:jn(O,$r,!0),$r=!1;case 2:case"end":return t.stop()}}),t)}))));case 42:e.next=50;break;case 44:if(!u){e.next=50;break}return e.next=47,gr(u,250);case 47:return e.next=49,Kn(O,l);case 49:Vr(u,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fr(u,250);case 2:u.style.opacity="",jn(O,$r),$r=!1;case 5:case"end":return t.stop()}}),t)}))));case 50:e.next=54;break;case 52:O.AjaxLoadMore.noresults(),O.AjaxLoadMore.transitionEnd();case 54:O.destroy_after&&(d=O.page+1,d=O.addons.preloaded?d++:d,parseInt(d)===parseInt(O.destroy_after)&&O.AjaxLoadMore.destroyed()),hr(O,O.init),null!==(r=O)&&void 0!==r&&null!==(r=r.last_loaded)&&void 0!==r&&r.length&&on(O,O.last_loaded[0],i,$r),O.main.classList.remove("alm-is-filtering"),O.init&&O.main.classList.add("alm-is-loaded"),O.init=!1;case 60:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O.AjaxLoadMore.noresults=function(){var e,n;O.addons.paging||(null===(e=O)||void 0===e||null===(e=e.button)||void 0===e||null===(e=e.classList)||void 0===e||e.remove("loading"),null===(n=O)||void 0===n||null===(n=n.button)||void 0===n||null===(n=n.classList)||void 0===n||n.add("done"),O.AjaxLoadMore.resetBtnText());"function"==typeof almComplete&&"masonry"!==O.transition&&window.almComplete(O),$r&&O.addons.filters&&("function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),$r=!1),"masonry"===O.transition&&(O.content.style.height="auto"),O.AjaxLoadMore.triggerDone()},O.AjaxLoadMore.pagingPreloadedInit=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;O.AjaxLoadMore.pagingInit(),t||("function"==typeof almPagingEmpty&&window.almPagingEmpty(O),"function"==typeof almEmpty&&window.almEmpty(O),O.no_results&&or(O.content,O.no_results))},O.AjaxLoadMore.pagingNextpageInit=function(){O.AjaxLoadMore.pagingInit(),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(O)},O.AjaxLoadMore.pagingInit=function(){var t=O.addons.paging_container;t&&(fr(t,150),setTimeout((function(){O.main.classList.remove("alm-loading")}),150),setTimeout((function(){t.style.removeProperty("opacity"),"function"==typeof almFadePageControls&&window.almFadePageControls(O.btnWrap),"function"==typeof almPagingSetHeight&&window.almPagingSetHeight(t)}),275))},O.AjaxLoadMore.nested=function(){var t=O.listing.querySelectorAll(".ajax-load-more-wrap:not(.alm-is-loaded)");t&&Hr(t).forEach((function(t){window.almInit(t)}))},O.AjaxLoadMore.getSinglePost=zr(Br().mark((function t(){var e,n;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.fetchingPreviousPost){t.next=2;break}return t.abrupt("return");case 2:return O.fetchingPreviousPost=!0,e={action:"alm_get_single",id:O.addons.single_post_id,initial_id:O.addons.single_post_init_id,order:O.addons.single_post_order,taxonomy:O.addons.single_post_taxonomy,excluded_terms:O.addons.single_post_excluded_terms,post_type:O.post_type,init:O.addons.single_post_init},t.next=6,he.get(alm_localize.ajaxurl,{params:e}).then((function(t){var e=t.data;return e.has_previous_post?(O.listing.dataset.singlePostId=e.prev_id,O.addons.single_post_id=e.prev_id,O.addons.single_post_permalink=e.prev_permalink,O.addons.single_post_title=e.prev_title,O.addons.single_post_slug=e.prev_slug,O.addons.single_post_cache=e.cache):(O.addons.single_post_cache=!1,e.has_previous_post||O.AjaxLoadMore.triggerDone()),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(O,e.current_id,e.permalink,e.title),O.fetchingPreviousPost=!1,O.addons.single_post_init=!1,e})).catch((function(t){O.AjaxLoadMore.error(t,"getSinglePost"),O.fetchingPreviousPost=!1}));case 6:return n=t.sent,t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)}))),O.addons.single_post_id&&(O.fetchingPreviousPost=!1,O.addons.single_post_init=!0),O.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&t.addons.nextpage&&window.almSetNextPage(t),"function"==typeof almSEO&&t.addons.seo&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&t.addons.woocommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&t.addons.elementor&&window.almElementor(t)},O.AjaxLoadMore.triggerDone=function(){O.loading=!1,O.finished=!0,Mr("hide",O),O.addons.paging||(O.button_labels.done&&setTimeout((function(){O.button.innerHTML=O.button_labels.done}),75),O.button.classList.add("done"),O.button.removeAttribute("rel"),O.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(O)}),O.speed+10)},O.AjaxLoadMore.triggerDonePrev=function(){O.loading=!1,Mr("hide",O),O.addons.paging||(O.buttonPrev.classList.add("done"),O.buttonPrev.style.opacity="0.5",O.buttonPrev.disabled=!0),"function"==typeof almDonePrev&&setTimeout((function(){window.almDonePrev(O)}),O.speed+10)},O.AjaxLoadMore.resetBtnText=function(){O.button&&O.button_labels.loading&&(O.button.innerHTML=O.button_labels.default)},O.AjaxLoadMore.click=function(t){var e=t.currentTarget||t.target;O.rel="next","true"===O.pause&&(O.pause=!1,O.pause_override=!1,O.AjaxLoadMore.loadPosts()),O.loading||O.finished||e.classList.contains("done")||(O.loading=!0,O.page++,O.AjaxLoadMore.loadPosts()),e.blur()},O.AjaxLoadMore.prevClick=function(t){var e=t.currentTarget||t.target;t.preventDefault(),O.loading||e.classList.contains("done")||(O.loading=!0,O.pagePrev--,O.rel="prev",O.AjaxLoadMore.loadPosts(),e.blur())},O.AjaxLoadMore.setPreviousButton=function(t){O.pagePrev=O.page,O.buttonPrev=t},O.addons.paging||O.fetchingPreviousPost||(O.button.onclick=O.AjaxLoadMore.click),O.addons.paging||O.scroll_distance_perc||"horizontal"===O.scroll_direction)&&(O.window.onresize=function(){clearTimeout(I),I=setTimeout((function(){O.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(O),O.scroll_distance_perc&&(O.scroll_distance=nr(O)),"horizontal"===O.scroll_direction&&O.AjaxLoadMore.horizontal()}),O.speed)});O.AjaxLoadMore.isVisible=function(){return O.visible=O.main.clientWidth>0&&O.main.clientHeight>0,O.visible},O.AjaxLoadMore.scroll=function(){O.timer&&clearTimeout(O.timer),O.timer=setTimeout((function(){if(O.AjaxLoadMore.isVisible()&&!O.fetchingPreviousPost){var t=O.trigger.getBoundingClientRect(),e=Math.round(t.top-O.window.innerHeight)+O.scroll_distance<=0;if(O.window!==window){var n=O.main.offsetHeight,r=O.main.offsetWidth;"horizontal"===O.scroll_direction?(O.AjaxLoadMore.horizontal(),e=r<=Math.round(O.window.scrollLeft+O.window.offsetWidth-O.scroll_distance)):e=n<=Math.round(O.window.scrollTop+O.window.offsetHeight-O.scroll_distance)}(!O.loading&&!O.finished&&e&&O.page0&&O.AjaxLoadMore.scroll()})),O.window.addEventListener("keyup",(function(t){switch(t.key){case"End":case"PageDown":O.AjaxLoadMore.scroll()}})))},O.AjaxLoadMore.horizontal=function(){"horizontal"===O.scroll_direction&&(O.main.style.width="".concat(O.listing.offsetWidth,"px"))},O.AjaxLoadMore.destroyed=function(){O.disable_ajax=!0,O.addons.paging||(O.button.style.display="none",O.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(O))},O.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){var t,e;(O.AjaxLoadMore.resetBtnText(),O.main.classList.remove("alm-loading"),"prev"===O.rel)?null===(t=O)||void 0===t||null===(t=t.buttonPrev)||void 0===t||null===(t=t.classList)||void 0===t||t.remove("loading"):null===(e=O)||void 0===e||null===(e=e.button)||void 0===e||null===(e=e.classList)||void 0===e||e.remove("loading");O.AjaxLoadMore.triggerAddons(O),O.addons.paging||setTimeout((function(){O.loading=!1}),2*O.speed)}),25),Mr("hide",O)},O.AjaxLoadMore.setLocalizedVar=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null!==(t=O)&&void 0!==t&&t.localize&&""!==e&&""!==n&&(O.localize[e]=n,window[O.localized_var][e]=n)},O.AjaxLoadMore.init=zr(Br().mark((function t(){var e,n,r,o;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:O.addons.preloaded&&1===O.destroy_after&&O.AjaxLoadMore.destroyed(),O.addons.paging&&(O.addons.preloaded?O.AjaxLoadMore.ajax("totalposts"):O.addons.nextpage?O.AjaxLoadMore.ajax("totalpages"):O.AjaxLoadMore.loadPosts()),O.addons.paging||O.addons.single_post||(O.disable_ajax?(O.finished=!0,O.button.classList.add("done")):(O.button.innerHTML=O.button_labels.default,"true"===O.pause?O.loading=!1:O.AjaxLoadMore.loadPosts())),O.addons.single_post&&setTimeout(zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O.AjaxLoadMore.getSinglePost();case 2:O.addons.single_post_query&&""===O.addons.single_post_order&&O.AjaxLoadMore.triggerDone(),O.loading=!1,hr(O,!0,!0);case 5:case"end":return t.stop()}}),t)}))),250),O.addons.queryloop&&O.addons.queryloop_settings&&Cn(O),O.addons.preloaded&&O.addons.seo&&!O.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&O.start_page<1&&window.almSEO(O,!0)}),200),O.addons.preloaded&&!O.addons.paging&&setTimeout((function(){O.addons.preloaded_total_posts<=O.addons.preloaded_amount&&O.AjaxLoadMore.triggerDone(),0===O.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(O),O.no_results&&or(O.content,O.no_results))}),O.speed),O.addons.preloaded&&(O.resultsText&&Cr(O,"preloaded"),hr(O,O.init,!0)),O.addons.nextpage&&(O.listing.querySelector(".alm-nextpage")&&!O.addons.paging&&(e=O.listing.querySelectorAll(".alm-nextpage"))&&(r=e[0],o=r.dataset.totalPosts?parseInt(r.dataset.totalPosts):null===(n=O)||void 0===n||null===(n=n.localize)||void 0===n?void 0:n.total_posts,e.length!==o&&parseInt(r.dataset.page)!==o||O.AjaxLoadMore.triggerDone()),O.resultsText&&Cr(O,"nextpage"),hr(O,O.init,!0)),O.addons.woocommerce&&(Wn(O),O.addons.woocommerce_settings.paged>=parseInt(O.addons.woocommerce_settings.pages)&&O.AjaxLoadMore.triggerDone()),O.addons.elementor&&O.addons.elementor_type&&"posts"===O.addons.elementor_type&&(mn(O),O.addons.elementor_next_page||O.AjaxLoadMore.triggerDone()),O.window.addEventListener("load",(function(){if("masonry"===O.transition&&O.addons.preloaded&&zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pr(O,!0,!1);case 2:O.masonry.init=!1;case 3:case"end":return t.stop()}}),t)})))().catch((function(){console.error("There was an error with ALM Masonry")})),O.addons.preloaded&&O.addons.filters&&O.facets&&"function"==typeof almFiltersFacets){var t,e=null===(t=O)||void 0===t||null===(t=t.localize)||void 0===t?void 0:t.facets;e&&window.almFiltersFacets(e)}"function"==typeof almOnLoad&&window.almOnLoad(O)})),In(O);case 13:case"end":return t.stop()}}),t)}))),O.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;O.loading=!1,O.addons.paging||(O.button.classList.remove("loading"),O.AjaxLoadMore.resetBtnText()),console.warn("Error: ",t),t.response?console.error("Error Msg: ",t.message):t.request?console.error(t.request):console.error("Error Msg: ",t.message),e&&console.error("ALM Error started in "+e),t.config&&console.error("ALM Error Debug: ",t.config)},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r=n.listing,o=null==r?void 0:r.innerHTML;n.addons.paging_init&&n.addons.preloaded?(n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(o),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?(n.AjaxLoadMore.pagingNextpageInit(),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){var t;return null===(t=O)||void 0===t?void 0:t.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?O[t]:O},window.almTriggerClick=function(){O.button.click()},setTimeout((function(){O.proceed=!0,O.AjaxLoadMore.scrollSetup()}),1e3),O.AjaxLoadMore.init()};window.almInit=function(e){new t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&Hr(e).forEach((function(e,n){new t(e,n)}))}();var Jr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;$r=!0,br(t,e,n,"filter")},Qr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};$r=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?zr(Br().mark((function t(){var n,r;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,new Promise((function(t){var e=window.location;he.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(){t(!1)}))}));case 3:(r=t.sent)&&(n.dataset.wooSettings=r,br("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t)})))().catch((function(){console.warn("Ajax Load More: There was an issue resetting the Ajax Load More instance.")})):br("fade","200",e,"filter")},Yr=function(){return rr("post_count",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Kr=function(){return rr("total_posts",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Xr=function(){return rr("remaining",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Zr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=window.location,n=e.pathname,r=void 0===n?"":n,o=e.search,a=void 0===o?"":o;"function"==typeof almUrlUpdate&&window.almUrlUpdate(r+a,t),"function"==typeof almAnalytics&&window.almAnalytics(r+a,t)},to=function(t){if(!t)return!1;window.almInit(t)},eo=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})},no=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.scrollX||document.documentElement.scrollLeft,r=window.scrollY||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}},ro=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.querySelector(".ajax-load-more-wrap"),n="";!t&&e?(n=e.querySelector("button.alm-load-more-btn"))&&n.click():(e=document.querySelector('.ajax-load-more-wrap[data-id="'.concat(t,'"]')))&&(n=e.querySelector("button.alm-load-more-btn"))&&n.click()},oo=function(t){var e=t.querySelector(".alm-listing");e&&"true"!==t.dataset.blockLoaded&&(t.dataset.blockLoaded="true",e.dataset.scroll="false",to(t))}}(),ajaxloadmore=r}(); \ No newline at end of file diff --git a/lang/ajax-load-more.pot b/lang/ajax-load-more.pot index 138f0e6..f57621c 100755 --- a/lang/ajax-load-more.pot +++ b/lang/ajax-load-more.pot @@ -2,22 +2,22 @@ # This file is distributed under the GPL. msgid "" msgstr "" -"Project-Id-Version: Ajax Load More 7.1.3\n" +"Project-Id-Version: Ajax Load More 7.1.4\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-load-more\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-10-01T13:26:40+00:00\n" +"POT-Creation-Date: 2024-12-04T13:46:11+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: ajax-load-more\n" #. Plugin Name of the plugin -#: admin/admin.php:556 +#: admin/admin.php:555 #: core/integration/elementor/elementor.php:19 -#: src/blocks/core/render.php:15 +#: src/blocks/core/render.php:16 msgid "Ajax Load More" msgstr "" @@ -37,190 +37,190 @@ msgstr "" msgid "https://connekthq.com" msgstr "" -#: admin/admin.php:76 -#: admin/admin.php:592 +#: admin/admin.php:75 +#: admin/admin.php:591 #: admin/functions/layouts.php:18 #: admin/functions/licensing.php:19 #: admin/functions/repeater-templates.php:20 -#: admin/functions/repeater-templates.php:130 +#: admin/functions/repeater-templates.php:125 msgid "You don't belong here." msgstr "" -#: admin/admin.php:81 -#: admin/admin.php:596 +#: admin/admin.php:80 +#: admin/admin.php:595 #: admin/functions/layouts.php:23 #: admin/functions/licensing.php:25 #: admin/functions/repeater-templates.php:25 -#: admin/functions/repeater-templates.php:135 +#: admin/functions/repeater-templates.php:130 msgid "Error - unable to verify nonce, please try again." msgstr "" -#: admin/admin.php:89 +#: admin/admin.php:88 msgid "Transient set successfully" msgstr "" -#: admin/admin.php:107 +#: admin/admin.php:106 msgid "License" msgstr "" -#: admin/admin.php:107 +#: admin/admin.php:106 #: admin/views/filters.php:10 #: admin/views/licenses.php:9 #: admin/views/licenses.php:10 msgid "Licenses" msgstr "" +#: admin/admin.php:120 #: admin/admin.php:121 -#: admin/admin.php:122 -#: admin/admin.php:130 +#: admin/admin.php:129 #: admin/views/settings.php:9 -#: ajax-load-more.php:312 +#: ajax-load-more.php:317 #: src/blocks/core/inspector.js:17 #: src/blocks/filters/inspector.js:28 msgid "Settings" msgstr "" +#: admin/admin.php:136 #: admin/admin.php:137 -#: admin/admin.php:138 -#: admin/admin.php:146 +#: admin/admin.php:145 #: admin/views/repeater-templates.php:9 msgid "Templates" msgstr "" +#: admin/admin.php:152 #: admin/admin.php:153 -#: admin/admin.php:154 -#: admin/admin.php:162 +#: admin/admin.php:161 #: admin/views/shortcode-builder.php:9 msgid "Shortcode Builder" msgstr "" +#: admin/admin.php:168 #: admin/admin.php:169 -#: admin/admin.php:170 -#: admin/admin.php:178 +#: admin/admin.php:177 #: admin/shortcode-builder/components/filters.php:10 #: admin/views/filters.php:9 msgid "Filters" msgstr "" +#: admin/admin.php:185 #: admin/admin.php:186 -#: admin/admin.php:187 -#: admin/admin.php:197 +#: admin/admin.php:196 #: admin/shortcode-builder/components/cache.php:3 msgid "Cache" msgstr "" +#: admin/admin.php:205 #: admin/admin.php:206 -#: admin/admin.php:207 -#: admin/admin.php:216 +#: admin/admin.php:215 msgid "WooCommerce" msgstr "" +#: admin/admin.php:225 #: admin/admin.php:226 -#: admin/admin.php:227 -#: admin/admin.php:235 +#: admin/admin.php:234 #: admin/shortcode-builder/shortcode-builder.php:25 #: admin/shortcode-builder/shortcode-builder.php:46 #: admin/views/add-ons.php:9 msgid "Add-ons" msgstr "" +#: admin/admin.php:245 #: admin/admin.php:246 -#: admin/admin.php:247 -#: admin/admin.php:255 +#: admin/admin.php:254 #: admin/shortcode-builder/shortcode-builder.php:28 #: admin/shortcode-builder/shortcode-builder.php:78 #: admin/views/extensions.php:9 msgid "Extensions" msgstr "" +#: admin/admin.php:262 #: admin/admin.php:263 -#: admin/admin.php:264 -#: admin/admin.php:272 -#: admin/admin.php:278 +#: admin/admin.php:271 +#: admin/admin.php:277 msgid "Pro" msgstr "" -#: admin/admin.php:279 -#: admin/admin.php:287 +#: admin/admin.php:278 +#: admin/admin.php:286 #: admin/views/licenses.php:154 msgid "Go Pro" msgstr "" +#: admin/admin.php:310 #: admin/admin.php:311 -#: admin/admin.php:312 -#: admin/admin.php:320 +#: admin/admin.php:319 #: admin/views/help.php:9 msgid "Help" msgstr "" -#: admin/admin.php:557 +#: admin/admin.php:556 #: admin/views/licenses.php:97 msgid "Active" msgstr "" -#: admin/admin.php:558 +#: admin/admin.php:557 #: admin/views/licenses.php:99 msgid "Inactive" msgstr "" -#: admin/admin.php:559 +#: admin/admin.php:558 msgid "Applying Layout" msgstr "" -#: admin/admin.php:560 -#: admin/views/repeater-templates.php:432 +#: admin/admin.php:559 +#: admin/views/repeater-templates.php:447 msgid "Template Updated" msgstr "" -#: admin/admin.php:562 +#: admin/admin.php:561 msgid "Select Author(s)" msgstr "" -#: admin/admin.php:563 +#: admin/admin.php:562 msgid "Select Categories" msgstr "" -#: admin/admin.php:564 +#: admin/admin.php:563 msgid "Select Tags" msgstr "" -#: admin/admin.php:565 +#: admin/admin.php:564 msgid "Select" msgstr "" -#: admin/admin.php:566 +#: admin/admin.php:565 msgid "Jump to Option" msgstr "" -#: admin/admin.php:567 +#: admin/admin.php:566 msgid "Jump to Template" msgstr "" -#: admin/admin.php:568 +#: admin/admin.php:567 msgid "Are you sure you want to install this Ajax Load More extension?" msgstr "" -#: admin/admin.php:569 +#: admin/admin.php:568 msgid "Install Now" msgstr "" -#: admin/admin.php:570 +#: admin/admin.php:569 msgid "Activate" msgstr "" -#: admin/admin.php:571 +#: admin/admin.php:570 msgid "Saving Settings" msgstr "" -#: admin/admin.php:572 +#: admin/admin.php:571 msgid "Settings Saved Successfully" msgstr "" -#: admin/admin.php:573 +#: admin/admin.php:572 msgid "Error Saving Settings" msgstr "" -#: admin/admin.php:574 +#: admin/admin.php:573 msgid "There is a maximum of 3 tax_query objects while using the shortcode builder" msgstr "" @@ -267,20 +267,20 @@ msgstr "" msgid "%1$sRegister%2$s your copy of %3$s to receive access to automatic upgrades and support. Need a license key? %4$sPurchase one now%5$s." msgstr "" -#: admin/functions/repeater-templates.php:110 +#: admin/functions/repeater-templates.php:105 msgid "Template Saved Successfully" msgstr "" -#: admin/functions/repeater-templates.php:112 +#: admin/functions/repeater-templates.php:107 msgid "Error Writing File" msgstr "" -#: admin/functions/repeater-templates.php:112 -#: admin/views/repeater-templates.php:376 +#: admin/functions/repeater-templates.php:107 +#: admin/views/repeater-templates.php:391 msgid "Something went wrong and the data could not be saved." msgstr "" -#: admin/functions/repeater-templates.php:179 +#: admin/functions/repeater-templates.php:174 msgid "Something isn't right here..." msgstr "" @@ -407,7 +407,7 @@ msgstr "" #: admin/functions/settings.php:374 #: admin/shortcode-builder/shortcode-builder.php:168 #: admin/shortcode-builder/shortcode-builder.php:387 -#: ajax-load-more.php:417 +#: ajax-load-more.php:419 msgid "Load More" msgstr "" @@ -1821,7 +1821,7 @@ msgstr "" #: admin/views/filters.php:41 #: admin/views/go-pro.php:63 #: admin/views/repeater-templates.php:133 -#: admin/views/repeater-templates.php:482 +#: admin/views/repeater-templates.php:497 msgid "Learn More" msgstr "" @@ -2650,7 +2650,7 @@ msgid "Theme Repeaters" msgstr "" #: admin/views/repeater-templates.php:93 -#: admin/views/repeater-templates.php:255 +#: admin/views/repeater-templates.php:270 msgid "Location" msgstr "" @@ -2666,43 +2666,47 @@ msgstr "" msgid "Manage Settings" msgstr "" -#: admin/views/repeater-templates.php:184 +#: admin/views/repeater-templates.php:186 msgid "Default Template" msgstr "" -#: admin/views/repeater-templates.php:199 +#: admin/views/repeater-templates.php:201 msgid "Template Code:" msgstr "" -#: admin/views/repeater-templates.php:200 +#: admin/views/repeater-templates.php:202 msgid "Enter the PHP and HTML markup for this template." msgstr "" -#: admin/views/repeater-templates.php:236 +#: admin/views/repeater-templates.php:224 +msgid "This default ALM template is missing from the filesystem! Click the \"Save Template\" button to save the template." +msgstr "" + +#: admin/views/repeater-templates.php:251 msgid "Save Template" msgstr "" -#: admin/views/repeater-templates.php:253 +#: admin/views/repeater-templates.php:268 msgid "It appears you are loading the default template (default.php) from your current theme directory. To modify this template, you must edit the file directly on your server." msgstr "" -#: admin/views/repeater-templates.php:265 +#: admin/views/repeater-templates.php:280 msgid "Repeater Templates editing has been disabled for this instance of Ajax Load More. To enable the template editing, please remove the ALM_DISABLE_REPEATER_TEMPLATES PHP constant from your wp-config.php (or functions.php) and re-activate the plugin." msgstr "" -#: admin/views/repeater-templates.php:340 +#: admin/views/repeater-templates.php:355 msgid "Saving template..." msgstr "" -#: admin/views/repeater-templates.php:411 +#: admin/views/repeater-templates.php:426 msgid "Updating Template" msgstr "" -#: admin/views/repeater-templates.php:476 +#: admin/views/repeater-templates.php:491 msgid "What's a Repeater Template?" msgstr "" -#: admin/views/repeater-templates.php:478 +#: admin/views/repeater-templates.php:493 msgid "A Repeater Template is a snippet of code that will execute over and over within a WordPress loop" msgstr "" @@ -2726,15 +2730,15 @@ msgstr "" msgid "Reset" msgstr "" -#: ajax-load-more.php:289 +#: ajax-load-more.php:294 msgid "Error creating repeater template directory" msgstr "" -#: ajax-load-more.php:401 +#: ajax-load-more.php:403 msgid "Viewing {post_count} of {total_posts} results." msgstr "" -#: ajax-load-more.php:402 +#: ajax-load-more.php:404 msgid "No results found." msgstr "" @@ -2967,7 +2971,7 @@ msgstr "" msgid "%1$sBuild Shortcode%2$s" msgstr "" -#: src/blocks/core/render.php:16 +#: src/blocks/core/render.php:17 msgid "You must enter an Ajax Load More shortcode." msgstr "" @@ -2985,7 +2989,7 @@ msgid "You must enter an Ajax Load More target for this filter." msgstr "" #: src/blocks/core/inspector.js:23 -msgid "Note: Scroll is disabled within the WP block editor." +msgid "Note: Infinite scroll is disabled within the Block Editor." msgstr "" #: src/blocks/core/inspector.js:34
<\/p>)+/g,"");var n=null==t?void 0:t.querySelector(".alm-paging-content");n?n.innerHTML=e:t.innerHTML=e}}function ar(t){return function(t){if(Array.isArray(t))return ir(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ir(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ir(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!e)return[];var r=(new DOMParser).parseFromString(e,n),o=null==r||null===(t=r.body)||void 0===t?void 0:t.childNodes;return o?An(ar(o)):[]}function lr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return[];var e=document.createElement("tbody");return e.innerHTML=t,[e]}function cr(t,e){var n=t.addons,r=t.extensions,o={action:"alm_get_posts",query_type:e,id:t.id,post_id:parseInt(t.post_id),slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:parseInt(t.posts_per_page),page:parseInt(t.page),offset:parseInt(t.offset),post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};return r.acf&&(o.acf=ur(t,"acf"),"relationship"!==r.acf_field_type&&(o.action="alm_acf")),n.comments&&(o.comments=ur(t,"comments"),o.posts_per_page=n.comments_per_page,o.action="alm_comments"),n.cta&&(o.cta=ur(t,"cta")),n.filters&&(o.filters=n.filters,o.filters_startpage=n.filters_startpage,o.filters_target=n.filters_target,o.facets=t.facets),n.nextpage&&(o.nextpage=ur(t,"nextpage"),o.action="alm_nextpage"),n.paging&&(o.paging=n.paging),n.preloaded&&(o.preloaded=n.preloaded,o.preloaded_amount=parseInt(n.preloaded_amount)),n.single_post&&(o.single_post=ur(t,"single_post")),r.term_query&&(o.term_query=ur(t,"term_query"),o.action="alm_get_terms"),t.extensions.users&&(o.users=ur(t,"users"),o.action="alm_users"),t.theme_repeater&&(o.theme_repeater=t.theme_repeater),t.listing.dataset.lang&&(o.lang=t.listing.dataset.lang),t.listing.dataset.stickyPosts&&(o.sticky_posts=t.listing.dataset.stickyPosts),t.listing.dataset.postFormat&&(o.post_format=t.listing.dataset.postFormat),t.listing.dataset.category&&(o.category=t.listing.dataset.category),t.listing.dataset.categoryAnd&&(o.category__and=t.listing.dataset.categoryAnd),t.listing.dataset.categoryNotIn&&(o.category__not_in=t.listing.dataset.categoryNotIn),t.listing.dataset.tag&&(o.tag=t.listing.dataset.tag),t.listing.dataset.tagAnd&&(o.tag__and=t.listing.dataset.tagAnd),t.listing.dataset.tagNotIn&&(o.tag__not_in=t.listing.dataset.tagNotIn),t.listing.dataset.taxonomy&&(o.taxonomy=t.listing.dataset.taxonomy),t.listing.dataset.taxonomyTerms&&(o.taxonomy_terms=t.listing.dataset.taxonomyTerms),t.listing.dataset.taxonomyOperator&&(o.taxonomy_operator=t.listing.dataset.taxonomyOperator),t.listing.dataset.taxonomyIncludeChildren&&(o.taxonomy_include_children=t.listing.dataset.taxonomyIncludeChildren),t.listing.dataset.taxonomyRelation&&(o.taxonomy_relation=t.listing.dataset.taxonomyRelation),t.listing.dataset.sortKey&&(o.sort_key=t.listing.dataset.sortKey),t.listing.dataset.metaKey&&(o.meta_key=t.listing.dataset.metaKey),t.listing.dataset.metaValue&&(o.meta_value=t.listing.dataset.metaValue),t.listing.dataset.metaCompare&&(o.meta_compare=t.listing.dataset.metaCompare),t.listing.dataset.metaRelation&&(o.meta_relation=t.listing.dataset.metaRelation),t.listing.dataset.metaType&&(o.meta_type=t.listing.dataset.metaType),t.listing.dataset.author&&(o.author=t.listing.dataset.author),t.listing.dataset.year&&(o.year=t.listing.dataset.year),t.listing.dataset.month&&(o.month=t.listing.dataset.month),t.listing.dataset.day&&(o.day=t.listing.dataset.day),t.listing.dataset.order&&(o.order=t.listing.dataset.order),t.listing.dataset.orderby&&(o.orderby=t.listing.dataset.orderby),t.listing.dataset.postStatus&&(o.post_status=t.listing.dataset.postStatus),t.listing.dataset.postIn&&(o.post__in=t.listing.dataset.postIn),t.listing.dataset.postNotIn&&(o.post__not_in=t.listing.dataset.postNotIn),t.listing.dataset.exclude&&(o.exclude=t.listing.dataset.exclude),t.listing.dataset.search&&(o.search=t.listing.dataset.search),t.listing.dataset.s&&(o.search=t.listing.dataset.s),t.listing.dataset.customArgs&&(o.custom_args=t.listing.dataset.customArgs),t.listing.dataset.vars&&(o.vars=t.listing.dataset.vars),n.cache&&(o.cache_id=n.cache_id,o.cache_logged_in=n.cache_logged_in,o.cache_slug=function(t,e){var n=t.addons,r=t.pagePrev,o=t.page,a=t.rel,i=void 0===a?"next":a;return n.nextpage?"page-".concat(o+n.nextpage_startpage):n.single_post?n.single_post_id:n.queryloop?Ie()(JSON.stringify(Fe(t,t.rel))).toString():n.woocommerce||n.elementor?"page-".concat("prev"===i?r:o+1):Ie()(JSON.stringify(e)).toString()}(t,o)),o}function ur(t,e){var n=t.addons,r=t.extensions;switch(e){case"acf":return{acf:"true",post_id:r.acf_post_id,field_type:r.acf_field_type,field_name:r.acf_field_name,parent_field_name:r.acf_parent_field_name,row_index:r.acf_row_index};case"comments":return{comments:"true",post_id:n.comments_post_id,per_page:n.comments_per_page,type:n.comments_type,style:n.comments_style,template:n.comments_template,callback:n.comments_callback};case"cta":return{cta:"true",cta_position:n.cta_position,cta_repeater:n.cta_repeater,cta_theme_repeater:n.cta_theme_repeater};case"nextpage":return{nextpage:"true",urls:n.nextpage_urls,scroll:n.nextpage_scroll,post_id:n.nextpage_post_id,startpage:n.nextpage_startpage,nested:t.nested};case"single_post":return{single_post:"true",id:n.single_post_id,slug:n.single_post_slug};case"term_query":return{term_query:"true",taxonomy:r.term_query_taxonomy,hide_empty:r.term_query_hide_empty,number:r.term_query_number};case"users":return{users:"true",role:t.listing.dataset.usersRole,include:t.listing.dataset.usersInclude,exclude:t.listing.dataset.usersExclude,per_page:t.posts_per_page,order:t.listing.dataset.usersOrder,orderby:t.listing.dataset.usersOrderby}}}function dr(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}function pr(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}var fr=function(t,e){return new Promise((function(n){if(0===e)t.style.opacity=1,t.style.height="auto",n(!0);else{e/=10;var r=0,o=setInterval((function(){r>.9&&(t.style.opacity=1,n(!0),clearInterval(o)),t.style.opacity=r,r+=.1}),e);t.style.height="auto"}}))},gr=function(t,e){return new Promise((function(n){e/=10,t.style.opacity=.5;var r=setInterval((function(){t.style.opacity<.1?(t.style.opacity=0,clearInterval(r),n(!0)):t.style.opacity-=.1}),e)}))};function hr(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0==(t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0)&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&"masonry"!==t.transition){var r=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,o=t.start_page?parseInt(t.start_page):0,a=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,i=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,s=parseInt(t.page),l=!!t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&o>1||t.addons.filters&&a>1||t.addons.nextpage&&i>1){if(t.addons.seo&&o>1)for(var e=0;e1)for(var c=0;c1)for(var u=0;u0||t.addons.filters&&a>0||(s+=1)),mr(t,s,r))}}function mr(t,e,n){if(!t.tableofcontents)return!1;e=parseInt(e);var r=parseInt(t.posts_per_page),o=document.createElement("button");o.type="button",o.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r,o=e-1;if(t.addons.single_post_target){t.init||(o+=1);var a=document.querySelectorAll(".alm-single-post");a&&(r=a[o])}else r=document.querySelector(".alm-single-post[data-page=".concat(e-1,"]"));n=r?r.dataset.title:n}var i="almTOCLabel_".concat(t.id);"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e+1),o.dataset.page=t.addons.single_post_target&&t.init?e-1:e+1,o.dataset.target=(e+1)*r-r+1,t.tableofcontents.appendChild(o),o.addEventListener("click",(function(){var e=this.dataset.page,r=this.dataset.target,o=t.listing.children[r-1];if(t.addons.nextpage&&(o=document.querySelector('.alm-nextpage[data-page="'.concat(e,'"]'))),t.addons.single_post_target&&(o=document.querySelector('.alm-single-post[data-page="'.concat(e,'"]'))),o){var a="function"==typeof no?no(o).top:o.offsetTop;eo(a-n),setTimeout((function(){on(t,o,r,!1)}),500)}}))}function yr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(t,e)||_r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vr(t){return function(t){if(Array.isArray(t))return wr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(t,e){if(t){if("string"==typeof t)return wr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(t,e):void 0}}function wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:150,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(r.target){var a=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+r.target.toLowerCase()+'"]');a&&a.forEach((function(e){xr(t,n,r,o,e)}))}else{var i=document.querySelectorAll(".ajax-load-more-wrap");i&&i.forEach((function(e){xr(t,n,r,o,e)}))}(e=document.querySelector(".alm-toc"))&&(e.innerHTML="")}function xr(t,e,n,r,o){if("fade"===t||"masonry"===t){if("filter"===r)o.classList.add("alm-is-filtering"),gr(o,e);setTimeout((function(){Sr(e,n,r,o)}),e)}else o.classList.add("alm-is-filtering"),Sr(e,n,r,o)}function Sr(t,e,n,r){var o=r.querySelector(".alm-btn-wrap"),a=r.querySelectorAll(".alm-listing");if(!a||!o)return!1;vr(a).forEach((function(t){var e=t.querySelector(".alm-paging-content");e?e.innerHTML="":t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,function(t,e,n,r){var o=r.querySelector(".alm-listing")||r.querySelector(".alm-comments");if(!o)return!1;if("filter"===n){for(var a=0,i=Object.entries(e);a=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function jr(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Ar(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){jr(a,r,o,i,s,"next",t)}function s(t){jr(a,r,o,i,s,"throw",t)}i(void 0)}))}}var Or=n(564);function Pr(t,e,n){t.masonry||console.warn("Ajax Load More: Unable to locate Masonry settings.");var r=t.listing,o=t.last_loaded,a=t.speed;return new Promise((function(i){var s,l=t.masonry.selector,c=t.masonry.animation,u="true"===(null==t||null===(s=t.masonry)||void 0===s?void 0:s.horizontalorder),d=t.masonry.init,p=t.masonry.columnwidth,f=(a+100)/1e3+"s",g="scale(0.5)",h="scale(1)";"zoom-out"===c&&(g="translateY(-20px) scale(1.25)",h="translateY(0) scale(1)"),"slide-up"===c&&(g="translateY(50px)",h="translateY(0)"),"slide-down"===c&&(g="translateY(-50px)",h="translateY(0)"),"none"===c&&(g="translateY(0)",h="translateY(0)"),p?isNaN(p)||(p=parseInt(p)):p=l,n?(r.parentNode.style.opacity=0,Pr(t,!0,!1),i(!0)):d&&e?Or(r,(function(){var e,n={itemSelector:l,transitionDuration:f,columnWidth:p,horizontalOrder:u,hiddenStyle:{transform:g,opacity:0},visibleStyle:{transform:h,opacity:1}},o=null===(e=window)||void 0===e?void 0:e.alm_masonry_vars;o&&Object.keys(o).forEach((function(t){n[t]=o[t]})),setTimeout(Ar(Er().mark((function e(){return Er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.msnry=new Masonry(r,n),e.next=3,fr(r.parentNode,175);case 3:i(!0);case 4:case"end":return e.stop()}}),e)}))),25)})):o&&Or(r,(function(){setTimeout(Ar(Er().mark((function e(){return Er().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.msnry.appended(o),i(!0);case 2:case"end":return e.stop()}}),e)}))),25)}))}))}function Tr(t){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(t)}function kr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */kr=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Tr(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ir(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Mr(){return Nr.apply(this,arguments)}function Nr(){var t;return t=kr().mark((function t(){var e,n,r,o,a,i=arguments;return kr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:"show",r=(n=i.length>1?i[1]:void 0).placeholder,o=n.addons,a=n.rel,r&&!o.paging&&"prev"!==a){t.next=5;break}return t.abrupt("return",!1);case 5:t.t0=e,t.next="hide"===t.t0?8:12;break;case 8:return t.next=10,gr(r,175);case 10:return setTimeout((function(){r.style.display="none"}),75),t.abrupt("break",15);case 12:return r.style.display="block",fr(r,175),t.abrupt("break",15);case 15:case"end":return t.stop()}}),t)})),Nr=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ir(a,r,o,i,s,"next",t)}function s(t){Ir(a,r,o,i,s,"throw",t)}i(void 0)}))},Nr.apply(this,arguments)}function Rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,o=0,a=0,i=t.orginal_posts_per_page;switch(e){case"nextpage":o=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),a=parseInt(r),Fr(t.resultsText,n,r,o,a,i);break;case"woocommerce":break;default:n=rr("page",t.id),r=rr("pages",t.id),o=rr("post_count",t.id),a=rr("total_posts",t.id),Fr(t.resultsText,n,r,o,a,i)}}(t,"nextpage"===e||"woocommerce"===e?e:"standard")}function Cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),o=parseInt(t.localize.post_count),a=parseInt(t.localize.total_posts);switch(e){case"nextpage":o=n=t.addons.nextpage_startpage,r=a,Fr(t.resultsText,n,a,o,a,t.posts_per_page);break;case"preloaded":n=t.addons.paging&&t.addons.seo?t.start_page+1:parseInt(t.page)+1,Fr(t.resultsText,n,r,o,a,t.posts_per_page)}}var Fr=function(t,e,n,r,o,a){t.forEach((function(t){var i=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text,s=e*a-a+1,l=e*a,c=l<=o?l:o;n>0?(i=(i=(i=(i=(i=(i=(i=(i=i.replace("{num}",''.concat(e,""))).replace("{page}",''.concat(e,""))).replace("{start}",''.concat(s,""))).replace("{end}",''.concat(c,""))).replace("{total}",''.concat(n,""))).replace("{pages}",''.concat(n,""))).replace("{post_count}",''.concat(r,""))).replace("{total_posts}",''.concat(o,"")),t.innerHTML=i):t.innerHTML=i}))};function qr(t){var e=t.addons;return new Promise((function(n){var r="standard";if(e.nextpage)r="nextpage",e.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(e.nextpage_startpage)+1);else if(e.woocommerce)r="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1);else{var o=parseInt(t.page)+1+(e.preloaded&&!e.paging?1:0);t.AjaxLoadMore.setLocalizedVar("page",parseInt(o));var a=Math.ceil(t.totalposts/t.orginal_posts_per_page);t.AjaxLoadMore.setLocalizedVar("pages",parseInt(a))}"true"===e.preloaded||e.nextpage||e.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=t.postcount,n=t.addons,r=t.start_page,o=n.preloaded_amount,a=parseInt(e)+parseInt(o);return a=r>1?a-parseInt(o):a,a=n.filters_startpage>1?a-parseInt(o):a,a=n.single_post?a+1:a,a=n.nextpage?a+1:a,a}(t)),Rr(t,r),n(!0)}))}function Dr(t){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(t)}function Br(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Br=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:j(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",m={};function y(){}function v(){}function _(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==n&&r.call(x,i)&&(w=x);var S=_.prototype=y.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,a,i,s){var l=d(t[o],t,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Dr(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,n,r){var o=p;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?h:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function Ur(t,e,n,r,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function zr(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ur(a,r,o,i,s,"next",t)}function s(t){Ur(a,r,o,i,s,"throw",t)}i(void 0)}))}}function Hr(t){return function(t){if(Array.isArray(t))return Gr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gr(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&(t.paged=!0,t.addons.paging?t.page=t.start_page-1:t.posts_per_page=t.start_page*t.posts_per_page)):t.start_page=1,t}(O=xn(O=function(t){var e=t.listing;return t.addons.paging="true"===e.dataset.paging,t.addons.paging&&(t.addons.paging_init=!0,t.addons.paging_controls="true"===e.dataset.pagingControls,t.addons.paging_show_at_most=e.dataset.pagingShowAtMost?parseInt(e.dataset.pagingShowAtMost):6,t.addons.paging_classes=e.dataset.pagingClasses,t.addons.paging_first_label=e.dataset.pagingFirstLabel,t.addons.paging_previous_label=e.dataset.pagingPreviousLabel,t.addons.paging_next_label=e.dataset.pagingNextLabel,t.addons.paging_last_label=e.dataset.pagingLastLabel,t.addons.paging_scroll=!!e.dataset.pagingScroll&&e.dataset.pagingScroll,t.addons.paging_scrolltop=e.dataset.pagingScrolltop?parseInt(e.dataset.pagingScrolltop):100,t.addons.paging_container=e.querySelector(".alm-paging-content"),t.pause=!!t.addons.preloaded||t.pause),t}(O=function(t){var e,n=t.listing,r=t.addons;if(t.addons.preloaded="true"===n.dataset.preloaded,t.addons.preloaded_amount=null!=n&&null!==(e=n.dataset)&&void 0!==e&&e.preloadedAmount?parseInt(n.dataset.preloadedAmount):t.posts_per_page,t.addons.preloaded||(t.addons.preloaded_amount=0),r.preloaded&&null!=t&&t.localize){var o=t.localize.total_posts,a=void 0===o?0:o;parseInt(a)<=r.preloaded_amount&&(t.addons.preloaded_total_posts=parseInt(a),t.disable_ajax=!0)}return t}(O=function(t){var e,n=t.listing;return t.addons.comments="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.comments),t.addons.comments&&(t.addons.comments_post_id=n.dataset.comments_post_id,t.addons.comments_per_page=n.dataset.comments_per_page,t.addons.comments_per_page=void 0===t.addons.comments_per_page?"5":t.addons.comments_per_page,t.addons.comments_type=n.dataset.comments_type,t.addons.comments_style=n.dataset.comments_style,t.addons.comments_template=n.dataset.comments_template,t.addons.comments_callback=n.dataset.comments_callback),t}(O=function(t){var e,n=t.listing;if(t.addons.single_post="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.singlePost),t.addons.single_post){if(t.addons.single_post_id=n.dataset.singlePostId,t.addons.single_post_query=n.dataset.singlePostQuery,t.addons.single_post_order=void 0===n.dataset.singlePostOrder?"previous":n.dataset.singlePostOrder,t.addons.single_post_init_id=n.dataset.singlePostId,t.addons.single_post_taxonomy=void 0===n.dataset.singlePostTaxonomy?"":n.dataset.singlePostTaxonomy,t.addons.single_post_excluded_terms=void 0===n.dataset.singlePostExcludedTerms?"":n.dataset.singlePostExcludedTerms,t.addons.single_post_progress_bar=void 0===n.dataset.singlePostProgressBar?"":n.dataset.singlePostProgressBar,t.addons.single_post_target=void 0===n.dataset.singlePostTarget?"":n.dataset.singlePostTarget,t.addons.single_post_preview=void 0!==n.dataset.singlePostPreview,t.addons.single_post_preview){var r=n.dataset.singlePostPreview.split(":");t.addons.single_post_preview_data={button_label:r[0]?r[0]:"Continue Reading",height:r[1]?r[1]:500,element:r[2]?r[2]:"default",className:"alm-single-post--preview"}}void 0===t.addons.single_post_id&&(t.addons.single_post_id="",t.addons.single_post_init_id=""),t.addons.single_post_permalink="",t.addons.single_post_title="",t.addons.single_post_slug="",t.addons.single_post_cache=!1,t.addons.single_post_title_template=n.dataset.singlePostTitleTemplate,t.addons.single_post_siteTitle=n.dataset.singlePostSiteTitle,t.addons.single_post_siteTagline=n.dataset.singlePostSiteTagline,t.addons.single_post_scroll=n.dataset.singlePostScroll,t.addons.single_post_scroll_speed=n.dataset.singlePostScrollSpeed,t.addons.single_post_scroll_top=n.dataset.singlePostScrolltop,t.addons.single_post_controls=n.dataset.singlePostControls}return t}(O=function(t){var e,n=t.listing;return t.addons.nextpage="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.nextpage),t.addons.nextpage&&(t.addons.nextpage_urls=void 0===n.dataset.nextpageUrls?"true":n.dataset.nextpageUrls,t.addons.nextpage_scroll=void 0===n.dataset.nextpageScroll?"false:30":n.dataset.nextpageScroll,t.addons.nextpage_post_id=!!n.dataset.nextpagePostId&&n.dataset.nextpagePostId,t.addons.nextpage_startpage=n.dataset.nextpageStartpage?parseInt(n.dataset.nextpageStartpage):1,t.addons.nextpage_title_template=n.dataset.nextpageTitleTemplate,t.addons.nextpage_postTitle=t.listing.dataset.nextpagePostTitle,t.posts_per_page=1,t.orginal_posts_per_page=1,t.addons.nextpage_post_id||(t.addons.nextpage=!1),t.addons.nextpage_startpage>1&&(t.paged=!0)),t}(O=function(t){var e,n=t.listing;return t.addons.cta="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.cta),t.addons.cta&&(t.addons.cta_position=n.dataset.ctaPosition,t.addons.cta_repeater=n.dataset.ctaRepeater,t.addons.cta_theme_repeater=n.dataset.ctaThemeRepeater),t}(O=function(t){var e,n=t.listing;return t.addons.cache="true"===(null==n||null===(e=n.dataset)||void 0===e?void 0:e.cache),t.addons.cache&&(t.addons.cache_id=n.dataset.cacheId,t.addons.cache_path=n.dataset.cachePath,t.addons.cache_logged_in=!!n.dataset.cacheLoggedIn&&n.dataset.cacheLoggedIn),t}(O=function(t){var e,n,r=t.listing,o=t.addons;return t.addons.woocommerce="true"===(null==r||null===(e=r.dataset)||void 0===e?void 0:e.woo),t.addons.woocommerce&&r.dataset.wooSettings&&(t.addons.woocommerce_settings=JSON.parse(r.dataset.wooSettings),t.addons.woocommerce_settings.results_text=document.querySelectorAll(null==o||null===(n=o.woocommerce_settings)||void 0===n?void 0:n.results),t.page=parseInt(t.page)+parseInt(o.woocommerce_settings.paged)),t}(O=hn(O=function(t){var e=t.main.closest(".".concat("wp-block-query"));return e?(t.addons.queryloop=!0,t.addons.queryloop_settings={container:e,classes:{container:".".concat(e.className.replace(/ /g,".")),listing:".wp-block-post-template",element:".wp-block-post",pagination:".wp-block-query-pagination",pagination_prev:"a.wp-block-query-pagination-previous",pagination_next:"a.wp-block-query-pagination-next"},pagination:e.querySelector(".wp-block-query-pagination"),pagination_prev:e.querySelector("a.wp-block-query-pagination-previous"),pagination_next:e.querySelector("a.wp-block-query-pagination-next")},t):t}(O))))))))))))).extensions.users="true"===O.listing.dataset.users,O.extensions.users&&(O.orginal_posts_per_page=parseInt(O.listing.dataset.usersPerPage),O.posts_per_page=parseInt(O.listing.dataset.usersPerPage)),O.extensions.restapi="true"===O.listing.dataset.restapi,O.extensions.restapi&&(O.extensions.restapi_base_url=O.listing.dataset.restapiBaseUrl,O.extensions.restapi_namespace=O.listing.dataset.restapiNamespace,O.extensions.restapi_endpoint=O.listing.dataset.restapiEndpoint,O.extensions.restapi_template_id=O.listing.dataset.restapiTemplateId,O.extensions.restapi_debug=O.listing.dataset.restapiDebug,""===O.extensions.restapi_template_id&&(O.extensions.restapi=!1)),O.extensions.acf="true"===O.listing.dataset.acf,O.extensions.acf&&(O.extensions.acf_field_type=O.listing.dataset.acfFieldType,O.extensions.acf_field_name=O.listing.dataset.acfFieldName,O.extensions.acf_parent_field_name=O.listing.dataset.acfParentFieldName,O.extensions.acf_row_index=O.listing.dataset.acfRowIndex,O.extensions.acf_post_id=O.listing.dataset.acfPostId,void 0!==O.extensions.acf_field_type&&void 0!==O.extensions.acf_field_name&&void 0!==O.extensions.acf_post_id||(O.extensions.acf=!1)),O.extensions.term_query="true"===O.listing.dataset.termQuery,O.extensions.term_query&&(O.extensions.term_query_taxonomy=O.listing.dataset.termQueryTaxonomy,O.extensions.term_query_hide_empty=O.listing.dataset.termQueryHideEmpty,O.extensions.term_query_number=O.listing.dataset.termQueryNumber),(void 0===O.pause||O.addons.seo&&O.start_page>1)&&(O.pause=!1),O.addons.preloaded&&O.addons.seo&&O.start_page>0&&(O.pause=!1),O.addons.filters&&O.addons.filters_startpage>0&&(O.pause=!1),O.addons.preloaded&&O.addons.paging&&(O.pause=!0),O.max_pages=void 0===O.max_pages||0===O.max_pages?9999:O.max_pages,O.scroll_distance=void 0===O.scroll_distance?100:O.scroll_distance,O.scroll_distance_perc=!1,-1===O.scroll_distance.toString().indexOf("%")?O.scroll_distance=parseInt(O.scroll_distance):(O.scroll_distance_perc=!0,O.scroll_distance_orig=parseInt(O.scroll_distance),O.scroll_distance=nr(O)),"masonry"===O.transition&&(O=function(t){t.masonry={},t.masonry.init=!0,t.msnry?t.msnry.destroy():t.msnry="";var e=JSON.parse(t.listing.dataset.masonryConfig);return e?(t.masonry.selector=e.selector,t.masonry.columnwidth=e.columnwidth,t.masonry.animation=""===e.animation?"standard":e.animation,t.masonry.horizontalorder=""===e.horizontalorder?"true":e.horizontalorder,t.images_loaded=!0,t.transition_delay=0):console.warn("Ajax Load More: Unable to locate Masonry configuration settings."),t}(O)),O.addons.paging)O.main.classList.add("alm-loading");else{var P=t.childNodes;if(P){var T=Hr(P).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));O.button=T?T[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else O.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");O.button.disabled=!1,O.button.style.display=""}var k,I,M=t.querySelector(".alm-no-results");(O.no_results=M?M.innerHTML:"",O.integration.woocommerce)?(O.resultsText=document.querySelectorAll(".woocommerce-result-count"),(null===(k=O)||void 0===k||null===(k=k.resultsText)||void 0===k?void 0:k.length)<1&&(O.resultsText=document.querySelectorAll(".alm-results-text"))):O.resultsText=document.querySelectorAll(".alm-results-text");(O.resultsText?O.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):O.resultsText=!1,O.tableofcontents=document.querySelector(".alm-toc")||!1,O.tableofcontents&&(O.tableofcontents.setAttribute("aria-live","polite"),O.tableofcontents.setAttribute("aria-atomic","true")),O.AjaxLoadMore.loadPosts=function(){O.disable_ajax||("function"==typeof almOnChange&&window.almOnChange(O),O.loading=!0,O.main.classList.add("alm-loading"),Mr("show",O),O.addons.paging||("prev"===O.rel?O.buttonPrev.classList.add("loading"):(O.button.classList.add("loading"),O.button_labels.loading&&(O.button.innerHTML=O.button_labels.loading))),O.AjaxLoadMore.ajax())},O.AjaxLoadMore.ajax=zr(Br().mark((function t(){var e,n,r,o,a=arguments;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]?a[0]:"standard",!O.extensions.restapi){t.next=5;break}O.AjaxLoadMore.restapi(O),t.next=14;break;case 5:if(r=cr(O,e),null===(n=O)||void 0===n||null===(n=n.addons)||void 0===n||!n.cache||["totalposts","totalpages"].includes(e)){t.next=13;break}return t.next=9,We(O,Object.assign({},r));case 9:(o=t.sent)?O.AjaxLoadMore.render(o):O.AjaxLoadMore.adminajax(r,e),t.next=14;break;case 13:O.AjaxLoadMore.adminajax(r,e);case 14:case"end":return t.stop()}}),t)}))),O.AjaxLoadMore.adminajax=function(){var t=zr(Br().mark((function t(e,n){var r,o,a,i,s;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=alm_localize,o=r.ajaxurl,a=e.cache_slug,i=void 0===a?"":a,O.addons.single_post&&O.addons.single_post_target&&(o="".concat(O.addons.single_post_permalink,"?id=").concat(O.addons.single_post_id,"&alm_page=").concat(parseInt(O.page)+1),e=""),(O.addons.queryloop||O.addons.woocommerce||O.addons.elementor&&"posts"===O.addons.elementor_type)&&(o=Fe(O,O.rel),e=""),t.next=6,he.get(o,{params:e}).then((function(t){return O.addons.single_post&&O.addons.single_post_target?Un(O,t,i):O.addons.woocommerce?$n(O,o,t,i):O.addons.elementor?yn(O,o,t,i):O.addons.queryloop?Fn(O,o,t,i):t.data})).catch((function(t){O.AjaxLoadMore.error(t,"adminajax")}));case 6:s=t.sent,t.t0=n,t.next="standard"===t.t0?10:"totalposts"===t.t0||"totalpages"===t.t0?12:14;break;case 10:return O.AjaxLoadMore.render(s),t.abrupt("break",14);case 12:return O.addons.paging&&O.addons.nextpage&&"function"==typeof almBuildPagination?(window.almBuildPagination(s.totalpages,O),O.totalpages=s.totalpages):O.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(s.totalposts,O),t.abrupt("break",14);case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),O.AjaxLoadMore.restapi=function(t){var e=alm_localize.rest_api_url,n=t.extensions,r=n.restapi_base_url,o=n.restapi_namespace,a=n.restapi_endpoint,i=n.restapi_template_id,s=wp.template(i),l="".concat(e).concat(r,"/").concat(o,"/").concat(a),c=function(t){return{id:t.id,post_id:parseInt(t.post_id),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}(t);he.get(l,{params:c}).then((function(e){for(var n=e.data,r=n.html,o=void 0===r?null:r,a=n.meta,i=void 0===a?null:a,l=i&&i.postcount?i.postcount:0,c=i&&i.totalposts?i.totalposts:0,u="",d=0;d0&&(O.addons.paging_container.style.opacity=0,O.AjaxLoadMore.pagingInit())),O.addons.seo&&O.addons.seo_offset&&!O.addons.paging&&Pn(O),O.paged&&((O.addons.seo||O.addons.filters||O.extensions.users)&&(O.posts_per_page=O.orginal_posts_per_page),O.addons.seo&&(O.page=O.start_page?O.start_page-1:O.page),O.addons.filters&&O.addons.filters_startpage>0&&(O.page=O.addons.filters_startpage-1)),"function"==typeof almFiltersOnload&&window.almFiltersOnload(O)),O.addons.filters&&O.facets&&n.facets&&"function"==typeof almFiltersFacets&&window.almFiltersFacets(n.facets),pr(O),zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qr(O);case 2:case"end":return t.stop()}}),t)})))(),l="table"===O.container_type?lr(O.html):sr(O.html),O.last_loaded=l,!(i>0)){e.next=52;break}if(!(O.addons.woocommerce||O.addons.elementor||O.addons.queryloop)){e.next=21;break}return(c=document.createElement("div")).innerHTML=o,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.addons.woocommerce){t.next=4;break}return t.next=3,Vn(c,O);case 3:Jn(O);case 4:if(!O.addons.elementor){t.next=8;break}return t.next=7,vn(c,O);case 7:_n(O);case 8:if(!O.addons.queryloop){t.next=12;break}return t.next=11,qn(c,O);case 11:Dn(O);case 12:case"end":return t.stop()}}),t)})))().catch((function(t){O.addons.woocommerce&&console.warn("Ajax Load More: There was an error loading WooCommerce products.",t),O.addons.elementor&&console.warn("Ajax Load More: There was an error loading Clementor items.",t),O.addons.queryloop&&console.warn("Ajax Load More: There was an error loading Query Loop items.",t)})),O.init=!1,e.abrupt("return");case 21:if(O.addons.paging){e.next=36;break}l=er(O,l),e.t0=O.transition,e.next="masonry"===e.t0?26:30;break;case 26:return e.next=28,Yn(O,l);case 28:return zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pr(O,O.init,$r);case 2:O.masonry.init=!1,dr(),"function"==typeof almComplete&&window.almComplete(O);case 5:case"end":return t.stop()}}),t)})))().catch((function(){console.error("There was an error with ALM Masonry")})),e.abrupt("break",33);case 30:return e.next=32,Yn(O,l);case 32:return e.abrupt("break",33);case 33:Vr(O.listing,(function(){var e,n,r,o;(O.AjaxLoadMore.nested(),$r&&O.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),"function"==typeof almComplete&&"masonry"!==O.transition&&window.almComplete(O),En.init(O.last_loaded),O.addons.single_post)||(O.addons.nextpage?(null===(e=O)||void 0===e||null===(e=e.localize)||void 0===e?void 0:e.post_count)+(O.addons.nextpage_startpage-1)>=(null===(n=O)||void 0===n||null===(n=n.localize)||void 0===n?void 0:n.total_posts)&&O.AjaxLoadMore.triggerDone():(null===(r=O)||void 0===r||null===(r=r.localize)||void 0===r?void 0:r.post_count)>=(null===(o=O)||void 0===o||null===(o=o.localize)||void 0===o?void 0:o.total_posts)&&O.AjaxLoadMore.triggerDone());$r=!1})),e.next=50;break;case 36:if(u=O.addons.paging_container,!O.init){e.next=44;break}if(!u){e.next=42;break}return e.next=41,Kn(O,l);case 41:Vr(u,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:jn(O,$r,!0),$r=!1;case 2:case"end":return t.stop()}}),t)}))));case 42:e.next=50;break;case 44:if(!u){e.next=50;break}return e.next=47,gr(u,250);case 47:return e.next=49,Kn(O,l);case 49:Vr(u,zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fr(u,250);case 2:u.style.opacity="",jn(O,$r),$r=!1;case 5:case"end":return t.stop()}}),t)}))));case 50:e.next=54;break;case 52:O.AjaxLoadMore.noresults(),O.AjaxLoadMore.transitionEnd();case 54:O.destroy_after&&(d=O.page+1,d=O.addons.preloaded?d++:d,parseInt(d)===parseInt(O.destroy_after)&&O.AjaxLoadMore.destroyed()),hr(O,O.init),null!==(r=O)&&void 0!==r&&null!==(r=r.last_loaded)&&void 0!==r&&r.length&&on(O,O.last_loaded[0],i,$r),O.main.classList.remove("alm-is-filtering"),O.init&&O.main.classList.add("alm-is-loaded"),O.init=!1;case 60:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O.AjaxLoadMore.noresults=function(){var e,n;O.addons.paging||(null===(e=O)||void 0===e||null===(e=e.button)||void 0===e||null===(e=e.classList)||void 0===e||e.remove("loading"),null===(n=O)||void 0===n||null===(n=n.button)||void 0===n||null===(n=n.classList)||void 0===n||n.add("done"),O.AjaxLoadMore.resetBtnText());"function"==typeof almComplete&&"masonry"!==O.transition&&window.almComplete(O),$r&&O.addons.filters&&("function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),$r=!1),"masonry"===O.transition&&(O.content.style.height="auto"),O.AjaxLoadMore.triggerDone()},O.AjaxLoadMore.pagingPreloadedInit=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;O.AjaxLoadMore.pagingInit(),t||("function"==typeof almPagingEmpty&&window.almPagingEmpty(O),"function"==typeof almEmpty&&window.almEmpty(O),O.no_results&&or(O.content,O.no_results))},O.AjaxLoadMore.pagingNextpageInit=function(){O.AjaxLoadMore.pagingInit(),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(O)},O.AjaxLoadMore.pagingInit=function(){var t=O.addons.paging_container;t&&(fr(t,150),setTimeout((function(){O.main.classList.remove("alm-loading")}),150),setTimeout((function(){t.style.removeProperty("opacity"),"function"==typeof almFadePageControls&&window.almFadePageControls(O.btnWrap),"function"==typeof almPagingSetHeight&&window.almPagingSetHeight(t)}),275))},O.AjaxLoadMore.nested=function(){var t=O.listing.querySelectorAll(".ajax-load-more-wrap:not(.alm-is-loaded)");t&&Hr(t).forEach((function(t){window.almInit(t)}))},O.AjaxLoadMore.getSinglePost=zr(Br().mark((function t(){var e,n;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!O.fetchingPreviousPost){t.next=2;break}return t.abrupt("return");case 2:return O.fetchingPreviousPost=!0,e={action:"alm_get_single",id:O.addons.single_post_id,initial_id:O.addons.single_post_init_id,order:O.addons.single_post_order,taxonomy:O.addons.single_post_taxonomy,excluded_terms:O.addons.single_post_excluded_terms,post_type:O.post_type,init:O.addons.single_post_init},t.next=6,he.get(alm_localize.ajaxurl,{params:e}).then((function(t){var e=t.data;return e.has_previous_post?(O.listing.dataset.singlePostId=e.prev_id,O.addons.single_post_id=e.prev_id,O.addons.single_post_permalink=e.prev_permalink,O.addons.single_post_title=e.prev_title,O.addons.single_post_slug=e.prev_slug,O.addons.single_post_cache=e.cache):(O.addons.single_post_cache=!1,e.has_previous_post||O.AjaxLoadMore.triggerDone()),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(O,e.current_id,e.permalink,e.title),O.fetchingPreviousPost=!1,O.addons.single_post_init=!1,e})).catch((function(t){O.AjaxLoadMore.error(t,"getSinglePost"),O.fetchingPreviousPost=!1}));case 6:return n=t.sent,t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)}))),O.addons.single_post_id&&(O.fetchingPreviousPost=!1,O.addons.single_post_init=!0),O.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&t.addons.nextpage&&window.almSetNextPage(t),"function"==typeof almSEO&&t.addons.seo&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&t.addons.woocommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&t.addons.elementor&&window.almElementor(t)},O.AjaxLoadMore.triggerDone=function(){O.loading=!1,O.finished=!0,Mr("hide",O),O.addons.paging||(O.button_labels.done&&setTimeout((function(){O.button.innerHTML=O.button_labels.done}),75),O.button.classList.add("done"),O.button.removeAttribute("rel"),O.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(O)}),O.speed+10)},O.AjaxLoadMore.triggerDonePrev=function(){O.loading=!1,Mr("hide",O),O.addons.paging||(O.buttonPrev.classList.add("done"),O.buttonPrev.style.opacity="0.5",O.buttonPrev.disabled=!0),"function"==typeof almDonePrev&&setTimeout((function(){window.almDonePrev(O)}),O.speed+10)},O.AjaxLoadMore.resetBtnText=function(){O.button&&O.button_labels.loading&&(O.button.innerHTML=O.button_labels.default)},O.AjaxLoadMore.click=function(t){var e=t.currentTarget||t.target;O.rel="next","true"===O.pause&&(O.pause=!1,O.pause_override=!1,O.AjaxLoadMore.loadPosts()),O.loading||O.finished||e.classList.contains("done")||(O.loading=!0,O.page++,O.AjaxLoadMore.loadPosts()),e.blur()},O.AjaxLoadMore.prevClick=function(t){var e=t.currentTarget||t.target;t.preventDefault(),O.loading||e.classList.contains("done")||(O.loading=!0,O.pagePrev--,O.rel="prev",O.AjaxLoadMore.loadPosts(),e.blur())},O.AjaxLoadMore.setPreviousButton=function(t){O.pagePrev=O.page,O.buttonPrev=t},O.addons.paging||O.fetchingPreviousPost||(O.button.onclick=O.AjaxLoadMore.click),O.addons.paging||O.scroll_distance_perc||"horizontal"===O.scroll_direction)&&(O.window.onresize=function(){clearTimeout(I),I=setTimeout((function(){O.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(O),O.scroll_distance_perc&&(O.scroll_distance=nr(O)),"horizontal"===O.scroll_direction&&O.AjaxLoadMore.horizontal()}),O.speed)});O.AjaxLoadMore.isVisible=function(){return O.visible=O.main.clientWidth>0&&O.main.clientHeight>0,O.visible},O.AjaxLoadMore.scroll=function(){O.timer&&clearTimeout(O.timer),O.timer=setTimeout((function(){if(O.AjaxLoadMore.isVisible()&&!O.fetchingPreviousPost){var t=O.trigger.getBoundingClientRect(),e=Math.round(t.top-O.window.innerHeight)+O.scroll_distance<=0;if(O.window!==window){var n=O.main.offsetHeight,r=O.main.offsetWidth;"horizontal"===O.scroll_direction?(O.AjaxLoadMore.horizontal(),e=r<=Math.round(O.window.scrollLeft+O.window.offsetWidth-O.scroll_distance)):e=n<=Math.round(O.window.scrollTop+O.window.offsetHeight-O.scroll_distance)}(!O.loading&&!O.finished&&e&&O.page0&&O.AjaxLoadMore.scroll()})),O.window.addEventListener("keyup",(function(t){switch(t.key){case"End":case"PageDown":O.AjaxLoadMore.scroll()}})))},O.AjaxLoadMore.horizontal=function(){"horizontal"===O.scroll_direction&&(O.main.style.width="".concat(O.listing.offsetWidth,"px"))},O.AjaxLoadMore.destroyed=function(){O.disable_ajax=!0,O.addons.paging||(O.button.style.display="none",O.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(O))},O.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){var t,e;(O.AjaxLoadMore.resetBtnText(),O.main.classList.remove("alm-loading"),"prev"===O.rel)?null===(t=O)||void 0===t||null===(t=t.buttonPrev)||void 0===t||null===(t=t.classList)||void 0===t||t.remove("loading"):null===(e=O)||void 0===e||null===(e=e.button)||void 0===e||null===(e=e.classList)||void 0===e||e.remove("loading");O.AjaxLoadMore.triggerAddons(O),O.addons.paging||setTimeout((function(){O.loading=!1}),2*O.speed)}),25),Mr("hide",O)},O.AjaxLoadMore.setLocalizedVar=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null!==(t=O)&&void 0!==t&&t.localize&&""!==e&&""!==n&&(O.localize[e]=n,window[O.localized_var][e]=n)},O.AjaxLoadMore.init=zr(Br().mark((function t(){var e,n,r,o;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:O.addons.preloaded&&1===O.destroy_after&&O.AjaxLoadMore.destroyed(),O.addons.paging&&(O.addons.preloaded?O.AjaxLoadMore.ajax("totalposts"):O.addons.nextpage?O.AjaxLoadMore.ajax("totalpages"):O.AjaxLoadMore.loadPosts()),O.addons.paging||O.addons.single_post||(O.disable_ajax?(O.finished=!0,O.button.classList.add("done")):(O.button.innerHTML=O.button_labels.default,"true"===O.pause?O.loading=!1:O.AjaxLoadMore.loadPosts())),O.addons.single_post&&setTimeout(zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O.AjaxLoadMore.getSinglePost();case 2:O.addons.single_post_query&&""===O.addons.single_post_order&&O.AjaxLoadMore.triggerDone(),O.loading=!1,hr(O,!0,!0);case 5:case"end":return t.stop()}}),t)}))),250),O.addons.queryloop&&O.addons.queryloop_settings&&Cn(O),O.addons.preloaded&&O.addons.seo&&!O.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&O.start_page<1&&window.almSEO(O,!0)}),200),O.addons.preloaded&&!O.addons.paging&&setTimeout((function(){O.addons.preloaded_total_posts<=O.addons.preloaded_amount&&O.AjaxLoadMore.triggerDone(),0===O.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(O),O.no_results&&or(O.content,O.no_results))}),O.speed),O.addons.preloaded&&(O.resultsText&&Cr(O,"preloaded"),hr(O,O.init,!0)),O.addons.nextpage&&(O.listing.querySelector(".alm-nextpage")&&!O.addons.paging&&(e=O.listing.querySelectorAll(".alm-nextpage"))&&(r=e[0],o=r.dataset.totalPosts?parseInt(r.dataset.totalPosts):null===(n=O)||void 0===n||null===(n=n.localize)||void 0===n?void 0:n.total_posts,e.length!==o&&parseInt(r.dataset.page)!==o||O.AjaxLoadMore.triggerDone()),O.resultsText&&Cr(O,"nextpage"),hr(O,O.init,!0)),O.addons.woocommerce&&(Wn(O),O.addons.woocommerce_settings.paged>=parseInt(O.addons.woocommerce_settings.pages)&&O.AjaxLoadMore.triggerDone()),O.addons.elementor&&O.addons.elementor_type&&"posts"===O.addons.elementor_type&&(mn(O),O.addons.elementor_next_page||O.AjaxLoadMore.triggerDone()),O.window.addEventListener("load",(function(){if("masonry"===O.transition&&O.addons.preloaded&&zr(Br().mark((function t(){return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pr(O,!0,!1);case 2:O.masonry.init=!1;case 3:case"end":return t.stop()}}),t)})))().catch((function(){console.error("There was an error with ALM Masonry")})),O.addons.preloaded&&O.addons.filters&&O.facets&&"function"==typeof almFiltersFacets){var t,e=null===(t=O)||void 0===t||null===(t=t.localize)||void 0===t?void 0:t.facets;e&&window.almFiltersFacets(e)}"function"==typeof almOnLoad&&window.almOnLoad(O)})),In(O);case 13:case"end":return t.stop()}}),t)}))),O.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;O.loading=!1,O.addons.paging||(O.button.classList.remove("loading"),O.AjaxLoadMore.resetBtnText()),console.warn("Error: ",t),t.response?console.error("Error Msg: ",t.message):t.request?console.error(t.request):console.error("Error Msg: ",t.message),e&&console.error("ALM Error started in "+e),t.config&&console.error("ALM Error Debug: ",t.config)},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r=n.listing,o=null==r?void 0:r.innerHTML;n.addons.paging_init&&n.addons.preloaded?(n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(o),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?(n.AjaxLoadMore.pagingNextpageInit(),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){var t;return null===(t=O)||void 0===t?void 0:t.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?O[t]:O},window.almTriggerClick=function(){O.button.click()},setTimeout((function(){O.proceed=!0,O.AjaxLoadMore.scrollSetup()}),1e3),O.AjaxLoadMore.init()};window.almInit=function(e){new t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&Hr(e).forEach((function(e,n){new t(e,n)}))}();var Jr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;$r=!0,br(t,e,n,"filter")},Qr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};$r=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?zr(Br().mark((function t(){var n,r;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,new Promise((function(t){var e=window.location;he.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(){t(!1)}))}));case 3:(r=t.sent)&&(n.dataset.wooSettings=r,br("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t)})))().catch((function(){console.warn("Ajax Load More: There was an issue resetting the Ajax Load More instance.")})):br("fade","200",e,"filter")},Yr=function(){return rr("post_count",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Kr=function(){return rr("total_posts",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Xr=function(){return rr("remaining",arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},Zr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=window.location,n=e.pathname,r=void 0===n?"":n,o=e.search,a=void 0===o?"":o;"function"==typeof almUrlUpdate&&window.almUrlUpdate(r+a,t),"function"==typeof almAnalytics&&window.almAnalytics(r+a,t)},to=function(t){if(!t)return!1;window.almInit(t)},eo=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})},no=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.scrollX||document.documentElement.scrollLeft,r=window.scrollY||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}},ro=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.querySelector(".ajax-load-more-wrap"),n="";!t&&e?(n=e.querySelector("button.alm-load-more-btn"))&&n.click():(e=document.querySelector('.ajax-load-more-wrap[data-id="'.concat(t,'"]')))&&(n=e.querySelector("button.alm-load-more-btn"))&&n.click()},oo=function(t){var e=t.querySelector(".alm-listing");e&&"true"!==t.dataset.blockLoaded&&(t.dataset.blockLoaded="true",e.dataset.scroll="false",to(t))}}(),ajaxloadmore=r}(); \ No newline at end of file diff --git a/lang/ajax-load-more.pot b/lang/ajax-load-more.pot index 138f0e6..f57621c 100755 --- a/lang/ajax-load-more.pot +++ b/lang/ajax-load-more.pot @@ -2,22 +2,22 @@ # This file is distributed under the GPL. msgid "" msgstr "" -"Project-Id-Version: Ajax Load More 7.1.3\n" +"Project-Id-Version: Ajax Load More 7.1.4\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-load-more\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-10-01T13:26:40+00:00\n" +"POT-Creation-Date: 2024-12-04T13:46:11+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: ajax-load-more\n" #. Plugin Name of the plugin -#: admin/admin.php:556 +#: admin/admin.php:555 #: core/integration/elementor/elementor.php:19 -#: src/blocks/core/render.php:15 +#: src/blocks/core/render.php:16 msgid "Ajax Load More" msgstr "" @@ -37,190 +37,190 @@ msgstr "" msgid "https://connekthq.com" msgstr "" -#: admin/admin.php:76 -#: admin/admin.php:592 +#: admin/admin.php:75 +#: admin/admin.php:591 #: admin/functions/layouts.php:18 #: admin/functions/licensing.php:19 #: admin/functions/repeater-templates.php:20 -#: admin/functions/repeater-templates.php:130 +#: admin/functions/repeater-templates.php:125 msgid "You don't belong here." msgstr "" -#: admin/admin.php:81 -#: admin/admin.php:596 +#: admin/admin.php:80 +#: admin/admin.php:595 #: admin/functions/layouts.php:23 #: admin/functions/licensing.php:25 #: admin/functions/repeater-templates.php:25 -#: admin/functions/repeater-templates.php:135 +#: admin/functions/repeater-templates.php:130 msgid "Error - unable to verify nonce, please try again." msgstr "" -#: admin/admin.php:89 +#: admin/admin.php:88 msgid "Transient set successfully" msgstr "" -#: admin/admin.php:107 +#: admin/admin.php:106 msgid "License" msgstr "" -#: admin/admin.php:107 +#: admin/admin.php:106 #: admin/views/filters.php:10 #: admin/views/licenses.php:9 #: admin/views/licenses.php:10 msgid "Licenses" msgstr "" +#: admin/admin.php:120 #: admin/admin.php:121 -#: admin/admin.php:122 -#: admin/admin.php:130 +#: admin/admin.php:129 #: admin/views/settings.php:9 -#: ajax-load-more.php:312 +#: ajax-load-more.php:317 #: src/blocks/core/inspector.js:17 #: src/blocks/filters/inspector.js:28 msgid "Settings" msgstr "" +#: admin/admin.php:136 #: admin/admin.php:137 -#: admin/admin.php:138 -#: admin/admin.php:146 +#: admin/admin.php:145 #: admin/views/repeater-templates.php:9 msgid "Templates" msgstr "" +#: admin/admin.php:152 #: admin/admin.php:153 -#: admin/admin.php:154 -#: admin/admin.php:162 +#: admin/admin.php:161 #: admin/views/shortcode-builder.php:9 msgid "Shortcode Builder" msgstr "" +#: admin/admin.php:168 #: admin/admin.php:169 -#: admin/admin.php:170 -#: admin/admin.php:178 +#: admin/admin.php:177 #: admin/shortcode-builder/components/filters.php:10 #: admin/views/filters.php:9 msgid "Filters" msgstr "" +#: admin/admin.php:185 #: admin/admin.php:186 -#: admin/admin.php:187 -#: admin/admin.php:197 +#: admin/admin.php:196 #: admin/shortcode-builder/components/cache.php:3 msgid "Cache" msgstr "" +#: admin/admin.php:205 #: admin/admin.php:206 -#: admin/admin.php:207 -#: admin/admin.php:216 +#: admin/admin.php:215 msgid "WooCommerce" msgstr "" +#: admin/admin.php:225 #: admin/admin.php:226 -#: admin/admin.php:227 -#: admin/admin.php:235 +#: admin/admin.php:234 #: admin/shortcode-builder/shortcode-builder.php:25 #: admin/shortcode-builder/shortcode-builder.php:46 #: admin/views/add-ons.php:9 msgid "Add-ons" msgstr "" +#: admin/admin.php:245 #: admin/admin.php:246 -#: admin/admin.php:247 -#: admin/admin.php:255 +#: admin/admin.php:254 #: admin/shortcode-builder/shortcode-builder.php:28 #: admin/shortcode-builder/shortcode-builder.php:78 #: admin/views/extensions.php:9 msgid "Extensions" msgstr "" +#: admin/admin.php:262 #: admin/admin.php:263 -#: admin/admin.php:264 -#: admin/admin.php:272 -#: admin/admin.php:278 +#: admin/admin.php:271 +#: admin/admin.php:277 msgid "Pro" msgstr "" -#: admin/admin.php:279 -#: admin/admin.php:287 +#: admin/admin.php:278 +#: admin/admin.php:286 #: admin/views/licenses.php:154 msgid "Go Pro" msgstr "" +#: admin/admin.php:310 #: admin/admin.php:311 -#: admin/admin.php:312 -#: admin/admin.php:320 +#: admin/admin.php:319 #: admin/views/help.php:9 msgid "Help" msgstr "" -#: admin/admin.php:557 +#: admin/admin.php:556 #: admin/views/licenses.php:97 msgid "Active" msgstr "" -#: admin/admin.php:558 +#: admin/admin.php:557 #: admin/views/licenses.php:99 msgid "Inactive" msgstr "" -#: admin/admin.php:559 +#: admin/admin.php:558 msgid "Applying Layout" msgstr "" -#: admin/admin.php:560 -#: admin/views/repeater-templates.php:432 +#: admin/admin.php:559 +#: admin/views/repeater-templates.php:447 msgid "Template Updated" msgstr "" -#: admin/admin.php:562 +#: admin/admin.php:561 msgid "Select Author(s)" msgstr "" -#: admin/admin.php:563 +#: admin/admin.php:562 msgid "Select Categories" msgstr "" -#: admin/admin.php:564 +#: admin/admin.php:563 msgid "Select Tags" msgstr "" -#: admin/admin.php:565 +#: admin/admin.php:564 msgid "Select" msgstr "" -#: admin/admin.php:566 +#: admin/admin.php:565 msgid "Jump to Option" msgstr "" -#: admin/admin.php:567 +#: admin/admin.php:566 msgid "Jump to Template" msgstr "" -#: admin/admin.php:568 +#: admin/admin.php:567 msgid "Are you sure you want to install this Ajax Load More extension?" msgstr "" -#: admin/admin.php:569 +#: admin/admin.php:568 msgid "Install Now" msgstr "" -#: admin/admin.php:570 +#: admin/admin.php:569 msgid "Activate" msgstr "" -#: admin/admin.php:571 +#: admin/admin.php:570 msgid "Saving Settings" msgstr "" -#: admin/admin.php:572 +#: admin/admin.php:571 msgid "Settings Saved Successfully" msgstr "" -#: admin/admin.php:573 +#: admin/admin.php:572 msgid "Error Saving Settings" msgstr "" -#: admin/admin.php:574 +#: admin/admin.php:573 msgid "There is a maximum of 3 tax_query objects while using the shortcode builder" msgstr "" @@ -267,20 +267,20 @@ msgstr "" msgid "%1$sRegister%2$s your copy of %3$s to receive access to automatic upgrades and support. Need a license key? %4$sPurchase one now%5$s." msgstr "" -#: admin/functions/repeater-templates.php:110 +#: admin/functions/repeater-templates.php:105 msgid "Template Saved Successfully" msgstr "" -#: admin/functions/repeater-templates.php:112 +#: admin/functions/repeater-templates.php:107 msgid "Error Writing File" msgstr "" -#: admin/functions/repeater-templates.php:112 -#: admin/views/repeater-templates.php:376 +#: admin/functions/repeater-templates.php:107 +#: admin/views/repeater-templates.php:391 msgid "Something went wrong and the data could not be saved." msgstr "" -#: admin/functions/repeater-templates.php:179 +#: admin/functions/repeater-templates.php:174 msgid "Something isn't right here..." msgstr "" @@ -407,7 +407,7 @@ msgstr "" #: admin/functions/settings.php:374 #: admin/shortcode-builder/shortcode-builder.php:168 #: admin/shortcode-builder/shortcode-builder.php:387 -#: ajax-load-more.php:417 +#: ajax-load-more.php:419 msgid "Load More" msgstr "" @@ -1821,7 +1821,7 @@ msgstr "" #: admin/views/filters.php:41 #: admin/views/go-pro.php:63 #: admin/views/repeater-templates.php:133 -#: admin/views/repeater-templates.php:482 +#: admin/views/repeater-templates.php:497 msgid "Learn More" msgstr "" @@ -2650,7 +2650,7 @@ msgid "Theme Repeaters" msgstr "" #: admin/views/repeater-templates.php:93 -#: admin/views/repeater-templates.php:255 +#: admin/views/repeater-templates.php:270 msgid "Location" msgstr "" @@ -2666,43 +2666,47 @@ msgstr "" msgid "Manage Settings" msgstr "" -#: admin/views/repeater-templates.php:184 +#: admin/views/repeater-templates.php:186 msgid "Default Template" msgstr "" -#: admin/views/repeater-templates.php:199 +#: admin/views/repeater-templates.php:201 msgid "Template Code:" msgstr "" -#: admin/views/repeater-templates.php:200 +#: admin/views/repeater-templates.php:202 msgid "Enter the PHP and HTML markup for this template." msgstr "" -#: admin/views/repeater-templates.php:236 +#: admin/views/repeater-templates.php:224 +msgid "This default ALM template is missing from the filesystem! Click the \"Save Template\" button to save the template." +msgstr "" + +#: admin/views/repeater-templates.php:251 msgid "Save Template" msgstr "" -#: admin/views/repeater-templates.php:253 +#: admin/views/repeater-templates.php:268 msgid "It appears you are loading the default template (default.php) from your current theme directory. To modify this template, you must edit the file directly on your server." msgstr "" -#: admin/views/repeater-templates.php:265 +#: admin/views/repeater-templates.php:280 msgid "Repeater Templates editing has been disabled for this instance of Ajax Load More. To enable the template editing, please remove the ALM_DISABLE_REPEATER_TEMPLATES PHP constant from your wp-config.php (or functions.php) and re-activate the plugin." msgstr "" -#: admin/views/repeater-templates.php:340 +#: admin/views/repeater-templates.php:355 msgid "Saving template..." msgstr "" -#: admin/views/repeater-templates.php:411 +#: admin/views/repeater-templates.php:426 msgid "Updating Template" msgstr "" -#: admin/views/repeater-templates.php:476 +#: admin/views/repeater-templates.php:491 msgid "What's a Repeater Template?" msgstr "" -#: admin/views/repeater-templates.php:478 +#: admin/views/repeater-templates.php:493 msgid "A Repeater Template is a snippet of code that will execute over and over within a WordPress loop" msgstr "" @@ -2726,15 +2730,15 @@ msgstr "" msgid "Reset" msgstr "" -#: ajax-load-more.php:289 +#: ajax-load-more.php:294 msgid "Error creating repeater template directory" msgstr "" -#: ajax-load-more.php:401 +#: ajax-load-more.php:403 msgid "Viewing {post_count} of {total_posts} results." msgstr "" -#: ajax-load-more.php:402 +#: ajax-load-more.php:404 msgid "No results found." msgstr "" @@ -2967,7 +2971,7 @@ msgstr "" msgid "%1$sBuild Shortcode%2$s" msgstr "" -#: src/blocks/core/render.php:16 +#: src/blocks/core/render.php:17 msgid "You must enter an Ajax Load More shortcode." msgstr "" @@ -2985,7 +2989,7 @@ msgid "You must enter an Ajax Load More target for this filter." msgstr "" #: src/blocks/core/inspector.js:23 -msgid "Note: Scroll is disabled within the WP block editor." +msgid "Note: Infinite scroll is disabled within the Block Editor." msgstr "" #: src/blocks/core/inspector.js:34