function o(n){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(n)}window.PostViewsCounterManual={init:function(n){var t=this,e={action:"pvc-view-posts",pvc_nonce:n.nonce,ids:n.ids},c=Object.keys(e).map(function(o){return"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(e[o]))}).join("&").replace(/%20/g,"+");return fetch(n.url,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:c}).then(function(o){if(!o.ok)throw Error(o.statusText);return o.json()}).then(function(n){try{"object"===o(n)&&null!==n&&t.triggerEvent("pvcCheckPost",n)}catch(e){console.log("Invalid JSON data"),console.log(e)}}).catch(function(o){console.log("Invalid response"),console.log(o)})},triggerEvent:function(o,n){var t=new CustomEvent(o,{bubbles:!0,detail:n});document.dispatchEvent(t)}};
