PageSourceSearch

https://www.pressherald.com/_static/??-eJyVzFEOgjAMgOELOYY+KDwYz1K…/I8JmcMoPRFo8RY6YPv51vftl137S/TD5nHhVw=

js pressherald.com collected 2026-09-24 08:29:52 UTC 126,546 bytes, 15 lines download raw bytes

vendor: 4,902 bytes, lines 1-9
1/*!
2 * jQuery UI Autocomplete 1.14.2
3 * https://jqueryui.com
4 *
5 * Copyright OpenJS Foundation and other contributors
6 * Released under the MIT license.
7 * https://jquery.org/license
8 */
9!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.14.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var t=t.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i),!1!==this._trigger("select",e,{item:t})&&this._value(t.value),this.term=this._value(),this.close(e),this.selectedItem=t}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(
9),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});;
10/*! For license information please see frontend.js.LICENSE.txt */
11!function(){var t={655:function(t,e,n){"use strict";var i=n(36955),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},1469:function(t,e,n){"use strict";var i=n(87433);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},1625:function(t,e,n){"use strict";var i=n(79504);t.exports=i({}.isPrototypeOf)},2360:function(t,e,n){"use strict";var i,r=n(28551),o=n(96801),s=n(88727),a=n(30421),u=n(20397),c=n(4055),l=n(66119),d="prototype",f="script",m=l("IE_PROTO"),h=function(){},p=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}g="undefined"!=typeof document?document.domain&&i?v(i):function(){var t,e=c("iframe"),n="java"+f+":";return e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F}():v(i);for(var t=s.length;t--;)delete g[d][s[t]];return g()};
11a[m]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[d]=r(t),n=new h,h[d]=null,n[m]=t):n=g(),void 0===e?n:o.f(n,e)}},4055:function(t,e,n){"use strict";var i=n(44576),r=n(20034),o=i.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},4495:function(t,e,n){"use strict";var i=n(39519),r=n(79039),o=n(44576).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},6469:function(t,e,n){"use strict";var i=n(78227),r=n(2360),o=n(24913).f,s=i("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,n){"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9539:function(t,e,n){"use strict";var i=n(69565),r=n(28551),o=n(55966);t.exports=function(t,e,n){var s,a;r(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw n;return n}s=i(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw n;if(a)throw s;return r(s),n}},10350:function(t,e,n){"use strict";var i=n(43724),r=n(39297),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!i||i&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},10687:function(t,e,n){"use strict";var i=n(24913).f,r=n(39297),o=n(78227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},10757:function(t,e,n){"use strict";var i=n(97751),r=n(94901),o=n(1625),s=n(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,a(t))}},12211:function(t,e,n){"use strict";var i=n(79039);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},13925:function(t,e,n){"use strict";var i=n(20034);t.exports=function(t){return i(t)||null===t}},15431:function(t,e,n){n(74423);!function(){if("undefined"!==typeof sectionFrontData&&sectionFrontData.hasOwnProperty("isFront")&&1!=sectionFrontData.isFront&&"object"===typeof paywall){var t,e;for(t=0;t<paywall.category_list.length;t++)if(e=paywall.category_list[t].term_id.toString(),paywall.ignored_categories.includes(e))return"no";return"1"===paywall.should_ignore||"disabled"===paywall.status||document.cookie.match(/AccessPassUser/i)?"no":"yes"}}();window.dataLayer=window.dataLayer||[],document.addEventListener("fp_event_tracker",(function(t){t&&t.detail&&window.dataLayer.push({event:"flip_pay_tracking",fp_event_type:t.detail.event_type,fp_raw_data:t.detail})})),document.addEventListener("fp.authentication",(function(t){t&&t.detail&&window.dataLayer.push({event:"flip_pay_auth_update",fp_auth_status:t.detail})}))},16823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},17444:function(t,e,n){"use strict";n(47764),n(23418);var i=n(19167);t.exports=i.Array.from},17843:function(){const t=function(){"use strict";let t={active:[],inactive:[],any:[]},e="",n=!1,i="unknown";const r=function(){return document.body.classList.contains("user-known")||document.body.classList.contains("user-unknown")};function o(){var r;i="active","loggedout"!==user_state&&"none"!==user_state||(i="inactive"),n=!1,e=r=i,t.any.forEach((t=>t())),t[r].forEach((t=>t()))}function s(n,i){t[n].push(i),""!==e&&(e!==n&&"any"!==n||i())}return document.addEventListener("DOMContentLoaded",(function(){if(n||""!==e)return;if(n=!0,r())return void o();let t=new MutationObserver((function(){r()&&(t.disconnect(),o())}));t.observe(document.body,{attributes:!0,attributeFilter:["class"]})})),{active:function(t){s("active",t)},inactive:function(t){s("inactive",t)},any:function(t){s("any",t)},getStatus:function(){return{watchingStatus:n,fired:e,mode:i}},get:function(e){return t[e]},rerun:function(){o()}}}();window.UserStatusIs=t},18014:function(t,e,n){"use strict";
11var i=n(91291),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,9007199254740991):0}},19167:function(t,e,n){"use strict";var i=n(44576);t.exports=i},19545:function(){!function(){"use strict";let t=!1;UserStatusIs.active((async()=>{if(t)return;t=!0;let e=await MTMFlipPay.getDetails();e.corporate_accounts.length>0&&(document.body.classList.add("corp-account"),document.body.setAttribute("data-corp-account",e.corporate_accounts[0].name.toLowerCase().replace(/\s+/g,"-")))}))}()},19617:function(t,e,n){"use strict";var i=n(25397),r=n(35610),o=n(26198),s=function(t){return function(e,n,s){var a=i(e),u=o(a);if(0===u)return!t&&-1;var c,l=r(s,u);if(t&&n!==n){for(;u>l;)if((c=a[l++])!==c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},20034:function(t,e,n){"use strict";var i=n(94901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},20397:function(t,e,n){"use strict";var i=n(97751);t.exports=i("document","documentElement")},22195:function(t,e,n){"use strict";var i=n(79504),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},23418:function(t,e,n){"use strict";var i=n(46518),r=n(97916);i({target:"Array",stat:!0,forced:!n(84428)((function(t){Array.from(t)}))},{from:r})},23500:function(t,e,n){"use strict";var i=n(44576),r=n(67400),o=n(79296),s=n(90235),a=n(66699),u=function(t){if(t&&t.forEach!==s)try{a(t,"forEach",s)}catch(e){t.forEach=s}};for(var c in r)r[c]&&u(i[c]&&i[c].prototype);u(o)},23792:function(t,e,n){"use strict";var i=n(25397),r=n(6469),o=n(26269),s=n(91181),a=n(24913).f,u=n(51088),c=n(62529),l=n(96395),d=n(43724),f="Array Iterator",m=s.set,h=s.getterFor(f);t.exports=u(Array,"Array",(function(t,e){m(this,{type:f,target:i(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var p=o.Arguments=o.Array;
11if(r("keys"),r("values"),r("entries"),!l&&d&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(t){}},24589:function(){!function(){let t=["fp_user_event"];t=[];const e=(t,e)=>{let n,i=new Date;if(i.setDate(i.getDate()+14),!blueConicClient||!blueConicClient.profile)return!1;n=blueConicClient.profile.getProfile(),n.setValue(t,e),blueConicClient.profile.updateProfile(),cookieStore.set({name:`mtm_${t}`,value:e,expires:i})},n=t=>{let n="",i=window.location.host;i.match(/sunjournal/)&&(n="sj_"),i.match(/centralmaine/)&&(n="cm_"),e(n+"checkout_offer_seen",t)},i=()=>{let t=new Date;e("checkout_visit_date",Math.round(t.getTime()))};t.forEach((t=>{document.body.addEventListener(t,(t=>{const r=t.detail;console.log(t),r&&r.action_type&&("price_selected"===r.action_type&&(console.info("Tracking user - selected plan"),n(r?.object?.price?.sku_code||"unknown")),"fp_purchase_resolved"===r.action_type&&(console.info("Tracking user - Purchase Complete"),e("order_success","completed"),i()))}))})),["fp_event_tracker"].forEach((t=>{document.addEventListener(t,(t=>{const r=t.detail;console.log(t),r&&r.event_type&&(r.event_type,"purchased"===r.event_type&&(console.info("Tracking user - Purchase Complete"),e("order_success","completed")),"price_selected"===r.event_type&&(console.info("Tracking user - Price Selected",r.object.price.sku_code),n(r.object.price.sku_code),i()))}))}))}()},24913:function(t,e,n){"use strict";var i=n(43724),r=n(35917),o=n(48686),s=n(28551),a=n(56969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",m="writable";e.f=i?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&m in n&&!n[m]){var i=l(t,e);i&&i[m]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:d in n?n[d]:i[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},25397:function(t,e,n){"use strict";var i=n(47055),r=n(67750);t.exports=function(t){return i(r(t))}},25745:function(t,e,n){"use strict";var i=n(77629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},26198:function(t,e,n){"use strict";var i=n(18014);t.exports=function(t){return i(t.length)}},26269:function(t){"use strict";t.exports={}},27476:function(t,e,n){"use strict";var i=n(22195),r=n(79504);t.exports=function(t){if("Function"===i(t))return r(t)}},28551:function(t,e,n){"use strict";var i=n(20034),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},30421:function(t){"use strict";t.exports={}},33392:function(t,e,n){"use strict";var i=n(79504),r=0,o=Math.random(),s=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},33517:function(t,e,n){"use strict";var i=n(79504),r=n(79039),o=n(94901),s=n(36955),a=n(97751),u=n(33706),c=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=i(d.exec),m=!d.test(c),h=function(t){if(!o(t))return!1;try{return l(c,[],t),!0}catch(t){return!1}},p=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(d,u(t))}catch(t){return!0}};p.sham=!0,t.exports=!l||r((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?p:h},33706:function(t,e,n){"use strict";var i=n(79504),r=n(94901),o=n(77629),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},33717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},33994:function(t,e,n){"use strict";var i=n(57657).IteratorPrototype,r=n(2360),o=n(6980),s=n(10687),a=n(26269),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=r(i,{next:o(+!c,n)}),s(t,l,!1,!0),a[l]=u,t}},34376:function(t,e,n){"use strict";var i=n(22195);t.exports=Array.isArray||function(t){return"Array"===i(t)}},34598:function(t,e,n){"use strict";var i=n(79039);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},35031:function(t,e,n){"use strict";var i=n(97751),r=n(79504),o=n(38480),s=n(33717),a=n(28551),u=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?u(e,n(t)):e}},35610:function(t,e,n){"use strict";
vendor: 4,909 bytes, line 11
11var i=n(91291),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},35917:function(t,e,n){"use strict";var i=n(43724),r=n(79039),o=n(4055);t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},36840:function(t,e,n){"use strict";var i=n(94901),r=n(24913),o=n(50283),s=n(39433);t.exports=function(t,e,n,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:e;if(i(n)&&o(n,c,a),a.global)u?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},36955:function(t,e,n){"use strict";var i=n(92140),r=n(94901),o=n(22195),s=n(78227)("toStringTag"),a=Object,u="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:u?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},38480:function(t,e,n){"use strict";var i=n(61828),r=n(88727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},39297:function(t,e,n){"use strict";var i=n(79504),r=n(48981),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},39433:function(t,e,n){"use strict";var i=n(44576),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},39519:function(t,e,n){"use strict";var i,r,o=n(44576),s=n(82839),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},40616:function(t,e,n){"use strict";var i=n(79039);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},42787:function(t,e,n){"use strict";var i=n(39297),r=n(94901),o=n(48981),s=n(66119),a=n(12211),u=s("IE_PROTO"),c=Object,l=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(i(e,u))return e[u];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},43724:function(t,e,n){"use strict";var i=n(79039);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},44209:function(t,e,n){"use strict";var i=n(78227),r=n(26269),o=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},44576:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},46518:function(t,e,n){"use strict";var i=n(44576),r=n(77347).f,o=n(66699),s=n(36840),a=n(39433),u=n(77740),c=n(92796);t.exports=function(t,e){var n,l,d,f,m,h=t.target,p=t.global,v=t.stat;if(n=p?i:v?i[h]||a(h,{}):i[h]&&i[h].prototype)for(l in e){if(f=e[l],d=t.dontCallGetSet?(m=r(n,l))&&m.value:n[l],!c(p?l:h+(v?".":"#")+l,t.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(t.sham||d&&d.sham)&&o(f,"sham",!0),s(n,l,f,t)}}},46706:function(t,e,n){"use strict";var i=n(79504),r=n(79306);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},47055:function(t,e,n){"use strict";var i=n(79504),r=n(79039),o=n(22195),s=Object,a=i("".split);t.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):s(t)}:s},47764:function(t,e,n){"use strict";var i=n(68183).charAt,r=n(655),o=n(91181),s=n(51088),a=n(62529),u="String Iterator",c=o.set,l=o.getterFor(u);s(String,"String",(function(t){c(this,{type:u,string:r(t),index:0})}),(function(){var t,e=l(this),n=e.string,r=e.index;return r>=n.length?a(void 0,!0):(t=i(n,r),e.index+=t.length,a(t,!1))}))},48686:function(t,e,n){"use strict";var i=n(43724),r=n(79039);t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48773:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},48821:function(t,e,n){var i;!function(){"use strict";"object"!==typeof window.UtilityMove&&(window.UtilityMove={});var n=function(t){var e=document.createElement("div");e.setAttribute("id","move-helper-text"),e.innerHTML="Some areas of this page may shift around if you resize the browser window. Be sure to check heading and document order.",e.style.position="absolute",e.style.top="-999em",e.style.left="-999em",document.getElementById("move-helper-text")||document.body.appendChild(e),document.body.setAttribute("aria-describedby","move-helper-text");
11var n,i={el:null,before:null,after:null,appendTo:null,prependTo:null,minWidth:null,refreshRate:200,useMatchMedia:!1,mediaQuery:""},r=!1,o=t.el.parentNode,s=t.el.nextSibling,a=window.matchMedia(t.mediaQuery);for(n=0;n<i.length;n+=1)"undefined"===typeof t[n]&&(t[n]=i[n]);var u=function(){t.el&&(t.before?t.before.parentNode.insertBefore(t.el,t.before):t.after?t.after.parentNode.insertBefore(t.el,t.after.nextSibling):t.prependTo?t.prependTo.insertBefore(t.el,t.prependTo.firstChild):t.appendTo&&t.appendTo.appendChild(t.el)),r=!0},c=function(){s?o.insertBefore(t.el,s):o.appendChild(t.el),r=!1};t.useMatchMedia&&t.mediaQuery&&"not all"!==a.media?(a.matches&&u(),a.addListener((function(t){t.matches?u():c()}))):t.minWidth&&!t.useMatchMedia?(document.documentElement.clientWidth>t.minWidth&&!1===r?u():document.documentElement.clientWidth<=t.minWidth&&c(),window.addEventListener("resize",function(t,e,n){var i;return function(){var r=this,o=arguments,s=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||t.apply(r,o)}),e),s&&t.apply(r,o)}}((function(){document.documentElement.clientWidth>t.minWidth&&!1===r?u():document.documentElement.clientWidth<=t.minWidth&&!0===r&&c()}),t.refreshRate))):u()};"undefined"!==typeof t.exports?t.exports=n:void 0===(i=function(){return n}.apply(e,[]))||(t.exports=i)}("undefined"!==typeof n.g?n.g:window)},48981:function(t,e,n){"use strict";var i=n(67750),r=Object;t.exports=function(t){return r(i(t))}},50283:function(t,e,n){"use strict";var i=n(79504),r=n(79039),o=n(94901),s=n(39297),a=n(43724),u=n(10350).CONFIGURABLE,c=n(33706),l=n(91181),d=l.enforce,f=l.get,m=String,h=Object.defineProperty,p=i("".slice),v=i("".replace),g=i([].join),y=a&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===p(m(e),0,7)&&(e="["+v(m(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&s(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return s(i,"source")||(i.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&f(this).source||c(this)}),"toString")},50851:function(t,e,n){"use strict";var i=n(36955),r=n(55966),o=n(64117),s=n(26269),a=n(78227)("iterator");t.exports=function(t){if(!o(t))return r(t,a)||r(t,"@@iterator")||s[i(t)]}},51088:function(t,e,n){"use strict";var i=n(46518),r=n(69565),o=n(96395),s=n(10350),a=n(94901),u=n(33994),c=n(42787),l=n(52967),d=n(10687),f=n(66699),m=n(36840),h=n(78227),p=n(26269),v=n(57657),g=s.PROPER,y=s.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,S=h("iterator"),E="keys",x="values",L="entries",_=function(){return this};t.exports=function(t,e,n,s,h,v,k){u(n,e,s);var A,T,C,O=function(t){if(t===h&&$)return $;if(!w&&t&&t in D)return D[t];switch(t){case E:case x:case L:return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",M=!1,D=t.prototype,j=D[S]||D["@@iterator"]||h&&D[h],$=!w&&j||O(h),q="Array"===e&&D.entries||j;if(q&&(A=c(q.call(new t)))!==Object.prototype&&A.next&&(o||c(A)===b||(l?l(A,b):a(A[S])||m(A,S,_)),d(A,P,!0,!0),o&&(p[P]=_)),g&&h===x&&j&&j.name!==x&&(!o&&y?f(D,"name",x):(M=!0,$=function(){return r(j,this)})),h)if(T={values:O(x),keys:v?$:O(E),entries:O(L)},k)for(C in T)(w||M||!(C in D))&&m(D,C,T[C]);else i({target:e,proto:!0,forced:w||M},T);return o&&!k||D[S]===$||m(D,S,$,{name:h}),p[e]=$,T}},52967:function(t,e,n){"use strict";var i=n(46706),r=n(20034),o=n(67750),s=n(73506);
11t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),s(i),r(n)?(e?t(n,i):n.__proto__=i,n):n}}():void 0)},55966:function(t,e,n){"use strict";var i=n(79306),r=n(64117);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},56969:function(t,e,n){"use strict";var i=n(72777),r=n(10757);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},57657:function(t,e,n){"use strict";var i,r,o,s=n(79039),a=n(94901),u=n(20034),c=n(2360),l=n(42787),d=n(36840),f=n(78227),m=n(96395),h=f("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(r=l(l(o)))!==Object.prototype&&(i=r):p=!0),!u(i)||s((function(){var t={};return i[h].call(t)!==t}))?i={}:m&&(i=c(i)),a(i[h])||d(i,h,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},58622:function(t,e,n){"use strict";var i=n(44576),r=n(94901),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},58805:function(){{const t={publication_id:void 0,account_id:void 0,active_subscriptions:void 0,email:void 0,sku:void 0,FirstName:void 0,LastName:void 0,LastStartDate:void 0,status:void 0,city:void 0,state:void 0,zip:void 0};let e=0;const n=()=>{const r=blueConicClient?.profile?.getProfile();10!==++e&&(r||setTimeout(n,1e3),MTMFlipPay.getDetails().then((e=>{let n=e.customer,o=e.purchases,s=n.name.split(" "),a=s[0],u="";s.length>1&&(u=s[s.length-1]);let c=o[0]?.sku_code,l=0;for(i in void 0===c&&(c=""),c.match(/pt/i)&&(t.publication_id="mtm_pt",t.active_subscriptions="mtm_pt"),c.match(/sj/i)&&(t.publication_id="smg_sj",t.active_subscriptions="smg_sj"),c.match(/cm/i)&&(t.publication_id="mtm_ms",t.active_subscriptions="mtm_ms"),o.forEach((t=>{const e=new Date(t.original_start_at).getTime();e>l&&(l=e)})),t.FirstName=a,t.LastName=u,t.sku=c,t.LastStartDate=l,t.account_id=n.account_number,t.status="subscribed"===user_state?"active":"inactive",t.zip=n.post_code&&n.post_code.length>4?n.post_code:"0"+n.post_code,t.email=n.email,t)r.setValue(i,t[i]);blueConicClient.profile.updateProfile(this,(function(){console.log("Profile saved!")}))})))};UserStatusIs.active(n),UserStatusIs.inactive((()=>{let t=blueConicClient?.profile?.getProfile();t&&t.setValue("status","loggedOut")}))}},59213:function(t,e,n){"use strict";var i=n(76080),r=n(79504),o=n(47055),s=n(48981),a=n(26198),u=n(1469),c=r([].push),l=function(t){var e=1===t,n=2===t,r=3===t,l=4===t,d=6===t,f=7===t,m=5===t||d;return function(h,p,v,g){for(var y,b,w=s(h),S=o(w),E=a(S),x=i(p,v),L=0,_=g||u,k=e?_(h,E):n||f?_(h,0):void 0;E>L;L++)if((m||L in S)&&(b=x(y=S[L],L,w),t))if(e)k[L]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return L;case 2:c(k,y)}else switch(t){case 4:return!1;case 7:c(k,y)}return d?-1:r||l?l:k}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},61828:function(t,e,n){"use strict";var i=n(79504),r=n(39297),o=n(25397),s=n(19617).indexOf,a=n(30421),u=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,l=[];for(n in i)!r(a,n)&&r(i,n)&&u(l,n);for(;e.length>c;)r(i,n=e[c++])&&(~s(l,n)||u(l,n));return l}},62529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},62953:function(t,e,n){"use strict";var i=n(44576),r=n(67400),o=n(79296),s=n(23792),a=n(66699),u=n(10687),c=n(78227)("iterator"),l=s.values,d=function(t,e){if(t){if(t[c]!==l)try{a(t,c,l)}catch(e){t[c]=l}if(u(t,e,!0),r[e])for(var n in s)if(t[n]!==s[n])try{a(t,n,s[n])}catch(e){t[n]=s[n]}}};for(var f in r)d(i[f]&&i[f].prototype,f);d(o,"DOMTokenList")},63959:function(){var t=function(t,n){"use strict";var i,r,o,s,a,u="",c=!1,l=!1,d=!1;let f;var m="https://dev.mainetodaymedia.com/subscriber-share-articles/",h=!0;let p=!1,v=!1;var g,y;let b=[],w=!1;async function S(){const S=document.querySelector("body"),x=document.querySelector("link[rel=shortlink]");if(console.log("Article gifting initialized"),p)return void console.error("Cannot re-init article gifting");if(!x)return void console.error("Cannor find link element for Gifting");if(!(i=document.querySelector(".mtm-article-toolbar")))return void console.error("cannot find gifting toolbar for Gifting");if(a=i.querySelector("#mtm-toggle-dropdown-trigger-gift-article"),f=document.querySelector(".mtm-toggle-dropdown__popup"),!a)return void console.error("cannot find gifting sharebar for Gifting");p=!0;let L=(await MTMFlipPay.getEntitlements()).entitlements;MTMFlipPay.getDetails().then((t=>{t&&(o=t.customer.email,b=t.purchases,n===o||""===o?(S.classList.add("not-subscriber-sharable"),h=!1):b.length>0||L.length>0?S.classList.add("subscriber-sharable"):(S.classList.add("subscriber-sharable-unavailable"),h=!1))}));const _=document.querySelector("h1[itemprop=headline]");_&&(u=_.innerText),s=x.href.replace(/\/$/,"");var k="https://myaccount."+mtmSettings.currentSite+".com",A=i.querySelector("a.subscriptions-link");if(A&&A.setAttribute("href",k),"pressherald"!==mtmSettings.currentSite){var T="sunjournal"===mtmSettings.currentSite?"Sun Journal":"centralmaine.com";i.querySelectorAll(".sitename").forEach((function(t){t.innerText=T}))}
11let C=function(){!function(n){if(!h)return!1;if(!i)return!1;var a=i.querySelector(".mtm-share-link-form");if(!a)return!1;var p=a.innerHTML;a.innerHTML='<div class="meta-item-dropdown__content"><p>Loading...</p></div>',t.getJSON(m+"?prefetch=true&email="+o+"&premium-user="+(w?"1":"0"),(function(b){if(v=!0,f.classList.add("share-count-fetched"),5>parseInt(b.instances,10)){a.innerHTML=p,function(){if(l||!h)return;l=!0,t(".mtm-share-link-form").on("submit",(async function(n){var r,a,c;n.preventDefault();let l=(await MTMFlipPay.getDetails()).customer.name.split(" ");if(d)return!1;d=!0,c=t(this).find(".mtm-share-link-form-email").val();try{r=l[0],a=l[l.length-1]}catch(t){r="a friend",a=""}return e.track("Gift via email sent!"),i.querySelector(".mtm-gift-loader").classList.remove("is-hidden"),t.post(m,{fromEmail:o,articleURL:encodeURIComponent(s),articleTitle:u,toEmail:c,firstName:r,lastName:a,"premium-user":w},(function(e){var n="success",r="Link sent!";i.querySelector(".mtm-gift-loader").classList.add("is-hidden"),d=!1,"success"!==e.status?(n="failed",r="An error has occurred"):(E(),t(this).find(".mtm-share-link-form-email").val(""),t(".mtm-share-link-form").hide()),t(".mtm-subscriber-message").find(".mtm-ajax-results").addClass(n),t(".mtm-subscriber-message").find(".mtm-ajax-results__"+n).text(r),setTimeout((function(){t(".mtm-ajax-results").removeClass(n)}),5e3)})),!1}))}(),function(){if(!i)return void console.error("cannot find Article Header for Gifting");var n=document.getElementById("js-share-article-url");if(!n)return void console.error("cannot find gifting Share article URL for Gifting");document.querySelector(".mtm-subscriber-message__share").classList.add("hidden"),n.addEventListener("click",(function(n){var r,o;if(n.preventDefault(),!c){c=!0;var s=document.querySelector(".share-link-form");if(s&&s.classList.add("is-hidden"),!d){d=!0,e.track("Copy link button clicked"),r="success",o="Link copied to clipboard!";var a=document.createElement("input");return a.classList.add("copy-input"),a.value=g,i.querySelector(".mtm-subscriber-message").appendChild(a),a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),E(),t(".mtm-subscriber-message").find(".mtm-ajax-results__"+r).text(o),t(".mtm-subscriber-message").find(".mtm-ajax-results").addClass(r),console.log(g),t.post(m,{uuid:y},(function(e){d=!1,setTimeout((function(){t(".mtm-ajax-results").removeClass(r)}),2e3)})),!1}}}))}(),i.querySelector(".mtm-subscriber-message span").innerText=5-b.instances,e.track("Susbcriber clicked gift, "+b.instances+" already gifted");var S=document.getElementById("js-share-article-email");S&&S.addEventListener("click",(function(t){t.preventDefault(),c=!1;const e=document.querySelector(".copy-input");e&&e.remove();const n=document.querySelector(".mtm-share-link-form");n&&n.classList.remove("is-hidden")}))}else a.innerHTML='<div class="meta-item-dropdown__content"><p>It looks like you\'ve shared your max allowed links.</p></div>',e.track("Subscriber shared max amount"),i.querySelector(".mtm-subscriber-message").classList.add("mtm-share-limit-reached"),i.querySelector(".mtm-subscriber-message").querySelector("p").innerText="You have reached your max share limit.",i.querySelector(".mtm-subscriber-message__share").classList.add("hidden"),i.querySelector(".mtm-subscriber-message__share").classList.remove("mtm-subscriber-message__share");return r=b,"function"===typeof n&&n(),b}))}(),async function(){var t,e,n;let i=(await MTMFlipPay.getDetails()).customer.name.split(" ");n=new FormData;try{t=i[0],e=i[i.length-1]}catch(n){t="a friend",e=""}n.append("fromEmail",o),n.append("articleURL",encodeURIComponent(s)),n.append("articleTitle",u),n.append("firstName",t),n.append("lastName",e),n.append("prefetch",!0),n.append("premium-user",w);let r=await fetch(m,{body:n,method:"POST"}),a=await r.json();return y=a.uuid,s+"&uuid="+a.uuid+"&lid="+a.lid}().then((t=>{g=t,document.querySelector(".mtm-subscriber-message__share").classList.remove("hidden")}))};a.addEventListener("click",(function(){e.track("Gift button clicked"),g||(w=document.body.classList.contains("premium-subscriber"),C())})),a.addEventListener("mouseenter",(function(t){}))}
11function E(){if(i){var t=i.querySelector(".subscriber-message-share-count");if(t){var e=parseInt(t.innerText,10);t.innerText=e-1||0}}}return window.addEventListener("DOMContentLoaded",(()=>{UserStatusIs.any(S)})),{init:S,getEmail:async function(){return await MTMFlipPay.getDetails()},getData:function(){return r},getShareLink:function(){return m}}}(jQuery),e=(function(n){"use strict";var i=t.getShareLink(),r=!1,o="not a gift",s=null,a="none";function u(t,e){var i="Press Herald",r="https://www.pressherald.com/benefits/";"sunjournal"===mtmSettings.currentSite?(i="Sun Journal",r=r.replace(/pressherald/i,"sunjournal")):"centralmaine"===mtmSettings.currentSite&&(i="CentralMaine.com",r=r.replace(/pressherald/i,"centralmaine"));var o={none:"This article was shared by our subscriber, %name%.  This gift is one of many benefits to a %site% subscription. See all the benefits and <a href='%subscriberURL%'>subscribe</a> to support local journalism in Maine.",subs:"This article was shared by %name%.  As a subscriber, you can also gift articles to share local journalism with others in the Maine community.  <a href='%infoURL%'>Learn more</a> about how to share the stories that matter to you. "},s="";return t=t.toLowerCase(),s="subscriber"===e?o.subs.replace(/%name%/,'<span class="gift-giver-name">'+t+"</span>").replace(/%infoURL%/,r):o.none.replace(/%name%/,'<span class="gift-giver-name">'+t+"</span>").replace(/%site%/,i).replace(/%subscriberURL%/,"/subscribe"),n("<div  />").addClass("free-article").html("<div><img src='/wp-content/themes/newspack-mainetoday/dist/svg/gift.svg' width='30px'/></div><div>"+s+"</div>").insertBefore("h1[itemprop=headline]"),!0}document.addEventListener("DOMContentLoaded",(function(){var t=window.location.search.replace(/^\?/,"").split("&").map((function(t){return t.match("=")?t.split("="):[t,""]})),c=0,l="?",d=function(){var t=document.querySelector("link[rel=shortlink]");if(null===t)return"";if(null===t.href.match(/\?/))return"";return t.href.split("?")[1].replace(/^p\=/i,"")}(),f=new Date,m="gift-article-"+d,h="",p=new RegExp(m+"=true-([\\w\\s]+);");if(a=/fp\.user/i.test(document.cookie)?"subscriber":"none",0===d.length)return;if(document.cookie.indexOf(m)>-1){if(r=!0,o="Valid gift article",2!==(h=document.cookie.match(p)).length)return;return u(h[1],a),void e.track("Gift article re-opened! (Cookied user)")}for(var v=0;v<t.length;v++)["uuid","lid"].indexOf(t[v][0])>-1&&(c++,l+=t[v][0]+"="+t[v][1]+"&");if(2!==c)return;return l=l.replace(/\&$/,""),n.getJSON(i+l,(function(t){if(s=t,"failed"===t.status)return o=t.reason,void(r=!1);r=!0,o="valid url",u(t.name,a),f.setDate(f.getDate()+14),document.cookie=m+"=true-"+t.name+"; path=/; expires="+f.toGMTString(),e.track("Gift article opened! Count: "+t.count)}))}))}(jQuery),function(){"use strict";let t=window.dataLayer||[];return{track:function(e){return t.push({event:("Gift Article Tracking: _"+e).replace(/\s+/gi,"_").toLowerCase()}),1},makeTracker:function(e){return function(n){return t.push({event:(e+"_"+n).replace(/\s+/gi,"_").toLowerCase()}),1}}}}())},64117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},66119:function(t,e,n){"use strict";var i=n(25745),r=n(33392),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},66699:function(t,e,n){"use strict";var i=n(43724),r=n(24913),o=n(6980);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},67400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},67750:function(t,e,n){"use strict";var i=n(64117),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},68183:function(t,e,n){"use strict";var i=n(79504),r=n(91291),o=n(655),s=n(67750),a=i("".charAt),u=i("".charCodeAt),c=i("".slice),l=function(t){return function(e,n){var i,l,d=o(s(e)),f=r(n),m=d.length;return f<0||f>=m?t?"":void 0:(i=u(d,f))<55296||i>56319||f+1===m||(l=u(d,f+1))<56320||l>57343?t?a(d,f):i:t?c(d,f,f+2):l-56320+(i-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},69565:function(t,e,n){"use strict";var i=n(40616),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},70081:function(t,e,n){"use strict";var i=n(69565),r=n(79306),o=n(28551),s=n(16823),a=n(50851),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(r(n))return o(i(n,t));throw new u(s(t)+" is not iterable")}},71072:function(t,e,n){"use strict";var i=n(61828),r=n(88727);t.exports=Object.keys||function(t){return i(t,r)}},72777:function(t,e,n){"use strict";var i=n(69565),r=n(20034),o=n(10757),s=n(55966),a=n(84270),u=n(78227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,u=s(t,l);if(u){if(void 0===e&&(e="default"),n=i(u,t,e),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},73317:function(t){t.exports=function(){"use strict";function t(){return"undefined"!==typeof window}function e(){var t=!1;
11try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}function n(){return!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame)}function i(t){return 9===t.nodeType}function r(t){return t&&t.document&&i(t.document)}function o(t){var e=t.document,n=e.body,i=e.documentElement;return{scrollHeight:function(){return Math.max(n.scrollHeight,i.scrollHeight,n.offsetHeight,i.offsetHeight,n.clientHeight,i.clientHeight)},height:function(){return t.innerHeight||i.clientHeight||n.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(i||n.parentNode||n).scrollTop}}}function s(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}function a(t){return r(t)?o(t):s(t)}function u(t,n,i){var r,o=e(),s=!1,u=a(t),c=u.scrollY(),l={};function d(){var t=Math.round(u.scrollY()),e=u.height(),r=u.scrollHeight();l.scrollY=t,l.lastScrollY=c,l.direction=t>c?"down":"up",l.distance=Math.abs(t-c),l.isOutOfBounds=t<0||t+e>r,l.top=t<=n.offset[l.direction],l.bottom=t+e>=r,l.toleranceExceeded=l.distance>n.tolerance[l.direction],i(l),c=t,s=!1}function f(){s||(s=!0,r=requestAnimationFrame(d))}var m=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",f,m),d(),{destroy:function(){cancelAnimationFrame(r),t.removeEventListener("scroll",f,m)}}}function c(t){return t===Object(t)?t:{down:t,up:t}}function l(t,e){e=e||{},Object.assign(this,l.options,e),this.classes=Object.assign({},l.options.classes,e.classes),this.elem=t,this.tolerance=c(this.tolerance),this.offset=c(this.offset),this.initialised=!1,this.frozen=!1}return l.prototype={constructor:l,init:function(){return l.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout((function(t){t.scrollTracker=u(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))}),100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every((function(t){return this.classList.contains(t)}),this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},l.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},l.cutsTheMustard=n(),l}()},73506:function(t,e,n){"use strict";var i=n(13925),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},74423:function(t,e,n){"use strict";var i=n(46518),r=n(19617).includes,o=n(79039),s=n(6469);i({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},76080:function(t,e,n){"use strict";var i=n(27476),r=n(79306),o=n(40616),s=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},77270:function(t,e,n){"use strict";n(23500),n(62953);var i=n(19167);t.exports=i},77347:function(t,e,n){"use strict";var i=n(43724),r=n(69565),o=n(48773),s=n(6980),a=n(25397),u=n(56969),c=n(39297),l=n(35917),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=a(t),e=u(e),l)try{return d(t,e)}catch(t){}if(c(t,e))return s(!r(o.f,t,e),t[e])}},77629:function(t,e,n){"use strict";var i=n(96395),r=n(44576),o=n(39433),s="__core-js_shared__",a=t.exports=r[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.41.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},77740:function(t,e,n){"use strict";var i=n(39297),r=n(35031),o=n(77347),s=n(24913);t.exports=function(t,e,n){for(var a=r(e),u=s.f,c=o.f,l=0;l<a.length;l++){var d=a[l];i(t,d)||n&&i(n,d)||u(t,d,c(e,d))}}},78227:function(t,e,n){"use strict";var i=n(44576),r=n(25745),o=n(39297),s=n(33392),a=n(4495),u=n(7040),c=i.Symbol,l=r("wks"),d=u?c.for||c:c&&c.withoutSetter||s;t.exports=function(t){return o(l,t)||(l[t]=a&&o(c,t)?c[t]:d("Symbol."+t)),l[t]}},78999:function(t,e,n){n(74423),window.user_state="none",function(){let t=new URL(window.location),e="pressherald",n=!1;const i=["sdk_auth_state_ready","purchased"];t.hostname.includes("centralmaine")&&(e="centralmaine"),t.hostname.includes("sunjournal")&&(e="sunjournal");const r=t=>{var e;e=t,document.body.classList.add("user-state-"+e),(t=>{if(n)return;let e=new CustomEvent("MG2Load",{detail:{status:t}});const i=()=>{const i=blueConicClient.profile.getProfile();n||(n=!0,i.setValue("login_status",t),blueConicClient.profile.updateProfile(),setTimeout((()=>
11{window.blueConicClient.createEvent("MG2DL_Loaded"),document.dispatchEvent(e)}),1e3))};if(window.blueConicClient?.createEvent)i();else{const t=setInterval((()=>{window.blueConicClient?.createEvent&&(clearInterval(t),i())}),50);window.addEventListener("onBlueConicLoaded",(function(){i(),clearInterval(t)}),{once:!0})}})(t),"subscribed"!==t&&(()=>{const t=document.getElementById("MG2Subscribe");if(t){const e=t.clientHeight+"px";window.matchMedia("(max-width: 800px)").matches&&jQuery(".mtm-wrapper").css("margin-top",e)}})(),["registered","inactive","subscribed"].indexOf(t)>-1&&document.querySelectorAll('[data-mtm-action="member-center"], .fp-member-center').forEach((t=>{t.addEventListener("click",flipPay.showMemberCenter)}))},o=()=>{let t=document.cookie.split("; ").filter((t=>/fp\.user/.test(t)));return!!t.length&&JSON.parse(t[0].split("=")[1])},s=function(){window.user_state="loggedout",r(window.user_state),document.querySelectorAll('.fp-sign-in, [data-mtm-action="sign-in"]').forEach((t=>{t.style.display="inline-block",t.addEventListener("click",(t=>(t.preventDefault(),flipPay.signIn(),!1)))})),document.querySelectorAll('.fp-sign-in [data-mtm-action="sign-up"]').forEach((t=>{t.style.display="inline-block",t.addEventListener("click",(t=>(t.preventDefault(),flipPay.signUp(),!1)))}))},a=function(){window.user_state="registered",r(window.user_state)},u=function(){window.user_state="inactive",r(window.user_state)},c=function(){let t=!1;"none"!==window.user_state&&(t=!0),window.user_state="subscribed",r(window.user_state),t&&UserStatusIs.rerun(),MTMFlipPay.getDetails().then((t=>{let e=new Date;return e.setFullYear(e.getFullYear()+1),t.purchases.map((t=>({expire:new Date(t.finish_at?t.finish_at:e.getTime()),grace:t.grace_period,provider:t?.renewal_payment_method?.payment_provider??"unknown"})))})).then((t=>{let e=!1;return t.forEach((t=>{t.provider&&"paypal"===t.provider.toLowerCase()&&!document.body.classList.contains("easy-pay")&&document.body.classList.add("easy-pay"),t.grace&&(e=!0)})),e&&document.body.classList.add("subscriber-in-grace"),e})),window.matchMedia("(max-width: 800px)").matches&&jQuery(".mtm-wrapper").css("margin-top","0px")},l=async t=>{let e=t.object;if(console.log("initializing flipPay callback for user state"),!o)return void s();if(!e)return void console.error("No user details available",t);(()=>{const t=["user-known","user-unknown","easy-pay","ez-pay","in-grace","user-status-"+user_state];t.forEach((t=>{document.body.classList.contains(t)&&document.body.classList.remove(t)}))})(),MTMFlipPay.reset();let n=await MTMFlipPay.getDetails(),i=await MTMFlipPay.getEntitlements();if(!i||!n)return await cookieStore.delete("fp.user"),s(),document.body.classList.add("user-unknown"),!1;let r=i.entitlements.length,l=n.customer.email,d=n.purchases&&n.purchases.length>0;document.body.classList.remove("user-state-"+window.user_state),window.fpUserResponse=e,r?c():d?u():a(),l?document.body.classList.add("user-known"):document.body.classList.add("user-unknown")};document.addEventListener("fp_event_tracker",(async function(t){const e=t.detail;i.indexOf(e.event_type)>-1&&(console.log("fp_event_tracker fired",e.event_type,e),console.log("readyState:",document.readyState),console.log("hasDeterminedState:",false),console.log("userStatusTriggers:",i),console.log("trigger match:",i.indexOf(e.event_type)>-1),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(async function(){await l(e)})):await l(e))}))}()},79039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},79296:function(t,e,n){"use strict";var i=n(4055)("span").classList,r=i&&i.constructor&&i.constructor.prototype;t.exports=r===Object.prototype?void 0:r},79306:function(t,e,n){"use strict";var i=n(94901),r=n(16823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},79504:function(t,e,n){"use strict";var i=n(40616),r=Function.prototype,o=r.call,s=i&&r.bind.bind(o,o);t.exports=i?s:function(t){return function(){return o.apply(t,arguments)}}},80741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},82839:function(t,e,n){"use strict";var i=n(44576).navigator,r=i&&i.userAgent;t.exports=r?String(r):""},84270:function(t,e,n){"use strict";var i=n(69565),r=n(94901),o=n(20034),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&r(n=t.toString)&&!o(a=i(n,t)))return a;
vendor: 3,363 bytes, line 11
11if(r(n=t.valueOf)&&!o(a=i(n,t)))return a;if("string"!==e&&r(n=t.toString)&&!o(a=i(n,t)))return a;throw new s("Can't convert object to primitive value")}},84428:function(t,e,n){"use strict";var i=n(78227)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},87433:function(t,e,n){"use strict";var i=n(34376),r=n(33517),o=n(20034),s=n(78227)("species"),a=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===a||i(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},88727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},90235:function(t,e,n){"use strict";var i=n(59213).forEach,r=n(34598)("forEach");t.exports=r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},91181:function(t,e,n){"use strict";var i,r,o,s=n(58622),a=n(44576),u=n(20034),c=n(66699),l=n(39297),d=n(77629),f=n(66119),m=n(30421),h="Object already initialized",p=a.TypeError,v=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,i=function(t,e){if(g.has(t))throw new p(h);return e.facade=t,g.set(t,e),e},r=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var y=f("state");m[y]=!0,i=function(t,e){if(l(t,y))throw new p(h);return e.facade=t,c(t,y,e),e},r=function(t){return l(t,y)?t[y]:{}},o=function(t){return l(t,y)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=r(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return n}}}},91291:function(t,e,n){"use strict";var i=n(80741);t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},92140:function(t,e,n){"use strict";var i={};i[n(78227)("toStringTag")]="z",t.exports="[object z]"===String(i)},92796:function(t,e,n){"use strict";var i=n(79039),r=n(94901),o=/#|\.prototype\./,s=function(t,e){var n=u[a(t)];return n===l||n!==c&&(r(e)?i(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},94901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},96319:function(t,e,n){"use strict";var i=n(28551),r=n(9539);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e)}}},96395:function(t){"use strict";t.exports=!1},96801:function(t,e,n){"use strict";var i=n(43724),r=n(48686),o=n(24913),s=n(28551),a=n(25397),u=n(71072);e.f=i&&!r?Object.defineProperties:function(t,e){s(t);for(var n,i=a(e),r=u(e),c=r.length,l=0;c>l;)o.f(t,n=r[l++],i[n]);return t}},97040:function(t,e,n){"use strict";var i=n(43724),r=n(24913),o=n(6980);t.exports=function(t,e,n){i?r.f(t,e,o(0,n)):t[e]=n}},97751:function(t,e,n){"use strict";var i=n(44576),r=n(94901);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},97916:function(t,e,n){"use strict";
11var i=n(76080),r=n(69565),o=n(48981),s=n(96319),a=n(44209),u=n(33517),c=n(26198),l=n(97040),d=n(70081),f=n(50851),m=Array;t.exports=function(t){var e=o(t),n=u(this),h=arguments.length,p=h>1?arguments[1]:void 0,v=void 0!==p;v&&(p=i(p,h>2?arguments[2]:void 0));var g,y,b,w,S,E,x=f(e),L=0;if(!x||this===m&&a(x))for(g=c(e),y=n?new this(g):m(g);g>L;L++)E=v?p(e[L],L):e[L],l(y,L,E);else for(y=n?new this:[],S=(w=d(e,x)).next;!(b=r(S,w)).done;L++)E=v?s(w,p,[b.value,L],!0):b.value,l(y,L,E);return y.length=L,y}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.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 i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},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)},function(){"use strict";n(78999),n(15431),n(17843),n(63959),n(24589),n(58805),n(19545);var t=function(t){var e,n=!1,i=[],r={},o={};function s(t){return t.user=r,1}function a(){for(var t=0;t<i.ac_subs.length;t++)delete i.ac_subs[t].title;return i}function u(t,e){if(o[t+"_"+e])return o[t+"_"+e];if(!i[t])return[];o[t+"_"+e]=[];for(var n=0;n<i[t].length;n++)o[t+"_"+e].push(i[t][n][e]);return o[t+"_"+e]}return UserStatusIs.active((async function(){var o,u,c=/mtm_user_info/i,l=await MTMFlipPay.getDetails();if(/fp\.user/.test(document.cookie))if(r=l.customer,e=l.purchases,r.post_code||(r.post_code=e?.[0]?.contact_info?.post_code||""),window.mtm_data={email:r.email,zip:String(r.post_code||"00000").padStart(5,"0")},c.test(document.cookie)){o=document.cookie.split(";"),n=!0;for(var d=0;d<o.length;d++)if(c.test(o[d]))return u=JSON.parse(decodeURIComponent(o[d].split("=")[1])),void s(i=u)}else n=!0,t.getJSON("https://dev.mainetodaymedia.com/get-user-data/index.php?m="+encodeURIComponent(r.email),(function(t){i=t,a(),function(t){let e=new Date;n=!0,e.setDate(e.getDate()+7),document.cookie="mtm_user_info="+encodeURIComponent(JSON.stringify(t))+"; path=/; domain="+window.location.hostname.replace(/^www/,"")+"; expires="+e.toUTCString()}(t),s(t)}))})),{getData:function(){return n?i:{}},hasInit:function(){return n},withoutTitles:function(){return a()},getEmail:async function(){return r.email||""},getRenderedLists(){return o},getOriginalStart:()=>r.created_at||"",getZip:()=>String(r.post_code||"00000").padStart(5,"0"),getCircSubscriptions:function(){return u("subs","ratecode").sort().join(",")},getACSubscriptions:function(){return u("ac_subs","id").sort().join(",")},getProducts:function(){return u("subs","productID").sort().join(",")},hasSubscriptionWith:function(t){for(var e=u("subs","ratecode"),n=0;n<e.length;n++)if(e[n].productID&&t.test(e[n].productID))return!0;return!1},hasProductWith:function(t){var e=u("subs","productID");console.warn("Subs count: "+e.length);for(var n=0;n<e.length;n++)if(t.test(e[n]))return!0;return!1},hasACSubscription:function(t){return u("ac_subs","id").indexOf(t)>-1},hasRateCodeWith:function(t){for(var e=0;e<i.subs.length;e++)if(t.test(i.subs[e].ratecode))return!0;return!1}}}(jQuery);var e=function(){let t,e,n,i=!1,r=!1;async function o(){if(e=await MTMFlipPay.getDetails(),n=await MTMFlipPay.getEntitlements(),r||!e||!n)return!1;r=!0,i=!!e.customer.email,t=document.querySelectorAll(".mtm-site-header__offcanvas-menu-container--account"),e.customer.name&&t.forEach((function(t){t.querySelector(".mtm-site-header__offcanvas-menu-header-title").innerText="Hi, "+e.customer.name}))}return window.addEventListener("DOMContentLoaded",(function(){UserStatusIs.any(o)})),{init:o}}();n(17444),n(77270);function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(this,arguments)}class r{constructor(t,e={}){t&&"string"==typeof t?(this.evtCallbacks={},this.setMQ=this.setMQ.bind(this),this.listenerMenuToggleClick=this.listenerMenuToggleClick.bind(this),this.listenerSubmenuAnchorFocus=this.listenerSubmenuAnchorFocus.bind(this),this.listenerSubmenuAnchorClick=this.listenerSubmenuAnchorClick.bind(this),this.listenerDocumentClick=this.listenerDocumentClick.bind(this),this.listenerDocumentKeyup=this.listenerDocumentKeyup.bind(this),this.settings=i({},{action:"hover",breakpoint:"(min-width: 48em)",onCreate:null,onOpen:null,onClose:null,onSubmenuOpen:null,onSubmenuClose:null},e),this.mq=window.matchMedia(this.settings.breakpoint),this.$menu=document.querySelector(t),this.$menu?(this.$menuToggle=document.querySelector(`[aria-controls="${this.$menu.getAttribute("id")}"]`),this.$menuToggle?(this.$submenus=this.$menu.querySelectorAll("ul"),this.$menuItems=this.$menu.querySelectorAll("li"),document.querySelector("html").classList.remove("no-js"),document.querySelector("html").classList.add("js"),this.setupMenu(),this.setupSubMenus(),this.setupListeners(),this.settings.onCreate&&"function"==typeof this.settings.onCreate&&this.settings.onCreate.call()):console.error("10up Navigation: No menu toggle found. A valid menu toggle must be used.")):console.error("10up Navigation: Target not found. A valid target (menu) must be used.")):console.error("10up Navigation: No target supplied. A valid target (menu) must be used.")}destroy(t={}){this.removeAllEventListeners(),this.mq.removeListener(this.setMQ),i({},{removeAttributes:!0},t).removeAttributes&&(this.$menu.removeAttribute("aria-hidden"),this.$menu.removeAttribute("data-action"),this.$menuToggle.removeAttribute("aria-expanded"),this.$menuToggle.removeAttribute("aria-hidden"),this.$submenus.forEac
11h((t=>{const e=t.previousElementSibling;t.removeAttribute("id"),t.removeAttribute("aria-hidden"),t.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded")})))}addEventListener(t,e,n){void 0===this.evtCallbacks[e]&&(this.evtCallbacks[e]=[]),this.evtCallbacks[e].push({element:t,callback:n}),t.addEventListener(e,n)}removeAllEventListeners(){Object.keys(this.evtCallbacks).forEach((t=>{this.evtCallbacks[t].forEach((({element:e,callback:n})=>{e.removeEventListener(t,n)}))}))}setupMenu(){const t=this.$menu.getAttribute("id"),e=this.$menuToggle.getAttribute("href").replace("#","");this.$menu.dataset.action=this.settings.action,t&&""!==t?(e!==t&&console.warn("10up Navigation: The menu toggle href and menu ID are not equal."),this.$menuToggle.setAttribute("aria-controls",e),this.setMQMenuA11y()):console.error("10up Navigation: Target (menu) must have a valid ID attribute.")}setupSubMenus(){var t;const e=null!=(t=this.$menu.getAttribute("id"))?t:"";this.$submenus.forEach(((t,n)=>{const i=t.previousElementSibling,r=`tenUp-submenu-${e}-${n}`;t.setAttribute("id",r),t.setAttribute("aria-label","Submenu"),i.setAttribute("aria-controls",r),i.setAttribute("aria-haspopup",!0),i.setAttribute("aria-expanded",!1),this.setMQSubbmenuA11y()}))}setupListeners(){this.mq.addListener(this.setMQ),this.addEventListener(this.$menuToggle,"click",this.listenerMenuToggleClick),this.$submenus.forEach((t=>{const e=t.previousElementSibling;"hover"===this.settings.action&&this.addEventListener(e,"focus",this.listenerSubmenuAnchorFocus),this.addEventListener(e,"click",this.listenerSubmenuAnchorClick)})),this.addEventListener(document,"click",this.listenerDocumentClick),this.addEventListener(document,"keyup",this.listenerDocumentKeyup)}setMQ(){this.setMQMenuA11y(),this.setMQSubbmenuA11y()}setMQMenuA11y(){this.mq.matches?(this.$menu.setAttribute("aria-hidden",!1),this.$menuToggle.setAttribute("aria-expanded",!0),this.$menuToggle.setAttribute("aria-hidden",!0)):(this.$menu.setAttribute("aria-hidden",!0),this.$menuToggle.setAttribute("aria-expanded",!1),this.$menuToggle.setAttribute("aria-hidden",!1))}setMQSubbmenuA11y(){this.$submenus.forEach((t=>{t.setAttribute("aria-hidden",!0)}))}openSubmenu(t){const e=t.previousElementSibling;t.setAttribute("aria-hidden",!1),e.setAttribute("aria-expanded",!0),this.settings.onSubmenuOpen&&"function"==typeof this.settings.onSubmenuOpen&&this.settings.onSubmenuOpen.call(this,t)}closeSubmenu(t){const e=t.previousElementSibling,n=t.querySelectorAll('li > .sub-menu[aria-hidden="false"]');t.setAttribute("aria-hidden",!0),e.setAttribute("aria-expanded",!1),n&&this.closeSubmenus(n),this.mq.matches||e.focus(),this.settings.onSubmenuClose&&"function"==typeof this.settings.onSubmenuClose&&this.settings.onSubmenuClose.call(this,t)}closeSubmenus(t){t.forEach((t=>{this.closeSubmenu(t)}))}listenerMenuToggleClick(t){const e="true"===this.$menuToggle.getAttribute("aria-expanded");t.preventDefault(),t.stopPropagation(),e?(this.$menu.setAttribute("aria-hidden",!0),this.$menuToggle.setAttribute("aria-expanded",!1),this.settings.onClose&&"function"==typeof this.settings.onClose&&this.settings.onClose.call()):(this.$menu.setAttribute("aria-hidden",!1),this.$menuToggle.setAttribute("aria-expanded",!0),this.$menu.querySelectorAll("a")[0].focus(),this.settings.onOpen&&"function"==typeof this.settings.onOpen&&this.settings.onOpen.call())}listenerDocumentClick(){const t=this.$menu.querySelectorAll('.sub-menu[aria-hidden="false"]');0!==t.length&&this.closeSubmenus(t)}listenerDocumentKeyup(t){const e=this.$menu.querySelectorAll('.sub-menu[aria-hidden="false"]');0!==e.length&&27===t.keyCode&&(this.closeSubmenus(e),"click"===this.settings.action&&e[0].previousElementSibling.focus())}listenerSubmenuAnchorClick(t){const e=t.target,n=e.nextElementSibling,i="true"===n.getAttribute("aria-hidden");let r=this.$menu.querySelectorAll('.sub-menu[aria-hidden="false"]');r=Array.from(r).filter((t=>!t.contains(e))),this.closeSubmenus(r),"hover"===this.settings.action&&this.mq.matches||(t.preventDefault(),t.stopPropagation(),i?(this.openSubmenu(n),e.setAttribute("aria-expanded",!0)):(this.closeSubmenu(n),e.setAttribute("aria-expanded",!1)))}listenerSubmenuAnchorFocus(t){const e=t.target,n=e.nextElementSibling,i=e.parentNode.parentNode.querySelectorAll(".sub-menu");n&&this.mq.matches&&(this.closeSubmenus(i),this.openSubmenu(n))}}var o=(t,e)=>{const n=document.getElementById(e);if(!n)return;const i=n.closest(".mtm-site-header");if(!i)return;const o=i.querySelector(".mtm-site-header__overlay");if(!o)return;const s=document.documentElement,a=i.querySelector(`.mtm-site-header__offcanvas-menu-container--${t}`);if(!a)return;const u=i.querySelector(`.mtm-site-header__offcanvas-open--${t}`),c=i.querySelector(`.mtm-site-header__offcanvas-close--${t}`);u&&(u.setAttribute("aria-controls",e),u.setAttribute("href",`#${e}`)),c&&(c.setAttribute("aria-controls",e),c.setAttribute("href",`#${e}`));const l=()=>{s.classList.remove("offcanvas-nav--active"),o&&o.classList.remove("mtm-site-header__overlay--active"),u&&(u.setAttribute("aria-expanded","fal
11se"),n.setAttribute("aria-hidden","true"))};(()=>{const t=new r(`#${e}`,{action:"click",breakpoint:"(min-width: 9999px)",onOpen:()=>{s.classList.add("offcanvas-nav--active"),o&&o.classList.add("mtm-site-header__overlay--active"),(()=>{const t="button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])",e=a.querySelectorAll(t);if(!e)return;const n=a.querySelectorAll(t)[0],i=e[e.length-1];n.focus(),i.addEventListener("keydown",(t=>{9!==t.which||t.shiftKey||(t.preventDefault(),n.focus())})),n.addEventListener("keydown",(t=>{9===t.which&&t.shiftKey&&(t.preventDefault(),i.focus())}))})()},onClose:()=>{l()}})})(),document.addEventListener("keydown",(t=>{"Escape"===t.key&&"true"!==u.getAttribute("aria-hidden")&&l()})),o&&o.addEventListener("click",l),c&&c.addEventListener("click",l)};const s=t=>{const e=document.getElementById(t);if(!e)return;const n=e.closest(".mtm-site-header");if(!n)return;const i=e.querySelectorAll(".menu-item-has-children a"),o=n.querySelector(".mtm-site-header__primary-nav-toggle");o.setAttribute("aria-controls",t),o.setAttribute("href",`#${t}`);(()=>{const e=new r(`#${t}`,{action:"click",breakpoint:"(min-width: 782px)",onSubmenuOpen:t=>{i.forEach((e=>{e!==t.target&&e.setAttribute("aria-expanded","false")}))}})})()};var a=n(73317),u=n.n(a),c=n(48821),l=n.n(c);const d=(t,e,n={})=>{t&&e&&l()({...n,el:t,after:e,refreshRate:100})},f=(t=!1)=>{let e=window.location.href;t&&(e+="?copylink=true"),navigator.clipboard.writeText(e)};var m=()=>{const t=document.getElementById("js-mtm-site-header"),e=document.getElementById("js-mtm-site-header-primary-nav");let n;if(!t||!e)return;const i=document.querySelector(".mtm-site-header__logo-utility--main .mtm-site-header__logo-utility-list-item--logo"),r=document.querySelector(".mtm-site-header__logo-utility--main .mtm-site-header__logo-utility-list-item--weather"),a=document.querySelector(".mtm-site-header__logo-utility--main .mtm-site-header__logo-utility-list-item--latest"),c=document.body.classList.contains("home"),f=window.matchMedia("(min-width: 782px)"),m=document.querySelector("#wpadminbar"),h=[{mq:window.matchMedia("(max-width:302px)"),height:0},{mq:window.matchMedia("(min-width:303px) and (max-width: 710px)"),height:100},{mq:window.matchMedia("(min-width:711px) and (max-width: 952px)"),height:90},{mq:window.matchMedia("(min-width:953px) and (max-width: 1182px)"),height:250},{mq:window.matchMedia("(min-width:1183px) and (max-width: 1892px)"),height:250},{mq:window.matchMedia("(min-width:1893px)"),height:350}],p=t=>({offsetTop:t.offsetTop,viewportDistance:Math.round(t.getBoundingClientRect().top),absoluteDistance:Math.round(window.pageYOffset+t.getBoundingClientRect().top),height:t.offsetHeight}),v=e=>{console.count("cloneHeader");let a="js-mtm-site-header-clone",c=document.querySelector("#"+a);c&&c.parentNode.removeChild(c);let d=e.cloneNode(!0);d.querySelectorAll("vf-tray, vf-tray-trigger, .viafoura").forEach((t=>t.remove())),d.id=a,d.setAttribute("aria-hidden","true"),d.classList.add("hidden"),e.before(d);d.querySelectorAll("[id]").forEach((t=>{t.id=t.id?`${t.id}-clone`:null})),s("mtm-primary-menu-list-clone"),o("sections","mtm-offcanvas-menu-list-sections-clone"),o("account","mtm-offcanvas-menu-list-account-clone");const f=document.getElementById("js-mtm-site-header-primary-nav-clone");f&&(d.classList.add("mtm-site-header--primary-nav-fixed"),f.classList.add("mtm-site-header__primary-nav--hidden")),t.classList.add("mtm-site-header--home"),i&&r&&((t,e,n={})=>{t&&e&&l()({...n,el:t,before:e,refreshRate:100})})(i,r),(t=>{const e={logo:t.querySelector(".mtm-site-header__logo-utility-list-item--logo"),newsletter:t.querySelector(".mtm-site-header__logo-utility-list-item--newsletters")};e.newsletter.insertAdjacentElement("afterEnd",e.logo)})(d.querySelector(".mtm-site-header__logo-utility.mtm-site-header__logo-utility--main")),n=new(u())(d,{offset:p(t).absoluteDistance,classes:{initial:"mtm-site-header--clone mtm-site-header--sticky",pinned:"headroom--scrolling-up",unpinned:"headroom--scrolling-down"},onTop(){d.classList.remove("mtm-site-header--slide-in"),d.classList.add("mtm-site-header--slide-out")},onNotTop(){d.classList.remove("mtm-site-header--slide-out"),d.classList.add("mtm-site-header--slide-in")}}),n.init(),d.classList.contains("hidden")&&d.classList.remove("hidden")},g=()=>{t.classList.remove("mtm-site-header--top-bar-hidden")},y=()=>{t.classList.add("mtm-site-header--primary-nav-fixed"),e.classList.add("mtm-site-header__primary-nav--hidden")},b=()=>{e.classList.remove("mtm-site-header__primary-nav--hidden"),t.classList.remove("mtm-site-header--primary-nav-fixed")},w=new(u())(t,{classes:{initial:"mtm-site-header--sticky",pinned:"headroom--scrolling-up",unpinned:"headroom--scrolling-down"},onPin(){g()},onUnpin(){f.matches||t.classList.add("mtm-site-header--top-bar-hidden"),y()},onTop(){b(),g(),document.body.style.paddingTop="0px"},onNotTop(){y(),(()=>{const e=t.offsetHeight;document.body.style.paddingTop=`${e}px`,document.documentElement.style.setProperty("--mtm-site-header-height",`${e}px`)})()}}),S=()=>{const e=m?m.offsetHeight:0,n=p(t);document.documentElement.style.setProperty("--mtm-nav-height",e+t.offsetHeight+"px");try{w.destroy()}catch(t){}c&&f.matches?(t.classList.remove("mtm-site-header--home","mtm-site-header--sticky","mtm-site-header--top-bar-hidden","mtm-site-header--primary-nav-fixed","headroom","headroom--scrolling-up","headroom--scrolling-down","headroom--top","headroom--not-top","headroom--bottom","headroom--not-bottom","headroom--frozen"),v(t)):(i&&a&&d(i,a),w.offset={down:n.absoluteDistance,up:n.absoluteDistance},g(),b(),w.init()),console.log(w)};h.forEach((t=>{t.mq.matches&&S(),t.mq.addEventListener("change",(function(e){e.matches&&(console.log(`Height: ${t.height}`),S())}))})),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push((()=>{window.googletag.pubads().addEventListener("slotOnload",(t=>{"opscoad-1-gpt"===t.slot.getSlotElementId()&&S()}))})),window.mtm_rerenderStickies=S};var h=()=>{const t=document.getElementById("MG2Subscribe"),e=document.getElementById("js-mtm-site-header-main-wrapper");t&&e&&d(t,e,{useMatchMedia:!0,mediaQuery:"(max-width: 781px)"})};var p={COMPONENT:".mtm-toggle-dropdown",POPUP:".mtm-toggle-dropdown__popup",TRIGGER:".mtm-toggle-dropdown__trigger",ALL_DROPDOWNS:[],closeSingleDropdown(t){const e=t.querySelector(this.TRIGGER),n=t.querySelector(this.POPUP);
11e.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true"),this.ALL_DROPDOWNS.forEach((e=>{e.ELEMENT===t&&(e.IS_OPEN=!1)}))},openSingleDropdown(t){const e=t.querySelector(this.TRIGGER),n=t.querySelector(this.POPUP);e.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false"),this.ALL_DROPDOWNS.forEach((e=>{e.ELEMENT===t&&(e.IS_OPEN=!0)}))},toggleSingleDropdown(t){"true"===t.querySelector(this.TRIGGER).getAttribute("aria-expanded")?this.closeSingleDropdown(t):this.openSingleDropdown(t)},initSingleDropdown(t){this.ALL_DROPDOWNS.push({ELEMENT:t,POPUP:t.querySelector(this.POPUP),TRIGGER:t.querySelector(this.TRIGGER),IS_OPEN:"false"===t.querySelector(this.POPUP).getAttribute("aria-hidden")});t.querySelector(this.TRIGGER).addEventListener("click",(e=>{e.preventDefault(),this.toggleSingleDropdown(t)}))},init(){const t=document.querySelectorAll(this.COMPONENT);t.length&&(t.forEach((t=>{this.initSingleDropdown(t)})),document.addEventListener("click",(t=>{this.ALL_DROPDOWNS.forEach((e=>{!e.ELEMENT!==t.target&&e.ELEMENT.closest(this.COMPONENT).contains(t.target)||this.closeSingleDropdown(e.ELEMENT)}))})),document.addEventListener("keydown",(t=>{"Escape"===t.key&&this.ALL_DROPDOWNS.forEach((t=>{this.closeSingleDropdown(t.ELEMENT)}))})),document.addEventListener("keyup",(t=>{if("Tab"===t.key){const{activeElement:t}=document;this.ALL_DROPDOWNS.forEach((e=>{e.ELEMENT.contains(t)||this.closeSingleDropdown(e.ELEMENT)}))}})))}};var v=()=>{const t=()=>{const t=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.setProperty("--html-scrollbar-width",`${t}px`)};t(),window.addEventListener("resize",t),window.addEventListener("click",t)};var g={init(){var t=document.getElementById("mtm-obituaries-search-form-posts-search");const e=[];jQuery("#mtm-obituaries-search-form-posts-search").autocomplete({classes:{"ui-autocomplete":"mtm-obituaries-search-form__autocomplete-container"},source:function(e,n){const i=document.getElementById("mtm-obituaries-search-form-date"),r=document.getElementById("mtm-obituaries-search-form-website"),o=t.value;jQuery.support.cors=!0,jQuery.ajax({url:r.value,contentType:"application/json",type:"get",data:{after:i.value,s:o},crossDomain:!0,success:function(e){console.log(e);const i={},r=[];jQuery.each(e,((t,e)=>{i[e.id]||(i[e.id]=!0,r.push({text:e.text,url:e.url}))})),n(r),t.classList.remove("ui-autocomplete-loading")}})},create:function(){jQuery(this).data("ui-autocomplete")._renderItem=function(t,e){return jQuery("<li>").append(`<a href="${e.url}">${e.text}</a>`).appendTo(t)}},minLength:2,delay:100,select:function(t,n){if(-1===e.indexOf(n.item.id)){const t=new URL(n.item.url),e=/^.*?(?:newspack|staging).*?$/;(/^(?:[a-zA-Z0-9-]+\.)*(?:pressherald|centralmaine|sunjournal)\.com$/.test(t.host)||e.test(t.host))&&(window.location.href=n.item.url)}t.preventDefault()}})}};var y=()=>{const t=document.querySelectorAll(".mtm-article-copy-button");t.length&&t.forEach((function(t){t.addEventListener("click",(function(){f(!0);const e=t.textContent;t.classList.add("copied"),t.textContent="Link Copied!",setTimeout((()=>{t.textContent=e}),2e3)}))}))};const b=":not([inert]):not([inert] *)",w=':not([tabindex^="-"])',S=":not(:disabled)";var E=[`a[href]${b}${w}`,`area[href]${b}${w}`,`input:not([type="hidden"]):not([type="radio"])${b}${w}${S}`,`input[type="radio"]${b}${w}${S}`,`select${b}${w}${S}`,`textarea${b}${w}${S}`,`button${b}${w}${S}`,`details${b} > summary:first-of-type${w}`,`iframe${b}${w}`,`audio[controls]${b}${w}`,`video[controls]${b}${w}`,`[contenteditable]${b}${w}`,`[tabindex]${b}${w}`];function x(t){(t.querySelector("[autofocus]")||t).focus()}function L(t,e){if(e&&A(t))return t;if(function(t){return(!t.shadowRoot||"-1"!==t.getAttribute("tabindex"))&&!t.matches(":disabled,[hidden],[inert]")}(t))if(t.shadowRoot){let n=_(t.shadowRoot,e);for(;n;){const t=L(n,e);if(t)return t;n=k(n,e)}}else if("slot"===t.localName){const n=t.assignedElements({flatten:!0});e||n.reverse();for(const t of n){const n=L(t,e);if(n)return n}}else{let n=_(t,e);for(;n;){const t=L(n,e);if(t)return t;n=k(n,e)}}return!e&&A(t)?t:null}function _(t,e){return e?t.firstElementChild:t.lastElementChild}function k(t,e){return e?t.nextElementSibling:t.previousElementSibling}const A=t=>!t.shadowRoot?.delegatesFocus&&(t.matches(E.join(","))&&!(t=>!(!t.matches("details:not([open]) *")||t.matches("details>summary:first-of-type"))||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))(t));function T(t=document){const e=t.activeElement;return e?e.shadowRoot?T(e.shadowRoot)||document.activeElement:e:null}function C(t,e){const[n,i]=function(t){const e=L(t,!0);return[e,e?L(t,!1)||e:null]}(t);if(!n)return e.preventDefault();const r=T();e.shiftKey&&r===n?(i.focus(),e.preventDefault()):e.shiftKey||r!==i||(n.focus(),e.preventDefault())}function O(t,e){return function e(n){if(!n||n===document||n===window)return null;const i=P(n);return i&&(n=i),n.closest(t)||e(n.getRootNode().host)}(e)}function P(t){return t.assignedSlot||(t.parentNode?P(t.parentNode):null)}const M="data-a11y-dialog";class D{$el;id;previouslyFocused;shown;constructor(t){this.$el=t,this.id=this.$el.getAttribute(M)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(t){if(this.shown)return this;return this.fire("show",t).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=T(),"BODY"===this.previouslyFocused?.tagName&&t?.target&&(this.previouslyFocused=t.target),"focus"===t?.type?this.maintainFocus():x(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(t){if(!this.shown)return this;return this.fire("hide",t).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0)),this}on(t,e,n){return this.$el.addEventListener(t,e,n),this}off(t,e,n){return this.$el.removeEventListener(t,e,n),this}fire(t,e){const n=new CustomEvent(t,{detail:e,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(t){const e=t.composedPath()[0],n=O(`[${M}-show="${this.id}"]`,e),i=O(`[${M}-hide="${this.id}"]`,e),r=O(`[${M}-hide]`,e)&&O('[aria-modal="true"]',e)===this.$el;n&&this.show(t),(i||r)&&this.hide(t)}bindKeypress(t){if(O('[aria-modal="true"]',T())!==this.$el)return;let e=!1;try{e=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==t.key||"alertdialog"===this.$el.getAttribute("role")||e||(t.preventDefault(),this.hide(t)),"Tab"===t.key&&C(this.$el,t)}maintainFocus(){const t=T();O(`[aria-modal="true"], [${M}-ignore-focus-trap]`,t)||x(this.$el)}}function j(){for(const t of document.querySelectorAll("[data-a11y-dialog]"))new D(t)}"undefined"!==typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",j):j());var $=!1;
11if("undefined"!==typeof window){var q={get passive(){$=!0}};window.addEventListener("testPassive",null,q),window.removeEventListener("testPassive",null,q)}var I="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),N=[],R=!1,F=-1,z=void 0,B=void 0,U=void 0,G=function(t){return N.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},H=function(t){var e=t||window.event;return!!G(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},W=function(){void 0!==U&&(document.body.style.paddingRight=U,U=void 0),void 0!==z&&(document.body.style.overflow=z,z=void 0)},Q=function(){if(void 0!==B){var t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);document.body.style.position=B.position,document.body.style.top=B.top,document.body.style.left=B.left,window.scrollTo(e,t),B=void 0}},Y=function(t,e){if(t){if(!N.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};N=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(N),[n]),I?window.requestAnimationFrame((function(){if(void 0===B){B={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,e=t.scrollY,n=t.scrollX,i=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-e,document.body.style.left=-n,setTimeout((function(){return window.requestAnimationFrame((function(){var t=i-window.innerHeight;t&&e>=i&&(document.body.style.top=-(e+t))}))}),300)}})):function(t){if(void 0===U){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(e&&n>0){var i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);U=document.body.style.paddingRight,document.body.style.paddingRight=i+n+"px"}}void 0===z&&(z=document.body.style.overflow,document.body.style.overflow="hidden")}(e),I&&(t.ontouchstart=function(t){1===t.targetTouches.length&&(F=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){var n=t.targetTouches[0].clientY-F;!G(t.target)&&(e&&0===e.scrollTop&&n>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?H(t):t.stopPropagation())}(e,t)},R||(document.addEventListener("touchmove",H,$?{passive:!1}:void 0),R=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")};var K=()=>{const t=document.querySelectorAll(".mtm-dialog-container");t.length&&t.forEach((t=>{const e=new D(t);e.on("show",(()=>Y(t))),e.on("hide",(()=>{var e;(e=t)?(N=N.filter((function(t){return t.targetElement!==e})),I&&(e.ontouchstart=null,e.ontouchmove=null,R&&0===N.length&&(document.removeEventListener("touchmove",H,$?{passive:!1}:void 0),R=!1)),I?Q():W()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}))}))};let V={entitlements:null,details:null};var J={hasCookie:function(){let t=document.cookie.split(/;\s?/).filter((t=>/fp\.user/.test(t)));return!(t.length<1)&&JSON.parse(t[0].split("=")[1])},getDetails:async function(t){return V.details?new Promise(((t,e)=>{t(V.details)})):this.makeRequest("/customers/me/active_access").then((t=>(V.details=t,t)))},getEntitlements:async function(){return V.entitlements?new Promise(((t,e)=>{t(V.entitlements)})):this.makeRequest("/entitlements").then((t=>(V.entitlements=t,t)))},getResponse:async function(){return new Promise(((t,e)=>{fpUserResponse&&t(fpUserResponse),e(!1)}))},getFromResponse:async function(t){return new Promise(((e,n)=>{fpUserResponse.hasOwnPropery(t)&&e(fpUserResponse[t]),n(!1)}))},updateToken:async function(){throw new Error("Not yet implement")},makeRequest:async function(t){let e=this.hasCookie();if(!e)return!1;let n,i=e.access_token,r="https://api.flip-pay.com/v1"+t;/stage\./.test(window.location.hostname)&&(r="https://api.uat.flip-pay.cloud/v1"+t);const o={method:"GET",headers:{"content-type":"application/json",accept:"application/json",authorization:"Bearer "+i}};try{const t=await fetch(r,o);n=await t.json()}catch(t){console.error(t)}return n},makePost:async function(t,e){let n=this.hasCookie();if(!n)return!1;let i=n.access_token,r="https://accounts.flip-pay.cloud"+t;/stage\./.test(window.location.hostname)&&(r="https://accounts.uat.flip-pay.cloud"+t);const o={method:"POST",headers:{"content-type":"application/json",accept:"application/json",authorization:"Bearer "+i},body:JSON.stringify(e)};try{const t=await fetch(r,o);e=await t.json()}catch(t){console.error(t)}return e},reset:()=>{V.entitlements=null,V.details=null}};function X(){const t=document.querySelectorAll("[data-promotional-rotation]");t.length&&t.forEach((t=>function(t){const e=t.getAttribute("data-promotional-config");if(!e)return;let n;try{n=JSON.parse(e)}catch(e){return void Z(t)}tt(function(t){const e=new URLSearchParams;return Object.entries(t).forEach((([t,n])=>{""!==n&&null!==n&&void 0!==n&&("boolean"===typeof n?e.append(t,n?"1":"0"):e.append(t,n))}
11)),`${function(){const t="undefined"!==typeof window&&window.mtmSettings&&window.mtmSettings.restUrl?window.mtmSettings.restUrl:"/wp-json/";return`${t.endsWith("/")?t:`${t}/`}mtm/v1/promotional-articles`}()}?${e.toString()}`}(n),2).then((e=>{if(!e?.items?.length)return void Z(t);const n=t.querySelector("[data-posts]");if(!n)return;const i=n.querySelector("h2.article-section-title"),r=i?i.outerHTML:"",o=e.items.map((t=>t.html)).join("");n.innerHTML=r+o,t.classList.add("mtm-promotional-loaded"),t.classList.remove("mtm-promotional-loading")})).catch((()=>{Z(t)})),t.classList.add("mtm-promotional-loading")}(t)))}function Z(t){t.classList.remove("mtm-promotional-loading"),t.classList.add("mtm-promotional-error"),t.style.display="none"}function tt(t,e){return fetch(t).then((t=>{if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()})).catch((n=>{if(e>0)return tt(t,e-1);throw n}))}function et(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var nt="(prefers-reduced-motion: reduce)",it={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function rt(t){t.length=0}function ot(t,e,n){return Array.prototype.slice.call(t,e,n)}function st(t){return t.bind.apply(t,[null].concat(ot(arguments,1)))}var at=setTimeout,ut=function(){};function ct(t){return requestAnimationFrame(t)}function lt(t,e){return typeof e===t}function dt(t){return!vt(t)&&lt("object",t)}var ft=Array.isArray,mt=st(lt,"function"),ht=st(lt,"string"),pt=st(lt,"undefined");function vt(t){return null===t}function gt(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function yt(t){return ft(t)?t:[t]}function bt(t,e){yt(t).forEach(e)}function wt(t,e){return t.indexOf(e)>-1}function St(t,e){return t.push.apply(t,yt(e)),t}function Et(t,e,n){t&&bt(e,(function(e){e&&t.classList[n?"add":"remove"](e)}))}function xt(t,e){Et(t,ht(e)?e.split(" "):e,!0)}function Lt(t,e){bt(e,t.appendChild.bind(t))}function _t(t,e){bt(t,(function(t){var n=(e||t).parentNode;n&&n.insertBefore(t,e)}))}
11function kt(t,e){return gt(t)&&(t.msMatchesSelector||t.matches).call(t,e)}function At(t,e){var n=t?ot(t.children):[];return e?n.filter((function(t){return kt(t,e)})):n}function Tt(t,e){return e?At(t,e)[0]:t.firstElementChild}var Ct=Object.keys;function Ot(t,e,n){return t&&(n?Ct(t).reverse():Ct(t)).forEach((function(n){"__proto__"!==n&&e(t[n],n)})),t}function Pt(t){return ot(arguments,1).forEach((function(e){Ot(e,(function(n,i){t[i]=e[i]}))})),t}function Mt(t){return ot(arguments,1).forEach((function(e){Ot(e,(function(e,n){ft(e)?t[n]=e.slice():dt(e)?t[n]=Mt({},dt(t[n])?t[n]:{},e):t[n]=e}))})),t}function Dt(t,e){bt(e||Ct(t),(function(e){delete t[e]}))}function jt(t,e){bt(t,(function(t){bt(e,(function(e){t&&t.removeAttribute(e)}))}))}function $t(t,e,n){dt(e)?Ot(e,(function(e,n){$t(t,n,e)})):bt(t,(function(t){vt(n)||""===n?jt(t,e):t.setAttribute(e,String(n))}))}function qt(t,e,n){var i=document.createElement(t);return e&&(ht(e)?xt(i,e):$t(i,e)),n&&Lt(n,i),i}function It(t,e,n){if(pt(n))return getComputedStyle(t)[e];vt(n)||(t.style[e]=""+n)}function Nt(t,e){It(t,"display",e)}function Rt(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function Ft(t,e){return t.getAttribute(e)}function zt(t,e){return t&&t.classList.contains(e)}function Bt(t){return t.getBoundingClientRect()}function Ut(t){bt(t,(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}))}function Gt(t){return Tt((new DOMParser).parseFromString(t,"text/html").body)}function Ht(t,e){t.preventDefault(),e&&(t.stopPropagation(),t.stopImmediatePropagation())}function Wt(t,e){return t&&t.querySelector(e)}function Qt(t,e){return e?ot(t.querySelectorAll(e)):[]}function Yt(t,e){Et(t,e,!1)}function Kt(t){return t.timeStamp}function Vt(t){return ht(t)?t:t?t+"px":""}var Jt="splide",Xt="data-"+Jt;function Zt(t,e){if(!t)throw new Error("["+Jt+"] "+(e||""))}var te=Math.min,ee=Math.max,ne=Math.floor,ie=Math.ceil,re=Math.abs;function oe(t,e,n){return re(t-e)<n}function se(t,e,n,i){var r=te(e,n),o=ee(e,n);return i?r<t&&t<o:r<=t&&t<=o}function ae(t,e,n){var i=te(e,n),r=ee(e,n);return te(ee(i,t),r)}function ue(t){return+(t>0)-+(t<0)}function ce(t,e){return bt(e,(function(e){t=t.replace("%s",""+e)})),t}function le(t){return t<10?"0"+t:""+t}var de={};function fe(t){return""+t+le(de[t]=(de[t]||0)+1)}function me(){var t=[];function e(t,e,n){bt(t,(function(t){t&&bt(e,(function(e){e.split(" ").forEach((function(e){var i=e.split(".");n(t,i[0],i[1])}))}))}))}return{bind:function(n,i,r,o){e(n,i,(function(e,n,i){var s="addEventListener"in e,a=s?e.removeEventListener.bind(e,n,r,o):e.removeListener.bind(e,r);s?e.addEventListener(n,r,o):e.addListener(r),t.push([e,n,i,r,a])}))},unbind:function(n,i,r){e(n,i,(function(e,n,i){t=t.filter((function(t){return!!(t[0]!==e||t[1]!==n||t[2]!==i||r&&t[3]!==r)||(t[4](),!1)}))}))},dispatch:function(t,e,n){var i,r=!0;return"function"===typeof CustomEvent?i=new CustomEvent(e,{bubbles:r,detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,r,!1,n),t.dispatchEvent(i),i},destroy:function(){t.forEach((function(t){t[4]()})),rt(t)}}}var he="mounted",pe="ready",ve="move",ge="moved",ye="click",be="active",we="inactive",Se="visible",Ee="hidden",xe="refresh",Le="updated",_e="resize",ke="resized",Ae="scroll",Te="scrolled",Ce="destroy",Oe="arrows:mounted",Pe="navigation:mounted",Me="autoplay:play",De="autoplay:pause",je="lazyload:loaded",$e="sk",qe="sh",Ie="ei";function Ne(t){var e=t?t.event.bus:document.createDocumentFragment(),n=me();return t&&t.event.on(Ce,n.destroy),Pt(n,{bus:e,on:function(t,i){n.bind(e,yt(t).join(" "),(function(t){i.apply(i,ft(t.detail)?t.detail:[])}))},off:st(n.unbind,e),emit:function(t){n.dispatch(e,t,ot(arguments,1))}})}function Re(t,e,n,i){var r,o,s=Date.now,a=0,u=!0,c=0;function l(){if(!u){if(a=t?te((s()-r)/t,1):1,n&&n(a),a>=1&&(e(),r=s(),i&&++c>=i))return d();o=ct(l)}}function d(){u=!0}function f(){o&&cancelAnimationFrame(o),a=0,o=0,u=!0}return{start:function(e){e||f(),r=s()-(e?a*t:0),u=!1,o=ct(l)},rewind:function(){r=s(),a=0,n&&n(a)},pause:d,cancel:f,set:function(e){t=e},isPaused:function(){return u}}}var Fe="Arrow",ze=Fe+"Left",Be=Fe+"Right",Ue=Fe+"Up",Ge=Fe+"Down",He="ttb",We={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ue,Be],ArrowRight:[Ge,ze]};
11function Qe(t,e,n){return{resolve:function(t,e,i){var r="rtl"!==(i=i||n.direction)||e?i===He?0:-1:1;return We[t]&&We[t][r]||t.replace(/width|left|right/i,(function(t,e){var n=We[t.toLowerCase()][r]||t;return e>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(t){return t*("rtl"===n.direction?1:-1)}}}var Ye="role",Ke="tabindex",Ve="aria-",Je=Ve+"controls",Xe=Ve+"current",Ze=Ve+"selected",tn=Ve+"label",en=Ve+"labelledby",nn=Ve+"hidden",rn=Ve+"orientation",on=Ve+"roledescription",sn=Ve+"live",an=Ve+"busy",un=Ve+"atomic",cn=[Ye,Ke,"disabled",Je,Xe,tn,en,nn,rn,on],ln=Jt+"__",dn="is-",fn=Jt,mn=ln+"track",hn=ln+"list",pn=ln+"slide",vn=pn+"--clone",gn=pn+"__container",yn=ln+"arrows",bn=ln+"arrow",wn=bn+"--prev",Sn=bn+"--next",En=ln+"pagination",xn=En+"__page",Ln=ln+"progress"+"__bar",_n=ln+"toggle",kn=ln+"sr",An=dn+"initialized",Tn=dn+"active",Cn=dn+"prev",On=dn+"next",Pn=dn+"visible",Mn=dn+"loading",Dn=dn+"focus-in",jn=dn+"overflow",$n=[Tn,Pn,Cn,On,Mn,Dn,jn],qn={slide:pn,clone:vn,arrows:yn,arrow:bn,prev:wn,next:Sn,pagination:En,page:xn,spinner:ln+"spinner"};var In="touchstart mousedown",Nn="touchmove mousemove",Rn="touchend touchcancel mouseup click";var Fn="slide",zn="loop",Bn="fade";function Un(t,e,n,i){var r,o=Ne(t),s=o.on,a=o.emit,u=o.bind,c=t.Components,l=t.root,d=t.options,f=d.isNavigation,m=d.updateOnMove,h=d.i18n,p=d.pagination,v=d.slideFocus,g=c.Direction.resolve,y=Ft(i,"style"),b=Ft(i,tn),w=n>-1,S=Tt(i,"."+gn);function E(){var r=t.splides.map((function(t){var n=t.splide.Components.Slides.getAt(e);return n?n.slide.id:""})).join(" ");$t(i,tn,ce(h.slideX,(w?n:e)+1)),$t(i,Je,r),$t(i,Ye,v?"button":""),v&&jt(i,on)}function x(){r||L()}function L(){if(!r){var n=t.index;!function(){var t=_();t!==zt(i,Tn)&&(Et(i,Tn,t),$t(i,Xe,f&&t||""),a(t?be:we,k))}(),function(){var e=function(){if(t.is(Bn))return _();var e=Bt(c.Elements.track),n=Bt(i),r=g("left",!0),o=g("right",!0);
11return ne(e[r])<=ie(n[r])&&ne(n[o])<=ie(e[o])}(),n=!e&&(!_()||w);t.state.is([4,5])||$t(i,nn,n||"");$t(Qt(i,d.focusableNodes||""),Ke,n?-1:""),v&&$t(i,Ke,n?-1:0);e!==zt(i,Pn)&&(Et(i,Pn,e),a(e?Se:Ee,k));if(!e&&document.activeElement===i){var r=c.Slides.getAt(t.index);r&&Rt(r.slide)}}(),Et(i,Cn,e===n-1),Et(i,On,e===n+1)}}function _(){var i=t.index;return i===e||d.cloneStatus&&i===n}var k={index:e,slideIndex:n,slide:i,container:S,isClone:w,mount:function(){w||(i.id=l.id+"-slide"+le(e+1),$t(i,Ye,p?"tabpanel":"group"),$t(i,on,h.slide),$t(i,tn,b||ce(h.slideLabel,[e+1,t.length]))),u(i,"click",st(a,ye,k)),u(i,"keydown",st(a,$e,k)),s([ge,qe,Te],L),s(Pe,E),m&&s(ve,x)},destroy:function(){r=!0,o.destroy(),Yt(i,$n),jt(i,cn),$t(i,"style",y),$t(i,tn,b||"")},update:L,style:function(t,e,n){It(n&&S||i,t,e)},isWithin:function(n,i){var r=re(n-e);return w||!d.rewind&&!t.is(zn)||(r=te(r,t.length-r)),r<=i}};return k}var Gn="http://www.w3.org/2000/svg",Hn="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";var Wn=Xt+"-interval";var Qn={passive:!1,capture:!0};var Yn={Spacebar:" ",Right:Be,Left:ze,Up:Ue,Down:Ge};function Kn(t){return t=ht(t)?t:t.key,Yn[t]||t}var Vn="keydown";var Jn=Xt+"-lazy",Xn=Jn+"-srcset",Zn="["+Jn+"], ["+Xn+"]";var ti=[" ","Enter"];var ei=Object.freeze({__proto__:null,Media:function(t,e,n){var i=t.state,r=n.breakpoints||{},o=n.reducedMotion||{},s=me(),a=[];function u(t){t&&s.destroy()}function c(t,e){var n=matchMedia(e);s.bind(n,"change",l),a.push([t,n])}function l(){var e=i.is(7),r=n.direction,o=a.reduce((function(t,e){return Mt(t,e[1].matches?e[0]:{})}),{});Dt(n),d(o),n.destroy?t.destroy("completely"===n.destroy):e?(u(!0),t.mount()):r!==n.direction&&t.refresh()}function d(e,r,o){Mt(n,e),r&&Mt(Object.getPrototypeOf(n),e),!o&&i.is(1)||t.emit(Le,n)}return{setup:function(){var t="min"===n.mediaQuery;Ct(r).sort((function(e,n){return t?+e-+n:+n-+e})).forEach((function(e){c(r[e],"("+(t?"min":"max")+"-width:"+e+"px)")})),c(o,nt),l()},destroy:u,reduce:function(t){matchMedia(nt).matches&&(t?Mt(n,o):Dt(n,Ct(o)))},set:d}},Direction:Qe,Elements:function(t,e,n){var i,r,o,s=Ne(t),a=s.on,u=s.bind,c=t.root,l=n.i18n,d={},f=[],m=[],h=[];function p(){i=y("."+mn),r=Tt(i,"."+hn),Zt(i&&r,"A track/list element is missing."),St(f,At(r,"."+pn+":not(."+vn+")")),Ot({arrows:yn,pagination:En,prev:wn,next:Sn,bar:Ln,toggle:_n},(function(t,e){d[e]=y("."+t)})),Pt(d,{root:c,track:i,list:r,slides:f}),function(){var t=c.id||fe(Jt),e=n.role;c.id=t,i.id=i.id||t+"-track",r.id=r.id||t+"-list",!Ft(c,Ye)&&"SECTION"!==c.tagName&&e&&$t(c,Ye,e);$t(c,on,l.carousel),$t(r,Ye,"presentation")}(),g()}function v(t){var e=cn.concat("style");rt(f),Yt(c,m),Yt(i,h),jt([i,r],e),jt(c,t?e:["style",on])}function g(){Yt(c,m),Yt(i,h),m=b(fn),h=b(mn),xt(c,m),xt(i,h),$t(c,tn,n.label),$t(c,en,n.labelledby)}function y(t){var e=Wt(c,t);return e&&function(t,e){if(mt(t.closest))return t.closest(e);for(var n=t;n&&1===n.nodeType&&!kt(n,e);)n=n.parentElement;return n}(e,"."+fn)===c?e:void 0}function b(t){return[t+"--"+n.type,t+"--"+n.direction,n.drag&&t+"--draggable",n.isNavigation&&t+"--nav",t===fn&&Tn]}return Pt(d,{setup:p,mount:function(){a(xe,v),a(xe,p),a(Le,g),u(document,In+" keydown",(function(t){o="keydown"===t.type}),{capture:!0}),u(c,"focusin",(function(){Et(c,Dn,!!o)}))},destroy:v})},Slides:function(t,e,n){var i=Ne(t),r=i.on,o=i.emit,s=i.bind,a=e.Elements,u=a.slides,c=a.list,l=[];function d(){u.forEach((function(t,e){m(t,e,-1)}))}function f(){p((function(t){t.destroy()})),rt(l)}function m(e,n,i){var r=Un(t,n,i,e);r.mount(),l.push(r),l.sort((function(t,e){return t.index-e.index}))}function h(t){return t?v((function(t){return!t.isClone})):l}function p(t,e){h(e).forEach(t)}function v(t){return l.filter(mt(t)?t:function(e){return ht(t)?kt(e.slide,t):wt(yt(t),e.index)})}return{mount:function(){d(),r(xe,f),r(xe,d)},destroy:f,update:function(){p((function(t){t.update()}))},register:m,get:h,getIn:function(t){var i=e.Controller,r=i.toIndex(t),o=i.hasFocus()?1:n.perPage;return v((function(t){return se(t.index,r,r+o-1)}))},getAt:function(t){return v(t)[0]},add:function(t,e){bt(t,(function(t){if(ht(t)&&(t=Gt(t)),gt(t)){var i=u[e];i?_t(t,i):Lt(c,t),xt(t,n.classes.slide),function(t,e){var n=Qt(t,"img"),i=n.length;
vendor: 15,613 bytes, line 11
11i?n.forEach((function(t){s(t,"load error",(function(){--i||e()}))})):e()}(t,st(o,_e))}})),o(xe)},remove:function(t){Ut(v(t).map((function(t){return t.slide}))),o(xe)},forEach:p,filter:v,style:function(t,e,n){p((function(i){i.style(t,e,n)}))},getLength:function(t){return t?u.length:l.length},isEnough:function(){return l.length>n.perPage}}},Layout:function(t,e,n){var i,r,o,s=Ne(t),a=s.on,u=s.bind,c=s.emit,l=e.Slides,d=e.Direction.resolve,f=e.Elements,m=f.root,h=f.track,p=f.list,v=l.getAt,g=l.style;function y(){i=n.direction===He,It(m,"maxWidth",Vt(n.width)),It(h,d("paddingLeft"),w(!1)),It(h,d("paddingRight"),w(!0)),b(!0)}function b(t){var e=Bt(m);(t||r.width!==e.width||r.height!==e.height)&&(It(h,"height",function(){var t="";i&&(Zt(t=S(),"height or heightRatio is missing."),t="calc("+t+" - "+w(!1)+" - "+w(!0)+")");return t}()),g(d("marginRight"),Vt(n.gap)),g("width",n.autoWidth?null:Vt(n.fixedWidth)||(i?"":E())),g("height",Vt(n.fixedHeight)||(i?n.autoHeight?null:E():S()),!0),r=e,c(ke),o!==(o=T())&&(Et(m,jn,o),c("overflow",o)))}function w(t){var e=n.padding,i=d(t?"right":"left");return e&&Vt(e[i]||(dt(e)?0:e))||"0px"}function S(){return Vt(n.height||Bt(p).width*n.heightRatio)}function E(){var t=Vt(n.gap);return"calc((100%"+(t&&" + "+t)+")/"+(n.perPage||1)+(t&&" - "+t)+")"}function x(){return Bt(p)[d("width")]}function L(t,e){var n=v(t||0);return n?Bt(n.slide)[d("width")]+(e?0:A()):0}function _(t,e){var n=v(t);if(n){var i=Bt(n.slide)[d("right")],r=Bt(p)[d("left")];return re(i-r)+(e?0:A())}return 0}function k(e){return _(t.length-1)-_(0)+L(0,e)}function A(){var t=v(0);return t&&parseFloat(It(t.slide,d("marginRight")))||0}function T(){return t.is(Bn)||k(!0)>x()}return{mount:function(){y(),u(window,"resize load",function(t,e){var n=Re(e||0,t,null,1);return function(){n.isPaused()&&n.start()}}(st(c,_e))),a([Le,xe],y),a(_e,b)},resize:b,listSize:x,slideSize:L,sliderSize:k,totalSize:_,getPadding:function(t){return parseFloat(It(h,d("padding"+(t?"Right":"Left"))))||0},isOverflow:T}},Clones:function(t,e,n){var i,r=Ne(t),o=r.on,s=e.Elements,a=e.Slides,u=e.Direction.resolve,c=[];function l(){o(xe,d),o([Le,_e],m),(i=h())&&(!function(e){var i=a.get().slice(),r=i.length;if(r){for(;i.length<e;)St(i,i);St(i.slice(-e),i.slice(0,e)).forEach((function(o,u){var l=u<e,d=function(e,i){var r=e.cloneNode(!0);return xt(r,n.classes.clone),r.id=t.root.id+"-clone"+le(i+1),r}(o.slide,u);l?_t(d,i[0].slide):Lt(s.list,d),St(c,d),a.register(d,u-e+(l?0:r),o.index)}))}}(i),e.Layout.resize(!0))}function d(){f(),l()}function f(){Ut(c),rt(c),r.destroy()}function m(){var t=h();i!==t&&(i<t||!t)&&r.emit(xe)}function h(){var i=n.clones;if(t.is(zn)){if(pt(i)){var r=n[u("fixedWidth")]&&e.Layout.slideSize(0);i=r&&ie(Bt(s.track)[u("width")]/r)||n[u("autoWidth")]&&t.length||2*n.perPage}}else i=0;return i}return{mount:l,destroy:f}},Move:function(t,e,n){var i,r=Ne(t),o=r.on,s=r.emit,a=t.state.set,u=e.Layout,c=u.slideSize,l=u.getPadding,d=u.totalSize,f=u.listSize,m=u.sliderSize,h=e.Direction,p=h.resolve,v=h.orient,g=e.Elements,y=g.list,b=g.track;function w(){e.Controller.isBusy()||(e.Scroll.cancel(),S(t.index),e.Slides.update())}function S(t){E(k(t,!0))}function E(n,i){if(!t.is(Bn)){var r=i?n:function(n){if(t.is(zn)){var i=_(n),r=i>e.Controller.getEnd();(i<0||r)&&(n=x(n,r))}return n}(n);It(y,"transform","translate"+p("X")+"("+r+"px)"),n!==r&&s(qe)}}function x(t,e){var n=t-T(e),i=m();return t-=v(i*(ie(re(n)/i)||1))*(e?1:-1)}function L(){E(A(),!0),i.cancel()}function _(t){for(var n=e.Slides.get(),i=0,r=1/0,o=0;o<n.length;o++){var s=n[o].index,a=re(k(s,!0)-t);if(!(a<=r))break;r=a,i=s}return i}function k(e,i){var r=v(d(e-1)-function(t){var e=n.focus;return"center"===e?(f()-c(t,!0))/2:+e*c(t)||0}(e));return i?function(e){n.trimSpace&&t.is(Fn)&&(e=ae(e,0,v(m(!0)-f())));return e}(r):r}function A(){var t=p("left");return Bt(y)[t]-Bt(b)[t]+v(l(!1))}function T(t){return k(t?e.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){i=e.Transition,o([he,ke,Le,xe],w)},move:function(t,e,n,r){t!==e&&function(t){var e=v(x(A(),t));return t?e>=0:e<=y[p("scrollWidth")]-Bt(b)[p("width")]}(t>n)&&(L(),E(x(A(),t>n),!0)),a(4),s(ve,e,n,t),i.start(e,(function(){a(3),s(ge,e,n,t),r&&r()}))},jump:S,translate:E,shift:x,cancel:L,toIndex:_,toPosition:k,getPosition:A,getLimit:T,exceededLimit:function(t,e){e=pt(e)?A():e;var n=!0!==t&&v(e)<v(T(!1)),i=!1!==t&&v(e)>v(T(!0));return n||i},reposition:w}},Controller:function(t,e,n){var i,r,o,s,a=Ne(t),u=a.on,c=a.emit,l=e.Move,d=l.getPosition,f=l.getLimit,m=l.toPosition,h=e.Slides,p=h.isEnough,v=h.getLength,g=n.omitEnd,y=t.is(zn),b=t.is(Fn),w=st(k,!1),S=st(k,!0),E=n.start||0,x=E;function L(){r=v(!0),o=n.perMove,s=n.perPage,i=C();var t=ae(E,0,g?i:r-1);t!==E&&(E=t,l.reposition())}function _(){i!==C()&&c(Ie)}function k(t,e){var n=o||(D()?1:s),r=A(E+n*(t?-1:1),E,!(o||D()));return-1===r&&b&&!oe(d(),f(!t),1)?t?0:i:e?r:T(r)}function A(e,a,u){if(p()||D()){var c=function(e){if(b&&"move"===n.trimSpace&&e!==E)for(var i=d();i===m(e,!0)&&se(e,0,t.length-1,!n.rewind);)e<E?--e:++e;return e}(e);c!==e&&(a=e,e=c,u=!1),e<0||e>i?e=o||!se(0,e,a,!0)&&!se(i,a,e,!0)?y?u?e<0?-(r%s||s):r:e:n.rewind?e<0?i:0:-1:O(P(e)):u&&e!==a&&(e=O(P(a)+(e<a?-1:1)))}else e=-1;return e}function T(t){return y?(t+r)%r||0:t}function C(){for(var t=r-(D()||y&&o?1:s);g&&t-- >0;)if(m(r-1,!0)!==m(t,!0)){t++;break}return ae(t,0,r-1)}function O(t){return ae(D()?t:s*t,0,i)}function P(t){return D()?te(t,i):ne((t>=i?r-1:t)/s)}function M(t){t!==E&&(x=E,E=t)}function D(){return!pt(n.focus)||n.isNavigation}function j(){return t.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){L(),u([Le,xe,Ie],L),u(ke,_)},go:function(t,e,n){if(!j()){var r=function(t){var e=E;if(ht(t)){var n=t.match(/([+\-<>])(\d+)?/)||[],r=n[1],o=n[2];"+"===r||"-"===r?e=A(E+ +(""+r+(+o||1)),E):">"===r?e=o?O(+o):w(!0):"<"===r&&(e=S(!0))}else e=y?t:ae(t,0,i);return e}(t),o=T(r);o>-1&&(e||o!==E)&&(M(o),l.move(r,o,x,n))}},scroll:function(t,n,r,o){e.Scroll.scroll(t,n,r,(function(){var t=T(l.toIndex(d()));M(g?te(t,i):t),o&&o()}))},getNext:w,getPrev:S,getAdjacent:k,getEnd:C,setIndex:M,getIndex:function(t){return t?x:E},toIndex:O,toPage:P,toDest:function(t){var e=l.toIndex(t);return b?ae(e,0,i):e},hasFocus:D,isBusy:j}},Arrows:function(t,e,n){var i,r,o=Ne(t),s=o.on,a=o.bind,u=o.emit,c=n.classes,l=n.i18n,d=e.Elements,f=e.Controller,m=d.arrows,h=d.track,p=m,v=d.prev,g=d.next,y={};function b(){!function(){var t=n.arrows;!t||v&&g||(p=m||qt("div",c.arrows),v=x(!0),g=x(!1),i=!0,Lt(p,[v,g]),!m&&_t(p,h));v&&g&&(Pt(y,{prev:v,next:g}),Nt(p,t?"":"none"),xt(p,r=yn+"--"+n.direction),t&&(s([he,ge,xe,Te,Ie],L),a(g,"click",st(E,">")),a(v,"click",st(E,"<")),L(),$t([v,g],Je,h.id),u(Oe,v,g)))}(),s(Le,w)}function w(){S(),b()}function S(){o.destroy(),Yt(p,r),i?(Ut(m?[v,g]:p),v=g=null):jt([v,g],cn)}function E(t){f.go(t,!0)}function x(t){return Gt('<button class="'+c.arrow+" "+(t?c.prev:c.next)+'" type="button"><svg xmlns="'+Gn+'" viewBox="0 0 '+"40 "+'40" width="'+'40" height="'+'40" focusable="false"><path d="'+(n.arrowPath||Hn)+'" />')}function L(){if(v&&g){var e=t.index,n=f.getPrev(),i=f.getNext(),r=n>-1&&e<n?l.last:l.prev,o=i>-1&&e>i?l.first:l.next;v.disabled=n<0,g.disabled=i<0,$t(v,tn,r),$t(g,tn,o),u("arrows:updated",v,g,n,i)}}return{arrows:y,mount:b,destroy:S,update:L}},Autoplay:function(t,e,n){var i,r,o=Ne(t),s=o.on,a=o.bind,u=o.emit,c=Re(n.interval,t.go.bind(t,">"),(function(t){var e=d.bar;e&&It(e,"width",100*t+"%"),u("autoplay:playing",t)})),l=c.isPaused,d=e.Elements,f=e.Elements,m=f.root,h=f.toggle,p=n.autoplay,v="pause"===p;function g(){l()&&e.Slides.isEnough()&&(c.start(!n.resetProgress),r=i=v=!1,w(),u(Me))}function y(t){void 0===t&&(t=!0),v=!!t,w(),l()||(c.pause(),u(De))}function b(){v||(i||r?y(!1):g())}function w(){h&&(Et(h,Tn,!v),$t(h,tn,n.i18n[v?"play":"pause"]))}function S(t){var i=e.Slides.getAt(t);c.set(i&&+Ft(i.slide,Wn)||n.interval)}return{mount:function(){p&&(!function(){n.pauseOnHover&&a(m,"mouseenter mouseleave",(function(t){i="mouseenter"===t.type,b()}));n.pauseOnFocus&&a(m,"focusin focusout",(function(t){r="focusin"===t.type,b()}));h&&a(h,"click",(function(){v?g():y(!0)}));s([ve,Ae,xe],c.rewind),s(ve,S)}(),h&&$t(h,Je,d.track.id),v||g(),w())},destroy:c.cancel,play:g,pause:y,isPaused:l}},Cover:function(t,e,n){var i=Ne(t).on;function r(t){e.Slides.forEach((function(e){var n=Tt(e.container||e.slide,"img");n&&n.src&&o(t,n,e)}))}function o(t,e,n){n.style("background",t?'center/cover no-repeat url("'+e.src+'")':"",!0),Nt(e,t?"none":"")}return{mount:function(){n.cover&&(i(je,st(o,!0)),i([he,Le,xe],st(r,!0)))},destroy:st(r,!1)}},Scroll:function(t,e,n){var i,r,o=Ne(t),s=o.on,a=o.emit,u=t.state.set,c=e.Move,l=c.getPosition,d=c.getLimit,f=c.exceededLimit,m=c.translate,h=t.is(Fn),p=1;function v(t,n,o,s,d){var m=l();if(b(),o&&(!h||!f())){var v=e.Layout.sliderSize(),w=ue(t)*v*ne(re(t)/v)||0;t=c.toPosition(e.Controller.toDest(t%v))+w}var S=oe(m,t,1);p=1,n=S?0:n||ee(re(t-m)/1.5,800),r=s,i=Re(n,g,st(y,m,t,d),1),u(5),a(Ae),i.start()}function g(){u(3),r&&r(),a(Te)}function y(t,e,i,o){var s=l(),a=t+(e-t)*function(t){var e=n.easingFunc;return e?e(t):1-Math.pow(1-t,4)}(o),u=(a-s)*p;m(s+u),h&&!i&&f()&&(p*=.6,re(u)<10&&v(d(f(!0)),600,!1,r,!0))}function b(){i&&i.cancel()}function w(){i&&!i.isPaused()&&(b(),g())}return{mount:function(){s(ve,b),s([Le,xe],w)},destroy:b,scroll:v,cancel:w}},Drag:function(t,e,n){var i,r,o,s,a,u,c,l,d=Ne(t),f=d.on,m=d.emit,h=d.bind,p=d.unbind,v=t.state,g=e.Move,y=e.Scroll,b=e.Controller,w=e.Elements.track,S=e.Media.reduce,E=e.Direction,x=E.resolve,L=E.orient,_=g.getPosition,k=g.exceededLimit,A=!1;function T(){var t=n.drag;R(!t),s="free"===t}function C(t){if(u=!1,!c){var e=N(t);!function(t){var e=n.noDrag;return!kt(t,"."+xn+", ."+bn)&&(!e||!kt(t,e))}(t.target)||!e&&t.button||(b.isBusy()?Ht(t,!0):(l=e?w:window,a=v.is([4,5]),o=null,h(l,Nn,O,Qn),h(l,Rn,P,Qn),g.cancel(),y.cancel(),D(t)))}}function O(e){if(v.is(6)||(v.set(6),m("drag")),e.cancelable)if(a){g.translate(i+j(e)/(A&&t.is(Fn)?5:1));var r=$(e)>200,o=A!==(A=k());(r||o)&&D(e),u=!0,m("dragging"),Ht(e)}else(function(t){return re(j(t))>re(j(t,!0))})(e)&&(a=function(t){var e=n.dragMinThreshold,i=dt(e),r=i&&e.mouse||0,o=(i?e.touch:+e)||10;return re(j(t))>(N(t)?o:r)}(e),Ht(e))}function P(i){v.is(6)&&(v.set(3),m("dragged")),a&&(!function(i){var r=function(e){if(t.is(zn)||!A){var n=$(e);if(n&&n<200)return j(e)/n}return 0}(i),o=function(t){return _()+ue(t)*te(re(t)*(n.flickPower||600),s?1/0:e.Layout.listSize()*(n.flickMaxPages||1))}(r),a=n.rewind&&n.rewindByDrag;S(!1),s?b.scroll(o,0,n.snap):t.is(Bn)?b.go(L(ue(r))<0?a?"<":"-":a?">":"+"):t.is(Fn)&&A&&a?b.go(k(!0)?">":"<"):b.go(b.toDest(o),!0);S(!0)}(i),Ht(i)),p(l,Nn,O),p(l,Rn,P),a=!1}function M(t){!c&&u&&Ht(t,!0)}function D(t){o=r,r=t,i=_()}function j(t,e){return I(t,e)-I(q(t),e)}function $(t){return Kt(t)-Kt(q(t))}function q(t){return r===t&&o||r}function I(t,e){return(N(t)?t.changedTouches[0]:t)["page"+x(e?"Y":"X")]}function N(t){return"undefined"!==typeof TouchEvent&&t instanceof TouchEvent}function R(t){c=t}return{mount:function(){h(w,Nn,ut,Qn),h(w,Rn,ut,Qn),h(w,In,C,Qn),h(w,"click",M,{capture:!0}),h(w,"dragstart",Ht),f([he,Le],T)},disable:R,isDragging:function(){return a}}},Keyboard:function(t,e,n){var i,r,o=Ne(t),s=o.on,a=o.bind,u=o.unbind,c=t.root,l=e.Direction.resolve;function d(){var t=n.keyboard;t&&(i="global"===t?window:c,a(i,Vn,h))}function f(){u(i,Vn)}function m(){var t=r;r=!0,at((function(){r=t}))}function h(e){if(!r){var n=Kn(e);n===l(ze)?t.go("<"):n===l(Be)&&t.go(">")}}return{mount:function(){d(),s(Le,f),s(Le,d),s(ve,m)},destroy:f,disable:function(t){r=t}}},LazyLoad:function(t,e,n){var i=Ne(t),r=i.on,o=i.off,s=i.bind,a=i.emit,u="sequential"===n.lazyLoad,c=[ge,Te],l=[];function d(){rt(l),e.Slides.forEach((function(t){Qt(t.slide,Zn).forEach((function(e){var i=Ft(e,Jn),r=Ft(e,Xn);if(i!==e.src||r!==e.srcset){var o=n.classes.spinner,s=e.parentElement,a=Tt(s,"."+o)||qt("span",o,s);l.push([e,t,a]),e.src||Nt(e,"none")}}))})),u?p():(o(c),r(c,f),f())}function f(){(l=l.filter((function(e){var i=n.perPage*((n.preloadPages||1)+1)-1;return!e[1].isWithin(t.index,i)||m(e)}))).length||o(c)}function m(t){var e=t[0];xt(t[1].slide,Mn),s(e,"load error",st(h,t)),$t(e,"src",Ft(e,Jn)),$t(e,"srcset",Ft(e,Xn)),jt(e,Jn),jt(e,Xn)}function h(t,e){var n=t[0],i=t[1];Yt(i.slide,Mn),"error"!==e.type&&(Ut(t[2]),Nt(n,""),a(je,n,i),a(_e)),u&&p()}function p(){l.length&&m(l.shift())}return{mount:function(){n.lazyLoad&&(d(),r(xe,d))},destroy:st(rt,l),check:f}},Pagination:function(t,e,n){var i,r,o=Ne(t),s=o.on,a=o.emit,u=o.bind,c=e.Slides,l=e.Elements,d=e.Controller,f=d.hasFocus,m=d.getIndex,h=d.go,p=e.Direction.resolve,v=l.pagination,g=[];function y(){i&&(Ut(v?ot(i.children):i),Yt(i,r),rt(g),i=null),o.destroy()}function b(t){h(">"+t,!0)}function w(t,e){var n=g.length,i=Kn(e),r=S(),o=-1;i===p(Be,!1,r)?o=++t%n:i===p(ze,!1,r)?o=(--t+n)%n:"Home"===i?o=0:"End"===i&&(o=n-1);var s=g[o];s&&(Rt(s.button),h(">"+o),Ht(e,!0))}function S(){return n.paginationDirection||n.direction}function E(t){return g[d.toPage(t)]}function x(){var t=E(m(!0)),e=E(m());if(t){var n=t.button;Yt(n,Tn),jt(n,Ze),$t(n,Ke,-1)}if(e){var r=e.button;xt(r,Tn),$t(r,Ze,!0),$t(r,Ke,"")}a("pagination:updated",{list:i,items:g},t,e)}return{items:g,mount:function e(){y(),s([Le,xe,Ie],e);var o=n.pagination;v&&Nt(v,o?"":"none"),o&&(s([ve,Ae,Te],x),function(){var e=t.length,o=n.classes,s=n.i18n,a=n.perPage,m=f()?d.getEnd()+1:ie(e/a);xt(i=v||qt("ul",o.pagination,l.track.parentElement),r=En+"--"+S()),$t(i,Ye,"tablist"),$t(i,tn,s.select),$t(i,rn,S()===He?"vertical":"");for(var h=0;h<m;h++){var p=qt("li",null,i),y=qt("button",{class:o.page,type:"button"},p),E=c.getIn(h).map((function(t){return t.slide.id})),x=!f()&&a>1?s.pageX:s.slideX;u(y,"click",st(b,h)),n.paginationKeyboard&&u(y,"keydown",st(w,h)),$t(p,Ye,"presentation"),$t(y,Ye,"tab"),$t(y,Je,E.join(" ")),$t(y,tn,ce(x,h+1)),$t(y,Ke,-1),g.push({li:p,button:y,page:h})}}(),x(),a("pagination:mounted",{list:i,items:g},E(t.index)))},destroy:y,getAt:E,update:x}},Sync:function(t,e,n){var i=n.isNavigation,r=n.slideFocus,o=[];function s(){t.splides.forEach((function(e){e.isParent||(u(t,e.splide),u(e.splide,t))})),i&&function(){var e=Ne(t),n=e.on;n(ye,l),n($e,d),n([he,Le],c),o.push(e),e.emit(Pe,t.splides)}()}function a(){o.forEach((function(t){t.destroy()})),rt(o)}function u(t,e){var n=Ne(t);n.on(ve,(function(t,n,i){e.go(e.is(zn)?i:t)})),o.push(n)}function c(){$t(e.Elements.list,rn,n.direction===He?"vertical":"")}function l(e){t.go(e.index)}function d(t,e){wt(ti,Kn(e))&&(l(t),Ht(e))}return{setup:st(e.Media.set,{slideFocus:pt(r)?i:r},!0),mount:s,destroy:a,remount:function(){a(),s()}}},Wheel:function(t,e,n){var i=Ne(t).bind,r=0;function o(i){if(i.cancelable){var o=i.deltaY,s=o<0,a=Kt(i),u=n.wheelMinThreshold||0,c=n.wheelSleep||0;re(o)>u&&a-r>c&&(t.go(s?"<":">"),r=a),function(i){return!n.releaseWheel||t.state.is(4)||-1!==e.Controller.getAdjacent(i)}(s)&&Ht(i)}}return{mount:function(){n.wheel&&i(e.Elements.track,"wheel",o,Qn)}}},Live:function(t,e,n){var i=Ne(t).on,r=e.Elements.track,o=n.live&&!n.isNavigation,s=qt("span",kn),a=Re(90,st(u,!1));function u(t){$t(r,an,t),t?(Lt(r,s),a.start()):(Ut(s),a.cancel())}function c(t){o&&$t(r,sn,t?"off":"polite")}return{mount:function(){o&&(c(!e.Autoplay.isPaused()),$t(r,un,!0),s.textContent="…",i(Me,st(c,!0)),i(De,st(c,!1)),i([ge,Te],st(u,!0)))},disable:c,destroy:function(){jt(r,[sn,un,an]),Ut(s)}}}}),ni={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace
11:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:qn,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function ii(t,e,n){var i=e.Slides;function r(){i.forEach((function(t){t.style("transform","translateX(-"+100*t.index+"%)")}))}return{mount:function(){Ne(t).on([he,xe],r)},start:function(t,e){i.style("transition","opacity "+n.speed+"ms "+n.easing),at(e)},cancel:ut}}function ri(t,e,n){var i,r=e.Move,o=e.Controller,s=e.Scroll,a=e.Elements.list,u=st(It,a,"transition");function c(){u(""),s.cancel()}return{mount:function(){Ne(t).bind(a,"transitionend",(function(t){t.target===a&&i&&(c(),i())}))},start:function(e,a){var c=r.toPosition(e,!0),l=r.getPosition(),d=function(e){var i=n.rewindSpeed;if(t.is(Fn)&&i){var r=o.getIndex(!0),s=o.getEnd();if(0===r&&e>=s||r>=s&&0===e)return i}return n.speed}(e);re(c-l)>=1&&d>=1?n.useScroll?s.scroll(c,d,!1,a):(u("transform "+d+"ms "+n.easing),r.translate(c,!0),i=a):(r.jump(e),a())},cancel:c}}var oi=function(){function t(e,n){this.event=Ne(),this.Components={},this.state=function(t){var e=t;return{set:function(t){e=t},is:function(t){return wt(yt(t),e)}}}(1),this.splides=[],this._o={},this._E={};var i=ht(e)?Wt(document,e):e;Zt(i,i+" is invalid."),this.root=i,n=Mt({label:Ft(i,tn)||"",labelledby:Ft(i,en)||""},ni,t.defaults,n||{});try{Mt(n,JSON.parse(Ft(i,Xt)))}catch(t){Zt(!1,"Invalid JSON")}this._o=Object.create(Mt({},n))}var e,n,i,r=t.prototype;return r.mount=function(t,e){var n=this,i=this.state,r=this.Components;return Zt(i.is([1,7]),"Already mounted!"),i.set(1),this._C=r,this._T=e||this._T||(this.is(Bn)?ii:ri),this._E=t||this._E,Ot(Pt({},ei,this._E,{Transition:this._T}),(function(t,e){var i=t(n,r,n._o);r[e]=i,i.setup&&i.setup()})),Ot(r,(function(t){t.mount&&t.mount()})),this.emit(he),xt(this.root,An),i.set(3),this.emit(pe),this},r.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},r.go=function(t){return this._C.Controller.go(t),this},r.on=function(t,e){return this.event.on(t,e),this},r.off=function(t){return this.event.off(t),this},r.emit=function(t){var e;return(e=this.event).emit.apply(e,[t].concat(ot(arguments,1))),this},r.add=function(t,e){return this._C.Slides.add(t,e),this},r.remove=function(t){return this._C.Slides.remove(t),this},r.is=function(t){return this._o.type===t},r.refresh=function(){return this.emit(xe),this},r.destroy=function(t){void 0===t&&(t=!0);var e=this.event,n=this.state;return n.is(1)?Ne(this).on(pe,this.destroy.bind(this,t)):(Ot(this._C,(function(e){e.destroy&&e.destroy(t)}),!0),e.emit(Ce),e.destroy(),t&&rt(this.splides),n.set(7)),this},e=t,(n=[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&et(e.prototype,n),i&&et(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),si=oi;si.defaults={},si.STATES=it;window.MTMFlipPay=J,window.addEventListener("DOMContentLoaded",(()=>{window.MTM_User_Data=t,o("sections","mtm-offcanvas-menu-list-sections"),o("account","mtm-offcanvas-menu-list-account"),s("mtm-primary-menu-list"),(t=>{const e=document.getElementById(t);if(!e)return;const n=e.querySelectorAll(".menu-item-has-children a");document.addEventListener("click",(t=>{t.target.closest('.sub-menu[aria-hidden="false]')||n.forEach((t=>{t.setAttribute("aria-expanded","false")}))}))})("mtm-primary-menu-list"),h(),m(),(()=>{const t=document.querySelector(".sharedaddy .share-custom-copylink a");t&&t.addEventListener("click",(t=>{t.preventDefault(),f();const e=document.querySelector(".sharedaddy .share-more");if(!e)return;const n=e.innerHTML;e.innerHTML="<span>Link Copied!</span>",setTimeout((()=>{e.innerHTML=n}),2e3)}))})(),(()=>{const t=document.getElementById("mtm-font-resizer");if(!t)return;let e=1,n=t.innerText;const i=document.querySelector(".entry-content");t.addEventListener("click",(r=>{r.preventDefault(),e+=.33,e=Number(e.toFixed(2)),1.99===e&&(n="Reset"),e>1.99&&(e=1,n="Font size +"),t.innerText=n,i.style.fontSize=`${e}em`}))}
11)(),p.init(),v(),g.init(),y(),e.init(),K(),(()=>{const t=document.querySelectorAll(".mtm-gallery-splide");t.length&&t.forEach((t=>{new si(t,{autoHeight:!0,keyboard:!0}).mount()}))})(),X()}))}()}();;
12!function(){const e=document.getElementById("masthead"),t=document.getElementById("search-toggle");if(null!==t){const n=document.getElementById("header-search"),s=n.getElementsByTagName("input")[0],a=t.getElementsByTagName("span")[0],o=a.innerText;t.addEventListener("click",(function(){e.classList.toggle("hide-header-search"),o===a.innerText?(a.innerText=newspackScreenReaderText.close_search,n.setAttribute("aria-expanded","true"),t.setAttribute("aria-expanded","true"),s.focus()):(a.innerText=o,n.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded","false"),t.focus())}),!1)}const n=document.getElementsByClassName("mobile-menu-toggle"),s=document.body,a=document.getElementById("mobile-sidebar-fallback"),o=document.getElementsByClassName("desktop-menu-toggle"),d=document.getElementById("desktop-sidebar-fallback"),c=document.getElementsByClassName("subpage-toggle");function i(e){const t=document.getElementById(e);t.parentNode.removeChild(t)}function l(e,t,n){s.classList.add(e),t.focus(),function(e){const t=document.createElement("div");t.setAttribute("class","overlay-mask"),t.setAttribute("id",e),document.body.appendChild(t)}(n)}function r(e,t,n){s.classList.remove(e),t.focus(),i(n)}for(let t=0;t<n.length;t++){const o=e.querySelector(".mobile-menu-toggle"),d=a.querySelector(".mobile-menu-toggle");n[t].addEventListener("click",(function(){s.classList.contains("mobile-menu-opened")?r("mobile-menu-opened",o,"mask-mobile"):l("mobile-menu-opened",d,"mask-mobile")}),!1)}for(let t=0;t<o.length;t++){const n=e.querySelector(".desktop-menu-toggle"),a=d.querySelector(".desktop-menu-toggle");o[t].addEventListener("click",(function(){s.classList.contains("desktop-menu-opened")?r("desktop-menu-opened",n,"mask-desktop"):l("desktop-menu-opened",a,"mask-desktop")}),!1)}if(0<c.length&&e){const t=document.getElementById("subpage-sidebar-fallback"),n=e.querySelector(".subpage-toggle"),a=t.querySelector(".subpage-toggle");for(let e=0;e<c.length;e++)c[e].addEventListener("click",(function(){s.classList.contains("subpage-menu-opened")?r("subpage-menu-opened",n,"mask-subpage"):l("subpage-menu-opened",a,"mask-subpage")}),!1)}if(document.addEventListener("click",(function(e){if(e.target&&"overlay-mask"===e.target.className){const t=e.target.id,n=t.split("-");s.classList.remove(n[1]+"-menu-opened"),i(t)}})),e){const t=e.getElementsByClassName("submenu-expand");if(0<t.length)for(let e=0;e<t.length;e++){const n=t[e].querySelector("span.screen-reader-text");t[e].addEventListener("click",(function(){t[e].classList.contains("open-dropdown")?(t[e].classList.remove("open-dropdown"),t[e].setAttribute("aria-expanded","false"),n.innerText=newspackScreenReaderText.close_dropdown_menu):(t[e].classList.add("open-dropdown"),t[e].setAttribute("aria-expanded","true"),n.innerText=newspackScreenReaderText.open_dropdown_menu)}),!1)}}if(s.classList.contains("h-stk")&&s.classList.contains("h-sub")&&(s.classList.contains("single-featured-image-behind")||s.classList.contains("single-featured-image-beside"))){let t,n=0;window.onscroll=function(){!function(){const s=window.pageYOffset,a=(new Date).getTime();t||(a-n>300&&(n=a),t=setTimeout((function(){t=null,n=(new Date).getTime()}),100)),200>=s?e.classList.remove("head-scroll"):e.classList.add("head-scroll")}()}}const m=document.getElementById("comments-toggle");if(null!==m){const e=document.getElementById("comments-wrapper"),t=m.getElementsByTagName("span")[0];m.addEventListener("click",(function(){e.classList.contains("comments-hide")?(e.classList.remove("comments-hide"),t.innerText=newspackScreenReaderText.collapse_comments):(e.classList.add("comments-hide"),t.innerText=newspackScreenReaderText.expand_comments)}),!1)}const u=document.getElementById("toggle-order-details");if(null!==u){const e=document.getElementById("order-details-wrapper"),t=u.getElementsByTagName("span")[0],n=newspackScreenReaderText.hide_order_details,s=newspackScreenReaderText.show_order_details;u.addEventListener("click",(function(){e.classList.contains("order-details-hidden")?(e.classList.remove("order-details-hidden"),u.classList.remove("order-details-hidden"),t.innerText=n):(e.classList.add("order-details-hidden"),u.classList.add("order-details-hidden"),t.innerText=s)}),!1)}}();;
13!function(){function e(){const e=document.getElementById("masthead");if(e){const t=e.getElementsByClassName("submenu-expand");if(0<t.length)for(let e=0;e<t.length;e++){const n=t[e].getAttribute("data-toggle-parent-id"),s=t[e].nextElementSibling,i=n.replace("toggle-","submenu-");s.setAttribute("id",i),t[e].setAttribute("aria-controls",i)}}}if(newspackScreenReaderText.is_amp){const t=document.getElementById("site-navigation"),n=document.getElementById("secondary-nav-contain"),s={childList:!0},i=new MutationObserver((t=>{for(const n of t)"childList"===n.type&&(e(),i.disconnect())}
13));t&&i.observe(t,s),n&&i.observe(n,s)}else e()}();;
14;
15document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll("time.entry-date, .comment-meta time");if(t.length<1)return;const e=newspack_relative_time.language_tag||"en-US",n=60*(parseInt(newspack_relative_time.cutoff,10)||14)*60*24,a=new Intl.RelativeTimeFormat(e,{numeric:"auto",style:"long"}),o=new Date;t.forEach((t=>{const r=t.getAttribute("datetime");if(!r)return;const i=new Date(r);if(isNaN(i.getTime()))return;const l=Math.floor((i-o)/1e3);if(Math.abs(l)>n)return;const{value:u,unit:c}=(t=>{const e=Math.abs(t);let n,a;return e<60?(n="second",a=t):e<3600?(n="minute",a=t/60):e<86400?(n="hour",a=t/3600):e<2592e3?(n="day",a=t/86400):e<31536e3?(n="month",a=t/2592e3):(n="year",a=t/31536e3),{value:Math.floor(a),unit:n}})(l);t.textContent=a.format(u,c),t.title||(t.title=i.toLocaleString(e))}))}));;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.