/*! dom-to-image 10-06-2017 */
/**
* Dom-To-Image 2.6.0
* https://github.com/tsayen/dom-to-image
*
* Released under the MIT license
* https://github.com/tsayen/dom-to-image/blob/master/LICENSE
*/
!function(a){"use strict";function b(a,b){function c(a){return b.bgcolor&&(a.style.backgroundColor=b.bgcolor),b.width&&(a.style.width=b.width+"px"),b.height&&(a.style.height=b.height+"px"),b.style&&Object.keys(b.style).forEach(function(c){a.style[c]=b.style[c]}),a}return b=b||{},g(b),Promise.resolve(a).then(function(a){return i(a,b.filter,!0)}).then(j).then(k).then(c).then(function(c){return l(c,b.width||q.width(a),b.height||q.height(a))})}function c(a,b){return h(a,b||{}).then(function(b){return b.getContext("2d").getImageData(0,0,q.width(a),q.height(a)).data})}function d(a,b){return h(a,b||{}).then(function(a){return a.toDataURL()})}function e(a,b){return b=b||{},h(a,b).then(function(a){return a.toDataURL("image/jpeg",b.quality||1)})}function f(a,b){return h(a,b||{}).then(q.canvasToBlob)}function g(a){"undefined"==typeof a.imagePlaceholder?v.impl.options.imagePlaceholder=u.imagePlaceholder:v.impl.options.imagePlaceholder=a.imagePlaceholder,"undefined"==typeof a.cacheBust?v.impl.options.cacheBust=u.cacheBust:v.impl.options.cacheBust=a.cacheBust}function h(a,c){function d(a){var b=document.createElement("canvas");if(b.width=c.width||q.width(a),b.height=c.height||q.height(a),c.bgcolor){var d=b.getContext("2d");d.fillStyle=c.bgcolor,d.fillRect(0,0,b.width,b.height)}return b}return b(a,c).then(q.makeImage).then(q.delay(100)).then(function(b){var c=d(a);return c.getContext("2d").drawImage(b,0,0),c})}function i(a,b,c){function d(a){return a instanceof HTMLCanvasElement?q.makeImage(a.toDataURL()):a.cloneNode(!1)}function e(a,b,c){function d(a,b,c){var d=Promise.resolve();return b.forEach(function(b){d=d.then(function(){return i(b,c)}).then(function(b){b&&a.appendChild(b)})}),d}var e=a.childNodes;return 0===e.length?Promise.resolve(b):d(b,q.asArray(e),c).then(function(){return b})}function f(a,b){function c(){function c(a,b){function c(a,b){q.asArray(a).forEach(function(c){b.setProperty(c,a.getPropertyValue(c),a.getPropertyPriority(c))})}a.cssText?b.cssText=a.cssText:c(a,b)}c(window.getComputedStyle(a),b.style)}function d(){function c(c){function d(a,b,c){function d(a){var b=a.getPropertyValue("content");return a.cssText+" content: "+b+";"}function e(a){function b(b){return b+": "+a.getPropertyValue(b)+(a.getPropertyPriority(b)?" !important":"")}return q.asArray(a).map(b).join("; ")+";"}var f="."+a+":"+b,g=c.cssText?d(c):e(c);return document.createTextNode(f+"{"+g+"}")}var e=window.getComputedStyle(a,c),f=e.getPropertyValue("content");if(""!==f&&"none"!==f){var g=q.uid();b.className=b.className+" "+g;var h=document.createElement("style");h.appendChild(d(g,c,e)),b.appendChild(h)}}[":before",":after"].forEach(function(a){c(a)})}function e(){a instanceof HTMLTextAreaElement&&(b.innerHTML=a.value),a instanceof HTMLInputElement&&b.setAttribute("value",a.value)}function f(){b instanceof SVGElement&&(b.setAttribute("xmlns","http://www.w3.org/2000/svg"),b instanceof SVGRectElement&&["width","height"].forEach(function(a){var c=b.getAttribute(a);c&&b.style.setProperty(a,c)}))}return b instanceof Element?Promise.resolve().then(c).then(d).then(e).then(f).then(function(){return b}):b}return c||!b||b(a)?Promise.resolve(a).then(d).then(function(c){return e(a,c,b)}).then(function(b){return f(a,b)}):Promise.resolve()}function j(a){return s.resolveAll().then(function(b){var c=document.createElement("style");return a.appendChild(c),c.appendChild(document.createTextNode(b)),a})}function k(a){return t.inlineAll(a).then(function(){return a})}function l(a,b,c){return Promise.resolve(a).then(function(a){return a.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(a)}).then(q.escapeXhtml).then(function(a){return''+a+""}).then(function(a){return'"}).then(function(a){return"data:image/svg+xml;charset=utf-8,"+a})}function m(){function a(){var a="application/font-woff",b="image/jpeg";return{woff:a,woff2:a,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:b,jpeg:b,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function b(a){var b=/\.([^\.\/]*?)$/g.exec(a);return b?b[1]:""}function c(c){var d=b(c).toLowerCase();return a()[d]||""}function d(a){return a.search(/^(data:)/)!==-1}function e(a){return new Promise(function(b){for(var c=window.atob(a.toDataURL().split(",")[1]),d=c.length,e=new Uint8Array(d),f=0;f *:hover {
// z-index: 3;
// }
//}
.vc_pageable-slide-wrapper {
.vc_grid-item.vc_visible-item:hover {
z-index: 3;
}
}
.vc_grid-item {
display: none;
padding: 0;
vertical-align: top;
float: none;
box-sizing: border-box;
z-index: 1;
.vc_grid-item-mini {
.vc_grid-item-content {
overflow: hidden;
}
}
.wpb_content_element, .vc_icon_element, .vc_btn {
margin-bottom: @vc_gitem_post_data_shortcode_margin_bottom;
a {
text-decoration: none;
border-bottom: 0;
}
}
}
}
.vc_grid {
.vc_gitem-link {
border-bottom: none;
outline: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
}
.vc_masonry_grid, .vc_masonry_media_grid {
.vc_grid.vc_row {
.vc_grid-item {
position: static; // Fix for FF with masonry
&.vc_visible-item {
display: block;
}
}
}
}
.vc_basic_grid, .vc_media_grid {
.vc_grid.vc_row {
.vc_grid-item {
&.vc_visible-item {
display: block;
}
@media (min-width: @screen-sm-min) {
&.vc_visible-item {
display: inline-block;
}
}
}
}
}
@-moz-document url-prefix() {
.vc_masonry_grid, .vc_masonry_media_grid {
.vc_grid-item {
margin-left: -0.01px; // Fix for FF with masonry
}
}
}
.vc_gitem-zone-b {
display: none;
}
.vc_gitem-float {
&-none {
float: none;
}
&-left {
float: left;
}
&-right {
float: right;
}
}
.vc_gitem-align {
&-center {
text-align: center;
}
&-right {
text-align: right;
}
&-justify {
text-align: justify;
}
}
.vc_gitem-block {
position: relative;
overflow: hidden;
}
.vc_gitem-is-link {
cursor: pointer;
}
.vc_gitem-link {
text-decoration: none;
}
@import "shortcodes/vc_gitem_row.less";
@import "shortcodes/vc_gitem_col.less";
@import "shortcodes/vc_gitem_zone.less";
@import "shortcodes/vc_gitem_zone_a.less";
@import "shortcodes/vc_gitem_zone_b.less";
@import "shortcodes/vc_gitem_zone_c.less";
@import "shortcodes/vc_gitem_gitem_zone_height_mode.less";
@import "shortcodes/vc_gitem_animated_block.less";
@import "shortcodes/vc_gitem_post_data.less";
@import "shortcodes/vc_gitem_post_categories.less";
/**
* External dependencies
*/
import { has } from 'lodash';
/**
* Utility for returning whether the given path exists in the state.
*
* @param {Object} state The state being checked
* @param {Array} path The path to check
*
* @return {boolean} True means this exists in the state.
*/
export default function hasInState( state, path ) {
return has( state, path );
}
XML-RPC server accepts POST requests only.