{"version":3,"file":"main.0.18.1.js","sources":["webpack:///main.0.18.1.js"],"sourcesContent":["!function(e){function t(t){for(var r,n,a=t[0],i=t[1],c=0,s=[];c<a.length;c++)n=a[c],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&s.push(o[n][0]),o[n]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(u&&u(t);s.length;)s.shift()()}var r={},n={7:0},o={7:0};function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[];n[e]?t.push(n[e]):0!==n[e]&&{6:1}[e]&&t.push(n[e]=new Promise((function(t,r){for(var o=({0:\"IO\",6:\"loadComments\",9:\"sw\",10:\"vendors_loadComments\"}[e]||e)+\".0.18.1.css\",i=a.p+o,c=document.getElementsByTagName(\"link\"),s=0;s<c.length;s++){var u=(f=c[s]).getAttribute(\"data-href\")||f.getAttribute(\"href\");if(\"stylesheet\"===f.rel&&(u===o||u===i))return t()}var l=document.getElementsByTagName(\"style\");for(s=0;s<l.length;s++){var f;if((u=(f=l[s]).getAttribute(\"data-href\"))===o||u===i)return t()}var d=document.createElement(\"link\");d.rel=\"stylesheet\",d.type=\"text/css\",d.onload=t,d.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error(\"Loading CSS chunk \"+e+\" failed.\\n(\"+o+\")\");a.request=o,delete n[e],d.parentNode.removeChild(d),r(a)},d.href=i,document.getElementsByTagName(\"head\")[0].appendChild(d)})).then((function(){n[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=i);var c,s=document.createElement(\"script\");s.charset=\"utf-8\",s.timeout=120,a.nc&&s.setAttribute(\"nonce\",a.nc),s.src=function(e){return a.p+\"\"+({0:\"IO\",6:\"loadComments\",9:\"sw\",10:\"vendors_loadComments\"}[e]||e)+\".0.18.1.js\"}(e);var u=new Error;c=function(t){s.onerror=s.onload=null,clearTimeout(l);var r=o[e];if(0!==r){if(r){var n=t&&(\"load\"===t.type?\"missing\":t.type),a=t&&t.target&&t.target.src;u.message=\"Loading chunk \"+e+\" failed.\\n(\"+n+\": \"+a+\")\",u.name=\"ChunkLoadError\",u.type=n,u.request=a,r[1](u)}o[e]=void 0}};var l=setTimeout((function(){c({type:\"timeout\",target:s})}),12e4);s.onerror=s.onload=c,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,\"a\",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p=\"/wp-content/themes/mediavine-trellis/assets/dist/\",a.oe=function(e){throw console.error(e),e};var i=window.mvtrellisJsonp=window.mvtrellisJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var u=c;a(a.s=28)}({0:function(e,t,r){e.exports=r(2)},1:function(e,t){function r(e,t,r,n,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,\"next\",e)}function s(e){r(i,o,a,c,s,\"throw\",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},10:function(e,t){var r=document.getElementsByClassName(\"search-toggle\"),n=document.getElementsByClassName(\"search-close\");function o(e){e.preventDefault();var t=document.getElementById(\"search-container\");t.classList.contains(\"search-open\")||(t.classList.add(\"search-open\"),t.querySelector(\".search-field\").focus())}function a(e){e.preventDefault(),document.getElementById(\"search-container\").classList.contains(\"search-open\")&&document.getElementById(\"search-container\").classList.remove(\"search-open\")}Array.from(r).forEach((function(e){e.addEventListener(\"click\",o)})),Array.from(n).forEach((function(e){e.addEventListener(\"click\",a)}))},11:function(e,t){!function(e,t){var r=!1,n=!1;function o(){if(!n){n=!0;var e,r,o,a,i=-1!==navigator.appVersion.indexOf(\"MSIE 10\"),c=!!navigator.userAgent.match(/Trident.*rv:11\\./),s=t.querySelectorAll(\"iframe.wp-embedded-content\");for(r=0;r<s.length;r++)(o=s[r]).getAttribute(\"data-secret\")||(a=Math.random().toString(36).substr(2,10),o.src+=\"#?secret=\".concat(a),o.setAttribute(\"data-secret\",a)),(i||c)&&((e=o.cloneNode(!0)).removeAttribute(\"security\"),o.parentNode.replaceChild(e,o))}}t.querySelector&&e.addEventListener&&(r=!0),e.wp=e.wp||{},e.wp.receiveEmbedMessage||(e.wp.receiveEmbedMessage=function(r){var n=r.data;if(n&&(n.secret||n.message||n.value)&&!/[^a-zA-Z0-9]/.test(n.secret)){var o,a,i,c,s,u=t.querySelectorAll('iframe[data-secret=\"'.concat(n.secret,'\"]')),l=t.querySelectorAll('blockquote[data-secret=\"'.concat(n.secret,'\"]'));for(o=0;o<l.length;o++)l[o].style.display=\"none\";for(o=0;o<u.length;o++)a=u[o],r.source===a.contentWindow&&(a.removeAttribute(\"style\"),\"height\"===n.message&&((i=parseInt(n.value,10))>1e3?i=1e3:~~i<200&&(i=200),a.height=i),\"link\"===n.message&&(c=t.createElement(\"a\"),s=t.createElement(\"a\"),c.href=a.getAttribute(\"src\"),s.href=n.value,s.host===c.host&&t.activeElement===a&&(e.top.location.href=n.value)))}},r&&(e.addEventListener(\"message\",e.wp.receiveEmbedMessage,!1),t.addEventListener(\"DOMContentLoaded\",o,!1),e.addEventListener(\"load\",o,!1)))}(window,document)},2:function(e,t,r){var n=function(e){\"use strict\";var t=Object.prototype,r=t.hasOwnProperty,n=\"function\"==typeof Symbol?Symbol:{},o=n.iterator||\"@@iterator\",a=n.asyncIterator||\"@@asyncIterator\",i=n.toStringTag||\"@@toStringTag\";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},\"\")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),i=new L(n||[]);return a._invoke=function(e,t,r){var n=\"suspendedStart\";return function(o,a){if(\"executing\"===n)throw new Error(\"Generator is already running\");if(\"completed\"===n){if(\"throw\"===o)throw a;return O()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=b(i,r);if(c){if(c===l)continue;return c}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(\"suspendedStart\"===n)throw n=\"completed\",r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=\"executing\";var s=u(e,t,r);if(\"normal\"===s.type){if(n=r.done?\"completed\":\"suspendedYield\",s.arg===l)continue;return{value:s.arg,done:r.done}}\"throw\"===s.type&&(n=\"completed\",r.method=\"throw\",r.arg=s.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(e){return{type:\"throw\",arg:e}}}e.wrap=s;var l={};function f(){}function d(){}function h(){}var p={};c(p,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==t&&r.call(m,o)&&(p=m);var y=h.prototype=f.prototype=Object.create(p);function g(e){[\"next\",\"throw\",\"return\"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var n;this._invoke=function(o,a){function i(){return new t((function(n,i){!function n(o,a,i,c){var s=u(e[o],e,a);if(\"throw\"!==s.type){var l=s.arg,f=l.value;return f&&\"object\"==typeof f&&r.call(f,\"__await\")?t.resolve(f.__await).then((function(e){n(\"next\",e,i,c)}),(function(e){n(\"throw\",e,i,c)})):t.resolve(f).then((function(e){l.value=e,i(l)}),(function(e){return n(\"throw\",e,i,c)}))}c(s.arg)}(o,a,n,i)}))}return n=n?n.then(i,i):i()}}function b(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=void 0,b(e,t),\"throw\"===t.method))return l;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return l}var n=u(r,e.iterator,t.arg);if(\"throw\"===n.type)return t.method=\"throw\",t.arg=n.arg,t.delegate=null,l;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=void 0),t.delegate=null,l):o:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,l)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(E,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=h,c(y,\"constructor\",h),c(h,\"constructor\",d),d.displayName=c(h,i,\"GeneratorFunction\"),e.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===d||\"GeneratorFunction\"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,i,\"GeneratorFunction\")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new w(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},g(y),c(y,i,\"Generator\"),c(y,o,(function(){return this})),c(y,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=k,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)\"t\"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type=\"throw\",i.arg=e,t.next=r,n&&(t.method=\"next\",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if(\"root\"===a.tryLoc)return n(\"end\");if(a.tryLoc<=this.prev){var c=r.call(a,\"catchLoc\"),s=r.call(a,\"finallyLoc\");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error(\"try statement without catch or finally\");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,\"finallyLoc\")&&this.prev<o.finallyLoc){var a=o;break}}a&&(\"break\"===e||\"continue\"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method=\"next\",this.next=a.finallyLoc,l):this.complete(i)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;x(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},\"next\"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=n}catch(e){\"object\"==typeof globalThis?globalThis.regeneratorRuntime=n:Function(\"r\",\"regeneratorRuntime = r\")(n)}},28:function(e,t,r){\"use strict\";r.r(t);var n=r(1),o=r.n(n),a=r(0),i=r.n(a);r(8);function c(){return s.apply(this,arguments)}function s(){return(s=o()(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(t=document.querySelector(\"[data-svg]\"))){e.next=3;break}return e.abrupt(\"return\");case 3:if(t&&!t.classList.contains(\"mv-trellis-disable-eager-load-first-image\")){e.next=5;break}return e.abrupt(\"return\");case 5:t.dataset.src&&(t.src=t.dataset.src),t.dataset.srcset&&(t.srcset=t.dataset.srcset);case 7:case\"end\":return e.stop()}}),e)})))).apply(this,arguments)}!function(){var e=document.getElementsByTagName(\"body\")[0];e.className=e.className.replace(/\\bmvt-no-js\\b/,\"mvt-js\");var t=function(){var e=document.createElement(\"script\");e.src=\"\".concat(window.mvt.theme_directory,\"/assets/dist/legacy.\").concat(window.mvt.version,\".js\"),e.type=\"application/javascript\",document.body.appendChild(e)};if(\"function\"==typeof Promise)if(navigator.userAgent.match(/Trident.*rv\\:11\\./))t();else{r(9),r(10),r(11),r.p=\"\".concat(window.mvt.theme_directory,\"/assets/dist/\");var n=function(){var e=document.getElementsByClassName(\"mvt-styles\");Array.prototype.forEach.call(e,(function(e){e.rel=\"stylesheet\",e.type=\"text/css\"}))},a=function(){var e=o()(i.a.mark((function e(){var t,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=\"v\".concat(window.mvt.pwa_version,\"::trellisCache\"),!(\"serviceWorker\"in navigator)){e.next=6;break}return e.next=4,window.caches.has(t);case 4:return r=e.sent,e.abrupt(\"return\",r);case 6:return e.abrupt(\"return\",!1);case 7:case\"end\":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=document.querySelector(\".mv-create-card, #mv-trellis-comments\"),t=document.querySelector(\".mv-sticky-slot, #mv-trellis-comment-listener\");if(e){var n=new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(Promise.all([r.e(10),r.e(6)]).then(r.bind(null,63)).then((function(e){})),t.disconnect())}))}),{rootMargin:\"350px 0px 350px 0px\",threshold:0});n.observe(e),n.observe(t)}};\"IntersectionObserver\"in window?(c(),s()):r.e(0).then(r.t.bind(null,64,7)).then((function(e){c(),s()}));var u=function(){var e=o()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:if(!e.sent){e.next=7;break}n(),e.next=11;break;case 7:if(!window.hasOwnProperty(\"requestIdleCallback\")){e.next=10;break}return window.requestIdleCallback(n),e.abrupt(\"return\");case 10:setTimeout(n,2e3);case 11:case\"end\":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();\"serviceWorker\"in navigator&&r.e(9).then(r.bind(null,65)).then((function(e){})),u()}else t()}()},8:function(e,t,r){},9:function(e,t){var r=document.getElementsByClassName(\"nav-toggle\");function n(e){if(e.preventDefault(),this.nextElementSibling.classList.contains(\"nav-closed\"))return this.nextElementSibling.classList.add(\"nav-open\"),void this.nextElementSibling.classList.remove(\"nav-closed\");this.nextElementSibling.classList.add(\"nav-closed\"),this.nextElementSibling.classList.remove(\"nav-open\")}Array.from(r).forEach((function(e){e.addEventListener(\"click\",n)}));var o=document.getElementsByClassName(\"toggle-sub-menu\");function a(e){e.preventDefault(),e.stopPropagation(),this.parentElement.parentElement.classList.toggle(\"sub-menu-open\")}Array.from(o).forEach((function(e){e.addEventListener(\"click\",a)}))}});"],"mappings":"AAAA","sourceRoot":""}