1/*! For license information please see theme-bundle.276.js.LICENSE.txt */ 2(self.webpackChunknature_made_shopify_theme=self.webpackChunknature_made_shopify_theme||[]).push([[276],{2634:()=>{},5251:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(5012),i=n(1262),o=n(3157),a=n(633),c=n(467),s=n(1893),u=n(5456),l=n(1230),d=n(2783),f=n(4243),h=n(7623),p=n(4582),v=n(6845),m=n(513),y=(0,f.V)({name:"autocomplete",connector:!0}),g=n(866),b=n(5222),S=n(3223),w=["page"],k=["page"];function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function x(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}var A=function(e){return e.toLowerCase().replace(/['"\\()\[\].]/g,"").replace(/\./g,"").replace(/\W+/g,"-").replace(/^-+|-+$/g,"")};const O=function(){var e=document.querySelector(".help-center-search-bar:not(.help-center-search-page)"),t=document.querySelector(".help-center-search-results");(e||t)&&(function(){var e,t=function(e){var t=document.querySelector("#help-center-searchbox");if(t){var n=document.createElement("div");n.className="search-error-message",n.setAttribute("role","alert"),n.innerHTML="\n <p>".concat(e,'</p>\n <button type="button" class="search-error-retry">Try Again</button>\n '),t.appendChild(n);var r=n.querySelector(".search-error-retry");r&&r.addEventListener("click",(function(){n.remove(),location.reload()}))}},n=function(){var e=document.querySelector(".help-center-search .ais-SearchBox-form");if(e){e.classList.remove("is-loading");var t=e.querySelector(".ais-SearchBox-input");t&&t.setAttribute("aria-busy","false")}},f=function(){var e=document.querySelector("script[data-help-center-knowledge-hub-blogs]");if(e)try{return JSON.parse(e.textContent)||[]}catch(e){return void console.error("Error parsing care center knowledge hub blogs JSON:",e)}}(),E=(0,a.A)((function(e,t){var n=e.hits,r=e.results,i=e.widgetParams,o=e.showMore,a=e.isLastPage,c=document.querySelector(i.container),s=c.closest(".help-center-search-results"),u=c.querySelector(".ais-InfiniteHits-list"),l=c.querySelector(".ais-InfiniteHits-loadMore"),d=c.querySelector(".no-results-container"),f=null==d?void 0:d.querySelector(".no-result-heading"),h=c.querySelector(".help-center-empty-query-notice");if(t){var p=l.cloneNode(!0);p.addEventListener("click",(function(){o()})),l.replaceWith(p)}a?(l.classList.add("hidden"),c.setAttribute("data-last-page-visible","")):(l.classList.remove("hidden"),c.removeAttribute("data-last-page-visible")),r&&function(e){if(!e||""===e.trim())return u.innerHTML="",l&&l.classList.add("hidden"),d&&d.classList.add("hide"),h&&h.classList.remove("hide"),void(s&&s.classList.remove("hide"));
2u.innerHTML="",n.forEach((function(t){var n,r=document.createElement("li");r.classList.add("ais-InfiniteHits-item");var i=I(t.body_html||""),o=i.length>200?i.substring(0,200)+"...":i,a=(null===(n=O(t))||void 0===n?void 0:n.replaceAll("-"," ").replace("care center","").trim())||t.blog.title;r.innerHTML='\n <div id="'.concat(t.handle,"-").concat(t.__position,'" class="search-result-article help-center-article-card" data-search-query="').concat((0,S.lF)(e||""),'" data-position="').concat(t.__position,'">\n <div class="search-result-icon">\n ').concat(C(t),'\n </div>\n <div class="search-result-content">\n <a href="/blogs/').concat("help-center"==t.blog.handle?"knowledge-hub":t.blog.handle,"/").concat(t.handle,'" class="search-result-title">').concat(t.title,'</a>\n <span class="search-result-category">').concat(a,'</span>\n <p class="search-result-excerpt">').concat(o,"</p>\n </div>\n </div>\n "),u.appendChild(r)})),h&&h.classList.add("hide"),d&&(n.length?d.classList.add("hide"):d.classList.remove("hide"),f&&f.setAttribute("data-search-query",e),s&&s.classList.remove("hide"))}(r.query)})),q=(0,b.A)((function(e,t){var n=e.query,r=e.refine,i=e.clear,o=e.isSearchStalled,a=e.widgetParams;if(null!=a&&a.container){if(t){var c=a.container.querySelector('input[type="search"]'),s=a.container.querySelector("button.ais-SearchBox-reset");c.addEventListener("input",(function(e){r(e.target.value)})),c.addEventListener("focus",(function(){a.container.classList.add("ais-SearchBox--focused")})),c.addEventListener("blur",(function(){a.container.classList.remove("ais-SearchBox--focused")})),s.addEventListener("click",(function(){i(),null==c||c.focus()}))}var u=a.container.querySelector(".ais-SearchBox-input"),l=a.container.querySelector(".search-loading-spinner");u&&(u.value=n),l&&(l.hidden=!o)}else console.warn("Search box container not found")})),O=function(e){return e.tags.find((function(e){return e.includes("help-center")&&"help-center-article"!==e}))},I=function(e){if(!e)return"";e=e.replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"");var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},C=function(e){var t=O(e),n=f&&t?f[A(t)]:null;return n?'<img aria-hidden="true" role="presentation" src="'.concat(n,'" alt="').concat(e.blog.title.replace("Care Center - ",""),' Icon" width="40" height="40">'):' <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.09375 10.4375H15.9062" stroke="#6B6B6E" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8.09375 13.5625H15.9062" stroke="#6B6B6E" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8.09375 16.6875H12.7812" stroke="#6B6B6E" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n <mask id="mask0_19174_5449" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="2" width="20" height="20">\n <path d="M2 2H22V22H2V2Z" fill="white"/>\n </mask>\n <g mask="url(#mask0_19174_5449)">\n <path d="M19.0312 19.6562C19.0312 20.5192 18.3317 21.2187 17.4688 21.2187H6.53125C5.66832 21.2187 4.96875 20.5192 4.96875 19.6562V4.34374C4.96875 3.48081 5.66832 2.78124 6.53125 2.78124H15.9062C17.6321 2.78124 19.0312 4.18034 19.0312 5.90624V19.6562Z" stroke="#6B6B6E" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M19.0312 7.46875V7.46852C19.0312 6.60547 18.3318 5.90625 17.4688 5.90625H15.9062V4.34375C15.9062 3.48082 15.2067 2.78125 14.3438 2.78125" stroke="#6B6B6E" stroke-width="1.2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n </g>\n </svg>'},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.l;return(0,h.t)(e,y()),function(n){var r=n||{},i=r.escapeHTML,o=void 0===i||i,a=r.transformItems,f=void 0===a?function(e){return e}:a,h=r.future,m=(void 0===h?{}
2:h).undefinedEmptyQuery,y=void 0!==m&&m,g={};return{$$type:"ais.autocomplete",init:function(t){var n=t.instantSearchInstance;e((0,u._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:n}),!0)},render:function(t){var n=t.instantSearchInstance,r=this.getWidgetRenderState(t);r.indices.forEach((function(e){(0,e.sendEvent)("view:internal",e.hits)})),e((0,u._)((0,s._)({},r),{instantSearchInstance:n}),!1)},getRenderState:function(e,t){return(0,u._)((0,s._)({},e),{autocomplete:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=this,r=e.helper,i=e.state,a=e.scopedResults,c=e.instantSearchInstance;g.refine||(g.refine=function(e){r.setQuery(e).search()});var h={},m=a.map((function(e){var n;e.results&&(e.results.hits=o?(0,d.S8)(e.results.hits):e.results.hits),h[e.indexId]=(0,l.U0)({instantSearchInstance:c,helper:e.helper,widgetType:t.$$type});var r=e.results?(0,p.P)((0,v.g)(e.results.hits,e.results.page,e.results.hitsPerPage),e.results.queryID):[];return{indexId:e.indexId,indexName:(null===(n=e.results)||void 0===n?void 0:n.index)||"",hits:r,results:e.results||{}}}));return{currentRefinement:y?i.query:i.query||"",indices:f(m).map((function(e){return(0,u._)((0,s._)({},e),{sendEvent:h[e.indexId]})})),refine:g.refine,widgetParams:n}},getWidgetUiState:function(e,t){var n=t.searchParameters,r=y?n.query:n.query||"";return!r||""===r||e&&e.query===r?e:(0,u._)((0,s._)({},e),{query:r})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r={query:y?n.query:n.query||""};return o?e.setQueryParameters((0,s._)({},r,d.FU)):e.setQueryParameters(r)},dispose:function(e){var n=e.state;t();var r=n.setQueryParameter("query",void 0);return o?r.setQueryParameters(Object.keys(d.FU).reduce((function(e,t){return(0,u._)((0,s._)({},e),(0,c._)({},t,void 0))}),{})):r}}}}((function(e,t){var n,r=e.indices,i=e.currentRefinement,o=(e.refine,e.widgetParams);if(!(n=document.querySelector(".help-center-search .ais-SearchBox-input"))||""===n.value.trim()||!r.some((function(e){var t;return(null===(t=e.hits)||void 0===t?void 0:t.length)>0})))return o.container.classList.add("hidden"),void o.container.setAttribute("aria-hidden","true");if(t||!o.container.querySelector("ul")){var a=document.createElement("ul");a.setAttribute("class","autocomplete-list list-unstyled"),a.setAttribute("role","listbox"),o.container.prepend(a)}o.container.querySelector("ul").innerHTML=r.map((function(e){return function(e,t,n){return'\n <li>\n <ol class="autocomplete-sublist list-unstyled">\n '.concat(t.map((function(t,r){var i,o=(null===(i=O(t))||void 0===i?void 0:i.replaceAll("-"," ").replace("care center","").trim())||t.blog.title;return'\n <li id="autocomplete-item-'.concat(e,"-").concat(r,'">\n <div class="autocomplete-article-item help-center-article-card">\n <div class="autocomplete-article-icon">\n ').concat(C(t),'\n </div>\n <div class="autocomplete-article-info">\n <a class="full-unstyled-link" data-search-query="').concat((0,S.lF)(n||""),'" href="/blogs/').concat("help-center"==t.blog.handle?"knowledge-hub":t.blog.handle,"/").concat(t.handle,'">').concat(t.title,'</a>\n <span class="autocomplete-article-type">').concat(o,"</span>\n </div>\n </div>\n </li>\n ")})).join(""),"\n </ol>\n </li>\n ")}(e.indexId,e.hits,i)})).join(""),o.container.classList.remove("hidden"),o.container.setAttribute("aria-hidden","false");var c=document.getElementById("view-all-results-link");c&&(c.href="/pages/help-center-search-results?q=".concat(encodeURIComponent(i)),c.textContent='More Results for "'.concat(i,'"')),function(){var e=o.container,t=document.querySelector(".help-center-search .ais-SearchBox-input"),n=e.querySelectorAll("a");
2if(t&&0!==n.length){var r=n[0],i=n[n.length-1],a=function(o){if("Escape"===o.key)return e.classList.add("hidden"),void t.focus();if("Tab"===o.key&&(o.shiftKey?document.activeElement===r&&(o.preventDefault(),t.focus()):document.activeElement===i&&(o.preventDefault(),t.focus())),"ArrowDown"===o.key)if(o.preventDefault(),document.activeElement===t)r.focus();else{var a=Array.from(n).indexOf(document.activeElement);a<n.length-1&&n[a+1].focus()}if("ArrowUp"===o.key){o.preventDefault();var c=Array.from(n).indexOf(document.activeElement);c>0?n[c-1].focus():0===c&&t.focus()}};e.addEventListener("keydown",a),t.addEventListener("keydown",a)}}()})),j=(0,o.default)(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"shopify_articles",n=(null===(e=new URLSearchParams(window.location.search).get("q"))||void 0===e?void 0:e.replaceAll("-"," "))||"";return{insightsClient:window.aa,indexName:t,searchClient:g.Zq,initialUiState:x({},t,{query:n}),routing:{router:(0,i.A)({createURL:function(e){var n=e.qsModule,r=e.location,i=e.routeState,o=r.origin,a=r.pathname,c=r.hash,s=i[t]||{},u=n.stringify(i);return s.refinementList?"".concat(o).concat(a,"?").concat(u).concat(c):"".concat(o).concat(a).concat(c)}}),stateMapping:{stateToRoute:function(e){var n=e[t];if(n&&n.refinementList&&n.page){var r=e[t],i=(r.page,_(r,w));return L(L({},_(e,[t].map(P))),{},x({},t,L({},i)))}return e},routeToState:function(e){var n=e[t];if(n&&n.refinementList&&n.page){var r=e[t],i=(r.page,_(r,k));return L(L({},_(e,[t].map(P))),{},x({},t,L({},i)))}return e}}}}}()),B=document.querySelector(".help-center-search-results"),M=[(0,r.A)({hitsPerPage:9,clickAnalytics:!0,filters:'blog.title:"Knowledge Hub" OR blog.title:"Help Center"',distinct:!0})];M.push(q({container:document.querySelector("#help-center-searchbox"),queryHook:function(t,r){clearTimeout(e),""!=t?(function(){var e=document.querySelector(".help-center-search .ais-SearchBox-form");if(e){e.classList.add("is-loading");var t=e.querySelector(".ais-SearchBox-input");t&&t.setAttribute("aria-busy","true")}}(),e=setTimeout((function(){r(t),n()}),500)):(n(),r(t))}})),B?M.push(E({container:"#search-articles-list"})):M.push(T({container:document.querySelector("#autocomplete")}
2)),j.addWidgets(M);try{j.start()}catch(e){return console.error("Failed to initialize Algolia search:",e),void t("Search is temporarily unavailable. Please try again later.")}j.on("error",(function(e){console.error("Algolia search error:",e),t("An error occurred while searching. Please try again.")})),j.on("render",function(){!function(){var e=document.querySelector(".help-center-search .ais-SearchBox-input"),t=document.querySelector(".help-center-search .ais-SearchBox-reset");if(e&&t){var n=function(){""===e.value.trim()?t.style.display="none":t.style.display="flex"};n(),e.addEventListener("input",n),new MutationObserver(n).observe(e,{attributes:!0,attributeFilter:["value"]})}}()}.bind(j))}(),function(e){document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector("#help-center-searchbox .ais-SearchBox-form");t&&t.addEventListener("submit",(function(n){if(n.preventDefault(),e){var r=t.querySelector(".ais-SearchBox-input");if(r){var i=r.value.trim();if(i){var o=A(i);window.location.href="/pages/help-center-search-results?q=".concat(encodeURIComponent(o))}}}}))}))}(e))}},1399:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(3157),i=n(5012),o=n(5222),a=n(633),c=n(866);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(){var e=v(),t=e.m(u),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,l(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(u=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new y(e,t)},AsyncIterator:p,async:function(e,t,n,i,a){return(r(t)?h:f)(o(e),t,n,i,a)},keys:d,values:l}})()}function l(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(s(e)+" is not iterable")}function d(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function f(e,t,n,r,i){var o=h(e,t,n,r,i);return o.next().then((function(e){return e.done?e.value:o.next()}))}function h(e,t,n,r,i){return new p(v().w(e,t,n,r),i||Promise)}function p(e,t){function n(r,i,o,a){try{var c=e[r](i),s=c.value;return s instanceof y?t.resolve(s.v).then((function(e){n("next",e,o,a)}),(function(e){n("throw",e,o,a)})):t.resolve(s).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,a)}))}catch(e){a(e)}}var r;this.next||(m(p.prototype),m(p.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),m(this,"_invoke",(function(e,i,o){function a(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function v(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return m(u,"_invoke",function(n,r,i){var o,c,s,u=0,l=i||[],d=!1,f={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function h(n,r){for(c=n,s=r,t=0;!d&&u&&!i&&t<l.length;t++){var i,o=l[t],h=f.p,p=o[2];n>3?(i=p===r)&&(s=o[(c=o[4])?5:(c=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(c=0,f.v=r,f.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,f.n=p,c=0))}if(i||n>1)return a;throw d=!0,r}return function(i,l,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&h(l,p),c=l,s=p;(t=c<2?e:s)||!d;){o||(c?c<3?(c>1&&(f.n=-1),h(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(m(t={},r,(function(){return this})),t),d=u.prototype=c.prototype=Object.create(l);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,m(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,m(d,"constructor",u),m(u,"constructor",s),s.displayName="GeneratorFunction",m(u,i,"GeneratorFunction"),m(d),m(d,i,"Generator"),m(d,r,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(v=function(){return{w:o,m:f}})()}function m(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}m=function(e,t,n,r){function o(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},m(e,t,n,r)}function y(e,t){this.v=e,this.k=t}function g(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,i)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){g(o,r,i,a,c,"next",e)}function c(e){g(o,r,i,a,c,"throw",e)}a(void 0)}))}}var S=function(e,t,n){var r=e.querySelector("svg");if(r){var i=r.outerHTML;r.outerHTML='<span class="feedback '.concat(n,'">').concat(t,"</span>"),setTimeout((function(){var t=e.querySelector("span.feedback");t&&(t.outerHTML=i)}),2e3)}},w=new Set,k=function(){if(window.zoomCampaignSdk){var e=document.querySelector(".help-center-quick-links");if(e){var t,n,r=e.querySelector("#manageOrdersAndIssues");r&&(n=null===(t=window.metafieldGlobalSettings.chat_widget_config.chat_campaign_ids.find((function(e){return e.includes("manage-your-account")})))||void 0===t?void 0:t.split(":").reverse()[0])&&r.addEventListener("click",(function(e){e.stopPropagation();try{document.dispatchEvent(new CustomEvent("zoomChatOpened",{detail:{campaignId:n}}))}catch(e){console.error("Error changing Zoom chat campaign:",e)}}));var i=e.querySelector("#trackYourOrder");i&&function(e){var t,n;if(e){var r=null===(t=window.metafieldGlobalSettings)||void 0===t||null===(t=t.chat_widget_config)||void 0===t?void 0:t.chat_campaign_ids;if(r){var i=null===(n=r.find((function(e){return e.includes("track-your-order")})))||void 0===n?void 0:n.split(":").reverse()[0];if(i){var o=function(){try{document.dispatchEvent(new CustomEvent("zoomChatOpened",{detail:{campaignId:i}}))}catch(e){console.error("Error opening ZVA Track Order flow:",e)}};e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),document.body.hasAttribute("data-chat-enabled")?o():window.addEventListener("zoomCampaignSdk:ready",(function(){return o()}),{once:!0})}))}}}}(i)}}};const E=function(){var e,t,n,s;(s=document.querySelector(".text-for-support"))&&(function(){if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return!1;var e=document.createElement("a");return e.href="sms:","sms:"===e.protocol}()||s.remove(),function(e){var t=e.buttonSelector,n=e.modalId,r=e.closeButtonSelector,i=e.overlaySelector,o=e.displayStyle,a=void 0===o?"flex":o,c=e.transitionProperty,s=void 0===c?"opacity":c,u=document.querySelector(t),l=document.getElementById(n),d=l.querySelectorAll(r),f=document.querySelector(i);if(u&&l){var h=function(){l.classList.remove("show")};u.addEventListener("click",(function(){window.zoomCampaignSdk&&window.zoomCampaignSdk.close(),l.style.display=a,l.offsetHeight,l.classList.add("show")})),l.addEventListener("transitionend",(function(e){e.propertyName!==s||l.classList.contains("show")||(l.style.display="none")})),d.length&&d.forEach((function(e){return e.addEventListener("click",h)})),f&&f.addEventListener("click",h)}}({buttonSelector:".contact-button-text",modalId:"textModal",closeButtonSelector:".text-modal-close",overlaySelector:".text-modal-overlay",displayStyle:"block",transitionProperty:"transform"})),function(){var e,t=document.querySelector(".contact-button-email");if(t){var n=document.getElementById("QSIFeedbackButton-btn"),r=function(){n.addEventListener("click",(function(){document.body.classList.toggle("email-modal-open")}));var e=function(e){var r=document.getElementById("QSIFeedbackButton-target-container"),i=document.body.classList.contains("email-modal-open");r?i&&!r.contains(e.target)&&e.target!==t&&n.click():i&&document.body.classList.remove("email-modal-open")};t.addEventListener("click",(function(t){t.stopPropagation(),window.zoomCampaignSdk&&window.zoomCampaignSdk.close(),n.click(),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";w.has(t)||(w.add(t),document.body.addEventListener("click",(function(n){e(n),w.delete(t)}),{once:!0}))}(e,"email-modal")})),t.disabled=!1};n?r():null!==(e=window.natureMade)&&void 0!==e&&e.waitForElm&&window.natureMade.waitForElm("#QSIFeedbackButton-btn").then((function(e){n=e,r()}))}}(),document.querySelectorAll(".copy-phone-button, .copy-phone-button-modal").forEach((function(e){e.dataset.listenerAttached||(e.dataset.listenerAttached="true",e.addEventListener("click",b(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.dataset.phone,e.prev=1,e.next=4,navigator.clipboard.writeText(t);case 4:S(this,"Copied!","feedback-success"),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(1),console.error("Failed to copy phone number:",e.t0),S(this,"Failed","feedback-error");case 11:case"end":return e.stop()}}),e,this,[[1,7]])})))))})),(n=document.getElementById("careCenterChat"))&&window.addEventListener("zoomCampaignSdk:ready",(function(){window.zoomCampaignSdk&&(n.disabled=!1,n.addEventListener("click",(function(e){e.stopPropagation(),document.dispatchEvent(new CustomEvent("zoomChatOpened"))})),window.zoomCampaignSdk.on("open",(function(e){var t,n;t=document.getElementById("QSIFeedbackButton-btn"),n=document.body.classList.contains("email-modal-open"),t&&n&&t.click()})),k())})),(t=document.querySelectorAll(".trending-question-expandable")).length&&t.forEach((function(e){e.addEventListener("toggle",(function(){if(e.open){t.forEach((function(t){t!==e&&t.open&&(t.open=!1)}));var n=e.querySelector(".trending-question-content");n&&(n.setAttribute("tabindex","-1"),n.focus(),n.addEventListener("blur",(function(){n.removeAttribute("tabindex")}),{once:!0}))}}));var n=e.querySelector(".trending-question-summary");n&&n.addEventListener("keydown",(function(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),e.open=!e.open)})),e.querySelectorAll("a:not(.read-full-article-link)").forEach((function(t){var n;t.setAttribute("data-question-id",null===(n=e.dataset)||void 0===n?void 0:n.questionId),t.setAttribute("data-link-text",t.textContent.trim()),t.setAttribute("data-link-type",function(e){var t;try{e=(t=new URL(e,window.location.origin)).pathname}catch(t){console.warn("Invalid URL:",e,t)}if(t)switch(!0){case t.pathname.includes("/policies/")||t.pathname.includes("/policy/"):return"policy";case t.pathname.includes("/collections/"):return"ingredient";case t.pathname.includes("/products/"):return"pdp";case t.pathname.includes("/blogs/")&&t.pathname.split("/").length>3:return"article";case t.host!==window.location.host:return"external";default:return"other"}}(t.href))}))})),function(){if(document.querySelector(".help-center-blog")){var e=document.getElementById("helpCenterSearchModal"),t=document.querySelector(".mobile-search-trigger"),n=document.querySelector(".search-modal-close"),r=document.querySelector(".search-modal-overlay"),i=document.getElementById("desktopSearchContainer"),o=document.getElementById("mobileSearchContainer");
2if(e&&t&&i&&o){var a,c=null,s="desktop",u=function(){var e=(c||(c=i.querySelector(".search-bar-container")),c);if(e){var t=window.innerWidth<750,n=t?o:i;(t&&"desktop"===s||!t&&"mobile"===s)&&!n.contains(e)&&(n.appendChild(e),s=t?"mobile":"desktop")}};!function e(){document.querySelector("#help-center-searchbox")?u():setTimeout(e,100)}();var l=function(){e.classList.remove("is-open"),document.body.style.overflow=""};t.addEventListener("click",(function(){u(),e.classList.add("is-open"),document.body.style.overflow="hidden",setTimeout((function(){var e=o.querySelector(".ais-SearchBox-input");e&&e.focus()}),100)})),n.addEventListener("click",l),r.addEventListener("click",l),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e.classList.contains("is-open")&&l()})),window.addEventListener("resize",(function(){clearTimeout(a),a=setTimeout((function(){window.innerWidth>=750&&e.classList.contains("is-open")&&l(),u()}),250)}))}}}(),function(){function e(){var e=document.querySelector("#nm-header");if(e){var t=e.offsetHeight;document.documentElement.style.setProperty("--header-height","".concat(t,"px"))}}var t;e(),window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout(e,100)}))}(),function(){var e=document.querySelector(".find-supplements-section");if(e){var t=e.querySelector(".find-by-benefits-section"),n=e.querySelector(".find-by-ingredients-section"),s=function(e){e&&(e.classList.add("is-visible"),e.offsetHeight,e.classList.add("is-animating"))},u=function(e){e&&e.classList.remove("is-visible","is-animating")},l=function(e){"benefits"===e?(u(n),s(t)):"ingredients"===e&&(u(t),s(n))};document.addEventListener("DOMContentLoaded",(function(){var e=new URLSearchParams(window.location.search).get("section");e&&(document.body.dataset.activeFindSupplementsSection=e,l(e))})),e.querySelectorAll(".find-supplement-toggle-button").forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.showSection;if(t){var n=new URL(window.location.href);n.searchParams.set("section",t),window.history.pushState({},"",n),document.body.dataset.activeFindSupplementsSection=t,l(t)}}))})),document.querySelector(".ingredients-search-box-container")&&function(){var e=null,t=(0,o.A)((function(t,n){var r=t.query,i=t.refine,o=t.clear,a=t.isSearchStalled,c=t.widgetParams;if(null!=c&&c.container){if(n){var s=c.container.querySelector('input[type="search"]'),u=c.container.querySelector(".ais-SearchBox-reset"),l=c.container.querySelector("form");if(s){var d=window.debounce((function(t){i(t.target.value),e&&clearTimeout(e),e=setTimeout((function(){t.target.setAttribute("data-search-query",t.target.value),document.dispatchEvent(new CustomEvent("gTagging_user_action",{detail:{target:t.target}}))}),3e3)}),200);s.addEventListener("input",d)}u&&u.addEventListener("click",(function(){o()})),null==l||l.addEventListener("submit",(function(e){e.preventDefault()}))}var f=c.container.querySelector(".search-loading-spinner"),h=c.container.querySelector(".ais-SearchBox-reset");f&&(f.hidden=!a),h&&(h.style.display=r.trim()?"flex":"none")}else console.warn("Ingredients search box container not found")})),n=(0,a.A)((function(e,t){var n=e.hits,r=e.results,i=e.widgetParams,o=e.showMore,a=e.isLastPage,c=document.querySelector(i.container);if(c){var s=c.querySelector(".ingredients-hits-list"),u=c.querySelector(".ingredients-load-more"),l=c.querySelector(".ingredients-no-results");t&&(s||((s=document.createElement("ul")).className="ingredients-hits-list list-unstyled",c.appendChild(s)),l||((l=document.createElement("div")).className="ingredients-no-results hidden",l.innerHTML="<p>No results found. Try a different search term.</p>",c.appendChild(l)),u||((u=document.createElement("button")).innerHTML='\n <svg class="view-more" aria-hidden="true" focusable="false" role="presentation">\n <use href="#icon-plus-view-more"></use>\n </svg>\n <span class="styled-link-primary">VIEW MORE</span>\n ',u.className="ais-InfiniteHits-loadMore ingredients-load-more hidden",u.setAttribute("type","button"),c.appendChild(u)),u.addEventListener("click",(function(){o()}))),s=c.querySelector(".ingredients-hits-list"),u=c.querySelector(".ingredients-load-more"),l=c.querySelector(".ingredients-no-results"),r&&(s.innerHTML=n.map((function(e){return'\n <li class="ingredients-hit-item">\n <div class="ingredients-hit-card" data-option-type="ingredient" data-option-value="'.concat(e.title||"",'">\n <div class="ingredients-hit-name">\n <a class="full-unstyled-link ingredients-hit-link" href="/collections/').concat(e.handle||"#",'">\n ').concat(e.title||"","\n </a>\n </div>\n </div>\n </li>\n ")})).join(""),0===n.length&&r.query?(l.classList.remove("hidden"),u.classList.add("hidden")):(l.classList.add("hidden"),u.classList.remove("hidden")),a||0===n.length?u.classList.add("hidden"):u.classList.remove("hidden"))}else console.warn("Ingredients infinite hits container not found")})),s=(0,r.default)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"shopify_collections_title_a_z";return{insightsClient:window.aa,indexName:e,searchClient:c.Zq}}()),u=[(0,i.A)({hitsPerPage:12,clickAnalytics:!0,filters:"meta.filter.is_ingredient:true"}),t({container:document.querySelector(".ingredients-search-box-container")}),n({container:".ingredients-infinite-hits-container"})];s.addWidgets(u);try{s.start()}catch(e){console.error("Failed to initialize Algolia ingredients search:",e)}s.on("error",(function(e){console.error("Algolia ingredients search error:",e)}))}()}}(),(e=document.querySelector(".article-content"))&&window.natureMade&&window.natureMade.linkifyURLs&&window.natureMade.linkifyURLs(e,{openInNewTab:!0,rel:"noopener noreferrer"})}},866:(e,t,n)=>{"use strict";n.d(t,{FC:()=>f,Zq:()=>l});var r,i,o=n(9994),a=n(3223);window.searchCardConfig;var c=null===(r=window.algoliaShopify)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.app_id,s=null===(i=window.algoliaShopify)||void 0===i||null===(i=i.config)||void 0===i?void 0:i.search_api_key,u=((0,a.lF)(new URLSearchParams(window.location.search).get("q")||""),c&&s?(0,o.w)(c,s):null),l={appId:c,apiKey:s,search:function(e){if(!u)return Promise.resolve({results:[]});var t=e.map((function(e){return e.params.query&&0!==e.params.query.length?(e.params.analytics=!0,e.params.clickAnalytics=!0,e.params.userToken=window.user_id
2):e.params.analytics=!1,e}));return u.search(t)}},d=(new Map,function(e,t){t?(e.removeAttribute("disabled"),e.setAttribute("aria-hidden",!1)):(e.setAttribute("disabled",!0),e.setAttribute("aria-hidden",!0)),e.style.opacity=t?1:0,e.style.visibility=t?"visible":"hidden"}),f=function(e,t,n,r,i,o){if(!e)throw new Error("Please make sure to provide a valid value for glideInstance, recieved ".concat(e));if(!t)throw new Error("Please make sure to provide a valid value for totalSlides, recieved ".concat(t));if(!n)throw new Error("Please make sure to provide a valid value for leftArrow, recieved ".concat(n));if(!r)throw new Error("Please make sure to provide a valid value for rightArrow, recieved ".concat(r));d(n,0!==e.index);var a=e.index,c=e.settings.perView;d(r,t>1&&a+c<t),e.on(["move","resize"],(function(){var i=e.index,o=e.settings.perView,a=t>1&&i+o<t;d(n,i>0),d(r,a)})),i||o&&o.forEach((function(t){t.addEventListener("click",(function(){if(t.hasAttribute("data-media-id")){var n,r=t.closest("li"),i=Array.from(null===(n=t.closest(".product-thumbnails"))||void 0===n?void 0:n.querySelectorAll(".glide__slide:not(.hide)")).indexOf(r);e.go("="+i)}else e.go("="+t.dataset.glideIndex),e.update({startAt:t.dataset.glideIndex})}))}))}},633:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(467),i=n(1893),o=n(5456),a=n(8001),c=n(9098),s=n(4677);function u(e,t){t(e),e.getWidgets().forEach((function(e){(0,s.l)(e)&&u(e,t)}))}function l(e){return"ais.dynamicWidgets"===e.$$type||"ais.feeds"===e.$$type}var d=n(4243),f=n(7623),h=n(1230),p=n(2783),v=n(6845),m=n(4582),y=n(513),g=n(3453),b=(0,d.V)({name:"infinite-hits",connector:!0});function S(e){var t=e||{};return t.page,(0,a._)(t,["page"])}function w(e){var t=e||{};return t.clickAnalytics,t.userToken,(0,a._)(t,["clickAnalytics","userToken"])}var k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.l;return(0,f.t)(e,b()),function(n){var a,s,d,f,y,b,k=n||{},E=k.escapeHTML,q=void 0===E||E,L=k.transformItems,_=void 0===L?function(e){return e}
2:L,x=k.cache,P=void 0===x?(a=null,s=null,{read:function(e){var t=e.state;return(0,g.n)(s,S(t))?a:null},write:function(e){var t=e.state,n=e.hits;s=S(t),a=n}}):x,A=function(e,t){var n,r=e.page,i=void 0===r?0:r,o=Object.keys(t).map(Number);return 0===o.length?i:(n=Math).min.apply(n,[i].concat((0,c._)(o)))},O=function(e,t){var n,r=e.page,i=void 0===r?0:r,o=Object.keys(t).map(Number);return 0===o.length?i:(n=Math).max.apply(n,[i].concat((0,c._)(o)))};return{$$type:"ais.infiniteHits",init:function(t){e((0,o._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var n=t.instantSearchInstance,r=this.getWidgetRenderState(t);e((0,o._)((0,i._)({},r),{instantSearchInstance:n}),!1),y("view:internal",r.currentPageHits)},getRenderState:function(e,t){return(0,o._)((0,i._)({},e),{infiniteHits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,r,a,c,s=e.results,g=e.helper,S=e.parent,k=e.state,E=e.instantSearchInstance,L=function(){var e=S.getPreviousState()||k;return P.read({state:w(e)})||{}},x=[],I=S.getPreviousState()||k,C=L(),T=null==s||null===(a=s.renderingContent)||void 0===a||null===(r=a.widgets)||void 0===r||null===(t=r.banners)||void 0===t?void 0:t[0];if(d||(d=function(){return function(e,t){return function(){var n=t();e.overrideStateWithoutTriggeringChangeEvent((0,o._)((0,i._)({},e.state),{page:A(e.state,n)-1})).searchWithoutTriggeringOnStateChange()}}(g,L)()},f=function(){return function(e,t){return function(){var n=t();e.setPage(O(e.state,n)+1).search()}}(g,L)()}),y||(y=(0,h.U0)({instantSearchInstance:E,helper:g,widgetType:this.$$type}),b=(0,h.Zp)({helper:g,widgetType:this.$$type,instantSearchInstance:E})),s){var j,B,M=I.page,R=void 0===M?0:M;q&&s.hits.length>0&&(s.hits=(0,p.S8)(s.hits));var H=(0,v.g)(s.hits,s.page,s.hitsPerPage),F=(0,m.P)(H,s.queryID),N=_(F,{results:s}),U=!1;u(E.mainIndex,(function(e){!U&&e.getWidgets().some(l)&&(U=!0)}));var W=!(null===(j=I.disjunctiveFacets)||void 0===j?void 0:j.length)&&!(I.facets||[]).filter((function(e){return"*"!==e})).length&&!(null===(B=I.hierarchicalFacets)||void 0===B?void 0:B.length);void 0!==C[R]||s.__isArtificial||"idle"!==E.status||U&&W||(C[R]=N,P.write({state:w(I),hits:C})),x=N,c=0===A(I,C)}else c=void 0===I.page||0===A(I,C);var z=function(e){return Object.keys(e).map(Number).sort((function(e,t){return e-t})).reduce((function(t,n){return t.concat(e[n])}),[])}(C),D=!s||s.nbPages<=O(I,C)+1;return{hits:z,items:z,currentPageHits:x,sendEvent:y,bindEvent:b,banner:T,results:s||void 0,showPrevious:d,showMore:f,isFirstPage:c,isLastPage:D,widgetParams:n}},dispose:function(e){var n=e.state;t();var a=n.setQueryParameter("page",void 0);return q?a.setQueryParameters(Object.keys(p.FU).reduce((function(e,t){return(0,o._)((0,i._)({},e),(0,r._)({},t,void 0))}),{})):a},getWidgetUiState:function(e,t){var n=t.searchParameters.page||0;return n?(0,o._)((0,i._)({},e),{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e;q&&(r=e.setQueryParameters(p.FU));var i=n.page?n.page-1:0;return r.setQueryParameter("page",i)}}}}},2783:(e,t,n)=>{"use strict";n.d(t,{FU:()=>l,S8:()=>h});var r=n(467),i=n(595),o=n(561),a=n(1893),c=n(5456),s=n(8454),u=n(1810),l={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},d={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function f(e){return(0,u.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce((function(t,n){return(0,c._)((0,a._)({},t),(0,r._)({},n,f(e[n])))}),{}):Array.isArray(e)?e.map(f):(0,c._)((0,a._)({},e),{value:(t=e.value,(0,s.i)(t).replace(new RegExp(l.highlightPreTag,"g"),d.highlightPreTag).replace(new RegExp(l.highlightPostTag,"g"),d.highlightPostTag))});var t}function h(e){return void 0===e.__escaped&&((e=e.map((function(e){(0,o._)(e);var t=(0,i._)({},e);return t._highlightResult&&(t._highlightResult=f(t._highlightResult)),t._snippetResult&&(t._snippetResult=f(t._snippetResult)),t}))).__escaped=!0),e}},8454:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r={"&":"&","<":"<",">":">",'"':""","'":"'"},i=/[&<>"']/g,o=RegExp(i.source);function a(e){return e&&o.test(e)?e.replace(i,(function(e){return r[e]})):e}RegExp(/&(amp|quot|lt|gt|#39);/g.source)},3453:(e,t,n)=>{"use strict";function r(e){return e!==Object(e)}function i(e,t){if(e===t)return!0;
2if(r(e)||r(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;var n=!0,o=!1,a=void 0;try{for(var c,s=Object.keys(e)[Symbol.iterator]();!(n=(c=s.next()).done);n=!0){var u=c.value;if(!(u in t))return!1;if(!i(e[u],t[u]))return!1}}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return!0}n.d(t,{n:()=>i})},4677:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=["ais.index","ais.feedContainer"];function i(e){return r.includes(e.$$type)}}}]);
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.