!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g0)for(var c=0;c0?void this.parseShortcodes(b,a):a()},a.prototype.bindElementEvents=function(){var a=document.getElementById("content")||!1,b=_.debounce(this.loadShortcodes.bind(this,this.declareReloaded.bind(this)),500);a&&(a.addEventListener("keyup",b),a.addEventListener("change",b)),"undefined"!=typeof tinyMCE&&"function"==typeof tinyMCE.on&&tinyMCE.on("addEditor",function(a){a.editor.on("change",b),a.editor.on("keyup",b)})},a.prototype.getContentTinyMCE=function(){var a=document.getElementById("content")&&document.getElementById("content").value||"";return"undefined"!=typeof tinyMCE&&"undefined"!=typeof tinyMCE.editors&&0!==tinyMCE.editors.length&&(a=tinyMCE.get("content")&&tinyMCE.get("content").getContent()||""),a},a.prototype.getUnparsedShortcodes=function(a){if("object"!==("undefined"==typeof a?"undefined":d(a)))return console.error("Failed to get unparsed shortcodes. Expected parameter to be an array, instead received "+("undefined"==typeof a?"undefined":d(a))),!1;for(var b=[],c=0;c0?void jQuery.post(ajaxurl,{action:"wpseo_filter_shortcodes",_wpnonce:wpseoShortcodePluginL10n.wpseo_filter_shortcodes_nonce,data:a},function(a){this.saveParsedShortcodes(a,b)}.bind(this)):b()},a.prototype.saveParsedShortcodes=function(a,b){a=JSON.parse(a);for(var c=0;c