!function(t){function n(e){e=parseInt(e);var o=pumPointers.pointers[e];o.hasOwnProperty("pre")&&o.pre.hasOwnProperty("clicks")&&t.each(o.pre.clicks,function(n,e){t(e).click()});var i=t(o.target);if(0!==i.length){var r=t.extend(o.options,{close:function(){t.post(ajaxurl,{pointer:o.pointer_id,action:"dismiss-wp-pointer"}),!1===skipTour&&e!==pumPointers.pointers.length-1&&n(e+1)},buttons:function(n,o){var i=t('<button class="button" style="margin-right: 10px;">Skip tour</button>'),r=t('<button class="button button-primary">Next</button>'),p=t('<button class="button button-primary">Thanks!</button>'),s=t('<div class="pum-pointer-buttons" />');return i.bind("click.point",function(n){n.preventDefault(),skipTour=!0,o.element.pointer("close");for(var e=0;e<pumPointers.pointers.length;e++)setTimeout(function(n){t.post(ajaxurl,{pointer:pumPointers.pointers[n].pointer_id,action:"dismiss-wp-pointer"})},500*e+1,e)}),r.bind("click.pointer",function(t){t.preventDefault(),o.element.pointer("close")}),p.bind("click.pointer",function(t){t.preventDefault(),o.element.pointer("close")}),1!==pumPointers.pointers.length&&0===e&&s.append(i),e===pumPointers.pointers.length-1?s.append(p):s.append(r),s}}),p=i.pointer(r);t("html, body").animate({scrollTop:i.offset().top-200}),p.pointer("open")}}window.pumPointers=window.pumPointers||{pointers:[]},window.skipTour=!1,t(function(t){setTimeout(function(){0<pumPointers.pointers.length&&n(0)},1e3)})}(jQuery);