1 line
385 KiB
JavaScript
1 line
385 KiB
JavaScript
!function(Q){"use strict";var J={back_to_menu:"Back to menu",close_editor:"Close Editor",saving:"Saving",save:"Save",saved:"Saved",unknown:"Unknown",live_preview_alert:"This tool is disabled in demo mode!",save_alert:"Saving is disabled in demo mode!",list_notice:"The selected element is not a list item, Select a list item to edit styles.",list_notice1:"Disable list style image property to use this property.",display_notice:"This property may not work, Set 'block' or 'inline-block' value to display option from extra section.",absolute_notice:"The absolute value could harm mobile view, Set absolute value just to high screen sizes with Responsive Tool.",fixed_notice:"The fixed value could harm mobile view, Set fixed value just to high screen sizes with Responsive Tool.",negative_margin_notice:"Negative margin value could break the website layout.",high_position_notice:"High position value could harm mobile view, Please apply this change only to large screen sizes using the Responsive Tool.",bg_img_notice_two:"Set a background image for using this feature.",bg_img_notice_tree:"Set a background color or image for using this feature.",sure:"Are you sure you want to leave the page without saving?",cantUndo:'You can\'t undo the changes while creating a new animation. Click "reset icon" if you want to disable any option.',cantUndoAnimManager:"You can't undo the changes while animation manager on.",cantEditor:"You can't use the CSS editor while creating a new animation.",allScenesEmpty:"Please add properties to the scenes to play the animation.",scene:"Scene",closeAnim:"Are you sure you want to close Animation Generator without saving?",notice:"<i class='yp-notice-icon'></i>Notice",warning:"<i class='yp-notice-icon'></i>Warning",none:"Default value",empty:"empty",rule:"rule",type_not_available:"Can not be used on the current page.",you_are_sure:"You are sure?",delete_anim:"Delete Animate",welcome_pro:"Welcome to Pro Club!",license_activated:"License Activated! Thank you for your purchase. We are here to help! Check out <a href='https://yellowpencil.waspthemes.com/documentation/' target='_blank'>Plugin Docs</a> and join <a href='https://www.facebook.com/groups/YellowPencils/' target='_blank'>Facebook Community</a>.",general:"General",paragraph:"Paragraph",heading_level:"Heading Level",element_id:"Element ID",tag:"Tag",affected_els:"Selected elements",box_sizing:"Box Sizing",page_width:"Page Width",page_height:"Page Height",pseudo_class:"States…",all_devices:"All Devices",delay:"Delay",duration:"Duration",delete_t:"Delete",add_new_anim:"Add New Animate",sorry:"Sorry.",all_scenes_empty:"All scenes are empty.",animation_name:"Animation name",save_animation:"Save Animation",set_animation_name:"Set a name to the animation to save.",scene_properties:"Scene Properties",no_property_yet:"No properties yet.",save_error:"An error occurred while saving.",save_error_msg:"The server may be offline either server's maximum post limit is not enough. Please try again later.",define_breakpoints:"defined breakpoints",breakpoint_size:"{$1}px and {$2} screen sizes",phones:"phones",large_phones:"high resolution phones",tablet_landscape_phones:"tablets & landscape phones",tablets:"tablets",small_desktop_tablets_phones:"low resolution desktops & tablets and phones",medium_desktops_tablets_phones:"normal resolution desktops & tablets and phones",large_desktops_tablets_phones:"high resolution desktops & tablets and phones",phones_tablets_desktops:"phones & tablets and desktops",large_phones_tablets_desktops:"high resolution phones & tablets and desktops",landscape_phones_tablets_desktops:"landscape phones & tablets and desktops",desktops:"desktops",medium_large_desktops:"normal resolution desktops & high resolution desktops",large_desktops:"high resolution desktops",css_parse_error:"CSS Parse Error.",css_parse_error_text:"The changes you made in the CSS editor seems to be invalid. To continue, undo changes with CTRL + Z or fix this CSS error.",delete_media_query:"Delete {$1} Media Query?",delete_media_query_msg:"This will only delete the media query from the current customization type.",review_breakpoint:"Review Breakpoint",show_in_editor:"Show In Editor",parent_elements:"Parent Elements…",children_elements:"Child Elements…",select_only_this:"Select Only This",write_css:"Write CSS",edit_selector:"Edit Selector",review_styles:"Review Styles",reset_styles:"Reset Styles…",single:"Single…",the_element:"Element",child_elements:"Child Elements",template:"Template…",global_t:"Global…",leave:"Leave",above_t:"above",below_t:"below",toggle_media_query_condition:"Toggle media query condition as {$1}",customize_type_not_available:"This customizing type can not be used on the current page.",cursor_warning:"This change does not appear in the editor, check it with Live Preview.",empty_element_tree:"Select an element to show element tree.",reset_type_msg:"You are sure to reset all styles in <strong>{$1} customization</strong>?",reset_btn:"Yes, Reset!",manager_msg1:"There is no style matching with the selected element.",manager_msg2:"Select an item to review matching styles.",manager_msg3:"Single customization is empty.",manager_msg4:"Template customization is empty.",manager_msg5:"Global customization is empty.",manager_msg6:"There is no style in this media query.",manager_msg7:"There are no styles matching your search term.",manager_msg8:"No style found. Check again after making a few edits.",manager_msg9:"All styles on the current page are listed below.",manager_msg10:"The styles matching with the selected element are listed below.",manager_msg11:"Single Customization styles listed below.",manager_msg12:"Template Customization styles listed below.",manager_msg13:"Global Customization styles listed below.",manager_msg14:"All styles in this media query are listed below.",manager_msg15:"No styles were found. Check again after making a few edits.",selector_no_match:"The selector doesn't match any element on this page",all_msg:"Any screen size",not_wp_link:"This link is not an wordpress page. You can't edit this page.",external_link:"This is an external link. You can't edit this page.",link_not_valid:"This link is not an wordpress page. You can't edit this page.",page_loading:"Loading Editor",page_information_cant_be_retrieved:"Page information cannot be retrieved.",page_information_cant_be_retrieved_msg:"Please close the page and open the target page manually with YellowPencil."};Q(".fixed_right_panel_checkbox input").prop("checked",ypOption.fixed_right_panel),Q(".show_parent_tree_checkbox input").prop("checked",ypOption.show_parent_tree),Q(".hide_premium_options_checkbox input").prop("checked",ypOption.hide_premium_options),Q(".show_margin_padding_on_hover_checkbox input").prop("checked",ypOption.show_margin_padding_on_hover),Q(".smart_responsive_technology_checkbox input").prop("checked",ypOption.smart_responsive_technology),Q(".smart_important_tag_checkbox input").prop("checked",ypOption.smart_important_tag),Q(".high_performance_checkbox input").prop("checked",ypOption.high_performance),Q(".append_auto_comments_checkbox input").prop("checked",ypOption.append_auto_comments),window.define=window.define||ace.define,ace.config.set("basePath",window.aceEditorBase),ace.require("ace/ext/language_tools");var l=ace.edit("cssData");l.setTheme("ace/theme/twilight"),l.$blockScrolling=1/0,l.setShowPrintMargin(!1),l.setOptions({enableMultiselect:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!1,fontSize:"14px"}),l.container.style.lineHeight="19px";var a={};a.singleData=ace.createEditSession("","ace/mode/css"),a.templateData=ace.createEditSession("","ace/mode/css"),a.globalData=ace.createEditSession("","ace/mode/css");var A=new PerfectScrollbar("#visual-css-content",{wheelSpeed:.5,suppressScrollX:!0,includePadding:!0,minScrollbarLength:12});function ee(e,t){var a;return!1===t&&(1!=ve(e)&&e!=ue()||re.hasClass("yp-need-to-process")&&Ka()),0===(a=fe(e)?Z.querySelector('[data-source-mode="'+e+'"]').innerHTML:Z.getElementById("yp-styles-area").innerHTML).length?"":(a+" /*").replace(/\n/g,"")}function U(e,t,a){e=e.replace(/\/\*/g,"\n/*").replace(/\*\//g,"*/\n"),ve(a)&&(a=""),fe(t)?("a"!=a&&(ie.find("[data-source-mode='"+t+"']").addClass("yp-data-updated yp-data-only-updated"),Q("#customizing-type-list li[data-value='"+t+"']").addClass("customizing-type-updated")),Z.querySelector('[data-source-mode="'+t+'"]').innerHTML=e):("a"!=a&&(kt().addClass("yp-data-updated yp-data-only-updated"),Q(".active-customizing-list").addClass("customizing-type-updated")),Z.getElementById("yp-styles-area").innerHTML=e)}function h(e){var t,a="desktop",i=(e=e.trim().replace(/(\/\*|^)(.*?)\*\//g,"")).split("{")[0];return t=-1!=e.indexOf("@media")?(a=e.match(/@media(.*?){/g)[0].replace(/(^@media(\s+)|\{$)/g,""),e.split("{")[2].split("}")[0]):e.split("{")[1].split("}")[0],-1!=i.indexOf("@media")&&(i=e.split("{")[1].split("{")[0]),"/* [rule="+(t=t.split(":")[0]).trim()+"] [selector="+$a(i.trim())+"] [msize="+a.trim()+"] */ "+e.trim()}function te(e,t){t=t.match(/\[(.*?)\]/g);for(var a,i=e.split("/*"),n=[],s=t.length,r=t[0],o=t[1],l=t[2],p=0;p<i.length;p++)a=i[p],(1!=s||"[style]"!=r||-1!=a.indexOf("[msize=")&&-1!=a.indexOf("[selector=")&&-1!=a.indexOf("[rule="))&&(3==s&&-1!=a.indexOf(r)&&-1!=a.indexOf(o)&&-1!=a.indexOf(l)&&n.push(a),2==s&&-1!=a.indexOf(r)&&-1!=a.indexOf(o)&&n.push(a),1==s&&(-1==a.indexOf(r)&&"[style]"!=r||n.push(a)));return n}function X(e,t){t=t.match(/\[(.*?)\]/g);for(var a,i=e.split("/*"),n=t.length,s=t[0],r=t[1],o=t[2],l=-1,p=0;p<i.length;p++)if(a=i[p],1!=n||"[style]"!=s||-1!=a.indexOf("[msize=")&&-1!=a.indexOf("[selector=")&&-1!=a.indexOf("[rule=")){if(3==n&&-1!=a.indexOf(s)&&-1!=a.indexOf(r)&&-1!=a.indexOf(o)){l=p;break}if(2==n&&-1!=a.indexOf(s)&&-1!=a.indexOf(r)){l=p;break}if(1==n&&(-1!=a.indexOf(s)||"[style]"==s)){l=p;break}}return 1==l?l-1:0<l-1?l-1:null}function m(e,t,a){t=t.match(/\[(.*?)\]/g),a=h(a).replace(/^\/\*/,"");for(var i,n,s=e.split("/*"),r=t.length,o=t[0],l=t[1],p=t[2],d=[],c=[],u=[],m=0;m<s.length;m++)i=s[m],3==r&&-1!=i.indexOf(o)&&-1!=i.indexOf(l)&&-1!=i.indexOf(p)&&(s[m]=a),2==r&&-1!=i.indexOf(o)&&-1!=i.indexOf(l)&&(s[m]=a),1==r&&-1!=i.indexOf(o)&&(s[m]=a);if(s.length<=0)return e;for(var g=0;g<s.length;g++)(i=s[g]).length<=1||(-1!=(n=i.match(/\[msize\=(.*?)\]/)[0]).indexOf("max-width")&&-1==n.indexOf("and")?c.push(i):-1!=n.indexOf("min-width")&&-1==n.indexOf("and")?u.push(i):d.push(i));return f(d,c,u,!1)}function G(e,t){t=t.match(/\[(.*?)\]/g);for(var a,i=e.split("/*"),n=t.length,s=t[0],r=t[1],o=t[2],l=[],p=0;p<i.length;p++)a=i[p],3==n&&(-1!=a.indexOf(s)&&-1!=a.indexOf(r)&&-1!=a.indexOf(o)||l.push(a)),2==n&&(-1!=a.indexOf(s)&&-1!=a.indexOf(r)||l.push(a)),1==n&&-1==a.indexOf(s)&&l.push(a);return(l=l.filter(Boolean)).splice(0,0,""),l.join("/*").trim()}function V(e,t,a){"default"==a&&(a=null);var i=(t=h(t).replace(/^\/\*/,"")).match(/\[rule\=(.*?)\]/)[0],n=t.match(/\[selector\=(.*?)\]/)[0],s=t.match(/\[msize\=(.*?)\]/)[0];"a"==i&&(a=null);var r,o,l=[],p=[],d=[],c=!1;if(0<e.length){var u,m=e.split("/*");for(o=0;o<m.length;o++)(r=m[o]).length<=1||(-1!=(u=r.match(/\[msize\=(.*?)\]/)[0]).indexOf("max-width")&&-1==u.indexOf("and")?l.push(r):-1!=u.indexOf("min-width")&&-1==u.indexOf("and")?p.push(r):d.push(r))}if(-1!=s.indexOf("max-width")&&-1==s.indexOf("and")){for(null!=a&&(a-=d.length),o=l.length;o--;)if(-1!=(r=l[o]).indexOf(i)&&-1!=r.indexOf(n)&&-1!=r.indexOf(s)){l[o]=t,c=!0;break}for(o=l.length;o--&&!c;)if(-1!=(r=l[o]).indexOf(n)&&-1!=r.indexOf(s)){null==a?l.splice(o+1,0,t):l.splice(a,0,t),c=!0;break}0!==l.length&&!1!==c||(null==a?l.push(t):l.splice(a,0,t))}else if(-1!=s.indexOf("min-width")&&-1==s.indexOf("and")){for(null!=a&&(a=a-l.length-d.length),o=p.length;o--;)if(-1!=(r=p[o]).indexOf(i)&&-1!=r.indexOf(n)&&-1!=r.indexOf(s)){p[o]=t,c=!0;break}for(o=p.length;o--&&!c;)if(-1!=(r=p[o]).indexOf(n)&&-1!=r.indexOf(s)){null==a?p.splice(o+1,0,t):p.splice(a,0,t),c=!0;break}0!==p.length&&!1!==c||(null==a?p.push(t):p.splice(a,0,t))}else{for(c=!1,o=d.length;o--;)if(-1!=(r=d[o]).indexOf(i)&&-1!=r.indexOf(n)&&-1!=r.indexOf(s)){d[o]=t,c=!0;break}for(o=d.length;o--&&!c;)if(-1!=(r=d[o]).indexOf(n)&&-1!=r.indexOf(s)){null==a?d.splice(o+1,0,t):d.splice(a,0,t),c=!0;break}0!==d.length&&!1!==c||(null==a?d.push(t):d.splice(a,0,t))}return f(d,l,p,!1)}function f(e,t,a,i){if(1==i){t=[],a=[],e=[];var n,s,r=ee().split("/*");for(h=0;h<r.length;h++)(n=r[h]).length<=1||(-1!=(s=n.match(/\[msize\=(.*?)\]/)[0]).indexOf("max-width")&&-1==s.indexOf("and")?t.push(n):-1!=s.indexOf("min-width")&&-1==s.indexOf("and")?a.push(n):e.push(n))}var o,l,p,d,c={},u={},m=[],g=[];t=t.filter(Boolean),a=a.filter(Boolean);for(var h=0;h<t.length;h++)c[o=t[h].match(/\[msize\=(.*?)\]/)[0].replace(/\D/g,"")]||(c[o]=[]),c[o].push(t[h]);for(l=Object.keys(c).sort(function(e,t){return t-e}),h=0;h<l.length;h++)m.push(c[l[h]]);for(h=0;h<a.length;h++)u[o=a[h].match(/\[msize\=(.*?)\]/)[0].replace(/\D/g,"")]||(u[o]=[]),u[o].push(a[h]);for(p=Object.keys(u).sort(function(e,t){return e-t}),h=0;h<p.length;h++)g.push(u[p[h]]);var f=[];for(h=0;h<m.length;h++)for(var v=0;v<m[h].length;v++)f.push(m[h][v]);var y=[];for(h=0;h<g.length;h++)for(v=0;v<g[h].length;v++)y.push(g[h][v]);return(d=e.concat(f).concat(y)).splice(0,0,""),d.join("/*").trim()}function K(e){return"-webkit-box-pack"==e?"justify-content":"-webkit-box-align"==e?"align-items":"-webkit-box-flex"==e?"flex-grow":e.replace(/(-webkit-|-moz-|-o-|-ms-|-khtml-)/g,"")}function ae(e){return"justify-content"==e?"-webkit-box-pack":"align-items"==e?"-webkit-box-align":"flex-grow"==e?"-webkit-box-flex":"-webkit-"+e.replace(/(-webkit-|-moz-|-o-|-ms-|-khtml-)/g,"")}window.cachedTypes=[];var i=0;function n(s){i++;var e=1;if(null==s&&(s=ue(),e=0),"single"==s?l.setSession(a.singleData):"template"==s?l.setSession(a.templateData):l.setSession(a.globalData),l.getSession().setUseWrapMode(!0),-1==window.cachedTypes.indexOf(s)){var r=l.getSession();r.on("changeAnnotation",function(){if(1==window.aceEditorErrorFilter)return!1;window.cachedTypes.push(s);var e=!1;if(0<Q(".ace_editor.ace_autocomplete")&&"none"==Q(".ace_editor.ace_autocomplete").css("display")?e=!0:0==Q(".ace_editor.ace_autocomplete")&&(e=!1),1==re.hasClass("yp-css-editor-active")&&0==e){for(var a=r.getAnnotations()||[],t=a.length;t--;)if("warning"==a[t].type||"info"==a[t].type)a.splice(t,1);else{var i=a[t].row,n=l.session.getLine(i);1!=/^(\s+)?\-\-\w/g.test(n)&&1!=/var\(\-\-/g.test(n)||a.splice(t,1)}0<a.length&&0==Q(".yp-after-prefix").is(":focus")?(re.addClass("css-code-unvalid"),Q(".unvalid-css-error span").html(a[0].text.toLowerCase())):(re.removeClass("css-code-unvalid css-error-message"),Q(".unvalid-css-error").attr("style","")),window.aceEditorErrorFilter=!0,r.setAnnotations(Object.keys(a).reduce(function(e,t){return e.concat(a[t])},[])),window.aceEditorErrorFilter=!1}})}if(0==e&&(Q(".editor-tabs").removeClass("active"),Q(".editor-tabs[data-type-value='"+s+"']").addClass("active")),window.history.replaceState&&0<window.location.href.split("yp_mode=").length&&Q.urlParam("yp_mode")!=s&&2<i){var t=window.location.href.split("yp_mode=")[1];fe(t)&&(t=-1!=t.indexOf("&")?"&"+t.split(/&(.+)/)[1]:"",window.history.replaceState(null,null,window.location.href.split("yp_mode=")[0]+"yp_mode="+s+t))}}window.setSelector=!1,window.leftbarWidth=46,window.separator=" ",window.minCroppedSelector=!1,window.YellowDelay=5,window.Yellow2Delay=10,window.lastTextColor=null,window.targetIsParentTree=!1,window.selectedByView=!1,window.editedByReview=!1,window.sourceViewClick=!1,window.resizedByPropertySize=!1,window.licenseCheckDelay=!1,window.responsiveFirstWasOpen=!1,window.parentItems="",window.childrenItems="",window.aceEditorErrorFilter=!1,window.idList=[],window.ClassList=[],window.allow_input_CSS_process=!1,window.firstSelectLimit=!1,window.newComments=[],window.placeholderSelector=!1,window.mouseoverTrigger=!1,window.getJsonNow=!1,window.colorsReady=!1,window.addonsCheck=!1,window.webkitArray=["transform-origin","backface-visibility","filter","transform","background-clip","perspective","background-size","box-sizing","animation-name","animation-iteration-count","animation-duration","animation-delay","animation-fill-mode","box-shadow","flex-direction","flex-wrap","align-content","flex-basis","align-self","flex-shrink"];var ie=Q("#iframe").contents(),ne=ie.find("body"),se=Q(document.body).add(ne),e=Q(document).add(ie),re=Q(document.body),Z=document.getElementById("iframe"),I=Z.contentWindow||Z.contentDocument;Z=I.document,ie.find("#yp-animate-data").after("<div id='yellow-pencil-canvas'></div><div id='yellow-pencil-focus-canvas'></div><div id='yellow-pencil-other-canvas'></div><div id='yellow-pencil-extra-canvas'></div>");var oe=[];oe.general=ne.find("#yellow-pencil-canvas"),oe.active=ne.find("#yellow-pencil-focus-canvas"),oe.other=ne.find("#yellow-pencil-other-canvas"),oe.extra=ne.find("#yellow-pencil-extra-canvas");var s=ne.find("#yellow-pencil-canvas,#yellow-pencil-focus-canvas,#yellow-pencil-other-canvas");if(0==Q(".css-editor-btn").length&&re.addClass("yp-css-editor-disable"),Q(".yp-this-content").each(function(){0==Q(this).find(".yp-option-group").length&&Q(this).parent().addClass("empty-property")}),re.hasClass("wtfv")){Q("#cssData").after('<textarea id="clipboard-content"></textarea>');var r=0;l.commands.addCommand({name:"breakTheEditor",bindKey:"ctrl-c|ctrl-x|shift-del|cmd-c|cmd-x",exec:function(){var e=l.getSelectedText(),t=e.match(/\n/g);t=null==t?0:t.length,200<r?g({title:"You are not allowed to copy CSS codes in the free version. Go premium!",animation:!1,customClass:"editor-style-ok"}):t<2||-1==e.indexOf(":")?(r+=e.length,Q("#clipboard-content").val(e),Q("#clipboard-content").select(),document.execCommand("copy")):g({title:"You are not allowed to copy CSS codes in the free version. Go premium!",animation:!1,customClass:"editor-style-ok"})}}),l.container.addEventListener("contextmenu",function(e){return e.preventDefault(),g({title:"You are not allowed to copy CSS codes in the free version. Go premium!",animation:!1,customClass:"editor-style-ok"}),!1},!1),l.setOption("dragEnabled",!1)}function o(e,t){if(re.hasClass("yp-yellow-pencil-demo-mode"))return!1;Q.post(ajaxurl,{action:"yp_live_save_option",yp_option_name:e,yp_option_value:t,_wpnonce:window.yp_editor_nonce})}function le(){return ie.find(".yp-selected")}function g(e,t){0==window.addonsCheck?null==e.text?alert(e.title):alert(e.text):swal(e,t)}function pe(){return re.hasClass("yp-content-selected")}function v(){return re.hasClass("yp-dragging")}function y(){return re.hasClass("yp-element-resizing")}function w(){return re.hasClass("yp-visual-editing")}function de(){return re.hasClass("yp-responsive-device-mode")}function ce(){return re.hasClass("yp-anim-creator")}function b(){return re.hasClass("yp-animate-manager-active")}function ue(){return Q(".active-customizing-list").attr("data-value")}function me(e,t){var a=[],i=e.attr("class");if(fe(i)&&1<=(i=ja(i=ti(i))).length){var n=Ut(i);if(0<n.length)for(var s=0;s<n.length;s++){var r=ja(n[s]);-1==a.indexOf(r)&&-1==t.indexOf(r)&&1<=r.length&&a.push(r)}else-1==a.match(i)&&-1==t.indexOf(i)&&a.push(i)}return a}function x(e){var t,a,i,n,s=!1;if(se.hasClass("yp-wireframe-mode")&&(s=!0,se.removeClass("yp-wireframe-mode")),"typography"==e){window.colorJsonList=[],Q(".info-color-scheme-list,.info-font-family-list,.info-animation-list,.info-basic-typography-list,.info-image-list").empty();var r,o,l,p=Q(".info-color-scheme-list"),d=Q(".info-font-family-list"),c=Q(".info-image-list"),u=Q(".info-animation-list"),m=Q(".info-basic-typography-list");ne.append("<h1 id='yp-heading-test-level-1'></h1><h2 id='yp-heading-test-level-2'></h2><h3 id='yp-heading-test-level-3'></h3><h4 id='yp-heading-test-level-4'></h4><h5 id='yp-heading-test-level-5'></h5><h6 id='yp-heading-test-level-6'></h6><h6 id='yp-paragraph-test'></h6>");var g=ne.find("#yp-paragraph-test"),h=Math.round(10*parseFloat(ne.css("fontSize")))/10,f=Math.round(10*parseFloat(g.css("fontSize")))/10;for(o=ne.css("fontFamily"),l=g.css("fontFamily"),m.append('<li><span class="typo-list-left">'+J.general+' (body)</span><span class="typo-list-right"><span>'+h+"px, "+he(o)+"</span></span></li>").append('<li><span class="typo-list-left">'+J.paragraph+'</span><span class="typo-list-right"><span>'+f+"px, "+he(l)+"</span></span></li>"),g.remove(),a="",i=1;i<=6;i++){n=ne.find("#yp-heading-test-level-"+i);var v=parseFloat(n.css("fontSize"));v=Math.round(10*v)/10,r=n.css("fontFamily"),a+='<li><span class="typo-list-left">'+J.heading_level+" "+i+'</span><span class="typo-list-right"><span>'+v+"px, "+he(r)+"</span></span></li>",n.remove()}m.append(a);var y=[],w=[],b=[],x=[];for(t=ne.find(Ia()),i=0;i<t.length&&!(1e4<i);i++){r=he((n=Q(t[i])).css("fontFamily")).toLowerCase(),-1==w.indexOf(r)&&w.push(r);var _=n.css("backgroundColor").toLowerCase().replace(/ /g,"");if("transparent"!=_&&"rgb(255,255,255)"!=_&&"rgba(0,0,0,0)"!=_&&"rgba(255,255,255,0)"!=_&&y.push(_),-1!=n.css("background-image").indexOf("http")){var k=n.css("background-image");1==/url\((\"|\')?(.*?)(\"|\')?\)/i.test(k)&&x.push(k.match(/url\((\"|\')?(.*?)(\"|\')?\)/i)[0].replace(/^url\(("|'|)/g,"").replace(/("|'|)\)$/g,""))}if("IMG"==n.prop("tagName")){var C=n.attr("src");n.hasAttr("data-src")&&(C=n.attr("data-src")),null!=C&&""!=C&&null!=C&&x.push(C)}}var z,A=te(ee(null,!1),"[rule=animation-name]");for(i=0;i<A.length;i++)z=Bt(A[i].replace(/(\/\*(.*?)\*\/|\n)/g,"")),-1==b.indexOf(z)&&b.push(z);a="";var O=[];for(i=0;i<y.length;i++)if(-1==O.indexOf(y[i])){for(var T=0,Z=0;Z<y.length;Z++)y[Z]==y[i]&&T++;var S=100*T/y.length;O.push(y[i]),window.colorJsonList.push(y[i]),a+='<div data-width="'+S+'" data-color="'+y[i]+'" style="width:'+S+"%;background-color:"+y[i]+';"></div>'}p.append(a),a="";var F=[];for(Q.each(x,function(e,t){-1===Q.inArray(t,F)&&F.push(t)}),i=0;i<F.length;i++)a+="<img src='"+F[i]+"' />";for(""==a?(c.prev("h3").remove(),c.remove()):c.append(a),a="",i=0;i<w.length;i++)a+="<li>"+w[i]+"</li>";for(d.append(a),a="",i=0;i<b.length;i++)a+="<li>"+b[i]+"</li>";u.append(a),0==b.length?Q("#animations-heading").hide():Q("#animations-heading").show()}else if("element"==e){var I=Q(".info-element-general"),E=Q(".info-element-class-list"),D=Q(".info-element-selector-list");if(Q(".info-element-general,.info-element-class-list,.info-element-selector-list").empty(),pe()){Q(".info-no-element-selected").hide(),Q(".info-element-selected-section").show(),Q("info-element-selector-section").hide();var M=le(),$=M.attr("id");fe($)&&""!==$&&I.append('<li><span class="typo-list-left">'+J.element_id+'</span><span class="typo-list-right"><span>#'+$+"</span></span></li>"),I.append('<li><span class="typo-list-left">'+J.tag+'</span><span class="typo-list-right"><span>'+M.prop("tagName")+"</span></span></li>"),I.append('<li><span class="typo-list-left">'+J.affected_els+'</span><span class="typo-list-right"><span>'+(parseInt(ne.find(".yp-selected-others").length)+1)+"</span></span></li>");var R,N=me(M,[]);for(a="",R=0;R<N.length;R++)a+="<li>."+N[R]+"</li>";E.append(a),0===E.find("li").length?Q(".info-element-classes-section").hide():Q(".info-element-classes-section").show(),D.append("<li>"+da()+"</li>");var L=M.clone();if(fe(L.attr("style"))){var B=L.attr("style").replace(/position:(\s*?)relative(\;?)|animation-fill-mode:(\s*?)(both|forwards|backwards|none)(\;?)/g,"");""==B?L.removeAttr("style"):L.attr("style",B)}for(L.removeAttr("class"),R=0;R<N.length;R++)L.addClass(N[R]);L.html("...");var P=Q("<div />").append(L).html();Q(".info-element-dom").val(P),ge()}else Q(".info-no-element-selected").show(),Q(".info-element-selected-section").hide()}else{Q(".info-basic-size-list").empty();var W=Q(".info-basic-size-list"),j=Q(".info-global-class-list"),q=Q(".info-global-id-list"),Y=[],H=[],U=[];for(t=ne.find(Ia()),i=0;i<t.length&&!(1e4<i);i++){if(n=Q(t[i]),i<20){var X=n.css("boxSizing");fe(X)&&(X=Q.trim(X),-1==U.indexOf(X)&&U.push(X))}var G=me(n,Y);0<G.length&&(Y=Y.concat(G));var V=n.attr("id");fe(V)&&-1==H.indexOf(V)&&H.push(V)}for(W.append('<li><span class="typo-list-left">'+J.box_sizing+'</span><span class="typo-list-right"><span>'+U.toString()+"</span></span></li>").append('<li><span class="typo-list-left">'+J.page_width+'</span><span class="typo-list-right"><span>'+(parseInt(ie.width())+window.leftbarWidth)+"px</span></span></li>").append('<li><span class="typo-list-left">'+J.page_height+'</span><span class="typo-list-right"><span>'+ie.height()+"px</span></span></li>"),a="",i=0;i<Y.length;i++)a+="<li>."+Y[i]+"</li>";for(j.append(a),a="",i=0;i<H.length;i++)""!=ti(H[i])&&(a+="<li>#"+H[i]+"</li>");q.append(a)}!0===s&&se.addClass("yp-wireframe-mode"),new ClipboardJS(".info-color-scheme-list div",{text:function(e){return Qa(e.getAttribute("data-color"))}}),Q(".info-color-scheme-list > div").tooltip("destroy"),Q(".info-color-scheme-list > div").tooltip({animation:!0,trigger:"manual",container:".advanced-info-box-inner",html:!0}),Q(".info-color-scheme-list > div").on("mouseenter",function(){Q(this).attr("data-original-title",Qa(Q(this).attr("data-color"))).tooltip("fixTitle").tooltip("show")}),Q(".info-color-scheme-list > div").on("click",function(){Q(this).attr("data-original-title","Copied!").tooltip("fixTitle").tooltip("show")}),Q(".info-color-scheme-list > div").on("mouseleave",function(){Q(this).tooltip("hide")}),new ClipboardJS(".info-image-list img",{text:function(e){return e.getAttribute("src")}}),Q(".info-image-list img").tooltip("destroy"),Q(".info-image-list img").tooltip({placement:"top",animation:!0,trigger:"manual",container:".advanced-info-box-inner",html:!0}),Q(".info-image-list img").on("mouseenter",function(){Q(this).attr("data-original-title","Copy").tooltip("fixTitle").tooltip("show")}),Q(".info-image-list img").on("click",function(){Q(this).attr("data-original-title","Copied!").tooltip("fixTitle").tooltip("show")}),Q(".info-image-list img").on("mouseleave",function(){Q(this).tooltip("hide")})}function ge(){var e=le();Q(".model-margin-top").text(parseInt(e.css("marginTop"))),Q(".model-margin-right").text(parseInt(e.css("marginRight"))),Q(".model-margin-bottom").text(parseInt(e.css("marginBottom"))),Q(".model-margin-left").text(parseInt(e.css("marginLeft"))),Q(".model-padding-top").text(parseInt(e.css("paddingTop"))),Q(".model-padding-right").text(parseInt(e.css("paddingRight"))),Q(".model-padding-bottom").text(parseInt(e.css("paddingBottom"))),Q(".model-padding-left").text(parseInt(e.css("paddingLeft"))),Q(".model-border-top").text(parseInt(e.css("borderTopWidth"))),Q(".model-border-right").text(parseInt(e.css("borderRightWidth"))),Q(".model-border-bottom").text(parseInt(e.css("borderBottomWidth"))),Q(".model-border-left").text(parseInt(e.css("borderLeftWidth"))),Q(".model-size").text(parseInt(e.width())+" x "+parseInt(e.height()))}function he(e){return-1!=e.indexOf(",")&&(e=e.split(",")[0]),e=Q.trim(e).replace(/\W+/g," "),Q.trim(e)}function p(e,t){var a,i=new Date;i.setTime(i.getTime()+31536e6),a="; expires="+i.toUTCString(),document.cookie=e+"="+t+a+"; path=/"}function d(e,t){for(var a=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var s=i[n];" "==s.charAt(0);)s=s.substring(1,s.length);if(0==s.indexOf(a))return parseInt(s.substring(a.length,s.length))}return re.hasClass("yp-fixed-right-panel")&&"visualManagerWidth"==e?parseInt(Q(".yp-select-bar").width()):parseInt(t)}Q("#customizing-type-list .type-disabled").each(function(){var e=Q(this).attr("data-value");Q(".editor-tabs."+e+"-tab").addClass("disabled"),Q(".editor-tabs."+e+"-tab").attr("title",J.type_not_available)}),Q(".editor-tabs").tooltip({placement:"bottom",animation:!1,container:"#cssEditorBar",html:!0}),Q(".fixed_right_panel_checkbox input").change(function(e){Q(this).is(":checked")?(re.addClass("yp-fixed-right-panel"),B(),Ne(),Be(),yt(),ypOption.fixed_right_panel=!0,e.originalEvent&&o("fixed_right_panel","true")):(re.removeClass("yp-fixed-right-panel"),we(!0),B(),Ne(),Be(),yt(),ypOption.fixed_right_panel=!1,e.originalEvent&&o("fixed_right_panel","false"))}),Q(".show_parent_tree_checkbox input").change(function(e){Q(this).is(":checked")?(re.addClass("yp-parent-tree-visible"),ypOption.show_parent_tree=!0,e.originalEvent&&($e(),o("show_parent_tree","true"))):(re.removeClass("yp-parent-tree-visible"),ypOption.show_parent_tree=!1,e.originalEvent&&o("show_parent_tree","false"))}),Q(".hide_premium_options_checkbox input").change(function(e){Q(this).is(":checked")?(Q("li.animation-option").hasClass("active")&&Q("li.animation-option.active > h3").trigger("click"),Q("#font-family-group,#color-group,#background-color-group,#background-image-group,#width-group,#height-group,li.animation-option,.animation-manager-btn").hide(),Q("li.animation-option").addClass("disabled"),Q(".yp-badge.yp-lite").css("visibility","hidden"),ypOption.hide_premium_options=!0,e.originalEvent&&o("hide_premium_options","true")):(Q("#font-family-group,#color-group,#background-color-group,#background-image-group,#width-group,#height-group,.animation-manager-btn").show(),0==Q(".yp-editor-list > li.active").length?Q("li.animation-option").removeClass("disabled").show():Q("li.animation-option").removeClass("disabled").hide(),Q(".yp-badge.yp-lite").css("visibility","visible"),ypOption.hide_premium_options=!1,e.originalEvent&&o("hide_premium_options","false"))}),Q(".smart_responsive_technology_checkbox input").change(function(e){Q(this).is(":checked")?(ypOption.smart_responsive_technology=!0,e.originalEvent&&o("smart_responsive_technology","true")):(ypOption.smart_responsive_technology=!1,e.originalEvent&&o("smart_responsive_technology","false"))}),Q(".smart_important_tag_checkbox input").change(function(e){Q(this).is(":checked")?(ypOption.smart_important_tag=!0,e.originalEvent&&o("smart_important_tag","true")):(ypOption.smart_important_tag=!1,e.originalEvent&&o("smart_important_tag","false"))}),Q(".show_margin_padding_on_hover_checkbox input").change(function(e){Q(this).is(":checked")?(ypOption.show_margin_padding_on_hover=!0,e.originalEvent&&o("show_margin_padding_on_hover","true")):(ypOption.show_margin_padding_on_hover=!1,e.originalEvent&&o("show_margin_padding_on_hover","false"))}),Q(".high_performance_checkbox input").change(function(e){Q(this).is(":checked")?(ypOption.high_performance=!0,se.addClass("yp-high-performance"),e.originalEvent&&o("high_performance","true")):(ypOption.high_performance=!1,se.removeClass("yp-high-performance"),pe()&&Be(),e.originalEvent&&o("high_performance","false"))}),Q(".append_auto_comments_checkbox input").change(function(e){Q(this).is(":checked")?(ypOption.append_auto_comments=!0,e.originalEvent&&o("append_auto_comments","true")):(ypOption.append_auto_comments=!1,e.originalEvent&&o("append_auto_comments","false"))}),1==ypOption.show_parent_tree&&(Q(".show_parent_tree_checkbox input").prop("checked",!0),Q(".show_parent_tree_checkbox input").trigger("change")),1==ypOption.fixed_right_panel&&(Q(".fixed_right_panel_checkbox input").prop("checked",!0),Q(".fixed_right_panel_checkbox input").trigger("change")),1==ypOption.hide_premium_options&&(Q(".hide_premium_options_checkbox input").prop("checked",!0),Q(".hide_premium_options_checkbox input").trigger("change")),1==ypOption.high_performance&&(Q(".high_performance_checkbox input").prop("checked",!0),Q(".high_performance_checkbox input").trigger("change")),null!=Q.urlParam("yp_load_popup")&&setTimeout(function(){Q("#yp-current-page").trigger("click")},10),ie.find(window.basic_not_selector).on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(){if(se.hasClass("yp-anim-creator")||b())return!1;var e=Q(this);return e.hasClass("yp-animating")&&e.removeClass("yp-animating"),e.hasClass("yp-selected")&&pe()&&(se.removeClass("yp-has-transform"),Be()),!1}),Q("#min-width-group .yp-after,#min-height-group .yp-after,#max-width-group .yp-after,#max-height-group .yp-after").css("display","none"),Q(".yp-wireframe-btn").click(function(){se.toggleClass("yp-wireframe-mode")}),T(),Q(".yp-anim-control-play").on("click",function(){if(Q(this).hasClass("active"))return!1;se.addClass("yp-animate-manager-playing yp-clean-look yp-hide-borders-now");var e=Math.max.apply(null,Q(".yp-anim-process-inner").map(function(){return Q(this).outerWidth(!0)}).get()),t=parseFloat(e)/100;Q("#yp-animate-helper").html("@-webkit-keyframes playingBorder{from{left: 0px;}to{left:"+e+"px;}}@keyframes playingBorder{from{left: 0px;}to{left:"+e+"px;}}"),Q(".yp-anim-playing-border").css("animation-duration",t+"s").addClass("active"),Q(this).addClass("active");var a=1e3*t;ai(),window.animationTimer3=setTimeout(function(){Q(".yp-anim-control-pause").trigger("click")},a),Q(".yp-anim-playing-over").css("width",e+Q(window).width());for(var i=["single","template","global"],n=0;n<i.length;n++)for(var s,r=te(ee(i[n],!1),"[rule=animation-name]"),o=0;o<r.length;o++)s=(s=Pt(r[o].replace(/(\/\*(.*?)\*\/|\n)/g,""))).replace(/\.(yp_onscreen|yp_hover|yp_click|yp_focus)/g,""),ie.find(s).each(function(){Q(this).addClass("yp_hover yp_focus yp_click yp_onscreen")});var l=0;window.animMinC=setInterval(function(){59==d&&(d=0);var e=l+=1;l<10&&(e="0"+l),Q(".yp-counter-min").text(e)},6e4);var p=0;window.animSecC=setInterval(function(){var e=p+=1;p<10&&(e="0"+p),Q(".yp-counter-second").text(e)},1e3);var d=0;window.animMsC=setInterval(function(){99==(d+=1)&&(d=0);var e=d;d<10&&(e="0"+d),Q(".yp-counter-ms").text(e)},1)}),Q(".yp-anim-control-pause").on("click",function(){clearTimeout(window.yp_anim_player),Q(".yp-anim-playing-border").removeClass("active"),Q(".yp-anim-control-play").removeClass("active");for(var e=["single","template","global"],t=0;t<e.length;t++)for(var a,i=te(ee(null,!1),"[rule=animation-name]"),n=0;n<i.length;n++)a=(a=Pt(i[n].replace(/(\/\*(.*?)\*\/|\n)/g,""))).replace(/\.(yp_onscreen|yp_hover|yp_click|yp_focus)/g,""),ie.find(a).each(function(){Q(this).removeClass("yp_hover yp_focus yp_click yp_onscreen")});se.removeClass("yp-animate-manager-playing yp-clean-look yp-hide-borders-now"),Q(".yp-counter-min").text("00"),Q(".yp-counter-second").text("00"),Q(".yp-counter-ms").text("00"),clearInterval(window.animMinC),clearInterval(window.animSecC),clearInterval(window.animMsC)}),Q(".yp-anim-control-close,.yp-visual-editor-link").on("click",function(){Q(".animation-manager-btn").trigger("click")}),Q(".animation-manager-btn").on("click",function(){if(se.toggleClass("yp-animate-manager-active"),Q(".yp-animate-manager").toggle(),Q(".yp-anim-control-pause").trigger("click"),!Q(this).hasClass("active")){Ft(),_();var e=Math.max.apply(null,Q(".yp-anim-process-inner").map(function(){return Q(this).outerWidth(!0)}).get());Q(".yp-anim-process-bar-area").width(e+Q(window).width())}0<Q(".animation-option.active").length&&(Q(".animation-option.active h3").trigger("click"),Q(".animation-option.active").removeAttr("data-loaded")),Ze(),Be()}),Q(document).on("mouseenter",".yp-control-trash",function(){Q(this).parent().tooltip("hide"),Q(this).tooltip("show")}),Q(document).on("click",".yp-control-trash",function(){var e=Q(this);g({title:J.you_are_sure,showCancelButton:!0,confirmButtonText:J.delete_anim,closeOnConfirm:!0,animation:!1,customClass:"editor-style"},function(){e.parent(".yp-anim-process-bar").prev(".yp-anim-process-bar-delay").remove(),e.parent(".yp-anim-process-bar").remove(),se.addClass("yp-anim-removing"),Q(".yp-delay-zero").each(function(){var e=Q(".yp-anim-process-inner").offset().left-5,t=Q(this).next(".yp-anim-process-bar").offset().left-e;Q(this).css("left",t),Q(this).next(".yp-anim-process-bar").addClass("yp-anim-has-zero-delay")}),P(),se.removeClass("yp-anim-removing"),_()})}),re.hasClass("yp-yellow-pencil-demo-mode")||Q(window).add(Q(I)).focus(function(){re.hasClass("wtfv")&&re.hasClass("yp-mouseleave")&&re.hasClass("yp-iframe-mouseleave")&&0==window.licenseCheckDelay&&(Q.post(ajaxurl,{action:"yp_check_license",_wpnonce:window.yp_editor_nonce}).done(function(e){"1"==e&&(se.removeClass("wtfv"),Q(".yp-popup-background,.yp-info-modal").hide(),g({title:J.welcome_pro,text:J.license_activated,animation:!1,customClass:"editor-style-ok",html:!0}))}),window.licenseCheckDelay=!0,setTimeout(function(){window.licenseCheckDelay=!1},1e4))}),Q(".lock-btn").on("click",function(){Q(this).toggleClass("active"),Q(this).parent().find(".property-size-tabs-visible .phone-icon").trigger("click")}),Q(".advanced-close-link").on("click",function(){Q(".advanced-info-box").hide(),Q(".info-btn").removeClass("active")}),Q(".info-btn").on("click",function(){if(!Q(this).hasClass("active")){var e="element";0==Q(".advance-info-btns.active").length?Q(".element-btn").trigger("click"):Q(".advance-info-btns.active").hasClass("typography-btn")?e="typography":Q(".advance-info-btns.active").hasClass("advanced-btn")&&(e="advanced"),Q(".information-updated").removeClass("information-updated"),x(e);var t=Q(window).height()-Q(this).offset().top;Q(".advanced-info-box").css({top:Q(this).offset().top+1,height:t-5*t/100-6})}Q(".advanced-info-box").toggle()}),Q(".typography-btn").on("click",function(){Q(this).parent().find(".active").removeClass("active"),Q(this).addClass("active"),Q(".element-content,.advanced-content").hide(),Q(".typography-content").show(),0==Q(this).hasClass("information-updated")&&(x("typography"),Q(this).addClass("information-updated"))}),Q(".element-btn").on("click",function(){Q(this).parent().find(".active").removeClass("active"),Q(this).addClass("active"),Q(".typography-content,.advanced-content").hide(),Q(".element-content").show()}),Q(".advanced-btn").on("click",function(){Q(this).parent().find(".active").removeClass("active"),Q(this).addClass("active"),Q(".element-content,.typography-content").hide(),Q(".advanced-content").show(),0==Q(this).hasClass("information-updated")&&(x("advanced"),Q(this).addClass("information-updated"))}),Q(".advance-info-btns").on("click",function(){Q(".advanced-info-box-inner").scrollTop(0)}),Q(document).on("mousedown",".ui-resizable-handle",function(){0==Q(this).parents(".yp-anim-process-inner").length&&(re.addClass("fake-layer-x-bg"),re.append("<div class='fake-layer-x'></div>"),Q(this).addClass("active"))}),Q(document).on("mouseup",".ui-resizable-handle,.fake-layer-x",function(){0==Q(this).parents(".yp-anim-process-inner").length&&(re.removeClass("fake-layer-x-bg"),Q(".fake-layer-x").remove(),Q(".ui-resizable-handle").removeClass("active"))});var t=288,c=d("rightPanelWidth",t);function B(e){var t,a,i=0,n=Q(window).width(),s=Q("#iframe-general-style");return e||s.remove(),re.hasClass("visual-css-view-active")&&(i+=Q("#visual-css-view").width()),re.hasClass("yp-css-editor-active")?i+=Q("#leftAreaEditor").width():i+=46,a=n-i,re.hasClass("yp-fixed-right-panel")&&0==re.hasClass("yp-clean-look-manual")&&0==b()&&(i+=Q(".yp-select-bar").width()),t=n-i,e?t:de()?(re.append("<style id='iframe-general-style'>#parent-bar{width:"+a+"px !important;}</style>"),!1):(re.append("<style id='iframe-general-style'>#iframe{width:"+t+"px !important;}#parent-bar{width:"+a+"px !important;}</style>"),void(0<ie.find(".context-menu-active").length&&le().contextMenu("hide")))}function _(){var a=[];0<Q(".yp-anim-process-bar-area").length&&Q(".yp-anim-process-bar-area").each(function(e){var t=Q(this).attr("data-selector-full");-1==a.indexOf(t)&&a.push(t)}),Q(".yp-animate-manager [data-toggle='tooltipAnim']").tooltip("destroy"),0<Q(".yp-anim-process-bar-delay.ui-resizable-e,.yp-anim-process-bar.ui-resizable-e").length&&Q(".yp-anim-process-bar-delay,.yp-anim-process-bar").resizable("destroy"),Q(".yp-anim-el-column,.yp-animate-bar").remove(),Q(".yp-anim-metric").empty();for(var e=1;e<61;e++)Q(".yp-anim-metric").append('<div class="second"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><b>'+e+"s</b></div>");for(var t,i,n,s,r,o,l,p,d,c,u,m,g=["single","template","global"],h=0,f=0;f<g.length;f++){var v,y=ee(g[f],!1),w=te(y,"[rule=animation-name]");for(e=0;e<w.length;e++)v=Pt(w[e]),-1==a.indexOf(v)&&a.push(v);if(0<a.length)for(e=0;e<a.length;e++){t=te(y,"[selector="+$a(a[e])+"][rule=animation-name]");for(var b=0;b<t.length;b++){h++,i=t[b].replace(/(\/\*)(.*?)\*\//g,""),n=/\[msize\=(.*?)\]/g.exec(t[b])[1].trim(),v=Pt(i),s=Bt(i),r="0s",o="1s",l="yp_onscreen",-1!=v.indexOf("yp_hover")?l="yp_hover":-1!=v.indexOf("yp_focus")?l="yp_focus":-1!=v.indexOf("yp_click")?l="yp_click":-1!=v.indexOf("yp_onscreen")&&(l="yp_onscreen"),d=p="",c=l.replace("yp_",""),""!==(p="desktop"==n?J.all_devices:n)&&(d=" <span class='yp-device-responsive'>"+p+"</span><span class='yp-type-anim-text'>"+Na(g[f])+"</span>"),u=v.replace(/\.(yp_onscreen|yp_hover|yp_click|yp_focus)/g,""),Q(".yp-anim-el-column-"+$a(u)+"[data-anim-media-size='"+n+"']").length,m="",m=0<ie.find(u).length?Na(Pa(u,!0,null)).replace(/\(\d+\)/g,""):Na(Ba(u));var x=te(y,"[selector="+$a(v)+"][rule=animation-duration][msize="+n+"]");0<x.length&&(o=Bt(o=x[0].replace(/(\/\*(.*?)\*\/|\n)/g,"")));var _=te(y,"[selector="+$a(v)+"][rule=animation-delay][msize="+n+"]");0<_.length&&(r=Bt(r=_[0].replace(/(\/\*(.*?)\*\/|\n)/g,"")));var k=Q.trim(o.replace("/[^0-9.]+/g","").replace(/ms/g,"").replace(/s/g,"")),C=Q.trim(r.replace("/[^0-9.]+/g","").replace(/ms/g,"").replace(/s/g,""));-1==s.indexOf(",")&&(k*=100,(C*=100)<10&&(C=10));var z="";10==C&&(z=" yp-delay-zero");var A,O,T,Z="<div class='yp-anim-process-bar-delay"+z+"' data-toggle='tooltipAnim' data-placement='top' title='"+J.delay+" "+parseFloat(r).toFixed(2)+"s' style='width:"+C+"px;'></div><div class='yp-anim-process-bar' data-toggle='tooltipAnim' data-placement='top' title='"+J.duration+": "+parseFloat(o).toFixed(2)+"s' style='width:"+k+"px;'><span class='animate-part-icons yp-control-trash' data-toggle='tooltipAnim' data-placement='top' title='"+J.delete_t+"'><span class='dashicons dashicons-trash'></span></span>"+s+"</div>";if(-1!=s.indexOf(",")){Z="";for(var S=0,F=0;F<s.split(",").length;F++){ve(A=-1!=C.toString().indexOf(",")?Q.trim(C.split(",")[F]):C)&&(A=0),ve(O=-1!=o.toString().indexOf(",")?Q.trim(o.split(",")[F]):o)&&(O="1s"),ve(T=-1!=k.toString().indexOf(",")?Q.trim(k.split(",")[F]):k)&&(T=1);var I=Q.trim(s.split(",")[F].replace(/\s+?!important/g,"").replace(/\;$/g,""));T*=100;var E=(A*=100)-S,D=E/100;E<=10&&(E=10,D="0s"),z="",10==E&&(z=" yp-delay-zero"),Z+="<div class='yp-anim-process-bar-delay"+z+"' data-toggle='tooltipAnim' data-placement='top' title='"+J.delay+" "+parseFloat(D).toFixed(2)+"s' style='width:"+E+"px;'></div><div class='yp-anim-process-bar' data-toggle='tooltipAnim' data-placement='top' title='"+J.duration+": "+parseFloat(O).toFixed(2)+"s' style='width:"+T+"px;'><span class='animate-part-icons yp-control-trash' data-toggle='tooltipAnim' data-placement='top' title='"+J.delete_t+"'><span class='dashicons dashicons-trash'></span></span>"+I+"</div>",S=A+T}}var M="";0==ua(u,!0,!1,!1)&&(M=" unavailable-animate-bar"),Q(".yp-anim-left-part-column").append("<div class='yp-anim-el-column yp-anim-el-column-"+$a(u)+M+"' data-anim-media-size='"+n+"'><i data-title='"+u+"'></i><span>"+m+"</span> <label>"+c+"</label>"+d+"</div>"),Q(".yp-anim-right-part-column").append("<div class='yp-animate-bar"+M+"' id='yp-animate-bar-"+h+"'><div class='yp-anim-process-bar-area' data-responsive='"+n+"' data-selector='"+u+"' data-selector-full='"+v+"' data-anim-type='"+g[f]+"'><div class='yp-anim-process-inner'>"+Z+"</div><a class='yp-anim-add' data-toggle='tooltipAnim' data-placement='right' title='"+J.add_new_anim+"'></a></div>")}}}Q(".yp-delay-zero").each(function(){var e=Q(".yp-anim-process-inner").offset().left-5,t=Q(this).next(".yp-anim-process-bar").offset().left-e;Q(this).css("left",t),Q(this).next(".yp-anim-process-bar").addClass("yp-anim-has-zero-delay")});var $=da(),R=Ue(),N=Q(".yp-anim-el-column-"+$a($)+"[data-anim-media-size='"+R+"']");fe($)&&0===N.length?(m="",m=0<ie.find($).length?Na(Pa($,!0,null)).replace(/\(\d+\)/g,""):Na(Ba($)),d="desktop"==R?" <span class='yp-device-responsive'>"+J.all_devices+"</span>":" <span class='yp-device-responsive'>"+R+"</span>",Q(".yp-anim-left-part-column").append("<div class='yp-anim-el-column anim-active-row yp-anim-el-column-"+$a($)+"' data-anim-media-size='"+R+"'><i data-title='"+$+"'></i><span>"+m+"</span> <label>onscreen</label>"+d+"<span class='yp-type-anim-text'>"+Na(ue())+"</span></div>"),Q(".yp-anim-right-part-column").append("<div class='yp-animate-bar anim-active-row' id='yp-animate-bar-current'><div class='yp-anim-process-bar-area' data-responsive='"+R+"' data-anim-type='"+Q(".active-customizing-list").attr("data-value")+"' data-selector='"+$+"' data-selector-full='"+$+".yp_onscreen'><div class='yp-anim-process-inner'></div><a class='yp-anim-add' data-toggle='tooltipAnim' data-placement='right' title='"+J.add_new_anim+"'></a></div>")):N.addClass("anim-active-row"),Q(".yp-anim-process-bar-delay,.yp-anim-process-bar").resizable({handles:"e",minWidth:10,start:function(){Q(".yp-anim-process-bar-delay,.yp-anim-process-bar").not(this).tooltip("disable").tooltip("hide")},resize:function(e,t){var a,i=Q(this),n=t.size.width,s=parseFloat(n/100).toFixed(2);i.hasClass("yp-anim-process-bar-delay")?(10==n&&(s="0"),a=J.delay+": "+s,n<=10?(i.addClass("yp-delay-zero"),i.next(".yp-anim-process-bar").addClass("yp-anim-has-zero-delay")):i.hasClass("yp-delay-zero")&&(i.removeClass("yp-delay-zero").css("left","0"),i.next(".yp-anim-process-bar").removeClass("yp-anim-has-zero-delay"))):a=J.duration+": "+s,Q(this).parents(".yp-animate-bar").find(".yp-delay-zero").each(function(){var e=Q(".yp-anim-process-inner").offset().left-5,t=Q(this).next(".yp-anim-process-bar").offset().left-e;Q(this).css("left",t)}),i.attr("data-original-title",a+"s").tooltip("show")},stop:function(){P(),Q(this).tooltip("hide"),Q(".yp-anim-process-bar-delay,.yp-anim-process-bar").tooltip("enable")}}),Q('[data-toggle="tooltipAnim"]').tooltip({animation:!1,container:".yp-animate-manager",html:!0}),Q("[data-toggle='tooltipAnim']").on("show.bs.tooltip",function(){Q("[data-toggle='tooltipAnim']").not(this).tooltip("hide")}),0===Q(".yp-animate-bar").length?(Q(".animation-manager-empty").show(),Q(".yp-anim-list-menu").hide()):Q(".animation-manager-empty").hide();var L=Math.max.apply(null,Q(".yp-anim-process-inner").map(function(){return Q(this).outerWidth(!0)}).get());Q(".yp-anim-process-bar-area").width(L+Q(window).width()),B()}function P(){se.addClass("yp-animate-manager-mode");var e=Math.max.apply(null,Q(".yp-anim-process-inner").map(function(){return Q(this).outerWidth(!0)}).get());Q(".yp-anim-process-bar-area").width(e+Q(window).width()),Q(".yp-animate-bar").each(function(){var i=Q(this).find(".yp-anim-process-bar-area").attr("data-selector-full"),n=[],s=[],r=[],o=0,l="",p=Q(this).find(".yp-anim-process-bar-area").attr("data-responsive"),d=Q(this).find(".yp-anim-process-bar-area").attr("data-anim-type");Q(this).find(".yp-anim-process-bar,.yp-anim-process-bar-delay").each(function(){var e=Q(this).width(),t=e/100;if(Q(this).hasClass("yp-anim-process-bar-delay")&&1==Q(this).parent().find(".yp-anim-process-bar-delay").length)10==e&&(t="0"),at(i,"animation-delay",Math.round(100*t)/100+"s","",p,d);else if(Q(this).hasClass("yp-anim-process-bar")&&1==Q(this).parent().find(".yp-anim-process-bar").length)at(i,"animation-duration",t,"s",p,d),at(i,"animation-name",Q(this).text(),"",p,d),n.push(Q(this).text());else if((1<Q(this).parent().find(".yp-anim-process-bar-delay").length||1<Q(this).parent().find(".yp-anim-process-bar").length)&&(Q(this).hasClass("yp-anim-process-bar-delay")&&(l=Q(this).offset().left-Q(this).parent(".yp-anim-process-inner").offset().left,l/=100,l=Math.round(100*l)/100,10<Q(this).width()?(o=Q(this).width()/100,o=Math.round(100*o)/100,s.push(o+l+"s")):s.push(l+"s")),Q(this).hasClass("yp-anim-process-bar"))){var a=Q(this).width()/100;r.push(a+"s"),n.push(Q(this).text())}}),1<s.length?(at(i,"animation-delay",s.toString(),"",p,d),at(i,"animation-duration",r.toString(),"",p,d),at(i,"animation-name",n.toString(),"",p,d)):0===n.length&&se.hasClass("yp-anim-removing")&&(at(i,"animation-delay","disable","",p,d),at(i,"animation-duration","disable","",p,d),at(i,"animation-name","disable","",p,d)),Ja()}),se.removeClass("yp-animate-manager-mode")}function u(){if(!1===de())return!1;var e=Q("#iframe");if(ve(window.FrameleftOffset)){var t=e.offset();window.FrameleftOffset=t.left,window.FrametopOffset=t.top}var a=e.width(),i=e.height(),n=window.FrameleftOffset+a;Q(".responsive-right-handle").css("left",n).css("top",window.FrametopOffset-2).css("height",i+2)}re.append("<style id='rightpanel-personalized-view'>.yp-select-bar{width:"+c+"px !important;}</style>"),c=d("visualManagerWidth",t=288),re.append("<style id='visual-manager-personalized-view'>#visual-css-view{width:"+c+"px !important;}</style>"),c=d("advancedInfoBoxWidth",300),re.append("<style id='advancedinfobox-personalized-view'>.advanced-info-box {width:"+c+"px !important;}</style>"),c=d("cssEditorWidth",400),re.append("<style id='csseditor-personalized-view'>#leftAreaEditor, #cssData, #cssEditorBar{width:"+c+"px !important;}body.yp-css-editor-active .metric,body.yp-css-editor-active .breakpoint-bar, body.yp-css-editor-active.yp-responsive-device-mode #iframe, body.yp-css-editor-active:not(.yp-responsive-device-mode) #iframe {left: "+c+"px !important;}body.yp-css-editor-active .breakpoint-bar div{margin-left: calc("+parseFloat(c+10)+"px - 56px) !important;}body.yp-css-editor-active .context-menu-root:not(.dom_contextmenu), body.yp-css-editor-active .metric-top-tooltip {margin-left: "+c+"px !important;}body.yp-css-editor-active .metric-top-border {margin-left: calc("+c+"px - 1px) !important;}body.yp-css-editor-active .metric-left-tooltip {margin-left: calc("+c+"px + 1px) !important;}body.yp-css-editor-active #parent-bar,body.yp-css-editor-active .responsive-size-text{left:"+c+"px !important;}</style>"),c=d("animManagerHeight",287),re.append("<style id='animmanager-personalized-view'>body.yp-animate-manager-active.yp-responsive-device-mode #iframe{height:calc(80% - "+c+"px) !important;}body.yp-animate-manager-active .responsive-size-text{margin-bottom:"+(c-25)+"px !important;}.yp-animate-manager{height:"+c+"px !important;}</style>"),Q(".yp-animate-manager-inner").on("scroll",function(){Q(".yp-anim-left-part-column").css("left",Q(this).scrollLeft())}),Q(window).click(function(){Q(".yp-anim-list-menu").is(":visible")&&Q(".yp-anim-list-menu").hide()}),Q(document).on("click",".yp-anim-list-menu ul li",function(e){ie.find(".yp_onscreen,.yp_hover,.yp_click,.yp_focus").removeClass("yp_onscreen yp_hover yp_click yp_focus");var t=Q(".yp-anim-add.active");re.addClass("yp-animate-manager-mode");var a=t.parent().attr("data-selector-full"),i=[],n=[],s=[],r=t.parents(".yp-anim-process-bar-area").attr("data-responsive"),o=t.parents(".yp-anim-process-bar-area").attr("data-anim-type");if(t.parent().find(".yp-anim-process-inner").is(":empty"))at(a,"animation-name",Q(this).data("value"),"",r,o);else{t.parent().find(".yp-anim-process-inner .yp-anim-process-bar").each(function(){i.push(Q(this).text()),n.push(Q(this).width()/100+"s")}),t.parent().find(".yp-anim-process-inner .yp-anim-process-bar-delay").each(function(){var e=(Q(this).offset().left-t.parent().find(".yp-anim-process-inner").offset().left)/100;Q(this).hasClass("yp-delay-zero")?s.push(e+"s"):s.push(e+Q(this).width()/100+"s")}),i.push(Q(this).data("value")),n.push("1s");var l=t.parent().find(".yp-anim-process-inner .yp-anim-process-bar").last(),p=(l.offset().left+l.width()-t.parent().find(".yp-anim-process-inner").offset().left)/100;s.push(p+"s"),at(a,"animation-name",i.toString(),"",r,o),at(a,"animation-duration",n.toString(),"",r,o),at(a,"animation-delay",s.toString(),"",r,o)}re.removeClass("yp-animate-manager-mode"),setTimeout(function(){_(),P()},100)}),Q(document).on("click",".yp-anim-add",function(e){e.stopPropagation();var t=Q(this).offset().top,a=Q(this).offset().left,i=Q(".yp-anim-list-menu ul");Q(".yp-anim-list-menu").removeAttr("style").removeClass("yp-anim-list-top");var n="";Q.each(JSON.parse(Q("#animation-name-group textarea").val()),function(e,t){"none"!=t.value&&(n+="<li data-value='"+t.value+"' data-text='"+t.label+"' data-content='"+t.label+"'>"+t.label+"</li>")}),i.html(n);var s=Q(window).height()-t-46;s<150?Q(".yp-anim-list-menu").addClass("yp-anim-list-top"):i.height()>s&&i.height(s),Q(".yp-anim-list-menu").css("left",a).css("top",t).show(),Q(".yp-anim-list-menu").css("margin-left","-"+parseInt(Q(".yp-anim-list-menu").width()/2-10)+"px"),Q(".yp-anim-add").removeClass("active"),Q(this).addClass("active")}),Q(".yp-info-modal-close").click(function(){Q(this).parent().parent().fadeOut("fast"),Q(".yp-popup-background").fadeOut("fast")}),Q(".yp-popup-background").click(function(){Q(this).fadeOut(),Q(".yp-info-modal").fadeOut("fast")}),Q(".cursor-main-btn").mousedown(function(){0==Q(this).hasClass("active")?(Q(this).addClass("active"),Q(".yp-ruler-btn").removeClass("active"),se.toggleClass("yp-metric-disable")):Q(".inspector-sublist").toggle()}),Q(".inspector-sublist li").click(function(){var e=Q(this).attr("data-cursor-action");Q(".yp-ruler-btn").hasClass("active")&&Q(".yp-ruler-btn").trigger("click"),"default"==e?(se.removeClass("yp-sharp-selector-mode-active"),ne.removeClass("yp-sharp-selector-mode-active"),window.singleInspector=!1,se.addClass("yp-body-selector-mode-active")):"single"==e?(se.addClass("yp-sharp-selector-mode-active"),window.singleInspector=!0):(se.removeClass("yp-body-selector-mode-active yp-sharp-selector-mode-active"),_t()),Q(".inspector-sublist").toggle(),Q(".inspector-sublist li").removeClass("active"),Q(this).addClass("active")}),se.on("click",function(e){"block"==Q(".inspector-sublist").css("display")&&0==Q(e.target).is(".cursor-main-btn,.cursor-main-btn *,.inspector-sublist,.inspector-sublist *")&&Q(".inspector-sublist").hide(),"block"==Q(".interface-settings").css("display")&&0==Q(e.target).is(".left-menu-btn,.left-menu-btn *,.interface-settings,.interface-settings *")&&(Q(".left-menu-btn").toggleClass("yhover"),Q(".interface-settings").hide())}),window.responsiveModeRMDown=!1,window.SelectorDisableResizeRight=!1,window.rulerWasActive=!1,window.selectorWasActive=!1,Q(".responsive-right-handle").on("mousedown",function(e){window.responsiveModeRMDown=!0,se.addClass("yp-clean-look yp-responsive-resizing yp-responsive-resizing-right yp-hide-borders-now"),Q(".property-size.active").removeClass("active"),Te(),Q(".yp-selector-mode").hasClass("active")?window.selectorWasActive=!0:window.selectorWasActive=!1,Q(".yp-ruler-btn").hasClass("active")?window.rulerWasActive=!0:(window.rulerWasActive=!1,Q(".yp-ruler-btn").trigger("click").removeClass("active")),Q(".yp-selector-mode").hasClass("active")&&!1===pe()&&(Q(".yp-selector-mode").trigger("click"),window.SelectorDisableResizeRight=!0),setTimeout(function(){Q(".metric-left-tooltip").html("X : <span>"+parseInt(Q("#iframe").width())+"</span> px")},1)}),e.on("mousemove",function(e){if(!0===window.responsiveModeRMDown){var t=B(!0);re.hasClass("yp-css-editor-active")?e.pageX=e.pageX-d("cssEditorWidth",400)-10:e.pageX=e.pageX-window.leftbarWidth-10,e.pageX<320&&(e.pageX=320),e.pageX>t-80-49&&(e.pageX=t-80-49),Q("#iframe").width(e.pageX),u(),Te(),Q(".breakpoint-bar div").removeClass("active");var a=Q(".breakpoint-bar div[data-breakpoint="+e.pageX+"]");0<a.length&&a.addClass("active")}}),e.on("mouseup",function(){if(!0===window.responsiveModeRMDown){if(b()&&_(),window.responsiveModeRMDown=!1,se.removeClass("yp-clean-look yp-responsive-resizing yp-responsive-resizing-right"),setTimeout(function(){se.removeClass("yp-hide-borders-now"),Be()},25),!0===window.SelectorDisableResizeRight&&(window.SelectorDisableResizeRight=!1),!1===window.rulerWasActive&&Q(".yp-ruler-btn").addClass("active").trigger("click"),!0===window.selectorWasActive?!1===Q(".yp-selector-mode").hasClass("active")&&Q(".yp-selector-mode").trigger("click"):Q(".yp-selector-mode").hasClass("active")&&Q(".yp-selector-mode").trigger("click"),0<Q(".breakpoint-bar .active").length){var e=ya(Q(".breakpoint-bar .active").attr("data-media-content"));fe(e)&&(e=e.toString(),0<Q(".property-size[data-property-size='"+e+"']").length&&Q(".property-size[data-property-size='"+e+"']").addClass("active"))}Ze(),pe()&&Ie(!0)}});var k=0;function C(e){0===ie.find("#yp-live-css-data").length&&kt().after("<style id='yp-live-css-data'></style>"),function(e){if(e.split("{").length!=e.split("}").length)return;var t,a,i,n=(e=e.replace(/\*\/(body)?\.yp-selector-(.*?)\n/gi,"*/\n$1.yp-selector-$2")).match(/\/\*(.*?)\*\/\n(.*?){/gi);if(null==n)return;for(var s=0;s<n.length;s++)t=n[s],i=t.split("*/")[0].replace(/\/\*/g,"").replace(/(\r\n|\n|\r|\t)/g,"").trim(),a=t.split("*/")[1].replace(/(\r\n|\n|\r|\t)/g,"").replace(/(\{|\})/g,"").trim(),1!=/\@media/g.test(a)&&null!=a&&null!=a&&null!=i&&null!=i&&Ya(a,i);Ua()}(e=qe(e)),re.addClass("yp-need-to-process"),ie.find("#yp-live-css-data").html(e),kt().empty(),ie.find(".yp-live-css").remove(),Q(".yp-save-btn").html(J.save).removeClass("yp-disabled").addClass("waiting-for-save"),kt().addClass("yp-data-updated"),Q(".active-customizing-list").addClass("customizing-type-updated")}function z(){return!1!==l.session.getUndoManager().hasUndo()&&(!(y()||w()||v()||re.hasClass("yp-processing-now"))&&(ce()?(g({title:J.sorry,text:J.cantUndo,animation:!1,customClass:"editor-style-ok"}),!1):b()?(g({title:J.sorry,text:J.cantUndoAnimManager,animation:!1,customClass:"editor-style-ok"}),!1):(l.commands.exec("undo",l),C(l.getValue()),T(),de()&&Oe(),Ze(),re.hasClass("visual-css-view-active")&&(It(),Ot()),setTimeout(function(){Ne()},10),void Be())))}function O(){return!1!==l.session.getUndoManager().hasRedo()&&(!(y()||w()||v()||re.hasClass("yp-processing-now"))&&(ce()?(g({title:J.sorry,text:J.cantUndo,animation:!1,customClass:"editor-style-ok"}),!1):b()?(g({title:J.sorry,text:J.cantUndoAnimManager,animation:!1,customClass:"editor-style-ok"}),!1):(l.commands.exec("redo",l),C(l.getValue()),T(),de()&&Oe(),Ze(),re.hasClass("visual-css-view-active")&&(It(),Ot()),setTimeout(function(){Ne()},10),void Be())))}function T(){!1===l.session.getUndoManager().hasUndo()?Q(".undo-btn").addClass("disabled"):Q(".undo-btn").removeClass("disabled"),!1===l.session.getUndoManager().hasRedo()?Q(".redo-btn").addClass("disabled"):Q(".redo-btn").removeClass("disabled")}function S(e){return Q(e).attr("id").replace("-group","")}function fe(e){return void 0!==e&&!1!==e&&""!=e&&" "!=e&&"undefined"!=e&&null!==e}function ve(e){return void 0===e||!1===e||""===e||" "==e||"undefined"==e||null===e}function F(e,t,a){if(window.mouseoverTrigger=!0,a&&_t(),"*"==e.trim())return!1;var i=ua(Wa(e,!0,!0,!1,!1),!0,!1,!1);if(0==i)return!1;0<ie.find(".yp-will-selected").length?(ie.find(".yp-will-selected").trigger("mouseover").trigger("click"),ie.find(".yp-will-selected").removeClass("yp-will-selected")):null!==t?t.trigger("mouseover").trigger("click"):i.filter(":visible").first().trigger("mouseover").trigger("click"),1<i.length&&ie.find(e).not(".yp-selected,.yp-multiple-selected").addClass("yp-selected-others"),se.addClass("yp-content-selected"),re.hasClass("yp-control-key-down")||(window.firstSelectLimit=!0),window.orginalHeight=parseFloat(i.css("height").replace(/px/g,"")),window.orginalWidth=parseFloat(i.css("width").replace(/px/g,"")),"right"==i.css("float")?se.addClass("yp-element-float"):se.removeClass("yp-element-float");var n=i.prop("tagName").toLowerCase();"ul"==n||"ol"==n||"li"==n?se.addClass("yp-element-list"):se.removeClass("yp-element-list");var s=i.css("display");"flex"!=s&&"inline-flex"!=s||(se.addClass("yp-flex-container"),Q("li.flex-option").insertBefore(Q("li.grid-option"))),0<i.parent().length&&("flex"!=(s=i.parent().css("display"))&&"inline-flex"!=s||(se.addClass("yp-flex-element"),Q("li.flex-option").insertBefore(Q("li.grid-option")))),"grid"!=(s=i.css("display"))&&"inline-grid"!=s||(se.addClass("yp-grid-element"),Q("li.grid-option").insertBefore(Q("li.flex-option"))),oe.general.find(".yp-selected-tooltip").html("<small class='yp-tooltip-small'>"+oe.general.find(".yp-selected-tooltip small").html()+"</small> "+e),/:/g.test(e)&&(/:hover/g.test(e)&&(se.addClass("yp-selector-hover"),se.attr("data-yp-selector",":hover"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:hover/g,"")),/:focus/g.test(e)&&(se.addClass("yp-selector-focus"),se.attr("data-yp-selector",":focus"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:focus/g,"")),/:visited/g.test(e)&&(se.addClass("yp-selector-visited"),se.attr("data-yp-selector",":visited"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:visited/g,"")),/:link/g.test(e)&&(se.addClass("yp-selector-link"),se.attr("data-yp-selector",":link"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:link/g,"")),/:active/g.test(e)&&(se.addClass("yp-selector-active"),se.attr("data-yp-selector",":active"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:active/g,"")),/:checked/g.test(e)&&(se.addClass("yp-selector-checked"),se.attr("data-yp-selector",":checked"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:checked/g,"")),/:disabled/g.test(e)&&(se.addClass("yp-selector-disabled"),se.attr("data-yp-selector",":disabled"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:disabled/g,"")),/:enabled/g.test(e)&&(se.addClass("yp-selector-enabled"),se.attr("data-yp-selector",":enabled"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:enabled/g,"")),/:invalid/g.test(e)&&(se.addClass("yp-selector-invalid"),se.attr("data-yp-selector",":invalid"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:invalid/g,"")),/:valid/g.test(e)&&(se.addClass("yp-selector-valid"),se.attr("data-yp-selector",":valid"),oe.general.find(".yp-selected-tooltip span").remove(),e=e.replace(/:valid/g,""))),window.setSelector=e,se.attr("data-clickable-select",e),jt(),re.hasClass("yp-css-editor-active")&&Ie(),Ot(),0==window.targetIsParentTree&&1==ypOption.show_parent_tree&&$e(),Ze(),Ne(),Be(),b()&&_(),"block"==Q(".advanced-info-box").css("display")&&x("element"),window.setSelector=!1,window.mouseoverTrigger=!1,Ua()}e.on("keyup",function(e){k=new Date;var t=e.target.tagName.toLowerCase(),a=!1,i=!1;!0!==e.ctrlKey&&!0!==e.metaKey||(a=!0),"input"!=t&&"textarea"!=t||(i=!0),!1===a&&!1===i&&(se.removeClass("yp-control-key-down"),ie.find(".yp-multiple-selected").removeClass("yp-multiple-selected"),oe.other.find(".yp-selected-others-multiple-box").remove())}),e.on("keydown",function(e){var t=new Date,a=e.target.tagName.toLowerCase(),i=Q(e.target),o=e.keyCode||e.which,n=!1,l=!!e.shiftKey,s=!1;if((!0!==e.ctrlKey&&!0!==e.metaKey||(n=!0),"input"!=a&&"textarea"!=a||(s=!0),46==o&&!1===n&&!1===s&&(at(null,"display","none",""),Ja(),_t(),Ne()),80==o&&!1===n&&!1===s)&&(pe()&&0<le().parent().length&&"html"!=le().parent().prop("tagName").toLowerCase()))return le().parent().addClass("yp-will-selected"),_t(),F(Q.trim(fa(ie.find(".yp-will-selected"),"default")),null,!1),!1;if(27==o&&!1===n){if(y()||w())return!1;if("none"==Q(".sweet-alert").css("display")||0===Q(".sweet-alert").length){if("none"!=Q(".yp-popup-background").css("display"))return Q(".yp-info-modal-close").trigger("click"),!1;if(se.hasClass("yp-selector-editor-active"))return Q("#yp-selector-editor").val(""),Ce("#yp-selector-editor"),!1}}if(!1===n&&!1===s&&!0===l&&0==re.hasClass("yp-iframe-mouseleave")&&37!=o&&38!=o&&39!=o&&40!=o&&setTimeout(function(){if(+k<+t&&pe()){se.addClass("yp-control-key-down");var e=ie.find(".yp-recent-hover-element");0<e.length&&(window.mouseoverTrigger=!0,e.trigger("mouseover"),window.mouseoverTrigger=!1)}},200),!1===n&&!1===s&&(38!=o&&40!=o&&37!=o&&39!=o||pe()&&!1===v()&&0==re.hasClass("yp-iframe-mouseleave")&&(e.preventDefault(),clearTimeout(window.KeymovingDelay),window.KeymovingDelay=setTimeout(function(){var e=le(),t=parseInt(e.css("top")),a=parseInt(e.css("left"));isNaN(t)&&(t=0),isNaN(a)&&(a=0);var i=1;if(l&&(i=10),38==o?t-=i:40==o&&(t+=i),37==o?a-=i:39==o&&(a+=i),t+="px",a+="px",38==o||40==o){at(null,"top",t,"");var n=parseInt(e.css("bottom"));isNaN(n)&&(n=0),parseFloat(t)+parseFloat(n)!==0&&at(null,"bottom","auto","")}if(37==o||39==o){at(null,"left",a,"");var s=parseInt(e.css("right"));isNaN(s)&&(s=0),parseFloat(a)+parseFloat(s)!==0&&at(null,"right","auto","")}var r=e.css("position");"static"!=r&&"relative"!=r||at(null,"position","relative",""),0<Q("li.position-option.active").length?Q("#top-group,#left-group").each(function(){Yt(S(this))}):Q("li.position-option").removeAttr("data-loaded"),Ja()},40))),8==o&&!1===n&&!1===s)return e.preventDefault(),!1;if(90==o&&1==n&&!1===s)return e.preventDefault(),clearTimeout(window.historyDelay),re.hasClass("yp-history-delay")?window.historyDelay=setTimeout(function(){z()},220):setTimeout(function(){z()},50),!1;if(71==o&&!0===n&&!1===s)return e.preventDefault(),se.toggleClass("yp-smart-guide-disabled"),!1;if(89==o&&!0===n&&!1===s)return e.preventDefault(),clearTimeout(window.historyDelay),re.hasClass("yp-history-delay")?window.historyDelay=setTimeout(function(){O()},220):setTimeout(function(){O()},50),!1;if(27==o&&!1===n){if(e.preventDefault(),0<Q(".ui-draggable-dragging").length)return!1;if(0<Q("#yp-customizing-type-frame").length&&0==s&&"block"==Q("#yp-customizing-type-frame").css("display"))return Q("#yp-current-page").removeClass("active"),Q("#yp-customizing-type-frame").css("display","none"),!1;if("block"==Q("#image_uploader").css("display")&&0==s)return Q("#image_uploader").toggle(),Q("#image_uploader_background").toggle(),Q(".yp-upload-btn").toggleClass("active"),!1;if((0==s||i.is("#search"))&&0<Q(".yp-search-btn:not(.active)").length)return Q(".yp-search-btn:not(.active)").trigger("click"),!1;if(i.hasClass("wqcolorpicker"))return i.blur(),i.next(".iris-picker").hide(),!1;if(0<Q(".info-btn.active").length)return Q(".info-btn.active").trigger("click"),!1;if(re.hasClass("yp-element-picker-active")&&0==s)return Q(".yp-element-picker.active").trigger("click"),!1;if(!1===re.hasClass("autocomplete-active")&&0===Q(".iris-picker:visible").length&&"none"==Q(".sweet-alert").css("display")||0===Q(".sweet-alert").length&&0==s){if(re.hasClass("css-editor-close-by-editor"))return re.removeClass("css-editor-close-by-editor"),!1;if("block"==Q("#cssEditorBar").css("display"))return Q(".css-editor-btn").trigger("click"),!1;if(re.hasClass("visual-css-view-active")&&0==s)return Ft(),!1;if(0<Q("#context-menu-layer:visible").length)return Q("#context-menu-layer,.context-menu-list").hide(),!1;if(pe())return _t(),Ne(),!1}}if(32==o&&!1===l&&!1===n&&!1===s&&pe())return e.preventDefault(),be(null,!1),!1;if(32==o&&!1===l&&!1===s&&!1===pe()&&Q(".yp-selector-mode").hasClass("active"))return e.preventDefault(),0<ie.find(".yp-selected").length&&F(re.hasClass("yp-sharp-selector-mode-active")?Q.trim(fa(null,"sharp")):Q.trim(fa(null,"default")),le(),!0),!1;if(32==o&&!0===l&&!1===s&&!0===pe()&&Q(".yp-selector-mode").hasClass("active")){if(e.preventDefault(),0==ie.find(".yp-multiple-selected").length)return!1;var r=da(),p=fa(ie.find(".yp-multiple-selected"),"sharp");return oe.other.find(".yp-selected-others-multiple-box").remove(),ie.find(".yp-multiple-selected").addClass("yp-selected-others").removeClass("yp-multiple-selected"),F(r+","+p,le(),!0),!1}return 82==o&&!1===n&&!1===s?(e.preventDefault(),Q(".yp-responsive-btn").trigger("click"),!1):77==o&&!1===n&&!1===s?(e.preventDefault(),Q(".yp-ruler-btn").trigger("click"),!1):87==o&&!1===n&&!1===s?(e.preventDefault(),Q(".yp-wireframe-btn").trigger("click"),!1):68==o&&!1===n&&!1===s?(e.preventDefault(),Q(".info-btn:not(.active)").trigger("click"),!1):72==o&&!1===n&&!1===s?(e.preventDefault(),we(),!1):0<Q(".css-editor-btn").length&&162==o&&!1===n&&!1===s&&!1===re.hasClass("process-by-code-editor")?(e.preventDefault(),ce()?g({title:J.sorry,text:J.cantEditor,animation:!1,customClass:"editor-style-ok"}):Q(".css-editor-btn").trigger("click"),!1):192==o&&!1===n&&!1===s&&!1===re.hasClass("process-by-code-editor")?(e.preventDefault(),ce()?g({title:J.sorry,text:J.cantEditor,animation:!1,customClass:"editor-style-ok"}):Q(".css-editor-btn").trigger("click"),!1):70==o&&!1===n&&!1===s?(e.preventDefault(),Q(".yp-search-btn.active").trigger("click"),0==Q(".yp-search-btn.active").length&&Q("#search").focus(),!1):void 0}),l.commands.addCommand({name:"close",bindKey:{win:"ESC",mac:"ESC"},exec:function(){Q(".css-editor-btn").trigger("click"),re.addClass("css-editor-close-by-editor")},readOnly:!1}),ie.find("form").submit(function(e){return e.preventDefault(),!1}),Q(".yp-ruler-btn").click(function(){return ie.find(".yp-recent-hover-element").removeClass("yp-recent-hover-element"),!1===pe()&&_t(),se.toggleClass("yp-metric-disable"),Ne(),Q(".cursor-main-btn").toggleClass("active"),!1}),Q(".yp-after-css-val").keydown(function(e){var t=e.keyCode||e.which;38==t&&(e.preventDefault(),Q(this).val(parseFloat(Q(this).val())+parseFloat(1))),40==t&&(e.preventDefault(),Q(this).val(parseFloat(Q(this).val())-parseFloat(1)))}),Q(".yp-after-css-val").on("click",function(){Q(this).hasClass("select-able")||Q(this)[0].setSelectionRange(0,Q(this).val().length),Q(this).addClass("select-able")}).on("blur",function(){Q(this).removeClass("select-able")}),Q.fn.hasAttr=function(e){return void 0!==this.attr(e)},Q.fn.getCursorPosition=function(){var e=this.get(0);if(e){if("selectionStart"in e)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange(),a=document.selection.createRange().text.length;return t.moveStart("character",-e.value.length),t.text.length-a}}},Q.fn.cssImportant=function(e,t){this.css(e,t),Q(this).attr("style",this.attr("style").replace(e+": "+t,e+": "+t+" !important"))},Q(".yp-button-live").click(function(){var t=Q(this),a=t.attr("data-href");if(t.addClass("live-btn-loading"),re.hasClass("yp-yellow-pencil-demo-mode"))return g({title:J.live_preview_alert,type:"info",animation:!1,customClass:"editor-style-ok"}),t.removeClass("live-btn-loading"),!1;var e,i="";ie.find(".yp-inline-data").each(function(){e=Q(this).attr("data-source-mode"),i+=Ct(!0,e,!1)}),Q.post(ajaxurl,{action:"yp_preview_data_save",yp_data:i,_wpnonce:window.yp_editor_nonce}).always(function(e){return t.removeClass("live-btn-loading"),window.open(a,a),!1})}),window.cacheFirstLoad=[ue()];for(var E=["single","template","global"],D=0;D<E.length;D++)E[D]!=window.cacheFirstLoad&&(n(E[D]),l.setValue(Ct(!0,E[D],!0)),l.getSession().setUndoManager(new ace.UndoManager));function M(){Q(".anim-bar").hasClass("anim-bar-dragged")||Q(".anim-bar").css("left",parseFloat(Q(window).width()/2)-Q(".anim-bar").width()/2)}function $(e){var t,a=Q(".scenes .scene").length,i="";for(t=1;t<a;t++)i=i+Q(".scenes .scene-"+t+" input").val()+"% {",ie.find("#yp-anim-scenes").find(".style-scene-"+t).each(function(){i=i+Q(this).html().match(/\{(.*?)\}/g).toString().replace("{","").replace("}","")+";"}),i+="}";var n,s,r,o,l,p,d=i.replace(/\}/g,"}YKSYXA").split("YKSYXA").reverse(),c=[];for(t=1;t<d.length;t++){if(s=Q.trim(d[t]),p=Q.trim(d[t]),s=s.split("{")[1].split("}")[0],d.length-1==t)for(var u=0;u<c.length;u++){o=0;var m=new RegExp("({|;)"+c[u]+":");if(null!==p.match(m)&&(o=parseInt(p.match(m).length)),0===o){var g=le(),h=g.css(c[u]);if("top"==c[u]&&"auto"==h&&(h="0px"),"left"==c[u]&&"auto"==h&&(h="0px"),"width"==c[u]&&"auto"==h&&(h=g.width()),"height"==c[u]&&"auto"==h&&(h=g.height()),"opacity"==c[u]&&"auto"==h&&(h="1"),"right"!=c[u]&&"auto"!=h&&"bottom"!=c[u]&&"auto"!=h){var f=c[u]+":"+h+";";p=p.toString().replace(/\}$/,"")+f+"}",i=i.replace("0% {","0% {"+f),f}}}for(r=s.split(";"),n=0;n<r.length;n++)if(""!=r[n].split(":")[0]){var v=r[n].split(":")[0];l=0,null!==i.match("{"+v+":")&&(l=parseInt(i.match("{"+v+":").length)),null!==i.match(";"+v+":")&&(l+=parseInt(i.match(";"+v+":").length)),l<parseInt(a-1)&&c.push(v)}}var y=i.replace(/\}/g,"}TYQA").split("TYQA"),w=[],b=[];for(t=0;t<y.length;t++)if(""!=(s=Q.trim(y[t]))&&" "!=s){for(r=(s=s.split("{")[1].split("}")[0]).split(";"),n=0;n<r.length;n++)if(""!=r[n].split(":")[0]){var x=r[n].split(":")[0],_=r[n].replace(/^(.*?):(.*?)$/g,"$2");_=Q.trim(_).replace(/\s+?!important/g,"").replace(/\;$/g,"");var k=w.indexOf(x);-1!=k&&(w.splice(k,1),b.splice(k,1)),w.push(x),b.push(_)}for(var C="{"+s,z=0;z<w.length;z++){var A=w[z],O=b[z];o=0,null!==C.match("{"+A+":")&&(o=parseInt(C.match("{"+A+":").length)),null!==C.match(";"+A+":")&&(o=l+parseInt(C.match(";"+A+":").length)),o<1&&(C="{"+A+":"+O+";"+C.replace("{",""))}var T=Q.trim(y[t]).split("{")[0]+"{"+s.replace("{","")+"}",Z=Q.trim(y[t]).split("{")[0]+"{"+C.replace("{","")+"}";i=i.replace(T,Z)}return i=(i=(i="@keyframes "+e+"{\r"+i+"\r}").replace(/\}/g,"}\r")).replace(";;","")}function R(e){se.removeClass("yp-anim-creator").removeAttr("data-anim-scene").removeClass("yp-animate-test-playing"),se.removeAttr("data-anim-scene");var t=Q.trim(re.attr("class").replace(/yp-scene-[0-9]/g,""));re.attr("class",t),t=Q.trim(ne.attr("class").replace(/yp-scene-[0-9]/g,"")),ne.attr("class",t),ie.find("#yp-anim-scenes #scene-1,#yp-anim-scenes #scene-2,#yp-anim-scenes #scene-3,#yp-anim-scenes #scene-4,#yp-anim-scenes #scene-5,#yp-anim-scenes #scene-6").empty(),Ze(),Q(".anim-bar .scenes .scene:not(.scene-1):not(.scene-2):not(.scene-add)").each(function(){Q(this).remove()}),ie.find("#animate-test-drive").empty(),Q(".scene-add").show(),e&&(at(null,"animation-name",window.animGeneratorOldAnim,""),at(null,"animation-duration",window.animGeneratorOldAnimDuration,window.animGeneratorOldAnimDurationF),at(null,"animation-delay",window.animGeneratorOldAnimDelay,window.animGeneratorOldAnimDelayF),at(null,"animation-fill-mode",window.animGeneratorOldAnimFillMode,"")),Ne(),Be()}function N(){setTimeout(function(){var e=0;if(0<Q(".yp_bg_assets.active").length){var t=Q(".yp_bg_assets.active").index();e=68*(parseInt(t/4)-1.5)}Q(".yp_background_assets").scrollTop(e),L()},10)}function L(){Q(".yp_background_assets .yp_bg_assets:in-viewport").each(function(){Q(this).css("backgroundImage","url("+pluginurl+"assets/"+Q(this).data("url")+")")})}function W(t,a){var i,n,s,r="",o=0,l=0;ie.find(".yp-data-updated").each(function(){var e;o++,i=Q(this).attr("data-source-mode"),e=i,n=(n=(n=ie.find("[data-source-mode='"+e+"']").html()).replace(/\/\*\s+\[/g,"YPOGRP")).replace(/\]\s+\*\//g,"YPEGRP"),s=Ct(!0,i,!1),"home"==t&&"single"==i&&(i="template",a=t),"login"!=t&&"lostpassword"!=t&&"register"!=t||"single"==i&&(i="template",a=t),r+=s,"single"==i?Q.post(ajaxurl,{action:"yp_ajax_save",yp_page_id:t,yp_page_type:"",yp_data:s,yp_editor_data:n,_wpnonce:window.yp_editor_nonce}).done(function(e){l++}).fail(function(){Q(".yp-save-btn").html(J.save).removeClass("yp-disabled").addClass("waiting-for-save"),clearInterval(window.savingChecker),g({title:J.save_error,text:J.save_error_msg,animation:!1,customClass:"editor-style-ok"})}):"template"==i?Q.post(ajaxurl,{action:"yp_ajax_save",yp_page_id:"",yp_page_type:a,yp_data:s,yp_editor_data:n,_wpnonce:window.yp_editor_nonce}).done(function(e){l++}).fail(function(){Q(".yp-save-btn").html(J.save).removeClass("yp-disabled").addClass("waiting-for-save"),clearInterval(window.savingChecker),g({title:J.save_error,text:J.save_error_msg,animation:!1,customClass:"editor-style-ok"})}):Q.post(ajaxurl,{action:"yp_ajax_save",yp_page_id:"",yp_page_type:"",yp_data:s,yp_editor_data:n,_wpnonce:window.yp_editor_nonce}).done(function(e){l++}).fail(function(){Q(".yp-save-btn").html(J.save).removeClass("yp-disabled").addClass("waiting-for-save"),clearInterval(window.savingChecker),g({title:J.save_error,text:J.save_error_msg,animation:!1,customClass:"editor-style-ok"})})}),Q.post(ajaxurl,{action:"yp_preview_data_save",yp_data:r,_wpnonce:window.yp_editor_nonce}).done(function(e){l++}).fail(function(){Q(".yp-save-btn").html(J.save).removeClass("yp-disabled").addClass("waiting-for-save"),clearInterval(window.savingChecker),g({title:J.save_error,text:J.save_error_msg,animation:!1,customClass:"editor-style-ok"})}),Q.post(ajaxurl,{action:"yp_save_comments_option",yp_selector_comments:JSON.stringify(window.selectorComments),_wpnonce:window.yp_editor_nonce}).done(function(e){l++}).fail(function(){Q(".yp-save-btn").html(J.save).removeClass("yp-disabled").addClass("waiting-for-save"),clearInterval(window.savingChecker),g({title:J.save_error,text:J.save_error_msg,animation:!1,customClass:"editor-style-ok"})}),window.savingChecker=setInterval(function(){l==o+2&&(Q(".yp-save-btn").html(J.saved).addClass("yp-disabled").removeClass("waiting-for-save"),clearInterval(window.savingChecker),ie.find(".yp-data-updated").removeClass("yp-data-updated"),Q(".customizing-type-updated").removeClass("customizing-type-updated"),Q.post(ajaxurl,{action:"yp_ajax_update_css",_wpnonce:window.yp_editor_nonce}),tt(!0))},200)}function j(e,t,a,i){var n,s,r=e.add(e.parents()),o=!0;return r.each(function(){if(s=Q(this),n=null,!1===s.hasClass("yp-animating")){if("forwards"==(n=s.css("animationFillMode"))||"both"==n){if(!0===(o=q(s,t,a,i,n)))return!1}else if(!0===(o=q(s,t,a,i)))return!1}else if(!0===(o=q(s,t,a,i)))return!1}),o}function q(e,t,a,i,n){var s=e.css(t);if("transform"==t&&"matrix(1, 0, 0, 1, 0, 0)"==s&&(s="none"),"=="==i){if(s===a)return void 0!==n&&e.css("animationFillMode",n),!0}else if(s!==a)return void 0!==n&&e.css("animationFillMode",n),!0;return void 0!==n&&e.css("animationFillMode",n),!1}n(),l.setValue(Ct(!0,null,!0)),l.getSession().setUndoManager(new ace.UndoManager),Q('[data-toggle="tooltipTopBottom"]').tooltip({animation:!1,container:".yp-select-bar",template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',html:!0}),Q('[data-toggle="tooltip-bar"]').tooltip({animation:!1,container:"body",html:!0}),Q(".info-btn").on("show.bs.tooltip",function(){if(Q(this).hasClass("active"))return!1}),Q(".yp-none-btn").tooltip({animation:!1,container:".yp-select-bar",title:J.none,delay:{show:50,hide:0}}),Q('[data-toggle="tooltipAnimGenerator"]').tooltip({animation:!1,html:!0}),Q('[data-toggle="tooltip"]').tooltip({animation:!1,container:".yp-select-bar",html:!0}).on("shown.bs.tooltip",function(){0<Q(".popover").length&&Q(this).tooltip("hide")}),Q('[data-toggle="popover"]').popover({animation:!1,trigger:"hover",container:".yp-select-bar"}),Q(".yp-option-group,.yp-advanced-option").on("shown.bs.popover",function(){parseFloat(Q(".popover").css("top"))<80&&Q(this).popover("hide")}),Q(".yp-select-bar").draggable({handle:".yp-editor-top",cancel:".yp-editor-top *",start:function(){re.append("<div class='fake-layer' style='background-color:rgba(0,0,0,0.05);'></div>"),re.hasClass("yp-fixed-right-panel")&&(Q(".fixed_right_panel_checkbox input").prop("checked",!1).trigger("change"),o("fixed_right_panel","false"),we(!0),B(),Be(),yt())},drag:function(e,t){t.position.top=Math.max(-30,t.position.top),t.position.top=Math.min(Q(window).height()-30,t.position.top),t.position.left>Q(window).width()-Q(".yp-select-bar").width()?Q(".yp-right-panel-placeholder").show():Q(".yp-right-panel-placeholder").hide(),Ne()},stop:function(e,t){Q(".fake-layer").remove(),setTimeout(function(){yt()},5),Q(".yp-right-panel-placeholder").hide(),t.position.left>Q(window).width()-Q(".yp-select-bar").width()&&(Q(".fixed_right_panel_checkbox input").prop("checked",!0).trigger("change"),o("fixed_right_panel","true"),B(),Ne(),Be(),yt())}}),Q(".anim-bar").draggable({handle:".anim-bar-title",start:function(){re.append("<div class='fake-layer'></div>")},drag:function(e,t){t.position.top=Math.max(-30,t.position.top)},stop:function(){Q(".anim-bar").addClass("anim-bar-dragged"),Q(".fake-layer").remove(),setTimeout(function(){yt()},5)}}),Q(".top-area-btn-group,.yp-select-bar,.metric,.search-box,#visual-css-view,#leftAreaEditor,.advanced-info-box,.yp-animate-manager").hover(function(){!1===pe()&&_t()}),Q(document).on("keydown keyup",".scenes .scene input",function(e){Q(this).val(Ea(Q(this).val().replace(/\-/g,""))),100<parseFloat(Q(this).val())&&Q(this).val("100"),parseFloat(Q(this).val())<0&&Q(this).val("0")}),Q(document).on("click",".scenes .scene-no-click-yet",function(e){Q(this).removeClass("scene-no-click-yet")}),Q(document).on("keyup keydown blur",".scenes .scene:not(.scene-add):last input",function(e){Q(this).val("100")}),Q(document).on("keyup keydown blur",".scenes .scene:first-child input",function(e){Q(this).val("0")}),Q(document).on("click",".yp-anim-play",function(){var e=Q(this);if(re.hasClass("yp-animate-test-playing"))return Q(".scenes .scene-"+window.willActive).trigger("click"),e.html('<span class="dashicons dashicons-controls-play"></span>'),e.attr("data-original-title","Play").tooltip("fixTitle").tooltip("show"),se.removeClass("yp-animate-test-playing"),ie.find("#animate-test-drive").empty(),se.removeClass("yp-hide-borders-now"),ii(),Be(),ai(),!1;var t="animationGeneratorTestAnimate";if(window.willActive=1,Q(".scenes .scene").each(function(e){Q(this).hasClass("scene-active")&&(window.willActive=e+1)}),0===ie.find("#yp-anim-scenes style").length)return g({title:J.all_scenes_empty,text:J.allScenesEmpty,animation:!1,customClass:"editor-style-ok"}),!1;Q(".scenes .scene-1").trigger("click");var a,i,n=$(t);n=n+" "+n.replace(/@keyframes/g,"@-webkit-keyframes"),se.addClass("yp-hide-borders-now");var s=Q.trim(re.attr("class").replace(/yp-scene-[0-9]/g,""));re.attr("class",s),s=Q.trim(ne.attr("class").replace(/yp-scene-[0-9]/g,"")),ne.attr("class",s),se.addClass("yp-animate-test-playing"),ie.find("#animate-test-drive").empty(),ie.find("#animate-test-drive").append("<style>"+ma(n,!1)+"</style>"),a=Q("#animation-duration-value").val(),i="s"==Q("#animation-duration-after").val()?1e3*a:a,i-=10,a+=Q("#animation-duration-after").val(),ie.find("#animate-test-drive").append("<style>body.yp-animate-test-playing .yp-selected,body.yp-animate-test-playing .yp-selected-others{animation-name:"+t+" !important;animation-duration:"+a+" !important;animation-iteration-count:1 !important;}</style>"),e.html('<span class="dashicons dashicons-controls-pause"></span>'),e.attr("data-original-title","Pause").tooltip("fixTitle").tooltip("show"),ai(),window.animationTimer4=setTimeout(function(){e.html('<span class="dashicons dashicons-controls-play"></span>'),e.attr("data-original-title","Play").tooltip("fixTitle"),e.is(":hover")&&e.tooltip("show"),se.removeClass("yp-animate-test-playing"),ie.find("#animate-test-drive").empty(),se.removeClass("yp-hide-borders-now"),Q(".scenes .scene-"+window.willActive).trigger("click"),ii(),Be()},i)}),Q(document).on("keyup",".editor-style-input input",function(){Q(this).val(Ma(Q(this).val()))}),Q(".yp-anim-save").click(function(){return 0===ie.find("#yp-anim-scenes style").length?g({title:J.sorry,text:J.allScenesEmpty,animation:!1,customClass:"editor-style-ok"}):(setTimeout(function(){var e=Ma(Na(Pa(da(),!1,null)))+"_Animate_"+parseInt(JSON.parse(Q("#animation-name-group textarea").val()).length+1);Q(".editor-style-input input").val(e).trigger("focus")},20),g({title:J.animation_name,confirmButtonText:J.save_animation,showCancelButton:!0,text:J.set_animation_name,animation:!1,customClass:"editor-style-input"},function(e){if(0==e)return!1;Q(".scenes .scene-1").trigger("click");var t=Q(".editor-style-input input").val(),a=$(t);0==re.hasClass("yp-yellow-pencil-demo-mode")&&Q.post(ajaxurl,{action:"yp_add_animation",yp_anim_data:a,yp_anim_name:t,_wpnonce:window.yp_editor_nonce});var i=Q("#animation-name-group textarea");i.val(i.val().replace(/\}\]$/,'},{"value":"'+t+'","label":"'+t+'"}]')),Q("#yp-animation-name").autocomplete({source:JSON.parse(decodeURIComponent(i.val()))}),ie.find("#yp-animate-data").append("<style id='"+t+"style'>"+a+"</style>"),ie.find("#yp-animate-data").append("<style id='webkit-"+t+"style'>"+a.replace("@keyframes","@-webkit-keyframes")+"</style>"),R(!1),setTimeout(function(){var e;at(null,"animation-name",t,""),at(null,"animation-fill-mode","both",""),Q("li.animation-option").removeAttr("data-loaded"),Q("#yp-animation-name").val(t).trigger("blur"),e=Q("#"+"animation-name"+"-group"),Q(".yp-this-content").hide(),Q(".yp-editor-list > li").removeClass("active"),e.parent().prev("h3").trigger("click"),e.parent().parent("li").show(),e.addClass("focus-option"),setTimeout(function(){e.removeClass("focus-option")},1600),Ne()},500)})),!1}),Q(document).on("click",".scenes .scene .scene-delete",function(){var e=Q(this).parent().attr("data-scene").replace("scene-",""),t=Q(".scenes .scene").length-1;Q(".scenes .scene:not('.scene-add')").remove();for(var a=1;a<t;a++)Q(".scene-add").trigger("click");return 6==t&&(Q(".scene-add").show(),M()),ie.find("#yp-anim-scenes #scene-"+e).empty(),Q(".scenes .scene-"+(e-1)).trigger("click"),!1}),Q(document).on("mouseover",".scene-info",function(){var e=Q(this).parent().parent().attr("data-scene"),t="";ie.find("#yp-anim-scenes #"+e+" style").each(function(){t+="<span class='anim-info-rule'>"+Q(this).attr("data-rule")+": </span>",t+="<span class='anim-info-value'>"+Bt(Q(this).html())+"</span>",t+="<span class='anim-info-border'></span>"}),Q(this).tooltip("destroy"),Q(this).popover("destroy"),""!=t?Q(this).popover({animation:!1,title:J.scene_properties+" "+Q(".anim-bar ."+e+" input").val()+"%",content:t,trigger:"hover",placement:"top",container:".anim-bar",html:!0}).popover("show"):Q(this).tooltip({title:J.no_property_yet,animation:!1,placement:"top",trigger:"hover",container:".anim-bar",html:!0}).tooltip("show")}),Q(document).on("click",".scenes .scene",function(){if(Q(this).hasClass("scene-add")){var e,t,a,i=Q(".scenes .scene").length;return Q(".scenes .scene-let-delete").removeClass("scene-let-delete"),Q(".scene-add").before('<div class="scene-let-delete scene scene-'+i+'" data-scene="scene-'+i+'"><span class="dashicons dashicons-trash scene-delete"></span><p><span class="scene-info">i</span>'+J.scene+" "+i+'<span><input type="text" value="100" /></span></p></div>'),Q(".scenes .scene-"+i).trigger("click"),Q(".scene-1 input").val("0"),Q(".scene-2 input").val("100"),3==i&&(Q(".scene-1 input").val("0"),Q(".scene-2 input").val("50"),Q(".scene-3 input").val("100")),4==i&&(Q(".scene-1 input").val("0"),Q(".scene-2 input").val("33.3"),Q(".scene-3 input").val("66.6"),Q(".scene-4 input").val("100")),5==i&&(Q(".scene-1 input").val("0"),Q(".scene-2 input").val("25"),Q(".scene-3 input").val("50"),Q(".scene-4 input").val("75"),Q(".scene-5 input").val("100")),6==i&&(Q(".scene-1 input").val("0"),Q(".scene-2 input").val("20"),Q(".scene-3 input").val("40"),Q(".scene-4 input").val("60"),Q(".scene-5 input").val("80"),Q(".scene-6 input").val("100")),6==i&&Q(".scene-add").hide(),ie.find("#yp-anim-scenes #scene-"+i+" style").each(function(){if(t=Q(this),e=t.attr("data-rule"),0==(a=ie.find("#yp-anim-scenes #scene-"+parseInt(i-1)+" style[data-rule='"+e+"']")).length)return!0;t.html(a.html().replace(/body\.yp-scene-(\d+)/g,"body.yp-scene-"+i))}),M(),!1}Q(".scene-active").removeClass("scene-active"),Q(this).addClass("scene-active"),se.attr("data-anim-scene",Q(this).attr("data-scene"));var n=Q.trim(re.attr("class").replace(/yp-scene-[0-9]/g,""));re.attr("class",n),n=Q.trim(ne.attr("class").replace(/yp-scene-[0-9]/g,"")),ne.attr("class",n),se.addClass("yp-"+Q(this).attr("data-scene"));for(var s=parseInt(Q(this).attr("data-scene").replace("scene-",""));1<s;s--)se.addClass("yp-scene-"+s);Ze(),Q(".yp-disable-btn.active").trigger("click"),Be()}),Q(".yp-anim-cancel").click(function(){g({title:J.closeAnim,showCancelButton:!0,animation:!1,customClass:"editor-style",confirmButtonText:"Close"},function(e){e&&(swal.close(),R(!0))})}),Q(".yp-add-animation-link").click(function(){return window.animGeneratorOldAnim=Q("#yp-animation-name").val(),window.animGeneratorOldAnimDuration=Q("#yp-animation-duration").val(),window.animGeneratorOldAnimDelay=Q("#yp-animation-delay").val(),window.animGeneratorOldAnimDurationF=Q("#animation-duration-after").val(),window.animGeneratorOldAnimDelayF=Q("#animation-delay-after").val(),window.animGeneratorOldAnimFillMode=Q("#yp-animation-fill-mode").val(),"none"==window.animGeneratorOldAnim&&(window.animGeneratorOldAnim="disable"),at(null,"animation-name","disable",""),"0"!=Q("#animation-duration-value").val()&&"0.00"!=Q("#animation-duration-value").val()||(Q("#animation-duration-value").val("1"),Q("#animation-duration-value").trigger("blur")),0===ie.find("#yp-anim-scenes").length&&ie.find("#yp-animate-data").after('<div id="yp-anim-scenes"><div id="scene-1"></div><div id="scene-2"></div><div id="scene-3"></div><div id="scene-4"></div><div id="scene-5"></div><div id="scene-6"></div></div><div id="animate-test-drive"></div>'),re.hasClass("yp-css-editor-active")&&Q(".yp-css-close-btn").trigger("click"),se.addClass("yp-anim-creator"),se.addClass("yp-scene-1"),se.attr("data-anim-scene","scene-1"),Q(".scene-active").removeClass("scene-active"),Q(".scenes .scene:first-child").addClass("scene-active"),M(),Q(".animation-option.active > h3").trigger("click"),jt(),Ne(),!1}),Q(".yp-advanced-link").click(function(){if(Q(this).hasClass("yp-add-animation-link"))return!1;Q(".yp-on").not(this).removeClass("yp-on"),Q(".yp-advanced-option").not(Q(this).next(".yp-advanced-option")).hide(0),Q(this).next(".yp-advanced-option").toggle(0),Q(this).toggleClass("yp-on"),Ne()}),Q(".top-area-btn,.yp-css-close-btn").click(function(){setTimeout(function(){window.FrameleftOffset=void 0,u()},50)}),Q(".top-area-btn:not(.left-menu-btn):not(.undo-btn):not(.redo-btn):not(.css-editor-btn):not(.cursor-main-btn)").click(function(){!1===ce()?(Q(this).toggleClass("active"),Q(this).tooltip("hide")):!1===Q(this).hasClass("yp-selector-mode")&&!1===Q(this).hasClass("yp-search-btn")&&(Q(this).toggleClass("active"),Q(this).tooltip("hide"))}),Q(".left-menu-btn").click(function(){Q(this).toggleClass("yhover"),Q(".interface-settings").toggle()}),Q(".undo-btn").click(function(){clearTimeout(window.historyDelay),re.hasClass("yp-history-delay")?window.historyDelay=setTimeout(function(){z()},220):z()}),Q(".redo-btn").click(function(){clearTimeout(window.historyDelay),re.hasClass("yp-history-delay")?window.historyDelay=setTimeout(function(){O()},220):O()}),Q(".yp-flat-colors,.yp-meterial-colors,.yp-nice-colors").click(function(){1!=window.colorsReady&&Q.getJSON(pluginurl+"library/json/colors.json",function(e){var a="";Q.each(e.flat,function(e,t){a+="<div class='yp-flat-c' data-color='#"+t+"' style='background:#"+t+"'></div>"}),Q(".yp_flat_colors_area").html(a),a="",Q.each(e.meterial,function(e,t){a+="<div class='yp-meterial-c' data-color='#"+t+"' style='background:#"+t+"'></div>"}),Q(".yp_meterial_colors_area").html(a),a="",Q.each(e.nice,function(e,t){a+="<div class='yp-nice-c' data-color='#"+t+"' style='background:#"+t+"'></div>"}),Q(".yp_nice_colors_area").html(a),window.colorsReady=!0}).fail(function(){Va("Could Not Load Json library. (colors.json)","jsonError")})}),Q(".yp-bg-img-btn").click(function(){var t=Q(this);t.hasAttr("data-json")&&Q.getJSON(t.attr("data-json"),function(e){var a="";Q.each(e.patterns,function(e,t){a+='<div class="yp_bg_assets" data-url="'+t+'"></div>'}),Q(".yp_background_assets").append(a),t.removeAttr("data-json"),N()}).fail(function(){Va("Could Not Load Json library. (patterns.json)","jsonError")}),t.toggleClass("active"),Q(".yp_background_assets").toggle(),t.hasClass("active")?Q(".yp-background-image-show").hide():Q(".yp-background-image-show").show();var e=Q("#yp-background-image").val();-1==e.indexOf("yellow-pencil")?Q(".yp_bg_assets").removeClass("active"):Q(".yp_bg_assets[data-url='"+e.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,"")+"']").addClass("active"),0==t.hasAttr("data-json")&&N(),Ne()}),Q(".yp_bg_assets").on("mouseenter mouseover",function(){Q(".yp_bg_assets").removeClass("focus"),Q(this).addClass("focus")}),Q(".yp_background_assets").on("scroll",function(){L()}),Q(".yp-flat-colors").click(function(){Q(this).toggleClass("active"),Q(this).parent().find(".yp_flat_colors_area").toggle(),Ne()}),Q(".yp-theme-colors").click(function(){var e=Q(this),t=e.parent().find(".yp_theme_colors_area");e.toggleClass("active"),t.toggle(),ve(window.colorJsonList)&&x("typography");for(var a,i="",n=0;n<window.colorJsonList.length;n++)i+="<div class='yp-theme-c' data-color='"+(a=window.colorJsonList[n])+"'><i style='background:"+a+"'></i></div>";t.html(i),Ne()}),Q(".yp-gradient-btn").on("click",function(){var t=Q(this);if(t.hasAttr("data-json")&&Q.getJSON(t.attr("data-json"),function(e){var a="";Q.each(e,function(e,t){a+=e<8?'<div class="yp-gradient-demo free-gradient" data-gradient="'+t.gradient+'"><span style="background-image:'+t.gradient+'"></span> <div>'+t.name+"</div></div>":'<div class="yp-gradient-demo" data-gradient="'+t.gradient+'"><span style="background-image:'+t.gradient+'"></span> <div>'+t.name+"</div></div>"}),Q(".yp-gradient-list").append(a),t.removeAttr("data-json")}).fail(function(){Va("Could Not Load Json library. (gradient.json)","jsonError")}),t.hasClass("active"))t.toggleClass("active"),Q(".yp-gradient-section").toggle(),Q(".yp-background-image-show").show(),Ne();else{var e=Q("#yp-background-image").val();-1!=e.indexOf("linear-gradient(")?bt(e):bt("linear-gradient(141deg, #0fb8ad 0%, #2cb5e8 100%)"),setTimeout(function(){t.toggleClass("active")},1),Q(".yp-gradient-section").toggle(),Q(".yp-background-image-show").hide(),setTimeout(function(){0<Q(".yp-gradient-demo.active").length?Q(".yp-gradient-list").scrollTop(30*(Q(".yp-gradient-demo.active").index()-3)):Q(".yp-gradient-list").scrollTop(0)},window.YellowDelay),Ne()}}),Q(".yp-unsplash-btn").on("click",function(){var e=Q(this);e.hasClass("active")?(e.toggleClass("active"),Q(".yp-unsplash-section").toggle(),Ne(),Q(".yp-background-image-show").show()):(setTimeout(function(){e.toggleClass("active")},1),Q(".yp-unsplash-section").toggle(),Ne(),ri(),Q(".yp-background-image-show").hide())}),Q(document).on("click",".yp-gradient-demo",function(){bt(Q(this).attr("data-gradient")),xt("insert"),Q(".yp-unsplash-list > span.active,.yp-gradient-demo.active,.yp_bg_assets.active").removeClass("active"),Q(this).addClass("active"),Q(".yp-background-image-show").remove()}),Q(".yp-meterial-colors").click(function(){Q(this).toggleClass("active"),Q(this).parent().find(".yp_meterial_colors_area").toggle(),Ne()}),Q(".yp-nice-colors").click(function(){Q(this).parent().find(".yp_nice_colors_area").toggle(),Q(this).toggleClass("active"),Ne()}),Q(".yp-upload-btn").click(function(){(Q("#image_uploader iframe")[0].contentWindow||Q("#image_uploader iframe")[0].contentDocument).location.replace(Q("#image_uploader iframe").attr("data-url")),Q("#image_uploader iframe").attr("src",function(e,t){return t}),window.send_to_editor=function(e){var t=e.match(/src="(.*?)"/g),a="";if(""!=(t=t.toString().replace('src="',"").replace('"',""))){var i=t.split("-").length-1;null!==t.split("-")[i].match(/(.*?)x(.*?)\./g)?(a=t.replace("-"+t.split("-")[i],""),-1!=t.split("-")[i].indexOf(".")&&(a=a+"."+t.split("-")[i].split(".")[1])):a=t}0<Q(".background-option.active").length?Q("#yp-background-image").val(a).trigger("keyup"):Q("#yp-list-style-image").val(a).trigger("keyup"),window.send_to_editor=window.restore_send_to_editor,Q("#image_uploader").toggle(),Q("#image_uploader_background").toggle(),Q(".yp-upload-btn").toggleClass("active")},Q("#image_uploader").toggle(),Q("#image_uploader_background").toggle(),Q(".yp-upload-btn").toggleClass("active")}),Q("#image_uploader_background").click(function(){Q("#image_uploader").toggle(),Q("#image_uploader_background").toggle(),Q(".yp-upload-btn").toggleClass("active"),Q("#image_uploader iframe").attr("src",function(e,t){return t})}),window.restore_send_to_editor=window.send_to_editor,window.send_to_editor=function(e){var t=Q("img",e).attr("src");0<Q(".background-option.active").length?Q("#yp-background-image").val(t):Q("#yp-list-style-image").val(t),window.send_to_editor=window.restore_send_to_editor,Q("#image_uploader").toggle(),Q("#image_uploader_background").toggle(),Q(".yp-upload-btn").toggleClass("active"),Q("#image_uploader iframe").attr("src",function(e,t){return t})},Q("title").html(La(Q("#yp-current-page").text().replace(/('|")/g,"").toLowerCase())+" - YellowPencil"),0==re.hasClass("yp-yellow-pencil-demo-mode")&&(window.onbeforeunload=function(){if(Q(".yp-save-btn").hasClass("waiting-for-save"))return confirm(J.sure)}),Q(".yp-save-btn").on("click",function(){if(Q(this).hasClass("yp-disabled"))return!1;var e=window.location.href.split("&yp_page_id=");e=(e=e[1].split("&"))[0];var t=window.location.href.split("&yp_page_type=");if(t=(t=t[1].split("&"))[0],re.hasClass("yp-yellow-pencil-demo-mode"))g({title:J.save_alert,type:"info",animation:!1,customClass:"editor-style-ok"}),Q(".yp-save-btn").html(J.saved).addClass("yp-disabled").removeClass("waiting-for-save");else{var a=ie.find(".yp-inline-data").text(),i=ie.find("#yp-live-css-data");0<i.length&&(a+=i.html());var n=!0;if(re.hasClass("wtfv")&&(1==/(\s|\{)font-family\:/g.test(a)||1==/(\s|\{)color\:/g.test(a)||1==/(\s|\{)background-image\:/g.test(a)||1==/(\s|\{)background-color\:/g.test(a)||1==/(\s|\{)width\:/g.test(a)||1==/(\s|\{)height\:/g.test(a)||1==/(\s|\{)animation-name\:/g.test(a))?(n=!1,Q(".wt-save-btn").html(J.save).removeClass("waiting-for-save").removeClass("wt-disabled"),Q(".yp-info-modal,.yp-popup-background").fadeIn("fast")):Q(".yp-save-btn").html(J.saving).addClass("yp-disabled"),re.hasClass("yp-need-to-process")){if(n)return Ka(),setTimeout(function(){W(e,t)},100),!1}else n&&W(e,t)}}),Q(document).on("mousewheel DOMMouseScroll","#context-menu-layer",function(){0<ie.find(".context-menu-active").length&&le().contextMenu("hide")}),Q(document).on("mouseover","#context-menu-layer",function(){oe.extra.find(".yp-element-viewer").remove()});var Y=null,H=null,ye=null;function we(e){var t=ie.height(),a=Q("#iframe").height();Q(".yp-panel-show").css("top",Q(".yp-panel-hide").offset().top),a<t?Q(".yp-panel-show").css("right",ka()+"px"):Q(".yp-panel-show").css("right","0px"),!0===e?re.removeClass("yp-clean-look yp-clean-look-manual"):re.toggleClass("yp-clean-look-manual"),Be(),B()}function be(e,t){var a="any";if(null==e){if(re.hasClass("yp-element-not-visible"))return!1;if(e=ie.find(".yp-selected"),a="selected",0==oe.general.find(".yp-selected-tooltip").hasClass("yp-fixed-tooltip")&&0==oe.general.find(".yp-selected-tooltip").hasClass("yp-fixed-tooltip-bottom")&&1==t)return!1}else if(1!=e.length)return!1;if(j(le(),"position","fixed","=="))return!1;var i=parseInt(Q(window).height()/2),n=parseInt(e.height()/2);if(n<i){var s=n+e.offset().top-i;ie.scrollTop(s)}"selected"==a&&Aa()}function xe(a,i,e){var t,n=[],s=null,r=null,o=[],l="";if(-1!=(a=a.replace(/\s+/g," ")).indexOf(":"))return[];var p=a.substr(a.length-1),d=Ht(a),c=d[d.length-1];" "==p&&(c=" ");var u=d;" "!=p&&u.pop();var m,g,h,f,v,y=(u=u.join(" ")).replace(/(\s+$|\.$|#$)/g,""),w=c.replace(/(\.|#)/g,""),b=["body","h1","h2","h3","h4","h5","h6","p","br","hr","abbr","address","b","bdi","bdo","blockquote","center","cite","code","del","dfn","em","font","i","ins","kbd","mark","meter","pre","progress","q","rp","rt","ruby","s","samp","small","strike","strong","sub","sup","time","tt","u","var","wbr","form","input","textarea","button","select","optgroup","option","label","fieldset","legend","datalist","output","frame","iframe","img","map","area","canvas","figcaption","figure","picture","audio","source","track","video","a","link","nav","ul","ol","li","dir","dl","dt","dd","menu","menuitem","table","caption","th","tr","td","thead","tbody","tfoot","col","colgroup","div","span","header","footer","main","section","article","aside","details","dialog","summary"];1==/^[a-z-A-Z0-9_-]+\.$/g.test(c)&&(l=c.split(".")[0],o.push(l+"[class]")),1==/^[a-z-A-Z0-9_-]+#$/g.test(c)&&(l=c.split("#")[0],o.push(l+"[id]")),1==/^[a-z-A-Z0-9_-]+\.[a-z-A-Z0-9_-]+$/g.test(c)&&(l=c.split(".")[0],t=c.split(".")[1],o.push(l+"[class*='"+t+"']")),1==/^[a-z-A-Z0-9_-]+#[a-z-A-Z0-9_-]+$/g.test(c)&&(l=c.split("#")[0],t=c.split("#")[1],o.push(l+"[id^='"+t+"']")),1==/^\#$/g.test(c)&&o.push("[id]"),1==/^\.$/g.test(c)&&o.push("[class]"),1==/^\.[a-z-A-Z0-9_-]+$/g.test(c)&&(t=c.split(".")[1],o.push("[class*='"+t+"']")),1==/^\#[a-z-A-Z0-9_-]+$/g.test(c)&&(t=c.split("#")[1],o.push("[id^='"+t+"']")),1==/^[a-z-A-Z0-9_-]+$/g.test(c)&&o.push("[tag*='"+c+"']")," "==c&&o.push("[tag]"),1==/^[a-z-A-Z0-9_-]+$/g.test(c)&&o.push("[id^='"+c+"']"),1==/^[a-z-A-Z0-9_-]+$/g.test(c)&&o.push("[class*='"+c+"']");for(var x=0;x<o.length;x++){if("[tag]"==o[x]||-1!=o[x].indexOf("[tag*="))for(m=new RegExp("^"+c+"(.+)?"),v=0;v<b.length;v++)if("[tag]"==o[x]||m.test(b[v])){try{f=0<y.length?ie.find(y).find(b[v]).not(window.simple_not_selector):ie.find(b[v]).not(window.simple_not_selector)}catch(e){continue}if(0<f.length&&(ua(r=u+" "+b[v],!0,!1,!1)&&n.push(r),Ra(n).length>=i))break}try{f=0<y.length?ie.find(y).find(o[x]).not(window.simple_not_selector):ie.find(o[x]).not(window.simple_not_selector)}catch(e){continue}f.each(function(e,t){if(1==/^\[class\*\=/g.test(o[x]))for(g=Q(this).attr("class").split(" "),m=new RegExp("^"+w+"(.+)?"),e=0;e<g.length&&!(null!==(h=m.exec(g[e]))&&(ua(r=u+" ."+h[0],!0,!1,!1)&&n.push(r),Ra(n).length>=i));e++);else if(-1!=o[x].indexOf("[class]")){if(-1!=(s=Q(this).attr("class")).indexOf(" ")&&(s=s.split(" ")[0]),""==s)return!0;if(ua(r=""!=l?u+" "+l+"."+s:u+" ."+s,!0,!1,!1)&&n.push(r),Ra(n).length>=i)return!1}else if(-1!=o[x].indexOf("[id]")||-1!=o[x].indexOf("[id^=")){if(ua(r=""!=l?u+" "+l+"#"+Q(this).attr("id"):u+" #"+Q(this).attr("id"),!0,!1,!1)&&n.push(r),Ra(n).length>=i)return!1}else if(1==/^[a-z-A-Z0-9_-]+\[class\*\=/g.test(o[x]))for(g=Q(this).attr("class").split(" "),e=0;e<g.length;e++)if(m=new RegExp("^"+a.split(".")[1]+"(.+)?"),null!==(h=m.exec(g[e]))&&(ua(r=u+" "+l+"."+h[0],!0,!1,!1)&&n.push(r),Ra(n).length>=i))return!1})}n=Ra(n);for(var _=0;_<window.plugin_classes_list.split("|").length;_++)for(v=n.length-1;0<=v;v--)-1!=n[v].replace(/\./g,"").trim().indexOf(window.plugin_classes_list.split("|")[_])&&n.splice(v,1);var k=[];for(ne.hasAttr("class")&&(k=Ut(ne.attr("class"))),v=0;v<n.length;v++)n[v]=n[v].replace(/(^\s+|\s+$)/g,"").replace(/\s\s+/g," "),-1!=n[v].indexOf(".")&&-1!=k.indexOf(n[v].replace(/\./g,""))&&(n[v]="body"+n[v]);return 1==n.length&&"autocomplate"==e&&n[0]==a&&(n=[]),n}function _e(){var e;if(Q("#autocomplate-selector-list li").remove(),ve(e=Q("#yp-selector-editor").val()))return!1;if(" "==e||" "==e||""==e)return!1;for(var t=xe(e,10,"autocomplate"),a=0;a<t.length;a++)if(Q("#autocomplate-selector-list li").length<10){if(0===ie.find(t[a]).length)return!1;if(0<Q("#"+$a(t[a])).length)return!1;Q("#autocomplate-selector-list").append("<li id='"+$a(t[a])+"'>"+t[a]+"</li>")}window.selectorActive=-1}function ke(){0<ie.find(".context-menu-active").length&&le().contextMenu("hide"),Q("#yp-selector-editor").removeClass("selecor-is-unvalid"),se.addClass("yp-selector-editor-active");var e=da();":hover"==se.attr("data-yp-selector")&&(e+=":hover"),":focus"==se.attr("data-yp-selector")&&(e+=":focus"),":link"==se.attr("data-yp-selector")&&(e+=":link"),":active"==se.attr("data-yp-selector")&&(e+=":active"),":visited"==se.attr("data-yp-selector")&&(e+=":visited"),":checked"==se.attr("data-yp-selector")&&(e+=":checked"),":disabled"==se.attr("data-yp-selector")&&(e+=":disabled"),":enabled"==se.attr("data-yp-selector")&&(e+=":enabled"),":invalid"==se.attr("data-yp-selector")&&(e+=":invalid"),":valid"==se.attr("data-yp-selector")&&(e+=":valid"),ve(e)&&(e=""),Q("#yp-selector-editor").trigger("focus").val(e).trigger("keyup"),_e()}function Ce(e){Q(e).removeClass("selecor-is-unvalid");var t=Q(e).val();if(""==t||" "==t)return"#yp-selector-editor"==e&&(se.removeClass("yp-selector-editor-active"),window.selectorActive=-1),!1;var a=t.match(/:hover(.*?)$/g),i=t.match(/:focus(.*?)$/g),n=t.match(/:visited(.*?)$/g),s=t.match(/:active(.*?)$/g),r=t.match(/:link(.*?)$/g),o=t.match(/:checked(.*?)$/g),l=t.match(/:disabled(.*?)$/g),p=t.match(/:enabled(.*?)$/g),d=t.match(/:invalid(.*?)$/g),c=t.match(/:valid(.*?)$/g);a=null!==a?a.toString().trim().replace(/:hover/g,"").trim().length:0,i=null!==i?i.toString().trim().replace(/:focus/g,"").trim().length:0,n=null!==n?n.toString().trim().replace(/:visited/g,"").trim().length:0,s=null!==s?s.toString().trim().replace(/:active/g,"").trim().length:0,r=null!==r?r.toString().trim().replace(/:link/g,"").trim().length:0,o=null!==o?o.toString().trim().replace(/:checked/g,"").trim().length:0,l=null!==l?l.toString().trim().replace(/:disabled/g,"").trim().length:0,p=null!==p?p.toString().trim().replace(/:enabled/g,"").trim().length:0,d=null!==d?d.toString().trim().replace(/:invalid/g,"").trim().length:0,c=null!==c?c.toString().trim().replace(/:valid/g,"").trim().length:0;var u=t.replace(/\:(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"");if(0==ua(u,!0,!1,!0))return Q(e).addClass("selecor-is-unvalid"),!1;0<ie.find(u).length&&"*"!=u&&0===a&&0===i&&0==n&&0==s&&0==r&&0==o&&0==l&&0==p&&0==d&&0==c&&(ie.find(t).hasClass("yp-selected")&&le().addClass("yp-will-selected"),F(ja(t),null,!0),be(null,!1),"#yp-selector-editor"==e&&(se.removeClass("yp-selector-editor-active"),window.selectorActive=-1))}ie.scroll(function(){null!==H&&clearTimeout(H),H=setTimeout(function(){pe()&&Aa()},120),null!==Y&&clearTimeout(Y),pe()&&!0===j(le(),"position","fixed","==")&&(re.hasClass("yp-has-transform")?Y=setTimeout(function(){se.removeClass("yp-has-transform"),Be()},120):se.addClass("yp-has-transform")),null!==ye&&clearTimeout(ye),ye=setTimeout(function(){Ca()},120)}),Q(document).on("click",".yp_background_assets div",function(){var e=Q(this);Q(".yp-unsplash-list > span.active,.yp-gradient-demo.active,.yp_bg_assets.active").removeClass("active"),e.parent().parent().find(".yp-input").val(pluginurl+"assets/"+e.data("url")).trigger("keyup"),e.addClass("active"),Q(".yp-background-image-show").remove(),"no-repeat"==le().css("background-repeat")&&(at(null,"background-repeat","repeat"),Yt("background-repeat")),"auto"!=le().css("background-size")&&(at(null,"background-size","auto"),Yt("background-size"))}),Q(document).on("click",".yp_flat_colors_area div,.yp_meterial_colors_area div,.yp_nice_colors_area div,.yp_theme_colors_area div",function(){var e=Q(this).parent();Q(".yp_flat_colors_area,.yp_meterial_colors_area,.yp_nice_colors_area,.yp_theme_colors_area").find(".active").removeClass("active"),e.parent().parent().parent().find(".wqcolorpicker").val(Q(this).data("color")).trigger("change"),Q(this).addClass("active")}),Q(document).on("click",function(e){if(!e.originalEvent)return!1;if(0==window.documentClick)return!1;var t=Q(e.target);if(0==t.parents(".yp-info-modal").length&&0==t.hasClass("yp-popup-background")){if("block"==Q("#customizing-type-list").css("display")&&0==t.hasClass("yp-type-menu-link")&&"block"!=Q(".sweet-overlay").css("display")&&0==t.parents("#customizing-type-list").length)return Q("#customizing-mode,#customizing-type-list").removeClass("active"),Q("#customizing-type-list").toggle(),Q(".starter-notice").removeClass("padded-starter-notice"),!1;var a=!1;!1===t.is(".iris-picker")&&!1===t.is(".iris-square-inner")&&!1===t.is(".iris-square-handle")&&!1===t.is(".iris-slider-offset")&&!1===t.is(".iris-slider-offset .ui-slider-handle")&&!1===t.is(".iris-picker-inner")&&!1===t.is(".wqcolorpicker")&&(0<Q(".yp-gradient-section .iris-picker:visible").length&&(a=!0),0==Q(".iris-picker .ui-state-active").length&&0==Q(".iris-picker .iris-dragging").length&&0==t.hasClass("iris-square")&&(Q(".iris-picker").hide(),Ne()),Q(".yp-gradient-pointer-area").removeClass("gradient-pointer-no-cursor")),!1===t.is(".yp_bg_assets")&&!1===t.is(".yp-none-btn")&&!1===t.is(".yp-bg-img-btn")&&0<Q(".yp_background_assets:visible").length&&(Q(".yp_background_assets").hide(),Q(".yp-bg-img-btn").removeClass("active"),Ne()),!1===t.is(".yp-flat-c")&&!1===t.is(".yp-flat-colors")&&0<Q(".yp_flat_colors_area:visible").length&&(Q(".yp_flat_colors_area").hide(),Q(".yp-flat-colors").removeClass("active"),Ne()),!1===t.is(".yp-meterial-c")&&!1===t.is(".yp-meterial-colors")&&0<Q(".yp_meterial_colors_area:visible").length&&(Q(".yp_meterial_colors_area").hide(),Q(".yp-meterial-colors").removeClass("active"),Ne()),!1===t.is(".yp-nice-c")&&!1===t.is(".yp-nice-colors")&&0<Q(".yp_nice_colors_area:visible").length&&(Q(".yp_nice_colors_area").hide(),Q(".yp-nice-colors").removeClass("active"),Ne()),!1===t.is(".yp-theme-c")&&!1===t.is(".yp-theme-colors")&&0<Q(".yp_theme_colors_area:visible").length&&(Q(".yp_theme_colors_area").hide(),Q(".yp-theme-colors").removeClass("active"),Ne()),0===t.parents(".yp-gradient-section").length&&0<Q(".yp-gradient-section:visible").length&&0==t.is(".yp-gradient-btn")&&0==a&&0==Q(".iris-picker:visible").length&&0==Q(".yp-gradient-pointer.ui-draggable-dragging").length&&0==Q(".yp-gradient-orientation .ui-draggable-dragging").length&&(Q(".yp-gradient-section").hide(),Q(".yp-gradient-pointer,.yp-gradient-btn").removeClass("active"),Ne()),0===t.parents(".yp-unsplash-section").length&&0<Q(".yp-unsplash-section:visible").length&&0==t.is(".yp-unsplash-btn")&&0==a&&0==Q(".iris-picker:visible").length&&(Q(".yp-unsplash-section").hide(),Q(".yp-unsplash-btn").removeClass("active"),Ne()),0==t.is(".yp-element-picker.active")&&0<Q(".yp-element-picker.active").length&&Q(".yp-element-picker.active").trigger("click")}}),Q(document).on("click","#autocomplate-selector-list li",function(){var e=Q(this).text().split(" |")[0];Q("#yp-selector-editor").val(e).trigger("keyup").trigger("focus")}),window.selectorActive=-1,Q("#yp-selector-editor").keyup(function(e){var t=Q(this).val(),a=t.substr(t.length-1);if(32==e.keyCode&&0==/(\#|\.)/g.test(t)&&0==ua(t,!0,!1,!1)){var i=Q("#autocomplate-selector-list li.active");if(0<i.length&&t!=i.text())return Q(this).val(i.text()+" ").trigger("keyup"),!1}if(40!=e.keyCode&&38!=e.keyCode&&_e(),Q("#yp-selector-editor").removeClass("selecor-is-unvalid"),Q("#autocomplate-selector-list li").removeClass("active"),0<Q("#autocomplate-selector-list li").length&&1==/[a-z-A-Z0-9_-]/g.test(a)){var n=1e4;Q("#autocomplate-selector-list li").each(function(){Q(this).text().length<n&&(n=Q(this).text().length,Q("#autocomplate-selector-list li").removeClass("active"),Q(this).addClass("active"))})}if(13==e.keyCode)return 0<Q("#autocomplate-selector-list li.active").length&&Q(this).val()!=Q("#autocomplate-selector-list li.active").text()?(Q(this).val(Q("#autocomplate-selector-list li.active").text()),Q("#autocomplate-selector-list li").remove()):Ce("#yp-selector-editor"),!1;0<Q("#autocomplate-selector-list li.active").length&&-1==window.selectorActive&&(window.selectorActive=Q("#autocomplate-selector-list li.active").prevAll().length),40==e.keyCode&&Q("#autocomplate-selector-list li").length>=window.selectorActive+2?window.selectorActive++:38==e.keyCode&&0<=window.selectorActive-1?window.selectorActive--:38==e.keyCode&&window.selectorActive<0&&(window.selectorActive=Q("#autocomplate-selector-list li").length-1),40!=e.keyCode&&38!=e.keyCode||(Q("#autocomplate-selector-list li").removeClass("active"),Q("#autocomplate-selector-list li").eq(window.selectorActive).addClass("active"),0<Q("#autocomplate-selector-list li").eq(window.selectorActive).length&&Q(this).val(Q("#autocomplate-selector-list li").eq(window.selectorActive).text()))}),Q("#yp-selector-editor").on("keyup keydown",function(e){if(40==e.keyCode||38==e.keyCode)return!1}),Q("#selector-editor-background").click(function(){Q("#yp-selector-editor").val(""),Ce("#yp-selector-editor")}),Q(".yp-search-btn").click(function(e){Q(this).hasClass("active")?(Q(".search-box").hide(),Q(".search-live-result li").remove(),Q(".search-box").css("height","80px")):(Q(".search-box").css({top:Q(this).offset().top+1}),Q(".search-box").show(),Q("#search").removeClass("selecor-is-unvalid").val("").focus(),Q("#search").trigger("autogrow"))}),Q(".search-close-link").click(function(){Q(".search-box").hide(),Q(".yp-search-btn").addClass("active")}),Q(document).on("keyup","#search",function(e){var t,a,i=Q("#search").val(),n=i;if(32==e.keyCode&&0==/(\#|\.)/g.test(n)&&0==ua(n,!0,!1,!1)&&(Q("#search").trigger("autogrow"),0<(a=Q(".search-live-result li.focus")).length&&n!=a.nodeText()))return Q(this).val(a.nodeText()+" ").trigger("keyup"),!1;if(13==e.keyCode)return Q("#search").trigger("autogrow"),0<(a=Q(".search-live-result li.focus")).length&&n!=a.nodeText()?Q(this).val(a.nodeText()).trigger("keyup"):(Ce("#search"),Q(".yp-search-btn:not(.active)").trigger("click")),!1;if(Q(".search-live-result li").remove(),Q("#search").removeClass("selecor-is-unvalid")," "==n||" "==n||""==n)return!1;for(var s=xe(n,10,"autocomplate"),r=0;r<s.length;r++)if(Q(".search-live-result li").length<10){if(0===(t=ie.find(s[r]).length))return!1;if(0<Q("#search-"+$a(s[r])).length)return!1;Q(".search-live-result").append("<li class='element-list' data-search-selector='"+s[r]+"' id='search-"+$a(s[r])+"'>"+s[r]+"<i>"+t+"</i></li>")}if(0<Q(".search-live-result li").length&&1==/[a-z-A-Z0-9_-]/g.test(i.substr(i.length-1))){var o=1e4;Q(".search-live-result li").each(function(){Q(this).nodeText().length<o&&(o=Q(this).nodeText().length,Q(".search-live-result li").removeClass("focus"),Q(this).addClass("focus"))})}}),Q("#search").on("keyup",function(e){var t=Q(".element-list.focus");40==e.keyCode&&0==t.length&&0<Q(".search-live-result li").length&&(Q(".search-live-result li").first().addClass("focus"),Q("#search").val(Q(".element-list.focus").nodeText())),38==e.keyCode&&0==t.length&&0<Q(".search-live-result li").length&&(Q(".search-live-result li").last().addClass("focus"),Q("#search").val(Q(".element-list.focus").nodeText())),38==e.keyCode&&0<t.prev(".element-list").length&&(t.removeClass("focus"),t.prev(".element-list").addClass("focus"),Q("#search").val(Q(".element-list.focus").nodeText())),40==e.keyCode&&0<t.next(".element-list").length&&(t.removeClass("focus"),t.next(".element-list").addClass("focus"),Q("#search").val(Q(".element-list.focus").nodeText()))}),Q("#search").on("keyup keydown",function(e){if(40==e.keyCode||38==e.keyCode)return!1}),Q(document).on("keyup keydown","#search",function(){0==Q(".search-live-result li").length?Q(".search-box").css("height","80px"):Q(".search-box").css("height",82+Q(".search-live-result").outerHeight()+"px")}),Q(document).on("click",".search-live-result li",function(){Q("#search").val(Q(this).nodeText()).focus().trigger("keyup")});var ze,Ae;function Oe(){var a=Q(".breakpoint-bar");a.find("div").tooltip("destroy"),a.empty(),"max-width"==Q(".media-control").attr("data-code")?a.append("<span class='breakpoint-right-notice'>"+J.define_breakpoints+"</span>"):a.append("<span class='breakpoint-left-notice'>"+J.define_breakpoints+"</span>");var i,e=ba(!0,!1),n=0,s=0,r=Q(window).width();if(0<e.length){Q.each(e,function(e,t){t=t.replace(/(\d+)\.(\d+)/g,"$1"),fe(i=ya(t))&&(i=i.toString(),n=parseInt(Ea(i.replace(/\</g,"").replace(/\>/g,""))),s=ja(t.match(/\:(.*?)\)/g).toString().replace(/\:/g,"").replace(/\)/g,"")),-1==i.indexOf(",")&&-1==i.indexOf("and")&&(-1!=i.indexOf(">")&&"min-width"==Q(".media-control").attr("data-code")&&0==Q(document).find("#min-breakpoint-"+n).length&&a.append("<div data-breakpoint='"+n+"' data-media-content='"+t+"' data-breakpoint-data='(min-width:"+s+")' class='min-width' id='min-breakpoint-"+n+"' style='left:"+(46+parseInt(n))+"px;width:"+(r-(46+parseInt(n)))+"px;'>"+n+"</div>"),-1!=i.indexOf("<")&&"max-width"==Q(".media-control").attr("data-code")&&0==Q(document).find("#max-breakpoint-"+n).length&&a.append("<div data-breakpoint='"+n+"' data-media-content='"+t+"' data-breakpoint-data='(max-width:"+s+")' class='max-width' id='max-breakpoint-"+n+"' style='width:"+n+"px;'>"+n+"</div>")))}),a.find("div").sort(function(e,t){return+e.dataset.breakpoint-+t.dataset.breakpoint}).appendTo(a);var o=0;a.find("div").each(function(e,t){var a=Q(this),i=a.next(".max-width"),n=parseFloat(i.css("width"));a.hasClass("max-width")&&(o=parseFloat(a.css("width"))+o),i.css("width",n-o),i.css("left",46+o),a.css("z-index",e)}),a.find(".min-width").each(function(e,t){var a=Q(this),i=a.nextAll(".min-width");if(0<i.length){var n=parseInt(a.attr("data-breakpoint")),s=parseInt(i.attr("data-breakpoint"))-n;a.css("width",s+"px")}}),a.find("div").each(function(){var e=Q(this);parseInt(e.css("width"))<=100&&e.css("background-image","none").css("text-align","center").css("padding","0px").css("min-width","13px"),parseInt(e.css("width"))<=40&&e.css("font-size","10px"),e.attr("data-breakpoint")==Q("#iframe").width()&&(0<Q(".property-size-tabs-visible .property-size.active").length?-1==Q(".property-size-tabs-visible .property-size.active").attr("data-property-size").indexOf(",")&&(a.find("div").removeClass("active"),e.addClass("active")):(a.find("div").removeClass("active"),e.addClass("active")))}),Q(".breakpoint-bar div").tooltip({title:function(){var e=Q(".media-control").text(),t=Q(this).attr("data-breakpoint");return J.breakpoint_size.replace("{$1}",t).replace("{$2}",e)},animation:!1,template:'<div class="tooltip small-tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',delay:{show:50,hide:0},placement:"bottom",trigger:"hover",container:"body",html:!0})}}function Te(){if(!1===de())return!1;if(0<Q(".property-size-tabs-visible .property-size.active").length&&-1!=Q(".property-size-tabs-visible .property-size.active").attr("data-property-size").indexOf(",")){var e=Q(".property-size-tabs-visible .property-size.active").attr("data-original-title");Q(".property-size-text").html(e),Q(".responsive-size-text").show(),Q(".default-responsive-text").hide()}else Q(".responsive-size-text").hide(),Q(".default-responsive-text").show();var t=Q("#iframe").width(),a="";Q(".device-size").text(t),"max-width"==Q(".media-control").attr("data-code")?(a="("+J.phones+")",375<=t&&(a="("+J.large_phones+")"),414<=t&&(a="("+J.tablet_landscape_phones+")"),736<=t&&(a="("+J.tablets+")"),768<=t&&(a="("+J.small_desktop_tablets_phones+")"),992<=t&&(a="("+J.medium_desktops_tablets_phones+")"),1200<=t&&(a="("+J.large_desktops_tablets_phones+")")):(a="("+J.phones_tablets_desktops+")",375<=t&&(a="("+J.phones_tablets_desktops+")"),414<=t&&(a="("+J.large_phones_tablets_desktops+")"),736<=t&&(a="("+J.landscape_phones_tablets_desktops+")"),768<=t&&(a="("+J.desktops+")"),992<=t&&(a="("+J.medium_large_desktops+")"),1200<=t&&(a="("+J.large_desktops+")")),Q(".device-name").text(a)}function Ze(){if(!1===pe())return!1;var e=Q(".yp-editor-list > li.active .yp-option-group");Q("li[data-loaded]").removeAttr("data-loaded"),0<e.length&&e.each(function(){var e=1;"animation-duration-group"==Q(this).attr("id")&&!0===ce()&&(e=0),1==e&&Yt(S(this))}),e.parent().attr("data-loaded","true"),0==window.resizedByPropertySize&&xa(null),jt()}function Se(e){e.each(function(){var h=Q(this).parent().parent().attr("data-css"),f=Q(this).parent().parent().find("textarea");f=0==/^http/g.test(f.val())?JSON.parse(decodeURIComponent(f.val())):f.val(),Q(this).autocomplete({source:f,delay:0,minLength:0,autoFocus:!0,close:function(e,t){Q(".active-autocomplete-item").removeClass("active-autocomplete-item"),Q(this).removeClass("active"),setTimeout(function(){re.removeClass("autocomplete-active")},300),Q(this).parent().find("select option:contains("+Q(this).val()+")").length&&Q(this).val(Q(this).parent().find("select option:contains("+Q(this).val()+")").val())},open:function(e,t){var a=Q(this),i=a.parents(".yp-option-group");window.openVal=Q(this).val(),Q(this).addClass("active"),re.addClass("autocomplete-active");var n=Q(this).val(),s=a.outerHeight(),r=Q(".yp-editor-panel").height()-a.offset().top+s-98;if(Q("#autocomplete-custom-style-"+h).remove(),Q(".up-style-autocomplete").removeClass("up-style-autocomplete"),Q(".up-style-autocomplete-input").removeClass("up-style-autocomplete-input"),r>i.find(".ui-autocomplete.ui-menu").outerHeight()){var o=i.find(".ui-autocomplete.ui-menu li").outerHeight(),l=parseInt(r/o);14<l&&(l=14),r=l*o,re.append('<style id="autocomplete-custom-style-'+h+'">#'+h+"-group .ui-autocomplete.ui-menu{max-height:"+(r+2)+"px;}</style>")}else if("font-family"!=h){var p=Q(".yp-editor-panel").scrollTop();if(113<p?p-=113:p<113&&(p=0),r<a.offset().top-Q(".yp-editor-list > li.active > .yp-this-content").offset().top-p){var d=i.find(".ui-autocomplete.ui-menu").outerHeight()+s-2;re.append('<style id="autocomplete-custom-style-'+h+'">#'+h+"-group .ui-autocomplete.ui-menu{top:-"+d+"px;}</style>"),i.find(".ui-autocomplete.ui-menu").addClass("up-style-autocomplete"),a.addClass("up-style-autocomplete-input")}}"font-family"==h&&-1!=n.indexOf(",")&&(n=Q.trim(n.split(",")[0]).replace(/'/g,"").replace(/"/g,""));var c,u=Q(this).parent().find(".autocomplete-div li").filter(function(){return Q.text([this])===n});if(1==u.length&&(Q(".active-autocomplete-item").removeClass("active-autocomplete-item"),0===Q(".active-autocomplete-item").length&&u.addClass("active-autocomplete-item")),0<Q(".active-autocomplete-item").length){Q(this).parent().find(".autocomplete-div").find("li.ui-state-focus").removeClass("ui-state-focus");var m=Q(this).parent().find(".autocomplete-div li.active-autocomplete-item").parent(),g=Q(this).parent().find(".autocomplete-div li.active-autocomplete-item");m.scrollTop(m.scrollTop()+g.position().top)}("font-weight"==h&&Q(".autocomplete-div li").each(function(){var e=Math.abs(Ea(Q(this).text()));Q(this).css("fontWeight",e)}),"font-family"!=h&&"font-weight"!=h||(Q("#yp-autocomplete-place-font-weight ul li").css("fontFamily",Q("#yp-font-family").val()),"font-family"==h&&ct()),"animation-name"==h)&&Q("#animation-name-group .ui-autocomplete.ui-menu li").each(function(){c=Q(this),c.text()});"text-shadow"==h&&Q("#yp-autocomplete-place-text-shadow li").each(function(e){Q(this).css("textShadow",f[e].value)}),"cursor"==h&&Q("#yp-autocomplete-place-cursor li").each(function(e){Q(this).attr("style","cursor:"+f[e].value+" !important;")})},appendTo:Q(this).next()}).click(function(){Q(this).autocomplete("search","")})})}function Fe(e,t,a){var i,n=e.parent().parent().parent();"-"==e.parent().find(".yp-after-prefix").val()&&e.hasClass("yp-after-css-val")&&e.val()!=n.attr("data-css-default")&&e.parent().find(".yp-after-prefix").val("px").trigger("autogrow"),isNaN(e.parent().find(".yp-after-css-val").val())&&e.parent().find(".yp-after-prefix").val("-").trigger("autogrow"),!1===t&&(t=e.parent().find(".yp-after-css-val").val(),a=e.parent().find(".yp-after-prefix").val());var s=e.parent().parent().find(".wqNoUi-target");if(void 0===(i=rt(a,n))||!1===i)return!1;var r=parseInt(i[0]),o=parseInt(i[1]);t<r&&(r=parseInt(t)),o<t&&(o=t),!1===isNaN(r)&&!1===isNaN(o)&&!1===isNaN(t)&&s.wqNoUiSlider({range:{min:parseInt(r),max:parseInt(o)},start:t},!0)}function Ie(e){if(0==re.hasClass("yp-css-editor-active"))return!1;if(pe()){if(0==window.disable_auto_insert){at(null,"a","a","");var t=Ct(!1,null,!0),a=t.split("\ta:a")[0].split(/\r\n|\r|\n/).length;t=(t=t.replace(/a:a !important;/g,"")).replace(/a:a;/g,""),at(null,"a","disable",""),l.setValue(t),l.resize(!0),setTimeout(function(){l.scrollToLine(a,!0,!1);var e=ace.require("ace/range").Range,t="";de()&&(t=" ace-type-here-in-responsive"),l.getSession().removeMarker(window.typeHereMarker),window.typeHereMarker=l.session.addMarker(new e(a-1,0,a-1,1),"ace-type-here"+t,"line",!0)},2),e&&l.focus(),de()?l.gotoLine(a,2,!0):l.gotoLine(a,1,!0)}}else l.setValue(Ct(!0,null,!0)),e&&l.focus(),l.execCommand("gotolineend");l.resize()}function Ee(e,t){var a="yp-selected";re.hasClass("yp-control-key-down")&&pe()&&(a="yp-multiple-selected");var i=Ht(e),n=0,s=0,r="";for(n=0;n<i.length;n++)r+=0<n?window.separator+i[n]:i[n],1<ie.find(r).length&&ie.find(r).each(function(){")"!=r.substr(r.length-1)&&0<Q(this).parent().length&&(s=0,Q(this).parent().children().each(function(){s++,(0<Q(this).find("."+a).length||Q(this).hasClass(a))&&(r=r+":nth-child("+s+")")}))});if(-1!=r.indexOf(":nth-child")){for(i=Ht(r),n=0;n<i.length;n++){var o=De(i,n).join(" "),l=Me(i,n).join(" "),p=o+window.separator+i[n].replace(/:nth-child\((.*?)\)/i,"")+window.separator+l;p=ja(p),1==ie.find(p).length&&(i[n]=i[n].replace(/:nth-child\((.*?)\)/i,""))}r=ja(i.join(" "))}return t?r:ga(function(e){for(var t,a,i,n=Ht(e),s="",r=0;r<n.length;r++)t=n[r].replace(/:nth-child\((.*?)\)/i,""),a=ja(Q.trim(s+window.separator+t+window.separator+t)),i=ie.find(a),0<i.length&&i.hasClass("yp-selected")?s=ja(s)+" > "+n[r]+window.separator:s+=n[r]+window.separator;s=Q.trim(s),1<ie.find(s).length&&(s=s.replace(/(?=[^ ]*$)/i," > "));if(-1!=s.indexOf(">")){var o=s.split(">").length,l=ie.find(s).length;for(r=1;r<o;r++)(i=ie.find(s.replace(/ > /i," "))).length==l&&i.hasClass("yp-selected")&&(s=s.replace(/ > /i," "))}/^\>\s/i.test(s)&&(s=/^>\s(.*?) >/i.test(s)?s.replace(/^\>\s/i,""):(s=s.replace(/^\>\s/i,"")).split(" ")[0]+" > "+s.substring(s.indexOf(" ")+1));return ja(s)}(r))}function De(e,t){for(var a=[],i=0;i<e.length;i++)i<t&&a.push(e[i]);return a}function Me(e,t){for(var a=[],i=0;i<e.length;i++)t<i&&a.push(e[i]);return a}function $e(){Q("#parent-bar span").remove();var t,a,i,n=Q("#parent-bar ul");n.empty();var s=le().parentsUntil("html").andSelf();s.each(function(e){(t=Q(this)).addClass("yp-parent-way-"+e),a=oa(t),null!=(i=Pa(a,!1,t))&&0!=i||(i=J.unknown),i.toLowerCase()==J.division&&(i=a),s.length-1==e?n.append("<li data-parent-selector='"+a+"' class='active'><span>"+i+"</span></li>"):n.append("<li data-parent-selector='"+a+"'><span>"+i+"</span></li>")})}function Re(){if(""==window.parentItems){var t,a="",i=le().parentsUntil("html").length-1;le().parentsUntil("html").each(function(e){22<(a=oa(this)).length&&(a=a.substr(0,21)+"…"),t="",1==function(e,t){var a,i=!1,n=[];if(0!=(n=Et(e).selectors)&&null!=n&&0<n.length){n=n.filter(Boolean);for(var s=0;s<n.length;s++)if(a=Wa(n[s],!0,!0,!0,!0),0!=ua(a,!0,!1,!1)&&1==ie.find(a).hasClass(t)){i=!0;break}}return i}(null,"yp-parent-way-"+(i-e))&&(t="Edited"),a=a+"<i class='yp-contextmenu-small'>"+t+"</i>",window.parentItems+='"parent-'+e+'" : {"name": "'+a+'"},'}),window.parentItems+='"show-more-parent-link" : {"name": "...", "className": "show-more-parent-link"},',window.parentItems=Q.parseJSON("{"+window.parentItems.replace(/,$/g,"").toString()+"}")}""==window.childrenItems&&(a="",le().children().not("br").each(function(e){22<(a=oa(this)).length&&(a=a.substr(0,21)+"…"),window.childrenItems+='"children-'+e+'" : {"name": "'+a+'"},'}),window.childrenItems+='"show-more-children-link" : {"name": "...", "className": "show-more-children-link"},',window.childrenItems=Q.parseJSON("{"+window.childrenItems.replace(/,$/g,"").toString()+"}"))}function Ne(){var e=0,t=Q(".yp-select-bar"),a=Q(".yp-editor-panel"),i=Q(".yp-editor-top"),n=Q(".yp-panel-footer");window.lastScrollTop=a.scrollTop();var s=t.offset().top,r=i.height(),o=25;0==ypOption.show_parent_tree&&(o=0);var l=ie.height(),p=Q("#iframe").height(),d=Q(window).height(),c=d-(s+r+18+o);a.removeAttr("style"),c<(e=a.height())&&(e=c,a.height(e)),0<Q(".yp-editor-list > li.active").length?n.hide():n.show(),re.hasClass("yp-fixed-right-panel")&&(e=d-(s+r+o),a.height(e)),n.css("width",parseInt(t.width()-1)+"px"),a.scrollTop(window.lastScrollTop),0==de()&&setTimeout(function(){p<l?t.css("marginRight",8+ka()+"px"):t.css("marginRight","8px")},10),ve(window.rightPanelPerfect)?window.rightPanelPerfect=new PerfectScrollbar(Q(".yp-editor-panel")[0],{wheelSpeed:.5,suppressScrollX:!0,includePadding:!0,minScrollbarLength:12}):window.rightPanelPerfect.update()}function Le(e){if(0<Q(".inspector-sublist-default.active,.inspector-sublist-single.active").length&&re.hasClass("yp-metric-disable")){var t=Q(e.target);if(re.hasClass("yp-element-picker-active")){if(ie.find("#colorPickerLiveCSS").remove(),window.pickerColor=t.css("backgroundColor"),window.pickerColor=window.pickerColor.toLowerCase().replace(/ /g,""),""==window.pickerColor||"transparent"==window.pickerColor||"rgba(0,0,0,0)"==window.pickerColor||"rgba(255,255,255,0)"==window.pickerColor){var a=window.pickerColor;t.parents().each(function(){if("transparent"!=a&&""!=a&&null!==a)return window.pickerColor=Q(this).css("backgroundColor"),!1})}var i=Q(".yp-element-picker.active").parents(".yp-option-group").attr("data-css");ut(i,Qa(window.pickerColor.toString()),"colorPickerLiveCSS"),Q("#yp-"+i).iris("color",Qa(window.pickerColor.toString()))}if(t.hasClass("yp-iframe-placeholder")&&0<ie.find(".yp-will-selected").length&&(t=ie.find(".yp-will-selected"),e.target=ie.find(".yp-will-selected")[0]),0<oe.extra.find(".yp-iframe-placeholder").length&&(oe.extra.find(".yp-iframe-placeholder").remove(),ie.find(".yp-will-selected").removeClass("yp-will-selected")),"iframe"==t.prop("tagName").toLowerCase()&&0==window.setSelector){var n=t.get(0);if(!ve(n)){var s=n.getBoundingClientRect(),r=parseFloat(ie.scrollTop()),o=s.width,l=s.height,p=s.top+r,d=s.left,c=fa(t,"default"),u=t.css("margin-top"),m=t.css("margin-right"),g=t.css("margin-bottom"),h=t.css("margin-left"),f=t.css("padding-top"),v=t.css("padding-right"),y=t.css("padding-bottom"),w=t.css("padding-left");p-=parseFloat(u),d-=parseFloat(h),oe.extra.append("<div class='yp-iframe-placeholder' style='top:"+p+"px !important;left:"+d+"px !important;width:"+o+"px !important;height:"+l+"px !important;margin-top:"+u+";margin-right:"+m+";margin-bottom:"+g+";margin-left:"+h+";padding-top:"+f+";padding-right:"+v+";padding-bottom:"+y+";padding-left:"+w+";' data-iframe-selector='"+c+"'></div>"),t.addClass("yp-will-selected")}}if(ie.find(".yp-recent-hover-element").removeClass("yp-recent-hover-element"),!0===pe()&&!1===re.hasClass("yp-control-key-down")&&t.addClass("yp-recent-hover-element"),window.placeholderSelector)return!1;if(t.hasClass("yp-element-placeholder")||t.hasClass("yp-iframe-placeholder")||window.firstSelectLimit)return!1;var b=t.attr("class");if(!1===pe()){if(t.hasClass("yp-selected-tooltip"))return _t(),!1;if(0<t.parent().length&&t.parent().hasClass("yp-selected-tooltip"))return _t(),!1}if(fe(b)&&-1<b.indexOf("yp-selected-boxed-"))return!1;var x,_=t.prop("tagName");if(!0===pe()&&!1===re.hasClass("yp-control-key-down"))return!1;if(" "==t.html()&&"P"==t.prop("tagName"))return!1;if("html"==_.toLowerCase())return!1;if(null===t)return!1;if(0===t.length)return!1;if(se.hasClass("yp-selector-disabled"))return!1;!1===pe()&&(_t(),t.addClass("yp-selected")),x=!1===window.setSelector?ypOption.high_performance?function(e){var t=[];null===e&&(e=le());if(void 0===e[0]||!1===e[0]||null===e[0])return!1;var a=e[0].tagName;if(ve(a)||"HTML"==a)return!1;if(t.push(a.toLowerCase()),e.hasAttr("class"))for(var i=Ut(e.attr("class")),n=0;n<i.length;n++)if(""!=ti(i[n])){if(8<t.length||45<t.join("").length)break;t.push("."+i[n])}if(e.hasAttr("id")){var s=e.attr("id");""==ti(s)&&t.push("#"+s)}return t.join("")}(t):fa(t,"default"):window.setSelector,e.stopPropagation(),e.preventDefault(),!1===pe()?(va(e.target,"yp-selected-boxed"),oe.general.append("<div class='yp-selected-tooltip'><small class='yp-tooltip-small'>"+Pa(x,!0,null)+"</small> "+Q.trim(x)+"</div><div class='yp-edit-tooltip'><span class='yp-edit-menu'></span></div>"),0==ypOption.high_performance&&(Q(x).addClass("yp-selected-others"),Ca(window.drawOtherSelectorLast=x)),Aa()):re.hasClass("yp-control-key-down")&&0===t.parents(".yp-selected").length&&(ie.find(".yp-multiple-selected").removeClass("yp-multiple-selected"),t.addClass("yp-multiple-selected"),Ca(t,"multiple"))}}function Be(){if(0==ie.find(".yp-selected").length)return!1;var e,t=le().get(0);if(ve(t))a={width:0,height:0};else var a=t.getBoundingClientRect();if(0==a.width&&0==a.height)return clearTimeout(window.SelectedElHidden),window.SelectedElHidden=setTimeout(function(){!re.hasClass("yp-element-not-visible")&&pe()&&Va("The selected element is hidden in the current screen size.","selectedElement"),se.addClass("yp-element-not-visible")},600),!1;clearTimeout(window.SelectedElHidden),0<Q("#"+(e="selectedElement")).length&&Q("#"+e).fadeOut(300,function(){Q("#"+e).remove()}),se.removeClass("yp-element-not-visible"),va(".yp-selected","yp-selected-boxed"),0==ypOption.high_performance&&Ca(),Aa()}function Pe(e){return"desktop"!=e?"@media "+e+"{":""}function We(e){return"desktop"!=e?"}":""}function je(i,n,s,r,o,l,e){if(0==ypOption.smart_important_tag)return!1;o=Xe(o,n,s),i=it(i,n),s=s.replace(/\s+?!important/g,"").replace(/\;$/g,"");var t=ee(null,!1);null==e&&(e=X(t,"[selector="+$a(i)+"][rule="+n+"][msize="+o+"]"));var a;if(null!=(a=X(t,"[selector="+$a(i)+"][rule="+ae(n)+"][msize="+o+"]"))&&(e=a+1),U(G(ee(null,!1),"[selector="+$a(i)+"][rule="+n+"][msize="+o+"]")),U(G(ee(null,!1),"[selector="+$a(i)+"][rule="+ae(n)+"][msize="+o+"]")),"animation-name"==n&&Qe(i,n,s,r,o,l),"disable"==s||""==s||"undefined"==s||null===s)return!1;var p=Pe(o),d=We(o),c=s+r;""!=$a(i)&&(!0===ce()&&"position"!=n?(ie.find("#yp-anim-scenes #"+$a(se.attr("data-anim-scene")+n)).remove(),ie.find("#yp-anim-scenes #"+se.attr("data-anim-scene")).append('<style data-rule="'+n+'" class="style-'+se.attr("data-anim-scene")+" scenes-"+$a(n)+'-style">'+i+"{"+n+":"+c+" !important}</style>")):(t=ee(null,!1),-1!=window.webkitArray.indexOf(n)?U(V(t,p+i+"{-webkit-"+n+":"+c+" !important}"+d,e)):"justify-content"==n?U(V(t,p+i+"{-webkit-box-pack:"+c+" !important}"+d,e)):"align-items"==n?U(V(t,p+i+"{-webkit-box-align:"+c+" !important}"+d,e)):"flex-grow"==n&&U(V(t,p+i+"{-webkit-box-flex:"+c+" !important}"+d,e)),U(V(ee(null,!1),p+i+"{"+n+":"+c+" !important}"+d,e)))),re.hasClass("yp-wireframe-mode")&&("color"!=n&&"background-color"!=n&&"background-image"!=n&&"box-shadow"!=Wt(n)[0]&&"border-color"!=n&&"text-shadow"!=n&&-1==Wt(n)[0].indexOf("-radius")&&"filter"!=Wt(n)[0]||le().addClass("yp-no-wireframe")),nt(null,n,c).always(function(e){if(0==e){var t=Ht(i).length;if(12<t+1)return!1;window.minCroppedSelector=t+1;var a=fa(ie.find(".yp-content-selected .yp-selected"),window.lastParentQueryStatus);if(window.minCroppedSelector=!1,Ht(a).length<=t)return!1;U(G(ee(l,!1),"[selector="+$a(i)+"][rule="+n+"][msize="+o+"]"),l),U(G(ee(l,!1),"[selector="+$a(i)+"][rule="+ae(n)+"][msize="+o+"]"),l),je(a,n,s,r,o,l,"default"),setTimeout(function(){Be()},window.Yellow2Delay)}})}function qe(e){return e=(e=(e=(e=(e=e.replace(/(^|\s|\}|\*\/)(.*?):(hover|focus|active|visited|link|checked|disabled|enabled|invalid|valid){/g,function(e,t,a,i){return Ge(e)})).replace(/[^-](filter|transform|background-clip|perspective|background-size|box-sizing|animation-name|animation-iteration-count|animation-duration|animation-delay|animation-fill-mode|box-shadow|flex-direction|flex-wrap|justify-content|align-items|align-content|flex-basis|align-self|flex-grow|flex-shrink|transform-origin|backface-visibility)\:(.*?);/g,"-webkit-$1:$2;\n\t$1:$2;")).replace(/-webkit-justify-content/g,"-webkit-box-pack")).replace(/-webkit-align-items/g,"-webkit-box-align")).replace(/-webkit-flex-grow/g,"-webkit-box-flex")}function Ye(e){if(!pe())return!1;if("0"==s.css("opacity"))return!1;s.stop().animate({opacity:0},e);var t=ne.find("#yp-ui-transform-hide");0==t.length?ne.append("<style id='yp-ui-transform-hide'>.yp-content-selected.yp-has-transform .yp-selected,.yp-has-transform .yp-selected-others,.yp-content-selected.yp-high-performance .yp-selected,.yp-high-performance .yp-selected-others,.yp-content-selected.yp-has-transform.yp-selector-hover .yp-selected,.yp-has-transform.yp-selector-hover .yp-selected-others,.yp-content-selected.yp-high-performance.yp-selector-hover .yp-selected,.yp-high-performance.yp-selector-hover .yp-selected-others,.yp-content-selected.yp-has-transform.yp-selector-focus .yp-selected,.yp-has-transform.yp-selector-focus .yp-selected-others,.yp-content-selected.yp-high-performance.yp-selector-focus .yp-selected,.yp-high-performance.yp-selector-focus .yp-selected-others{outline:none !important}</style>"):t.html(".yp-content-selected.yp-has-transform .yp-selected,.yp-has-transform .yp-selected-others,.yp-content-selected.yp-high-performance .yp-selected,.yp-high-performance .yp-selected-others,.yp-content-selected.yp-has-transform.yp-selector-hover .yp-selected,.yp-has-transform.yp-selector-hover .yp-selected-others,.yp-content-selected.yp-high-performance.yp-selector-hover .yp-selected,.yp-high-performance.yp-selector-hover .yp-selected-others,.yp-content-selected.yp-has-transform.yp-selector-focus .yp-selected,.yp-has-transform.yp-selector-focus .yp-selected-others,.yp-content-selected.yp-high-performance.yp-selector-focus .yp-selected,.yp-high-performance.yp-selector-focus .yp-selected-others{outline:none !important}")}function He(e){if(!pe())return!1;if(se.hasClass("yp-force-hide-select-ui"))return!1;if("1"==s.css("opacity"))return!1;Be(),s.stop().animate({opacity:1},e);var t=ne.find("#yp-ui-transform-hide");0<t.length&&t.html("")}function Ue(){var e="desktop";if(de()){var t=Q("#iframe").width();e="("+Q(".media-control").attr("data-code")+":"+t+"px)"}return e}function Xe(e,t,a){if(fe(e))return e;if(0<Q(".property-size-tabs-visible .property-size.active").length)return e=Q(".property-size-tabs-visible .property-size.active").attr("data-insert-media").replace(/(\s+)?@media(\s+)?/g,"");if(de()){var i=Q("#iframe").width();return e="("+Q(".media-control").attr("data-code")+":"+i+"px)"}if(1==ypOption.smart_responsive_technology&&("font-size"==t||"line-height"==t||"letter-spacing"==t||"word-spacing"==t||"text-indent"==t||"margin-left"==t||"margin-right"==t||"margin-top"==t||"margin-bottom"==t||"padding-left"==t||"padding-right"==t||"padding-top"==t||"padding-bottom"==t||"z-index"==t||"position"==t||"top"==t||"left"==t||"right"==t||"bottom"==t||"width"==t||"height"==t||"box-sizing"==t||"min-width"==t||"min-height"==t||"max-width"==t||"max-height"==t||"animation-name"==t||"animation-iteration"==t||"animation-duration"==t||"animation-delay"==t||"animation-fill-mode"==t||"transform"==t||"filter"==t||"opacity"==t||"display"==t||"cursor"==t||"float"==t||"clear"==t||"visibility"==t||"pointer-events"==t||"overflow-y"==t||"overflow-x"==t)){var n=function(e){var a,i,n,s,r=[];a=0==e?ba(!0,!1):ba(!1,e);if(0==a.length)return!1;if(Q.each(a,function(e,t){fe(i=ya(t))&&(i=i.toString(),r.push(i),n=ja(a[e].replace("@media","")),I.matchMedia(n).matches&&(s=n))}),fe(s))return s;var t,o=!1,l=[],p=[],d=Q(window).width();Q.each(r,function(e,t){null!=t&&(-1!=(t=t.toString()).indexOf("<")?p.push(t.replace(/\</g,"")):-1!=t.indexOf(">")&&l.push(t.replace(/\>/g,"")))}),l=l.sort(function(e,t){return t-e}),p=p.sort(function(e,t){return t-e}),Q.each(p,function(){this<=d&&(null==t||d-this<d-t)&&(t=this)}),0<p.length&&0<l.length&&l[0]>d&&p[0]<d&&(o="(min-width:"+p[0]+"px) and (max-width:"+l[0]+"px)");0<p.length&&0<l.length&&l[0]>d&&p[0]>d&&(o=t<d?"(max-width:"+l[0]+"px) and (min-width:"+t+"px)":"(max-width:"+l[0]+"px)");0==p.length&&0<l.length&&l[0]>d&&(o="(max-width:"+l[0]+"px)");0<p.length&&0<l.length&&l[0]<d&&p[0]<d&&(o="(min-width:"+p[0]+"px)");0<p.length&&0==l.length&&p[0]<d&&(o="(min-width:"+p[0]+"px)");1<p.length&&0==l.length&&p[0]>d&&t<d&&(o="(max-width:"+p[0]+"px) and (min-width:"+t+"px)");return o}(t);if(fe(n))return null!=a&&0!=a&&"disable"!=a&&Va("The style was applied to a specific screen size to preserve responsive design.","responsiveLayout"),n}return"desktop"}function Ge(e){var t=e.match(/:(hover|focus|active|visited|link|checked|disabled|enabled|invalid|valid)/g);if(null==t)return e;var a="",i="";return"hover"!=(t=t[0].replace(/:/g,""))&&"focus"!=t&&"active"!=t&&"visited"!=t&&"link"!=t&&"checked"!=t&&"disabled"!=t&&"enabled"!=t&&"invalid"!=t&&"valid"!=t||("}"==e.charAt(0)&&(a="}"),"{"==e.slice(-1)&&(i="{"),e=a+(e=ni(e=(e=(e=(e=e.replace(/(\{|\})/g,"")).replace(/(body)?\.yp-selector-(hover|focus|active|visited|link|checked|disabled|enabled|invalid|valid)\./g,"body.")).replace(/(body)?\.yp-selector-(hover|focus|active|visited|link|checked|disabled|enabled|invalid|valid)/g,"")).replace(/:(hover|focus|active|visited|link|checked|disabled|enabled|invalid|valid)(\s+)?$/g,""),"yp-selector-"+t))+i),e}function Ve(e,t){return e=!0===t?(e=(e=(e=(e=(e=e.replace(/:nth-child\((.*?)\)/g,".nth-child.$1.")).replace(/:not\((.*?)\)/g,".notYP$1YP")).replace(/:lang\((.*?)\)/g,".langYP$1YP")).replace(/:nth-last-child\((.*?)\)/g,".nth-last-child.$1.")).replace(/:nth-last-of-type\((.*?)\)/g,".nth-last-of-type.$1.")).replace(/:nth-of-type\((.*?)\)/g,".nth-of-type.$1."):(e=(e=(e=(e=(e=e.replace(/\.nth-child\.(.*?)\./g,":nth-child($1)")).replace(/\.notYP(.*?)YP/g,":not($1)")).replace(/\.langYP(.*?)YP/g,":lang($1)")).replace(/\.nth-last-child\.(.*?)\./g,":nth-last-child($1)")).replace(/\.nth-last-of-type\.(.*?)\./g,":nth-last-of-type($1)")).replace(/\.nth-of-type\.(.*?)\./g,":nth-of-type($1)")}function Je(e,t,a,i){var n="",s=Pe(i),r=We(i);if(""!=$a(e)&&"disable"!=a){n=h(s+e+"{"+t+":"+a+"}"+r)}return n}function Ke(e){re.addClass("process-by-code-editor");var t=qe(Ct(!0,null,!1)),a=t=ca(t=(t=(t=(t=Ve(t,!0)).replace(/(\r\n|\n|\r)/g,"").replace(/\t/g,"")).replace(/\}\s+\}/g,"}}").replace(/\s+\{/g,"{").replace(/\}\s+/g,"}")).replace(/\s+\}/g,"}").replace(/\{\s+/g,"{"));if(t=t.replace(/(\/\*)(.*?)\*\/(\s+)?/g,""),"desktop"!=e){var i=Q.trim(e.replace(/\)/g,"\\)").replace(/\(/g,"\\(")),n=new RegExp(i+"(.*?)}}","g"),s=new RegExp(i,"g");null!=t.match(n)&&(t=t.match(n).toString()),t=(t=t.replace(s,"")).toString().replace(/\}\}/g,"}")}else t=t.replace(/@media(.*?)\}\}/g,"");if(""==t)return re.removeClass("process-by-code-editor"),!1;var r,o="";"desktop"==e&&kt().empty();var l,p,d=Ra((t=t.toString().replace(/\}\,/g,"}")).replace(/\{(.*?)\}/g,"|BREAK|").split("|BREAK|")),c=e.toString().replace(/\{/g,"").replace(/@media /g,"").replace(/@media/g,"");t=(t="}"+t).replace(/\}/g,"}}");for(var u=0;u<d.length;u++)if(null!=(r=d[u])&&""!=r&&-1==(r=r.trim()).indexOf("}")&&-1==r.indexOf("{")){var m=wa(r),g=window.selectorComments[$a(r)];null!=g&&null!=g&&0==new RegExp("\\/\\*(.*?)\\*\\/"+m+"{","gi").test(a)&&delete window.selectorComments[$a(r)];var h=t.match(new RegExp("}"+m+"{(.*?)}","g"));if(r=Ve(ja(r),!1),null!==h&&""!=h){var f,v,y;h=(h=(h=(h=h.toString().match(/\{(.*?)\}/g).toString().replace(/\}\,\{/g,";").replace(/\{/g,"").replace(/\}/g,"").replace(/\;\;/g,";")).replace(/\((.*?)\)|\"(.*?)\"/g,function(e,t,a,i){return e.replace(/\;/g,"YxkHNXdP")})).replace(/\((.*?)\)|\"(.*?)\"/g,function(e,t,a,i){return e.replace(/\:/g,"HXImiddP")})).split(";");for(var w=0;w<h.length;w++)void 0!==(f=Q.trim(h[w]).replace(/YxkHNXdP/,";").replace(/HXImiddP/,":"))&&3<=f.length&&-1!=f.indexOf(":")&&""!=(v=f.split(":")[0])&&"a"!=v&&""!=(y=f.split(":").slice(1).join(":"))&&(o+=Je(r,v,y,c))}}""!=o&&(l=(l=o).replace(/\/\*/g,"\n/*").replace(/\*\//g,"*/\n"),fe(p)?Z.querySelector('[data-source-mode="'+p+'"]').insertAdjacentHTML("beforeend",l):Z.getElementById("yp-styles-area").insertAdjacentHTML("beforeend",l)),re.removeClass("process-by-code-editor")}function Qe(e,t,a,i,n,s){if("disable"!=a&&"none"!=a&&pe()&&!1===b()){if(!1===Q("#animation-duration-group").hasClass("hidden-option")&&!1===Q("#animation-delay-group").hasClass("hidden-option")){var r=le().css("animationDuration").replace(/[^0-9.,]/g,""),o=le().css("animationDelay").replace(/[^0-9.,]/g,"");Wa(e,!1,!1,!0,!0)==da().trim()&&("0"==r&&(r=1),at(e,"animation-duration",r+"s",i,n,s),o<0&&(o=0),at(e,"animation-delay",o+"s",i,n,s))}var l=le().css("animationFillMode");null!=l&&"none"!=l||(l="both"),at(da(),"animation-fill-mode",l,i,n,s),Yt("animation-duration"),Yt("animation-delay"),Yt("animation-fill-mode")}at(e,"transform-origin","bounce"==a?"center bottom":"swing"==a?"top center":"jello"==a?"center":"disable",i,n,s),at(e,"backface-visibility","flipInX"==a?"visible":"disable",i,n,s)}function et(e,t){var a=Wa(e,!0,!0,!0,!0),i=Wa(t,!0,!0,!0,!0),n=ua(a,!0,!1,!1);if(0==n)return!1;var s=ua(i,!0,!1,!1);if(0==s)return!1;n.addClass("test-selector1-group");var r=s.filter(".test-selector1-group");return n.removeClass("test-selector1-group"),s.length==r.length&&(n.length==s.length&&0!=n.length&&(/yp-selector-hover/g.test(e)==/yp-selector-hover/g.test(t)&&(/yp-selector-focus/g.test(e)==/yp-selector-focus/g.test(t)&&(/yp-selector-active/g.test(e)==/yp-selector-active/g.test(t)&&(/yp-selector-visited/g.test(e)==/yp-selector-visited/g.test(t)&&(/yp-selector-link/g.test(e)==/yp-selector-link/g.test(t)&&(/yp-selector-checked/g.test(e)==/yp-selector-checked/g.test(t)&&(/yp-selector-disabled/g.test(e)==/yp-selector-disabled/g.test(t)&&(/yp-selector-enabled/g.test(e)==/yp-selector-enabled/g.test(t)&&(/yp-selector-invalid/g.test(e)==/yp-selector-invalid/g.test(t)&&(/yp-selector-valid/g.test(e)==/yp-selector-valid/g.test(t)&&(/yp-scene-1/g.test(e)==/yp-scene-1/g.test(t)&&(/yp-scene-2/g.test(e)==/yp-scene-2/g.test(t)&&(/yp-scene-3/g.test(e)==/yp-scene-3/g.test(t)&&(/yp-scene-4/g.test(e)==/yp-scene-4/g.test(t)&&(/yp-scene-5/g.test(e)==/yp-scene-5/g.test(t)&&(/yp-scene-6/g.test(e)==/yp-scene-6/g.test(t)&&(/yp-selected/g.test(e)==/yp-selected/g.test(t)&&(/yp_onscreen/g.test(e)==/yp_onscreen/g.test(t)&&(/yp_hover/g.test(e)==/yp_hover/g.test(t)&&(/yp_focus/g.test(e)==/yp_focus/g.test(t)&&(/yp_click/g.test(e)==/yp_click/g.test(t)&&(/:active/g.test(e)==/:active/g.test(t)&&(/:checked/g.test(e)==/:checked/g.test(t)&&(/:disabled/g.test(e)==/:disabled/g.test(t)&&(/:empty/g.test(e)==/:empty/g.test(t)&&(/:enabled/g.test(e)==/:enabled/g.test(t)&&(/:hover/g.test(e)==/:hover/g.test(t)&&(/:focus/g.test(e)==/:focus/g.test(t)&&(/:in-range/g.test(e)==/:in-range/g.test(t)&&(/:invalid/g.test(e)==/:invalid/g.test(t)&&(/:lang/g.test(e)==/:lang/g.test(t)&&(/:link/g.test(e)==/:link/g.test(t)&&(/:optional/g.test(e)==/:optional/g.test(t)&&(/:out-of-range/g.test(e)==/:out-of-range/g.test(t)&&(/:valid/g.test(e)==/:valid/g.test(t)&&/:visited/g.test(e)==/:visited/g.test(t)))))))))))))))))))))))))))))))))))))}function tt(e){var t=Q("#yp-customizing-type-frame"),a=ue(),i=t.attr("data-page-id"),n=t.attr("data-page-type"),s=t.attr("data-page-href"),r=t.attr("data-page-visitor");r="true"==r||1==r?"&yp_out=true":"";var o=t.attr("data-src")+"&yp_page_href="+s+"&yp_page_id="+i+"&yp_page_type="+n+"&yp_mode="+a+r;if(0==e&&o==t.attr("src"))return!1;var l=Q("<div />").append(Q("#yp-customizing-type-frame").clone().attr("src",o)).html();t.remove(),Q("#iframe").after(l)}function at(t,a,i,n,s,r,o){null==r&&(r=ue()),null===t&&(t=da()),s=Xe(s,a,i),".s"==(n=Q.trim(n))&&(n="s"),-1!=n.indexOf("px")&&(n="px");var e=a;if(ft(a,!1),ie.find(".yp-live-css").remove(),ve(i)&&0!==i)return!1;if(a=a.toString().toLowerCase(),e=e.toString().toLowerCase(),n=n.toString().toLowerCase(),0<i.length){/\.00$/.test(i)&&(i=i.replace(/\.00$/g,"")),/\.0$/.test(i)&&(i=i.replace(/\.0$/g,""))}var l,p,d,c=K(a);if("font-family"!=c&&"background-image"!=c&&"list-style-image"!=c&&"animation-name"!=c&&"animation-play"!=a&&"filter"!=c&&"transform"!=c&&(i=i.toString().toLowerCase()),"nan"==i||"NaN"==i)return!1;if(t=it(t,a),"height"==a||"width"==a){var u=Ea(Q("#min-"+a+"-value").val()),m=Q("#min-"+a+"-after").val();parseFloat(i)<parseFloat(u)&&n==m&&(at(t,"min-"+a,i,n,s,r,o),setTimeout(function(){Q.each(["min-"+a],function(e,t){Yt(t)})},50))}if(!0===ce()&&-1!=a.indexOf("animation"))return!1;if("background-color"==a||"color"==a||"border-color"==a||"border-left-color"==a||"border-right-color"==a||"border-top-color"==a||"border-bottom-color"==a||"box-shadow-color"==a){var g=Q.trim(i).replace("#","");"red"==g?i="#FF0000":"white"==g?i="#FFFFFF":"blue"==g?i="#0000FF":"orange"==g?i="#FFA500":"green"==g?i="#008000":"purple"==g?i="#800080":"pink"==g?i="#FFC0CB":"black"==g?i="#000000":"brown"==g?i="#A52A2A":"yellow"==g?i="#FFFF00":"gray"==g&&(i="#808080")}if("disable"!=i&&"a"!=i&&1==ypOption.append_auto_comments&&Ya(t,null),"background-clip"==a&&"text"==i&&(window.lastTextColor=le().css("color"),at(t,"color","transparent","",s,r,o)),"background-clip"==a&&"text"!=i&&null!=window.lastTextColor){var h=le().css("color");"transparent"!=h&&"rgba(0, 0, 0, 0)"!=h&&"rgba(0,0,0,0)"!=h||at(t,"color",window.lastTextColor,"",s,r,o)}if("background-clip"==a&&"text"!=i&&null==window.lastTextColor&&at(t,"color","disable","",s,r,o),"display"==a&&("flex"==i||"inline-flex"==i?(se.addClass("yp-flex-container"),Q("li.flex-option").insertBefore(Q("li.grid-option"))):se.removeClass("yp-flex-container"),"grid"==i||"inline-grid"==i?(se.addClass("yp-grid-element"),Q("li.grid-option").insertBefore(Q("li.flex-option"))):se.removeClass("yp-grid-element")),"border-width"==a&&Q.each(["border-top-width","border-left-width","border-right-width","border-bottom-width"],function(e,t){Yt(t)}),"border-color"==a&&Q.each(["border-top-color","border-left-color","border-right-color","border-bottom-color"],function(e,t){Yt(t)}),"border-style"==a&&Q.each(["border-top-style","border-left-style","border-right-style","border-bottom-style"],function(e,t){Yt(t)}),-1!=a.indexOf("border-")&&-1!=a.indexOf("-style")&&"border-style"!=a&&Yt("border-style"),-1!=a.indexOf("border-")&&-1!=a.indexOf("-color")&&"border-color"!=a&&Yt("border-color"),-1!=a.indexOf("border-")&&-1!=a.indexOf("-width")&&"border-width"!=a&&Yt("border-width"),"animation-name"==a&&0===Q(".yp-animate-manager-active").length){var f=1;"none"!=i&&"disable"!=i||(f=0),-1!=i.indexOf(",")&&(f=i.split(",").length),"disable"!=i&&"none"!=i||Q(".anim-player-icon").removeClass("dashicons-controls-pause").addClass("dashicons-controls-play"),"none"!=i&&"disable"!=i&&Q(".anim-player-icon").removeClass("dashicons-controls-play").addClass("dashicons-controls-pause");var v=le().css("animationDuration"),y=v.split(","),w=1;if(-1!=v.indexOf(",")&&(w=y.length),w!=f){for(v=[],d=0;d<f;d++)v.push(y[d]);v=v.toString().replace(/\s+/g,""),f<=1&&Q("#animation-duration-group").removeClass("hidden-option"),at(null,"animation-duration",v,"",s,r,o)}var b=le().css("animationDelay"),x=b.split(","),_=1;if(-1!=b.indexOf(",")&&(_=x.length),_!=f){for(b=[],d=0;d<f;d++)b.push(x[d]);b=b.toString().replace(/\s+/g,""),f<=1&&Q("#animation-delay-group").removeClass("hidden-option"),at(null,"animation-delay",b,"",s,r,o)}}if(("animation-name"==a||"animation-play"==a||"animation-iteration"==a||"animation-duration"==a)&&0===Q(".yp-animate-manager-active").length&&"none"!=i&&"disable"!=i){var k=dt(l=le().css("animationDuration"),p=le().css("animationDelay")),C=(p=!1!==k?parseFloat(k):ve(p)?0:parseFloat(Mt(p)))+(l=ve(l)?1e3:parseFloat(Mt(l)));0===C&&(C=1e3),C+=100,se.addClass("yp-hide-borders-now yp-force-hide-select-ui"),ai(),window.animationTimer1=setTimeout(function(){se.removeClass("yp-hide-borders-now yp-force-hide-select-ui"),ii(),Be(),0==re.hasClass("yp-iframe-mouseleave")&&setTimeout(function(){He(200)},300),Q(".anim-player-icon").removeClass("dashicons-controls-pause").addClass("dashicons-controls-play")},C)}if("background-image"==a&&"disable"!=i&&"none"!=i&&""!=i&&("url()"==i.replace(/(\s|\"|\')/g,"")&&(i="disable"),-1==i.indexOf("//")&&-1==i.indexOf("linear-gradient(")&&-1==i.indexOf("data:")&&(i="disable")),"list-style-image"==a&&"disable"!=i&&"none"!=i&&""!=i&&("url()"==i.replace(/(\s|\"|\')/g,"")&&(i="disable"),-1==i.indexOf("//")&&-1==i.indexOf("data:")&&(i="disable")),("top"==a||"bottom"==a||"left"==a||"right"==a)&&"disable"!=i){var z=le().css("position");"relative"!=z&&"static"!=z||(at(t,"position","relative","",s,r,o),Yt("position"))}if("background-color"==a&&"disable"!=i&&"none"!=Q("#yp-background-image").val()&&""!=Q("#yp-background-image").val())return je(t,a,i,n,s,r,o),!1;var A,O,T=Pe(s),Z=We(s),S=null;if(null==Wt(a)[1]){var F;if(A=ee(r,!1),null==o&&(o=X(A,"[selector="+$a(t)+"][rule="+a+"][msize="+s+"]")),0<(F=te(A,"[selector="+$a(t)+"][rule="+a+"][msize="+s+"]")).length){if(Bt(F[0])==i||Bt(F[0])==i+n)return!1;U(G(A,"[selector="+$a(t)+"][rule="+a+"][msize="+s+"]"),r,e)}if(null!=(S=X(A,"[selector="+$a(t)+"][rule="+ae(a)+"][msize="+s+"]"))&&(o=S+1),0<(F=te(A,"[selector="+$a(t)+"][rule="+ae(a)+"][msize="+s+"]")).length){if(Bt(F[0])==i||Bt(F[0])==i+n)return!1;U(G(A,"[selector="+$a(t)+"][rule="+ae(a)+"][msize="+s+"]"),r)}var I,E=te(A=ee(r,!1),"[rule="+a+"][msize="+s+"]");for(d=0;d<E.length;d++)if(I=Pt(E[d]),et(t,I)){U(G(A,"[selector="+$a(I)+"][rule="+a+"][msize="+s+"]"),r,e);break}for(E=te(A,"[rule="+ae(a)+"][msize="+s+"]"),d=0;d<E.length;d++)if(I=Pt(E[d]),et(t,I)){U(G(A,"[selector="+$a(I)+"][rule="+ae(a)+"][msize="+s+"]"),r);break}if(ce()&&0<(F=ie.find("#yp-anim-scenes #"+Q("body").attr("data-anim-scene")+" .scenes-"+$a(a)+"-style")).length){if(Bt(F.html())==i||Bt(F.html())==i+n)return!1;var D=parseInt(Q("body").attr("data-anim-scene").replace(/scene-/g,""))+1;for(F.remove(),O=D;O<7;O++)0!=Q(".anim-bar .scenes .scene-"+O).length&&1!=Q(".anim-bar .scenes .scene-"+O).hasClass("scene-no-click-yet")||ie.find("#yp-anim-scenes #scene-"+O+" .scenes-"+$a(a)+"-style").remove()}}if("disable"!=i&&""!=i&&"undefined"!=i&&null!==i&&(-1!=window.webkitArray.indexOf(a)&&at(t,"-webkit-"+a,i,n,s,r,S),"justify-content"==a&&at(t,"-webkit-box-pack",i,n,s,r,S),"align-items"==a&&at(t,"-webkit-box-align",i,n,s,r,S),"flex-grow"==a&&at(t,"-webkit-box-flex",i,n,s,r,S)),"animation-iteration-count"!=c&&"flex-grow"!=c&&"flex-shrink"!=c&&"opacity"!=c&&"blur-filter"!=c&&"grayscale-filter"!=c&&"brightness-filter"!=c&&"z-index"!=c&&"contrast-filter"!=c&&"hue-rotate-filter"!=c&&"saturate-filter"!=c&&"sepia-filter"!=c&&-1==c.indexOf("-transform")||"text-transform"!=c&&(i=Ea(i),n=""),"blur-filter"==a||"grayscale-filter"==a||"brightness-filter"==a||"contrast-filter"==a||"hue-rotate-filter"==a||"saturate-filter"==a||"sepia-filter"==a){var M=gt(!0);return at(t,"filter",M,"",s,r,o),!1}if(-1!=c.indexOf("-transform")&&"text-transform"!=c){var $=mt(!0);return at(t,"transform",$,"",s,r,o),!1}if("border-type"==a)return!1;if("box-shadow-inset"==a||"box-shadow-color"==a||"box-shadow-vertical"==a||"box-shadow-blur-radius"==a||"box-shadow-spread"==a||"box-shadow-horizontal"==a){var R=ht(t,!0);return at(t,"box-shadow",R,"",s,r,o),!1}if("animation-play"==a){var N,L,B=te(A=ee(r,!1),"[msize="+s+"]"),P=t.replace(/\.(yp_onscreen|yp_hover|yp_click|yp_focus)/g,"");for(d=0;d<B.length;d++)N=/\[selector\=(.*?)\]/g.exec(B[d])[1],L=Pt(B[d]),N==$a(P+".yp_onscreen")&&(A=G(A,"[selector="+$a(L)+"][msize="+s+"]")),N==$a(P+".yp_hover")&&(A=G(A,"[selector="+$a(L)+"][msize="+s+"]")),N==$a(P+".yp_click")&&(A=G(A,"[selector="+$a(L)+"][msize="+s+"]")),N==$a(P+".yp_focus")&&(A=G(A,"[selector="+$a(L)+"][msize="+s+"]"));return U(A,r),"none"!=Q("#yp-animation-name").val()&&at(t,"animation-name",Q("#yp-animation-name").val(),n,s,r,o),!1}if("animation-name"==a&&Qe(t,0,i,n,s,r),"disable"==i||""==i||"undefined"==i||null===i)return Q("#"+a+"-group").removeClass("reset-enable"),!1;var W=i+n;if(W=W.replace(/\s+?!important/g,"").replace(/\;$/g,""),""!=$a(t)){if(!0===ce()&&"position"!=a){ie.find("#yp-anim-scenes #"+$a(se.attr("data-anim-scene")+e)).remove(),ie.find("#yp-anim-scenes #"+se.attr("data-anim-scene")).append('<style data-rule="'+e+'" class="style-'+se.attr("data-anim-scene")+" scenes-"+$a(e)+'-style">'+t+"{"+e+":"+W+"}</style>");var j,q,Y=0;for(O=parseInt(se.attr("data-anim-scene").replace("scene-",""))+1;O<=6;O++)Y="scene-"+O,(0==(j=ie.find("#yp-anim-scenes #"+Y+" .scenes-"+$a(e)+"-style")).length||j.hasClass("dynamic-generated-scene"))&&(q=t.replace(/body\.yp-scene-[0-9]/g,"body.yp-scene-"+O),ie.find("#yp-anim-scenes #"+Y+" style[data-rule='"+e+"']").remove(),ie.find("#yp-anim-scenes #"+Y).append('<style data-rule="'+e+'" class="dynamic-generated-scene style-'+Y+" scenes-"+$a(e)+'-style">'+q+"{"+e+":"+W+"}</style>"))}else U(V(ee(r,!1),T+t+"{"+e+":"+W+"}"+Z,o),r,e);Be()}if(Q("#"+a+"-group").hasClass("property-size-tabs-visible")&&xa(ya(s)),"perspective"==a)return!1;if("grid-template-columns"==a||"grid-template-rows"==a)return!1;if(re.hasClass("yp-anim-creator"))return!1;if(re.hasClass("yp-animate-manager-mode"))return!1;if("a"==a)return!1;if("animation-fill-mode"==a&&le().hasAttr("style")){var H=le().attr("style").replace(/(-webkit-|-moz-|-o-)?animation-fill-mode(\s+)?:(.*?)(;|$)/,"");le().attr("style",H)}if(re.hasClass("yp-wireframe-mode")&&("color"!=e&&"background-color"!=e&&"background-image"!=e&&"box-shadow"!=Wt(e)[0]&&"border-color"!=e&&"text-shadow"!=e&&-1==Wt(e)[0].indexOf("-radius")&&"filter"!=Wt(e)[0]||le().addClass("yp-no-wireframe")),window.editedByReview)return!1;-1==a.indexOf("-webkit-")&&-1==a.indexOf("-moz-")&&-1==a.indexOf("-o-")&&nt(null,e,W).always(function(e){0==e&&je(t,a,i,n,s,r,o)})}function it(e,t){if(e=!0===ce()&&"position"!=t?ni(e=Q.trim(e.replace(/(body)?\.yp-scene-[0-9]/g,"")),"yp-"+se.attr("data-anim-scene")):Q.trim(e.replace(/(body)?\.yp-scene-[0-9]/g,"")),"perspective"==t&&0<le().parents().length&&(e=Q.trim(fa(le().parent(),"defaultNoCache"))),!1===re.hasClass("process-by-code-editor")&&0===Q(".yp-animate-manager-active").length&&("animation-name"==t||"animation-duration"==t||"animation-delay"==t)){var a=e;e=e.replace(/\.(yp_onscreen|yp_hover|yp_focus|yp_click)/g,"");var i="";0<Q("#yp-animation-play").length&&0<Q("#yp-animation-play").val().length?i="."+Q("#yp-animation-play").val():1==/\.(yp_onscreen|yp_hover|yp_focus|yp_click)/g.test(a)?/\.yp_onscreen/g.test(a)?i=".yp_onscreen":/\.yp_hover/g.test(a)?i=".yp_hover":/\.yp_focus/g.test(a)?i=".yp_focus":/\.yp_click/g.test(a)&&(i=".yp_click"):i=".yp_onscreen";var n=e.split(":");if(0<n.length){for(var s="",r=0;r<n.length-1;r++)s+=n[r];"hover"==n[n.length-1]||"focus"==n[n.length-1]?e=s+i+":"+n[n.length-1]:e+=i}else e+=i}var o=Q("body").attr("data-yp-selector");0==ve(o)&&(0==/(yp_onscreen|yp_click|yp_focus|yp_hover)/g.test(e)&&"animation-play"!=t&&"animation-fill-mode"!=t&&(e=ni(e=e.replace(/(body)?\.yp-selector-(.*?)\s+?/g,""),"yp-selector-"+o.replace(":",""))));return e}function nt(f,v,y){var w;se.addClass("yp-important-check"),"border-width"==v?v="border-top-width":"border-style"==v?v="border-top-style":"border-color"==v&&(v="border-top-color"),null==f?(w=le(),f=".yp-selected-others"):w=ie.find(f);var b=w.attr("style");0!=window.defaultStyleAttr&&null!=window.defaultStyleAttr?w.attr("style",window.defaultStyleAttr):w.removeAttr("style");var x=jQuery.Deferred();return setTimeout(function(){var t=w.css(v);if(ve(t))return se.removeClass("yp-important-check"),w.removeClass("yp-no-wireframe"),0!=b&&null!=b?w.attr("style",b):w.removeAttr("style"),x.resolve(!1),!1;var a,i,n,s,e,r=!1,o=!1;if(ie.find(f).each(function(e){return 50<e||(!!ve(a=Q(this).css(v))||(t!=a?!(r=!0):void 0))}),1==r)return w.removeClass("yp-no-wireframe"),se.removeClass("yp-important-check"),0!=b&&null!=b?w.attr("style",b):w.removeAttr("style"),x.resolve(!1),!1;if(y=Q.trim(y).toLowerCase(),t=Q.trim(t).toLowerCase(),(/(#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3})/.test(y)||/(#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3})/.test(t))&&(y=y.replace(/(#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3})/g,function(e){return ei(e)}),t=t.replace(/(#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3})/g,function(e){return ei(e)})),(/((\d+ms)|(\d+.\d+ms))/.test(y)||/((\d+ms)|(\d+.\d+ms))/.test(t))&&(y=y.replace(/((\d+ms)|(\d+.\d+ms))/g,function(e){return parseFloat(e)/1e3+"s"}),t=t.replace(/((\d+ms)|(\d+.\d+ms))/g,function(e){return parseFloat(e)/1e3+"s"})),(/((\d+em)|(\d+.\d+em))/.test(y)||/((\d+em)|(\d+.\d+em))/.test(t))&&(i="font-size"==v&&0<w.parent().length?parseFloat(w.parent().css("font-size")):parseFloat(w.css("font-size")),y=y.replace(/((\d+em)|(\d+.\d+em))/g,function(e){return parseFloat(e)*i+"px"}),t=t.replace(/((\d+em)|(\d+.\d+em))/g,function(e){return parseFloat(e)*i+"px"})),(/((\d+rem)|(\d+.\d+rem))/.test(y)||/((\d+rem)|(\d+.\d+rem))/.test(t))&&(i=parseFloat(ie.find("html").css("font-size")),y=y.replace(/((\d+rem)|(\d+.\d+rem))/g,function(e){return parseFloat(e)*i+"px"}),t=t.replace(/((\d+rem)|(\d+.\d+rem))/g,function(e){return parseFloat(e)*i+"px"})),(/((\d+vh)|(\d+.\d+vh))/.test(y)||/((\d+vh)|(\d+.\d+vh))/.test(t))&&(n=Q(I).height(),y=y.replace(/((\d+vh)|(\d+.\d+vh))/g,function(e){return parseFloat(e)*n/100+"px"}),t=t.replace(/((\d+vh)|(\d+.\d+vh))/g,function(e){return parseFloat(e)*n/100+"px"})),(/((\d+vw)|(\d+.\d+vw))/.test(y)||/((\d+vw)|(\d+.\d+vw))/.test(t))&&(s=Q(I).width(),y=y.replace(/((\d+vw)|(\d+.\d+vw))/g,function(e){return parseFloat(e)*s/100+"px"}),t=t.replace(/((\d+vw)|(\d+.\d+vw))/g,function(e){return parseFloat(e)*s/100+"px"})),-1!=y.indexOf("%")){if("letter-spacing"==v&&(o=!0),-1!=v.indexOf("border-")&&-1!=v.indexOf("-width")&&(o=!0),"font-size"!=v&&"line-height"!=v||0<w.parent().length&&(i=parseFloat(w.parent().css("font-size")),y=parseFloat(y)*i/100+"px"),"margin-top"==v||"margin-right"==v||"margin-bottom"==v||"margin-left"==v||"padding-top"==v||"padding-right"==v||"padding-bottom"==v||"padding-left"==v){var l=w.outerWidth(!0);y=parseFloat(y)*l/100+"px",-1!=t.indexOf("%")&&(t=parseFloat(t)*l/100+"px")}var p;0<w.parent().length&&("width"!=v&&"min-width"!=v&&"max-width"!=v&&"left"!=v&&"right"!=v||(p=w.css("position"),e=null,"fixed"==p?e=Q(I).width():"absolute"==p?(w.parents().each(function(){if("relative"==Q(this).css("position"))return e=Q(this).outerWidth(!0),!1}),null==e&&(e=Q(I).width())):e=w.parent().width(),y=parseFloat(y)*e/100+"px",-1!=t.indexOf("%")&&(t=parseFloat(t)*e/100+"px")),"height"!=v&&"min-height"!=v&&"max-height"!=v&&"top"!=v&&"bottom"!=v||(p=w.css("position"),e=null,"fixed"==p?e=Q(I).height():"absolute"==p?(w.parents().each(function(){if("relative"==Q(this).css("position"))return e=Q(this).outerHeight(!0),!1}),null==e&&(e=Q(I).height())):e=w.parent().height(),y=parseFloat(y)*e/100+"px",-1!=t.indexOf("%")&&(t=parseFloat(t)*e/100+"px")))}-1!=y.indexOf("-")&&(-1!=v.indexOf("border-")&&-1!=v.indexOf("-width")&&(o=!0),-1!=v.indexOf("border-")&&-1!=v.indexOf("-radius")&&(o=!0),-1!=v.indexOf("padding")&&(o=!0),"font-size"!=v&&"line-height"!=v&&"opacity"!=v&&"animation-duration"!=v&&"animation-delay"!=v&&"width"!=v&&"min-width"!=v&&"max-width"!=v&&"height"!=v&&"min-height"!=v&&"max-height"!=v||(o=!0)),-1!=t.indexOf("rgb")&&"box-shadow"==v&&(t=t.split(") ")[1]+" "+t.split(") ")[0]+")"),-1!=t.indexOf("inset")&&"box-shadow"==v&&(t=t.replace(/ inset/g,"")+" inset"),y=y.replace(/(\'|\")/g,""),t=t.replace(/(\'|\")/g,""),y=y.replace(/\,\s+/g,","),t=t.replace(/\,\s+/g,","),y=y.replace(/(\d+)(\.\d+)/g,function(e){return parseFloat(e).toFixed(2)}),(t=t.replace(/(\d+)(\.\d+)/g,function(e){return parseFloat(e).toFixed(2)}))==y&&(o=!0);var d=y.replace(/(\d+)(\.\d+)/g,function(e){return parseFloat(e)-.01});t==d&&(o=!0),"inherit"!=y&&"initial"!=y||(o=!0),1==/((\d+pt)|(\d+.\d+pt))/g.test(y)&&(o=!0),"transform-origin"==v&&(o=!0),"transparent"==y&&("rgba(0,0,0,0)"!=t&&"rgba(0,0,0,0)"!=t||(o=!0)),"normal"!=y&&"auto"!=y&&"none"!=y&&"medium"!=y||"0"!=t&&"0px"!=t||(o=!0),"length"==y&&("auto"!=t&&"auto auto"!=t||(o=!0));var c,u,m=w.css("position");"fixed"!=m&&"absolute"!=m||("top"!=v&&"right"!=v&&"bottom"!=v&&"left"!=v||(u="top"==v||"bottom"==v?(e=Q(I).height(),parseFloat(w.outerHeight(!0))):(e=Q(I).width(),parseFloat(w.outerWidth(!0))),"top"==v?c=parseFloat(w.css("bottom")):"right"==v?c=parseFloat(w.css("left")):"bottom"==v?c=parseFloat(w.css("top")):"left"==v&&(c=parseFloat(w.css("right"))),parseInt(t)==parseInt(e-parseFloat(c+u))&&(o=!0)));if(1==/border-(top|right|bottom|left)-width/g.test(v)){var g=/border-(top|right|bottom|left)-width/g.exec(v)[1],h=w.css("border-"+g+"-style");"none"!=h&&"hidden"!=h||(o=!0)}"transform"!=v&&"filter"!=v||(o=!0),se.removeClass("yp-important-check"),w.removeClass("yp-no-wireframe"),0!=b&&null!=b?w.attr("style",b):w.removeAttr("style"),x.resolve(o)},window.YellowDelay),x.promise()}function st(e){clearTimeout(window.relaxView),oe.extra.find(".yp-element-viewer-relax-opacity").remove(),e.each(function(e){var t=Q(this),a=t.get(0);if(!ve(a)){0===oe.extra.find(".yp-element-viewer-"+e).length&&oe.extra.append("<div class='yp-element-viewer yp-element-viewer-"+e+"'></div>");var i=a.getBoundingClientRect(),n=parseFloat(ie.scrollTop()),s=parseFloat(t.css("marginTop")),r=parseFloat(t.css("marginRight")),o=parseFloat(t.css("marginBottom")),l=parseFloat(t.css("marginLeft")),p=i.height+s+o,d=i.width+l+r,c=i.top+n-s,u=i.left-l;ie.find(".yp-element-viewer-"+e).css("width",d).css("height",p).css("top",c).css("left",u).css("border-left-width",l).css("border-right-width",r).css("border-top-width",s).css("border-bottom-width",o)}})}function rt(e,t){var a=t.data("px-range").split(",");return"%"!=e&&"vw"!=e&&"vh"!=e||(a=t.data("pc-range").split(",")),"em"!=e&&"rem"!=e&&"ex"!=e&&"cm"!=e&&"in"!=e&&"pc"!=e||(a=t.data("em-range").split(",")),"s"==e&&(a=t.data("em-range").split(",")),"ms"==e&&((a=t.data("em-range").split(","))[0]=parseInt(1e3*a[0]),a[1]=parseInt(1e3*a[1])),a}function ot(e,t,a,i){var n,s=e.parent().parent().data("css");e.parent().parent().addClass("reset-enable"),!0===a&&(n=e.val()),Q("#"+s+"-value").is(":focus")&&(n=parseFloat(Q("#"+s+"-value").val()));var r=Q("#"+s+"-after").val();"-"==r&&(r="",n=Q("#"+s+"-group").attr("data-css-default"));var o=Q("#"+s+"-value").val();if(o==e.parent().parent().attr("data-css-default"))n=e.parent().parent().attr("data-css-default"),r="";else if(isNaN(n)){if("inherit"!=o&&"initial"!=o&&"auto"!=o&&"none"!=o&&"normal"!=o)return e.parent().parent().removeClass("reset-enable"),!1;n=o,r=""}at(null,t,n,r),i&&Ja()}function lt(e){return(""+e).replace(/\\/g,"\\\\").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\u00A0/g,"\\u00A0").replace(/&/g,"\\x26").replace(/'/g,"\\x27").replace(/"/g,"\\x22").replace(/</g,"\\x3C").replace(/>/g,"\\x3E")}function pt(e){if(ve(e))return!1;var t=e.toLowerCase();return/\barial\b|\barial black\b|\barial narrow\b|\barial rounded mt bold\b|\bavant garde\b|\bcalibri\b|\bcandara\b|\bcentury gothic\b|\bfranklin gothic medium\b|\bgeneva\b|\bfutura\b|\bgill sans\b|\bhelvetica neue\b|\bimpact\b|\blucida grande\b|\boptima\b|\bsegoe ui\b|\btahoma\b|\btrebuchet ms\b|\bverdana\b|\bbig caslon\b|\bbodoni mt\b|\bbook antiqua\b|\bcalisto mt\b|\bcambria\b|\bdidot\b|\bgaramond\b|\bgeorgia\b|\bgoudy old style\b|\bhoefler text\b|\blucida bright\b|\bpalatino\b|\bperpetua\b|\brockwell\b|\brockwell extra bold\b|\bbaskerville\b|\btimes new roman\b|\bconsolas\b|\bcourier new\b|\blucida console\b|\bhelveticaneue\b/.test(t)}function dt(e,t){if(ve(e)||ve(t))return!1;var a=0,i=e.toString().split(","),n=t.toString().split(",");if(i.length!=n.length)return!1;if(i.length<=1)return!1;for(var s=0,r=0;r<i.length;r++)fe(n[r+1])&&(s+=parseFloat(Mt(i[r])),s+=a=parseFloat(Mt(n[r+1]))-s+a);return a}function ct(){var t,a,i;Q("#font-family-group .ui-autocomplete.ui-menu li:in-viewport").each(function(){if(t=Q(this),null!=(a=t.attr("style"))&&null!=a)return!0;i=Ma(Q.trim(t.text().replace(/ /g,"+")));var e=!1;pt(t.text())&&(e=!0),!1===e&&0===ie.find(".yp-font-test-"+i).length&&se.append("<link rel='stylesheet' class='yp-font-test-"+i+"' href='https://fonts.googleapis.com/css?family="+Q.trim(t.text().replace(/ /g,"+"))+":300italic,300,400,400italic,500,500italic,600,600italic,700,700italic' type='text/css' media='all' />"),t.css("fontFamily","'"+t.text()+"'")})}function ut(e,t,a){var i,n=da();if(-1==n.indexOf(",")&&(window.cachedSelector!=n&&(window.cachedSelector=da(),window.minCroppedSelector=12,window.cachedSelectorStrong=fa(ie.find(".yp-content-selected .yp-selected"),window.lastParentQueryStatus),window.minCroppedSelector=!1),n=window.cachedSelectorStrong),"perspective"==e&&(n=Q.trim(fa(le().parent(),"defaultNoCache"))),"height"==e||"width"==e){var s=Ea(Q("#min-"+e+"-value").val()),r=Q("#"+e+"-after").val(),o=Q("#min-"+e+"-after").val();parseFloat(t)<parseFloat(s)&&r==o&&(ft("min-"+e,!1),ut("min-"+e,t,!1))}if(i=!1!==a&&void 0!==a?a:"#"+e+"-live-css",0===ie.find(i).length){var l=i.replace("#","").replace(".",""),p=K(e);"animation-iteration-count"!=p&&"flex-grow"!=p&&"flex-shrink"!=p&&"opacity"!=p&&"blur-filter"!=p&&"grayscale-filter"!=p&&"brightness-filter"!=p&&"z-index"!=p&&"contrast-filter"!=p&&"hue-rotate-filter"!=p&&"saturate-filter"!=p&&"sepia-filter"!=p&&-1==p.indexOf("-transform")||"text-transform"!=p&&(t=Ea(t)),"blur-filter"!=e&&"grayscale-filter"!=e&&"brightness-filter"!=e&&"contrast-filter"!=e&&"hue-rotate-filter"!=e&&"saturate-filter"!=e&&"sepia-filter"!=e||(t=gt(!(l=e="filter"))),-1!=p.indexOf("-transform")&&"text-transform"!=p&&(t=mt(!(l=e="transform"))),"box-shadow-inset"!=e&&"box-shadow-color"!=e&&"box-shadow-vertical"!=e&&"box-shadow-blur-radius"!=e&&"box-shadow-spread"!=e&&"box-shadow-horizontal"!=e||(t=ht(n,!(l=e="box-shadow")));var d="";"static"==le().css("position")&&("top"!=e&&"left"!=e&&"right"!=e&&"bottom"!=e||(d="position:relative !important;")),"animation-name"==e&&(d="-webkit-animation-duration:1000ms !important;animation-duration:1000ms !important;-webkit-animation-delay:100ms !important;animation-delay:100ms !important;-webkit-animation-fill-mode:none !important;animation-fill-mode:none !important;","bounce"==t?d+="-webkit-transform-origin:center bottom !important;transform-origin:center bottom !important;":"swing"==t?d+="-webkit-transform-origin:top center !important;transform-origin:top center !important;":"jello"==t&&(d+="-webkit-transform-origin:center !important;transform-origin:center !important;"),"flipInX"==t&&(d+="-webkit-backface-visibility:visible !important;backface-visibility:visible !important;")),-1!=window.webkitArray.indexOf(e)?ne.append("<style class='"+l+" yp-live-css' id='"+l+"'>.yp-selected,.yp-selected-others,"+n+"{"+e+":"+t+" !important;-webkit-"+e+":"+t+" !important;"+d+"}</style>"):"justify-content"==e?ne.append("<style class='"+l+" yp-live-css' id='"+l+"'>.yp-selected,.yp-selected-others,"+n+"{"+e+":"+t+" !important;-webkit-box-pack:"+t+" !important;"+d+"}</style>"):"align-items"==e?ne.append("<style class='"+l+" yp-live-css' id='"+l+"'>.yp-selected,.yp-selected-others,"+n+"{"+e+":"+t+" !important;-webkit-box-align:"+t+" !important;"+d+"}</style>"):"flex-grow"==e?ne.append("<style class='"+l+" yp-live-css' id='"+l+"'>.yp-selected,.yp-selected-others,"+n+"{"+e+":"+t+" !important;-webkit-box-flex:"+t+" !important;"+d+"}</style>"):ne.append("<style class='"+l+" yp-live-css' id='"+l+"'>.yp-selected,.yp-selected-others,"+n+"{"+e+":"+t+" !important;"+d+"}</style>")}}function mt(e){var t="scale("+Q.trim(Q("#scale-transform-value").val())+")",a="rotate("+Q.trim(Q("#rotate-transform-value").val())+"deg)",i="rotateX("+Q.trim(Q("#rotatex-transform-value").val())+"deg)",n="rotateY("+Q.trim(Q("#rotatey-transform-value").val())+"deg)",s="rotateZ("+Q.trim(Q("#rotatez-transform-value").val())+"deg)",r="translatex("+Q.trim(Q("#translate-x-transform-value").val())+"px)",o="translatey("+Q.trim(Q("#translate-y-transform-value").val())+"px)",l="skewx("+Q.trim(Q("#skew-x-transform-value").val())+"deg)",p="skewy("+Q.trim(Q("#skew-y-transform-value").val())+"deg)";1==e&&(0==Q("#scale-transform-group").hasClass("reset-enable")&&(t=""),0==Q("#rotate-transform-group").hasClass("reset-enable")&&(a=""),0==Q("#rotatex-transform-group").hasClass("reset-enable")&&(i=""),0==Q("#rotatey-transform-group").hasClass("reset-enable")&&(n=""),0==Q("#rotatez-transform-group").hasClass("reset-enable")&&(s=""),0==Q("#translate-x-transform-group").hasClass("reset-enable")&&(r=""),0==Q("#translate-y-transform-group").hasClass("reset-enable")&&(o=""),0==Q("#skew-x-transform-group").hasClass("reset-enable")&&(l=""),0==Q("#skew-y-transform-group").hasClass("reset-enable")&&(p=""),"scale()"==t&&(t=!1===ce()?"":"scale(1)"),"rotate(deg)"==a&&(a=!1===ce()?"":"rotate(0deg)"),"rotateX(deg)"==i&&(i=!1===ce()?"":"rotateX(0deg)"),"rotateY(deg)"==n&&(n=!1===ce()?"":"rotateY(0deg)"),"rotateZ(deg)"==s&&(s=!1===ce()?"":"rotateZ(0deg)"),"translatex(px)"==r&&(r=!1===ce()?"":"translatex(0px)"),"translatey(px)"==o&&(o=!1===ce()?"":"translatey(0px)"),"skewx(deg)"==l&&(l=!1===ce()?"":"skewx(0deg)"),"skewy(deg)"==p&&(p=!1===ce()?"":"skewy(0deg)"));var d=Q.trim(ja(t+" "+a+" "+i+" "+n+" "+s+" "+r+" "+o+" "+l+" "+p));return""!==d&&" "!=d||(d="disable"),d}function gt(e){var t="blur("+Q.trim(Q("#blur-filter-value").val())+"px)",a="grayscale("+Q.trim(Q("#grayscale-filter-value").val())+")",i="brightness("+Q.trim(Q("#brightness-filter-value").val())+")",n="contrast("+Q.trim(Q("#contrast-filter-value").val())+")",s="hue-rotate("+Q.trim(Q("#hue-rotate-filter-value").val())+"deg)",r="saturate("+Q.trim(Q("#saturate-filter-value").val())+")",o="sepia("+Q.trim(Q("#sepia-filter-value").val())+")";1==e&&(0==Q("#blur-filter-group").hasClass("reset-enable")&&(t=""),0==Q("#grayscale-filter-group").hasClass("reset-enable")&&(a=""),0==Q("#brightness-filter-group").hasClass("reset-enable")&&(i=""),0==Q("#contrast-filter-group").hasClass("reset-enable")&&(n=""),0==Q("#hue-rotate-filter-group").hasClass("reset-enable")&&(s=""),0==Q("#saturate-filter-group").hasClass("reset-enable")&&(r=""),0==Q("#sepia-filter-group").hasClass("reset-enable")&&(o=""),"blur(px)"==t&&(t=!1===ce()?"":"blur(0px)"),"grayscale()"==a&&(a=!1===ce()?"":"grayscale(0)"),"brightness()"==i&&(i=!1===ce()?"":"brightness(1)"),"contrast()"==n&&(n=!1===ce()?"":"contrast(1)"),"hue-rotate(deg)"==s&&(s=!1===ce()?"":"hue-rotate(0deg)"),"saturate()"==r&&(r=!1===ce()?"":"saturate(1)"),"sepia()"==o&&(o=!1===ce()?"":"sepia(0)"));var l=Q.trim(ja(t+" "+i+" "+n+" "+a+" "+s+" "+r+" "+o));return""!==l&&" "!=l||(l="disable"),l}function ht(e,t){var a="";Q("#box-shadow-inset-inset").parent().hasClass("active")&&(a="inset");var i=Q.trim(Q("#yp-box-shadow-color").val()),n=Q.trim(Q("#yp-box-shadow-vertical").val()),s=Q.trim(Q("#yp-box-shadow-blur-radius").val()),r=Q.trim(Q("#yp-box-shadow-spread").val()),o=Q.trim(Q("#yp-box-shadow-horizontal").val());Q("#box-shadow-color-group .yp-none-btn").hasClass("active")&&(i=Qa(ie.find(e).css("color"))),1==t&&(Q("#box-shadow-vertical-group").hasClass("reset-enable")||(n="0"),Q("#box-shadow-blur-radius-group").hasClass("reset-enable")||(s="0"),Q("#box-shadow-spread-group").hasClass("reset-enable")||(r="0"),Q("#box-shadow-horizontal-group").hasClass("reset-enable")||(o="0"));var l=Q.trim(ja(o+"px "+n+"px "+s+"px "+r+"px "+i+" "+a));return 0==o&&0==n&&0==s&&0==r&&(l="none"),l}function ft(e,t){var a;"animation-name"==e&&(se.removeClass("yp-has-transform"),ii()),a=!1!==t&&void 0!==t?t:"#"+e+"-live-css";var i=ie.find(a);0<i.length&&i.remove()}function vt(){if(pe())if(null!=window.defaultStyleAttr&&0!=window.defaultStyleAttr)if(-1==window.defaultStyleAttr.indexOf("relative")&&-1==window.defaultStyleAttr.indexOf("animation-fill-mode")){var e=le().attr("style");(e=e.replace(/position:(\s*?)relative(\;?)|animation-fill-mode:(\s*?)(both|forwards|backwards|none)(\;?)/g,"")).length<3&&le().removeAttr("style"),le().attr("style",e)}else le().attr("style",window.defaultStyleAttr);else le().removeAttr("style");se.removeAttr("data-clickable-select").removeAttr("data-yp-selector").removeClass("yp-flex-container yp-flex-element yp-grid-element yp-element-list yp-element-float yp-content-selected yp-body-select-just-it yp-has-transform yp-element-resizing yp-element-resizing-height-bottom yp-element-resizing-width-right yp-visual-editing yp-visual-editing-x yp-visual-editing-y yp-element-not-visible").removeClass("yp-selector-hover yp-selector-focus yp-selector-link yp-selector-visited yp-selector-active yp-selector-checked yp-selector-disabled yp-selector-enabled yp-selector-invalid yp-selector-valid"),ie.find("html").removeClass("yp-element-resizing"),ie.find(".yp-selected,.yp-selected-others").removeClass("ui-draggable ui-draggable-handle ui-draggable-handle"),ie.find(".yp-selected-others,.yp-selected").removeClass("yp-selected-others").removeClass("yp-selected"),oe.general.empty(),oe.other.empty(),oe.active.empty(),s.removeAttr("style"),window.lastTextColor=null,ie.find(".yp-live-css").remove(),"block"==Q(".advanced-info-box").css("display")&&Q(".element-btn").hasClass("active")&&(Q(".info-element-selected-section").hide(),Q(".info-no-element-selected").show()),Q(".yp-disable-btn.active").removeClass("active")}function yt(){var a=Q(".yp-gradient-pointer-area"),i=a.width(),e=a.offset(),t=e.left,n=e.top;if(Q(".yp-gradient-pointer").hasClass("ui-draggable"))try{Q(".yp-gradient-pointer.ui-draggable").draggable("destroy")}catch(e){}Q(".yp-gradient-pointer").draggable({containment:[t,n,t+i,n],start:function(e,t){Q(".yp-gradient-pointer").removeClass("active"),Q(this).addClass("active"),window.blockIris=!0,Q(".yp-gradient-section .iris-picker").hide(),window.gradientPointerTop=Q(this).offset().top,window.gradientPointerLen=Q(".yp-gradient-pointer:not(.disable)").length},drag:function(e,t){a.addClass("gradient-pointer-no-cursor"),Q(this).attr("data-position",parseInt(t.position.left/i*100)),2<window.gradientPointerLen&&(e.pageY<window.gradientPointerTop-20||e.pageY>window.gradientPointerTop+20?Q(this).addClass("disable"):Q(this).removeClass("disable")),xt("live")},stop:function(e,t){a.removeClass("gradient-pointer-no-cursor"),Q(this).attr("data-position",parseInt(t.position.left/i*100)),xt("insert"),window.blockIris=!1},axis:"x"})}function wt(e){var t=!1;1==/(-webkit-|-moz-)/g.test(e)&&(t=!0),e=e.replace(/(-webkit-gradient\(linear\,(\s+)?|-webkit-linear-gradient\(|-o-linear-gradient\(|-moz-linear-gradient\()/g,"linear-gradient(");var a=/linear-gradient\(([^,]+)/.exec(e)[1];if(0==/(deg|left|top|right|bottom)/g.test(a))e=e.replace(/linear-gradient\(/g,"linear-gradient(to right, ");else if(-1==a.indexOf("to "))if(-1!=a.indexOf("deg")&&1==t){var i=Ea(a);i<90?i=90-i:90<i&&(i=360-(i-90)),e=e.replace(/linear-gradient\(([^,]+)/,"linear-gradient("+i+"deg")}else-1==(a=a.trim()).indexOf(" ")&&("left"==a?e=e.replace(/linear-gradient\(([^,]+)/,"linear-gradient(to right"):"right"==a?e=e.replace(/linear-gradient\(([^,]+)/,"linear-gradient(to left"):"top"==a?e=e.replace(/linear-gradient\(([^,]+)/,"linear-gradient(to bottom"):"bottom"==a&&(e=e.replace(/linear-gradient\(([^,]+)/,"linear-gradient(to top")));if(-1==e.indexOf("%")){var n=(e=e.replace(/rgb(a?)\((.*?)\)/g,function(e,t,a,i){return e.replace(/\,/g,"|-|-|")})).match(/\,/g).length,s=-2;e=(e=(e=e.replace(/\,/g,function(e,t,a,i){return-1==++s?",":" "+parseInt(100*s/n)+"%,"})).replace(/\|\-\|\-\|/g,",")).replace(/\)$/," 100%)")}return e}function bt(e){var t,a,i,n,s,r,o,l,p,d;if(l="linear-gradient(to right,",-1==(e=e.replace(/\s+?!important/g,"").replace(/\;$/g,"").trim()).indexOf("linear-gradient("))return!1;e=wt(e);try{t=window.GradientParser(e)[0]}catch(e){return!1}d=t.orientation.type,p=t.orientation.value,"directional"==d&&("top"==p?p="0":"right"==p?p="90":"bottom"==p?p="180":"left"==p?p="270":"top"==p&&(p="360")),Q(".yp-gradient-orientation").attr("data-degree",p),Q(".yp-gradient-pointer-area").empty();for(var c=0;c<t.colorStops.length;c++){if(fe(t.colorStops[c])){if("%"!=t.colorStops[c].length.type)return!0;n=t.colorStops[c].length.value,s="%",r=" "}else n=100*c/(t.colorStops.length-1),s="%",r=" ";n=parseInt(n),a=t.colorStops[c].type,i=t.colorStops[c].value,"rgb"!=a&&"rgba"!=a||(i=a+"("+i+")"),"hex"==a&&(i="#"+i),0==c&&Q("#iris-gradient-color").val(i),l+=" "+i+r+n+s,t.colorStops.length-1!=c&&(l+=","),o='<div class="yp-gradient-pointer" data-color="'+i+'" data-position="'+n+'" style="left:'+n+s+';"><i class="yp-gradient-pointer-color" style="background-color:'+i+';"></i></div>',Q(".yp-gradient-pointer-area").append(o)}l+=")",Q("#gradient-bar-view-style").remove(),re.append('<style id="gradient-bar-view-style">.yp-gradient-bar{background-image:'+l+";}.yp-gradient-orientation{background-image:"+e+";}</style>"),setTimeout(function(){yt()},26)}function xt(e){var t=Q(".yp-gradient-orientation").attr("data-degree")+"deg";"0deg"==t?t="to top":"90deg"==t?t="to right":"180deg"==t?t="to bottom":"270deg"==t?t="to left":"360deg"==t&&(t="to top");var n="linear-gradient(to right,",s="linear-gradient("+t+",";Q(".yp-gradient-pointer-area .yp-gradient-pointer:not(.disable)").sort(function(e,t){return+e.dataset.position-+t.dataset.position}).appendTo(".yp-gradient-pointer-area"),Q(".yp-gradient-pointer-area .yp-gradient-pointer:not(.disable)").each(function(e){var t=Q(this),a=t.attr("data-color"),i=t.attr("data-position");s+=" "+a+" "+parseInt(i)+"%",n+=" "+a+" "+parseInt(i)+"%",Q(".yp-gradient-pointer:not(.disable)").length-1!=e&&(s+=",",n+=",")}),s+=")",n+=")",Q("#gradient-bar-view-style").remove(),re.append('<style id="gradient-bar-view-style">.yp-gradient-bar{background-image:'+n+";}.yp-gradient-orientation{background-image:"+s+";}</style>"),"live"==e?(ft("background-image",!1),ut("background-image",s,!1),Q("#yp-background-image").val(s)):"insert"==e&&(ft("background-image",!1),Q("#yp-background-image").val(s).trigger("keyup"))}function _t(){if((window.firstSelectLimit=!1)===pe())return vt(),!1;if(v())return!1;if(0==window.targetIsParentTree&&(Q("#parent-bar ul").empty(),Q("#parent-bar span").remove(),Q("#parent-bar").append("<span>"+J.empty_element_tree+"</span>"),ie.find('[class*="yp-parent-way"]').each(function(){"string"==typeof this.className&&(this.className=this.className.replace(/yp-parent-way-[0-9]+/g,""))})),Q(".selector-group.active").removeClass("active"),Q(".property-has-queries").removeClass("property-has-queries property-size-tabs-visible"),se.removeClass("property-query-active"),Q(".property-size").tooltip("destroy"),Q(".property-size-tabs").empty(),de()&&(Te(),Oe()),se.hasClass("yp-force-hide-select-ui")&&se.removeClass("yp-force-hide-select-ui yp-hide-borders-now"),0<ie.find(".context-menu-active").length&&le().contextMenu("hide"),0<ie.find(".yp-selected.ui-draggable").length)try{le().draggable("destroy")}catch(e){}Q(".lock-btn").removeClass("active"),Q("#margin-left-group,#margin-right-group,#margin-top-group,#margin-bottom-group,#padding-left-group,#padding-right-group,#padding-top-group,#padding-bottom-group,#background-color-group,#background-size-group,#background-repeat-group,#background-blend-mode-group,#background-attachment-group,#background-position-x-group,#background-position-y-group,#box-shadow-color-group,#animation-name-group,#list-style-position-group,#list-style-image-group,#list-style-type-group").popover("destroy"),Q(".yp-editor-list > li.active > h3").trigger("click"),Q(".yp-editor-list > li > h3.yp-group-edited").removeClass("yp-group-edited"),!1===re.hasClass("yp-animate-manager-playing")&&ie.find(".yp_onscreen,.yp_hover,.yp_click,.yp_focus").removeClass("yp_onscreen yp_hover yp_click yp_focus"),Q(".reset-enable").removeClass("reset-enable"),Q(".yp-after").css("display","block"),Q("li[data-loaded]").removeAttr("data-loaded"),Q(".input-autocomplete").removeAttr("style"),Q(".yp-disable-contextmenu").removeClass("yp-disable-contextmenu"),Q(".yp-active-contextmenu").removeClass("yp-active-contextmenu"),ce()&&R(!0),Q(".yp-transform-area,.yp-filter-area").hide(),Q(".yp-on").removeClass("yp-on"),vt(),Q(".iris-picker,.yp-border-top-section,.yp-border-right-section,.yp-border-bottom-section,.yp-border-left-section").hide(),Q(".yp-border-all-section").show(),Q(".yp-gradient-pointer-area").removeClass("gradient-pointer-no-cursor"),Q(".yp_background_assets,.yp-gradient-section,.yp_nice_colors_area,.yp_meterial_colors_area,.yp_flat_colors_area,.yp_theme_colors_area").hide(),Q(".yp-bg-img-btn,.yp-flat-colors,.yp-meterial-colors,.yp-nice-colors,.yp-theme-colors,.yp-gradient-pointer,.yp-gradient-btn,#border-type-group .yp-radio.active").removeClass("active"),re.hasClass("yp-element-picker-active")&&Q(".yp-element-picker").trigger("click"),Ne(),b()&&(0==Q("#yp-animate-bar-current .yp-anim-process-bar").length&&0<Q("#yp-animate-bar-current").length?Q(".anim-active-row").remove():Q(".anim-active-row").removeClass("anim-active-row"),0==Q(".yp-animate-bar").length?(Q(".animation-manager-empty").show(),Q(".yp-anim-list-menu").hide()):Q(".animation-manager-empty").hide()),Ot(),Q("#min-width-group .yp-after,#min-height-group .yp-after,#max-width-group .yp-after,#max-height-group .yp-after").css("display","none"),window.parentItems="",window.childrenItems="",Q(".yp-gradient-demo").removeClass("active"),se.removeClass("yp-full-width-selected"),re.hasClass("yp-css-editor-active")&&Ie(!0)}function kt(){return ie.find("#yp-styles-area")}function Ct(e,t,a){var i;if(0<ie.find("#yp-live-css-data").length&&t==ue())i=ie.find("#yp-live-css-data").html();else if(0<ie.find("#yp-live-css-data").length&&null==t)i=ie.find("#yp-live-css-data").html();else{var n;n=ee(null!=t?t:null,!1),i=zt("desktop",t);var s=te(n,"[style]");if(0<s.length){for(var r,o=[],l=0;l<s.length;l++)r=/\[msize\=(.*?)\]/g.exec(s[l])[1],-1===Q.inArray(r,o)&&"desktop"!=r&&o.push(r);Q.each(o,function(e,t){var a=zt(t);a="\t"+a.replace(/\r/g,"\r\t").replace(/\t$/g,"").replace(/\t$/g,""),"tablet"==t&&(t="(min-width: 768px) and (max-width: 991px)"),"mobile"==t&&(t="(max-width:767px)"),fe(t)&&(i=i+"\r\r@media "+t+"{\r\r"+a+"}")})}}i=(i=(i=(i=i.replace(/\{\r\r/g,"{")).replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)(.*?){/g,function(e,t,a,i){var n=e.match(/\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g)[0].replace(/(body)?\.yp-selector-/g,""),s=e.replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"");return" "!=s[0]&&(s="body"+s),s=s.trim().replace(/\{/g,":"+n)+"{"})).replace(/(\t+)?-webkit-(filter|transform|background-clip|perspective|background-size|box-sizing|animation-name|animation-iteration-count|animation-duration|animation-delay|animation-fill-mode|box-shadow|flex-direction|flex-wrap|box-pack|box-align|align-content|flex-basis|align-self|box-flex|flex-shrink|transform-origin|backface-visibility):(.*?);(\n|\r)?/g,"")).replace(/\)\{/g,"){\r").replace(/\)\{/g,"){\r");for(var p,d,c=Array("nth-child","not","lang","nth-last-child","nth-last-of-type","nth-of-type"),u=0;u<c.length;u++){var m=new RegExp(c[u]+"\\((.*?)\\){\r\r","g");i=i.replace(m,c[u]+"($1){")}(!0===e&&(i=(i=(i=i.replace(/\r\ta:a !important;/g,"")).replace(/a:a !important;/g,"")).replace(/a:a;/g,"")),i=(i=i.replace(/^\r/g,"").replace(/^\r/g,"")).replace(/\}\r\r\r\r@media/g,"}\r\r@media"),1==a)&&(i=i.replace(/(^)(.*?){/gm,function(e,t,a,i){return-1!=e.indexOf("@media")?(p=Q.trim(e.match(/@media(.*?){/g).toString().replace(/(\{|@media(\s+)?)/g,"")),fe(d=ya(p))?(d=d.toString(),p=p.replace(/desktop/i,J.all_devices),"/* "+(p=-1==d.indexOf(",")?d.replace(/([^\d+])(\d+)/g,"$2$1").replace(/\</g," and below").replace(/\>/g," and above").replace(/\.\d+/g,"").replace(/(\d+)(\s|$)/g,"$1px$2")+" screen sizes":"screen sizes "+d.replace(/\</g,"smaller than ").replace(/\>/g,"larger than ").replace(/\,/g," and ").replace(/\.\d+/g,"").replace(/(\d+)(\s|$)/g,"$1px$2"))+" */\n"+e):e):e}));return i}function zt(e,t){var a,i,n,s="";if((s=ee(null!=t?t:null,!1)).length<=1)return"";a="";for(var r,o=[],l=te(s,"[msize="+e+"]"),p=0;p<l.length;p++)if(i=Pt(l[p]),n=-1!=l[p].indexOf("[rule=a]")&&1==ypOption.append_auto_comments?Xa(i,!1):qa(i),-1==o.indexOf(i)&&""!=i&&0!=i&&null!=i){o.push(i),0!=n&&(a+="/* "+n+" */\n"),"desktop"!=e&&"all"!=e&&0!=n&&(a+="\t"),a+=i+"{\r",r=te(s,"[selector="+$a(i)+"][msize="+e+"]");for(var d=0;d<r.length;d++)a+="\t"+Lt(r[d])+";\r";a+="}\r\r"}return a}function At(){ie.find(".yp-fastest-live-css").remove()}function Ot(e){if(Q("#visual-rule-filter").trigger("keyup"),window.selectedByView||"matched"==Q("#visual-rule-filter").val()||0==re.hasClass("visual-css-view-active"))return!1;if("block"==Q("#visual-css-view").css("display")&&1==pe()){var t=da();t=Wa(t,!0,!0,!0,!0);var a=Q(".selector-group[data-clean-selector='"+t+"']");if(0<a.length){Q(".selector-group.active").removeClass("active"),a.addClass("active");var i=a.last().offset().top+Q("#visual-css-content").scrollTop()-50;i<0&&(i=0),!0!==e?Q("#visual-css-content").stop().animate({scrollTop:i},500,"swing"):Q("#visual-css-content").scrollTop(i)}}}Q(document).on("mouseout",".info-global-id-list li,.info-global-class-list li,.info-element-class-list li",function(){clearTimeout(window.focusElementTimer),oe.extra.find(".yp-element-viewer").remove()}),Q(document).on("click",".info-global-id-list li,.info-global-class-list li,.info-element-class-list li",function(){var e=Q(this).text();window.focusElementTimer=setTimeout(function(){be(ie.find(e),null),st(ie.find(e))},80)}),Q(document).on("mouseover click",".breakpoint-bar div",function(e){var o=Q(this);window.breakpointHoverTimer=setTimeout(function(){var i,n,s,r,e;oe.extra.find(".yp-element-viewer").remove();for(var t=te(ee(null,!1),"[msize="+o.attr("data-breakpoint-data")+"]"),a=0;a<t.length;a++)e=Wa(t[a].replace(/(\/\*(.*?)\*\/|\n)/g,"").match(/\{(.*?)\{/g).toString().replace(/\{/g,""),!0,!0,!0,!0),ie.find(e).each(function(){var e=Q(this).get(0);if(ve(e))return!0;var t=e.getBoundingClientRect();i=t.top+ie.scrollTop(),(n=t.left)<0&&(n=0),s=t.width,r=t.height;var a="yp-element-viewer-"+parseInt(s)+"-"+parseInt(r)+"-"+parseInt(i)+"-"+parseInt(n);0==ie.find("#"+a).length&&oe.extra.append("<div class='yp-element-viewer' id='"+a+"' style='width:"+s+"px;height:"+r+"px;top:"+i+"px;left:"+n+"px;'></div>")})},40)}),Q(document).on("mousedown",".breakpoint-bar div",function(e){Q(this).tooltip("hide")}),Q(document).on("mouseout",".breakpoint-bar div",function(e){clearTimeout(window.breakpointHoverTimer),oe.extra.find(".yp-element-viewer").remove()}),Q(document).on("click",".breakpoint-bar div",function(e){if(Q(this).hasClass("active"))return!1;var t=Q(this).attr("data-breakpoint");Q("#iframe").width(t),Be(),be(null,!1),u(),Te(),setTimeout(function(){Ze(),Be(),be(null,!1),u(),Te()},window.YellowDelay)}),Q(".yp-responsive-btn").click(function(){var e,t,a;if(Q(this).hasClass("active")?(se.removeClass("yp-responsive-device-mode"),Q(this).addClass("active"),t=Q("#iframe").attr("style"),Q("#iframe").removeAttr("style"),Q("#iframe").attr("data-style",t),0<Q(".property-size-tabs-visible").length&&(Q(".property-size-tabs-visible .property-size.active").removeClass("active"),Q(".property-size[data-property-size='all']").addClass("active"))):(se.addClass("yp-responsive-device-mode"),Q(this).removeClass("active"),Oe(),0==window.responsiveFirstWasOpen&&0==Q(".breakpoint-bar .active").length&&0==window.resizedByPropertySize?(0<(a=Q(".breakpoint-bar > .max-width")).length?(e=a.last().attr("data-breakpoint"),Q("#iframe").css("width",e),a.last().addClass("active")):(Q(".media-control").trigger("click"),0<(a=Q(".breakpoint-bar > .min-width")).length?(e=a.last().attr("data-breakpoint"),Q("#iframe").css("width",e),a.last().addClass("active")):Q(".media-control").trigger("click")),Q(".media-control").tooltip("hide"),window.responsiveFirstWasOpen=!0):(t=Q("#iframe").attr("data-style"),Q("#iframe").removeAttr("data-style"),Q("#iframe").attr("style",t))),0==window.resizedByPropertySize){if(B(),Te(),Be(),be(null,!1),0==Q(this).hasClass("active")&&(Q(".property-size.active").removeClass("active"),0<Q(".breakpoint-bar .active").length)){var i=ya(Q(".breakpoint-bar .active").attr("data-media-content"));fe(i)&&(i=i.toString(),0<Q(".property-size[data-property-size='"+i+"']").length&&Q(".property-size[data-property-size='"+i+"']").addClass("active"))}0<Q(".breakpoint-bar > [data-breakpoint='"+Q("#iframe").width()+"']").length&&(Q(".breakpoint-bar > .active[data-breakpoint]").removeClass("active"),Q(".breakpoint-bar > [data-breakpoint='"+Q("#iframe").width()+"']").addClass("active"))}b()&&_(),Ze(),setTimeout(function(){be(null,!1)},window.YellowDelay)}),Q(document).on("click",".breakpoint-bar div",function(e){if(Q(".breakpoint-bar div").removeClass("active"),Q(this).addClass("active"),0<Q(".property-size-tabs-visible").length){Q(".property-size.active").removeClass("active");var t=ya(Q(this).attr("data-media-content"));fe(t)&&(t=t.toString(),Q(".property-size[data-property-size='"+t+"']").addClass("active"))}pe()&&Ie(!0)}),Q(document).on("mouseover",".ace_gutter-cell.ace_info,.ace_gutter-cell.ace_warning",function(e){clearTimeout(window.delayTooltipHide),re.addClass("hide-ace-tooltip")}),Q(document).on("mouseout",".ace_gutter-cell.ace_info,.ace_gutter-cell.ace_warning",function(e){window.delayTooltipHide=setTimeout(function(){re.removeClass("hide-ace-tooltip")},100)}),e.contextmenu(function(e){if(0==Q(e.target).is("input.wqcolorpicker,input.yp-input,textarea,.yp-background-image-show,.info-image-list img"))return!1}),window.disable_auto_insert=!1,Q(".css-editor-btn,.yp-css-close-btn").click(function(){if(b()&&Q(".animation-manager-btn.active").trigger("click"),"none"==Q("#leftAreaEditor").css("display")){Q("#cssData,#cssEditorBar,#leftAreaEditor").show(),re.addClass("yp-css-editor-active"),B();var e=Q(".css-editor-btn"),t=e.attr("data-original-title");e.attr("data-title",t),e.attr("data-original-title",""),Ie(!0)}else{if(re.hasClass("css-code-unvalid"))return g({title:J.css_parse_error,text:J.css_parse_error_text,animation:!1,customClass:"editor-style-ok"}),!1;Q("#cssData,#cssEditorBar,#leftAreaEditor").hide(),re.removeClass("yp-css-editor-active"),B(),Q(".css-editor-btn").attr("data-original-title",Q(".css-editor-btn").attr("data-title")),T(),Be()}Be()}),Q(".yp-after-css-val,.yp-after-prefix").on("keydown keyup",function(e){if(0==e.originalEvent&&0==window.allow_input_CSS_process)return!1;var t=e.keyCode||e.which;if(27==t||13==t)return Q(this).trigger("blur"),!1;if(9!=t&&17!=t&&18!=t&&39!=t&&37!=t){var o=Q(this);clearTimeout(window.manualChangeInputDelay),window.manualChangeInputDelay=setTimeout(function(){var e=o.parents(".yp-option-group").attr("data-css"),t=Q("#"+e+"-group").parent(".yp-this-content"),a=t.find(".lock-btn.active").length,i=[];a&&t.find(".yp-option-group").each(function(){Q(this).attr("data-css")!=e&&i.push(Q(this).attr("data-css"))});var n=o.parent().find(".yp-after-css-val").val(),s=o.parent().find(".yp-after-prefix").val();if(Fe(o,!1),ot(Q("#yp-"+e),e,!0,!1),a)for(var r=0;r<i.length;r++)Q("#"+i[r]+"-value").val(n),Q("#"+i[r]+"-after").val(s),Fe(Q("#"+i[r]+"-value"),n,s),ot(Q("#yp-"+i[r]),i[r],!0,!1);Ja()},20)}}),Q(".yp-panel-hide,.yp-panel-show").click(function(){we()}),Q(document).on("click","#parent-bar ul li",function(){var e,t;Q("#parent-bar ul li").removeClass("active"),t=Q(this).attr("data-parent-selector"),e=ie.find(".yp-parent-way-"+Q(this).index()),0==Q(this).hasClass("yp-parent-has-selector")&&(t=fa(e,"defaultNoCache"),Q(this).attr("data-parent-selector",t),Q(this).addClass("yp-parent-has-selector")),F(t,e,window.targetIsParentTree=!0),window.targetIsParentTree=!1,Q(this).addClass("active"),oe.extra.find(".yp-element-viewer").addClass("yp-element-viewer-relax-opacity").removeClass("yp-element-viewer").fadeOut(300),window.relaxView=setTimeout(function(){oe.extra.find(".yp-element-viewer-relax-opacity").remove()},320),be(null,!0)}),Q(document).on("mouseenter mouseover","#parent-bar ul li",function(){var e=Q(this).attr("data-parent-selector"),t=ie.find(".yp-parent-way-"+Q(this).index());0==Q(this).hasClass("yp-parent-has-selector")&&(e=fa(t,"defaultNoCache"),Q(this).attr("data-parent-selector",e),Q(this).addClass("yp-parent-has-selector")),st(ie.find(e))}),Q(document).on("mouseleave mouseout","#parent-bar ul li",function(){oe.extra.find(".yp-element-viewer").remove()}),ie.on("contextmenu",".yp-selected",function(e){Re()}),ie.on("click",".yp-edit-menu",function(e){1==e.which&&Re()}),ie.on("click",".yp-selected",function(e){3==e.which&&Re()}),Q(document).on("mouseenter",".context-menu-list.yp-contextmenu-parent li",function(e){var t=Q(this).prevAll("li").length,a=fa(le().parentsUntil("html").eq(t),"defaultNoCache");st(ie.find(a))}),Q(document).on("mouseenter",".context-menu-list.yp-contextmenu-children li",function(e){var t=Q(this).prevAll("li").length,a=fa(le().children().not("br").eq(t),"defaultNoCache");st(ie.find(a))}),Q(document).on("mouseleave",".context-menu-list.yp-contextmenu-parent li,.context-menu-list.yp-contextmenu-children li",function(e){oe.extra.find(".yp-element-viewer").remove()}),Q(document).on("click",".show-more-parent-link",function(e){Q(".context-menu-list.yp-contextmenu-parent").removeClass("yp-limit-parent-view")}),Q(document).on("click",".show-more-children-link",function(e){Q(".context-menu-list.yp-contextmenu-children").removeClass("yp-limit-children-view")}),window.addonsReady=function(){window.addonsCheck=!0,Q(".yp-select-bar").resizable({handles:"w, e",minWidth:288,maxWidth:400,start:function(e,t){Q(".fake-layer-x").css("cursor","e-resize"),Ye(0)},resize:function(e,t){Q("#rightpanel-personalized-view").remove(),re.append("<style id='rightpanel-personalized-view'>.yp-select-bar{width:"+t.size.width+"px !important;}</style>"),B()},stop:function(e,t){Q(".fake-layer-x").remove(),p("rightPanelWidth",t.size.width),He(0)}}),Q("#visual-css-view").resizable({handles:"w",minWidth:288,maxWidth:Q(window).width(),start:function(e,t){Q(".fake-layer-x").css("cursor","e-resize"),Ye(0)},resize:function(e,t){Q("#visual-manager-personalized-view").remove(),t.size.width>parseInt(Q(window).width()-10)&&(t.size.width=Q(window).width()),re.append("<style id='visual-manager-personalized-view'>#visual-css-view{width:"+t.size.width+"px !important;}</style>"),B()},stop:function(e,t){Q(".fake-layer-x").remove(),p("visualManagerWidth",t.size.width),He(0)}}),Q(".advanced-info-box").resizable({handles:"e",minWidth:300,maxWidth:50*Q(window).width()/100,start:function(e,t){Q(".fake-layer-x").css("cursor","e-resize")},resize:function(e,t){Q("#advancedinfobox-personalized-view").remove(),re.append("<style id='advancedinfobox-personalized-view'>.advanced-info-box {width:"+t.size.width+"px !important;}</style>")},stop:function(e,t){Q(".fake-layer-x").remove(),p("advancedInfoBoxWidth",t.size.width)}}),Q(".yp-animate-manager").resizable({handles:"n",minHeight:287,maxHeight:70*Q(window).height()/100,start:function(e,t){Ye(0),Q(".fake-layer-x").css("cursor","n-resize")},resize:function(e,t){Q("#animmanager-personalized-view").remove(),re.append("<style id='animmanager-personalized-view'>body.yp-animate-manager-active.yp-responsive-device-mode #iframe{height:calc(80% - "+t.size.height+"px) !important;}body.yp-animate-manager-active .responsive-size-text{margin-bottom:"+(c-25)+"px !important;}.yp-animate-manager{height:"+t.size.height+"px !important;}</style>")},stop:function(e,t){Q(".fake-layer-x").remove(),p("animManagerHeight",t.size.height)}}),Q("#leftAreaEditor").resizable({handles:"e",maxWidth:Q(window).width(),minWidth:370,delay:150,start:function(e,t){Q("#cssData").width(t.size.width-41),Q("#cssEditorBar").width(t.size.width),Ye(0),Q(".fake-layer-x").css("cursor","e-resize")},resize:function(e,t){t.size.width>parseInt(Q(window).width()-10)&&(t.size.width=Q(window).width()),Q("#cssData").width(t.size.width-41),Q("#cssEditorBar").width(t.size.width),Q("#csseditor-personalized-view").remove();var a=t.size.width;re.append("<style id='csseditor-personalized-view'>#leftAreaEditor, #cssData, #cssEditorBar{width:"+a+"px !important;}body.yp-css-editor-active .metric,body.yp-css-editor-active .breakpoint-bar, body.yp-css-editor-active.yp-responsive-device-mode #iframe, body.yp-css-editor-active:not(.yp-responsive-device-mode) #iframe {left: "+a+"px !important;}body.yp-css-editor-active .breakpoint-bar div{margin-left: calc("+parseFloat(a+10)+"px - 56px) !important;}body.yp-css-editor-active .context-menu-root:not(.dom_contextmenu), body.yp-css-editor-active .metric-top-tooltip {margin-left: "+a+"px !important;}body.yp-css-editor-active .metric-top-border {margin-left: calc("+a+"px - 1px) !important;}body.yp-css-editor-active .metric-left-tooltip {margin-left: calc("+a+"px + 1px) !important;}body.yp-css-editor-active #parent-bar,body.yp-css-editor-active .responsive-size-text{left:"+a+"px !important;}</style>"),l.resize(),window.FrameleftOffset=void 0,u(),B()},stop:function(e,t){Q(".fake-layer-x").remove(),Q("#cssData").width(t.size.width-41),Q("#cssEditorBar").width(t.size.width),p("cssEditorWidth",t.size.width)}}),Q.contextMenu({events:{show:function(){var e=Q(this);setTimeout(function(){0==te(ee(null,!1),"[msize="+e.attr("data-breakpoint-data")+"]").length?(Q(".reset-breakpoint-menu").addClass("disabled"),Q(".review-breakpoint-menu").addClass("disabled"),Q(".show-css-menu").addClass("disabled")):(Q(".review-breakpoint-menu").removeClass("disabled"),Q(".reset-breakpoint-menu").removeClass("disabled"),Q(".show-css-menu").removeClass("disabled"))},window.YellowDelay)}},selector:".breakpoint-bar div",className:"dom_contextmenu breakpoint-contextmenu",callback:function(e,t){var a;if("reset"==e&&(a=Q(this).attr("data-breakpoint-data"),g({title:J.delete_media_query.replace("{$1}","<strong class='bold-light'>"+a+"</strong>"),text:J.delete_media_query_msg,showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:J.delete_t+"!",closeOnConfirm:!0,animation:!1,customClass:"editor-style",html:!0},function(){U(G(ee(null,!1),"[msize="+a+"]")),Ja(),Ze(),Be()})),"reviewBreakpoint"==e&&(a=Q(this).attr("data-breakpoint-data"),St(),Q("#visual-rule-filter").val(a).trigger("keyup")),"showCSS"==e){window.disable_auto_insert=!0,0==re.hasClass("yp-css-editor-active")&&Q(".css-editor-btn").trigger("click"),cssData=Ct(!0,null,!0).replace(/ |\t/g,""),window.disable_auto_insert=!1;var i=Q(this).attr("data-media-content");-1==cssData.indexOf(i)&&(i=Q(this).attr("data-breakpoint-data").replace(/ |\t/g,""));var n=cssData.split(i)[0].split(/\r\n|\r|\n/).length,s=cssData.replace(/\}\s+\}/g,"}}");if(fe(s.split(i)[1])){setTimeout(function(){l.scrollToLine(n,!0,!1)},4);var r=s.split(i)[1].split(/\}\}/g)[0].split(/\r\n|\r|\n/).length,o=ace.require("ace/range").Range;l.selection.setRange(new o(n-1,0,n+r+1,1))}}},items:{reviewBreakpoint:{name:J.review_breakpoint,className:"review-breakpoint-menu"},showCSS:{name:J.show_in_editor,className:"show-css-menu"},reset:{name:J.delete_t,className:"reset-breakpoint-menu"}}}),Q("#search").autoGrowInput({minWidth:229,maxWidth:500}),Q.contextMenu({events:{hide:function(e){Q(".yp-limit-parent-view").removeClass("yp-limit-parent-view"),Q(".yp-limit-children-view").removeClass("yp-limit-children-view"),Be()},show:function(){Q(".yp-contextmenu-hover,.yp-contextmenu-focus,.yp-contextmenu-active,.yp-contextmenu-checked,.yp-contextmenu-disabled,.yp-contextmenu-enabled,.yp-contextmenu-invalid,.yp-contextmenu-link,.yp-contextmenu-valid,.yp-contextmenu-visited").hide();var e=le().prop("tagName").toUpperCase();if(Q(".yp-contextmenu-hover,.yp-contextmenu-active").show(),"INPUT"==e){var t=le().attr("type");Q(".yp-contextmenu-disabled,.yp-contextmenu-enabled,.yp-contextmenu-focus").show(),null!=t&&"text"!=t&&"password"!=t&&"date"!=t&&"datetime-local"!=t&&"email"!=t&&"month"!=t&&"number"!=t&&"range"!=t&&"search"!=t&&"tel"!=t&&"time"!=t&&"week"!=t&&"url"!=t||Q(".yp-contextmenu-invalid,.yp-contextmenu-valid").show(),"checkbox"==t&&Q(".yp-contextmenu-checked").show()}"A"==e&&Q(".yp-contextmenu-link,.yp-contextmenu-visited").show(),ce()&&le().contextMenu("hide");var a=da(),i=ie.find(a).parent();0<i.length&&"html"!=i.prop("tagName").toLowerCase()?Q(".yp-contextmenu-parent").removeClass("yp-disable-contextmenu"):Q(".yp-contextmenu-parent").addClass("yp-disable-contextmenu"),0<ie.find(a).children().not("br").length?Q(".yp-contextmenu-children").removeClass("yp-disable-contextmenu"):Q(".yp-contextmenu-children").addClass("yp-disable-contextmenu"),Q(".yp-active-contextmenu").removeClass("yp-active-contextmenu"),se.hasAttr("data-yp-selector")&&Q(".yp-contextmenu-"+se.attr("data-yp-selector").replace(":","")).addClass("yp-active-contextmenu"),0<ie.find(".yp-selected-others").length?Q(".yp-contextmenu-select-it").show():Q(".yp-contextmenu-select-it").hide();var n=Q(".context-menu-list.yp-contextmenu-parent");7<Q(".context-menu-list.yp-contextmenu-parent li").length&&n.addClass("yp-limit-parent-view");var s=Q(".context-menu-list.yp-contextmenu-children");7<Q(".context-menu-list.yp-contextmenu-children li").length&&s.addClass("yp-limit-children-view"),function(){Q(".yp-contextmenu-reset-single-childs,.yp-contextmenu-reset-template-childs,.yp-contextmenu-reset-global-childs,.yp-contextmenu-reset-single-self,.yp-contextmenu-reset-template-self,.yp-contextmenu-reset-global-self").removeClass("yp-disable-contextmenu");for(var e,t,a=[],i=0,n=0,s=0,r=0,o=0,l=[],p=null,d=["global","template","single"],c=0,u=0;u<d.length;u++)if(s=n=i=0,Q(".yp-contextmenu-reset-"+(p=d[u])+"-childs,.yp-contextmenu-reset-"+p+"-self").addClass("yp-disable-contextmenu"),l=Et(p).selectors,a=Et(p).rules,0==l||null==l||l.length<=0)Q(".yp-contextmenu-reset-"+p).addClass("yp-disable-contextmenu");else{l=l.filter(Boolean);for(var m=0;m<l.length;m++)t=a[m],e=Wa(l[m],!0,!0,!0,!0),0!=ua(e,!0,!1,!1)&&(0<ie.find(e).parents(".yp-selected").length?(Q(".yp-contextmenu-reset-"+p+"-childs").removeClass("yp-disable-contextmenu"),o++,t.split(";").length-1,i+=t.split(";").length-1,n+=t.split(";").length-1):1==ie.find(e).hasClass("yp-selected")&&(Q(".yp-contextmenu-reset-"+p+"-self").removeClass("yp-disable-contextmenu"),r++,t.split(";").length-1,i+=t.split(";").length-1,s+=t.split(";").length-1));0==i&&Q(".yp-contextmenu-reset-"+p).addClass("yp-disable-contextmenu"),Q(".yp-contextmenu-reset-"+p+"-self > span").html(Q(".yp-contextmenu-reset-"+p+"-self > span").nodeText()+"<i class='yp-contextmenu-small'>"+s+" Rule</i>"),Q(".yp-contextmenu-reset-"+p+"-childs > span").html(Q(".yp-contextmenu-reset-"+p+"-childs > span").nodeText()+"<i class='yp-contextmenu-small'>"+n+" Rule</i>"),c+=s}0==r&&0==o&&Q(".yp-contextmenu-reset-styles").addClass("yp-disable-contextmenu");0==r?Q(".yp-contextmenu-review-styles").addClass("yp-disable-contextmenu"):Q(".yp-contextmenu-review-styles > span").html(Q(".yp-contextmenu-review-styles > span").nodeText()+"<i class='yp-contextmenu-small'>"+c+" Rule</i>");Q(".yp-contextmenu-pseudo-classes .yp-contextmenu-small").remove(),l=Et().selectors;var g="";if(0!=l&&null!=l&&0<l.length){l=l.filter(Boolean);for(var m=0;m<l.length;m++)0!=/:(hover|focus|active|visited|link|checked|disabled|enabled|invalid|valid)/g.test(l[m])&&(g=l[m].match(/:(hover|focus|active|visited|link|checked|disabled|enabled|invalid|valid)/g)[0].replace(/\:/g,""),e=Wa(l[m],!0,!0,!0,!0),0!=ua(e,!0,!1,!1)&&1==ie.find(e).hasClass("yp-selected")&&Q(".yp-contextmenu-"+g).append("<i class='yp-contextmenu-small'>Edited</i>"))}}()}},selector:"body.yp-content-selected .yp-selected,body.yp-content-selected.yp-selected",callback:function(e,t){var a=da();if("hover"!=e&&"focus"!=e&&"link"!=e&&"visited"!=e&&"active"!=e&&"checked"!=e&&"disabled"!=e&&"enabled"!=e&&"invalid"!=e&&"valid"!=e||(a=a.replace(/:(?!hover|focus|active|link|visited|checked|disabled|enabled|invalid|valid)/g,"YP_DOTTED_PREFIX"),F(a=(a=Q(".yp-contextmenu-"+e).hasClass("yp-active-contextmenu")?a.split(":")[0]:-1==a.indexOf(":")?a+":"+e:a.split(":")[0]+":"+e).replace(/YP_DOTTED_PREFIX/g,":"),le(),!0)),"reviewStyles"==e&&(St(),Q("#visual-rule-filter").val("matched").trigger("keyup")),"resetSingleSelf"==e&&(Dt(!1,"single"),le().contextMenu("hide")),"resetSingleChilds"==e&&(Dt(!0,"single"),le().contextMenu("hide")),"resetTemplateSelf"==e&&(Dt(!1,"template"),le().contextMenu("hide")),"resetTemplateChilds"==e&&(Dt(!0,"template"),le().contextMenu("hide")),"resetGlobalSelf"==e&&(Dt(!1,"global"),le().contextMenu("hide")),"resetGlobalChilds"==e&&(Dt(!0,"global"),le().contextMenu("hide")),"show-more-parent-link"==e||"show-more-children-link"==e)return!1;if(-1!=e.indexOf("parent-")&&"show-more-parent-link"!=e){var i=e.replace("parent-","");le().parentsUntil("html").eq(i).addClass("yp-will-selected"),_t(),F(Q.trim(fa(ie.find(".yp-will-selected"),"default")),null,!1),oe.extra.find(".yp-element-viewer").addClass("yp-element-viewer-relax-opacity").removeClass("yp-element-viewer").fadeOut(300),setTimeout(function(){oe.extra.find(".yp-element-viewer-relax-opacity").remove()},400)}if(-1!=e.indexOf("children-")&&"show-more-children-link"!=e){i=e.replace("children-","");le().not("br").children().eq(i).addClass("yp-will-selected"),_t(),F(Q.trim(fa(ie.find(".yp-will-selected"),"default")),null,!1),oe.extra.find(".yp-element-viewer").addClass("yp-element-viewer-relax-opacity").removeClass("yp-element-viewer").fadeOut(300),setTimeout(function(){oe.extra.find(".yp-element-viewer-relax-opacity").remove()},400)}if("writeCSS"==e&&(re.hasClass("yp-css-editor-active")&&Q(".css-editor-btn").trigger("click"),Q(".css-editor-btn").trigger("click"),le().contextMenu("hide")),"selectjustit"==e){re.addClass("yp-select-just-it");var n=da();if(1<ie.find(n).length){var s=Ee(a=fa(null,"sharp"),!1);0!==ie.find(s).length&&F(s,null,!0)}window.lastParentQueryStatus="sharp",re.removeClass("yp-select-just-it")}"close"==e&&(_t(),Ne()),"editselector"==e&&ke()},build:function(e,t){return{items:{"pseudo-class":{name:J.pseudo_class,className:"yp-contextmenu-pseudo-classes",items:{hover:{name:":hover",className:"yp-contextmenu-hover"},focus:{name:":focus",className:"yp-contextmenu-focus"},link:{name:":unvisited",className:"yp-contextmenu-link"},visited:{name:":visited",className:"yp-contextmenu-visited"},active:{name:":active",className:"yp-contextmenu-active"},checked:{name:":checked",className:"yp-contextmenu-checked"},disabled:{name:":disabled",className:"yp-contextmenu-disabled"},enabled:{name:":enabled",className:"yp-contextmenu-enabled"},invalid:{name:":invalid",className:"yp-contextmenu-invalid"},valid:{name:":valid",className:"yp-contextmenu-valid"}}},parent:{name:J.parent_elements,className:"yp-contextmenu-parent",items:window.parentItems},children:{name:J.children_elements,className:"yp-contextmenu-children",items:window.childrenItems},selectjustit:{name:J.select_only_this,className:"yp-contextmenu-select-it"},writeCSS:{name:J.write_css,className:"yp-contextmenu-type-css"},editselector:{name:J.edit_selector,className:"yp-contextmenu-selector-edit"},sep2:"---------",reviewStyles:{name:J.review_styles,className:"yp-contextmenu-review-styles"},reset:{name:J.reset_styles,className:"yp-contextmenu-reset-styles",items:{resetSingle:{name:J.single,className:"yp-contextmenu-reset-single",items:{resetSingleSelf:{name:J.the_element,className:"yp-contextmenu-reset-single-self"},resetSingleChilds:{name:J.child_elements,className:"yp-contextmenu-reset-single-childs"}}},resetTemplate:{name:J.template,className:"yp-contextmenu-reset-template",items:{resetTemplateSelf:{name:J.the_element,className:"yp-contextmenu-reset-template-self"},resetTemplateChilds:{name:J.child_elements,className:"yp-contextmenu-reset-template-childs"}}},resetGlobal:{name:J.global_t,className:"yp-contextmenu-reset-global",items:{resetGlobalSelf:{name:J.the_element,className:"yp-contextmenu-reset-global-self"},resetGlobalChilds:{name:J.child_elements,className:"yp-contextmenu-reset-global-childs"}}}}},close:{name:J.leave,className:"yp-contextmenu-close"}}}}})},Ne(),Q(".yp-element-picker").click(function(){se.toggleClass("yp-element-picker-active"),Q(this).toggleClass("active"),ie.find("#colorPickerLiveCSS").remove(),Yt(Q(this).parents(".yp-option-group").attr("data-css"))}),e.on("mousemove mousedown",function(e){if(!1===re.hasClass("yp-metric-disable")){var t=e.pageX,a=e.pageY,i=e.clientX,n=e.clientY,s=Q(window).width(),r=Q(window).height();if(re.hasClass("yp-responsive-resizing")&&(a-=10,t-=10,i-=10,n-=10),0<Q(this).find("#iframe").length&&de()){var o=B(!0),l=0;re.hasClass("yp-responsive-resizing")&&(i<368&&(i=368),re.hasClass("yp-css-editor-active")&&(l=parseInt(Q("#iframe").css("left"))-46),o-82+l<i&&(i=o-82+l),n<360&&(n=360),r-80<n&&(n=r-80)),Q(".metric-top-border").attr("style","left:"+i+"px !important;display:block;margin-left:-1px !important;"),Q(".metric-left-border").attr("style","top:"+n+"px !important;"),Q(".metric-top-tooltip").attr("style","top:"+n+"px !important;display:block;"),Q(".metric-left-tooltip").attr("style","left:"+i+"px !important;display:block;margin-left:1px !important;"),re.hasClass("yp-responsive-resizing")?(Q(".metric-left-tooltip span").text(t+10),Q(".metric-top-tooltip span").text(a+10)):(Q(".metric-left-tooltip span").text(t),Q(".metric-top-tooltip span").text(a))}if(0===Q(this).find("#iframe").length){re.hasClass("yp-responsive-resizing")&&(i<320&&(i=320),s<i&&(i=s),n<320&&(n=320),r<n&&(n=r));var p=30;de()&&(p=39),Q(".metric-top-border").attr("style","left:"+i+"px !important;display:block;"),Q(".metric-left-border").attr("style","top:"+n+"px !important;margin-top:"+p+"px;"),Q(".metric-top-tooltip").attr("style","top:"+n+"px !important;display:block;margin-top:32px;"),Q(".metric-left-tooltip").attr("style","left:"+i+"px !important;display:block;"),re.hasClass("yp-responsive-resizing")?(Q(".metric-top-tooltip span").text(a+10),Q(".metric-left-tooltip span").text(t+10)):(Q(".metric-top-tooltip span").text(a),Q(".metric-left-tooltip span").text(t))}}}),ie.on("mousemove",ie,function(e){if(!1===re.hasClass("yp-metric-disable")){var t=Q(e.target);(y()||w()||v())&&(t=le()),t.hasAttr("class")&&/(^|\s+)yp-(.*?)/g.test(t.attr("class"))&&0==/yp-parent-way/g.test(t.attr("class"))&&(t=le());var a=t.get(0);if(!ve(a)){var i=a.getBoundingClientRect(),n=parseFloat(ie.scrollTop()),s=i.width,r=i.height,o=i.top+n,l=i.left,p=i.bottom+n;l<0&&(l=0),0===oe.extra.find(".hover-info-box").length&&oe.extra.append("<div class='hover-info-box'></div>");var d=parseFloat(t.css("marginLeft")),c=parseFloat(t.css("marginRight")),u=parseFloat(t.css("marginTop")),m=parseFloat(t.css("marginBottom"));t.hasClass("yp-selected")?oe.extra.find(".hover-info-box").css("width",s).css("height",r).css("top",o).css("left",l):oe.extra.find(".hover-info-box").css("width",s+d+c).css("height",r+u+m).css("top",o-u).css("left",l-d).css("border-left-width",d).css("border-right-width",c).css("border-top-width",u).css("border-bottom-width",m);var g=oe.extra.find(".yp-size-handle");0===g.length&&(oe.extra.append("<div class='yp-size-handle'>W : <span class='ypdw'></span> px<br>H : <span class='ypdh'></span> px</div>"),g=oe.extra.find(".yp-size-handle")),g.find(".ypdw").text(parseInt(s)),g.find(".ypdh").text(parseInt(r)),l+=s/2,g.css("top",p).css("bottom","auto").css("left",l).css("position","absolute"),parseFloat(p+40)>parseFloat(Q("#iframe").height())+n&&g.css("bottom","10px").css("top","auto").css("left",l).css("position","fixed")}}}),Q(window).resize(function(){setTimeout(function(){B(),Ne(),yt(),de()&&u(),Be()},50)}),ie.on("mouseout",".yp-element-placeholder,.yp-iframe-placeholder",function(){ie.find(".yp-will-selected").removeClass("yp-will-selected"),oe.extra.find(".yp-iframe-placeholder,.yp-element-placeholder").remove()}),ie.on("mouseup",".yp-element-placeholder,.yp-iframe-placeholder",function(){var e,t=ie.find(".yp-will-selected"),a=Q(this);e=a.hasAttr("data-that-selector")?a.attr("data-that-selector"):a.hasAttr("data-iframe-selector")?a.attr("data-iframe-selector"):fa(t,"default"),re.hasAttr("data-yp-selector")&&(e+=re.attr("data-yp-selector")),F(e,t,!(window.placeholderSelector=!0)),window.placeholderSelector=!1}),ie.on("mousedown",".yp-selected",function(e){if(1==e.which){var t=Q(this),a=t.prop("tagName").toLowerCase();if("iframe"!=a&&"html"!=a&&"body"!=a&&"svg"!=a&&"img"!=a){var i=oe.active.find(".yp-selected-boxed-top"),n=oe.active.find(".yp-selected-boxed-left"),s=parseFloat(i.css("width")),r=parseFloat(n.css("height")),o=parseFloat(i.css("top")),l=parseFloat(n.css("left"));0==pe()&&t.addClass("yp-will-selected");var p=fa(t,"default");oe.extra.find(".yp-element-placeholder").remove();var d=t.css("margin-top"),c=t.css("margin-right"),u=t.css("margin-bottom"),m=t.css("margin-left"),g=t.css("padding-top"),h=t.css("padding-right"),f=t.css("padding-bottom"),v=t.css("padding-left");o-=parseFloat(d),l-=parseFloat(m),oe.extra.append("<div class='yp-element-placeholder' data-that-selector='"+p+"' style='left:"+l+"px !important;top:"+o+"px !important; width:"+s+"px !important; height:"+r+"px !important;margin-top:"+d+";margin-right:"+c+";margin-bottom:"+u+";margin-left:"+m+";padding-top:"+g+";padding-right:"+h+";padding-bottom:"+f+";padding-left:"+v+";'></div>")}}}),ie.on("mouseover",ie,function(e){0==window.mouseoverTrigger?(clearTimeout(ze),ze=setTimeout(function(){Le(e)},20)):Le(e)}),Q(".media-control").click(function(){var e=Q(this).attr("data-code");if("max-width"==e&&(Q(this).attr("data-code","min-width"),Q(this).text(J.above_t)),"min-width"==e&&(Q(this).attr("data-code","max-width"),Q(this).text(J.below_t)),Te(),Oe(),Q(this).tooltip("fixTitle").tooltip("show"),Q(".property-size.active").removeClass("active"),0<Q(".breakpoint-bar .active").length){var t=ya(Q(".breakpoint-bar .active").attr("data-media-content"));fe(t)&&(t=t.toString(),0<Q(".property-size[data-property-size='"+t+"']").length&&Q(".property-size[data-property-size='"+t+"']").addClass("active"))}}),Q(".media-control").tooltip({title:function(){var e=Q(this).attr("data-code");return"max-width"==e?e="min-width":"min-width"==e&&(e="max-width"),J.toggle_media_query_condition.replace("{$1}","<strong>"+e+"</strong>")},animation:!1,delay:{show:50,hide:0},placement:"top",trigger:"hover",container:"body",html:!0}),Q(document).on("mousemove",".unvalid-css-cover, .yp-css-close-btn,.editor-tabs:not(.active)",function(){re.hasClass("css-code-unvalid")&&(re.addClass("css-error-message"),Q(".unvalid-css-error").attr("style","display:block !important"))}),Q(document).on("click",".unvalid-css-cover",function(){if(re.hasClass("css-code-unvalid"))return g({title:J.css_parse_error,text:J.css_parse_error_text,type:"error",animation:!1,customClass:"editor-style-ok"}),!1}),Q("#cssData").on("keyup keydown",function(e){l.getSession().removeMarker(window.typeHereMarker);var t=0;e.originalEvent&&(t=900),!1===se.hasClass("yp-selectors-hide")&&0!==t&&(se.addClass("yp-selectors-hide"),0<ie.find(".context-menu-active").length&&le().contextMenu("hide"),Ye(200)),clearTimeout(Ae),Ae=setTimeout(function(){return se.hasClass("yp-selectors-hide")&&0===Q(".wqNoUi-active").length&&!1===re.hasClass("autocomplete-active")&&0===Q(".yp-select-bar .tooltip").length&&(se.removeClass("yp-selectors-hide"),He(200)),"keydown"!=e.type&&0==re.hasClass("css-code-unvalid")&&(de()&&Oe(),Ze(),re.hasClass("visual-css-view-active")&&(It(),Ot())),!1},t),"keydown"!=e.type&&C(l.getValue())}),Q(document).on("mouseenter","#iframe",function(){He(200)}),Q(document).on("mouseenter","#parent-bar,.yp-this-content,.anim-bar,#visual-css-view,.fake-layer,.fake-layer-x,.fake-layer-x-bg",function(e){if(Q(e.target).is(".property-size"))return!1;0<ie.find(".context-menu-active").length&&le().contextMenu("hide"),Ye(200)}),Q(document).on("mouseenter","#visual-css-view",function(){se.hasClass("yp-need-to-process")&&Ka()}),Q(document).on("mouseleave",".view-media-line,.property-size",function(){Ye(200)}),Q("#yp-current-page").on("click",function(){return Q(this).toggleClass("active"),Q("#yp-customizing-type-frame").css("display","block"),tt(!1),!1}),Q("#customizing-mode").on("click",function(){return Q("#customizing-type-list").toggle(),Q(this).toggleClass("active"),Q("#customizing-type-list").toggleClass("active"),Q(".starter-notice").toggleClass("padded-starter-notice"),Q("#customizing-type-list li").each(function(){var e=Q(this).attr("data-value"),t=Q(this),a=Ct(!0,e,!1),i=Ct(!0,e,!1).match(/:(.*?);/g);0<a.length&&null!=i?t.find(".type-bayt span").html(i.length+" "+J.rule):t.find(".type-bayt span").html(J.empty)}),!1}),Q(".type-disabled").tooltip({animation:!1,title:J.customize_type_not_available,placement:"left",container:".yp-select-bar",html:!0}),Q(".manage-this-type").tooltip({animation:!1,title:"Manage Styles",placement:"left",container:".yp-select-bar",html:!0}),Q(".reset-this-type").tooltip({animation:!1,title:"Reset Styles",placement:"left",container:".yp-select-bar",html:!0}),Q(document).on("click","#customizing-type-list li",function(){var e=Q(this).attr("data-value");if(Q(this).hasClass("type-disabled"))return!1;se.hasClass("yp-need-to-process")&&Ka(),l.getSession().removeMarker(window.typeHereMarker);var t=Q(this).find("h6 > span").text();ie.find(".yp-inline-data").removeAttr("id"),ie.find('.yp-inline-data[data-source-mode="'+e+'"]').attr("id","yp-styles-area"),Q(".active-customizing-list").removeClass("active-customizing-list"),Q(this).addClass("active-customizing-list"),Q("#customizing-mode .type-heading").text(t),Q("#customizing-type-list").hide(),Q("#customizing-mode,#customizing-type-list").removeClass("active"),Q(".starter-notice").removeClass("padded-starter-notice"),n(),Ze(),b()&&_(),window.sourceViewClick||Ie(!0),tt(!1),T()}),Q(".editor-tabs").on("click",function(){if(Q(this).hasClass("disabled")||Q(this).hasClass("active"))return!1;if(re.hasClass("css-code-unvalid"))return g({title:J.css_parse_error,text:J.css_parse_error_text,type:"error",animation:!1,customClass:"editor-style-ok"}),!1;var e=Q(this).attr("data-type-value");Q(".editor-tabs").removeClass("active"),Q(this).addClass("active"),Q("#customizing-mode").removeClass("done"),Q(".yp-type-menu-link").addClass("focus").addClass("done"),setTimeout(function(){Q(".yp-type-menu-link").removeClass("focus").removeClass("done")},600),Q("#customizing-type-list li[data-value='"+e+"']").trigger("click")}),Q(document).on("mouseenter",".ace_line_group",function(){var t,e=Q(this).text();1==/\{/g.test(e)&&0==/\@(media|font-face|import)/g.test(e)&&(t=e.split("{")[0],window.focusDelay=setTimeout(function(){if("*"==(t=Wa(t,!0,!0,!0,!0)).trim())return!1;var e=ua(t,!0,!1,!1);if(0==e)return!1;st(e)},200))}),Q(document).on("mouseleave",".ace_line_group",function(){clearTimeout(window.focusDelay),oe.extra.find(".yp-element-viewer").remove()}),Q("#yp-border-type .yp-radio").on("click",function(){var e=Q("#yp-border-type .yp-radio.active input").val();Q(".yp-border-all-section,.yp-border-top-section,.yp-border-right-section,.yp-border-bottom-section,.yp-border-left-section").hide(),Q(".yp-border-"+e+"-section").show(),Ze()}),Q(".yp-radio-option .yp-radio label").on("click",function(){var e,t,a,i;if(i=(t=(e=Q(this).parent()).parent().parent().parent()).attr("data-css"),0===Q(".position-option.active").length&&e.hasClass("active"))return!1;t.addClass("reset-enable"),t.find(".active").removeClass("active"),e.addClass("active"),Q("#"+Q(this).attr("data-for")).prop("checked",!0),a=Q("input[name="+i+"]:checked").val(),"border-type"!=i&&(at(null,i,a,""),Ja())}),Q("#margin-left-group,#margin-right-group,#margin-top-group,#margin-bottom-group").on("mousemove",function(e){if(!e.originalEvent)return!0;if(Q(this).popover("destroy"),"inline"==le().css("display")||"table-cell"==le().css("display"))Q(this).popover({animation:!1,title:J.notice,content:J.display_notice,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show");else if(Q("#"+Q(this).attr("data-css")+"-value").val()<0){if(0==Q(this).hasClass("reset-enable")&&0==Q(this).find(".wqNoUi-active").length)return!0;Q(this).popover({animation:!1,title:J.notice,content:J.negative_margin_notice,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")}}),Q("#list-style-type-group").on("mousemove",function(e){if(!e.originalEvent)return!0;Q(this).popover("destroy"),12<Q("#yp-list-style-image").val().length&&0==Q("#list-style-image-group .yp-none-btn.active").length&&Q(this).popover({animation:!1,title:J.notice,content:J.list_notice1,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")}),Q("#cursor-group").on("mousemove",function(e){if(!e.originalEvent)return!0;Q(this).popover("destroy"),Q("#cursor-group").hasClass("reset-enable")&&Q(this).popover({animation:!1,title:J.notice,content:J.cursor_warning,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")}),Q("#list-style-position-group,#list-style-image-group,#list-style-type-group").on("mousemove",function(e){if(!e.originalEvent)return!0;"list-style-type-group"==Q(this).attr("id")?1==Q("#yp-list-style-image .yp-none-btn.active").length&&Q(this).popover("destroy"):Q(this).popover("destroy");var t=le().prop("tagName").toLowerCase();"li"!=t&&"ul"!=t&&Q(this).popover({animation:!1,title:J.notice,content:J.list_notice,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")}),Q("#scale-transform-group,#rotate-transform-group,#rotatex-transform-group,#rotatey-transform-group,#rotatez-transform-group,#translate-x-transform-group,#translate-y-transform-group,#skew-x-transform-group,#skew-y-transform-group,#perspective-group,#padding-left-group,#padding-right-group,#padding-top-group,#padding-bottom-group,#width-group,#height-group,#animation-name-group").on("mousemove",function(e){if(!e.originalEvent)return!0;Q(this).popover("destroy"),"inline"==le().css("display")&&Q(this).popover({animation:!1,title:J.notice,content:J.display_notice,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")}),Q("#left-group,#right-group,#top-group,#bottom-group").on("mousemove",function(e){return!e.originalEvent||(!!de()||(0==Q(this).hasClass("reset-enable")&&0==Q(this).find(".wqNoUi-active").length||(Q(this).popover("destroy"),void(120<=Q("#"+Q(this).attr("id").replace("group","value")).val()&&Q(this).popover({animation:!1,title:J.notice,content:J.high_position_notice,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")))))}),Q("#position-group").on("mousemove click",function(e){return!e.originalEvent||(Q(this).popover("destroy"),!!de()||(0==Q(this).hasClass("reset-enable")&&0==Q(this).find(".wqNoUi-active").length||void(0<Q(".yp-radio.active #position-fixed").length?Q(this).popover({animation:!1,title:J.notice,content:J.fixed_notice,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show"):0<Q(".yp-radio.active #position-absolute").length&&Q(this).popover({animation:!1,title:J.notice,content:J.absolute_notice,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show"))))}),Q("#background-size-group,#background-repeat-group,#background-blend-mode-group,#background-attachment-group,#background-position-x-group,#background-position-y-group").on("mousemove",function(e){if(!e.originalEvent)return!0;Q(this).popover("destroy"),""!=Q("#yp-background-image").val()&&1!==Q("#background-image-group .yp-none-btn.active").length||Q(this).popover({animation:!1,title:J.notice,content:J.bg_img_notice_two,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")}),Q("#background-clip-group").on("mousemove",function(e){if(!e.originalEvent)return!0;Q(this).popover("destroy"),""!=Q("#yp-background-image").val()&&1!==Q("#background-image-group .yp-none-btn.active").length||Q(this).popover({animation:!1,title:J.notice,content:J.bg_img_notice_tree,trigger:"hover",placement:"left",container:".yp-select-bar",html:!0}).popover("show")}),Q(".yp-disable-btn").on("click",function(){Q(this).parents(".yp-option-group").popover("destroy")}),Q(".yp-editor-panel").on("scroll",function(){Q(".yp-option-group,.yp-advanced-option").popover("hide")}),Q(".input-autocomplete").keydown(function(e){var t=e.keyCode||e.which;38!=t&&40!=t||(Q(this).parent().find(".autocomplete-div .ui-state-focus").prev().trigger("mouseout"),Q(this).parent().find(".autocomplete-div .ui-state-focus").trigger("mouseover")),13==t&&Q(this).blur()}),Q(document).on("click",".autocomplete-div ul li",function(){Q(this).parent().parent().parent().find(".ui-autocomplete-input").trigger("blur")}),Q(".input-autocomplete").on("keyup",function(){ct()}),Q(".input-autocomplete").on("blur keyup",function(e){var t=Q(this).parent().parent().data("css");if("font-family"!=t){if(window.openVal==Q(this).val())return!1}else if(window.openVal==Q(this).val()&&he(window.openVal)==he(Q(this).val()))return!1;Q(".active-autocomplete-item").removeClass("active-autocomplete-item"),Q(this).removeClass("active"),setTimeout(function(){re.removeClass("autocomplete-active")},300),ft(t,"#yp-"+t+"-test-style"),Q("#"+t+"-group").addClass("reset-enable"),"font-weight"==t&&Q("#yp-font-weight").css(t,Q(this).val()).css("fontFamily",Q("#yp-font-family").val()),"font-family"==t&&(Q("#yp-font-family").css(t,Q(this).val()),Q("#yp-font-weight").css("fontFamily",Q("#yp-font-family").val())),"text-shadow"==t&&Q("#yp-text-shadow").css(t,Q(this).val());var a=Q(this).val();"font-family"==t&&-1==a.indexOf(",")&&-1==a.indexOf("'")&&-1==a.indexOf('"')&&(a="'"+a+"'"),at(null,t,a,""),Ja()}),Q(document).on("mouseover",".autocomplete-div li",function(){var e=Q(this);Q(".active-autocomplete-item").removeClass("active-autocomplete-item");var t=e.parent().parent().attr("id").replace("yp-autocomplete-place-","");if(!e.hasClass("ui-state-focus"))return!1;if(void 0===e.parent().attr("id"))return!1;if("font-weight"==t&&(ft("font-weight"),ut("font-weight",Ea(e.text()).replace("-",""))),"font-family"==t){ct(),ft("font-family");var a=e.text();Q.each(JSON.parse(Q("#font-family-group textarea").val()),function(e,t){if(t.label==a)return a=t.value,!1}),a==e.text()&&(a="'"+a+"'"),ut("font-family",a)}"font-weight"==t&&(Q(".autocomplete-div li").each(function(){e.css("fontWeight",Ea(e.text()).replace(/-/g,""))}),Q(".autocomplete-div li").css("fontFamily",Q("#yp-font-family").val()))}),Q(document).on("mouseout",".autocomplete-div",function(){ft(Q(this).parent().parent().attr("data-css"))}),Q(document).on("mouseleave",Q(document),function(){if(se.hasClass("yp-mouseleave"))return!1;se.addClass("yp-mouseleave"),se.removeClass("yp-control-key-down"),ie.find(".yp-multiple-selected").removeClass("yp-multiple-selected"),oe.other.find(".yp-selected-others-multiple-box").remove(),!1===pe()&&_t(),re.removeClass("fake-layer-x-bg"),Q(".fake-layer-x").remove(),Q(".ui-resizable-handle").removeClass("active")}),Q(document).on("mouseup",Q(document),function(e){0!=Q(".ui-resizable-resizing").length&&Q(".ui-resizable-handle").removeClass("active")}),Q(document).on("mouseenter",Q(document),function(){se.removeClass("yp-mouseleave"),se.removeClass("yp-control-key-down"),ie.find(".yp-multiple-selected").removeClass("yp-multiple-selected"),oe.other.find(".yp-selected-others-multiple-box").remove()}),ie.on("mouseleave",ie,function(){if(se.hasClass("yp-iframe-mouseleave"))return!1;se.addClass("yp-iframe-mouseleave"),se.removeClass("yp-control-key-down"),ie.find(".yp-multiple-selected").removeClass("yp-multiple-selected"),oe.other.find(".yp-selected-others-multiple-box").remove()}),ie.on("mouseenter",ie,function(e){e.originalEvent&&(se.removeClass("yp-iframe-mouseleave"),0==pe()&&se.removeClass("yp-full-width-selected"))}),Q(document).on("click",".animation-option:not(.active) > h3",function(){Q(".anim-player-icon.dashicons-controls-pause").trigger("click")}),Q(".anim-player-icon").on("click",function(){return ie.find(".yp_onscreen,.yp_hover,.yp_click,.yp_focus").removeClass("yp_onscreen yp_hover yp_click yp_focus"),ii(),ai(),se.removeClass("yp-hide-borders-now yp-force-hide-select-ui yp-has-transform"),Q(this).hasClass("dashicons-controls-pause")?(Q(".anim-player-icon").removeClass("dashicons-controls-pause").addClass("dashicons-controls-play"),!1):(clearTimeout(window.timer5),"none"!=Q("#yp-animation-name").val()&&void(window.timer5=setTimeout(function(){ie.find(da()).addClass("yp_onscreen yp_hover yp_click yp_focus"),Q(".anim-player-icon").removeClass("dashicons-controls-play").addClass("dashicons-controls-pause");var e=le();se.addClass("yp-hide-borders-now yp-force-hide-select-ui");var t=e.css("animationDuration"),a=e.css("animationDelay"),i=dt(t,a);a=!1!==i?i:ve(a)?0:Mt(a),t=ve(t)?1e3:Mt(t),0===(t=parseFloat(t)+parseFloat(a))&&(t=1e3),t+=100,ai(),window.animationTimer5=setTimeout(function(){se.removeClass("yp-hide-borders-now yp-force-hide-select-ui"),ii(),Q(".anim-player-icon").removeClass("dashicons-controls-pause").addClass("dashicons-controls-play"),Be(),0==re.hasClass("yp-iframe-mouseleave")&&setTimeout(function(){He(200)},300)},t)},5)))}),Q(".wf-close-btn-link").click(function(e){0<Q(".yp-editor-list > li.active").length&&(e.preventDefault(),Q(".yp-editor-list > li.active > h3").trigger("click"))}),window.cachedSelector=null,window.cachedSelectorStrong=null,e.on("mousemove",function(){var e,t,a;0<Q(".iris-dragging").length&&(t=(e=Q(".iris-dragging").parents(".yp-option-group")).data("css"),a=e.find(".wqcolorpicker").val(),"background-image"!=t&&(ft(t,!1),ut(t,a,!1)),0===Q(".fake-layer").length&&re.append("<div class='fake-layer'></div>")),0<Q(".iris-slider").find(".ui-state-active").length&&(t=(e=Q(".iris-slider").find(".ui-state-active").parents(".yp-option-group")).data("css"),a=e.find(".wqcolorpicker").val(),"background-image"!=t&&(ft(t,!1),ut(t,a,!1)),0===Q(".fake-layer").length&&re.append("<div class='fake-layer'></div>")),0<Q(".cs-alpha-slider").find(".ui-state-active").length&&(t=(e=Q(".cs-alpha-slider").find(".ui-state-active").parents(".yp-option-group")).data("css"),a=e.find(".wqcolorpicker").val(),"background-image"!=t&&(ft(t,!1),ut(t,a,!1)),0===Q(".fake-layer").length&&re.append("<div class='fake-layer'></div>"))}),e.on("mouseup",function(e){var t;0<Q(document).find(".iris-dragging").length?((t=Q(".iris-dragging").parents(".yp-option-group")).find(".wqcolorpicker").trigger("change"),Q(".fake-layer").remove(),"background-image-group"==t.attr("id")&&xt("insert")):0<Q(document).find(".iris-slider .ui-state-active").length?((t=Q(".ui-state-active").parents(".yp-option-group")).find(".wqcolorpicker").trigger("change"),Q(".fake-layer").remove(),"background-image-group"==t.attr("id")&&xt("insert")):0<Q(document).find(".cs-alpha-slider .ui-state-active").length?(t=Q(".cs-alpha-slider .ui-state-active").parents(".yp-option-group"),Q(".fake-layer").remove(),"background-image-group"==t.attr("id")&&xt("insert")):Q(e.target).hasClass("iris-square-handle")&&((t=Q(e.target).parents(".yp-option-group")).find(".wqcolorpicker").trigger("change"),Q(".fake-layer").remove(),"background-image-group"==t.attr("id")&&xt("insert"))}),Q(".wqcolorpicker").on("blur",function(){if(""==Q(this).val())return!1}).on("click",function(){Q(this).parent().parent().find(".iris-picker").show()}).on("keydown keyup",function(){Q(this).parent().find(".wqminicolors-swatch-color").css("backgroundColor",Q(this).val())}).on("change",function(){var e,t,a,i;a=(t=(e=Q(this)).parent().parent().parent()).data("css"),i=(i=e.val()).replace(/##/g,"#"),e.val(i),t.addClass("reset-enable"),-1==i.indexOf("#")&&-1==i.indexOf("rgb")&&(i="#"+i),t.find(".yp-btn-action.active").trigger("click"),i.length<3&&(i="transparent",t.find(".yp-none-btn:not(.active)").trigger("click")),ft(a,!1),at(null,a,i,""),Ja()}),Q(".yp-input-option .yp-input").on("keyup",function(){var e,t,a,i,n;n=(t=(e=Q(this)).parent().parent().parent()).attr("data-css"),a=e.val(),t.addClass("reset-enable"),t.find(".yp-btn-action.active").trigger("click"),"none"==a&&(t.find(".yp-none-btn").not(".active").trigger("click"),e.val("")),"disable"==a&&(t.find(".yp-disable-btn").not(".active").trigger("click"),e.val("")),"background-image"==n&&-1==a.indexOf("linear-gradient(")&&(a=a.replace(/\)/g,"").replace(/\url\(/g,""),e.val(a),a='url("'+a+'")',Q(".yp-background-image-show").remove(),i=a.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,""),-1==a.indexOf("yellow-pencil")&&(-1==i.indexOf("//")&&-1==i.indexOf("data:")||Q("#background-image-group .yp-part").append("<img src='"+i+"' class='yp-background-image-show' />"))),"list-style-image"==n&&(a=a.replace(/\)/g,"").replace(/\url\(/g,""),e.val(a),a='url("'+a+'")'),"background-image"==n&&-1==a.indexOf("yellow-pencil")&&Q(".yp_bg_assets.active").removeClass("active"),"background-image"==n&&-1!=a.indexOf("yellow-pencil")&&Q(".yp_bg_assets.active").addClass("active"),at(null,n,a,""),Ja()}),Q(document).on("click",".yp-gradient-pointer-area",function(e){if(0!==Q(".iris-picker:visible").length)return!0;if(Q(e.target).hasClass("yp-gradient-pointer")||Q(e.target).hasClass("yp-gradient-pointer-color"))return!1;var t=Q(".yp-gradient-pointer-area"),a=t.width(),i=t.offset().left,n=e.pageX-i;n=parseInt(n/a*100),Q(".yp-gradient-pointer").removeClass("active");var s="#FF5253";7==Q("#iris-gradient-color").val().length&&(s=Q("#iris-gradient-color").val());var r='<div class="yp-gradient-pointer active" data-color="'+s+'" data-position="'+n+'" style="left:'+n+'%;"><i class="yp-gradient-pointer-color" style="background-color:'+s+';"></i></div>';t.append(r),yt(),xt("insert")}),Q(".yp-gradient-orientation i").draggable({containment:"parent",start:function(e,t){},drag:function(e,t){var a=Q(".yp-gradient-orientation"),i=a.offset(),n=i.left+a.width()/2,s=i.top+a.height()/2,r=t.offset.left,o=t.offset.top,l=Math.atan2(r-n,o-s)*(180/Math.PI)*-1;Q(this).parent().attr("data-degree",parseInt(l)),xt("live")},stop:function(e,t){xt("insert")}}),window.blockIris=!1,window.iris_global_change_callback=function(e,t){0<Q(".yp-gradient-section .iris-picker:visible").length&&(Q(".yp-gradient-pointer.active i").css("background-color",t.color.toString()),Q(".yp-gradient-pointer.active").attr("data-color",t.color.toString()),xt("live"))},Q(document).on("click contextmenu",".yp-gradient-pointer",function(e){Q(".yp-gradient-pointer").removeClass("active"),Q(this).addClass("active")}),Q(document).on("dblclick",".yp-gradient-pointer",function(e){if(1==window.blockIris)return!1;var t=Q(this).attr("data-color");window.gradientlastColor=t,Q(".yp-gradient-pointer").removeClass("active"),Q(this).addClass("active"),Q(".yp-gradient-pointer-area").addClass("gradient-pointer-no-cursor"),Q("#iris-gradient-color").iris("color",t);var a=100;-1!=t.indexOf("rgba")&&-1!=(a=Q.trim(t.replace(/^.*,(.+)\)/,"$1"))).indexOf(".")&&(1==(a=a.replace("000.","").replace("00.","").replace("0.","").replace(".","")).length&&(a=a.toString()+"0"),a=a.replace(/^0/,"")),Q(".yp-gradient-section .iris-picker .cs-alpha-slider").slider("value",a),Q(".yp-gradient-section .iris-picker").show()}),Q(".yp-gradient-pointer-area,.yp-gradient-bar").on("contextmenu",function(e){if(0==Q(e.target).hasClass("yp-gradient-pointer")&&0==Q(e.target).hasClass("yp-gradient-pointer-color"))return!1}),Q(document).on("click",".view-rule-value",function(){var e=Q(this),t=e.next(".value-input");e.hide(),t.val(e.text()),t.css("display","inline").focus(),t[0].setSelectionRange(0,t.val().length),e.parent().find(".rule-end").css("margin-left","-12px"),e.next(".value-input").autoGrowInput(),e.parents(".css-rule-view").hasClass("view-rule-disabled")&&(t.addClass("rule-was-disable"),e.parents(".css-rule-view").removeClass("view-rule-disabled"))}),Q(document).on("change",".css-rule-label input",function(){var e=Q(this).parents(".css-rule-view"),t=e.find(".value-input");if(0==Q(this).is(":checked"))e.addClass("view-rule-disabled"),t.val("disable");else{var a=t.prev(".view-rule-value").text();t.val(a)}t.trigger("blur"),1==Q(this).is(":checked")&&e.removeClass("view-rule-disabled")}),Q(document).on("click",".manage-this-type",function(){var e=Q(this).parent().attr("data-value");return St(),Q("#visual-rule-filter").val(e+".css").trigger("keyup"),"block"==Q("#customizing-type-list").css("display")&&(Q("#customizing-type-list").toggle(),Q("#customizing-mode,#customizing-type-list").removeClass("active"),Q(".starter-notice").removeClass("padded-starter-notice")),!1}),Q(document).on("click",".reset-this-type",function(){var t=Q(this).parent().attr("data-value");return g({title:J.reset_type_msg.replace("{$1}",t),confirmButtonText:J.reset_btn,showCancelButton:!0,animation:!1,confirmButtonColor:"#DD6B55",customClass:"editor-style editor-style-reset",html:!0},function(e){if(0==e)return!1;re.hasClass("yp-need-to-process")&&Ka(),U("",t),"block"==Q("#customizing-type-list").css("display")&&(Q("#customizing-mode,#customizing-type-list").removeClass("active"),Q("#customizing-type-list").toggle(),Q(".starter-notice").removeClass("padded-starter-notice")),Ja()}),!1}),Q(document).on("click",".css-selector-open .selector-view span",function(){var e=Q(this).parents(".selector-group").attr("data-view-selector"),t=!1;pe()&&e==da()&&(t=!0);var a=Wa(e,!0,!0,!0,!0);t||0==ua(a,!0,!1,!1)||(F(e=(e=e.replace(/\.(yp_onscreen|yp_focus|yp_hover|yp_click)/g,"")).replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)(.*?)$/g,function(e,t,a,i){var n=e.match(/\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g)[0].replace(/(body)?\.yp-selector-/g,""),s=e.replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"");return" "!=s[0]&&(s="body"+s),s=s.trim().replace(/\{/g,":"+n)}),null,window.selectedByView=!0),window.selectedByView=!1,Q(".selector-group").removeClass("active"),Q(this).parents(".selector-group").addClass("active"),oe.extra.find(".yp-element-viewer").remove()),be(null,!0)}),Q(document).on("click",".selector-heading span",function(){var e=Q(this).parents(".selector-group").attr("data-view-selector"),t=!1;pe()&&e==da()&&(t=!0);var a=Wa(e,!0,!0,!0,!0);t||0==ua(a,!0,!1,!1)||(F(e=(e=e.replace(/\.(yp_onscreen|yp_focus|yp_hover|yp_click)/g,"")).replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)(.*?)$/g,function(e,t,a,i){var n=e.match(/\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g)[0].replace(/(body)?\.yp-selector-/g,""),s=e.replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"");return" "!=s[0]&&(s="body"+s),s=s.trim().replace(/\{/g,":"+n)}),null,window.selectedByView=!0),window.selectedByView=!1,Q(".selector-group").removeClass("active"),Q(this).parents(".selector-group").addClass("active"),oe.extra.find(".yp-element-viewer").remove()),be(null,!0)}),Q(document).on("mouseover",".selector-heading span",function(){var a=Q(this);window.focusDelay=setTimeout(function(){var e=a.parents(".selector-group").attr("data-view-selector");if("*"==(e=Wa(e,!0,!0,!0,!0)).trim())return!1;var t=ua(e,!0,!1,!1);if(0==t)return!1;st(t)},200)}),Q(document).on("click",".yp-anim-el-column > i",function(){var e=Q(this).attr("data-title"),t=!1;pe()&&e==da()&&(t=!0);var a=Wa(e,!0,!0,!0,!0);t||0==ua(a,!0,!1,!1)||(F(e=(e=e.replace(/\.(yp_onscreen|yp_focus|yp_hover|yp_click)/g,"")).replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)(.*?)$/g,function(e,t,a,i){var n=e.match(/\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g)[0].replace(/(body)?\.yp-selector-/g,""),s=e.replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"");return" "!=s[0]&&(s="body"+s),s=s.trim().replace(/\{/g,":"+n)}),null,window.selectedByView=!0),window.selectedByView=!1,Q(".selector-group").removeClass("active"),Q(this).parents(".selector-group").addClass("active"),oe.extra.find(".yp-element-viewer").remove()),be(null,!0)}),Q(document).on("mouseover",".yp-anim-el-column > i",function(){var a=Q(this);window.focusDelay=setTimeout(function(){var e=a.attr("data-title");if("*"==(e=Wa(e,!0,!0,!0,!0)).trim())return!1;var t=ua(e,!0,!1,!1);if(0==t)return!1;st(t)},200)}),Q(document).on("mouseleave mouseout",".selector-heading span, .css-selector-open .selector-view span,.yp-anim-el-column > i",function(){clearTimeout(window.focusDelay),oe.extra.find(".yp-element-viewer").remove()}),Q(document).on("mouseover",".css-selector-open .selector-view span",function(){var a=Q(this);window.focusDelay=setTimeout(function(){var e=a.parents(".selector-group").attr("data-view-selector");if("*"==(e=Wa(e,!0,!0,!0,!0)).trim())return!1;var t=ua(e,!0,!1,!1);if(0==t)return!1;st(t)},200)}),Q(document).on("click",".source-view",function(){var e=Q(this).text().replace(/.css/g,"");window.disable_auto_insert=!0,0==re.hasClass("yp-css-editor-active")&&Q(".css-editor-btn").trigger("click"),window.sourceViewClick=!0,Q("#customizing-type-list li[data-value='"+e+"']").trigger("click");var t=Ct(!(window.sourceViewClick=!1),null,!0);window.disable_auto_insert=!1;var a=Q(this).parents(".selector-group"),i=a.attr("data-view-selector")+"{",n=a.attr("data-view-size");"desktop"!=n&&(i="\t"+a.attr("data-view-selector")+"{");var s=t.split(i)[0].split(/\r\n|\r|\n/).length;setTimeout(function(){l.focus(),l.scrollToLine(s,!0,!1),"desktop"!=n?l.gotoLine(s,1,!0):l.gotoLine(s,0,!0)},4)}),Q(document).on("blur",".css-rule-view .value-input",function(e){var t=Q(this),a=t.parents(".css-rule-view"),i=t.parents(".selector-group"),n=t.val(),s=t.prev();t.hide(),t.removeClass("rule-was-disable"),s.parent().find(".rule-end").removeAttr("style"),0==(n=n.replace(/\;$/i,"")).length&&(n="disable"),"disable"==n&&0==a.hasClass("view-rule-disabled")&&(1==t.parents(".selector-group").find(".css-rule-view").length?(t.parents(".selector-group").css("background-color","#A43A3A"),t.parents(".selector-group").delay(100).slideUp(300),setTimeout(function(){t.parents(".selector-group").remove()},420)):(t.parents(".css-rule-view").css("background-color","#A43A3A").delay(80).slideUp(200),setTimeout(function(){t.parents(".css-rule-view").remove()},300)));var r=i.attr("data-view-selector"),o=i.attr("data-view-size"),l=i.attr("data-view-type"),p=a.attr("data-view-rule"),d=n.trim();if(0==n.length)return s.show(),!0;if(n==s.text()&&0==a.hasClass("view-rule-disabled"))return s.show(),!0;0==a.hasClass("view-rule-disabled")?s.text(n).show():s.show(),e.originalEvent&&a.find(".css-rule-label input").prop("checked",!0),At(),U(G(ee(l,!1),"[selector="+$a(r)+"][rule="+p+"][msize="+o+"]"),l),U(G(ee(l,!1),"[selector="+$a(r)+"][rule="+ae(p)+"][msize="+o+"]"),l),window.editedByReview=!0;var c,u,m,g,h=null;0<(c=i.find(".css-rule-view:not(.view-rule-disabled)").not(a).first()).length&&(u=c.attr("data-view-rule"),h=X(ee(l,!1),"[selector="+$a(r)+"][rule="+u+"][msize="+o+"]"),(m=c.prevAll(".css-rule-view:not(.view-rule-disabled)").length)<=(g=a.prevAll(".css-rule-view:not(.view-rule-disabled)").length)&&(h+=g-m)),at(r,p,d,"",o,l,h),Ja(),window.editedByReview=!1}),Q(document).on("keyup",".css-rule-view .value-input",function(e){var t=e.keyCode||e.which,a=Q(this),i=a.parents(".css-rule-view"),n=a.parents(".selector-group"),s=a.val(),r=a.prev(),o=i.attr("data-view-rule");if(At(),13==t)return i.find(".css-rule-label input").prop("checked",!0),a.trigger("blur"),!1;if(27==t)return a.val(r.text()),a.hasClass("rule-was-disable")&&(i.addClass("view-rule-disabled"),a.removeClass("rule-was-disable")),a.trigger("blur"),!1;var l,p,d,c,u,m,g=n.attr("data-view-selector"),h=n.attr("data-view-size"),f=s.replace(/\;$/i,"").trim();if(0==s.length)return!0;l=g,p=o,d=f,u=Pe(c=h),m=We(c),d=d.replace(/\s+\![a-zA-Z]{0,9}(\s+)?$/g,""),-1!=window.webkitArray.indexOf(p)?ne.append("<style class='yp-fastest-live-css'>"+u+l+"{"+p+":unset !important;"+p+":"+d+" !important;-webkit-"+p+":"+d+" !important;}"+m+"</style>"):"justify-content"==p?ne.append("<style class='yp-fastest-live-css'>"+u+l+"{"+p+":unset !important;"+p+":"+d+" !important;-webkit-box-pack:"+d+" !important;}"+m+"</style>"):"align-items"==p?ne.append("<style class='yp-fastest-live-css'>"+u+l+"{"+p+":unset !important;"+p+":"+d+" !important;-webkit-box-align:"+d+" !important;}"+m+"</style>"):"flex-grow"==p?ne.append("<style class='yp-fastest-live-css'>"+u+l+"{"+p+":unset !important;"+p+":"+d+" !important;-webkit-box-flex:"+d+" !important;}"+m+"</style>"):ne.append("<style class='yp-fastest-live-css'>"+u+l+"{"+p+":unset !important;"+p+":"+d+" !important;}"+m+"</style>")}),Q("#visual-css-content").scroll(function(){0<Q(this).scrollTop()?Q("#visual-css-view").addClass("view-scrolled"):Q("#visual-css-view").removeClass("view-scrolled")});var Tt="";function Zt(){if(Q(".view-children-group").removeClass("view-children-group"),"single.css"!=Q("#visual-rule-filter").val()&&"template.css"!=Q("#visual-rule-filter").val()&&"global.css"!=Q("#visual-rule-filter").val()){var a=[];Q(".selector-group.selector-group-visible").each(function(){var e=Q(this),t=e.attr("data-view-selector");if(-1!=a.indexOf(t))return!0;a.push(t),Q(".selector-group.selector-group-visible[data-view-selector='"+t+"']").not(this).each(function(){e.after(Q(this).addClass("view-children-group"))})})}Q(".selector-group").removeClass("first-child last-child"),Q(".selector-group:visible").first().addClass("first-child"),Q(".selector-group:visible").last().addClass("last-child")}function St(){It(),Q("#visual-css-content").scrollTop(0),re.addClass("visual-css-view-active yp-clean-look-manual"),Q(".selector-group").removeClass("first-child last-child"),Q(".selector-group:visible").first().addClass("first-child"),Q(".selector-group:visible").last().addClass("last-child"),pe()&&Ot(!0),re.hasClass("yp-fixed-right-panel")&&288==d("visualManagerWidth")&&(Q("#visual-manager-personalized-view").remove(),re.append("<style id='visual-manager-personalized-view'>#visual-css-view{width:"+parseInt(Q(".yp-select-bar").width())+"px !important;}</style>")),B(),Be()}function Ft(){if(!re.hasClass("visual-css-view-active"))return!1;Q("#visual-rule-filter").val(""),re.removeClass("visual-css-view-active yp-clean-look-manual"),B(),Be(),Ze()}function It(){for(var n,s,r,o,l,p,d,e,c,u,t,a,m,g,h,f,v,y,w,b,x,_=["global","template","single"],k='<p class="view-information" style="display:none;"></p><div id="view-no-item" style="display:none;"><span></span><p></p></div>',C=0;C<_.length;C++)if(!((r=ee(_[C],!1)).length<=1)&&0!=(t=te(r,"[style]")).length){a=["desktop"];for(var i=0;i<t.length;i++)e=/\[msize\=(.*?)\]/g.exec(t[i])[1],-1===Q.inArray(e,a)&&"desktop"!=e&&a.push(e);var z=null;pe()&&(z=da()),Q.each(a,function(e,t){"tablet"==t&&(t="(min-width: 768px) and (max-width: 991px)"),"mobile"==t&&(t="(max-width:767px)"),x="",-1!=t.indexOf("and")&&(x=" disabled-media-line"),m=t.replace(/desktop/i,J.all_devices),g=_[C],b=ya(t),w=fe(b)?-1==(b=b.toString()).indexOf(",")?b.replace(/([^\d+])(\d+)/g,"$2$1").replace(/\</g," and below").replace(/\>/g," and above").replace(/\.\d+/g,"").replace(/(\d+)(\s|$)/g,"$1px$2")+" screen sizes":"screen sizes "+b.replace(/\</g,"smaller than ").replace(/\>/g,"larger than ").replace(/\,/g," and ").replace(/\.\d+/g,"").replace(/(\d+)(\s|$)/g,"$1px$2"):"Unknown Media Query",c=[],u=te(r,"[msize="+t+"]");for(var a=0;a<u.length;a++)if(l=Pt(u[a]),u[a]=u[a].replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)(.*?){/g,function(e,t,a,i){var n=e.match(/\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g)[0].replace(/(body)?\.yp-selector-/g,""),s=e.replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"");return" "!=s[0]&&(s="body"+s),s=s.trim().replace(/\{/g,":"+n)+"{"}),n=Pt(u[a]),-1==c.indexOf(n)&&null!=n&&0!=n&&""!=n){c.push(n),y="",z==n&&(y=" active-view-group"),s=Wa(l,!0,!0,!0,!0),p=Xa(n,!0),0==ua(s,!(d=""),!1,!1)&&(d=" unavailable-view-group"),k+="<div class='selector-group selector-group-visible"+y+d+"' data-view-selector='"+l+"' data-clean-selector='"+s+"' data-view-size='"+t+"' data-view-type='"+_[C]+"'>",k+="<div class='selector-heading'><span></span><input type='text' value='"+p+"' class='selector-comment-input' maxlength='70' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' /></div>",k+="<div class='view-before-selector'><div class='view-media-line"+x+"' title='"+w+"'>"+m+"</div><span class='source-view'>"+g+".css</span><div class='yp-clear'></div></div>",k+="<div class='css-selector-open'><span class='selector-view'><span>"+n+"</span><i>{</i></span></div>",k+="<div class='css-rule-group'>",o=te(r,"[selector="+$a(l)+"][msize="+t+"]");for(var i=0;i<o.length;i++)null!=(h=/^(.*?):(.*?)$/i.exec(Lt(o[i])))&&-1==(f=h[1]).indexOf("-webkit-")&&(v=h[2],k+='<div class="css-rule-view" data-view-rule="'+f+'"><label class="css-rule-label"><input type="checkbox" checked="checked"><span class="rule-checkbox"></span><span class="view-rule">'+f+':</span></label><span class="view-rule-value">'+v+'</span><input class="value-input" type="text" /><span class="rule-end">;</span></div>');k+="</div>",k+="<div class='css-selector-close'>}</div>",k+="</div>"}})}if(Q("#visual-css-content").html(k),0==Q(".selector-group").length&&""==Q("#visual-rule-filter").val())return Q("#view-no-item p").text(J.manager_msg15),Q("#view-no-item").show(),!1;Zt(),setTimeout(function(){A.update()},2),Q("#visual-css-view").attr("data-current-type",ue()),Q(".view-media-line").tooltip("destroy"),Q(".selector-group:not([data-view-size='desktop']) .view-media-line").tooltip({animation:!1,template:'<div class="tooltip small-tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',container:"#visual-css-content",delay:{show:50,hide:0}})}function Et(e){var t=Ct(!1,e,!1);if(""==(t=ma(t,!1)))return!1;if(t.split("{").length!=t.split("}").length)return!1;t=t.replace(/@media(.*?){(.*?)}}/g,"$2}");var a={};return a.selectors=t.replace(/\{(.*?)\}/g,"|BREAK|").split("|BREAK|"),a.rules=t.match(/\{(.*?)\}/g),a}function Dt(e,t){if(!pe())return!1;var a=Et(t).selectors;if(0!=a&&null!=a&&0<a.length){var i,n=ee(t,!1);a=a.filter(Boolean);for(var s=0;s<a.length;s++)if(0!=ua(i=Wa(a[s],!0,!0,!0,!0),!0,!1,!1)){if(!0===e){if(0==ie.find(i).parents(".yp-selected").length)continue}else if(0==ie.find(i).hasClass("yp-selected"))continue;n=G(n,"[selector="+$a(Ge(a[s]))+"]")}U(n,t),Ja(),Ze()}}function Mt(e){var t,a=0;if(-1==(e=(e=e.toString()).replace(/ms/g,"")).indexOf(","))return-1!=e.indexOf(".")?(t=parseFloat(e).toString().split(".")[1].length,e=e.replace(".","").toString(),2==t?e=e.replace(/s/g,"0"):1==t&&(e=e.replace(/s/g,"00"))):e=e.replace(/s/g,"000"),e;for(var i=e.split(","),n=0;n<i.length;n++){var s=i[n];-1!=s.indexOf(".")?(t=parseFloat(s).toString().split(".")[1].length,s=s.replace(".","").toString(),2==t?s=s.replace(/s/g,"0"):1==t&&(s=s.replace(/s/g,"00"))):s=s.replace(/s/g,"000"),a=parseFloat(a)+parseFloat(s)}return a}function $t(n,s,e){null==n&&(n=da()),n=Wa(n,!0,!0,!0);var t="";re.hasAttr("data-yp-selector")&&(t=re.attr("data-yp-selector"),n+=t),n=Ge(n),"perspective"==s&&0<le().parent().length&&(n=fa(le().parent(),"defaultNoCache"));var a,i,r=e[1],o=e[2],l=e[3],p=s,d=Wt(s)[1];if(s=Wt(s)[0],ce()){var c=Q(".scene-active").attr("data-scene"),u=ie.find("#yp-anim-scenes #"+c+' style[data-rule="'+s+'"]');return 0<u.length&&(a=Bt(u.html())),r?0==u.length?(Q("#"+p+"-group").removeClass("reset-enable"),!1):null!=d&&"box-shadow"!=s&&(a=a.replace(/(scale\(1\)|rotate\(0deg\)|rotatex\(0deg\)|rotatey\(0deg\)|rotatez\(0deg\)|translatex\(0px\)|translatey\(0px\)|skewx\(0deg\)|skewy\(0deg\)|blur\(0px\)|brightness\(1\)|contrast\(1\)|grayscale\(0\)|hue-rotate\(0deg\)|saturate\(1\)|sepia\(0\))/gi,""),0==new RegExp(d+"\\(","gi").test(a))?(Q("#"+p+"-group").removeClass("reset-enable"),!1):0==Rt(s,d,n+"{"+s+":"+a+"}",r)||(Q("#"+p+"-group").removeClass("reset-enable"),!1):!!a&&(i=jQuery.Deferred(),0==o?i.resolve(a):i.resolve("all"),i.promise())}var m,g,h,f,v,y,w,b,x,_,k=new RegExp("({|s+|;)"+s+"(s+)?:"),C=[],z=[];if(0<ie.find("#yp-live-css-data").length)h=ma(g=ie.find("#yp-live-css-data").html(),!1),g=ma(g,!0),f=g.split("}"),m="all",Q.each(f,function(e,t){if(t+="}",0==k.test(t))return!0;var a=t.match(/\{(.*?)\}$/m)[0].toString().replace(/(^\{|\}$)/g,"").trim();return x=Ra(a.split(";")),Q.each(x,function(e,t){if(""==t)return!0;t.split(":")[0].toString().trim()==s&&(w=t.replace(/^(.*?):(.*?)$/g,"$2").trim())}),0==ua(v=Pt(t),!0,!1,!1)||(1==l&&0==et(n,v)||(0==(y=ie.find(v)).hasClass("yp-selected")&&"perspective"!=s||("perspective"==s&&0==y.is(le().parent())||(1==Q("body").hasAttr("data-yp-selector")&&-1==v.indexOf(".yp-selector-")||(null!=d&&"box-shadow"!=s&&0==new RegExp(d+"\\(","gi").test(w)||(0!=Rt(s,d,v+"{"+s+":"+w+"}",r)||(C.push(m),void z.push(v+"{"+s+":"+w+"}"))))))))}),null!=(b=h.match(/@media(.*?){(.*?)}}/g))&&Q.each(b,function(e,t){if(m=Q.trim(t.match(/@media(.*?){/g).toString().replace(/(\{|@media(\s+)?)/g,"")),!I.matchMedia(m).matches)return!0;if("all"==Q(".property-size-tabs-visible .property-size.active").attr("data-property-size"))return!0;if(1==re.hasClass("property-query-active")&&0<Q(".property-size-tabs-visible .property-size.active").length&&de()){if("all"!=Q(".property-size-tabs-visible .property-size.active").attr("data-property-size")&&fe(a=ya(m))&&a.toString()!=Q(".property-size-tabs-visible .property-size.active").attr("data-property-size"))return!0}else if(0<Q(".breakpoint-bar .active").length&&de()){var a=ya(m),i=ya(Q(".breakpoint-bar .active").attr("data-media-content"));if(fe(a)&&fe(i)&&a.toString()!=i.toString())return!0}else if(de()&&0==Q(".breakpoint-bar .active").length)return!0;t=t.match(/\{(.*?)\}$/g)[0].toString().replace(/(^\{|\}\}$)/g,"").trim()+"}",f=t.split("}"),Q.each(f,function(e,t){if(t+="}",0==k.test(t))return!0;var a=t.match(/\{(.*?)\}$/m)[0].toString().replace(/(^\{|\}$)/g,"").trim();return x=Ra(a.split(";")),Q.each(x,function(e,t){if(""==t)return!0;t.split(":")[0].toString().trim()==s&&(w=t.replace(/^(.*?):(.*?)$/g,"$2").trim())}),0==ua(v=Pt(t),!0,!1,!1)||(1==l&&0==et(n,v)||(0==(y=ie.find(v)).hasClass("yp-selected")&&"perspective"!=s||("perspective"==s&&0==y.is(le().parent())||(1==Q("body").hasAttr("data-yp-selector")&&-1==v.indexOf(".yp-selector-")||(null!=d&&"box-shadow"!=s&&0==new RegExp(d+"\\(","gi").test(w)||(0!=Rt(s,d,v+"{"+s+":"+w+"}",r)||(C.push(m),void z.push(v+"{"+s+":"+w+"}"))))))))})});else{var A=te(ee(null,!1),"[rule="+s+"]");if(0<A.length)for(var O=0;O<A.length;O++)if(g=A[O],"desktop"==(m=/\[msize\=(.*?)\]/g.exec(g)[1])&&(m="all"),I.matchMedia(m).matches&&"all"!=Q(".property-size-tabs-visible .property-size.active").attr("data-property-size")){if(1==re.hasClass("property-query-active")&&0<Q(".property-size-tabs-visible .property-size.active").length&&de()){if("all"!=Q(".property-size-tabs-visible .property-size.active").attr("data-property-size"))if(fe(T=ya(m))&&T.toString()!=Q(".property-size-tabs-visible .property-size.active").attr("data-property-size"))continue}else if(0<Q(".breakpoint-bar .active").length&&de()){var T=ya(m),Z=ya(Q(".breakpoint-bar .active").attr("data-media-content"));if(fe(T)&&fe(Z)&&T.toString()!=Z.toString())continue}else if(de()&&0==Q(".breakpoint-bar .active").length)continue;g=Nt(g),0!=ua(v=Pt(g),!0,!1,!1)&&(1==l&&0==et(n,v)||0==(y=ie.find(v)).hasClass("yp-selected")&&"perspective"!=s||"perspective"==s&&0==y.is(le().parent())||1==Q("body").hasAttr("data-yp-selector")&&-1==v.indexOf(".yp-selector-")||(v==Pt(z[O])&&z.pop(),null!=d&&"box-shadow"!=s&&0==new RegExp(d+"\\(","gi").test(Bt(g,!1))||0==Rt(s,d,g,r)&&(C.push(m),z.push(g))))}}if(0==z.length)return!1;if(1==r)return 0<z.length;if(i=jQuery.Deferred(),0<z.length){var S,F='<style id="yp-calcature-style">'+da()+"{outline:unset;}";Q.each(z,function(e,t){"all"!=C[e]&&(F+="@media "+C[e]+"{"),S=/\!important/g.test(t)?" !important":"",/\:(.*?);/g.test(t)?F+=t.replace(/\:(.*?);/g,":"+(e+1)+"px solid transparent"+S+";"):/\:(.*?)}/g.test(t)&&(F+=t.replace(/\:(.*?)}/g,":"+(e+1)+"px solid transparent"+S+";}").replace("}}","}")),F=F.replace("{"+s+":","{outline:"),"all"!=C[e]&&(F+="}")}),F+="</style>",ne.append(F)}return setTimeout(function(){if(_=0<z.length?parseInt(le().css("outline-width"))-1:-1,0==o)if(_<0)i.resolve(le().css(s));else{var e=Bt(z[_]);null==e||null==e||0==e?i.resolve(le().css(s)):-1!=e.indexOf("var(--")?i.resolve(le().css(s)):i.resolve(e)}else _<0||0==_?i.resolve(!1):i.resolve(C[_]);0<z.length&&ne.find("#yp-calcature-style").remove()},window.YellowDelay),i.promise()}function Rt(e,t,a,i){if(null!=t&&"box-shadow"==e&&1==i){var n=Bt(a);if("none"==n)return!0;if("color"==t){var s=n;if(-1!=s.indexOf("#")?s=-1==s.split("#")[1].indexOf("inset")?Q.trim(s.split("#")[1]):Q.trim(s.split("#")[1].split(" ")[0]):-1!=s.indexOf("rgb")&&(s=s.match(/rgb(.*?)\((.*?)\)/g).toString()),"#"+s.trim()==Qa(le().css("color")).trim())return!0}var r=n.replace(/rgb(.*?)\((.*?)\) /g,"").replace(/ rgb(.*?)\((.*?)\)/g,"").replace(/inset /g,"").replace(/ inset/g,"");if("horizontal"==t&&0==Ea(r.split(" ")[0]))return!0;if("vertical"==t&&0==Ea(r.split(" ")[1]))return!0;if("blur-radius"==t&&0==Ea(r.split(" ")[2]))return!0;if("spread"==t&&0==Ea(r.split(" ")[3]))return!0;if("inset"==t&&-1==n.indexOf("inset"))return!0}return!1}function Nt(e){if(null==e||""===e)return!1;var t=e.replace(/(\/\*|^)(.*?)\*\//g,"");return-1!=t.indexOf("@media")&&(t=t.trim().match(/\{(.*?)\}$/g).toString().replace(/(^\{|\}$)/g,"")),t.trim()}function Lt(e){if(null==e||""===e)return!1;var t;if(-1!=(e=e.replace(/(\/\*|^)(.*?)\*\//g,"")).indexOf("@media")){if(null==e.split("{")[2])return"";t=e.split("{")[2].split("}")[0]}else{if(null==e.split("{")[1])return"";t=e.split("{")[1].split("}")[0]}return(t=t.trim().replace(/(\s+)?\;$/g,"")).trim()}function Bt(e,t){return ve(t)&&(t=!0),null!=e&&""!==e&&(a=-1!=(e=e.replace(/(\/\*|^)(.*?)\*\//g,"")).indexOf("@media")?e.split("{")[2].split("}")[0].replace(/^(.*?):(.*?)$/g,"$2"):e.split("{")[1].split("}")[0].replace(/^(.*?):(.*?)$/g,"$2"),!1!==t&&(a=a.trim().replace(/((\s+)?\;$|(\s+)?\!important)/g,"")),a.trim());var a}function Pt(e){if(null==e||""===e)return!1;var t=(e=e.replace(/(\/\*|^)(.*?)\*\//g,"")).split("{")[0];return null==t||0==t?"":(-1!=t.indexOf("@media")&&(t=e.split("{")[1].split("{")[0]),t.trim())}function Wt(e){var t=null;return-1!=(e=e.replace(/\-webkit\-/g,"")).indexOf("-transform")&&"text-transform"!=e&&(t=e.replace(/-transform/g,""),e="transform",t=t.replace(/\-/g,"")),-1!=e.indexOf("-filter")&&(t=e.replace(/-filter/g,""),e="filter"),-1!=e.indexOf("box-shadow-")&&(t=e.replace(/box-shadow-/g,""),e="box-shadow"),[e,t]}function jt(){if(pe())if(Q(".yp-group-edited").removeClass("yp-group-edited"),0==ce()){var e,t,a;t=Ge(t=da(!0)),a=ue();for(var i,n,s,r,o,l=re.hasClass("yp-need-to-process"),p=0;p<Z.styleSheets.length;p++){var d=Q(Z.styleSheets[p].ownerNode);0==l?d.hasClass("yp-inline-data")&&d.attr("data-source-mode")==a&&(e=Z.styleSheets[p]):d.hasAttr("id")&&"yp-live-css-data"==d.attr("id")&&(e=Z.styleSheets[p])}for(p=0;p<e.cssRules.length;p++){var c,u;if(ve(r=(n=e.cssRules[p]).selectorText)||(r=r.replace(/\.(yp_onscreen|yp_hover|yp_click|yp_focus)/g,""))==t)if(ve(i=n.conditionText)){if(0==de())for(c=Q.map(n.style,function(e,t){return[e]}),u=0;u<c.length;u++)"perspective"!=c[u]&&("box-shadow"==Wt(c[u])[0]&&"none"==le().css("box-shadow")||Q(".yp-option-group[data-css-id='"+Wt(c[u])[0]+"']").parents("li").find("h3").addClass("yp-group-edited"))}else{if(!I.matchMedia(i).matches)continue;for(var m=0;m<n.cssRules.length;m++)if(!ve(o=(s=n.cssRules[m]).selectorText)&&(o=o.replace(/\.(yp_onscreen|yp_hover|yp_click|yp_focus)/g,""))==t)for(c=Q.map(s.style,function(e,t){return[e]}),u=0;u<c.length;u++)"perspective"!=c[u]&&("box-shadow"==Wt(c[u])[0]&&"none"==le().css("box-shadow")||Q(".yp-option-group[data-css-id='"+Wt(c[u])[0]+"']").parents("li").find("h3").addClass("yp-group-edited"))}}}else{var g,h;h=Q(".scene-active").attr("data-scene"),ie.find("#yp-anim-scenes #"+h+" style").each(function(){g=Q(this),Q(".yp-option-group").each(function(){if(Q(this).attr("data-css-id")==Wt(g.attr("data-rule"))[0]){if("perspective"==Wt(g.attr("data-rule"))[0])return!0;if("box-shadow"==Wt(g.attr("data-rule"))[0]&&"none"==le().css("box-shadow"))return!0;Q(this).parents("li").find("h3").addClass("yp-group-edited")}})})}}function qt(e){var t,a,i=[];e.find(".this-grid-input").each(function(){t=Q(this).val().trim(),"auto"==(a=Q(this).next().find(".grid-format").val().trim())||""==t?i.push("auto"):i.push(t+a)}),i=i.join(" "),e.parent().find(".grid-builder-input").val(i).trigger("keyup")}function Yt(H){var U=da();"perspective"==H&&(U=Q.trim(fa(le().parent(),"defaultNoCache")));var X=le();"animation-name"!=H&&"animation-duration"!=H&&"animation-delay"!=H||X.addClass("yp_onscreen yp_hover yp_click yp_focus");var e=Wt(H),G=e[0],V=e[1],t=Ue(),J="",a=ee(null,!0);0<te(a,"[selector="+$a(U+".yp_onscreen")+"][msize="+t+"]").length&&(J="yp_onscreen"),0<te(a,"[selector="+$a(U+".yp_click")+"][msize="+t+"]").length&&(J="yp_click"),0<te(a,"[selector="+$a(U+".yp_hover")+"][msize="+t+"]").length&&(J="yp_hover"),0<te(a,"[selector="+$a(U+".yp_focus")+"][msize="+t+"]").length&&(J="yp_focus"),re.hasClass("yp-selector-hover")&&""==J&&(J="yp_hover"),re.hasClass("yp-selector-focus")&&""==J&&(J="yp_focus"),(ve(J)||""==J)&&(J="yp_onscreen");var K="",i=$t(U,H,[!0,!1,!1,!1]);"object"==typeof i&&i.always(function(e){K=e}),"color"!=H&&"background-color"!=H&&"background-image"!=H&&"box-shadow"!=Wt(H)[0]&&"border-color"!=H&&"text-shadow"!=H&&-1==Wt(H)[0].indexOf("-radius")&&"filter"!=Wt(H)[0]||X.addClass("yp-no-wireframe"),setTimeout(function(){var e,t;null==Wt(H)[1]&&Q("#"+H+"-group").removeClass("reset-enable"),"animation-name"==H||"animation-duration"==H||"animation-delay"==H?$t(U+"."+J,H,[!1,!0,!1,!0])?Q("#"+H+"-group").addClass("reset-enable"):Q("#"+H+"-group").removeClass("reset-enable"):$t(U,H,[!1,!0,!1,!0])?Q("#"+H+"-group").addClass("reset-enable"):Q("#"+H+"-group").removeClass("reset-enable"),"animation-play"!=H&&"border-width"!=H&&"border-color"!=H&&"border-style"!=H&&(t=Ea(e=X.css(G))),$t(U,H,[!0,!0,!1,!1])&&(t=Ea(e="inherit"==K||"auto"==K||"unset"==K||"auto"==K||"initial"==K?X.css(G):K)),"top"!=H&&"left"!=H||"auto"==e&&(e="0px",t=0),"border-type"==H&&0==Q("#border-type-group").find(".yp-radio.active").length&&(e="all");var a,i,n,s=(a=e,void 0!==a&&""!=a?a.replace(/\d/g,"").replace(".px","px"):"").replace(/(\.|\,)/g,"");if("background-color"==H&&"rgba(0, 0, 0, 0)"==e&&(e="transparent"),"border-style"==H&&(e="solid",(i=X.css("borderTopStyle"))==X.css("borderLeftStyle")&&i==X.css("borderRightStyle")&&i==X.css("borderBottomStyle")&&(e=i)),"border-width"==H&&(e="0px",t=0,(i=X.css("borderTopWidth"))==X.css("borderLeftWidth")&&i==X.css("borderRightWidth")&&i==X.css("borderBottomWidth")&&(t=Ea(e=i))),"border-color"==H&&(e=X.css("color"),(i=X.css("borderTopColor"))==X.css("borderLeftColor")&&i==X.css("borderRightColor")&&i==X.css("borderBottomColor")&&(e=i)),"margin-left"==H||"margin-right"==H){var r=ie.width(),o=parseFloat(X.css("marginLeft")),l=parseFloat(X.css("width"));r==2*o+l&&0<o?(e="auto",t=0):0<X.parent().length&&parseFloat(X.parent().width())==2*o+l&&0<o&&(e="auto",t=0)}if("text-align"==H&&"start"==e&&(e="left"),"animation-play"==H&&(e=J),"animation-name"==H&&"none"!=e&&"animationGeneratorTestAnimate"!=e){se.addClass("yp-hide-borders-now yp-force-hide-select-ui"),Q(".anim-player-icon").removeClass("dashicons-controls-play").addClass("dashicons-controls-pause");var p=X.css("animationDuration"),d=X.css("animationDelay"),c=dt(p,d);d=!1!==c?c:ve(d)?0:Mt(d),p=ve(p)?1e3:Mt(p),0===(p=parseFloat(p)+parseFloat(d))&&(p=1e3),p+=100,ai(),window.animationTimer2=setTimeout(function(){se.removeClass("yp-hide-borders-now yp-force-hide-select-ui"),ii(),Be(),Q(".anim-player-icon").removeClass("dashicons-controls-pause").addClass("dashicons-controls-play"),0==re.hasClass("yp-iframe-mouseleave")&&setTimeout(function(){He(200)},300)},p)}if("text-shadow"==H&&Q("#yp-text-shadow").css(H,e),"filter"==G&&(null!==e&&"none"!=e&&void 0!==e||(e=X.css("-webkit-filter")),t="none"!=e&&null!=e&&fe(e=e.match(new RegExp(V+"\\((.*?)\\)","g")))?e=Ea(e=e.toString().replace("deg","").replace("hue-rotate(","").replace(")","")):(e="disable",0)),"font-weight"==H&&("bolder"==e&&(e="700"),"bold"==e&&(e="600"),"normal"==e&&(e="400"),"lighter"==e&&(e="300")),"transform"==G){e=K;var u=null;if(ce()){for(var m=parseInt(re.attr("data-anim-scene").replace("scene-","")),g=0;g<6;g++){var h=ie.find(".scene-"+(m-g)+" .scenes-transform-style");if(0<h.length){u=h.last().html();break}}null!=u&&(e=Bt(u))}t="none"!=e&&!1!==e&&void 0!==e&&fe(e=e.match(new RegExp(V+"\\((.*?)\\)","gi")))?e=Ea(e=e.toString()):(e="disable",0)}if("animation-duration"==H&&!0===ce()&&("0s"==e||"0ms"==e))return!1;if("min-width"!=H&&"min-height"!=H||0==parseFloat(e)&&(e="auto"),"bottom"==H&&(0!==(n=parseInt(parseFloat(X.css("top"))+parseFloat(X.css("bottom"))))&&n!=parseInt(Q("#iframe").height()-X.height())||(e="auto")),"right"==H&&(0!==(n=parseInt(parseFloat(X.css("left"))+parseFloat(X.css("right"))))&&n!=parseInt(Q("#iframe").width()-X.width())||(e="auto")),"box-shadow"==G&&"none"!=e&&null!=e){"box-shadow-color"==H&&(-1!=e.indexOf("#")?e=-1==e.split("#")[1].indexOf("inset")?Q.trim(e.split("#")[1]):Q.trim(e.split("#")[1].split(" ")[0]):-1!=e.indexOf("rgb")&&(e=e.match(/rgb(.*?)\((.*?)\)/g).toString()),0==/(rgb|\#)/g.test(e)&&(e="#"+e));var f=e.replace(/rgb(.*?)\((.*?)\) /g,"").replace(/ rgb(.*?)\((.*?)\)/g,"").replace(/inset /g,"").replace(/ inset/g,"");"box-shadow-horizontal"==H&&(t=Ea(e=f.split(" ")[0])),"box-shadow-vertical"==H&&(t=Ea(e=f.split(" ")[1])),"box-shadow-blur-radius"==H&&(t=Ea(e=f.split(" ")[2])),"box-shadow-spread"==H&&(t=Ea(e=f.split(" ")[3]))}if("line-height"==H&&"px"==s){var v=parseFloat(X.css("font-size"));e=t/v+"em",t/=v,s="em"}"box-shadow-inset"==H&&(e=ve(e)?"no":-1==e.indexOf("inset")?"no":"inset");var y=Q("#yp-"+H),w=y.parent().parent();if(void 0===X.css(H)&&0<ie.find("."+G+"-"+H+"-style").length&&(t=Ea(e=K)),y.hasClass("grid-builder-input")){y.val(e);for(var b=e.split(" "),x=[],_=0;_<b.length;_++)Math.ceil(10*parseFloat(b[_]))/10==Math.ceil(10*parseFloat(b[0]))/10&&-1!=b[_].indexOf("px")&&-1!=b[0].indexOf("px")&&x.push("1fr");var k=!0;if(x.length==b.length){b=x;var C=le().css("grid-auto-rows"),z=le().css("grid-auto-columns");if("none"!=C&&"auto"!=C&&"grid-template-rows"==H){for(_=0;_<b.length;_++)b[_]=C;k=!1}if("none"!=z&&"auto"!=z&&"grid-template-columns"==H){for(_=0;_<b.length;_++)b[_]=z;k=!1}}else"none"==b[0]&&(b=["auto"]);var A=w.find(".grid-builder-area");A.empty();var O=0;O="grid"!=X.css("display")?parseInt(X.parent().width()):parseInt(X.width());var T="Row";"grid-template-columns"==H&&(T="Column");var Z,S,F=b.length;for(_=0;_<F;_++){Z="",-1!=b[_].indexOf("px")&&"0px"!=b[_]&&"0"!=b[_]?S=1==k?(Z=100/O*parseFloat(b[_]),Z=Math.floor(100*Z)/100,"<option value='fr' selected>fr</option><option value='%'>%</option><option value='px'>px</option><option value='auto'>auto</option>"):(Z=parseFloat(b[_]),"<option value='fr'>fr</option><option value='%'>%</option><option value='px' selected>px</option><option value='auto'>auto</option>"):-1!=b[_].indexOf("auto")||"0px"==b[_]||"0"==b[_]?(Z="",S="<option value='fr'>fr</option><option value='%'>%</option><option value='px'>px</option><option value='auto' selected>auto</option>"):-1!=b[_].indexOf("fr")?(Z=parseFloat(b[_]),S="<option value='fr' selected>fr</option><option value='%'>%</option><option value='px'>px</option><option value='auto'>auto</option>"):-1!=b[_].indexOf("%")&&(Z=parseFloat(b[_]),S="<option value='fr'>fr</option><option value='%' selected>%</option><option value='px'>px</option><option value='auto'>auto</option>");var I="this-grid";F<2&&(I="this-grid last-grid"),A.append("<div class='"+I+"'><p>"+T+" "+(_+1)+"</p><input class='this-grid-input' placeholder='auto' type='number' min='1' value='"+Z+"' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' /><div class='grid-format-div'><select class='grid-format'>"+S+"</select></div><span class='dashicons dashicons-no-alt delete-grid'></span></div>"),"auto"==A.find(".this-grid").last().find(".grid-format").val()&&A.find(".this-grid").last().find(".this-grid-input").prop("disabled",!0)}if(A.append("<span class='grid-builder-add-new dashicons dashicons-plus'></span>"),0<A.find(".this-grid").length&&0<A.find('.grid-format option[value="fr"][selected]').length){var E=null,D=!0;A.find('.grid-format option[value="fr"][selected]').each(function(){var e=Q(this).parents(".this-grid").find(".this-grid-input").val();if(null!=E&&E!=e)return D=!1;E=e}),1==D&&A.find('.grid-format option[value="fr"][selected]').each(function(){Q(this).parents(".this-grid").find(".this-grid-input").val("1")})}}else if(y.hasClass("wqNoUi-target")){if("animation-duration"==H&&-1!=e.indexOf(",")?(e="1s",s="s",t="1",Q("#animation-duration-group").addClass("hidden-option")):"animation-duration"==H&&Q("#animation-duration-group").removeClass("hidden-option"),"animation-delay"==H&&-1!=e.indexOf(",")?(e="0s",s="s",t="0",Q("#animation-delay-group").addClass("hidden-option")):"animation-delay"==H&&Q("#animation-delay-group").removeClass("hidden-option"),("inline"!=X.css("display")||-1!=X.css("display").indexOf("table"))&&"height"==H&&0<X.children().length&&X.children().length<12){var M,$=X.css("height");X.children().each(function(){if(M=Q(this).css("height"),$==M)return!(e="auto")})}""!==(s=Q.trim(s))&&"px .px"!=s&&"px px"!=s||(s="px"),-1!=s.indexOf("px")&&(s="px"),""==t&&"scale-transform"==H&&(t=1),""==t&&"brightness-filter"==H&&(t=1),""==t&&"contrast-filter"==H&&(t=1),""==t&&"saturate-filter"==H&&(t=1),""==t&&"opacity"==H&&(t=1),""==t&&(t=0);var R=w.data("px-range").split(","),N=parseInt(R[0]),L=parseInt(R[1]);if(t<N&&(N=t),L<t&&(L=t),"width"!=H&&"max-width"!=H&&"min-width"!=H&&"height"!=H&&"min-height"!=H&&"max-height"!=H||(L=parseInt(L)+1.5*parseInt(L),N=parseInt(N)+1.5*parseInt(N)),"inline"!=X.css("display")){if("width"==H&&0<X.parent().length&&"px"==s&&"inline"!=X.parent().css("display")&&"inline-flex"!=X.parent().css("display")&&-1==X.parent().css("display").indexOf("table")){var B=X.parent().width();B==parseInt(t)&&(t="100",s="%"),parseInt(B/2)==parseInt(t)&&(t="50",s="%"),parseInt(B/4)==parseInt(t)&&(t="25",s="%"),parseInt(B/5)==parseInt(t)&&(t="20",s="%")}"height"==H&&parseInt(Q(window).height())==parseInt(t)&&"px"==s&&(t="100",s="vh")}"%"==s||"vh"==s||"vw"==s?(N=(R=Q("#"+H+"-group").attr("data-pc-range").split(","))[0],L=R[1]):"em"==s&&(N=(R=Q("#"+H+"-group").attr("data-em-range").split(","))[0],L=R[1]),t=Math.floor(100*t)/100,"px"==(s=s.replace(/\./g,""))&&("width"==H||"animation-iteration-count"==H||"height"==H||"min-width"==H||"min-height"==H||"max-width"==H||"max-height"==H||"font-size"==H||-1!=H.indexOf("margin-")||-1!=H.indexOf("padding-")||/border(.*?)?width/g.test(H)||-1!=H.indexOf("-radius")||-1!=H.indexOf("z-index")||"top"==H||"right"==H||"bottom"==H||"left"==H)&&(t=parseInt(t)),y.wqNoUiSlider({range:{min:parseInt(N),max:parseInt(L)},start:parseFloat(t)},!0),y.val(t),K==w.attr("data-css-default")||e==w.attr("data-css-default")?(y.val(w.attr("data-css-default")),Q("#"+H+"-value").val(w.attr("data-css-default")).attr("data-last-val",t),Q("#"+H+"-after").val("-")):(y.val(t),Q("#"+H+"-value").val(t),Q("#"+H+"-after").val(s)),Q("#"+H+"-after").hasClass("autogrow")?Q("#"+H+"-after").trigger("autogrow"):Q("#"+H+"-after").autoGrowInput({minWidth:15,maxWidth:32}).addClass("autogrow")}else if(y.hasClass("input-autocomplete")){var P,W;"font-family"==H&&void 0!==e&&(P=he(e),W=e,e=Q.trim(e.replace(/"/g,"").replace(/'/g,""))),fe(e)&&(0===Q(".yp-font-test-"+Ma(P)).length&&"font-family"==H&&!1===pt(P)&&se.append("<link rel='stylesheet' class='yp-font-test-"+Ma(P.replace(/ /g,"+"))+"' href='https://fonts.googleapis.com/css?family="+P.replace(/ /g,"+")+":300italic,300,400,400italic,500,500italic,600,600italic,700,700italic' type='text/css' media='all' />"),y.val(e),"font-family"==H&&Q("#yp-font-family,#yp-font-weight").each(function(){Q(this).css("fontFamily",W)})),null===y.val()&&void 0!==e&&y.val(e)}else if(y.hasClass("yp-radio-content"))"background-size"==H&&("auto"!=e&&""!=e&&" "!=e&&"auto auto"!=e||(e="auto auto")),"disable"==e?w.find(".yp-disable-btn").not(".active").trigger("click"):function(e,t,a){if("auto auto"==a&&(a="auto"),""!=a&&void 0!==a){try{Q("input[name="+t+"][value="+lt(a)+"]").length}catch(e){return}a.match(/\bauto\b/g)&&(a="auto"),a.match(/\bnone\b/g)&&(a="none"),0<Q("input[name="+t+"][value="+lt(a)+"]").length?(e.find(".active").removeClass("active"),Q("input[name="+t+"][value="+lt(a)+"]").prop("checked",!0).parent().addClass("active")):(e.find(".active").removeClass("active"),Q("input[name="+t+"]").each(function(){Q(this).prop("checked",!1)}))}}(y,H,e);else if(y.hasClass("wqcolorpicker")){var j;Q(".yp-nice-c.active,.yp-flat-c.active,.yp-meterial-c.active,.yp-theme-c.active").removeClass("active"),"box-shadow-color"==H&&"none"!=K&&(void 0!==e&&!1!==e&&"none"!=e&&""!=e||(e=X.css("color"))),fe(e)&&(-1==e.indexOf("#")&&-1!=e.indexOf("rgb")?j=Qa(e):"transparent"!=e&&"none"!=e&&"inherit"!=e&&(j=e)),y.val(j),y.iris("color",e);var q=100;-1!=e.indexOf("rgba")&&-1!=(q=Q.trim(e.replace(/^.*,(.+)\)/,"$1"))).indexOf(".")&&(1==(q=q.replace("000.","").replace("00.","").replace("0.","").replace(".","")).length&&(q=q.toString()+"0"),q=q.replace(/^0/,"")),w.find(".cs-alpha-slider").slider("value",q),y.parent().find(".wqminicolors-swatch-color").css("backgroundColor",j),"transparent"==e||""==e||"none"==K?(w.find(".yp-disable-btn.active").trigger("click"),w.find(".yp-none-btn:not(.active)").trigger("click"),y.parent().find(".wqminicolors-swatch-color").css("backgroundColor","transparent")):w.find(".yp-none-btn.active").trigger("click"),"box-shadow-color"==H&&Q("#box-shadow-color-group .wqminicolors-swatch-color").css("backgroundColor",e)}else if(y.hasClass("yp-input")||y.hasClass("yp-textarea")){if("disable"!=e&&"background-image"==H&&e!=window.location.href&&-1==e.indexOf("linear-gradient(")&&-1==e.indexOf("yellow_pencil_frame"))if(Q(document).find("#iframe").attr("src")==e.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,"")&&(e=""),1==/url\((\"|\')?(.*?)(\"|\')?\)/i.test(e)&&(e=e.match(/url\((\"|\')?(.*?)(\"|\')?\)/i)[0]),y.val(e.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,"")),Q(".yp_bg_assets").removeClass("active"),-1!=e.indexOf("yellow-pencil"))Q(".yp_bg_assets[data-url='"+e.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,"")+"']").addClass("active"),Q(".yp-background-image-show").remove();else{Q(".yp-background-image-show").remove();var Y=e.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,"");-1==Y.indexOf("//")&&-1==Y.indexOf("data:")||Q("#background-image-group .yp-part").append("<img src='"+Y+"' class='yp-background-image-show' />")}else Q(".yp-background-image-show").remove();"disable"!=e&&"list-style-image"==H&&e!=window.location.href&&(Q(document).find("#iframe").attr("src")==e.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,"")&&(e=""),y.val(e.replace(/"/g,"").replace(/'/g,"").replace(/url\(/g,"").replace(/\)/g,""))),"background-image"==H&&-1!=e.indexOf("linear-gradient(")&&(e=wt(e),y.val(e),Q(".yp-gradient-demo").removeClass("active"),0<Q(".yp-gradient-demo[data-gradient='"+e+"']").length&&Q(".yp-gradient-demo[data-gradient='"+e+"']").addClass("active"),bt(e)),"none"==e?(w.find(".yp-none-btn").not(".active").trigger("click"),y.val("")):w.find(".yp-none-btn.active").trigger("click"),"disable"==e?(w.find(".yp-disable-btn").not(".active").trigger("click"),y.val("")):w.find(".yp-disable-btn.active").trigger("click")}"inherit"!=K&&"auto"!=K&&"unset"!=K&&"auto"!=K&&"initial"!=K||(y.hasClass("wqNoUi-target")&&(Q("#"+H+"-group .yp-none-btn").addClass("active"),w.find(".yp-after").hide()),y.hasClass("input-autocomplete")&&Q("#"+H+"-group .yp-none-btn").addClass("active")),"color"!=H&&"background-color"!=H&&"background-image"!=H&&"box-shadow"!=Wt(H)[0]&&"border-color"!=H&&"text-shadow"!=H&&-1==Wt(H)[0].indexOf("-radius")&&"filter"!=Wt(H)[0]||X.removeClass("yp-no-wireframe")},window.Yellow2Delay)}function Ht(e){var t=[];if(e=(e=(e=(e=Q.trim(e)).replace(/\s\s+/g," ")).replace(/(\s)?(\>|\,|\+|\~)(\s)?/g,"$2")).replace(/\>/g," "),-1!=(e=Q.trim(e)).indexOf(" "))for(var a,i=e.split(" "),n=0;n<i.length;n++)a=Q.trim(i[n]),t.push(a);else t.push(e);var s=[];return Q.each(t,function(e,t){s.push(t.replace(/\~/g," ~ ").replace(/\+/g," + "))}),s}function Ut(e){var t=[];if(-1!=(e=(e=Q.trim(e)).replace(/\s\s+/g," ")).indexOf(" "))for(var a,i=e.split(" "),n=0;n<i.length;n++)a=Q.trim(i[n]),t.push(a);else t.push(e);return t}Q(document).on("keyup keydown","#visual-rule-filter",function(e){var t,a,i,n,s,r,o=null;t=Q(this),a=t.val().toLowerCase().trim(),n=(i=Q("#visual-css-content")).find(".selector-group"),"matched"==a&&Q(".selector-group.active").removeClass("active").removeClass("active-view-group"),0<a.length&&Tt!=a&&i.scrollTop(0),Tt=a,pe()&&(o=da()),n.each(function(){s=Q(this),"single.css"==a||"template.css"==a||"global.css"==a?s.attr("data-view-type").toLowerCase()==a.replace(/\.css/g,"").trim()?s.addClass("selector-group-visible"):s.removeClass("selector-group-visible"):"matched"!=a?-1!=s.text().toLowerCase().indexOf(a.trim())?s.addClass("selector-group-visible"):s.removeClass("selector-group-visible"):"matched"==a&&null!=o?0==(r=ua(s.attr("data-clean-selector"),!0,!1,!1))?s.removeClass("selector-group-visible"):r.hasClass("yp-selected")?s.addClass("selector-group-visible"):s.removeClass("selector-group-visible"):s.removeClass("selector-group-visible")}),0==Q(".selector-group-visible").length?(Q("#view-no-item span").removeClass("view-hand-icon"),"matched"==a?pe()?Q("#view-no-item p").text(J.manager_msg1):(Q("#view-no-item span").addClass("view-hand-icon"),Q("#view-no-item p").text(J.manager_msg2)):"single.css"==a?Q("#view-no-item p").text(J.manager_msg3):"template.css"==a?Q("#view-no-item p").text(J.manager_msg4):"global.css"==a?Q("#view-no-item p").text(J.manager_msg5):-1!=a.indexOf("(max-width:")||-1!=a.indexOf("(max-width:")?Q("#view-no-item p").text(J.manager_msg6):""!=a?Q("#view-no-item p").text(J.manager_msg7):Q("#view-no-item p").text(J.manager_msg8),Q("#view-no-item").show(),Q(".view-information").text("").hide()):(Q("#view-no-item").hide(),""==a?Q(".view-information").text(J.manager_msg9).show():"matched"==a?Q(".view-information").text(J.manager_msg10).show():"single.css"==a?Q(".view-information").text(J.manager_msg11).show():"template.css"==a?Q(".view-information").text(J.manager_msg12).show():"global.css"==a?Q(".view-information").text(J.manager_msg13).show():-1!=a.indexOf("(max-width:")||-1!=a.indexOf("(max-width:")?Q(".view-information").text(J.manager_msg14).show():Q(".view-information").text("").hide()),Zt(),A.update()}),Q(".yp-button-manage").click(function(){St(),Q("#visual-rule-filter").trigger("keyup")}),Q(".visual-manager-close").click(function(){Ft()}),Q(document).on("mouseenter mouseover",".yp-contextmenu-reset-single-childs,.yp-contextmenu-reset-template-childs,.yp-contextmenu-reset-global-childs",function(){var e=Et(Q(this).attr("class").match(/yp-contextmenu-reset-(.*?)-childs/g)[0].replace(/(yp-contextmenu-reset-|-childs)/g,"").trim()).selectors,t=[];if(0!=e&&null!=e&&0<e.length){var a,i;e=e.filter(Boolean);for(var n=0;n<e.length;n++)0!=(i=ua(a=Wa(e[n],!0,!0,!0,!0),!0,!1,!1))&&0<ie.find(a).parents(".yp-selected").length&&t.push(i);0<t.length&&st(Q(t))}}),Q(document).on("mouseleave mouseout",".yp-contextmenu-reset-single-childs,.yp-contextmenu-reset-template-childs,.yp-contextmenu-reset-global-childs",function(){oe.extra.find(".yp-element-viewer").remove()}),Q("#background-image-group .yp-none-btn,#background-image-group .yp-disable-btn").click(function(e){e.originalEvent&&Q("#background-image-group .yp-background-image-show").toggle()}),Q("#box-shadow-inset-group .yp-disable-btn").click(function(e){e.originalEvent&&(Q("#box-shadow-inset-inset").parent().removeClass("active"),Q("#box-shadow-inset-no").parent().addClass("active"))}),Q("#box-shadow-inset-no").click(function(e){e.originalEvent&&Q("#box-shadow-inset-group").removeClass("reset-enable")}),Q(document).on("keyup change",".this-grid-input",function(){qt(Q(this).parents(".grid-builder-area"))}),Q(document).on("change",".grid-format",function(){var e=Q(this),t=e.parent().parent().find(".this-grid-input"),a=e.val();"auto"==a?t.val("").prop("disabled",!0):(t.prop("disabled",!1),""==t.val()&&("fr"==a&&t.val(1),"%"==a&&t.val(10))),qt(e.parents(".grid-builder-area"))}),Q(document).on("click",".grid-builder-add-new",function(){var e=Q(this),t=e.parents(".grid-builder-area"),a=e.parents(".yp-option-group").attr("data-css"),i=t.find(".this-grid").length+1,n="Row";"grid-template-columns"==a&&(n="Column"),Q(this).before('<div class="this-grid"><p>'+n+" "+i+'</p><input class="this-grid-input" placeholder="auto" type="number" min="1" value="1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><div class="grid-format-div"><select class="grid-format"><option value="fr" selected>fr</option><option value="%">%</option><option value="px">px</option><option value="auto">auto</option></select></div><span class="dashicons dashicons-no-alt delete-grid"></span></div>'),Q(".last-grid").removeClass("last-grid"),qt(t)}),Q(document).on("click",".delete-grid",function(){var e=Q(this).parents(".grid-builder-area"),t=Q(this).parents(".yp-option-group").attr("data-css");Q(this).parent().remove(),qt(e),Yt(t)}),Q(".yp-grid-option .grid-builder-input").on("keyup",function(){var e,t,a,i;i=(t=(e=Q(this)).parent().parent()).attr("data-css"),a=e.val(),t.addClass("reset-enable"),at(null,i,a,""),Ja()});var Xt=["current-menu-item","active(!singleInspector)","current(!singleInspector)","post","hentry","widget","wp-post-image","(entry|article|post|page|item|widget)([-_])?title","(entry|article|post|page|item|widget)([-_])?content","(entry|article|post|page|item|widget)([-_])?meta","comment-author-admin","([a-zA-Z0-9_-]+)?item","next","prev","product","footer","footer-top","footer-bottom","header","navbar","sidebar","masthead","copyright","menu-item","form-control","row_inner","wpDataTable","ls-wrapper","x-column"],Gt=["([a-zA-Z0-9_-]+)?infinite([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?bounce([a-zA-Z0-9_-]+)?","(([a-zA-Z0-9_-]+)?([-_]flash|flash[-_]|[-_]flash[-_])([a-zA-Z0-9_-]+)?|flash)","([a-zA-Z0-9_-]+)?pulse([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?rubberBand([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?shake([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?headShake([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?swing([a-zA-Z0-9_-]+)?","(([a-zA-Z0-9_-]+)?([-_]tada|tada[-_]|[-_]tada[-_])([a-zA-Z0-9_-]+)?|tada)","([a-zA-Z0-9_-]+)?wobble([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?jello([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?hinge([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?fade([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?slide([a-zA-Z0-9_-]+)?(In|in|Out|out)([a-zA-Z0-9_-]+)?(Up|up|Down|down|Left|left|Right|right)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?roll([a-zA-Z0-9_-]+)?(In|in|Out|out)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?fall([a-zA-Z0-9_-]+)?(In|in|Out|out|Up|up|Down|down|Left|left|Right|right)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?flip([a-zA-Z0-9_-]+)?(In|in|Out|out|Up|up|Down|down|Left|left|Right|right)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?lightSpeed([a-zA-Z0-9_-]+)?(In|in|Out|out)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?rotate([a-zA-Z0-9_-]+)?(In|in|Out|out)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?zoom([a-zA-Z0-9_-]+)?(In|in|Out|out)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?publish([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?draft([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?pending([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?private([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?trash([a-zA-Z0-9_-]+)?","(standard|aside|audio|chat|gallery|image|link|quote|status|video)","([a-zA-Z0-9_-]+)?focus([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?viewport([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?ltr([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?inherit([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(relative|absolute)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?transparent([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?visibility([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?spaced([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(hidden|hide)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(active-slide|current-slide|selected-slide|slide-active|slide-current|slide-selected)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?([-_]drag[-_]|drag[-_]|[-_]drag)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(draggable|sortable|dismissable|flippable|clickable)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?resize([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?cloned([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?status([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(clean|clr|clfw)([a-zA-Z0-9_-]+)?","((?!n2)([a-zA-Z0-9_-]+)hover([_-])([a-zA-Z0-9]+)?|hover|hover([_-])([a-zA-Z0-9]+)?|(?!n2)([a-zA-Z0-9_-]+)hover|hovered)","(?!n2)([a-zA-Z0-9_-]+)[-_]font([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?ready([a-zA-Z0-9_-]+)?","currency([a-zA-Z0-9_-]+)?","(lang|language|translate)([-_])([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?validate([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(false|true)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(loading|loaded)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?added([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(move|moving)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?finished([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?delay([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(enabled|disabled)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(bold|italic)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?initialised([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(even|odd)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?underlined([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?gutter([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(animation|animating|animate)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?transition([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?repeat([a-zA-Z0-9_-]+)?","([_-]?)([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3}|rgba|rgb)([_-]?)?","([a-zA-Z0-9_-]+)?rand","([a-zA-Z0-9_-]+)?(padding|margin|padded)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(mrg|pdg|m|p|pad|mar|margin|pading|padng|mrn)([-_])(t|r|b|l|btm|top|left|right|tp|lft|rght|bottom)([-_])([a-zA-Z0-9_-]+)","is([_-])([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)none","([a-zA-Z0-9_-]+)?with([_-])([a-zA-Z0-9]+)","([a-zA-Z0-9_-]+)?([_-])(to|from)([_-])(top|left|right|bottom)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(cursor|pointer)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(uppercase|lowecase|all-caps|capitalize)([a-zA-Z0-9_-]+)?","(display[-_]?block|display[-_]?inline|display[-_]?inline[-_]?block)","(bottom|top|left|right|center|align|middle|up|down)[-_](bottom|top|left|right|center|align|middle|up|down)","(bottom|top|left|right|center|align|middle|up|down)[-_](bottom|top|left|right|center|align|middle|up|down)[-_](bottom|top|left|right|center|align|middle|up|down)","(not|no)([_-])([a-zA-Z0-9_-]+)?","(roboto|lato|montserrat|slabo|raleway|merriweather|poppins|lora|titillium[-_]?web|muli|arimo)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)[-_](serif|sans|display|monospace|webfont)([a-zA-Z0-9_-]+)?","page([_-])item","([a-zA-Z0-9_-]+)?object([_-])page","([a-zA-Z0-9_-]+)?closed","thread([_-])alt","([a-zA-Z0-9_-]+)?([_-])has([_-])?([a-zA-Z0-9_-]+)|([a-zA-Z0-9_-]+)?([_-])?has([_-])([a-zA-Z0-9_-]+)","screen([_-])reader([_-])text","tag-link([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?internet([-_])?explorer([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?opera([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?firefox([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?safari([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?chrome([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(product_tag|product_cat)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(onsale|taxable)([a-zA-Z0-9_-]+)?","calculated_shipping","woocommerce-MyAccount-navigation-link--([a-zA-Z0-9_-]+)?","img-responsive","ls-active","disappear","appear","noSwipe","wow","bootstrap-touchspin-down","section--no","cat-item","kc-elm","kc_column","selected","alternate_color","open-mega-a","sf-menu","sf-arrows","ajax","neg-marg","lazy","lazy-img","text-shadow-small","full","sort","elementor-column-gap-no","n2-ow","et_pb_css_mix_blend_mode_passthrough","filterall","notranslate","vce","bordb","master-slider-parent","ms-sl-selected","non-hundred-percent-height-scrolling","hundred-percent-fullwidth","post-no-media","ie","([a-zA-Z0-9_-]+)?(syle|style)-default([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?nojquery([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?js-comp-ver([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?wpb-js-composer([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?-shd","([a-zA-Z0-9_-]+)?video-aspect-ratio-([a-zA-Z0-9_-]+)","([a-zA-Z0-9_-]+)?disable-resposive-headings([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?ut-vc-([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?([-_])spacing([-_])(no|yes)","([a-zA-Z0-9_-]+)?default([-_])template([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?ga-track([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?raw([-_])code([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?raw([-_])html([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?withbg([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?bg([-_])layout([a-zA-Z0-9_-]+)?","n2-(ow|ss)-(all|desktop|mobile|tablet)","([a-zA-Z0-9_-]+)?show-dropdown"],Vt=["([a-zA-Z0-9_-]+)([_-])","([_-])([a-zA-Z0-9_-]+)","([a-zA-Z0-9_-]+)?([_-])([_-])([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(tag|category|cat)([_-])([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?format([a-zA-Z0-9_-]+)?","menu([_-])item([_-])type([_-])post([_-])type","menu([_-])item([_-])object([_-])page","menu([_-])item([_-])(object|type)([_-])custom","widget_([a-zA-Z0-9_-]+)","bg([-_])([a-zA-Z0-9_-]+)","([a-zA-Z0-9_-]+)?([_-])(l|m|s|xs)([_-])[0-9]+","([a-zA-Z0-9_-]+)?pure([_-])([a-zA-Z0-9_-]+)?([_-])u([_-])[0-9]+([_-])[0-9]+","([a-zA-Z0-9_-]+)?col([_-])([a-zA-Z0-9_-]+)?([_-])[0-9]+","([a-zA-Z0-9_-]+)?col([_-])([a-zA-Z0-9_-]+)?([_-])offset([_-])[0-9]+","([a-zA-Z0-9_-]+)?(medium|large|small)([_-])[0-9]+","([a-zA-Z0-9_-]+)?(medium|large|small)([_-])([a-zA-Z0-9_-]+)?([_-])[0-9]+","([a-zA-Z0-9_-]+)?(small|medium|large)([_-])(push|pull)([_-])[0-9]+","([a-zA-Z0-9_-]+)?span([_-])?[0-9]+","([a-zA-Z0-9_-]+)?col([_-])[0-9]+([_-])[0-9]+","([a-zA-Z0-9_-]+)?col([_-])[0-9]+","(column|columns|col)","([a-zA-Z0-9_-]+)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)([a-zA-Z0-9_-]+)","([a-zA-Z0-9_-]+)?sticky([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?fixed([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?logged([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?print([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?visible([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?trigger([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?required([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?pull([a-zA-Z0-9_-]+)(left|right)","(left|right)","([a-zA-Z0-9_-]+)?([_-])(yes|no)([_-])([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(yes|no)([_-])([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?([_-])(yes|no)[_-]([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?is([_-])active([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?clearfix([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?clear([a-zA-Z0-9_-]+)?","(xsmall|x?[-_]small|small|large|medium|huge|normal)","([a-zA-Z0-9_-]+)?background([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?width([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?height([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?position([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?parent([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?color([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?layout([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?invert([a-zA-Z0-9_-]+)?","(?!n2-)([a-zA-Z0-9_-]+)style([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?scroll([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?equal([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?square([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?([_-])skin([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?skin([_-])([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?toggled([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?style([0-9_-]+)","([a-zA-Z0-9_-]+)?rounded([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?radius([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?type([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?dynamic([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?first","([a-zA-Z0-9_-]+)?last","([a-zA-Z0-9_-]+)?text([_-])justify","([a-zA-Z0-9_-]+)?row([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?border([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?align([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?effect([0-9_-]+)","([a-zA-Z0-9_-]+)?dimension([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?inline-inside([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?corner-pointed([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?float([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?last-child([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?first-child([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(round|scale|shadow|rotate|default|minimal|anim|pos[-_]align|angled)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)([_-])(on|off)","([a-zA-Z0-9_-]+)size([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)mobile([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)desktop([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)populated([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?hide([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?show([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?parallax([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?responsive([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?intense([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?completed([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?with_ajax([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?no-sibling([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(blue|black|red|white|light|green|yellow|purple|pink|orange|brown|gray)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?(black|dark|white|light)([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)([_-])only","([a-zA-Z0-9_-]+)?(text-left|text-center|text-right)([a-zA-Z0-9_-]+)?","unyson-page","end","larger","smaller","height-full","created_group","mini","activity_update","forge-block","forge-","elementor-section-items-middle","themify_builder","module","dslc-post-no-thumb","downloadable","purchasable","instock","above","open","template-page","alpha","units","flex_column_div","woocommerce","affix-top","st-menu","circle","vc_figure","vc_general","waves-effect","collapsed","collapse"],Jt=["([a-zA-Z0-9_-]+)?inner([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?overlay([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?container([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?google-fonts([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?fl-col-content([a-zA-Z0-9_-]+)?","elementor([a-zA-Z0-9_-]+)?(column|gap|wide|wrap)([a-zA-Z0-9_-]+)?","ms-([a-zA-Z0-9_-]+)-view","kc-wrap-columns","dslc-modules-section-wrapper","av-content-full","ninja-forms-form-wrap","nf-fields-wrap","nf-field-element","tp-tab-mask","n2-ss-section-outer","sp-mask","sp-grab","ms-slide-layers","ls-layers","snp-fb"];Jt=(Jt=Jt.concat(Gt)).concat(Vt);var Kt=["([a-zA-Z0-9_-]+)?wpcf7([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?mc4wp([a-zA-Z0-9_-]+)?"],Qt=["([a-zA-Z0-9_-]+)?page([_-])item([_-])([0-9]+)","(vc_|vc-)(.*?)(_|-)[a-zA-Z-0-9]{22,22}","themify_builder_content-([0-9]+)","themify_builder_([0-9]+)_row","tb_([0-9]+)_column","et_pb_image_([0-9]+)","([a-zA-Z0-9_-]+)?(post|page|portfolio|product|work|port|form|video)([_-])([0-9]+)","([a-zA-Z0-9_-]+)?(post|page|portfolio|product|work|port|form|video)([_-])(entry|item|id)([_-])([0-9]+)","([0-9])+(px|em|rem)","([a-zA-Z0-9_-]+)?wishlist-([0-9])+","wpbs-bookable-([0-9])+","wpbs-day-([0-9])+","([a-zA-Z0-9_-]+)?rand-([0-9])+","([a-zA-Z0-9_-]+)?(([-_])ie|ie8|ie9|ie10|ie11)","testimonials-items-([a-zA-Z0-9_-]+)","instance-([0-9]+)"],ea=["wp-image-[0-9]+","([a-zA-Z0-9_-]+)?section([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?slide([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?button([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?image([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?row([a-zA-Z0-9_-]+)?","vc_custom_([a-zA-Z0-9_-]+)?","fl-node([a-zA-Z0-9_-]+)?","fl-row([a-zA-Z0-9_-]+)?","module_row_([0-9]+)","module_column_([0-9]+)","et_pb_(section|row)_[0-9]+","kc-css-([0-9]+)","forge-col[0-9]+","(avia|av)-builder-el-([0-9]+)","footer-([0-9]+)","(n2-font-|n2-style-)([a-zA-Z0-9_-]+)?","n2-ss-([0-9]+)item([0-9]+)","n-uc-([a-zA-Z0-9_-]+)","ms-parent-id-([0-9_-]+)","msp-cn-([a-zA-Z0-9_-]+)","e2-([0-9]+)","td_module_([0-9]+)","cp_id_([a-zA-Z0-9_-]+)","snp-pop-([0-9]+)"],ta=["([a-zA-Z0-9_-]+)?module([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?slide([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?section([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?row([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?layout([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?form([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?wrapper([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?container([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?parallax([a-zA-Z0-9_-]+)?","([a-zA-Z0-9_-]+)?block([a-zA-Z0-9_-]+)?","layers-widget-([a-zA-Z0-9_-]+)?","builder-module-([a-zA-Z0-9_-]+)?","pg-([a-zA-Z0-9_-]+)?","ptpb_s([a-zA-Z0-9_-]+)?","billing_address_([0-9])([a-zA-Z0-9_-]+)?","el-([a-zA-Z0-9_-]+)","dslc-module-([a-zA-Z0-9_-]+)","module-([0-9]){13,13}-([0-9]){4,4}","wrapper-([0-9]){13,13}-([0-9]){4,4}","eluid([a-zA-Z0-9_-]+)","nf-form-([0-9]+)-cont","nf-field-([0-9]+)-wrap","ulp-inline-([a-zA-Z0-9_-]+)?","ulp-layer-([a-zA-Z0-9_-]+)?","ulp-([a-zA-Z0-9_-]+)?","esg-grid-([0-9]+)-([0-9]+)","snp-bld-step-([0-9]+)","snp-bld-step-([0-9]+)-el-([0-9]+)","snppopup-content-([0-9]+)"],aa=["widget","recentcomments","fws_([a-zA-Z0-9_-]+)","rps_([a-zA-Z0-9_-]+)","wrapper-[a-zA-Z-0-9]{16,16}","search-form-[a-zA-Z0-9]{13,13}","fullwidth-block-[a-zA-Z0-9]{13,13}","nf-field-([0-9]+)-container","phantom"],ia=["h1","h2","h3","h4","h5","h6","p","span","img","strong","a","li","i","ul","header","footer","article","b","em","code","form","label","ol","small","blockquote","nav"];function na(e,t){var a;t=t.replace(/ /g," ");for(var i=0;i<e.length;i++)a=new RegExp("(\\s|^)"+e[i]+"(\\s|$)","gi"),t=t.replace(a," ");return t.trim()}function sa(e,t){if(window.singleInspector){if(/\(\!singleInspector\)/g.test(e))return!1;e=e.replace(/\(\!singleInspector\)/g,"")}else{if(/\(singleInspector\)/g.test(e))return!1;e=e.replace(/\(singleInspector\)/g,"")}return!!new RegExp("(\\s|^)"+e+"(\\s|$)","gi").test(t)}function ra(e){return null==e||0==e||1==e?e:function(e){var t=[];if(-1!=(e=(e=Q.trim(e)).replace(/\s\s+/g," ")).indexOf(" "))for(var a,i=e.split(" "),n=0;n<i.length;n++)a=Q.trim(i[n]),0==/([\u2018\u2019\u201A\u201B\u2032\u2035\u201C\u201D]|\{|\}|\:|\<|\>|\(|\)|\[|\]|\~|\"|\'|\?|\\)/g.test(a)&&t.push(a);else 0==/([\u2018\u2019\u201A\u201B\u2032\u2035\u201C\u201D]|\{|\}|\:|\<|\>|\(|\)|\[|\]|\~|\"|\'|\?|\\)/g.test(e)&&t.push(e);return t.join(" ")}(e).replace(/(@|\.|\/|!|\*|#|\+)/g,"\\$1")}function oa(e){var t,a,i,n,s,r,o,l,p,d="",c="",u=/\d+/;if(null!=(l=(i=Q(e)).attr("class"))&&(l=Q.trim(ti(ra(l)))),t=i.attr("id"),"body"==(a=i.prop("tagName").toLowerCase())||"html"==a)return a;if(fe(t)){if(t=Q.trim(ra(t)),u.test(t)){for(var m=!1,g=0;g<ta.length;g++){if(/el-([a-zA-Z0-9_-]+)/g.test(t)){if(null==l)continue;if(-1==l.indexOf("vce-row"))continue}if(sa(ta[g],t)){m=!0;break}}0==m&&(t="")}if(0==/^(nf-form-|nf-field-([0-9]+)-wrap)$/g.test(t)&&0<window.idList.length&&5<t.length&&-1!=window.idList.indexOf(t)&&(t=""),""!=t)for(var h=0;h<aa.length;h++)if(sa(aa[h],t)){t="";break}if(""!=t)return"#"+t}if(null!=l){if(p=Ut(l),0<window.ClassList.length)for(var f=0;f<p.length;f++)-1!=window.ClassList.indexOf(p[f])&&5<p[f].length&&delete p[f];l=p.join(" ").trim()}fe(p)&&(1<(d=l).length&&(d=na(Gt,d)),d=Q.trim(d));var v,y=!1,w=!1;""!=d&&(y=!0,fe(v=d)&&(1<v.length&&(v=na(Vt,v)),v=Q.trim(v))),""!=Q.trim(v)&&(w=!0);var b,x,_=Ut(d),k=Ut(v);if(w){var C,z=!1;for(b=0;b<k.length;b++){C=k[b],z=!1,u.test(C)&&(z=!0);for(var A=0;A<Kt.length;A++)if(1==z&&1==sa(Kt[A],C)){z=!1;break}if(z){for(n=!0,x=0;x<Qt.length;x++)if(1==sa(Qt[x],C)){n=!1;break}n&&(c+=" "+C)}}}var O,T,Z,S,F=Ut(c);if(y){var I=[],E=[];for(b=0;b<_.length;b++)u.test(_[b])||I.push(_[b]);if(O=_,T=d,d=(_=I).join(" "),w){for(b=0;b<k.length;b++)u.test(k[b])||E.push(k[b]);k=E}}if(w)for(r=!1,b=0;b<k.length;b++){for(Z=0;Z<Xt.length;Z++)if(sa(Xt[Z],k[b])){if("post"==k[b]&&-1!=k.indexOf("hentry"))break;r=!0,s="."+k[b];break}if(r)break}if(0==r&&1==y)for(b=0;b<_.length;b++){for(Z=0;Z<Xt.length;Z++)if(sa(Xt[Z],_[b])){r=!0,s="."+_[b];break}if(r)break}if(""!=c){o=!1;for(var D=0;D<F.length;D++){for(S=0;S<ea.length;S++){if(null!=l){if(-1!=ea[S].indexOf("kc-css")&&0==/(kc_row)/g.test(l))continue;if(-1!=ea[S].indexOf("fl-node")&&0==/(fl-row|fl-col)/g.test(l))continue;if(-1!=ea[S].indexOf("e2-([0-9]+)")&&0==/(x-section)/g.test(l))continue}if(1==sa(ea[S],F[D])){o=!0,s="."+F[D];break}}if(o)break}}if(""!=c)for(S=0;S<F.length;S++)if(1==sa("elementor-element-(.*?)",F[S])&&1==/elementor-section/i.test(l)){s="."+F[S];break}if("input"==a&&0==window.reGetBestClass){var M=i.attr("type");if(re.hasClass("yp-sharp-selector-mode-active")){window.reGetBestClass=!0;var $=oa(e);fe(M)&&(s="input[type="+M+"]"+$),window.reGetBestClass=!1}else fe(M)&&(s="input[type="+M+"]")}for(var R=!1,N=0;N<ia.length;N++)if(ia[N]==a){R=a;break}var L=!1;""!=c&&(L=pa(F));var B=!1;re.hasClass("yp-sharp-selector-mode-active")&&(0==(B=la(pa(k,!0,!1)))&&(B=la(k)),0==B&&(B=la(pa(_,!0,!1))),0==B&&(B=la(_)));var P,W,j=!1;if(0==(j=pa(k,!1,!1))&&(j=pa(_,!1,!1)),null!=l&&-1!=l.indexOf("kc_column")&&(s=".kc_column"),fe(s))return s;if(0!=B)return B;if(0!=j)return j;if(0!=R)return R;if(0!=L)return L;if("div"!=a)return a;if(""!=d&&null!=d){for(P=pa(_),W=!0,x=0;x<Qt.length;x++)if(1==sa(Qt[x],P.replace(/^(\.|#)/g,""))){W=!1;break}return W?P:a}if(""==T||null==T)return a;for(P=pa(O),W=!0,x=0;x<Qt.length;x++)if(1==sa(Qt[x],P.replace(/^(\.|#)/g,""))){W=!1;break}return W?P:a}function la(e){if(!1===e||""==e)return!1;var t=e.sort(function(e,t){return ne.find("."+e).length-ne.find("."+t).length});return 1==ne.find("."+t[0]).length&&"."+t[0]}function pa(e,t,a){if(0==e.length)return!1;if(1==e.length&&1==a)return!1;if(0==t){if(1==e.length&&0==a)return 1<e[0].length&&"."+e[0]}else if(1==e.length&&0==a)return 1<e[0].length&&e;var i,n=[],s=[],r=[],o=[],l=[],p=[],d=[];for(i=0;i<e.length;i++)if(r=[],o=[],!/(\,|\[|\]|\#)/g.test(e[i])){ie.find("."+e[i]).each(function(){var e=Q(this);r.push(e.parents().length),o.push(e.prop("tagName"))});var c=r.every(function(e,t,a){return e===a[0]}),u=o.every(function(e,t,a){return e===a[0]});c&&u&&n.push(e[i])}for(0==n.length&&(n=e),i=0;i<n.length;i++)0==/\_/g.test(n[i])&&1==/\-/g.test(n[i])&&p.push(n[i]);if(0==p.length){for(i=0;i<n.length;i++)0==/\-/g.test(n[i])&&1==/\_/g.test(n[i])&&d.push(n[i]);s=0==d.length?n:d}else s=p;for(i=0;i<s.length;i++)0==/(.)\1\1/.test(s[i])&&l.push(s[i]);return 0==l.length&&(l=n),l.sort(function(e,t){return t.length-e.length}),t?l:"."+function(e){var t,a,i,n=e[0],s=e[0].split(/[-_]/)[0]+e[0].charAt(e[0].split(/[-_]/)[0].length)+e[0].split(/[-_]/)[1],r=null,o=null,l=!1,p=ie;for(t=2;t<e[0].split(/[-_]/).length-1&&(s=s+e[0].charAt(s.length)+e[0].split(/[-_]/)[t],!((r=e[0].split(/[-_]/)[e[0].split(/[-_]/).length-t]).length<3||1==/(\d|current|active)/g.test(r)));t++){for(a=0;a<e.length;a++)if(e[a]===s){n=s,l=!0;break}if(l)break}if(0==l&&null!=e[0].split(/[-_]/)[e[0].split(/[-_]/).length-2])for(i=e[0].split(/[-_]/)[e[0].split(/[-_]/).length-2]+e[0].charAt(e[0].length-e[0].split(/[-_]/)[e[0].split(/[-_]/).length-1].length-1)+e[0].split(/[-_]/)[e[0].split(/[-_]/).length-1],t=e[0].split(/[-_]/).length-1;2<t&&(i=e[0].split(/[-_]/)[t-2]+e[0].charAt(e[0].length-i.length-1)+i,!((o=e[0].split(/[-_]/)[e[0].split(/[-_]/).length-t-1]).length<3||1==/(\d|current|active)/g.test(o)));t--){for(a=0;a<e.length;a++)if(e[a]===i){n=i;break}if(l)break}0<le().parent().length&&(p=le().parent());return p.find("."+e[0]).length==p.find("."+n).length?n:e[0]}(l)}function da(e){var t=re.attr("data-clickable-select"),a=!1;if(e=1==e&&re.hasAttr("data-yp-selector")?re.attr("data-yp-selector"):"",fe(t)){if(0!=ua(t,!0,!1,!1))return t+e;a=fa(null,"default")+e}else a=fa(null,"default")+e;if(pe()&&0!=a)return 0==ie.find(".yp-selected-others").length&&1<ie.find(a).length&&(se.addClass("yp-sharp-selector-mode-active"),a=fa(null,"default")+e,se.removeClass("yp-sharp-selector-mode-active")),F(a,le(),!0),a}function ca(e){return e.replace(/[\u2018\u2019\u201A\u201B\u2032\u2035\u201C\u201D]/g,"")}function ua(e,t,a,i){if(ve(e))return!!i&&J.selector_no_match;var n;e=Wa(e,!0,!0,!0),n=a?ne:ie;try{var s=n.find(e);return 1==t&&0==s.length?!!i&&J.selector_no_match:!!i||s}catch(e){return!!i&&e.message}}function ma(e,t){return e=ca(e=(e=(e=(e=e.replace(/(\r\n|\n|\r)/g,"").replace(/\t/g,"")).replace(/(\/\*)(.*?)\*\//g,"")).replace(/\}\s+\}/g,"}}").replace(/\s+\{/g,"{")).replace(/\s+\}/g,"}").replace(/\{\s+/g,"{")),!0===t&&(e=e.replace(/@media(.*?)\}\}/g,"").replace(/@?([a-zA-Z0-9_-]+)?keyframes(.*?)\}\}/g,"").replace(/@font-face(.*?)\}\}/g,"").replace(/@import(.*?)\;/g,"").replace(/@charset(.*?)\;/g,"")),e}function ga(e){var t,a,i,n,s,r,o,l,p,d,c,u,m=Z.querySelectorAll(e).length,g=(t=e,p=!(l=5),d=null,0!=window.minCroppedSelector&&(l=window.minCroppedSelector),(o=Ht(t)).length>l&&(a=ie.find(t).length,i=-1==t.indexOf(">")?o:t.replace(/\s+>\s+/g,">"),Q.each(o,function(){!1===p&&(r=-1==t.indexOf(">")?(i.shift(),n=i.join(" "),i.length):(i=0==/^[^\s>]+\s/.test(i)?i.replace(/\s[^\s>]+\s/," "):i.replace(/^[^\s>]+\s/,""),Ht(n=i)),s=ie.find(n).length,a==s&&(d=n),r<=l&&a==s&&(p=!0,t=n))})),p?t=Q.trim(t.replace(/>/g," > ")):null!=d&&(t=Q.trim(d.replace(/>/g," > "))),t),h=[],f="";if(-1!=e.indexOf(">"))return g;c=(e=Ht(e))[e.length-1],e.pop(),u=e[0],e.shift();for(var v,y,w,b,x=[],_=0;_<e.length;_++){v=!0;for(var k=0;k<Jt.length;k++)if(new RegExp("(\\s|^)."+Jt[k]+"(\\s|$)","gi").test(e[_])){v=!1;break}v&&x.push(e[_])}if(ve(u)||ve(u))return g;if(-1==u.indexOf(" ")&&-1==c.indexOf(" ")&&(f=ja(u+window.separator+c)),ua(f,!1,!1,!1)&&0==window.minCroppedSelector&&1<=e.length&&0==x.length&&ie.find(f).length==m)return f;if(0<x.length&&(e=x),e.length<1)return g;var C=[];for(_=0;_<e.length;_++)if(/.|#/g.test(e[_])){if(y=[],w=[],0==ua(e[_],!1,!1,!1))return!0;ie.find(e[_]).each(function(){b=Q(this),y.push(b.parents().length),w.push(b.prop("tagName"))});var z=y.every(function(e,t,a){return e===a[0]}),A=w.every(function(e,t,a){return e===a[0]});z&&A&&C.push(e[_])}ha(e,h,u,c,m);if(1<C.length){var O=ha(C,h,u,c,m);0<O.length&&O}if(0==h.length)return g;if(h.sort(function(e,t){return e.length-t.length}),0==window.minCroppedSelector)return ja(h[0]);for(var T=0;T<h.length;T++)if(Ht(h[T]).length>=window.minCroppedSelector)return ja(h[T]);return g}function ha(e,t,a,i,n){var s,r,o,l,p,d=e.slice(0);for(r=0;r<e.length;r++)for(s=e[r],p=a+window.separator+s+window.separator+i,Z.querySelectorAll(p).length==n&&t.push(p),d.shift(),o=0;o<d.length;o++)l=d[o],p=a+window.separator+s+window.separator+l+window.separator+i,Z.querySelectorAll(p).length==n&&t.push(p);return t}function fa(e,t){var a=se.attr("data-clickable-select");if("default"==t&&0==window.minCroppedSelector&&fe(a)&&0!=ua(a,!0,!1,!1))return a;if("defaultNoCache"==t&&(t="default"),null===e&&(e=le()),void 0===e[0]||!1===e[0]||null===e[0])return!1;var i=e[0].tagName;if(re.hasClass("yp-sharp-selector-mode-active")&&(t="sharp"),ve(i)||"HTML"==i)return!1;if("BODY"==i)return"body";var n,s,r,o=e.parentsUntil("body"),l="",p="",d=oa(e);if(1==/#/g.test(d))return d;var c=[],u=!1,m=!1;0!=window.minCroppedSelector&&window.minCroppedSelector>=o.length&&(u=!0);for(var g=o.length-1;0<=g;g--){if(n=!1,r=oa(o[g]),m=!1,0!=window.minCroppedSelector&&g-1<=window.minCroppedSelector&&(m=!0),1==/\.|#/g.test(r)&&0==u&&0==m&&1==ie.find(r).length&&".active"!=r){var h=!0;-1==r.indexOf("#")&&g<=0&&(h=!1),h&&("sharp"!=t?(l=r+window.separator,c.push(r),n=!0):-1==Ee(l,!0).indexOf("nth-child")&&(l=r+window.separator,c.push(r),n=!0))}0==n&&(s=ie.find(l+window.separator+r+window.separator+r+","+l+window.separator+p+window.separator+r).length,"default"==t&&0<s&&""!=ja(l).trim()?l=ja(l).trim()+" > "+r+window.separator:l+=r+window.separator),p=r}if(-1!=l.indexOf(".gm-style")&&(l=".gm-style"),l=0<(s=ie.find(l+window.separator+d+window.separator+d+","+l+window.separator+r+window.separator+d).length)&&0<l.length?ja(l+" > "+d):ja(l+window.separator+d),1<c.length&&"#"!=l.charAt(0)){var f,v,y,w,b,x=[];for(g=0;g<c.length;g++){f=!0;for(var _=0;_<Jt.length;_++)if(new RegExp("(\\s|^)."+Jt[_]+"(\\s|$)","gi").test(c[g])){f=!1;break}f&&x.push(c[g])}if(1<x.length)for(v=[],g=0;g<x.length;g++){y=[],w=[],ie.find(x[g]).each(function(){b=Q(this),y.push(b.parents().length),w.push(b.prop("tagName"))});var k=y.every(function(e,t,a){return e===a[0]}),C=w.every(function(e,t,a){return e===a[0]});k&&C&&v.push(x[g])}ve(v)&&(v=[]);var z=null;if(0<v.length?z=v[v.length-1]:0<x.length&&(z=x[x.length-1]),null!=z){var A=l.match(/(\s)(.*?)$/g).join("").toString();ua(A=z+A,!0,!1,!1)&&et(l,A)&&(l=A)}}if(0==window.setSelector&&(window.lastParentQueryStatus=t),"sharp"==t)return Ee(l,!1);if(-1!=ia.indexOf(i.toLowerCase())){var O,T=[];ie.find(l).each(function(){O=Q(this).prop("tagName"),-1==T.indexOf(O)&&T.push(O)}),1<T.length&&1==/(\.|#)/g.test(d)?l=Q.trim(l.match(new RegExp("^(.*?)(?="+wa(d)+"$)","g")).join("").toString())+window.separator+i.toLowerCase()+d:function(e,t,a){var i=ie.find(e),n=ie.find(Q.trim(e.match(new RegExp("^(.*?)(?="+wa(t)+"$)","g")).join("").toString())+window.separator+a.toLowerCase());{if(1==i.length&&1==n.length)return!0;if(i.length==n.length&&/.|#/g.test(t)){var s=[],r=[];ie.find(t).each(function(){var e=Q(this);s.push(e.parents().length),r.push(e.prop("tagName"))});var o=s.every(function(e,t,a){return e===a[0]}),l=r.every(function(e,t,a){return e===a[0]});if(o&&l)return!0}}return!1}(l,d,i)&&(l=Q.trim(l.match(new RegExp("^(.*?)(?="+wa(d)+"$)","g")).join("").toString())+window.separator+i.toLowerCase())}if(-1!=(l=ja(l)).indexOf(">")){var Z=l.split(">").length,S=ie.find(l).length;for(g=1;g<Z;g++)ie.find(l.replace(/ > /i," ")).length==S&&(l=l.replace(/ > /i," "))}return l=ga(ja(l)),/( |>)div$/g.test(l)&&20<=ie.find(l).length?Ee(l):l}function va(e,t){var a;a="object"==typeof e?Q(e):ie.find(e);var i=pe(),n=!1;if((ypOption.show_margin_padding_on_hover||i)&&(n=!0),0<a.length){var s,r,o,l,p,d,c,u,m,g,h,f,v,y,w="",b="",x="",_="",k="",C="",z="",A="";n&&(s=a.css("marginTop"),r=a.css("marginBottom"),o=a.css("marginLeft"),l=a.css("marginRight"),p=a.css("paddingTop"),d=a.css("paddingBottom"),c=a.css("paddingLeft"),u=a.css("paddingRight"),parseFloat(s)<=0&&(s="0px"),parseFloat(r)<=0&&(r="0px"),parseFloat(l)<=0&&(l="0px"),parseFloat(l)<=0&&(l="0px"),m=o,g=l,h=parseInt(p),f=parseInt(u),v=parseInt(d),y=parseInt(c),0==parseInt(p)&&(p="7px"),0==parseInt(u)&&(u="5px"),0==parseInt(d)&&(d="7px"),0==parseInt(c)&&(c="7px"),ie.find(".yp-zero-margin-h").removeClass("yp-zero-margin-h"),0==parseInt(s)&&i&&(s="5px",oe.active.find(".yp-selected-boxed-margin-top").addClass("yp-zero-margin-h")));var O=a.get(0);if(ve(O))return!1;var T=O.getBoundingClientRect(),Z=parseFloat(ie.scrollTop()),S=T.width,F=T.height,I=T.top+Z,E=T.left,D=T.bottom+Z,M=ie.height();1==i&&0==parseInt(r)&&Math.round(D)!=M&&Math.round(D+2)!=M&&(r="5px",oe.active.find(".yp-selected-boxed-margin-bottom").addClass("yp-zero-margin-h")),1==i&&Math.round(D)==M||Math.round(D+2)==M?se.addClass("yp-selected-bottom"):se.removeClass("yp-selected-bottom");var $=Q("#iframe").width(),R=$-ie.find("html").width(),N=Q(window).width()-window.leftbarWidth-R,L=1;i&&(L=2),N<E+S?S=N-E-L:de()&&($<E+S&&(S=$-E-R),$==S&&ie.find("html").height()>Q("#iframe").height()&&(S-=R));var B=E+S-L;if($-R<=E+S+2?se.addClass("yp-full-width-selected"):se.removeClass("yp-full-width-selected"),n){var P=!1;$==parseFloat(2*o)+S&&0<parseFloat(o)?P=!0:0<a.parent().length&&parseFloat(a.parent().width())==2*parseFloat(o)+S&&0<parseFloat(o)&&(P=!0),E+S+30<$-R&&(ie.find(".yp-zero-margin-w").removeClass("yp-zero-margin-w"),0==parseInt(l)&&i&&(l="5px",oe.active.find(".yp-selected-boxed-margin-right").addClass("yp-zero-margin-w")),0==parseInt(o)&&i&&(o="5px",oe.active.find(".yp-selected-boxed-margin-left").addClass("yp-zero-margin-w"))),30<parseInt(s)&&(w=parseInt(s)+"px"),30<parseInt(l)&&(b=parseInt(l)+"px"),30<parseInt(r)&&(x=parseInt(r)+"px"),30<parseInt(o)&&(_=parseInt(o)+"px"),30<parseInt(p)&&(k=parseInt(p)+"px"),30<parseInt(u)&&(C=parseInt(u)+"px"),30<parseInt(d)&&(z=parseInt(d)+"px"),30<parseInt(c)&&(A=parseInt(c)+"px"),P&&(b=_="Auto")}if(1<F&&1<S){if(0===ie.find("."+t+"-top").length){var W="<div class='"+t+"-top'></div><div class='"+t+"-bottom'></div><div class='"+t+"-left'></div><div class='"+t+"-right'></div>";W+="<div class='"+t+"-margin-left'>"+_+"</div><div class='"+t+"-margin-top'>"+w+"</div><div class='"+t+"-margin-bottom'>"+x+"</div><div class='"+t+"-margin-right'>"+b+"</div>",W+="<div class='"+t+"-padding-left'>"+A+"</div><div class='"+t+"-padding-top'>"+k+"</div><div class='"+t+"-padding-bottom'>"+z+"</div><div class='"+t+"-padding-right'>"+C+"</div>",oe.active.append(W)}else n&&(oe.active.find("."+t+"-margin-top").text(w),oe.active.find("."+t+"-margin-right").text(b),oe.active.find("."+t+"-margin-bottom").text(x),oe.active.find("."+t+"-margin-left").text(_),oe.active.find("."+t+"-padding-top").text(k),oe.active.find("."+t+"-padding-right").text(C),oe.active.find("."+t+"-padding-bottom").text(z),oe.active.find("."+t+"-padding-left").text(A));var j="."+t+"-top{top:"+I+"px !important;left:"+E+"px !important;width:"+S+"px !important;}";if(j+="."+t+"-bottom{top:"+D+"px !important;left:"+E+"px !important;width:"+S+"px !important;}",j+="."+t+"-left{top:"+I+"px !important;left:"+E+"px !important;height:"+F+"px !important;}",j+="."+t+"-right{top:"+I+"px !important;left:"+B+"px !important;height:"+F+"px !important;}",n){var q=parseFloat(I)-parseFloat(s),Y=parseFloat(E)-parseFloat(o),H=D-parseFloat(d),U=B-parseFloat(u),X=parseFloat(l);B+2+parseFloat(l)>$-R&&(X=$-R-(B+2));var G=parseFloat(S)+parseFloat(m)+parseFloat(g),V=parseFloat(E)-parseFloat(m);N<V+G&&(G=S+parseFloat(m)),j+="."+t+"-margin-top{top:"+q+"px !important;left:"+V+"px !important;width:"+G+"px !important;height:"+parseFloat(s)+"px !important;}",j+="."+t+"-margin-bottom{top:"+D+"px !important;left:"+V+"px !important;width:"+G+"px !important;height:"+parseFloat(r)+"px !important;}",j+="."+t+"-margin-left{top:"+I+"px !important;left:"+Y+"px !important;width:"+parseFloat(o)+"px !important;height:"+F+"px !important;}",j+="."+t+"-margin-right{top:"+I+"px !important;left:"+(parseFloat(B)+2)+"px !important;width:"+parseFloat(X)+"px !important;height:"+F+"px !important;}",j+="."+t+"-padding-top{top:"+parseFloat(I)+"px !important;left:"+parseFloat(E)+"px !important;width:"+S+"px !important;height:"+parseFloat(p)+"px !important;}",j+="."+t+"-padding-bottom{top:"+H+"px !important;left:"+parseFloat(E)+"px !important;width:"+S+"px !important;height:"+parseFloat(d)+"px !important;}",j+="."+t+"-padding-left{top:"+parseFloat(I)+"px !important;left:"+parseFloat(E)+"px !important;width:"+parseFloat(c)+"px !important;height:"+parseFloat(F)+"px !important;}",j+="."+t+"-padding-right{top:"+parseFloat(I)+"px !important;left:"+U+"px !important;width:"+parseFloat(u)+"px !important;height:"+parseFloat(F)+"px !important;}",0==parseInt(h)&&(j+="."+t+"-padding-top:before{display:none !important;}"),0==parseInt(f)&&(j+="."+t+"-padding-right:before{display:none !important;}"),0==parseInt(v)&&(j+="."+t+"-padding-bottom:before{display:none !important;}"),0==parseInt(y)&&(j+="."+t+"-padding-left:before{display:none !important;}")}var J=ne.find("#yp-draw-box");0<J.length?J.html(j):ne.append("<style id='yp-draw-box'>"+j+"</style>")}}}function ya(e){var a=!1;if(/\bhandheld\b|\baural\b|\bbraille\b|\bembossed\b|\bprojection\b|\btty\b|\btv\b|\bprint\b|\b3d-glasses\b/.test(e))return null;if(/,|\bnot\b/.test(e))return!1;var n=parseFloat(ie.find("html").css("fontSize")),t=(e=e.replace(/[0-9. ]+(rem|em)/g,function(e,t,a,i){return parseFloat(e)*n+"px"})).match(/\((.*?)\)/g),i=[],s=/max-width|min-width/;return Q.each(t,function(e,t){if(0==s.test(t))return!(a=!0);t=(t=(t=t.replace(/\(|\)|:|px|\s+/g,"")).replace(/min-width/g,">")).replace(/max-width/g,"<"),i.push(t)}),0==a?i:void 0}function wa(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\^/g,"\\^").replace(/\$/g,"\\$").replace(/\*/g,"\\*").replace(/\:/g,"\\:").replace(/\+/g,"\\+")}function ba(e,t){for(var a,i,n,s,r,o,l,p,d,c=Z.styleSheets,u=null,m=[],g=[],h=[],f=!1,v=0;v<c.length;v++)if(null==(u=(l=c[v]).href)&&(u=location.protocol+"//"+window.location.hostname),-1==u.indexOf("waspthemes-yellow-pencil")&&-1==u.indexOf("animate")&&-1==u.indexOf("webkit")&&-1==u.indexOf("animation")&&-1==u.indexOf("keyframe")&&-1==u.indexOf("font")&&-1==u.indexOf("icon")&&-1==u.indexOf("googleapis.com")&&-1==u.indexOf("print")&&-1==u.indexOf("reset")&&-1==u.indexOf("player")&&-1==u.indexOf("video")&&-1==u.indexOf("audio")&&"ie"!=u&&-1==u.indexOf("ie6")&&-1==u.indexOf("ie7")&&-1==u.indexOf("ie8")&&-1==u.indexOf("ie9")&&-1==u.indexOf("ie10")&&-1==u.indexOf("ie11")&&-1==u.indexOf("jquery")&&-1==u.indexOf("color")&&-1==u.indexOf("skin")&&-1==u.indexOf("scheme")&&-1==u.indexOf("setting")&&-1==u.indexOf("admin")&&-1!=u.indexOf(location.protocol+"//"+window.location.hostname)){a=l.cssRules;for(var y=0;y<a.length;y++)if((i=a[y]).media){try{o=i.media[0].replace(/(\s+)?\:(\s+)?/g,":")}catch(e){continue}n=i.cssRules;for(var w=0;w<n.length;w++)if(!ve(r=(s=n[w]).selectorText)&&0==/(\*|\:|\@)/i.test(r)&&0!=ua(r))if(r=r.trim(),e)-1==m.indexOf(o)&&m.push(o);else if(0!=t)ie.find(Wa(r)).hasClass("yp-selected")&&t in s.style&&""!==s.style[t]&&-1==m.indexOf(o)&&m.push(o);else if(ie.find(Wa(r)).hasClass("yp-selected")){h=[];for(var b=0;b<s.style.length;b++)h.push(s.style[b]);for(var x=0;x<h.length;x++)if(!/(-webkit-|-moz-|-o-|-ms-)/g.test(h[x])&&!/(\:|\{|\}|\(|\))/g.test(h[x]))if("padding"!=h[x])if("margin"!=h[x])if("border-width"!=h[x])if("border-style"!=h[x])if("border-color"!=h[x])if("border-top"!=h[x])if("border-right"!=h[x])if("border-bottom"!=h[x])if("border-left"!=h[x])if("background"!=h[x])if("border-radius"!=h[x])if("flex"!=h[x])if("flex-flow"!=h[x])if("list-style"!=h[x])if("overflow"!=h[x])if("animation"!=h[x])if("border"!=h[x])if("font"!=h[x]){var _=ya(o);if(null!=_&&0!=_){for(s=h[x].trim(),p=_a(o),f=!1,d=0;d<g.length;d++)if(s==g[d].rule&&o==g[d].query&&p==g[d].order){f=!0;break}0==f&&-1==s.indexOf("outline-")&&g.push({rule:s,query:o,order:p})}}else h.push("font-size","line-height","font-family"),/(\s+|^)(normal|italic|oblique)(\s+|$)/g.test(value[x])&&h.push("font-style"),/(\s+|^)(normal|small-caps)(\s+|$)/g.test(value[x])&&h.push("font-variant"),/(\s+|^)(100|200|300|400|500|600|700|800|900|normal|bold|bolder|lighter)(\s+|$)/g.test(value[x])&&h.push("font-weight");else h.push("border-width","border-style","border-color");else h.push("animation-name","animation-duration","animation-delay","animation-iteration-count"),/(\s+|^)(paused|running)(\s+|$)/g.test(value[x])&&h.push("animation-play-state"),/(\s+|^)(forwards|backwards|both)(\s+|$)/g.test(value[x])&&h.push("animation-fill-mode"),/(\s+|^)(normal|reverse|alternate|alternate-reverse)(\s+|$)/g.test(value[x])&&h.push("animation-direction"),/(\s+|^)(linear|ease|ease-in|ease-out|ease-in-out|step-start|step-end|steps\(|cubic-bezier\()(\s+|$)/g.test(value[x])&&h.push("animation-timing-function");else h.push("overflow-y","overflow-x");else/(\s+|^)url\((\s+|$)/g.test(value[x])&&h.push("list-style-image"),/(\s+|^)(disc|armenian|circle|cjk-ideographic|decimal|decimal-leading-zero|georgian|hebrew|hiragana|hiragana-iroha|katakana|katakana-iroha|lower-alpha|lower-greek|lower-latin|lower-roman|none|square|upper-alpha|upper-greek|upper-latin|upper-roman)(\s+|$)/g.test(value[x])&&h.push("list-style-image"),/(\s+|^)(inside|outside)(\s+|$)/g.test(value[x])&&h.push("list-style-position");else h.push("flex-direction"),-1!=h[x].indexOf(" ")&&h.push("flex-wrap");else h.push("flex-grow"),1<h[x].split(/\+s/g).length&&h.push("flex-grow"),2<h[x].split(/\+s/g).length&&h.push("flex-basis");else h.push("border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius");else/(\s+|^)(#[a-zA-Z-0-9]{6}|#[a-zA-Z-0-9]{3}|rgb\(|rgba\()(\s+|$)/g.test(value[x])&&h.push("background-color"),/(\s+|^)url\((\s+|$)/g.test(value[x])&&h.push("background-image"),/(\s+|^)(left|top|right|bottom|center)(\s+|$)/g.test(value[x])&&h.push("background-position"),/(\s+|^)(auto|cover|contain)(\s+|$)/g.test(value[x])&&h.push("background-size"),/(\s+|^)(repeat)(\s+|$)/g.test(value[x])&&h.push("background-repeat"),/(\s+|^)(padding-box|border-box|content-box)(\s+|$)/g.test(value[x])&&(h.push("background-origin"),h.push("background-clip")),/(\s+|^)(fixed|scroll|local)(\s+|$)/g.test(value[x])&&h.push("background-attachment");else h.push("border-left-width","border-left-style","border-left-color");else h.push("border-bottom-width","border-bottom-style","border-bottom-color");else h.push("border-right-width","border-right-style","border-right-color");else h.push("border-top-width","border-top-style","border-top-color");else h.push("border-top-color","border-right-color","border-bottom-color","border-left-color");else h.push("border-top-style","border-right-style","border-bottom-style","border-left-style");else h.push("border-top-width","border-right-width","border-bottom-width","border-left-width");else h.push("margin-top","margin-right","margin-bottom","margin-left");else h.push("padding-top","padding-right","padding-bottom","padding-left")}}}return e||t?m:g}function xa(e){if(0==Q(".yp-editor-list > li.active .yp-option-group").length)return!1;var t,a=ba(!1,!1).reverse();Q(".property-has-queries").removeClass("property-has-queries"),a.sort(function(e,t){return e.order-t.order});for(var i=0;i<a.length;i++){var n=a[i].rule,s=a[i].query;try{if(0==re.find("#"+n+"-group").length)continue}catch(e){continue}var r=Q("#"+n+"-group");if(r.addClass("property-has-queries"),r.is(":visible")){0==Q("#"+n+"-group .property-size-tabs").length&&r.prepend("<ul class='property-size-tabs'></ul>"),t=r.find(".property-size-tabs"),0==i&&(0<t.find(".active").length&&(null==e||""==e&&0!=e)&&(e=t.find(".active").attr("data-property-size")),Q(".property-size").tooltip("destroy"),Q(".property-size-tabs").empty()),0==t.find("[data-property-size='all']").length&&t.append("<li class='property-size' title='"+J.all_msg+"' data-insert-media='desktop' data-property-size='all'>All</li>");var o=ya(s);if(null!=o&&0!=o&&(o=o.toString(),!(0<t.find("[data-property-size='"+o+"']").length))){var l=o.replace(/\</g,"max ").replace(/\>/g,"min. ").replace(/\,/g," & ").replace(/\.\d+/g,"").replace(/(\d+)(\s|$)/g,"$1px$2"),p=null;p=-1==o.indexOf(",")?o.replace(/([^\d+])(\d+)/g,"$2$1").replace(/\</g," and below").replace(/\>/g," and above").replace(/\.\d+/g,"").replace(/(\d+)(\s|$)/g,"$1px$2")+" screen sizes":"screen sizes "+o.replace(/\</g,"smaller than ").replace(/\>/g,"larger than ").replace(/\,/g," and ").replace(/\.\d+/g,"").replace(/(\d+)(\s|$)/g,"$1px$2");var d=_a(s);if(t.append("<li class='property-size' title='"+p+"' data-insert-media='"+s+"' data-property-number="+d+" data-property-size='"+o+"'>"+l+"</li>"),null!=e)t.find(".active").removeClass("active"),t.find("[data-property-size='"+e+"']").addClass("active");else if(0<Q(".breakpoint-bar .active").length){var c=ya(Q(".breakpoint-bar .active").attr("data-media-content"));fe(c)&&(c=c.toString(),0<Q(".property-size[data-property-size='"+c+"']").length&&(t.find(".active").removeClass("active"),t.find("[data-property-size='"+c+"']").addClass("active")))}else t.find(".active").removeClass("active"),Q(".property-size[data-property-size='all']").addClass("active")}}}0!=Q(".property-size-tabs-visible .property-size").length&&0!=a.length||(Q(".property-size-tabs-visible").removeClass("property-size-tabs-visible"),se.removeClass("property-query-active")),Q(".property-size").tooltip({animation:!1,template:'<div class="tooltip small-tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',container:".yp-select-bar",delay:{show:50,hide:0},placement:"top"})}function _a(e){var t=ya(e);if(fe(t)){var a=(t=t.toString()).replace(/(\<|\>)/g,"");return-1!=a.indexOf(",")&&(a=-1!=t.split(",")[1].indexOf("<")?a.split(",")[1]:a.split(",")[0]),a}return!1}function ka(){if(de())return 0;var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var a=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;return a==i&&(i=t.clientWidth),document.body.removeChild(t),a-i}function Ca(e,t){var a,i,n,s,r,o,l,p,d,c,u="";i=parseFloat(ie.scrollTop()),n=Q(I).width(),null!=e&&null!=e||(e=da()),null!=t&&null!=t||(t="default"),c="multiple"==t?e:ie.find(e+":in-viewport").not(".yp-selected,.yp-multiple-selected"),"multiple"!=t&&oe.other.empty(),c.each(function(e){return a=Q(this),a.attr("class"),"multiple"==t&&(e="multiple"),d=a.prop("tagName"),null===a||("HTML"==d||"BODY"==d||(0===a.length||(!0===j(a,"opacity","0","==")||!0===j(a,"visibility","hidden","==")||(" "==a.html()&&"P"==d||(!!re.hasClass("yp-has-transform")||0!=(s=this.getBoundingClientRect()).length&&(r=s.top+i,o=s.left,l=s.width,p=s.height,n<o||(n<l+o&&(l=n-o),void(1<p&&1<l&&(0===oe.other.find(".yp-selected-others-"+e+"-box").length?u+="<div class='yp-selected-others-box yp-selected-others-"+e+"-box' style='top:"+parseFloat(r)+"px !important;left:"+parseFloat(o)+"px !important;width:"+parseFloat(l)+"px !important;height:"+parseFloat(p)+"px !important;'></div>":oe.other.find(".yp-selected-others-"+e+"-box").attr("style","top:"+parseFloat(r)+"px !important;left:"+parseFloat(o)+"px !important;width:"+parseFloat(l)+"px !important;height:"+parseFloat(p)+"px !important;"))))))))))}),""!=u&&oe.other.append(u)}function za(e){var t=e.get(0);if(ve(t))return 0;var a=t.getBoundingClientRect(),i=parseFloat(ie.scrollTop()),n=a.top+i,s=a.height;return n<i?s-(i-n):s}function Aa(){var e=oe.general.find(".yp-selected-tooltip"),t=oe.general.find(".yp-edit-tooltip");if(e.length<=0)return!1;e.removeClass("yp-small-tooltip"),pe()||(e.css("visibility","hidden"),t.css("visibility","hidden"));var a=le();e.removeClass("yp-tooltip-bottom-outside");var i=a.get(0);if(ve(i))return!1;var n,s=i.getBoundingClientRect(),r=parseFloat(ie.scrollTop()),o=parseFloat(s.top+r)-24,l=parseFloat(s.left);if(l<0&&(l=0),e.css("top",o).css("left",l),t.css("top",o).css("left",l),o>=Q(window).height()+ie.scrollTop()-24?(e.addClass("yp-fixed-tooltip"),e.addClass("yp-fixed-tooltip-bottom")):(e.removeClass("yp-fixed-tooltip"),e.removeClass("yp-fixed-tooltip-bottom")),o<2||o<ie.scrollTop()+2){var p=oe.active.find(".yp-selected-boxed-bottom");o=parseFloat(p.css("top"))-parseFloat(za(a)),e.css("top",o),t.css("top",o),e.addClass("yp-fixed-tooltip"),n=100*e.outerHeight()/za(a),-1!=navigator.userAgent.toLowerCase().indexOf("firefox")&&(n=100*e.outerHeight()/za(a)),10<n?(e.addClass("yp-tooltip-bottom-outside"),o=parseFloat(p.css("top"))-parseFloat(e.outerHeight())+e.outerHeight(),e.css("top",o),t.css("top",o)):e.removeClass("yp-tooltip-bottom-outside")}else e.removeClass("yp-fixed-tooltip");n<11&&e.removeClass("yp-tooltip-bottom-outside"),e.hasClass("yp-fixed-tooltip")&&!1===e.hasClass("yp-tooltip-bottom-outside")?t.addClass("yp-fixed-edit-menu"):t.removeClass("yp-fixed-edit-menu"),e.hasClass("yp-tooltip-bottom-outside")?t.addClass("yp-bottom-outside-edit-menu"):t.removeClass("yp-bottom-outside-edit-menu"),e.hasClass("yp-fixed-tooltip-bottom")?t.addClass("yp-fixed-bottom-edit-menu"):t.removeClass("yp-fixed-bottom-edit-menu"),e.css({visibility:"visible","pointer-events":"none"}),t.css({visibility:"visible","pointer-events":"none"}),Q("#iframe").width()-(e.width()+e.offset().left+80)<=0?e.addClass("yp-small-tooltip"):e.hasClass("yp-small-tooltip")&&(e.removeClass("yp-small-tooltip"),Q("#iframe").width()-(e.width()+e.offset().left+80)<=0&&e.addClass("yp-small-tooltip")),e.css({"pointer-events":"auto"}),t.css({"pointer-events":"auto"})}window.reGetBestClass=!1,Q(document).on("click",".view-media-line",function(){var e=Q(this).parents(".selector-group").attr("data-view-size"),t=_a(e),a=Pe(e);if(-1!=e.indexOf("and"))return Q(this).css("cursor","default"),!1;if(window.resizedByPropertySize=!0,"desktop"!=e){0<Q(".yp-responsive-btn.active").length&&Q(".yp-responsive-btn").trigger("click"),Q("#iframe").css("width",t),Oe();var i=ya(a);fe(i)&&(-1<(i=i.toString()).indexOf(",")?Q(".breakpoint-bar .active").removeClass("active"):(-1!=i.indexOf("<")&&0==Q(".breakpoint-bar .max-width").length&&(Q(".media-control").trigger("click"),Q(".media-control").tooltip("hide")),-1!=i.indexOf(">")&&0==Q(".breakpoint-bar .min-width").length&&(Q(".media-control").trigger("click"),Q(".media-control").tooltip("hide"))))}else 0==Q(".yp-responsive-btn.active").length&&Q(".yp-responsive-btn").trigger("click");B(),Be(),be(null,!1),u(),setTimeout(function(){Te(),window.resizedByPropertySize=!1,Be(),be(null,!1),He(200)},window.YellowDelay)}),Q(document).on("click",".phone-icon",function(e){e.originalEvent&&Q(this).parents(".yp-this-content").find(".lock-btn.active").trigger("click");var t=Q(this).parents(".property-has-queries").toggleClass("property-size-tabs-visible");if(Q(".property-size-tabs-visible").not(t[0]).removeClass("property-size-tabs-visible"),se.toggleClass("property-query-active"),Q(t).hasClass("property-size-tabs-visible")&&(t.find(".property-size-tabs .active").removeClass("active"),t.find(".property-size-tabs li").first().addClass("active")),Q(".property-size.active").removeClass("active"),de()&&0<Q(".breakpoint-bar .active").length){var a=ya(Q(".breakpoint-bar .active").attr("data-media-content"));fe(a)&&(a=a.toString(),0<Q(t).find(".property-size[data-property-size='"+a+"']").length&&Q(t).find(".property-size[data-property-size='"+a+"']").addClass("active"))}Te(),Oe(),xa(null),$t(da(),t.attr("data-css-id"),[!1,!0,!1,!0])?Q("#"+t.attr("data-css-id")+"-group").addClass("reset-enable"):Q("#"+t.attr("data-css-id")+"-group").removeClass("reset-enable")}),Q(document).on("click",".property-size",function(){var e=Q(this);if(e.hasClass("active"))return!1;window.resizedByPropertySize=!0,e.parent().find(".active").removeClass("active"),e.addClass("active");var t=e.parents(".yp-option-group").attr("data-css");if("all"!=e.attr("data-property-size")){0<Q(".yp-responsive-btn.active").length&&Q(".yp-responsive-btn").trigger("click"),Q("#iframe").css("width",e.attr("data-property-number")),B(),Oe();var a=ya(e.attr("data-insert-media"));fe(a)&&(-1<(a=a.toString()).indexOf(",")?Q(".breakpoint-bar .active").removeClass("active"):(-1!=a.indexOf("<")&&0==Q(".breakpoint-bar .max-width").length&&(Q(".media-control").trigger("click"),Q(".media-control").tooltip("hide")),-1!=a.indexOf(">")&&0==Q(".breakpoint-bar .min-width").length&&(Q(".media-control").trigger("click"),Q(".media-control").tooltip("hide"))))}else 0==Q(".yp-responsive-btn.active").length&&Q(".yp-responsive-btn").trigger("click"),e.addClass("active");Be(),be(null,!1),u(),pe()&&Ie(!0),setTimeout(function(){Yt(t),Te(),window.resizedByPropertySize=!1,Be(),be(null,!1),He(200)},window.YellowDelay),setTimeout(function(){Q(".property-size-tabs-visible .property-size.active").tooltip("hide")},window.Yellow2Delay)}),ie.on("click",".yp-selected-others",function(){var e=Q(this),t=da();if(re.hasClass("yp-control-key-down")&&0<t.split(",").length){e.removeClass("yp-selected-others yp-recent-hover-element");var a=fa(e,"sharp");return F(t=t.replace(new RegExp(","+wa(a),"g"),""),le(),!0),e.removeClass("yp-multiple-selected"),Be(),!1}}),ie.on("mouseup",ie,function(){Q(document).trigger("mouseup"),ie.find(".yp-will-selected").removeClass("yp-will-selected"),oe.extra.find(".yp-iframe-placeholder,.yp-element-placeholder").remove(),setTimeout(function(){re.removeClass("yp-tooltip-input-blur-only")},10)}),ie.on("mousedown",ie,function(){0<ie.find("input.yp-tooltip-small").length&&re.addClass("yp-tooltip-input-blur-only")}),window.mouseisDown=!1,window.styleAttrBeforeChange=null,window.visualResizingType=null,window.ResizeSelectedBorder=null,window.elementOffsetLeft=null,window.elementOffsetRight=null;function Oa(){g({title:J.page_information_cant_be_retrieved,text:J.page_information_cant_be_retrieved_msg,animation:!1,customClass:"editor-style-ok"}),Q(".loading-files").html(""),Q(".yp-iframe-loader").css("background-image","none"),Q(".sa-error-container,.sa-button-container").css("display","none"),Q(".editor-style-ok p").css("margin-bottom","0px"),Q(document).on("keyup keydown",function(e){if(27==(e.keyCode||e.which))return!1})}function Ta(){if(se.hasClass("yp-smart-guide-disabled"))return!1;for(var e=0,t=null,a=Q(window).width(),i=ne.find(Ia(":not(li)")),n=0;n<i.length;n++){var s=Q(i[n]),r=s.get(0);if(!ve(r)){var o=r.getBoundingClientRect().width;720<=o&&o<=1268&&o<a-80&&(e<o&&(t=s),e=Math.max(o,e));var l=r.getBoundingClientRect();if(s.parents(".yp-selected").length<=0&&s.parents(".yp-selected-others").length<=0&&"none"!=s.css("display")&&"0"!=s.css("opacity")&&"hidden"!=s.css("visibility")&&10<=l.height){var p=Math.round(l.top+ie.scrollTop()),d=Math.round(l.left),c=Math.round(l.height);ne.find('[data-yp-top="'+p+'"][data-yp-left="'+d+'"][data-yp-width="'+o+'"][data-yp-height="'+c+'"]').length<=0&&s.addClass("yp-smart-guide-elements").attr("data-yp-top",p).attr("data-yp-left",d).attr("data-yp-top-round",Fa(p)).attr("data-yp-bottom-round",Fa(p+c)).attr("data-yp-left-round",Fa(d)).attr("data-yp-right-round",Fa(d+o)).attr("data-yp-width",o).attr("data-yp-height",c)}}}if(null!==t){var u=t.get(0);if(!ve(u)){var m=u.getBoundingClientRect().left;if(50<m){var g=m+e;parseInt(m)==parseInt(ie.width()-g)&&oe.extra.append("<div class='yp-page-border-left' style='left:"+m+"px;'></div><div class='yp-page-border-right' style='left:"+g+"px;'></div>")}}}oe.extra.append("<div class='yp-x-distance-border'></div><div class='yp-y-distance-border'></div>")}function Za(){oe.extra.find(".yp-page-border-left,.yp-page-border-right").remove(),oe.extra.find(".yp-x-distance-border,.yp-y-distance-border,.yp-helper-tooltip").remove(),ne.find(".yp-smart-guide-elements").removeClass("yp-smart-guide-elements").removeAttr("data-yp-top").removeAttr("data-yp-left").removeAttr("data-yp-width").removeAttr("data-yp-top-round").removeAttr("data-yp-bottom-round").removeAttr("data-yp-left-round").removeAttr("data-yp-right-round").removeAttr("data-yp-height")}function Sa(e,t){var a=[],i=!1;if(0<e.parent().length&&-1==e.parent().css("display").indexOf("table")&&"inline"!=e.parent().css("display")&&"inline-flex"!=e.parent().css("display")){var n=e.parent().width();1==window.liveResizeWPercent&&(i=!0,a.val=Math.round(100*parseFloat(t)/parseFloat(n)*10)/10,a.format="%"),parseInt(n)==parseInt(t)&&0==i&&(i=!0,a.val=100,a.format="%"),parseInt(n/2)==parseInt(t)&&0==i&&(i=!0,a.val=50,a.format="%"),parseInt(n/4)==parseInt(t)&&0==i&&(i=!0,a.val=25,a.format="%"),parseInt(n/5)==parseInt(t)&&0==i&&(i=!0,a.val=20,a.format="%")}return!1===i&&(a.val=t,a.format="px"),a}function Fa(e){return 6*Math.round(e/6)}function Ia(e){for(var t="*",a=[".yp-x-distance-border",".yp-y-distance-border",".hover-info-box",".yp-size-handle",".yp-edit-tooltip",".yp-edit-menu",".yp-selected-tooltip",".yp-tooltip-small",".yp-helper-tooltip","[class^='yp-selected-boxed-']","[class^='yp-selected-others-box']","link","style","script","param","option","tr","td","th","thead","tbody","tfoot","iframe","noscript",".scene-1",".scene-2",".scene-3",".scene-4",".scene-5",".scene-6","#yp-anim-scenes","#animate-test-drive"],i=window.plugin_classes_list.split("|"),n=0;n<i.length;n++)i[n]="."+i[n];a=a.concat(i);for(var s=0;s<a.length;s++)t+=":not("+a[s]+")";return void 0!==e&&(t+=e),t}function Ea(e){return void 0!==e&&""!=e?null===e.replace(/[^\d.-]/g,"")||void 0===e.replace(/[^\d.-]/g,"")?0:e.replace(/[^\d.-]/g,""):0}ie.find("a[href]").on("click",ie,function(e){if(Q(this).attr("target","_self"),!1===re.hasClass("yp-metric-disable"))return!1;if(0===Q(".inspector-sublist-default.active,.inspector-sublist-single.active").length){var t=Q(this).attr("href");if(""==t||"#"==t.substring(0,1)||-1!=t.indexOf("javascript:")||-1!=t.indexOf("yellow_pencil=true"))return!1;if(r=t,(o=document.createElement("a")).href=r,-1<(t=o.protocol+"//"+o.host+o.pathname+o.search+o.hash).indexOf("#noAiming"))return g({title:J.sorry,text:J.not_wp_link,animation:!1,customClass:"editor-style-ok"}),!1;if(""==t||"#"==t.substring(0,1)||-1!=t.indexOf("javascript:")||-1!=t.indexOf("yellow_pencil=true"))return!1;if((i=(i=-1<(a=t).indexOf("://")?a.split("/")[2]:a.split("/")[0]).split(":")[0],Q.trim(i))!=window.location.hostname)return g({title:J.sorry,text:J.external_link,animation:!1,customClass:"editor-style-ok"}),!1;if(-1==t.indexOf(siteurl.split("://")[1])||-1!=t.indexOf("wp-login.php?action=logout"))return g({title:J.sorry,text:J.link_not_valid,animation:!1,customClass:"editor-style-ok"}),!1;if("http:"==location.protocol&&-1!=t.indexOf("https:")&&-1==t.indexOf("http:")&&(t=t.replace("https:","http:"),Q(this).attr("href",t)),"https:"==location.protocol&&-1!=t.indexOf("http:")&&-1==t.indexOf("https:")&&(t=t.replace("http:","https:"),Q(this).attr("href",t)),Q(".yp-save-btn").hasClass("waiting-for-save")){if(1!=confirm(J.sure))return!1;Q(".waiting-for-save").removeClass("waiting-for-save")}Q("#iframe").remove(),se.removeClass("yp-yellow-pencil-loaded"),Q(".yp-iframe-loader").show(),Q(".loading-files").html(J.page_loading),Q("#loader i").css("width","5%");var n=window.location;n=n.toString().split("href=")[0]+"href=";var s=t;if("about:"==s.substring(0,6))return Q(this).show(),!1;s=s.replace(/\/?(\?|#|$)/,"/$1"),Q.post(s,{yp_get_details:"true"}).done(function(e){if(e=Q("<div />").append(e).find("#yp_page_details").html(),-1!=s.indexOf("/wp-login.php")&&(e="login|login|single"),-1!=s.indexOf("/wp-login.php")&&-1!=s.indexOf("action=lostpassword")&&(e="lostpassword|lostpassword|single"),-1!=s.indexOf("/wp-login.php")&&-1!=s.indexOf("action=register")&&(e="register|register|single"),null==e||null==e)return Oa(),!1;var t=e.split("|")[0],a=e.split("|")[1],i=e.split("|")[2];s=(s=s.replace(/.*?:\/\//g,"")).replace("&yellow_pencil_frame","").replace("?yellow_pencil_frame",""),s=encodeURIComponent(s),n=n+s+"&yp_page_id="+t+"&yp_page_type="+a+"&yp_mode="+i,window.location=n}).fail(function(){Oa()})}var a,i,r,o}),ie.on("click",ie,function(e){if("block"==Q("#customizing-type-list").css("display")&&"block"!=Q(".sweet-overlay").css("display"))return Q("#customizing-type-list").toggle(),Q("#customizing-mode,#customizing-type-list").removeClass("active"),Q(".starter-notice").removeClass("padded-starter-notice"),!1;if(re.hasClass("yp-tooltip-input-blur-only"))return!1;if(0<Q(".inspector-sublist-default.active,.inspector-sublist-single.active").length&&re.hasClass("yp-metric-disable")){if(1!=e.which&&void 0!==e.which||(e.stopPropagation(),e.preventDefault()),se.hasClass("yp-animate-manager-playing"))return!1;if(se.hasClass("yp-visual-edited"))return se.removeClass("yp-visual-edited"),!1;if(se.hasClass("yp-element-resized")||se.hasClass("resize-time-delay"))return se.removeClass("yp-element-resized resize-time-delay"),!1;if(re.hasClass("yp-element-picker-active")){ie.find("#colorPickerLiveCSS").remove();var t=Q(".yp-element-picker.active").parents(".yp-option-group").attr("data-css");return Q("#yp-"+t).iris("color",Qa(window.pickerColor.toString())),at(null,t,Qa(window.pickerColor.toString())),Q(".yp-option-group[data-css='"+t+"']").addClass("reset-enable"),se.removeClass("yp-element-picker-active"),Q(".yp-element-picker.active").removeClass("active"),Ja(),!1}if(0!==Q(".yp_flat_colors_area:visible").length)return Q(".yp-flat-colors.active").each(function(){Q(this).trigger("click")}),!1;if(0!==Q(".yp_meterial_colors_area:visible").length)return Q(".yp-meterial-colors.active").each(function(){Q(this).trigger("click")}),!1;if(0!==Q(".yp_nice_colors_area:visible").length)return Q(".yp-nice-colors.active").each(function(){Q(this).trigger("click")}),!1;if(0!==Q(".yp_theme_colors_area:visible").length)return Q(".yp-theme-colors.active").each(function(){Q(this).trigger("click")}),!1;if(0!==Q(".iris-picker:visible").length)return Q(".iris-picker:visible").each(function(){Q(this).hide()}),Ne(),!1;if(0!==Q(".yp_background_assets:visible").length)return Q(".yp-bg-img-btn.active").each(function(){Q(this).trigger("click")}),!1;if(0!==Q(".yp-gradient-section:visible").length)return Q(".yp-gradient-btn.active").each(function(){Q(this).trigger("click")}),!1;if(re.hasClass("autocomplete-active"))return Q(".input-autocomplete").each(function(){Q(this).autocomplete("close")}),!1;if(!0===pe()&&0<ie.find(".context-menu-active").length)return le().contextMenu("hide"),!1;var a,i=Q(e.target);if((void 0===e.which||1==e.which)&&!0===pe()){if(i.hasClass("yp-edit-menu")&&!1===i.hasClass("yp-content-selected")){if(ve(d=i.get(0)))return!1;var n=(a=d.getBoundingClientRect()).left;0===n&&(n=1);var s=a.top+26+ie.scrollTop();return le().contextMenu({x:n,y:s}),!1}if(i.hasClass("yp-selected-tooltip"))return ke(),!1;if(0<i.parent().length&&i.parent().hasClass("yp-selected-tooltip"))return ke(),!1;if(i.is("[class*=yp-selected-boxed-margin-],[class*=yp-selected-boxed-padding-]"))return clearTimeout(window.visualEditDelay),!1}if(se.hasClass("yp-selector-disabled"))return!1;var r=fa(i,"default");if(re.hasClass("autocomplete-active")&&"body"==r)return!1;if(ypOption.high_performance){var o=i.prop("tagName").toLowerCase();"html"!=o&&"body"!=o&&"svg"!=o&&"img"!=o||(se.attr("data-clickable-select",r),oe.general.find(".yp-selected-tooltip").html("<small class='yp-tooltip-small'>"+Pa(r,!0,null)+"</small> "+Q.trim(r)))}if(1==e.which||void 0===e.which){if(!1===i.hasClass("yp-selected")&&!0===i.hasClass("yp-recent-hover-element")){if(!0===pe()&&1!=i.parents(".yp-selected").length){if(ce()&&!1===v())return g({title:J.closeAnim,showCancelButton:!0,animation:!1,customClass:"editor-style",confirmButtonText:"Close"},function(e){e&&(swal.close(),R(!0))}),!1;if(pe()&&re.hasClass("yp-control-key-down")){if(!1===i.hasClass("yp-selected-others-box")){var l=da(),p=fa(i,"sharp");oe.other.find(".yp-selected-others-multiple-box").remove(),ie.find(".yp-multiple-selected").addClass("yp-selected-others").removeClass("yp-multiple-selected"),F(l+","+p,le(),!0),i.blur()}return!1}_t(),window.mouseoverTrigger=!0,Q(e.target).trigger("mouseover"),window.mouseoverTrigger=!1}}else if(!1===pe()){var d;if(se.attr("data-clickable-select",r),S=i,0<ne.find(".yp-selected").length&&(window.defaultStyleAttr=S.attr("style"),S.draggable({containment:"document",delay:100,start:function(e,t){if(window.elDragWidth=S.outerWidth(),window.elDragHeight=S.outerHeight(),!pe())return!1;0<ie.find(".context-menu-active").length&&S.contextMenu("hide"),window.styleAttrBeforeDrag=S.attr("style"),oe.extra.find(".yp-element-placeholder").remove(),S.removeClass("yp_onscreen yp_hover yp_click yp_focus"),se.addClass("yp-clean-look yp-dragging yp-hide-borders-now"),oe.extra.append("<div class='yp-helper-tooltip'></div>"),Ta();for(var a,i=["top","left","right","bottom"],n=ee(),s=0;s<4;s++)-1!=(a=te(n,"[selector="+$a(da())+"][rule="+i[s]+"]").toString()).indexOf("!important")&&U(m(n,"[selector="+$a(da())+"][rule="+i[s]+"]",a.replace(/\!important/g,"",null)))},drag:function(e,t){window.elDragHeight!=Q(this).outerHeight()&&(S.css("width",window.elDragWidth+1),S.css("height",window.elDragHeight));var a,i,n,s,r,o,l,p,d,c,u,m,g=Q(this);va(".yp-selected","yp-selected-boxed");var h=g.outerWidth(),f=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-top").css("top"))),v=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-left").css("left"))),y=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-right").css("left"))),w=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-bottom").css("top"))),b=y-v,x=w-f,_=parseFloat(g.css("left")),k=parseFloat(g.css("top")),C=parseFloat(g.css("marginTop")),z=parseFloat(g.css("marginLeft")),A=ne.find(".yp-y-distance-border"),O=ne.find(".yp-x-distance-border");O.css("display","none"),A.css("display","none");var T=ne.find(".yp-smart-guide-elements[data-yp-bottom-round='"+Fa(w)+"']");0<(T=(T=(T=T.add(ne.find(".yp-smart-guide-elements[data-yp-top-round='"+Fa(f)+"']"))).add(ne.find(".yp-smart-guide-elements[data-yp-top-round='"+Fa(w)+"']"))).add(ne.find(".yp-smart-guide-elements[data-yp-bottom-round='"+Fa(f)+"']"))).length&&(l=parseFloat(T.attr("data-yp-top")),p=parseFloat(T.attr("data-yp-left")),d=parseFloat(T.attr("data-yp-width")),c=parseFloat(T.attr("data-yp-height")),u=parseFloat(l+c),m=parseFloat(p+d),s=p<v?y-(n=p):m-(n=v),T.attr("data-yp-top-round")==Fa(f)&&(r=l),T.attr("data-yp-bottom-round")==Fa(w)&&(r=u),T.attr("data-yp-bottom-round")==Fa(f)&&(r=u),T.attr("data-yp-top-round")==Fa(w)&&(r=l),(a=t.offset.top+C-l)<6&&a>-Math.abs(6)&&(i=Math.round(l-f+k),t.position.top=i,O.css({top:r,left:n,width:s,display:"block"})),(a=t.offset.top+C-u+x)<6&&a>-Math.abs(6)&&(i=Math.round(u-w+k),t.position.top=i,O.css({top:r,left:n,width:s,display:"block"})),(a=t.offset.top+C-l+x)<6&&a>-Math.abs(6)&&(i=Math.round(l-w+k),t.position.top=i,O.css({top:r,left:n,width:s,display:"block"})),(a=t.offset.top+C-u)<6&&a>-Math.abs(6)&&(i=Math.round(u-f+k),t.position.top=i,O.css({top:r,left:n,width:s,display:"block"})));var Z=ne.find(".yp-smart-guide-elements[data-yp-right-round='"+Fa(y)+"']");0<(Z=(Z=(Z=Z.add(ne.find(".yp-smart-guide-elements[data-yp-left-round='"+Fa(v)+"']"))).add(ne.find(".yp-smart-guide-elements[data-yp-left-round='"+Fa(y)+"']"))).add(ne.find(".yp-smart-guide-elements[data-yp-right-round='"+Fa(v)+"']"))).length&&(l=parseFloat(Z.attr("data-yp-top")),p=parseFloat(Z.attr("data-yp-left")),d=parseFloat(Z.attr("data-yp-width")),c=parseFloat(Z.attr("data-yp-height")),u=parseFloat(l+c),m=parseFloat(p+d),o=l<f?w-(r=l):u-(r=f),Z.attr("data-yp-left-round")==Fa(v)&&(n=p),Z.attr("data-yp-right-round")==Fa(y)&&(n=m),Z.attr("data-yp-right-round")==Fa(v)&&(n=m),Z.attr("data-yp-left-round")==Fa(y)&&(n=p),(a=t.offset.left+z-p)<6&&a>-Math.abs(6)&&(i=Math.round(p-v+_),t.position.left=i,A.css({top:r,left:n,height:o,display:"block"})),(a=t.offset.left+z-m)<6&&a>-Math.abs(6)&&(i=Math.round(m-v+_),t.position.left=i,A.css({top:r,left:n,height:o,display:"block"})),(a=t.offset.left+z-m+b)<6&&a>-Math.abs(6)&&(i=Math.round(m-y+_),t.position.left=i,A.css({top:r,left:n,height:o,display:"block"})),(a=Math.round(t.offset.left+z-p+h))<6&&a>-Math.abs(6)&&(i=Math.round(p-y+_-(h-b)),t.position.left=i,A.css({top:r,left:n,height:o,display:"block"}))),1!=t.position.top&&-1!=t.position.top&&2!=t.position.top&&-2!=t.position.top||(t.position.top=0),1!=t.position.left&&-1!=t.position.left&&2!=t.position.left&&-2!=t.position.left||(t.position.left=0),60<=f?oe.extra.find(".yp-helper-tooltip").css({top:f,left:v}).html("X : "+parseInt(t.position.left)+" px<br>Y : "+parseInt(t.position.top)+" px"):oe.extra.find(".yp-helper-tooltip").css({top:f+x+40+10,left:v}).html("X : "+parseInt(t.position.left)+" px<br>Y : "+parseInt(t.position.top)+" px")},stop:function(){Za(),Aa();var e=S.css("top"),t=S.css("left"),a=S.css("bottom"),i=S.css("right");0!=window.styleAttrBeforeDrag&&null!=window.styleAttrBeforeDrag?S.attr("style",window.styleAttrBeforeDrag):S.removeAttr("style"),at(null,"top",e,""),at(null,"left",t,""),parseFloat(e)+parseFloat(a)!==0&&at(null,"bottom","auto",""),parseFloat(t)+parseFloat(i)!==0&&at(null,"right","auto",""),Ze(),ie.find(".yp-selected,.yp-selected-others").removeClass("ui-draggable-handle ui-draggable-handle"),Ja(),se.removeClass("yp-clean-look yp-dragging yp-hide-borders-now"),Be(),Ne()}})),window.visualResizingType="width",window.ResizeSelectedBorder="right",window.styleAttrBeforeChange=i.attr("style"),ve(d=i.get(0)))return!1;a=d.getBoundingClientRect(),window.elementOffsetLeft=a.left,window.elementOffsetRight=a.right,i.width(parseFloat(i.width()+10)),window.elementOffsetLeft==a.left&&window.elementOffsetRight!=a.right?window.ResizeSelectedBorder="right":window.elementOffsetLeft!=a.left&&window.elementOffsetRight==a.right&&"center"!=i.css("text-align")?window.ResizeSelectedBorder="left":window.ResizeSelectedBorder="right",fe(window.styleAttrBeforeChange)?i.attr("style",window.styleAttrBeforeChange):(i.removeAttr("style"),window.styleAttrBeforeChange=null),se.addClass("yp-content-selected"),re.hasClass("yp-control-key-down")||(window.firstSelectLimit=!0),jt(),re.hasClass("yp-css-editor-active")&&Ie(!0),Ot(),0==window.targetIsParentTree&&1==ypOption.show_parent_tree&&$e(),window.orginalHeight=parseFloat(i.css("height").replace(/px/g,"")),window.orginalWidth=parseFloat(i.css("width").replace(/px/g,"")),"right"==i.css("float")?se.addClass("yp-element-float"):se.removeClass("yp-element-float");var c=i.prop("tagName").toLowerCase();"ul"==c||"ol"==c||"li"==c?se.addClass("yp-element-list"):se.removeClass("yp-element-list");var u=i.css("display");"flex"!=u&&"inline-flex"!=u||(se.addClass("yp-flex-container"),Q("li.flex-option").insertBefore(Q("li.grid-option"))),0<i.parent().length&&("flex"!=(u=i.parent().css("display"))&&"inline-flex"!=u||(se.addClass("yp-flex-element"),Q("li.flex-option").insertBefore(Q("li.grid-option")))),"grid"!=(u=i.css("display"))&&"inline-grid"!=u||(se.addClass("yp-grid-element"),Q("li.grid-option").insertBefore(Q("li.flex-option"))),i.blur(),b()&&_(),"block"==Q(".advanced-info-box").css("display")&&x("element")}}else if(fe(Q(e.target).attr("href")))return e.stopPropagation(),e.preventDefault(),!1;Be(),Ne()}var S}),ie.on("mousedown",".yp-selected-boxed-left,.yp-selected-boxed-right",function(e){var n=Q(this);if(0==se.hasClass("yp-element-float")&&n.hasClass("yp-selected-boxed-left"))return!1;se.addClass("resize-time-delay");var s="",t=$t(da(),"width",[!1,!1,!1,!1]);"object"==typeof t&&t.always(function(e){s=e}),clearTimeout(window.resizeDelay),window.resizeDelay=setTimeout(function(){if(!1===pe())return!1;window.visualResizingType="width",n.hasClass("yp-selected-boxed-left")?window.ResizeSelectedBorder="left":window.ResizeSelectedBorder="right",window.mouseisDown=!0;var e=ne.find(".yp-selected"),t=n.get(0);if(ve(t))a={width:0,height:0,left:0,right:0,top:0,bottom:0};else var a=t.getBoundingClientRect();window.mouseDownX=a.left,window.exWidthX=parseFloat(a.width),window.exWidthY=null,window.currentMarginLeft=parseFloat(e.css("marginLeft")),window.maxData={width:parseFloat(e.css("maxWidth")),height:parseFloat(e.css("maxHeight"))},window.minData={width:parseFloat(e.css("minWidth")),height:parseFloat(e.css("minHeight"))};var i=Sa(le(),le().css("width"));window.liveResizeWPercent=!1,"%"==i.format&&(window.liveResizeWPercent=!0),"%"!=i.format&&$t(da(),"width",[!1,!0,!1,!1])&&-1!=s.indexOf("%")&&(window.liveResizeWPercent=!0),ie.find("html").addClass("yp-element-resizing"),se.addClass("yp-element-resizing yp-clean-look"),0<ie.find(".context-menu-active").length&&le().contextMenu("hide"),oe.extra.append("<div class='yp-helper-tooltip'></div>"),Ta()},150)}),ie.on("mousedown",".yp-selected-boxed-bottom",function(e){var n=Q(this);se.addClass("resize-time-delay"),clearTimeout(window.resizeDelay),window.resizeDelay=setTimeout(function(){if(!1===pe())return!1;window.mouseisDown=!0,window.visualResizingType="height",n.hasClass("yp-selected-boxed-top")?window.ResizeSelectedBorder="top":window.ResizeSelectedBorder="bottom";var e=ie.find(".yp-selected"),t=e.get(0);if(ve(t))a={width:0,height:0,left:0,right:0,top:0,bottom:0};else var a=t.getBoundingClientRect();var i=parseFloat(ie.scrollTop());window.mouseDownY=a.top+i,window.exWidthY=parseFloat(a.height),window.exWidthX=null,window.currentMarginTop=parseFloat(e.css("marginTop")),window.maxData={width:parseFloat(e.css("maxWidth")),height:parseFloat(e.css("maxHeight"))},window.minData={width:parseFloat(e.css("minWidth")),height:parseFloat(e.css("minHeight"))},se.addClass("yp-element-resizing yp-clean-look"),0<ie.find(".context-menu-active").length&&le().contextMenu("hide"),ie.find(da()).removeClass("yp_selected yp_onscreen yp_hover yp_focus yp_click"),oe.extra.append("<div class='yp-helper-tooltip'></div>"),Ta()},150)}),ie.on("mousemove",ie,function(e){if(!0===window.mouseisDown){var t=oe.extra.find(".yp-y-distance-border"),a=oe.extra.find(".yp-x-distance-border"),i=le(),n=i.get(0);if(ve(n))s={width:0,height:0,left:0,right:0,top:0,bottom:0};else var s=n.getBoundingClientRect();"inline"==i.css("display")&&at(null,"display","inline-block","");var r,o,l,p,d="px";1==window.liveResizeWPercent&&(d="%"),"width"==window.visualResizingType?(p=s.width-i.outerWidth(!1),r="left"==window.ResizeSelectedBorder?Math.round(s.left)+Math.round(s.width)-Math.round(e.pageX)-p:Math.round(e.pageX)-Math.round(s.left)-p,("px"==d&&4<r||"%"==d&&2<r)&&("content-box"==i.css("boxSizing")&&(r=r-Math.round(parseFloat(i.css("paddingLeft")))-Math.round(parseFloat(i.css("paddingRight")))),r=(o=Sa(i,r)).val,d=o.format,!1===window.wasLockX&&i.cssImportant("width",r+d),va(".yp-selected","yp-selected-boxed")),se.addClass("yp-element-resizing-width-"+window.ResizeSelectedBorder)):"height"==window.visualResizingType&&(p=s.height-i.outerHeight(!1),l="top"==window.ResizeSelectedBorder?Math.round(s.bottom+ie.scrollTop())-Math.round(e.pageY):Math.round(e.pageY)-Math.round(s.top+ie.scrollTop())-p,"px"==d&&4<l&&("content-box"==i.css("boxSizing")&&(l=l-Math.round(parseFloat(i.css("paddingTop")))-Math.round(parseFloat(i.css("paddingBottom")))),!1===window.wasLockY&&i.cssImportant("height",l+d),va(".yp-selected","yp-selected-boxed")),se.addClass("yp-element-resizing-height-"+window.ResizeSelectedBorder));var c="";c="width"==window.visualResizingType?(r<5&&"px"==d?r=5:r<2&&(r=2),"W : "+("%"==d?Math.round(10*r)/10:Math.round(r))+d):(l<5&&(l=5),"H : "+Math.round(l)+d),"height"==window.visualResizingType?parseInt(window.orginalHeight)==parseInt(l)&&(c="H : initial - "+window.orginalHeight+"px"):parseInt(window.orginalWidth)==parseInt(r)&&(c="W : initial - "+window.orginalWidth+"px");var u,m,g,h,f,v,y,w,b,x,_,k,C=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-top").css("top"))),z=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-left").css("left"))),A=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-right").css("left"))),O=Math.round(parseFloat(oe.active.find(".yp-selected-boxed-bottom").css("top")));if("height"==window.visualResizingType){a.css("display","none"),window.wasLockY=!1;var T=ne.find(".yp-smart-guide-elements[data-yp-top-round='"+Fa(e.pageY)+"'],.yp-smart-guide-elements[data-yp-bottom-round='"+Fa(e.pageY)+"']").first();0<T.length&&(y=parseFloat(T.attr("data-yp-top")),w=parseFloat(T.attr("data-yp-left")),b=parseFloat(T.attr("data-yp-width")),x=parseFloat(T.attr("data-yp-height")),_=parseFloat(y+x),k=parseFloat(w+b),m=w<z?A-(u=w):k-(u=z),h=T.attr("data-yp-top-round")==Fa(e.pageY)?(g=y)-C:(g=_)-C,h-=p=s.height-i.outerHeight(!1),"top"!=window.ResizeSelectedBorder?(i.cssImportant("height",h+d),window.wasLockY=!0):h=l,a.css({top:g,left:u,width:m,display:"block"}),h<5&&(h=5),c="H : "+Math.round(h)+d),parseInt(window.orginalHeight)==parseInt(h)&&(c="H : initial - "+window.orginalHeight+"px")}if("width"==window.visualResizingType){window.wasLockX=!1,t.css("display","none");var Z=ne.find(".yp-smart-guide-elements[data-yp-left-round='"+Fa(e.pageX)+"'],.yp-smart-guide-elements[data-yp-right-round='"+Fa(e.pageX)+"']").first();0<Z.length&&(y=parseFloat(Z.attr("data-yp-top")),w=parseFloat(Z.attr("data-yp-left")),b=parseFloat(Z.attr("data-yp-width")),x=parseFloat(Z.attr("data-yp-height")),_=parseFloat(y+x),k=parseFloat(w+b),f=y<C?O-(g=y):_-(g=C),v=Z.attr("data-yp-left-round")==Fa(e.pageX)?(u=w)-z:(u=k)-z,v=(o=Sa(i,v-=p=s.width-i.outerWidth(!1))).val,d=o.format,"left"!=window.ResizeSelectedBorder?(i.cssImportant("width",v+d),window.wasLockX=!0):v=r,t.css({top:g,left:u,height:f,display:"block"}),c="W : "+("%"==d?(v<2&&(v=2),Math.round(10*v)/10):(v<5&&(v=5),Math.round(v)))+d),parseInt(window.orginalWidth)==parseInt(v)&&(c="W : initial - "+window.orginalWidth+"px")}var S=e.pageX+30;S+120>=Q("#iframe").width()&&(S=e.pageX-120),oe.extra.find(".yp-helper-tooltip").css({top:e.pageY,left:S}).html(c)}}),ie.on("mouseup",ie,function(){if(clearTimeout(window.resizeDelay),y()){var e;Za(),oe.extra.find(".yp-helper-tooltip").remove(),se.addClass("yp-element-resized"),e="width"==window.visualResizingType?window.exWidthX:window.exWidthY;var t=le(),a=parseFloat(t.css(window.visualResizingType)).toString(),i="px",n=a;if("width"==window.visualResizingType){var s=Sa(t,a);a=s.val,i=s.format}a=Math.round(a),null!==window.exWidthX&&"left"==window.ResizeSelectedBorder&&n!=e&&at(null,"margin-left",parseFloat(t.css("marginLeft")),"px"),null!==window.exWidthY&&"top"==window.ResizeSelectedBorder&&n!=e&&at(null,"margin-top",parseFloat(t.css("marginTop")),"px"),fe(window.styleAttrBeforeChange)?t.attr("style",window.styleAttrBeforeChange):t.removeAttr("style"),ut("min-height",a+""+i),n!=e&&("height"==window.visualResizingType&&n>window.orginalHeight?(U(G(ee(),"[selector="+$a(da())+"][rule=height][msize="+Ue()+"]")),setTimeout(function(){at(null,"min-height",a,i)},5)):at(null,window.visualResizingType,a,i)),ie.find("html").removeClass("yp-element-resizing"),se.removeClass("yp-element-resizing yp-clean-look yp-element-resizing-height-bottom yp-element-resizing-width-right"),window.maxData[window.visualResizingType]<a&&at(null,"max-"+window.visualResizingType,a,i),window.minData[window.visualResizingType]>a&&at(null,"min-"+window.visualResizingType,a,i),Be(),Ja(),Q.each(["width","height","max-width","max-height","min-width","min-height","margin-left","margin-top"],function(e,t){Yt(t)}),window.mouseisDown=!1,window.liveResizeWPercent=!1,Be(),setTimeout(function(){se.removeClass("yp-element-resized resize-time-delay")},100)}}),window.visualEdit=!1,window.visualEditDelay=null,ie.on("mousedown",".yp-selected-boxed-margin-left,.yp-selected-boxed-margin-right,.yp-selected-boxed-margin-top,.yp-selected-boxed-margin-bottom,.yp-selected-boxed-padding-left,.yp-selected-boxed-padding-right,.yp-selected-boxed-padding-top,.yp-selected-boxed-padding-bottom",function(a){if(2==a.which||3==a.which)return!1;var i=Q(this);clearTimeout(window.visualEditDelay),window.visualEditDelay=setTimeout(function(){if(!1===pe())return!1;var e=i.attr("class").replace(/yp-recent-hover-element/g,"").trim();i.addClass("yp-visual-active").removeClass("yp-zero-margin-w yp-zero-margin-h"),window.visualEditType=e.match(/boxed-[a-z]+/g).toString().replace("boxed-",""),window.visualEditPosition=e.match(/boxed-(margin|padding)-[a-z]+/g).toString().replace(/boxed-|margin|padding|-/g,""),window.visualEdit=!0,window.visualEditX=Math.round(a.pageX),window.visualEditY=Math.round(a.pageY);var t=window.visualEditType+"-"+window.visualEditPosition;window.visualEditValue=le().css(t),window.visualEditValueOr=window.visualEditValue,ve(window.visualEditValue)?window.visualEditValue=5:window.visualEditValue=parseInt(window.visualEditValue),se.addClass("yp-visual-editing yp-clean-look"),/(left|right)/g.test(window.visualEditPosition)?se.addClass("yp-visual-editing-x"):se.addClass("yp-visual-editing-y"),window.currentLiveSelector=function(e){if(void 0===e&&(e=le()),void 0===e[0]||!1===e[0]||null===e[0])return!1;for(var t,a=e.parentsUntil("body"),i="body",n=oa(e),s=a.length-1;0<=s;s--)t=oa(a[s]),/\.|#/g.test(t)&&(t=a[s].tagName.toLowerCase()+t),i=ja(i).trim()+" > "+t+window.separator;return i=ja(i+" > "+n+".yp-selected")}(),se.addClass("yp-has-transform")},150)}),ie.on("mousemove",ie,function(e){if(window.visualEdit){var t,a,i,n;n=/(left|right)/g.test(window.visualEditPosition)?(t="padding"==window.visualEditType?/left/g.test(window.visualEditPosition)?Math.round(e.pageX)-window.visualEditX:window.visualEditX-Math.round(e.pageX):Math.round(e.pageX)-window.visualEditX,"width"):(t=Math.round(e.pageY)-window.visualEditY,"height"),(t+=window.visualEditValue)<0&&(t=0),a=window.visualEditType+"-"+window.visualEditPosition,i="";var s=le(),r=s.get(0);if(ve(r))o={width:0,height:0,left:0,right:0,top:0,bottom:0};else var o=r.getBoundingClientRect();var l,p,d,c,u=parseFloat(ie.scrollTop()),m=o.width,g=o.height,h=o.top+u,f=o.left,v=parseFloat(f+m),y=parseFloat(h+g);window.visualEditType+"-"+window.visualEditPosition=="margin-right"&&(i+=".yp-selected-boxed-margin-right{ top: "+h+"px !important; height:"+g+"px !important;left:"+v+"px !important; }"),window.visualEditType+"-"+window.visualEditPosition=="padding-right"&&(i+=".yp-selected-boxed-padding-right{ top: "+h+"px !important; height:"+g+"px !important;left:"+(v-t)+"px !important; }"),window.visualEditType+"-"+window.visualEditPosition=="margin-left"&&(i+=".yp-selected-boxed-margin-left{ top: "+h+"px !important; height:"+g+"px !important;left:"+(f-t)+"px !important; }"),window.visualEditType+"-"+window.visualEditPosition=="padding-left"&&(i+=".yp-selected-boxed-padding-left{ top: "+h+"px !important; height:"+g+"px !important;left:"+f+"px !important; }"),window.visualEditType+"-"+window.visualEditPosition!="margin-top"&&window.visualEditType+"-"+window.visualEditPosition!="margin-bottom"||(l=parseFloat(s.css("margin-left")),p=parseFloat(s.css("margin-right")),d=parseFloat(m)+l+p,c=parseFloat(f)-l),window.visualEditType+"-"+window.visualEditPosition=="margin-top"&&(i+=".yp-selected-boxed-margin-top{ top: "+(h-t)+"px !important; width:"+d+"px !important;left:"+c+"px !important; }"),window.visualEditType+"-"+window.visualEditPosition=="padding-top"&&(i+=".yp-selected-boxed-padding-top{ top: "+h+"px !important; width:"+m+"px !important;left:"+f+"px !important; }"),window.visualEditType+"-"+window.visualEditPosition=="margin-bottom"&&(i+=".yp-selected-boxed-margin-bottom{ top: "+y+"px !important; width:"+d+"px !important;left:"+c+"px !important; }"),window.visualEditType+"-"+window.visualEditPosition=="padding-bottom"&&(i+=".yp-selected-boxed-padding-bottom{ top: "+(y-t)+"px !important; width:"+m+"px !important;left:"+f+"px !important; }"),t=parseInt(t),i+=".yp-selected-boxed-"+window.visualEditType+"-"+window.visualEditPosition+"{ "+n+" : "+t+"px !important; }",i+="body.yp-content-selected .yp-selected,"+window.currentLiveSelector+"{ "+a+" : "+t+"px !important; }",0==ie.find("#yp-visual-edit-css").length?ne.append("<style id='yp-visual-edit-css'>"+i+"</style>"):ie.find("#yp-visual-edit-css").html(i),oe.active.find(".yp-selected-boxed-"+window.visualEditType+"-"+window.visualEditPosition).html(t+"px")}}),ie.on("mouseup",ie,function(){if(window.visualEdit){window.visualEdit=!1,se.addClass("yp-visual-edited"),se.removeClass("yp-visual-editing yp-visual-editing-x yp-visual-editing-y yp-clean-look yp-has-transform"),ie.find("#yp-visual-edit-css").remove();var e=oe.active.find(".yp-selected-boxed-"+window.visualEditType+"-"+window.visualEditPosition),t=e.text();parseInt(t)<=30&&e.html(""),window.visualEditValueOr!=t&&(at(null,window.visualEditType+"-"+window.visualEditPosition,t),Ja(),Yt(window.visualEditType+"-"+window.visualEditPosition),Ne()),setTimeout(function(){ie.find(".yp-visual-active").removeClass("yp-visual-active"),se.removeClass("yp-visual-edited"),Be()},100)}}),se.on("mousedown",".yp-editor-list > li:not(.active)",function(){if(!0===pe()){var e=Q(this),t=e.attr("data-loaded"),a=e.attr("data-setup");void 0!==a&&!1!==a||(e.find(".wqcolorpicker").cs_iris({hide:!0,width:223}),e.hasClass("background-option")&&Q("#iris-gradient-color").cs_iris({hide:!0,width:223}),e.find(".yp-slider-option").each(function(){!function(r,e){var o=Q("#"+r+"-group").parent(".yp-this-content"),t=Q("#"+r+"-group"),a=Q("#"+r+"-group .yp-after-prefix").val(),i=t.attr("data-support-formats").split(","),n=t.attr("data-css-default");""!=n&&"no-defined"!=n&&i.push(n);for(var s,l=[],p=0;p<i.length;p++)(s={}).value=i[p],s.label=i[p],l.push(s);Q("#"+r+"-group .yp-after-prefix").autocomplete({source:function(e,t){t(Q.ui.autocomplete.filter(l,""))},open:function(){window.openValS=Q(this).val()},close:function(){var e=Q("#"+r+"-group .yp-after-css-val");if(n==Q(this).val()){Q(this).val("-");var t=e.val();e.val(n).attr("data-last-val",t)}else e.val()==n&&window.openValS!=Q(this).val()?e.hasAttr("data-last-val")?e.val(e.attr("data-last-val")):e.val(0):e.removeAttr("data-last-val");window.openValS!=Q(this).val()&&(window.allow_input_CSS_process=!0,Q("#"+r+"-group .yp-after-prefix").trigger("keyup"),window.allow_input_CSS_process=!1),Q(this).trigger("autogrow"),Q(this).blur()},delay:0,minLength:0,autoFocus:!0,appendTo:Q("#"+r+"-group .prefix-select")}).click(function(){Q(this).autocomplete("search","")});var d=rt(a,t);Q("#yp-"+r).wqNoUiSlider({start:[0],range:{min:parseInt(d[0]),max:parseInt(d[1])},format:wNumb({mark:".",decimals:e})}).on("change",function(){Q(".fake-layer").remove(),"-"==Q("#"+r+"-after").val()&&(Q("#"+r+"-after").val("px"),Q("#"+r+"-after").trigger("autogrow"));var e=o.find(".lock-btn.active").length,t=[];if(e){o.find(".yp-option-group").each(function(){t.push(Q(this).attr("data-css"))});for(var a=Q(this).val(),i=0;i<t.length;i++)Q("#yp-"+t[i]).val(a),Q("#"+t[i]+"-after").trigger("keyup"),ot(Q("#yp-"+t[i]),t[i],!0,!1);Ja()}else ot(Q(this),r,!0,!0)}).on("slide",function(){"-"==Q("#"+r+"-after").val()&&(Q("#"+r+"-after").val("px"),Q("#"+r+"-after").trigger("autogrow"));var e=o.find(".lock-btn.active").length,t=[];e&&o.find(".yp-option-group").each(function(){t.push(Q(this).attr("data-css"))});var a,i=Q(this).val(),n=Q("#"+r+"-after").val();i=Number(parseFloat(i).toFixed(2));var s=Q("#"+r+"-group").find(".wqNoUi-origin").css("left");if(0===e)Q("#"+r+"-value").val(i);else for(a=0;a<t.length;a++)Q("#"+t[a]+"-value").val(i),Q("#"+t[a]+"-after").val(n),Q("#"+t[a]+"-group").find(".wqNoUi-origin").css("left",s);if(n=Q(this).parent().find("#"+r+"-after").val(),0===e)ft(r,!1),ut(r,i+n,!1);else for(a=0;a<t.length;a++)ft(t[a],!1),ut(t[a],i+n,!1);0===Q(".fake-layer").length&&re.append("<div class='fake-layer'></div>")})}(S(this),Q(this).data("decimals"))}),e.find(".yp-select-option").each(function(){var t=Q(this),a=t.find("textarea");/^http/g.test(a.val())?Q.getJSON(a.val(),function(e){a.val(JSON.stringify(e)),Se(t.find(".input-autocomplete"))}).fail(function(){Va("Could Not Load Json library.","jsonError")}):Se(e.find(".input-autocomplete"))}),e.attr("data-setup","true")),void 0!==t&&!1!==t||(e.find(".yp-option-group").each(function(){Yt(S(this))}),e.attr("data-loaded","true"),xa(null))}}),ie.on("mouseout mouseover",".yp-selected",function(e){return(!window.firstSelectLimit||"mouseover"!=e.type)&&(window.firstSelectLimit?window.firstSelectLimit=!1:void(1==pe()&&0==y()&&0==v()&&0==w()&&(clearTimeout(window.update_drawmouseOver),window.update_drawmouseOver=setTimeout(function(){Be()},50))))}),Q(".yp-btn-action").click(function(e){var n,s,r,t,a,o="",l="";if(s=Q(this).parent().parent().parent(),n=S(s),r=s.find(".yp-none-btn").attr("data-default"),t=Q("#yp-"+n).val(),a=Q("#"+n+"-after").val(),Q(this).hasClass("yp-none-btn")){if(0<=s.find(".yp-disable-btn.active").length&&(s.find(".yp-disable-btn.active").trigger("click"),e.originalEvent&&0==Q(this).hasClass("active")&&s.addClass("reset-enable")),0==s.hasClass("reset-enable")&&Q(this).hasClass("active")&&e.originalEvent){if(s.hasClass("yp-input-option")||"background-color"==n)return!1;if(0<s.find(".yp-radio-content").length||0<s.find(".input-autocomplete").length)return!1}s.hasClass("yp-slider-option")?Q(this).hasClass("active")?(Q(this).removeClass("active"),o=t,l=a):(Q(this).addClass("active"),o=r):0<s.find(".yp-radio-content").length?Q(this).hasClass("active")?(Q(this).removeClass("active"),o=Q("input[name="+n+"]:checked").val(),Q("input[name="+n+"]:checked").parent().addClass("active")):(Q(this).addClass("active"),s.find(".yp-radio.active").removeClass("active"),o=r):0<s.find(".input-autocomplete").length?o=Q(this).hasClass("active")?(Q(this).removeClass("active"),t):(Q(this).addClass("active"),r):Q(this).hasClass("active")?(Q(this).removeClass("active"),o=t,s.find(".wqminicolors-swatch-color").css("backgroundColor",o)):(Q(this).addClass("active"),s.find(".wqminicolors-swatch-color").css("backgroundColor","transparent"),o="transparent"),"background-image"==n&&(-1==o.indexOf("linear-gradient(")&&(-1==o.indexOf("//")&&-1==o.indexOf("data:")||(o='url("'+o+'")')),"transparent"==o&&(o="none")),"list-style-image"==n&&(-1==o.indexOf("//")&&-1==o.indexOf("data:")||(o='url("'+o+'")'),"transparent"==o&&(o="none")),"background-image"==n&&Q(".yp-unsplash-list > span.active,.yp-gradient-demo.active,.yp_bg_assets.active").removeClass("active")}else Q(this).toggleClass("active");if(e.originalEvent){if(Q(this).hasClass("yp-disable-btn")){var i=$t(null,n,[!1,!1,!0,!1]);"object"==typeof i&&i.always(function(e){"all"==e&&(e="desktop"),s.removeClass("reset-enable"),at(null,n,"disable",l,e),Yt(n)})}else""==o?0==s.hasClass("yp-slider-option")&&(at(null,n,"disable",""),Yt(n),setTimeout(function(){o=Q("#yp-"+n).val(),l=Q("#"+n+"-after").val(),0<s.find(".yp-radio-content").length&&(o=Q("input[name="+n+"]:checked").val()),at(null,n,o,l)},30)):(U(G(ee(null,!1),"[selector="+$a(da())+"][rule="+n+"][msize="+Xe(null,n,o)+"]")),U(G(ee(null,!1),"[selector="+$a(da())+"][rule="+ae(n)+"][msize="+Xe(null,n,o)+"]")),setTimeout(function(){if(null==Wt(n)[1]){var e=le().css(n);e==o||e==o+l||0==Ea(e)&&0==o||"rgba(0, 0, 0, 0)"==e&&"transparent"==o||"rgba(0,0,0,0)"==e&&"transparent"==o||(0==r&&""==l&&(l="px"),at(null,n,o,l))}else at(null,n,o,l);var t=da();if("animation-name"==n||"animation-duration"==n||"animation-delay"==n){var a="",i=ee(null,!0);0<te(i,"selector="+$a(t+".yp_onscreen")+"][msize="+Xe(null,n,o)+"]").length&&(a="yp_onscreen"),0<te(i,"selector="+$a(t+".yp_click")+"][msize="+Xe(null,n,o)+"]").length&&(a="yp_click"),0<te(i,"selector="+$a(t+".yp_hover")+"][msize="+Xe(null,n,o)+"]").length&&(a="yp_hover"),0<te(i,"[selector="+$a(t+".yp_focus")+"][msize="+Xe(null,n,o)+"]").length&&(a="yp_focus"),re.hasClass("yp-selector-hover")&&""==a&&(a="yp_hover"),re.hasClass("yp-selector-focus")&&""==a&&(a="yp_focus"),(ve(a)||""==a)&&(a="yp_onscreen"),$t(t+"."+a,n,[!1,!0,!1,!0])?Q("#"+n+"-group").addClass("reset-enable"):Q("#"+n+"-group").removeClass("reset-enable")}else $t(t,n,[!1,!0,!1,!0])?Q("#"+n+"-group").addClass("reset-enable"):Q("#"+n+"-group").removeClass("reset-enable");0==s.hasClass("yp-slider-option")&&Yt(n)},window.YellowDelay));Ja(),de()&&setTimeout(function(){Oe()},10*window.YellowDelay)}Ne()}),Q(".yp-editor-list > li > h3").click(function(){var e=Q(this).parent(),t=Q(".yp-close-btn"),a=Q(".yp-editor-list > li");Q(".lock-btn").removeClass("active"),a.not(e).hide(),e.toggleClass("active"),e.find(".yp-this-content").toggle(),0==e.hasClass("active")?(a.show(),t.removeClass("dashicons-menu").addClass("dashicons-no-alt"),t.tooltip("hide").attr("data-original-title",J.close_editor).tooltip("fixTitle"),Q(".property-has-queries").removeClass("property-size-tabs-visible"),se.removeClass("property-query-active"),e.hasClass("animation-option")&&(ie.find(".yp_onscreen,.yp_hover,.yp_click,.yp_focus").removeClass("yp_onscreen yp_hover yp_click yp_focus"),e.removeAttr("data-loaded"))):(t.removeClass("dashicons-no-alt").addClass("dashicons-menu"),t.tooltip("hide").attr("data-original-title",J.back_to_menu).tooltip("fixTitle")),Q(".yp-editor-panel").scrollTop(0),Q(".yp-option-group,.yp-advanced-option").popover("hide"),Ne()});var Da,Ma=function(e){return void 0!==e&&""!=e?e=e.replace(/\W+/g,""):""};function $a(e){return void 0!==e&&""!=e?e=e.replace(/\:/g,"yp-sym-p").replace(/\^/g,"yp-sym-a").replace(/\#/g,"yp-sym-c").replace(/\+/g,"yp-sym-o").replace(/\$/g,"yp-sym-q").replace(/\(/g,"yp-sym-e").replace(/\)/g,"yp-sym-s").replace(/\[/g,"yp-sym-g").replace(/\]/g,"yp-sym-x").replace(/\=/g,"yp-sym-k").replace(/\*/g,"yp-sym-n").replace(/\-/g,"yp-sym-t").replace(/\./g,"yp-sym-u").replace(/\>/g,"yp-sym-l").replace(/\,/g,"yp-sym-b").replace(/\~/g,"yp-sym-m").replace(/\@/g,"yp-sym-i").replace(/\//g,"yp-sym-y").replace(/\!/g,"yp-sym-v").replace(/[^a-zA-Z0-9_\^\#\+\$\(\)\[\]\=\*\-\:\.\>\,\~\@\/\!]/g,""):""}function Ra(a){return a.filter(function(e,t){return a.indexOf(e)==t}).filter(Boolean)}function Na(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}function La(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ba(e){return-1!=(e=(e=Wa(e,!0,!0,!0,!0)).toLowerCase()).indexOf(" ")&&(e=e.split(" ")[e.split(" ").length-1]),0==(e=e.replace(/(\>|\*|\+|\:|\~|\[(.*?)\])/g,"").replace(/(\.|\#)/g,"").replace(/(\-|\_)/g," ").replace(/:nth-child\(\d+\)/g,"").replace(/\bli\b/g,"list item").replace(/(\bul\b|\bol\b)/g,"list").replace(/\ba\b/g,"link").replace(/\bp\b/g,"paragraph").replace(/(\bh1\b|\bh2\b|\bh3\b|\bh4\b|\bh5\b|\bh6\b)/g,"heading").replace(/\bbr\b/g,"line break").replace(/\bhr\b/g,"horizontal rule").replace(/\bb\b/g,"bold tag").replace(/\b(em|i)\b/g,"italic tag").replace(/\bpre\b/g,"preformatted").replace(/\btable\b/g,"table").replace(/\btr\b/g,"table row").replace(/\btd\b/g,"table data").replace(/\bbutton\b/g,"button").replace(/\bcenter\b/g,"centred block").replace(/\bdl\b/g,"definition list").replace(/\bdt\b/g,"definition term").replace(/\bdd\b/g,"definition description").replace(/\btextarea\b/g,"text area").replace(/\btbody\b/g,"body of table").replace(/\bthead\b/g,"head of table").replace(/\btfoot\b/g,"foot of table").replace(/\bu\b/g,"underline text tag").replace(/\bq\b/g,"quotation tag").replace(/\bcite\b/g,"citation").replace(/\btime\b/g,"time tag").replace(/\bcaption\b/g,"caption of table").replace(/\binput\b/g,"input").replace(/\bspan\b/g,"span tag").replace(/\bstrong\b/g,"strong tag").replace(/\bsmall\b/g,"small tag").replace(/\bdiv\b/g,"division").replace(/\bimg\b/g,"image").replace(/\bnav\b/g,"navigation")).length&&(e="Unknown Element"),ja(Na(e))}function Pa(e,t,a){var i=qa(e);if(0==ua(e=Wa(e,!0,!0,!0),!1,!1,!1)&&0==i)return!1;var n=e.split(",");if(1==n.length){var s;if(0!=i&&"false"!=(s=i)&&0!=s||(s=Ga(e,a)),1!=t)return s;var r=ie.find(e).length;return s=s.replace(/ \((onscreen|hover|click|focus|link|visited|active|checked|disabled|enabled|invalid|valid)\)(\s+)?$/gi,""),1<r?1==ypOption.high_performance&&0==pe()?s:ypOption.high_performance||0!=i?s+" ("+r+")":s.plural()+" ("+r+")":s}if(0!=i&&0!=(l=i))return l;for(var o=[],l="",p=0;p<n.length;p++)0!=(i=qa(n[p]))&&"false"!=(l=i)&&0!=l||(l=Ga(n[p],a)),-1==o.indexOf(l)&&o.push(l);return o.toString().replace(/\,/g,", ")}function Wa(e,t,a,i,n){return!0===t&&(e=e.replace(/\:(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"")),!0===a&&(e=e.replace(/:(:)?(after|before|first-letter|first-line|selection)/g,"")),!0===i&&(e=(e=(e=e.replace(/body\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)\./g,"body.")).replace(/body\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)$/g,"body")).replace(/(body)?\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g,"")),!0===n&&(e=e.replace(/\.(yp_onscreen|yp_focus|yp_hover|yp_click)/g,"")),e.trim()}function ja(e){return Q.trim(e.replace(/\s\s+/g," "))}function qa(e){e=Ge(e);var t=window.selectorComments[$a(e)],a="";return ve(t)&&(-1!=e.indexOf(".yp_onscreen")?a=" (onscreen)":-1!=e.indexOf(".yp_hover")?a=" (hover)":-1!=e.indexOf(".yp_click")?a=" (click)":-1!=e.indexOf(".yp_focus")&&(a=" (focus)"),-1!=e.indexOf(".yp-selector-")&&(a=" ("+e.match(/\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g)[0].replace(/\.yp-selector-/,"").trim()+")"),t=window.selectorComments[$a(Wa(e,!0,!0,!0,!0))]),!ve(t)&&t+a}function Ya(e,t){null!=t&&null!=t||(t=Xa(e,!1));var a=$a(Ge(e));null!=window.selectorComments[a]&&null!=window.selectorComments[a]||window.newComments.push(a),window.selectorComments[a]=Ha(t)}function Ha(e){return null==e||null==e||""==e?e:0==(e=e.replace(/(\r\n|\n|\r)/g,"").replace(/(\/\*|\*\/)/g,"").replace(/[^a-zA-Z0-9\_\-\?\s\=\/\.\,\@\&\+\!\(\)]/g,"").trim()).length?"":e=e.match(/.{1,70}/i)[0]}function Ua(){var e=Q("<div />").append(oe.general.find(".yp-selected-tooltip").clone());e.find("small").remove(),e=e.text().trim(),oe.general.find(".yp-selected-tooltip").html("<small class='yp-tooltip-small'>"+Pa(e,!0,null)+"</small> "+e)}function Xa(e,t){var a,i="";ve(a=Pa(e=Ge(e),t,null))&&(a=Ba(e));var n=qa(e);return 0!=n&&(n=n.toLowerCase()),a.toLowerCase()!=n&&(-1!=e.indexOf(".yp_onscreen")?i=" (onscreen)":-1!=e.indexOf(".yp_hover")?i=" (hover)":-1!=e.indexOf(".yp_click")?i=" (click)":-1!=e.indexOf(".yp_focus")&&(i=" (focus)"),-1!=e.indexOf(".yp-selector-")&&(i=" ("+e.match(/\.yp-selector-(hover|focus|link|visited|active|checked|disabled|enabled|invalid|valid)/g)[0].replace(/\.yp-selector-/,"").trim()+")")),(a+i).trim()}function Ga(e,t){var a,i,n,s,r="",o=!1,l="";if(e=Wa(e,!0,!0,!0,!0),null==t&&(t=ie.find(e).filter(".yp-selected")).length<=0&&(t=ie.find(e)),"*"==e)return"All Elements";if(":root"==e)return"Root";if(a=Ht(e).length-1,i=t.prop("tagName"),-1!=(n=Ht(e)[a].trim()).indexOf(".")&&(n="."+n.split(".")[1]),-1!=n.indexOf("#")&&(n="#"+n.split("#")[1]),-1!=n.indexOf(":")&&(n=n.split(":")[0]),t.hasAttr("id")&&(l=t.attr("id")),t.hasAttr("class")&&(r=t.attr("class").toUpperCase()),s=""!=r?Q.trim((r+" "+l).replace(/[^a-zA-Z0-9\s]/g,"")):Q.trim(n.replace(/[^a-zA-Z0-9\s]/g,"")),"BODY"==i)return"Body";if(/(^|\s)WIDGET($|\s)/.test(s))return"Widget";if(/(^|\s)(MENU|MAIN-MENU|NAVIGATION|NAV)($|\s)/.test(s))return"Menu";if(/(^|\s)(FA|FA-(.*?))($|\s)/.test(r))return"Font Icon";if(/(^|\s)SUBMIT($|\s)/.test(s)&&"INPUT"==i)return"Submit Button";if(/(^|\s)MENUITEM($|\s)/.test(s))return"Menu Item";if(/(^|\s)(ENTRYMETA|ENTRYMETABOX|POSTMETABOX)($|\s)/.test(s))return"Post Meta Division";if(/(^|\s)COMMENTREPLYTITLE($|\s)/.test(s))return"Comment Reply Title";if(/(^|\s)LOGGEDINAS($|\s)/.test(s))return"Login Info";if(/(^|\s)FORMALLOWEDTAGS($|\s)/.test(s))return"Allowed Tags Section";if(/(^|\s)LOGO($|\s)/.test(s))return"Logo";if(/(^|\s)(ENTRYTITLE|POSTTITLE)($|\s)/.test(s))return"Post Title";if(/(^|\s)COMMENTFORM($|\s)/.test(s))return"Comment Form";if(/(^|\s)WIDGETTITLE($|\s)/.test(s))return"Widget Title";if(/(^|\s)TAGCLOUD($|\s)/.test(s))return"Tag Cloud";if(/(^|\s)ROW($|\s)/.test(s))return"Row";if(/(^|\s)(BUTTON|BTN)($|\s)/.test(s))return"Button";if(/(^|\s)LEAD($|\s)/.test(s))return"Lead";if(/(^|\s)WELL($|\s)/.test(s))return"Well";if(/(^|\s)ACCORDIONTOGGLE($|\s)/.test(s))return"Accordion Toggle";if(/(^|\s)PANELBODY($|\s)/.test(s))return"Accordion Content";if(/(^|\s)ALERT($|\s)/.test(s))return"Alert Division";if(/(^|\s)MORELINK($|\s)/.test(s))return"Show More Link";if(/(^|\s)(MENULINK|MENUICON|MENUBTN|MENUBUTTON)($|\s)/.test(s))return"Menu Link";if(/(^|\s)SUBMENU($|\s)/.test(s))return"Sub Menu";if(/(^|\s)(POSTBODY|POST)($|\s)/.test(s))return"Post Division";if(/(^|\s)(CONTENT|DEFAULTCONTENT)($|\s)/.test(s))return"Content Division";if(/(^|\s)ENTRYCONTENT($|\s)/.test(s))return"Entry Content";if(/(^|\s)ENTRYFOOTER($|\s)/.test(s))return"Entry Footer";if(/(^|\s)ENTRYHEADER($|\s)/.test(s))return"Entry Header";if(/(^|\s)ENTRYTIME($|\s)/.test(s))return"Entry Time";if(/(^|\s)POSTEDITLINK($|\s)/.test(s))return"Post Edit Link";if(/(^|\s)POSTTHUMBNAIL($|\s)/.test(s))return"Post Thumbnail";if(/(^|\s)THUMBNAIL($|\s)/.test(s))return"Thumbnail";if(/([a-zA-Z0-9_-]+)?ATTACHMENT([a-zA-Z0-9_-]+)?/.test(r))return"Thumbnail Image";if(/(^|\s)EDITLINK($|\s)/.test(s))return"Edit Link";if(/(^|\s)COMMENTSLINK($|\s)/.test(s))return"Comments Link Division";if(/(^|\s)SITEDESCRIPTION($|\s)/.test(s))return"Site Description";if(fe(r)){var p=r.match(/([a-zA-Z0-9_-]+)?(span|small|medium|large|col|column|[_-]l|[_-]m|[_-]s|col-xs|col-md|col-lg|-col-sm)([_-])?[0-9]+/i);if(fe(p)){var d=parseInt(p[0].replace(/\D/g,""));if(0<d&&d<13)return"Column "+d+"/12"}}if(0==ypOption.high_performance&&(o=function(e,t){if(void 0===e||!1===e)return!1;e=e.replace(/(#|\.)/g,"");var a=/^[a-z]{3}[-_]|^[a-z]{2}[-_]/g,i="",n=e.replace(a,"");a.test(e)&&0==/\d+/g.test(e)&&(i=e.match(a)[0].replace(/[-_]/g,""),0==/(sm|md|lg|xs)/g.test(i)&&3<n.length&&(e=n));var s=new RegExp("[A-Z]"),r=new RegExp("[0-9]"),o=/-/;if(/_/.test(e)&&o.test(e))return!1;if(o.test(e)&&3<=e.match(/(-|_)/g).length)return!1;if((e=e.replace(/_/g," ").replace(/-/g," ")).match(s)||e.length<5||20<e.length)return!1;if(t&&e.match(r))return!1;if(l=e,/^([a-z])\1+$/.test(l))return!1;var l;return La(e.trim())}(n,!1)),!1!==o&&1==/(#|\.)/g.test(n))return o;if(-1!=["h1","h2","h3","h4","h5","h6","p","img","a","li","ul","header","footer","article","code","form","label","ol","blockquote","nav"].indexOf(n)&&0==/(#|\.)/g.test(n)){if("h1"==n||"h2"==n||"h3"==n||"h4"==n||"h5"==n||"h6"==n)return"Heading";if("p"==n)return"Paragraph";if("img"==n)return"Image";if("a"==n)return"Link";if("li"==n)return"List Item";if("ul"==n)return"List";if("header"==n)return"Header";if("footer"==n)return"Footer";if("article"==n)return"Article";if("code"==n)return"Code Tag";if("form"==n)return"Form Division";if("label"==n)return"Label";if("ol"==n)return"List";if("blockquote"==n)return"Block Quote";if("nav"==n)return"Navigation"}return/(^|\s)(CONTAINER|WRAPPER)($|\s)/.test(s)?"Wrapper":"BR"==i?"Line Break":"HR"==i?"Horizontal Rule":"PRE"==i?"Preformatted":"TABLE"==i?"Table":"TR"==i?"Table Row":"TD"==i?"Table Data":"BUTTON"==i?"Button":"CENTER"==i?"Centred block":"DL"==i?"Definition list":"DT"==i?"Definition term":"DD"==i?"Definition description":"TEXTAREA"==i?"Text Area":"TBODY"==i?"Body Of Table":"THEAD"==i?"Head Of Table":"TFOOT"==i?"Foot Of Table":"U"==i?"Underline text tag":"Q"==i?"Quotation":"CITE"==i?"Citation Tag":"TIME"==i?"Time Tag":"CAPTION"==i?"Caption Of table":"INPUT"==i?"Input":"SPAN"==i?"Span Tag":"B"==i?"Bold Tag":"EM"==i||"I"==i?"Italic Tag":"STRONG"==i?"Strong Tag":"SMALL"==i?"Small Tag":"DIV"==i?"Division":("H1"==i||"H2"==i||"H3"==i||"H4"==i||"H5"==i||"H6"==i?i="Heading":"P"==i?i="Paragraph":"IMG"==i?i="Image":"A"==i?i="Link":"LI"==i?i="List Item":"UL"==i?i="List":"HEADER"==i?i="Header":"FOOTER"==i?i="Footer":"ARTICLE"==i?i="Article":"CODE"==i?i="Code Tag":"FORM"==i?i="Form Division":"LABEL"==i?i="Label":"OL"==i?i="List":"BLOCKQUOTE"==i?i="Block Quote":"NAV"==i&&(i="Navigation"),void 0===i||!1===i?"Unknown Element":La(i.toLowerCase()))}function Va(e,t){var a;0<Q("#"+t).length?a=Q("#"+t):(a=Q("<div class='yp-message-box' id='"+t+"'>"+e+"</div>"),re.append(a),a.fadeIn(300)),setTimeout(function(){a.fadeOut(300,function(){a.remove()})},5e3)}function Ja(){if(clearTimeout(window.yp_insert_data_delay),re.hasClass("css-code-unvalid"))return!1;re.addClass("yp-history-delay"),Q("#customizing-type-list").hide(),Q("#customizing-mode,#customizing-type-list").removeClass("active"),Q(".starter-notice").removeClass("padded-starter-notice"),Q(".yp-save-btn").html(J.save).removeClass("yp-disabled").addClass("waiting-for-save");var t=window.editedByReview;window.yp_insert_data_delay=setTimeout(function(){var e=ue();ie.find(".yp-data-only-updated").each(function(){var e,t=Q(this);n(e=t.attr("data-source-mode"));var a=Ct(!0,e,!0);l.setValue(a),t.removeClass("yp-data-only-updated")}),n(e),re.hasClass("visual-css-view-active")&&0==t&&(It(),Ot()),jt(),re.removeClass("yp-history-delay"),l.getSession().removeMarker(window.typeHereMarker)},370),setTimeout(function(){T()},390),de()&&Oe(),0<Q(".info-btn.active").length&&ge(),0==Q(".yp-type-menu-link.done").length&&(Q(".yp-type-menu-link").addClass("focus").addClass("done"),setTimeout(function(){Q(".yp-type-menu-link").removeClass("focus")},600))}function Ka(){if(!1===re.hasClass("yp-need-to-process")||re.hasClass("yp-processing-now"))return!1;var e=Ct(!0,null,!1);if(re.removeClass("yp-need-to-process"),re.addClass("yp-processing-now"),Ke("desktop"),-1!=e.toString().indexOf("@media")){var t=e.toString().replace(/(\r\n|\n|\r)/g,"").replace(/(\/\*)(.*?)\*\/(\s+)?/g,"").match(/@media(.*?){/g);Q.each(t,function(e,t){Ke(t=ma(t,!1))})}ie.find("#yp-live-css-data").remove(),U(f(null,null,null,!0)),re.removeClass("yp-processing-now"),b()&&_();var a,i,n,s,r=["single","template","global"];for(a=0;a<r.length;a++)s+=ee(r[a],!1);for(D=0;D<window.newComments.length;D++)null!=(n=window.newComments[D])&&null!=n&&null!=(i=te(s,"[selector="+n+"]"))&&null!=i&&0==i.length&&delete window.selectorComments[n];Ua()}function Qa(e){return void 0!==e?-1!=e.indexOf("rgba")?e.replace(/\s+/g,""):(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"":""}function ei(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,a,i){return t+t+a+a+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgb("+parseInt(t[1],16)+","+parseInt(t[2],16)+","+parseInt(t[3],16)+")":null}function ti(e){return ve(e)?"":e.replace(new RegExp(window.plugin_classes_list_sorted,"gi"),"")}function ai(){clearTimeout(window.animationTimer1),clearTimeout(window.animationTimer2),clearTimeout(window.animationTimer3),clearTimeout(window.animationTimer4),clearTimeout(window.animationTimer5)}function ii(){ie.find(da()).trigger("animationend")}function ni(e,t){var a=e;if("body"==e&&(e=e+"."+t),-1!=e.indexOf("body."+t))return e;var i="";if(0<Ht(e).length){var n=Q.trim(Ht(e)[0]);"html"==n.toLowerCase()&&(i=n),0<ie.find(n).length&&(-1!=n.indexOf("#")&&"HTML"==ie.find(n).prop("tagName")&&(i=n),-1!=n.indexOf(".")&&"HTML"==ie.find(n).prop("tagName")&&(i=n)),""!=i&&(e=Ht(e)[1])}if(-1!=(e=(e=e.replace(/\bbody\./g,"body."+t+".")).replace(" body "," body."+t+" ")).indexOf("body."+t))return""!=i&&(e=i+" "+e),e;if(void 0!==ne.attr("class")&&null!==ne.attr("class")){var s=ie.find(a);if(0<s.length&&"BODY"==s.prop("tagName"))for(var r=Ut(ne.attr("class")),o=0;o<r.length;o++)1==Ht(e=e.replace("."+r[o]+" ","."+r[o]+"."+t+" ")).length&&r[o]==e.replace(".","")&&(e=e+"."+t)}if(-1!=e.indexOf("."+t+" "))return""!=i&&(e=i+" "+e),e;if(-1!=e.indexOf("."+t)&&1==Ht(e).length)return""!=i&&(e=i+" "+e),e;var l=ne.attr("id");return-1!=(e=e.replace("#"+l+" ","#"+l+"."+t+" ")).indexOf("."+t+" ")||-1!=(e=(e=(e="YPIREFIX"+e).replace(/YPIREFIXbody /g,"body."+t+" ")).replace("YPIREFIX","")).indexOf("body."+t+" ")||-1!=e.indexOf(" body ")&&-1!=e.indexOf(" body.")||(e="body."+t+" "+e),""!=i&&(e=i+" "+e),e}function si(e){var t,a,i;""==(t=Q("#unsplash-search").val()).trim()&&(t=null);window.getJsonNow=!0,a=null!=t?"https://api.unsplash.com/search/photos":"https://api.unsplash.com/photos",a+="?client_id=5746b12f75e91c251bddf6f83bd2ad0d658122676e9bd2444e110951f9a04af8",null!=t&&(a+="&query="+t),null!=e&&(a+="&page="+e),Q.getJSON(a,function(e){0==e.total?Q(".yp-unsplash-list").addClass("no-result"):Q(".yp-unsplash-list").removeClass("no-result"),i=null!=t?e.results:e,Q.each(i,function(e,t){t.urls.thumb,Q(".yp-unsplash-list").append("<span style='background-color:"+t.color+";' data-id='"+t.id+"' data-full='"+t.urls.full+"' data-regular='"+t.urls.regular+"' data-small='"+t.urls.small+"' data-thumb='"+t.urls.thumb+"' ><i>Upload</i></span>")}),window.getJsonNow=!1,ri()}).fail(function(){Va("Could Not Load Json library. (Unsplash API)","jsonError")})}function ri(){Q(".yp-unsplash-list > span:in-viewport").each(function(){Q(this).css("background-image","url("+Q(this).attr("data-thumb")+")")})}ie.on("click",".yp-tooltip-small",function(){var e=Q(this);if("INPUT"!=e.prop("tagName")){var t=e.text();e.after('<input type="text" class="yp-tooltip-small" value="" maxlength="70" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />'),e.remove(),ie.find("input.yp-tooltip-small").val(t).focus(),ie.find("input.yp-tooltip-small").autoGrowInput()}return!1}),ie.on("focus","input.yp-tooltip-small",function(){var e=Q(this).val(),t=e.match(/ \(\d+\)$/);null==t&&(t=""),Q(this).attr("data-len",t),Q(this).val(e.replace(/ \(\d+\)$/g,"").trim())}),ie.on("keydown","input.yp-tooltip-small",function(e){var t=e.keyCode||e.which;13==t&&Q(this).trigger("blur"),27==t&&Q(this).val("").trigger("blur")}),ie.on("blur","input.yp-tooltip-small",function(){var e,t=Q(this),a=t.val(),i=!1,n=da(!0);""==Ha(a)&&(a=Xa(n,i=!0)),e=i?a:Ha(a)+" "+t.attr("data-len"),setTimeout(function(){t.after("<small class='yp-tooltip-small'>"+e+"</small>"),t.remove(),Ya(n,a),setTimeout(function(){Ie(!1)},500),Ja()},2)}),Q(document).on("mouseenter",".selector-group",function(){Q(this).find(".selector-comment-input").autoGrowInput()}),Q(document).on("keyup keydown",".selector-comment-input",function(e){var t=e.keyCode||e.which;if(13==t&&Q(this).trigger("blur"),27==t)return Q(this).val("").trigger("blur"),!1}),Q(document).on("focus",".selector-comment-input",function(){var e=Q(this).val(),t=e.match(/ \(\d+\)$/);null==t&&(t=""),Q(this).attr("data-len",t),Q(this).val(e.replace(/ \(\d+\)$/g,"").trim())}),Q(document).on("blur",".selector-comment-input",function(){var e,t=Q(this).parents(".selector-group"),a=!1,i=Q(this).val(),n=t.attr("data-view-selector");""==Ha(i)&&(i=Xa(n,a=!0)),Ya(n,i),e=a?i:Ha(i)+" "+Q(this).attr("data-len"),t.hasClass("active")&&Ua(),Q(this).val(e),Ie(!1),setTimeout(function(){t.find(".selector-comment-input").autoGrowInput()},4),Ja()}),Q(document).on("click",".yp-message-box",function(){Q(this).fadeOut(300,function(){Q(this).remove()})}),window.plugin_classes_list_sorted=window.plugin_classes_list.split("|").sort(function(e,t){return t.length-e.length}).join("|"),e.keydown(function(e){var t=e.target.tagName.toLowerCase();"input"!=t&&"textarea"!=t&&(!e.shiftKey||"61"!=e.which&&"107"!=e.which&&"173"!=e.which&&"109"!=e.which&&"187"!=e.which&&"189"!=e.which||e.preventDefault())}),e.bind("mousewheel DOMMouseScroll",function(e){e.shiftKey&&e.preventDefault()}),Q(document).on("click",".yp-unsplash-list > span > i",function(){var t=Q(this);if(clearInterval(window.ypLocalUploader),re.hasClass("yp-yellow-pencil-demo-mode"))return!1;var e=0;return window.ypLocalUploader=setInterval(function(){++e%2==0?(t.text("Upload."),t.css("padding-left","0px")):(t.text("Upload.."),t.css("padding-left","3px"))},200),Q.post(ajaxurl,{action:"yp_unsplash_api",yp_link:Q("#yp-background-image").val(),yp_id:t.parent().attr("data-id"),_wpnonce:window.yp_editor_nonce}).done(function(e){-1!=e.indexOf("http")?(t.parent().parent().parent().parent().parent().find(".yp-input").val(e).trigger("keyup"),Q(".yp-unsplash-btn.active").trigger("click"),t.parent().attr("data-local",e)):g({title:J.sorry,text:e,animation:!1,customClass:"editor-style-ok"})}).complete(function(){clearInterval(window.ypLocalUploader),t.text("Upload"),t.css("padding-left","0px")}),!1}),window.glblUnsplashIndex=0,Q("#unsplash-search").on("keyup",function(){window.glblUnsplashIndex=0,clearTimeout(Da),Da=setTimeout(function(){Q(".yp-unsplash-list").empty(),si(null)},400)}),Q(document).on("click",".yp-unsplash-list > span",function(){var e,t=Q(this);if(t.hasClass("active")&&0==t.hasClass("unsplash-img-loading"))return t.find("i").trigger("click"),!1;e=le().width()<1080&&le().outerWidth()!=ne.width()?t.attr("data-regular"):t.attr("data-full"),null!=t.attr("data-local")&&null!=t.attr("data-local")&&(e=t.attr("data-local")),t.parent().parent().parent().parent().find(".yp-input").val(e).trigger("keyup"),Q(".yp-unsplash-list > span.unsplash-img-loading").removeClass("unsplash-img-loading"),t.attr("data-content","1%");var a=1;t.addClass("unsplash-img-loading"),ne.find("#unsplash-img-loader").remove(),ne.append("<img src='"+e+"' id='unsplash-img-loader' />"),ne.find("#unsplash-img-loader").on("load",function(){a=100,t.attr("data-content",a+"%"),clearTimeout(window.unsplashLoaderIn),setTimeout(function(){t.removeClass("unsplash-img-loading"),Q(".yp-unsplash-list > span.active,.yp-gradient-demo.active,.yp_bg_assets.active").removeClass("active"),t.addClass("active")},500)}),clearInterval(window.unsplashLoaderIn),window.unsplashLoaderIn=setInterval(function(){var e=8;97<a?e=1.1:95<a?e=1.2:90<a?e=1.3:80<a?e=1.4:70<a?e=1.5:60<a?e=1.6:50<a?e=1.7:40<a?e=1.8:30<a?e=1.9:20<a&&(e=2),99!=a&&(a+=Math.floor(Math.random()*e)),t.attr("data-content",a+"%")},100),Q(".yp-background-image-show").remove()}),Q(".yp-unsplash-list").on("scroll",function(){!function(){if(0<Q(".yp-unsplash-list > span:nth-last-child(-n+4):in-viewport").length){var e=Q(".yp-unsplash-list > span").length,t=e/10+1;0==window.getJsonNow&&si(t)}}(),ri()}),setTimeout(function(){Q.post(ajaxurl,{action:"yp_ajax_detect_dynamic_id_class",yp_page_content:ie.find("html").html(),yp_page_href:Q.urlParam("href"),yp_page_out:Q.urlParam("yp_out"),_wpnonce:window.yp_editor_nonce}).done(function(e){if(ve(e))return!1;if(e.length<2)return!1;var t=Q.parseJSON(e)[0],a=Q.parseJSON(e)[1],i=["yellow-pencil-frame-css","yellow-pencil-animate-css","yp-styles-area","yellow-pencil-canvas","yellow-pencil-focus-canvas","yellow-pencil-other-canvas","yellow-pencil-extra-canvas","yp-animate-data","yp-yellow-pencil","yp-inline-data"];t=Q.map(t,function(e,t){return[e]}),a=Q.map(a,function(e,t){return[e]});for(var n=0;n<t.length;n++)-1!=i.indexOf(t[n])&&delete t[n];for(n=0;n<a.length;n++)-1!=i.indexOf(a[n])&&delete a[n];window.idList=t.filter(Boolean),window.ClassList=a.filter(Boolean)}),si(1)},1e3),B(),yp_js_hook()}(jQuery); |